cntx-ui 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,472 +0,0 @@
1
- var oN=l=>{throw TypeError(l)};var uh=(l,a,i)=>a.has(l)||oN("Cannot "+i);var T=(l,a,i)=>(uh(l,a,"read from private field"),i?i.call(l):a.get(l)),je=(l,a,i)=>a.has(l)?oN("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(l):a.set(l,i),de=(l,a,i,d)=>(uh(l,a,"write to private field"),d?d.call(l,i):a.set(l,i),i),qe=(l,a,i)=>(uh(l,a,"access private method"),i);var wd=(l,a,i,d)=>({set _(h){de(l,a,h,i)},get _(){return T(l,a,d)}});function Oj(l,a){for(var i=0;i<a.length;i++){const d=a[i];if(typeof d!="string"&&!Array.isArray(d)){for(const h in d)if(h!=="default"&&!(h in l)){const v=Object.getOwnPropertyDescriptor(d,h);v&&Object.defineProperty(l,h,v.get?v:{enumerable:!0,get:()=>d[h]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))d(h);new MutationObserver(h=>{for(const v of h)if(v.type==="childList")for(const N of v.addedNodes)N.tagName==="LINK"&&N.rel==="modulepreload"&&d(N)}).observe(document,{childList:!0,subtree:!0});function i(h){const v={};return h.integrity&&(v.integrity=h.integrity),h.referrerPolicy&&(v.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?v.credentials="include":h.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function d(h){if(h.ep)return;h.ep=!0;const v=i(h);fetch(h.href,v)}})();function e1(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var dh={exports:{}},Ed={},fh={exports:{}},xc={exports:{}};xc.exports;var aN;function Mj(){return aN||(aN=1,function(l,a){/**
2
- * @license React
3
- * react.development.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */(function(){function i(p,R){Object.defineProperty(v.prototype,p,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})}function d(p){return p===null||typeof p!="object"?null:(p=sn&&p[sn]||p["@@iterator"],typeof p=="function"?p:null)}function h(p,R){p=(p=p.constructor)&&(p.displayName||p.name)||"ReactClass";var K=p+"."+R;An[K]||(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.",R,p),An[K]=!0)}function v(p,R,K){this.props=p,this.context=R,this.refs=wo,this.updater=K||ws}function N(){}function E(p,R,K){this.props=p,this.context=R,this.refs=wo,this.updater=K||ws}function x(p){return""+p}function C(p){try{x(p);var R=!1}catch{R=!0}if(R){R=console;var K=R.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object";return K.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),x(p)}}function A(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===On?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case j:return"Fragment";case I:return"Profiler";case G:return"StrictMode";case pe:return"Suspense";case Fe:return"SuspenseList";case ct:return"Activity"}if(typeof p=="object")switch(typeof p.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),p.$$typeof){case Te:return"Portal";case we:return(p.displayName||"Context")+".Provider";case te:return(p._context.displayName||"Context")+".Consumer";case Be:var R=p.render;return p=p.displayName,p||(p=R.displayName||R.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case De:return R=p.displayName||null,R!==null?R:A(p.type)||"Memo";case Ze:R=p._payload,p=p._init;try{return A(p(R))}catch{}}return null}function m(p){if(p===j)return"<>";if(typeof p=="object"&&p!==null&&p.$$typeof===Ze)return"<...>";try{var R=A(p);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function y(){var p=_e.A;return p===null?null:p.getOwner()}function V(){return Error("react-stack-top-frame")}function q(p){if(Xs.call(p,"key")){var R=Object.getOwnPropertyDescriptor(p,"key").get;if(R&&R.isReactWarning)return!1}return p.key!==void 0}function O(p,R){function K(){on||(on=!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)",R))}K.isReactWarning=!0,Object.defineProperty(p,"key",{get:K,configurable:!0})}function U(){var p=A(this.type);return Eo[p]||(Eo[p]=!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.")),p=this.props.ref,p!==void 0?p:null}function $(p,R,K,se,ve,ze,Ue,le){return K=ze.ref,p={$$typeof:X,type:p,key:R,props:ze,_owner:ve},(K!==void 0?K:null)!==null?Object.defineProperty(p,"ref",{enumerable:!1,get:U}):Object.defineProperty(p,"ref",{enumerable:!1,value:null}),p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(p,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(p,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ue}),Object.defineProperty(p,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p}function oe(p,R){return R=$(p.type,R,void 0,void 0,p._owner,p.props,p._debugStack,p._debugTask),p._store&&(R._store.validated=p._store.validated),R}function ee(p){return typeof p=="object"&&p!==null&&p.$$typeof===X}function ie(p){var R={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(K){return R[K]})}function ae(p,R){return typeof p=="object"&&p!==null&&p.key!=null?(C(p.key),ie(""+p.key)):R.toString(36)}function ge(){}function ye(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(ge,ge):(p.status="pending",p.then(function(R){p.status==="pending"&&(p.status="fulfilled",p.value=R)},function(R){p.status==="pending"&&(p.status="rejected",p.reason=R)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function F(p,R,K,se,ve){var ze=typeof p;(ze==="undefined"||ze==="boolean")&&(p=null);var Ue=!1;if(p===null)Ue=!0;else switch(ze){case"bigint":case"string":case"number":Ue=!0;break;case"object":switch(p.$$typeof){case X:case Te:Ue=!0;break;case Ze:return Ue=p._init,F(Ue(p._payload),R,K,se,ve)}}if(Ue){Ue=p,ve=ve(Ue);var le=se===""?"."+ae(Ue,0):se;return us(ve)?(K="",le!=null&&(K=le.replace(Fs,"$&/")+"/"),F(ve,R,K,"",function(Ke){return Ke})):ve!=null&&(ee(ve)&&(ve.key!=null&&(Ue&&Ue.key===ve.key||C(ve.key)),K=oe(ve,K+(ve.key==null||Ue&&Ue.key===ve.key?"":(""+ve.key).replace(Fs,"$&/")+"/")+le),se!==""&&Ue!=null&&ee(Ue)&&Ue.key==null&&Ue._store&&!Ue._store.validated&&(K._store.validated=2),ve=K),R.push(ve)),1}if(Ue=0,le=se===""?".":se+":",us(p))for(var xe=0;xe<p.length;xe++)se=p[xe],ze=le+ae(se,xe),Ue+=F(se,R,K,ze,ve);else if(xe=d(p),typeof xe=="function")for(xe===p.entries&&(Dr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dr=!0),p=xe.call(p),xe=0;!(se=p.next()).done;)se=se.value,ze=le+ae(se,xe++),Ue+=F(se,R,K,ze,ve);else if(ze==="object"){if(typeof p.then=="function")return F(ye(p),R,K,se,ve);throw R=String(p),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return Ue}function Z(p,R,K){if(p==null)return p;var se=[],ve=0;return F(p,se,"","",function(ze){return R.call(K,ze,ve++)}),se}function Se(p){if(p._status===-1){var R=p._result;R=R(),R.then(function(K){(p._status===0||p._status===-1)&&(p._status=1,p._result=K)},function(K){(p._status===0||p._status===-1)&&(p._status=2,p._result=K)}),p._status===-1&&(p._status=0,p._result=R)}if(p._status===1)return R=p._result,R===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
10
-
11
- Your code should look like:
12
- const MyComponent = lazy(() => import('./MyComponent'))
13
-
14
- Did you accidentally put curly braces around the import?`,R),"default"in R||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
15
-
16
- Your code should look like:
17
- const MyComponent = lazy(() => import('./MyComponent'))`,R),R.default;throw p._result}function B(){var p=_e.H;return p===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:
18
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
- 2. You might be breaking the Rules of Hooks
20
- 3. You might have more than one copy of React in the same app
21
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),p}function re(){}function Ee(p){if(Vn===null)try{var R=("require"+Math.random()).slice(0,7);Vn=(l&&l[R]).call(l,"timers").setImmediate}catch{Vn=function(se){Cr===!1&&(Cr=!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 ve=new MessageChannel;ve.port1.onmessage=se,ve.port2.postMessage(void 0)}}return Vn(p)}function Me(p){return 1<p.length&&typeof AggregateError=="function"?new AggregateError(p):p[0]}function Ve(p,R){R!==Es-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. "),Es=R}function H(p,R,K){var se=_e.actQueue;if(se!==null)if(se.length!==0)try{ue(se),Ee(function(){return H(p,R,K)});return}catch(ve){_e.thrownErrors.push(ve)}else _e.actQueue=null;0<_e.thrownErrors.length?(se=Me(_e.thrownErrors),_e.thrownErrors.length=0,K(se)):R(p)}function ue(p){if(!vn){vn=!0;var R=0;try{for(;R<p.length;R++){var K=p[R];do{_e.didUsePromise=!1;var se=K(!1);if(se!==null){if(_e.didUsePromise){p[R]=K,p.splice(0,R);return}K=se}else break}while(!0)}p.length=0}catch(ve){p.splice(0,R+1),_e.thrownErrors.push(ve)}finally{vn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=Symbol.for("react.transitional.element"),Te=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),we=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Ze=Symbol.for("react.lazy"),ct=Symbol.for("react.activity"),sn=Symbol.iterator,An={},ws={isMounted:function(){return!1},enqueueForceUpdate:function(p){h(p,"forceUpdate")},enqueueReplaceState:function(p){h(p,"replaceState")},enqueueSetState:function(p){h(p,"setState")}},Tr=Object.assign,wo={};Object.freeze(wo),v.prototype.isReactComponent={},v.prototype.setState=function(p,R){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,R,"setState")},v.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};var yt={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)."]},rn;for(rn in yt)yt.hasOwnProperty(rn)&&i(rn,yt[rn]);N.prototype=v.prototype,yt=E.prototype=new N,yt.constructor=E,Tr(yt,v.prototype),yt.isPureReactComponent=!0;var us=Array.isArray,On=Symbol.for("react.client.reference"),_e={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Xs=Object.prototype.hasOwnProperty,Ot=console.createTask?console.createTask:function(){return null};yt={"react-stack-bottom-frame":function(p){return p()}};var on,ja,Eo={},Is=yt["react-stack-bottom-frame"].bind(yt,V)(),jo=Ot(m(V)),Dr=!1,Fs=/\/+/g,Mn=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},Cr=!1,Vn=null,Es=0,zn=!1,vn=!1,ds=typeof queueMicrotask=="function"?function(p){queueMicrotask(function(){return queueMicrotask(p)})}:Ee;yt=Object.freeze({__proto__:null,c:function(p){return B().useMemoCache(p)}}),a.Children={map:Z,forEach:function(p,R,K){Z(p,function(){R.apply(this,arguments)},K)},count:function(p){var R=0;return Z(p,function(){R++}),R},toArray:function(p){return Z(p,function(R){return R})||[]},only:function(p){if(!ee(p))throw Error("React.Children.only expected to receive a single React element child.");return p}},a.Component=v,a.Fragment=j,a.Profiler=I,a.PureComponent=E,a.StrictMode=G,a.Suspense=pe,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_e,a.__COMPILER_RUNTIME=yt,a.act=function(p){var R=_e.actQueue,K=Es;Es++;var se=_e.actQueue=R!==null?R:[],ve=!1;try{var ze=p()}catch(xe){_e.thrownErrors.push(xe)}if(0<_e.thrownErrors.length)throw Ve(R,K),p=Me(_e.thrownErrors),_e.thrownErrors.length=0,p;if(ze!==null&&typeof ze=="object"&&typeof ze.then=="function"){var Ue=ze;return ds(function(){ve||zn||(zn=!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(xe,Ke){ve=!0,Ue.then(function(xt){if(Ve(R,K),K===0){try{ue(se),Ee(function(){return H(xt,xe,Ke)})}catch(Dt){_e.thrownErrors.push(Dt)}if(0<_e.thrownErrors.length){var Rr=Me(_e.thrownErrors);_e.thrownErrors.length=0,Ke(Rr)}}else xe(xt)},function(xt){Ve(R,K),0<_e.thrownErrors.length&&(xt=Me(_e.thrownErrors),_e.thrownErrors.length=0),Ke(xt)})}}}var le=ze;if(Ve(R,K),K===0&&(ue(se),se.length!==0&&ds(function(){ve||zn||(zn=!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(() => ...)"))}),_e.actQueue=null),0<_e.thrownErrors.length)throw p=Me(_e.thrownErrors),_e.thrownErrors.length=0,p;return{then:function(xe,Ke){ve=!0,K===0?(_e.actQueue=se,Ee(function(){return H(le,xe,Ke)})):xe(le)}}},a.cache=function(p){return function(){return p.apply(null,arguments)}},a.captureOwnerStack=function(){var p=_e.getCurrentStack;return p===null?null:p()},a.cloneElement=function(p,R,K){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var se=Tr({},p.props),ve=p.key,ze=p._owner;if(R!=null){var Ue;e:{if(Xs.call(R,"ref")&&(Ue=Object.getOwnPropertyDescriptor(R,"ref").get)&&Ue.isReactWarning){Ue=!1;break e}Ue=R.ref!==void 0}Ue&&(ze=y()),q(R)&&(C(R.key),ve=""+R.key);for(le in R)!Xs.call(R,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&R.ref===void 0||(se[le]=R[le])}var le=arguments.length-2;if(le===1)se.children=K;else if(1<le){Ue=Array(le);for(var xe=0;xe<le;xe++)Ue[xe]=arguments[xe+2];se.children=Ue}for(se=$(p.type,ve,void 0,void 0,ze,se,p._debugStack,p._debugTask),ve=2;ve<arguments.length;ve++)ze=arguments[ve],ee(ze)&&ze._store&&(ze._store.validated=1);return se},a.createContext=function(p){return p={$$typeof:we,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:te,_context:p},p._currentRenderer=null,p._currentRenderer2=null,p},a.createElement=function(p,R,K){for(var se=2;se<arguments.length;se++){var ve=arguments[se];ee(ve)&&ve._store&&(ve._store.validated=1)}if(se={},ve=null,R!=null)for(xe in ja||!("__self"in R)||"key"in R||(ja=!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")),q(R)&&(C(R.key),ve=""+R.key),R)Xs.call(R,xe)&&xe!=="key"&&xe!=="__self"&&xe!=="__source"&&(se[xe]=R[xe]);var ze=arguments.length-2;if(ze===1)se.children=K;else if(1<ze){for(var Ue=Array(ze),le=0;le<ze;le++)Ue[le]=arguments[le+2];Object.freeze&&Object.freeze(Ue),se.children=Ue}if(p&&p.defaultProps)for(xe in ze=p.defaultProps,ze)se[xe]===void 0&&(se[xe]=ze[xe]);ve&&O(se,typeof p=="function"?p.displayName||p.name||"Unknown":p);var xe=1e4>_e.recentlyCreatedOwnerStacks++;return $(p,ve,void 0,void 0,y(),se,xe?Error("react-stack-top-frame"):Is,xe?Ot(m(p)):jo)},a.createRef=function(){var p={current:null};return Object.seal(p),p},a.forwardRef=function(p){p!=null&&p.$$typeof===De?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof p!="function"?console.error("forwardRef requires a render function but was given %s.",p===null?"null":typeof p):p.length!==0&&p.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",p.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),p!=null&&p.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var R={$$typeof:Be,render:p},K;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(se){K=se,p.name||p.displayName||(Object.defineProperty(p,"name",{value:se}),p.displayName=se)}}),R},a.isValidElement=ee,a.lazy=function(p){return{$$typeof:Ze,_payload:{_status:-1,_result:p},_init:Se}},a.memo=function(p,R){p==null&&console.error("memo: The first argument must be a component. Instead received: %s",p===null?"null":typeof p),R={$$typeof:De,type:p,compare:R===void 0?null:R};var K;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(se){K=se,p.name||p.displayName||(Object.defineProperty(p,"name",{value:se}),p.displayName=se)}}),R},a.startTransition=function(p){var R=_e.T,K={};_e.T=K,K._updatedFibers=new Set;try{var se=p(),ve=_e.S;ve!==null&&ve(K,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(re,Mn)}catch(ze){Mn(ze)}finally{R===null&&K._updatedFibers&&(p=K._updatedFibers.size,K._updatedFibers.clear(),10<p&&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.")),_e.T=R}},a.unstable_useCacheRefresh=function(){return B().useCacheRefresh()},a.use=function(p){return B().use(p)},a.useActionState=function(p,R,K){return B().useActionState(p,R,K)},a.useCallback=function(p,R){return B().useCallback(p,R)},a.useContext=function(p){var R=B();return p.$$typeof===te&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),R.useContext(p)},a.useDebugValue=function(p,R){return B().useDebugValue(p,R)},a.useDeferredValue=function(p,R){return B().useDeferredValue(p,R)},a.useEffect=function(p,R,K){p==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var se=B();if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return se.useEffect(p,R)},a.useId=function(){return B().useId()},a.useImperativeHandle=function(p,R,K){return B().useImperativeHandle(p,R,K)},a.useInsertionEffect=function(p,R){return p==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),B().useInsertionEffect(p,R)},a.useLayoutEffect=function(p,R){return p==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),B().useLayoutEffect(p,R)},a.useMemo=function(p,R){return B().useMemo(p,R)},a.useOptimistic=function(p,R){return B().useOptimistic(p,R)},a.useReducer=function(p,R,K){return B().useReducer(p,R,K)},a.useRef=function(p){return B().useRef(p)},a.useState=function(p){return B().useState(p)},a.useSyncExternalStore=function(p,R,K){return B().useSyncExternalStore(p,R,K)},a.useTransition=function(){return B().useTransition()},a.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(xc,xc.exports)),xc.exports}var lN;function Cc(){return lN||(lN=1,fh.exports=Mj()),fh.exports}var iN;function Vj(){if(iN)return Ed;iN=1;/**
22
- * @license React
23
- * react-jsx-dev-runtime.development.js
24
- *
25
- * Copyright (c) Meta Platforms, Inc. and affiliates.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */return function(){function l(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===Se?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case O:return"Fragment";case $:return"Profiler";case U:return"StrictMode";case ae:return"Suspense";case ge:return"SuspenseList";case Z:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case q:return"Portal";case ee:return(j.displayName||"Context")+".Provider";case oe:return(j._context.displayName||"Context")+".Consumer";case ie:var G=j.render;return j=j.displayName,j||(j=G.displayName||G.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case ye:return G=j.displayName||null,G!==null?G:l(j.type)||"Memo";case F:G=j._payload,j=j._init;try{return l(j(G))}catch{}}return null}function a(j){return""+j}function i(j){try{a(j);var G=!1}catch{G=!0}if(G){G=console;var I=G.error,te=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return I.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",te),a(j)}}function d(j){if(j===O)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===F)return"<...>";try{var G=l(j);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function h(){var j=B.A;return j===null?null:j.getOwner()}function v(){return Error("react-stack-top-frame")}function N(j){if(re.call(j,"key")){var G=Object.getOwnPropertyDescriptor(j,"key").get;if(G&&G.isReactWarning)return!1}return j.key!==void 0}function E(j,G){function I(){Ve||(Ve=!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)",G))}I.isReactWarning=!0,Object.defineProperty(j,"key",{get:I,configurable:!0})}function x(){var j=l(this.type);return H[j]||(H[j]=!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.")),j=this.props.ref,j!==void 0?j:null}function C(j,G,I,te,we,Be,pe,Fe){return I=Be.ref,j={$$typeof:V,type:j,key:G,props:Be,_owner:we},(I!==void 0?I:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:x}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Fe}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function A(j,G,I,te,we,Be,pe,Fe){var De=G.children;if(De!==void 0)if(te)if(Ee(De)){for(te=0;te<De.length;te++)m(De[te]);Object.freeze&&Object.freeze(De)}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 m(De);if(re.call(G,"key")){De=l(j);var Ze=Object.keys(G).filter(function(sn){return sn!=="key"});te=0<Ze.length?"{key: someKey, "+Ze.join(": ..., ")+": ...}":"{key: someKey}",Te[De+te]||(Ze=0<Ze.length?"{"+Ze.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
30
- let props = %s;
31
- <%s {...props} />
32
- React keys must be passed directly to JSX without using spread:
33
- let props = %s;
34
- <%s key={someKey} {...props} />`,te,De,Ze,De),Te[De+te]=!0)}if(De=null,I!==void 0&&(i(I),De=""+I),N(G)&&(i(G.key),De=""+G.key),"key"in G){I={};for(var ct in G)ct!=="key"&&(I[ct]=G[ct])}else I=G;return De&&E(I,typeof j=="function"?j.displayName||j.name||"Unknown":j),C(j,De,Be,we,h(),I,pe,Fe)}function m(j){typeof j=="object"&&j!==null&&j.$$typeof===V&&j._store&&(j._store.validated=1)}var y=Cc(),V=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),oe=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),ye=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),Se=Symbol.for("react.client.reference"),B=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=Object.prototype.hasOwnProperty,Ee=Array.isArray,Me=console.createTask?console.createTask:function(){return null};y={"react-stack-bottom-frame":function(j){return j()}};var Ve,H={},ue=y["react-stack-bottom-frame"].bind(y,v)(),X=Me(d(v)),Te={};Ed.Fragment=O,Ed.jsxDEV=function(j,G,I,te,we,Be){var pe=1e4>B.recentlyCreatedOwnerStacks++;return A(j,G,I,te,we,Be,pe?Error("react-stack-top-frame"):ue,pe?Me(d(j)):X)}}(),Ed}var cN;function zj(){return cN||(cN=1,dh.exports=Vj()),dh.exports}var u=zj(),Q=Cc();const W=e1(Q),t1=Oj({__proto__:null,default:W},[Q]);var mh={exports:{}},bc={},ph={exports:{}},hh={},uN;function kj(){return uN||(uN=1,function(l){/**
35
- * @license React
36
- * scheduler.development.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */(function(){function a(){if(ae=!1,Z){var H=l.unstable_now();re=H;var ue=!0;try{e:{ee=!1,ie&&(ie=!1,ye(Se),Se=-1),oe=!0;var X=$;try{t:{for(N(H),U=d(V);U!==null&&!(U.expirationTime>H&&x());){var Te=U.callback;if(typeof Te=="function"){U.callback=null,$=U.priorityLevel;var j=Te(U.expirationTime<=H);if(H=l.unstable_now(),typeof j=="function"){U.callback=j,N(H),ue=!0;break t}U===d(V)&&h(V),N(H)}else h(V);U=d(V)}if(U!==null)ue=!0;else{var G=d(q);G!==null&&C(E,G.startTime-H),ue=!1}}break e}finally{U=null,$=X,oe=!1}ue=void 0}}finally{ue?Ee():Z=!1}}}function i(H,ue){var X=H.length;H.push(ue);e:for(;0<X;){var Te=X-1>>>1,j=H[Te];if(0<v(j,ue))H[Te]=ue,H[X]=j,X=Te;else break e}}function d(H){return H.length===0?null:H[0]}function h(H){if(H.length===0)return null;var ue=H[0],X=H.pop();if(X!==ue){H[0]=X;e:for(var Te=0,j=H.length,G=j>>>1;Te<G;){var I=2*(Te+1)-1,te=H[I],we=I+1,Be=H[we];if(0>v(te,X))we<j&&0>v(Be,te)?(H[Te]=Be,H[we]=X,Te=we):(H[Te]=te,H[I]=X,Te=I);else if(we<j&&0>v(Be,X))H[Te]=Be,H[we]=X,Te=we;else break e}}return ue}function v(H,ue){var X=H.sortIndex-ue.sortIndex;return X!==0?X:H.id-ue.id}function N(H){for(var ue=d(q);ue!==null;){if(ue.callback===null)h(q);else if(ue.startTime<=H)h(q),ue.sortIndex=ue.expirationTime,i(V,ue);else break;ue=d(q)}}function E(H){if(ie=!1,N(H),!ee)if(d(V)!==null)ee=!0,Z||(Z=!0,Ee());else{var ue=d(q);ue!==null&&C(E,ue.startTime-H)}}function x(){return ae?!0:!(l.unstable_now()-re<B)}function C(H,ue){Se=ge(function(){H(l.unstable_now())},ue)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var A=performance;l.unstable_now=function(){return A.now()}}else{var m=Date,y=m.now();l.unstable_now=function(){return m.now()-y}}var V=[],q=[],O=1,U=null,$=3,oe=!1,ee=!1,ie=!1,ae=!1,ge=typeof setTimeout=="function"?setTimeout:null,ye=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null,Z=!1,Se=-1,B=5,re=-1;if(typeof F=="function")var Ee=function(){F(a)};else if(typeof MessageChannel<"u"){var Me=new MessageChannel,Ve=Me.port2;Me.port1.onmessage=a,Ee=function(){Ve.postMessage(null)}}else Ee=function(){ge(a,0)};l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(H){H.callback=null},l.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<H?Math.floor(1e3/H):5},l.unstable_getCurrentPriorityLevel=function(){return $},l.unstable_next=function(H){switch($){case 1:case 2:case 3:var ue=3;break;default:ue=$}var X=$;$=ue;try{return H()}finally{$=X}},l.unstable_requestPaint=function(){ae=!0},l.unstable_runWithPriority=function(H,ue){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var X=$;$=H;try{return ue()}finally{$=X}},l.unstable_scheduleCallback=function(H,ue,X){var Te=l.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Te+X:Te):X=Te,H){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=X+j,H={id:O++,callback:ue,priorityLevel:H,startTime:X,expirationTime:j,sortIndex:-1},X>Te?(H.sortIndex=X,i(q,H),d(V)===null&&H===d(q)&&(ie?(ye(Se),Se=-1):ie=!0,C(E,X-Te))):(H.sortIndex=j,i(V,H),ee||oe||(ee=!0,Z||(Z=!0,Ee()))),H},l.unstable_shouldYield=x,l.unstable_wrapCallback=function(H){var ue=$;return function(){var X=$;$=ue;try{return H.apply(this,arguments)}finally{$=X}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(hh)),hh}var dN;function Pj(){return dN||(dN=1,ph.exports=kj()),ph.exports}var bh={exports:{}},tn={},fN;function _j(){if(fN)return tn;fN=1;/**
43
- * @license React
44
- * react-dom.development.js
45
- *
46
- * Copyright (c) Meta Platforms, Inc. and affiliates.
47
- *
48
- * This source code is licensed under the MIT license found in the
49
- * LICENSE file in the root directory of this source tree.
50
- */return function(){function l(){}function a(m){return""+m}function i(m,y,V){var q=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(q);var O=!1}catch{O=!0}return O&&(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&&q[Symbol.toStringTag]||q.constructor.name||"Object"),a(q)),{$$typeof:C,key:q==null?null:""+q,children:m,containerInfo:y,implementation:V}}function d(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function h(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":'something with type "'+typeof m+'"'}function v(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":typeof m=="string"?JSON.stringify(m):typeof m=="number"?"`"+m+"`":'something with type "'+typeof m+'"'}function N(){var m=A.H;return m===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:
51
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
52
- 2. You might be breaking the Rules of Hooks
53
- 3. You might have more than one copy of React in the same app
54
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var E=Cc(),x={d:{f:l,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},C=Symbol.for("react.portal"),A=E.__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"),tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,tn.createPortal=function(m,y){var V=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return i(m,y,null,V)},tn.flushSync=function(m){var y=A.T,V=x.p;try{if(A.T=null,x.p=2,m)return m()}finally{A.T=y,x.p=V,x.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.")}},tn.preconnect=function(m,y){typeof m=="string"&&m?y!=null&&typeof y!="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.",v(y)):y!=null&&typeof y.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.",h(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",h(m)),typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,x.d.C(m,y))},tn.prefetchDNS=function(m){if(typeof m!="string"||!m)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",h(m));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.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`.",v(y)):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`.",v(y))}typeof m=="string"&&x.d.D(m)},tn.preinit=function(m,y){if(typeof m=="string"&&m?y==null||typeof y!="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.",v(y)):y.as!=="style"&&y.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".',v(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",h(m)),typeof m=="string"&&y&&typeof y.as=="string"){var V=y.as,q=d(V,y.crossOrigin),O=typeof y.integrity=="string"?y.integrity:void 0,U=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;V==="style"?x.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:q,integrity:O,fetchPriority:U}):V==="script"&&x.d.X(m,{crossOrigin:q,integrity:O,fetchPriority:U,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},tn.preinitModule=function(m,y){var V="";if(typeof m=="string"&&m||(V+=" The `href` argument encountered was "+h(m)+"."),y!==void 0&&typeof y!="object"?V+=" The `options` argument encountered was "+h(y)+".":y&&"as"in y&&y.as!=="script"&&(V+=" The `as` option encountered was "+v(y.as)+"."),V)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",V);else switch(V=y&&typeof y.as=="string"?y.as:"script",V){case"script":break;default:V=v(V),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)',V,m)}typeof m=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(V=d(y.as,y.crossOrigin),x.d.M(m,{crossOrigin:V,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&x.d.M(m))},tn.preload=function(m,y){var V="";if(typeof m=="string"&&m||(V+=" The `href` argument encountered was "+h(m)+"."),y==null||typeof y!="object"?V+=" The `options` argument encountered was "+h(y)+".":typeof y.as=="string"&&y.as||(V+=" The `as` option encountered was "+h(y.as)+"."),V&&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',V),typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){V=y.as;var q=d(V,y.crossOrigin);x.d.L(m,V,{crossOrigin:q,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},tn.preloadModule=function(m,y){var V="";typeof m=="string"&&m||(V+=" The `href` argument encountered was "+h(m)+"."),y!==void 0&&typeof y!="object"?V+=" The `options` argument encountered was "+h(y)+".":y&&"as"in y&&typeof y.as!="string"&&(V+=" The `as` option encountered was "+h(y.as)+"."),V&&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',V),typeof m=="string"&&(y?(V=d(y.as,y.crossOrigin),x.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:V,integrity:typeof y.integrity=="string"?y.integrity:void 0})):x.d.m(m))},tn.requestFormReset=function(m){x.d.r(m)},tn.unstable_batchedUpdates=function(m,y){return m(y)},tn.useFormState=function(m,y,V){return N().useFormState(m,y,V)},tn.useFormStatus=function(){return N().useHostTransitionStatus()},tn.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),tn}var mN;function n1(){return mN||(mN=1,bh.exports=_j()),bh.exports}var pN;function Hj(){if(pN)return bc;pN=1;/**
55
- * @license React
56
- * react-dom-client.development.js
57
- *
58
- * Copyright (c) Meta Platforms, Inc. and affiliates.
59
- *
60
- * This source code is licensed under the MIT license found in the
61
- * LICENSE file in the root directory of this source tree.
62
- */return function(){function l(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function a(e,t,n,s){if(n>=t.length)return s;var r=t[n],o=It(e)?e.slice():Le({},e);return o[r]=a(e[r],t,n+1,s),o}function i(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<n.length-1;s++)if(t[s]!==n[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,n,0)}}function d(e,t,n,s){var r=t[s],o=It(e)?e.slice():Le({},e);return s+1===t.length?(o[n[s]]=o[r],It(o)?o.splice(r,1):delete o[r]):o[r]=d(e[r],t,n,s+1),o}function h(e,t,n){var s=t[n],r=It(e)?e.slice():Le({},e);return n+1===t.length?(It(r)?r.splice(s,1):delete r[s],r):(r[s]=h(e[s],t,n+1),r)}function v(){return!1}function N(){return null}function E(){}function x(){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 C(){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 A(){}function m(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function y(e,t,n,s){return new US(e,t,n,s)}function V(e,t){e.context===Qr&&(km(e.current,2,t,e,null,null),ka())}function q(e,t){if(Wn!==null){var n=t.staleFamilies;t=t.updatedFamilies,yi(),ef(e.current,t,n),ka()}}function O(e){Wn=e}function U(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function oe(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ee(e){if($(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ie(e){var t=e.alternate;if(!t){if(t=$(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,s=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return ee(r),e;if(o===s)return ee(r),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==s.return)n=r,s=o;else{for(var c=!1,f=r.child;f;){if(f===n){c=!0,n=r,s=o;break}if(f===s){c=!0,s=r,n=o;break}f=f.sibling}if(!c){for(f=o.child;f;){if(f===n){c=!0,n=o,s=r;break}if(f===s){c=!0,s=o,n=r;break}f=f.sibling}if(!c)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(n.alternate!==s)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(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function ae(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ae(e),t!==null)return t;e=e.sibling}return null}function ge(e){return e===null||typeof e!="object"?null:(e=Dy&&e[Dy]||e["@@iterator"],typeof e=="function"?e:null)}function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Qw?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ya:return"Fragment";case Ym:return"Profiler";case Ru:return"StrictMode";case $m:return"Suspense";case Qm:return"SuspenseList";case Xm:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case qa:return"Portal";case Ms:return(e.displayName||"Context")+".Provider";case Gm:return(e._context.displayName||"Context")+".Consumer";case Ci:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uu:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case qn:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function F(e){return typeof e.tag=="number"?Z(e):typeof e.name=="string"?e.name:null}function Z(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(t);case 8:return t===Ru?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return Z(e.return)}return null}function Se(e){return{current:e}}function B(e,t){0>or?console.error("Unexpected pop."):(t!==Fm[or]&&console.error("Unexpected Fiber popped."),e.current=Im[or],Im[or]=null,Fm[or]=null,or--)}function re(e,t,n){or++,Im[or]=e.current,Fm[or]=n,e.current=t}function Ee(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Me(e,t){re(qr,t,e),re(Ri,e,e),re(Lr,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?ty(t):vr;break;default:if(n=t.tagName,t=t.namespaceURI)t=ty(t),t=ny(t,n);else switch(n){case"svg":t=El;break;case"math":t=bd;break;default:t=vr}}n=n.toLowerCase(),n=db(null,n),n={context:t,ancestorInfo:n},B(Lr,e),re(Lr,n,e)}function Ve(e){B(Lr,e),B(Ri,e),B(qr,e)}function H(){return Ee(Lr.current)}function ue(e){e.memoizedState!==null&&re(Au,e,e);var t=Ee(Lr.current),n=e.type,s=ny(t.context,n);n=db(t.ancestorInfo,n),s={context:s,ancestorInfo:n},t!==s&&(re(Ri,e,e),re(Lr,s,e))}function X(e){Ri.current===e&&(B(Lr,e),B(Ri,e)),Au.current===e&&(B(Au,e),mc._currentValue=la)}function Te(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function j(e){try{return G(e),!1}catch{return!0}}function G(e){return""+e}function I(e,t){if(j(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Te(e)),G(e)}function te(e,t){if(j(e))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.",t,Te(e)),G(e)}function we(e){if(j(e))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.",Te(e)),G(e)}function Be(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.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{$a=t.inject(e),Jt=t}catch(n){console.error("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function pe(e){if(typeof Ww=="function"&&eE(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode($a,e)}catch(t){zs||(zs=!0,console.error("React instrumentation encountered an error: %s",t))}}function Fe(e){ce=e}function De(){ce!==null&&typeof ce.markCommitStopped=="function"&&ce.markCommitStopped()}function Ze(e){ce!==null&&typeof ce.markComponentRenderStarted=="function"&&ce.markComponentRenderStarted(e)}function ct(){ce!==null&&typeof ce.markComponentRenderStopped=="function"&&ce.markComponentRenderStopped()}function sn(e){ce!==null&&typeof ce.markRenderStarted=="function"&&ce.markRenderStarted(e)}function An(){ce!==null&&typeof ce.markRenderStopped=="function"&&ce.markRenderStopped()}function ws(e,t){ce!==null&&typeof ce.markStateUpdateScheduled=="function"&&ce.markStateUpdateScheduled(e,t)}function Tr(e){return e>>>=0,e===0?32:31-(tE(e)/nE|0)|0}function wo(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function yt(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&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."),e}}function rn(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var r=0,o=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=s&134217727;return f!==0?(s=f&~o,s!==0?r=yt(s):(c&=f,c!==0?r=yt(c):n||(n=f&~e,n!==0&&(r=yt(n))))):(f=s&~o,f!==0?r=yt(f):c!==0?r=yt(c):n||(n=s&~e,n!==0&&(r=yt(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function us(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function On(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function _e(){var e=Ou;return Ou<<=1,(Ou&4194048)===0&&(Ou=256),e}function Xs(){var e=Mu;return Mu<<=1,(Mu&62914560)===0&&(Mu=4194304),e}function Ot(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function on(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ja(e,t,n,s,r,o){var c=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var f=e.entanglements,b=e.expirationTimes,g=e.hiddenUpdates;for(n=c&~n;0<n;){var z=31-an(n),_=1<<z;f[z]=0,b[z]=-1;var M=g[z];if(M!==null)for(g[z]=null,z=0;z<M.length;z++){var L=M[z];L!==null&&(L.lane&=-536870913)}n&=~_}s!==0&&Eo(e,s,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(c&~t))}function Eo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-an(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&4194090}function Is(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-an(n),r=1<<s;r&t|e[s]&t&&(e[s]|=t),n&=~r}}function jo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Dr(e,t,n){if(ps)for(e=e.pendingUpdatersLaneMap;0<n;){var s=31-an(n),r=1<<s;e[s].add(t),n&=~r}}function Fs(e,t){if(ps)for(var n=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;0<t;){var r=31-an(t);e=1<<r,r=n[r],0<r.size&&(r.forEach(function(o){var c=o.alternate;c!==null&&s.has(c)||s.add(o)}),r.clear()),t&=~e}}function Mn(e){return e&=-e,Kn<e?ks<e?(e&134217727)!==0?lr:Vu:ks:Kn}function Cr(){var e=et.p;return e!==0?e:(e=window.event,e===void 0?lr:Ny(e.type))}function Vn(e,t){var n=et.p;try{return et.p=e,t()}finally{et.p=n}}function Es(e){delete e[Wt],delete e[wn],delete e[ep],delete e[sE],delete e[rE]}function zn(e){var t=e[Wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gr]||n[Wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=iy(e);e!==null;){if(n=e[Wt])return n;e=iy(e)}return t}e=n,n=e.parentNode}return null}function vn(e){if(e=e[Wt]||e[Gr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ds(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function p(e){var t=e[Cy];return t||(t=e[Cy]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function R(e){e[Ui]=!0}function K(e,t){se(e,t),se(e+"Capture",t)}function se(e,t){qo[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),qo[e]=t;var n=e.toLowerCase();for(tp[n]=e,e==="onDoubleClick"&&(tp.ondblclick=e),e=0;e<t.length;e++)Ry.add(t[e])}function ve(e,t){oE[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"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`.":"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`."),t.onChange||t.readOnly||t.disabled||t.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 ze(e){return ar.call(Ay,e)?!0:ar.call(Uy,e)?!1:aE.test(e)?Ay[e]=!0:(Uy[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Ue(e,t,n){if(ze(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(I(n,t),e===""+n?n:e)}}function le(e,t,n){if(ze(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}I(n,t),e.setAttribute(t,""+n)}}function xe(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}I(n,t),e.setAttribute(t,""+n)}}function Ke(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}I(s,n),e.setAttributeNS(t,n,""+s)}}function xt(){}function Rr(){if(Ai===0){Oy=console.log,My=console.info,Vy=console.warn,zy=console.error,ky=console.group,Py=console.groupCollapsed,_y=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ai++}function Dt(){if(Ai--,Ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Le({},e,{value:Oy}),info:Le({},e,{value:My}),warn:Le({},e,{value:Vy}),error:Le({},e,{value:zy}),group:Le({},e,{value:ky}),groupCollapsed:Le({},e,{value:Py}),groupEnd:Le({},e,{value:_y})})}0>Ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ht(e){if(np===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);np=t&&t[1]||"",Hy=-1<n.stack.indexOf(`
63
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
64
- `+np+e+Hy}function Ur(e,t){if(!e||sp)return"";var n=rp.get(e);if(n!==void 0)return n;sp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=P.H,P.H=null,Rr();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(fe){var L=fe}Reflect.construct(e,[],M)}else{try{M.call()}catch(fe){L=fe}e.call(M.prototype)}}else{try{throw Error()}catch(fe){L=fe}(M=e())&&typeof M.catch=="function"&&M.catch(function(){})}}catch(fe){if(fe&&L&&typeof fe.stack=="string")return[fe.stack,L.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),f=c[0],b=c[1];if(f&&b){var g=f.split(`
65
- `),z=b.split(`
66
- `);for(c=o=0;o<g.length&&!g[o].includes("DetermineComponentFrameRoot");)o++;for(;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;if(o===g.length||c===z.length)for(o=g.length-1,c=z.length-1;1<=o&&0<=c&&g[o]!==z[c];)c--;for(;1<=o&&0<=c;o--,c--)if(g[o]!==z[c]){if(o!==1||c!==1)do if(o--,c--,0>c||g[o]!==z[c]){var _=`
67
- `+g[o].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&rp.set(e,_),_}while(1<=o&&0<=c);break}}}finally{sp=!1,P.H=s,Dt(),Error.prepareStackTrace=n}return g=(g=e?e.displayName||e.name:"")?ht(g):"",typeof e=="function"&&rp.set(e,g),g}function gn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
68
- `)&&(e=e.slice(29)),t=e.indexOf(`
69
- `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react-stack-bottom-frame"),t!==-1&&(t=e.lastIndexOf(`
70
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function kn(e){switch(e.tag){case 26:case 27:case 5:return ht(e.type);case 16:return ht("Lazy");case 13:return ht("Suspense");case 19:return ht("SuspenseList");case 0:case 15:return Ur(e.type,!1);case 11:return Ur(e.type.render,!1);case 1:return Ur(e.type,!0);case 31:return ht("Activity");default:return""}}function Ql(e){try{var t="";do{t+=kn(e);var n=e._debugInfo;if(n)for(var s=n.length-1;0<=s;s--){var r=n[s];if(typeof r.name=="string"){var o=t,c=r.env,f=ht(r.name+(c?" ["+c+"]":""));t=o+f}}e=e.return}while(e);return t}catch(b){return`
71
- Error generating stack: `+b.message+`
72
- `+b.stack}}function js(e){return(e=e?e.displayName||e.name:"")?ht(e):""}function Xl(){if(Yn===null)return null;var e=Yn._debugOwner;return e!=null?F(e):null}function uS(){if(Yn===null)return"";var e=Yn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=ht(e.type);break;case 13:t+=ht("Suspense");break;case 19:t+=ht("SuspenseList");break;case 31:t+=ht("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=js(e.type));break;case 11:e._debugOwner||t!==""||(t+=js(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var s=n._debugStack;e&&s&&(typeof s!="string"&&(n._debugStack=s=gn(s)),s!==""&&(t+=`
73
- `+s))}else if(e.debugStack!=null){var r=e.debugStack;(e=e.owner)&&r&&(t+=`
74
- `+gn(r))}else break;var o=t}catch(c){o=`
75
- Error generating stack: `+c.message+`
76
- `+c.stack}return o}function Ne(e,t,n,s,r,o,c){var f=Yn;Ld(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,s,r,o,c)):t(n,s,r,o,c)}finally{Ld(f)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ld(e){P.getCurrentStack=e===null?null:uS,Ps=!1,Yn=e}function Xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return we(e),e;default:return""}}function Kh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dS(e){var t=Kh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);we(e[t]);var s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(c){we(c),s=""+c,o.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(c){we(c),s=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Uc(e){e._valueTracker||(e._valueTracker=dS(e))}function Jh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Kh(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Ac(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function In(e){return e.replace(lE,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Wh(e,t){t.checked===void 0||t.defaultChecked===void 0||Ly||(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",Xl()||"A component",t.type),Ly=!0),t.value===void 0||t.defaultValue===void 0||By||(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",Xl()||"A component",t.type),By=!0)}function qd(e,t,n,s,r,o,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?(I(c,"type"),e.type=c):e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xn(t)):e.value!==""+Xn(t)&&(e.value=""+Xn(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Yd(e,c,Xn(t)):n!=null?Yd(e,c,Xn(n)):s!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?(I(f,"name"),e.name=""+Xn(f)):e.removeAttribute("name")}function eb(e,t,n,s,r,o,c,f){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(I(o,"type"),e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;n=n!=null?""+Xn(n):"",t=t!=null?""+Xn(t):n,f||t===e.value||(e.value=t),e.defaultValue=t}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=f?e.checked:!!s,e.defaultChecked=!!s,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(I(c,"name"),e.name=c)}function Yd(e,t,n){t==="number"&&Ac(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tb(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?qm.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||Yy||(Yy=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||Gy||(Gy=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||qy||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),qy=!0)}function nb(){var e=Xl();return e?`
77
-
78
- Check the render method of \``+e+"`.":""}function Ta(e,t,n,s){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Xn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,s&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function sb(e,t){for(e=0;e<Qy.length;e++){var n=Qy[e];if(t[n]!=null){var s=It(t[n]);t.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,nb()):!t.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,nb())}}t.value===void 0||t.defaultValue===void 0||$y||(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"),$y=!0)}function rb(e,t){t.value===void 0||t.defaultValue===void 0||Xy||(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",Xl()||"A component"),Xy=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ob(e,t,n){if(t!=null&&(t=""+Xn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Xn(n):""}function ab(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(It(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");s=s[0]}n=s}n==null&&(n=""),t=n}n=Xn(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s)}function lb(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?lb(e.children[0],t):e}function Pn(e){return" "+" ".repeat(e)}function Da(e){return"+ "+" ".repeat(e)}function To(e){return"- "+" ".repeat(e)}function ib(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Il(e,t){return Iy.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Oc(e,t,n){var s=120-2*n;if(t===null)return Da(n)+Il(e,s)+`
79
- `;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>s-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),Da(n)+Il(e,s)+`
80
- `+To(n)+Il(t,s)+`
81
- `}return Pn(n)+Il(e,s)+`
82
- `}function Gd(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function Fl(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(It(e))return"[...]";if(e.$$typeof===Br)return(t=ye(e.type))?"<"+t+">":"<...>";var n=Gd(e);if(n==="Object"){n="",t-=2;for(var s in e)if(e.hasOwnProperty(s)){var r=JSON.stringify(s);if(r!=='"'+s+'"'&&(s=r),t-=s.length-2,r=Fl(e[s],15>t?t:15),t-=r.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+s+":"+r}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Ca(e,t){return typeof e!="string"||Iy.test(e)?"{"+Fl(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function $d(e,t,n){var s=120-n.length-e.length,r=[],o;for(o in t)if(t.hasOwnProperty(o)&&o!=="children"){var c=Ca(t[o],120-n.length-o.length-1);s-=o.length+c.length+2,r.push(o+"="+c)}return r.length===0?n+"<"+e+`>
83
- `:0<s?n+"<"+e+" "+r.join(" ")+`>
84
- `:n+"<"+e+`
85
- `+n+" "+r.join(`
86
- `+n+" ")+`
87
- `+n+`>
88
- `}function fS(e,t,n){var s="",r=Le({},t),o;for(o in e)if(e.hasOwnProperty(o)){delete r[o];var c=120-2*n-o.length-2,f=Fl(e[o],c);t.hasOwnProperty(o)?(c=Fl(t[o],c),s+=Da(n)+o+": "+f+`
89
- `,s+=To(n)+o+": "+c+`
90
- `):s+=Da(n)+o+": "+f+`
91
- `}for(var b in r)r.hasOwnProperty(b)&&(e=Fl(r[b],120-2*n-b.length-2),s+=To(n)+b+": "+e+`
92
- `);return s}function mS(e,t,n,s){var r="",o=new Map;for(g in n)n.hasOwnProperty(g)&&o.set(g.toLowerCase(),g);if(o.size===1&&o.has("children"))r+=$d(e,t,Pn(s));else{for(var c in t)if(t.hasOwnProperty(c)&&c!=="children"){var f=120-2*(s+1)-c.length-1,b=o.get(c.toLowerCase());if(b!==void 0){o.delete(c.toLowerCase());var g=t[c];b=n[b];var z=Ca(g,f);f=Ca(b,f),typeof g=="object"&&g!==null&&typeof b=="object"&&b!==null&&Gd(g)==="Object"&&Gd(b)==="Object"&&(2<Object.keys(g).length||2<Object.keys(b).length||-1<z.indexOf("...")||-1<f.indexOf("..."))?r+=Pn(s+1)+c+`={{
93
- `+fS(g,b,s+2)+Pn(s+1)+`}}
94
- `:(r+=Da(s+1)+c+"="+z+`
95
- `,r+=To(s+1)+c+"="+f+`
96
- `)}else r+=Pn(s+1)+c+"="+Ca(t[c],f)+`
97
- `}o.forEach(function(_){if(_!=="children"){var M=120-2*(s+1)-_.length-1;r+=To(s+1)+_+"="+Ca(n[_],M)+`
98
- `}}),r=r===""?Pn(s)+"<"+e+`>
99
- `:Pn(s)+"<"+e+`
100
- `+r+Pn(s)+`>
101
- `}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(o="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(o=""+t),r+=Oc(o,""+e,s+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+Oc(""+t,null,s+1):r+Oc(""+t,void 0,s+1)),r}function cb(e,t){var n=ib(e);if(n===null){for(n="",e=e.child;e;)n+=cb(e,t),e=e.sibling;return n}return Pn(t)+"<"+n+`>
102
- `}function Qd(e,t){var n=lb(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Pn(t)+`...
103
- `+Qd(n,t+1);n="";var s=e.fiber._debugInfo;if(s)for(var r=0;r<s.length;r++){var o=s[r].name;typeof o=="string"&&(n+=Pn(t)+"<"+o+`>
104
- `,t++)}if(s="",r=e.fiber.pendingProps,e.fiber.tag===6)s=Oc(r,e.serverProps,t),t++;else if(o=ib(e.fiber),o!==null)if(e.serverProps===void 0){s=t;var c=120-2*s-o.length-2,f="";for(g in r)if(r.hasOwnProperty(g)&&g!=="children"){var b=Ca(r[g],15);if(c-=g.length+b.length+2,0>c){f+=" ...";break}f+=" "+g+"="+b}s=Pn(s)+"<"+o+f+`>
105
- `,t++}else e.serverProps===null?(s=$d(o,r,Da(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(s=mS(o,r,e.serverProps,t),t++);var g="";for(r=e.fiber.child,o=0;r&&o<e.children.length;)c=e.children[o],c.fiber===r?(g+=Qd(c,t),o++):g+=cb(r,t),r=r.sibling;for(r&&0<e.children.length&&(g+=Pn(t)+`...
106
- `),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)o=r[e],g=typeof o=="string"?g+(To(t)+Il(o,120-2*t)+`
107
- `):g+$d(o.type,o.props,To(t));return n+s+g}function Xd(e){try{return`
108
-
109
- `+Qd(e,0)}catch{return""}}function ub(e,t,n){for(var s=t,r=null,o=0;s;)s===e&&(o=0),r={fiber:s,children:r!==null?[r]:[],serverProps:s===t?n:s===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,s=s.return;return r!==null?Xd(r).replaceAll(/^[+-]/gm,">"):""}function db(e,t){var n=Le({},e||Zy),s={tag:t};return Fy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),cE.indexOf(t)!==-1&&(n.pTagInButtonScope=null),iE.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=s,t==="form"&&(n.formTag=s),t==="a"&&(n.aTagInScope=s),t==="button"&&(n.buttonTagInScope=s),t==="nobr"&&(n.nobrTagInScope=s),t==="p"&&(n.pTagInButtonScope=s),t==="li"&&(n.listItemTagAutoclosing=s),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=s),t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=s),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function fb(e,t,n){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(n)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!n)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return uE.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return n||t===null;case"html":return n&&t==="#document"||t===null;case"body":return n&&(t==="#document"||t==="html")||t===null}return!0}function pS(e,t){switch(e){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 t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function mb(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Id(e,t){t=t||Zy;var n=t.current;if(t=(n=fb(e,n&&n.tag,t.implicitRootScope)?null:n)?null:pS(e,t),t=n||t,!t)return!0;var s=t.tag;if(t=String(!!n)+"|"+e+"|"+s,zu[t])return!1;zu[t]=!0;var r=(t=Yn)?mb(t.return,s):null,o=t!==null&&r!==null?ub(r,t,null):"",c="<"+e+">";return n?(n="",s==="table"&&e==="tr"&&(n+=" 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
110
- This will cause a hydration error.%s`,c,s,n,o)):console.error(`In HTML, %s cannot be a descendant of <%s>.
111
- This will cause a hydration error.%s`,c,s,o),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||Ne(r,function(){console.error(`<%s> cannot contain a nested %s.
112
- See this log for the ancestor stack trace.`,s,c)})),!1}function Mc(e,t,n){if(n||fb("#text",t,!1))return!0;if(n="#text|"+t,zu[n])return!1;zu[n]=!0;var s=(n=Yn)?mb(n,t):null;return n=n!==null&&s!==null?ub(s,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
113
- This will cause a hydration error.%s`,t,n):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.
114
- This will cause a hydration error.%s`,t,n),!1}function Zl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function hS(e){return e.replace(mE,function(t,n){return n.toUpperCase()})}function pb(e,t,n){var s=t.indexOf("--")===0;s||(-1<t.indexOf("-")?Qa.hasOwnProperty(t)&&Qa[t]||(Qa[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,hS(t.replace(fE,"ms-")))):dE.test(t)?Qa.hasOwnProperty(t)&&Qa[t]||(Qa[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Wy.test(n)||ap.hasOwnProperty(n)&&ap[n]||(ap[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Wy,""))),typeof n=="number"&&(isNaN(n)?e0||(e0=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||t0||(t0=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||n0.has(t)?t==="float"?e.cssFloat=n:(te(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function hb(e,t,n){if(t!=null&&typeof t!="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(t&&Object.freeze(t),e=e.style,n!=null){if(t){var s={};if(n){for(var r in n)if(n.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var o=op[r]||[r],c=0;c<o.length;c++)s[o[c]]=r}for(var f in t)if(t.hasOwnProperty(f)&&(!n||n[f]!==t[f]))for(r=op[f]||[f],o=0;o<r.length;o++)s[r[o]]=f;f={};for(var b in t)for(r=op[b]||[b],o=0;o<r.length;o++)f[r[o]]=b;b={};for(var g in s)if(r=s[g],(o=f[g])&&r!==o&&(c=r+","+o,!b[c])){b[c]=!0,c=console;var z=t[r];c.error.call(c,"%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.",z==null||typeof z=="boolean"||z===""?"Removing":"Updating",r,o)}}for(var _ in n)!n.hasOwnProperty(_)||t!=null&&t.hasOwnProperty(_)||(_.indexOf("--")===0?e.setProperty(_,""):_==="float"?e.cssFloat="":e[_]="");for(var M in t)g=t[M],t.hasOwnProperty(M)&&n[M]!==g&&pb(e,M,g)}else for(s in t)t.hasOwnProperty(s)&&pb(e,s,t[s])}function Kl(e){if(e.indexOf("-")===-1)return!1;switch(e){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 bb(e){return pE.get(e)||e}function bS(e,t){if(ar.call(Ia,t)&&Ia[t])return!0;if(bE.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=s0.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ia[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0}if(hE.test(t)){if(e=t.toLowerCase(),e=s0.hasOwnProperty(e)?e:null,e==null)return Ia[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0)}return!0}function vS(e,t){var n=[],s;for(s in t)bS(e,s)||n.push(s);t=n.map(function(r){return"`"+r+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function gS(e,t,n,s){if(ar.call(ln,t)&&ln[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="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."),ln[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(s!=null){if(e=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(t))return!0;if(s=e.hasOwnProperty(r)?e[r]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,s),ln[t]=!0;if(o0.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),ln[t]=!0}else if(o0.test(t))return vE.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ln[t]=!0;if(gE.test(t)||yE.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ln[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ln[t]=!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),ln[t]=!0;if(typeof n=="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ln[t]=!0;if(Pu.hasOwnProperty(r)){if(r=Pu[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),ln[t]=!0}else if(t!==r)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.",t,r),ln[t]=!0;switch(t){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 n){case"boolean":switch(t){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:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(n?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,t,t,n,t):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.',n,t,t,n,t,t,t),ln[t]=!0)}case"function":case"symbol":return ln[t]=!0,!1;case"string":if(n==="false"||n==="true"){switch(t){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}?",n,t,n==="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".',t,n),ln[t]=!0}}return!0}function yS(e,t,n){var s=[],r;for(r in t)gS(e,r,t[r],n)||s.push(r);t=s.map(function(o){return"`"+o+"`"}).join(", "),s.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 ",t,e):1<s.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 ",t,e)}function Jl(e){return xE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function vb(e){var t=vn(e);if(t&&(e=t.stateNode)){var n=e[wn]||null;e:switch(e=t.stateNode,t.type){case"input":if(qd(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(I(t,"name"),n=n.querySelectorAll('input[name="'+In(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var r=s[wn]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");qd(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&Jh(s)}break e;case"textarea":ob(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ta(e,!!n.multiple,t,!1)}}}function gb(e,t,n){if(lp)return e(t,n);lp=!0;try{var s=e(t);return s}finally{if(lp=!1,(Fa!==null||Za!==null)&&(ka(),Fa&&(t=Fa,e=Za,Za=Fa=null,vb(t),e)))for(t=0;t<e.length;t++)vb(e[t])}}function Wl(e,t){var n=e.stateNode;if(n===null)return null;var s=n[wn]||null;if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function yb(){if(_u)return _u;var e,t=cp,n=t.length,s,r="value"in $r?$r.value:$r.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var c=n-e;for(s=1;s<=c&&t[n-s]===r[o-s];s++);return _u=r.slice(e,1<s?1-s:void 0)}function Vc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zc(){return!0}function xb(){return!1}function yn(e){function t(n,s,r,o,c){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=o,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(n=e[f],this[f]=n?n(o):o[f]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?zc:xb,this.isPropagationStopped=xb,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zc)},persist:function(){},isPersistent:zc}),t}function xS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ME[e])?!!t[e]:!1}function Zd(){return xS}function Nb(e,t){switch(e){case"keyup":return $E.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==c0;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function NS(e,t){switch(e){case"compositionend":return Sb(t);case"keypress":return t.which!==d0?null:(m0=!0,f0);case"textInput":return e=t.data,e===f0&&m0?null:e;default:return null}}function SS(e,t){if(Ka)return e==="compositionend"||!mp&&Nb(e,t)?(e=yb(),_u=cp=$r=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return u0&&t.locale!=="ko"?null:t.data;default:return null}}function wb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!XE[e.type]:t==="textarea"}function wS(e){if(!_s)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Eb(e,t,n,s){Fa?Za?Za.push(s):Za=[s]:Fa=s,t=yu(t,"onChange"),0<t.length&&(n=new Hu("onChange","change",null,n,s),e.push({event:n,listeners:t}))}function ES(e){$g(e,0)}function kc(e){var t=ds(e);if(Jh(t))return e}function jb(e,t){if(e==="change")return t}function Tb(){Pi&&(Pi.detachEvent("onpropertychange",Db),_i=Pi=null)}function Db(e){if(e.propertyName==="value"&&kc(_i)){var t=[];Eb(t,_i,e,Fd(e)),gb(ES,t)}}function jS(e,t,n){e==="focusin"?(Tb(),Pi=t,_i=n,Pi.attachEvent("onpropertychange",Db)):e==="focusout"&&Tb()}function TS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kc(_i)}function DS(e,t){if(e==="click")return kc(t)}function CS(e,t){if(e==="input"||e==="change")return kc(t)}function RS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ei(e,t){if(cn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!ar.call(t,r)||!cn(e[r],t[r]))return!1}return!0}function Cb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rb(e,t){var n=Cb(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cb(n)}}function Ub(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ub(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ab(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ac(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ac(e.document)}return t}function Kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ob(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hp||Ja==null||Ja!==Ac(s)||(s=Ja,"selectionStart"in s&&Kd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Hi&&ei(Hi,s)||(Hi=s,s=yu(pp,"onSelect"),0<s.length&&(t=new Hu("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ja)))}function Do(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Co(e){if(bp[e])return bp[e];if(!Wa[e])return e;var t=Wa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in h0)return bp[e]=t[n];return e}function fs(e,t){x0.set(e,t),K(t,[e])}function _n(e,t){if(typeof e=="object"&&e!==null){var n=gp.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ql(t)},gp.set(e,t),t)}return{value:e,source:t,stack:Ql(t)}}function Pc(){for(var e=el,t=yp=el=0;t<e;){var n=Jn[t];Jn[t++]=null;var s=Jn[t];Jn[t++]=null;var r=Jn[t];Jn[t++]=null;var o=Jn[t];if(Jn[t++]=null,s!==null&&r!==null){var c=s.pending;c===null?r.next=r:(r.next=c.next,c.next=r),s.pending=r}o!==0&&Mb(n,r,o)}}function _c(e,t,n,s){Jn[el++]=e,Jn[el++]=t,Jn[el++]=n,Jn[el++]=s,yp|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Jd(e,t,n,s){return _c(e,t,n,s),Hc(e)}function xn(e,t){return _c(e,null,null,t),Hc(e)}function Mb(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,s=o.alternate,s!==null&&(s.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&Lu||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-an(n),e=o.hiddenUpdates,s=e[r],s===null?e[r]=[t]:s.push(t),t.lane=n|536870912),o):null}function Hc(e){if(lc>bj)throw na=lc=0,ic=Fp=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.");na>vj&&(na=0,ic=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.")),e.alternate===null&&(e.flags&4098)!==0&&_g(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&_g(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Ro(e){if(Wn===null)return e;var t=Wn(e);return t===void 0?e:t.current}function Wd(e){if(Wn===null)return e;var t=Wn(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Ro(e.render),e.render!==t)?(t={$$typeof:Ci,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Vb(e,t){if(Wn===null)return!1;var n=e.elementType;t=t.type;var s=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(s=!0);break;case 0:(typeof t=="function"||r===qn)&&(s=!0);break;case 11:(r===Ci||r===qn)&&(s=!0);break;case 14:case 15:(r===Uu||r===qn)&&(s=!0);break;default:return!1}return!!(s&&(e=Wn(n),e!==void 0&&e===Wn(t)))}function zb(e){Wn!==null&&typeof WeakSet=="function"&&(tl===null&&(tl=new WeakSet),tl.add(e))}function ef(e,t,n){var s=e.alternate,r=e.child,o=e.sibling,c=e.tag,f=e.type,b=null;switch(c){case 0:case 15:case 1:b=f;break;case 11:b=f.render}if(Wn===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;f=!1,b!==null&&(b=Wn(b),b!==void 0&&(n.has(b)?f=!0:t.has(b)&&(c===1?f=!0:g=!0))),tl!==null&&(tl.has(e)||s!==null&&tl.has(s))&&(f=!0),f&&(e._debugNeedsRemount=!0),(f||g)&&(s=xn(e,2),s!==null&&Rt(s,e,2)),r===null||f||ef(r,t,n),o!==null&&ef(o,t,n)}function US(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,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,S0||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function tf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zs(e,t){var n=e.alternate;switch(n===null?(n=y(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=Ro(e.type);break;case 1:n.type=Ro(e.type);break;case 11:n.type=Wd(e.type)}return n}function kb(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function nf(e,t,n,s,r,o){var c=0,f=e;if(typeof e=="function")tf(e)&&(c=1),f=Ro(f);else if(typeof e=="string")c=H(),c=Uw(e,n,c)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Xm:return t=y(31,n,t,r),t.elementType=Xm,t.lanes=o,t;case Ya:return Uo(n.children,r,o,t);case Ru:c=8,r|=en,r|=hs;break;case Ym:return e=n,s=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=y(12,e,t,s|Ft),t.elementType=Ym,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case $m:return t=y(13,n,t,r),t.elementType=$m,t.lanes=o,t;case Qm:return t=y(19,n,t,r),t.elementType=Qm,t.lanes=o,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gw:case Ms:c=10;break e;case Gm:c=9;break e;case Ci:c=11,f=Wd(f);break e;case Uu:c=14;break e;case qn:c=16,f=null;break e}f="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":It(e)?n="array":e!==void 0&&e.$$typeof===Br?(n="<"+(ye(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(c=s?F(s):null)&&(f+=`
115
-
116
- Check the render method of \``+c+"`."),c=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+f)),f=null}return t=y(c,n,t,r),t.elementType=e,t.type=f,t.lanes=o,t._debugOwner=s,t}function Bc(e,t,n){return t=nf(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Uo(e,t,n,s){return e=y(7,e,s,t),e.lanes=n,e}function sf(e,t,n){return e=y(6,e,null,t),e.lanes=n,e}function rf(e,t,n){return t=y(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ao(e,t){Oo(),nl[sl++]=Yu,nl[sl++]=qu,qu=e,Yu=t}function Pb(e,t,n){Oo(),es[ts++]=cr,es[ts++]=ur,es[ts++]=Go,Go=e;var s=cr;e=ur;var r=32-an(s)-1;s&=~(1<<r),n+=1;var o=32-an(t)+r;if(30<o){var c=r-r%5;o=(s&(1<<c)-1).toString(32),s>>=c,r-=c,cr=1<<32-an(t)+r|n<<r|s,ur=o+e}else cr=1<<o|n<<r|s,ur=e}function of(e){Oo(),e.return!==null&&(Ao(e,1),Pb(e,1,0))}function af(e){for(;e===qu;)qu=nl[--sl],nl[sl]=null,Yu=nl[--sl],nl[sl]=null;for(;e===Go;)Go=es[--ts],es[ts]=null,ur=es[--ts],es[ts]=null,cr=es[--ts],es[ts]=null}function Oo(){We||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Mo(e,t){if(e.return===null){if(ns===null)ns={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(ns.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ns.distanceFromLeaf>t&&(ns.distanceFromLeaf=t)}return ns}var n=Mo(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function lf(e,t){dr||(e=Mo(e,0),e.serverProps=null,t!==null&&(t=oy(t),e.serverTail.push(t)))}function Vo(e){var t="",n=ns;throw n!==null&&(ns=null,t=Xd(n)),si(_n(Error(`Hydration failed because the server rendered 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:
117
-
118
- - A server/client branch \`if (typeof window !== 'undefined')\`.
119
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
120
- - Date formatting in a user's locale which doesn't match the server.
121
- - External changing data without sending a snapshot of it along with the HTML.
122
- - Invalid HTML tag nesting.
123
-
124
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
125
-
126
- https://react.dev/link/hydration-mismatch`+t),e)),xp}function _b(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[Wt]=e,t[wn]=s,jm(n,s),n){case"dialog":Xe("cancel",t),Xe("close",t);break;case"iframe":case"object":case"embed":Xe("load",t);break;case"video":case"audio":for(n=0;n<cc.length;n++)Xe(cc[n],t);break;case"source":Xe("error",t);break;case"img":case"image":case"link":Xe("error",t),Xe("load",t);break;case"details":Xe("toggle",t);break;case"input":ve("input",s),Xe("invalid",t),Wh(t,s),eb(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),Uc(t);break;case"option":tb(t,s);break;case"select":ve("select",s),Xe("invalid",t),sb(t,s);break;case"textarea":ve("textarea",s),Xe("invalid",t),rb(t,s),ab(t,s.value,s.defaultValue,s.children),Uc(t)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||Fg(t.textContent,n)?(s.popover!=null&&(Xe("beforetoggle",t),Xe("toggle",t)),s.onScroll!=null&&Xe("scroll",t),s.onScrollEnd!=null&&Xe("scrollend",t),s.onClick!=null&&(t.onclick=xu),t=!0):t=!1,t||Vo(e)}function Hb(e){for(un=e.return;un;)switch(un.tag){case 5:case 13:Hs=!1;return;case 27:case 3:Hs=!0;return;default:un=un.return}}function ti(e){if(e!==un)return!1;if(!We)return Hb(e),We=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Um(e.type,e.memoizedProps)),n=!n),n&&Et){for(n=Et;n;){var s=Mo(e,0),r=oy(n);s.serverTail.push(r),n=r.type==="Suspense"?ly(n):Zn(n.nextSibling)}Vo(e)}if(Hb(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Et=ly(e)}else t===27?(t=Et,Hr(e.type)?(e=lh,lh=null,Et=e):Et=t):Et=un?Zn(e.stateNode.nextSibling):null;return!0}function ni(){Et=un=null,dr=We=!1}function Bb(){var e=$o;return e!==null&&(mn===null?mn=e:mn.push.apply(mn,e),$o=null),e}function si(e){$o===null?$o=[e]:$o.push(e)}function Lb(){var e=ns;if(e!==null){ns=null;for(var t=Xd(e);0<e.children.length;)e=e.children[0];Ne(e.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:
127
-
128
- - A server/client branch \`if (typeof window !== 'undefined')\`.
129
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
130
- - Date formatting in a user's locale which doesn't match the server.
131
- - External changing data without sending a snapshot of it along with the HTML.
132
- - Invalid HTML tag nesting.
133
-
134
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
135
-
136
- %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Lc(){rl=Gu=null,ol=!1}function Ar(e,t,n){re(Np,t._currentValue,e),t._currentValue=n,re(Sp,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==T0&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=T0}function Ks(e,t){e._currentValue=Np.current;var n=Sp.current;B(Sp,t),e._currentRenderer=n,B(Np,t)}function cf(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}e!==n&&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 uf(e,t,n,s){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var c=r.child;o=o.firstContext;e:for(;o!==null;){var f=o;o=r;for(var b=0;b<t.length;b++)if(f.context===t[b]){o.lanes|=n,f=o.alternate,f!==null&&(f.lanes|=n),cf(o.return,n,e),s||(c=null);break e}o=f.next}}else if(r.tag===18){if(c=r.return,c===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");c.lanes|=n,o=c.alternate,o!==null&&(o.lanes|=n),cf(c,n,e),c=null}else c=r.child;if(c!==null)c.return=r;else for(c=r;c!==null;){if(c===e){c=null;break}if(r=c.sibling,r!==null){r.return=c.return,c=r;break}c=c.return}r=c}}function ri(e,t,n,s){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var c=r.alternate;if(c===null)throw Error("Should have a current fiber. This is a bug in React.");if(c=c.memoizedProps,c!==null){var f=r.type;cn(r.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(r===Au.current){if(c=r.alternate,c===null)throw Error("Should have a current fiber. This is a bug in React.");c.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(mc):e=[mc])}r=r.return}e!==null&&uf(t,e,n,s),t.flags|=262144}function qc(e){for(e=e.firstContext;e!==null;){if(!cn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zo(e){Gu=e,rl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return ol&&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()."),qb(Gu,e)}function Yc(e,t){return Gu===null&&zo(e),qb(e,t)}function qb(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},rl===null){if(e===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().");rl=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else rl=rl.next=t;return n}function df(){return{controller:new tj,data:new Map,refCount:0}}function ko(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function oi(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&nj(sj,function(){e.controller.abort()})}function Js(){var e=Qo;return Qo=0,e}function Gc(e){var t=Qo;return Qo=e,t}function ai(e){var t=Qo;return Qo+=e,t}function ff(e){En=al(),0>e.actualStartTime&&(e.actualStartTime=En)}function mf(e){if(0<=En){var t=al()-En;e.actualDuration+=t,e.selfBaseDuration=t,En=-1}}function Yb(e){if(0<=En){var t=al()-En;e.actualDuration+=t,En=-1}}function Ts(){if(0<=En){var e=al()-En;En=-1,Qo+=e}}function Ds(){En=al()}function $c(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function AS(e,t){if(Bi===null){var n=Bi=[];wp=0,Xo=Nm(),ll={status:"pending",value:void 0,then:function(s){n.push(s)}}}return wp++,t.then(Gb,Gb),t}function Gb(){if(--wp===0&&Bi!==null){ll!==null&&(ll.status="fulfilled");var e=Bi;Bi=null,Xo=0,ll=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function OS(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(s.status="rejected",s.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),s}function pf(){var e=Io.current;return e!==null?e:ut.pooledCache}function Qc(e,t){t===null?re(Io,Io.current,e):re(Io,t.pool,e)}function $b(){var e=pf();return e===null?null:{parent:Pt._currentValue,pool:e}}function Qb(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Xb(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xc(){}function Ib(e,t,n){P.actQueue!==null&&(P.didUsePromise=!0);var s=e.thenables;switch(n=s[n],n===void 0?s.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.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.")),t.then(Xc,Xc),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zb(e),e;default:if(typeof t.status=="string")t.then(Xc,Xc);else{if(e=ut,e!==null&&100<e.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.");e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zb(e),e}throw Ii=t,Zu=!0,Xi}}function Fb(){if(Ii===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Ii;return Ii=null,Zu=!1,e}function Zb(e){if(e===Xi||e===Fu)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 hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Or(e){return{lane:e,tag:A0,payload:null,callback:null,next:null}}function Mr(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Tp===s&&!V0){var r=Z(e);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.
137
-
138
- Please update the following component: %s`,r),V0=!0}return(tt&fn)!==Gn?(r=s.pending,r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,t=Hc(e),Mb(e,null,n),t):(_c(e,s,t,n),Hc(e))}function li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Is(e,n)}}function Ic(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var c={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=c:o=o.next=c,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ii(){if(Dp){var e=ll;if(e!==null)throw e}}function ci(e,t,n,s){Dp=!1;var r=e.updateQueue;Xr=!1,Tp=r.shared;var o=r.firstBaseUpdate,c=r.lastBaseUpdate,f=r.shared.pending;if(f!==null){r.shared.pending=null;var b=f,g=b.next;b.next=null,c===null?o=g:c.next=g,c=b;var z=e.alternate;z!==null&&(z=z.updateQueue,f=z.lastBaseUpdate,f!==c&&(f===null?z.firstBaseUpdate=g:f.next=g,z.lastBaseUpdate=b))}if(o!==null){var _=r.baseState;c=0,z=g=b=null,f=o;do{var M=f.lane&-536870913,L=M!==f.lane;if(L?(Qe&M)===M:(s&M)===M){M!==0&&M===Xo&&(Dp=!0),z!==null&&(z=z.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{M=e;var fe=f,Ce=t,dt=n;switch(fe.tag){case O0:if(fe=fe.payload,typeof fe=="function"){ol=!0;var Ie=fe.call(dt,_,Ce);if(M.mode&en){pe(!0);try{fe.call(dt,_,Ce)}finally{pe(!1)}}ol=!1,_=Ie;break e}_=fe;break e;case jp:M.flags=M.flags&-65537|128;case A0:if(Ie=fe.payload,typeof Ie=="function"){if(ol=!0,fe=Ie.call(dt,_,Ce),M.mode&en){pe(!0);try{Ie.call(dt,_,Ce)}finally{pe(!1)}}ol=!1}else fe=Ie;if(fe==null)break e;_=Le({},_,fe);break e;case M0:Xr=!0}}M=f.callback,M!==null&&(e.flags|=64,L&&(e.flags|=8192),L=r.callbacks,L===null?r.callbacks=[M]:L.push(M))}else L={lane:M,tag:f.tag,payload:f.payload,callback:f.callback,next:null},z===null?(g=z=L,b=_):z=z.next=L,c|=M;if(f=f.next,f===null){if(f=r.shared.pending,f===null)break;L=f,f=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);z===null&&(b=_),r.baseState=b,r.firstBaseUpdate=g,r.lastBaseUpdate=z,o===null&&(r.shared.lanes=0),Kr|=c,e.lanes=c,e.memoizedState=_}Tp=null}function Kb(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function MS(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Kb(n[e],t)}function Jb(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Kb(n[e],t)}function Wb(e,t){var n=qs;re(Ku,n,e),re(il,t,e),qs=n|t.baseLanes}function vf(e){re(Ku,qs,e),re(il,il.current,e)}function gf(e){qs=Ku.current,B(il,e),B(Ku,e)}function $e(){var e=k;os===null?os=[e]:os.push(e)}function J(){var e=k;if(os!==null&&(mr++,os[mr]!==e)){var t=Z(Re);if(!z0.has(t)&&(z0.add(t),os!==null)){for(var n="",s=0;s<=mr;s++){var r=os[s],o=s===mr?e:r;for(r=s+1+". "+r;30>r.length;)r+=" ";r+=o+`
139
- `,n+=r}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
140
-
141
- Previous render Next render
142
- ------------------------------------------------------
143
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144
- `,t,n)}}}function Ra(e){e==null||It(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",k,typeof e)}function Fc(){var e=Z(Re);P0.has(e)||(P0.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Ct(){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:
145
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
146
- 2. You might be breaking the Rules of Hooks
147
- 3. You might have more than one copy of React in the same app
148
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function yf(e,t){if(Zi)return!1;if(t===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.",k),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
149
-
150
- Previous: %s
151
- Incoming: %s`,k,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}function xf(e,t,n,s,r,o){Ir=o,Re=t,os=e!==null?e._debugHookTypes:null,mr=-1,Zi=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(o=Z(Re),Cp.has(o)||(Cp.add(o),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.",o===null?"An unknown Component":"<"+o+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e!==null&&e.memoizedState!==null?Up:os!==null?_0:Rp,Zo=o=(t.mode&en)!==mt;var c=Ap(n,s,r);if(Zo=!1,ul&&(c=Nf(t,n,s,r)),o){pe(!0);try{c=Nf(t,n,s,r)}finally{pe(!1)}}return ev(e,t),c}function ev(e,t){t._debugHookTypes=os,t.dependencies===null?fr!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:fr}):t.dependencies._debugThenableState=fr,P.H=ed;var n=lt!==null&&lt.next!==null;if(Ir=0,os=k=Vt=lt=Re=null,mr=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Ju=!1,Fi=0,fr=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Yt||(e=e.dependencies,e!==null&&qc(e)&&(Yt=!0)),Zu?(Zu=!1,e=!0):e=!1,e&&(t=Z(t)||"Unknown",k0.has(t)||Cp.has(t)||(k0.add(t),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 Nf(e,t,n,s){Re=e;var r=0;do{if(ul&&(fr=null),Fi=0,ul=!1,r>=oj)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Zi=!1,Vt=lt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}mr=-1,P.H=H0,o=Ap(t,n,s)}while(ul);return o}function VS(){var e=P.H,t=e.useState()[0];return t=typeof t.then=="function"?ui(t):t,e=e.useState()[0],(lt!==null?lt.memoizedState:null)!==e&&(Re.flags|=1024),t}function Sf(){var e=Wu!==0;return Wu=0,e}function wf(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&hs)!==mt?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function Ef(e){if(Ju){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ju=!1}Ir=0,os=Vt=lt=Re=null,mr=-1,k=null,ul=!1,Fi=Wu=0,fr=null}function Nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Re.memoizedState=Vt=e:Vt=Vt.next=e,Vt}function rt(){if(lt===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=lt.next;var t=Vt===null?Re.memoizedState:Vt.next;if(t!==null)Vt=t,lt=e;else{if(e===null)throw Re.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");lt=e,e={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Vt===null?Re.memoizedState=Vt=e:Vt=Vt.next=e}return Vt}function jf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ui(e){var t=Fi;return Fi+=1,fr===null&&(fr=Qb()),e=Ib(fr,e,t),t=Re,(Vt===null?t.memoizedState:Vt.next)===null&&(t=t.alternate,P.H=t!==null&&t.memoizedState!==null?Up:Rp),e}function Vr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ui(e);if(e.$$typeof===Ms)return vt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Po(e){var t=null,n=Re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=Re.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=jf(),Re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Zi)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=$w;else n.length!==e&&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.",n.length,e);return t.index++,n}function ms(e,t){return typeof t=="function"?t(e):t}function Tf(e,t,n){var s=Nn();if(n!==void 0){var r=n(t);if(Zo){pe(!0);try{n(t)}finally{pe(!1)}}}else r=t;return s.memoizedState=s.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},s.queue=e,e=e.dispatch=_S.bind(null,Re,e),[s.memoizedState,e]}function Ua(e){var t=rt();return Df(t,lt,e)}function Df(e,t,n){var s=e.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=n;var r=e.baseQueue,o=s.pending;if(o!==null){if(r!==null){var c=r.next;r.next=o.next,o.next=c}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=o,s.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var f=c=null,b=null,g=t,z=!1;do{var _=g.lane&-536870913;if(_!==g.lane?(Qe&_)===_:(Ir&_)===_){var M=g.revertLane;if(M===0)b!==null&&(b=b.next={lane:0,revertLane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),_===Xo&&(z=!0);else if((Ir&M)===M){g=g.next,M===Xo&&(z=!0);continue}else _={lane:0,revertLane:g.revertLane,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},b===null?(f=b=_,c=o):b=b.next=_,Re.lanes|=M,Kr|=M;_=g.action,Zo&&n(o,_),o=g.hasEagerState?g.eagerState:n(o,_)}else M={lane:_,revertLane:g.revertLane,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},b===null?(f=b=M,c=o):b=b.next=M,Re.lanes|=_,Kr|=_;g=g.next}while(g!==null&&g!==t);if(b===null?c=o:b.next=f,!cn(o,e.memoizedState)&&(Yt=!0,z&&(n=ll,n!==null)))throw n;e.memoizedState=o,e.baseState=c,e.baseQueue=b,s.lastRenderedState=o}return r===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function di(e){var t=rt(),n=t.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var s=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var c=r=r.next;do o=e(o,c.action),c=c.next;while(c!==r);cn(o,t.memoizedState)||(Yt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,s]}function Cf(e,t,n){var s=Re,r=Nn();if(We){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=n();cl||o===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),cl=!0)}else{if(o=t(),cl||(n=t(),cn(o,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),cl=!0)),ut===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Qe&124)!==0||tv(s,t,o)}return r.memoizedState=o,n={value:o,getSnapshot:t},r.queue=n,eu(sv.bind(null,s,n,e),[e]),s.flags|=2048,Oa(rs|_t,Wc(),nv.bind(null,s,n,o,t),null),o}function Zc(e,t,n){var s=Re,r=rt(),o=We;if(o){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!cl){var c=t();cn(n,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),cl=!0)}(c=!cn((lt||r).memoizedState,n))&&(r.memoizedState=n,Yt=!0),r=r.queue;var f=sv.bind(null,s,r,e);if(Sn(2048,_t,f,[e]),r.getSnapshot!==t||c||Vt!==null&&Vt.memoizedState.tag&rs){if(s.flags|=2048,Oa(rs|_t,Wc(),nv.bind(null,s,r,n,t),null),ut===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||(Ir&124)!==0||tv(s,t,n)}return n}function tv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t=jf(),Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nv(e,t,n,s){t.value=n,t.getSnapshot=s,rv(t)&&ov(e)}function sv(e,t,n){return n(function(){rv(t)&&ov(e)})}function rv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cn(e,n)}catch{return!0}}function ov(e){var t=xn(e,2);t!==null&&Rt(t,e,2)}function Rf(e){var t=Nn();if(typeof e=="function"){var n=e;if(e=n(),Zo){pe(!0);try{n()}finally{pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:e},t}function Uf(e){e=Rf(e);var t=e.queue,n=Ev.bind(null,Re,t);return t.dispatch=n,[e.memoizedState,n]}function Af(e){var t=Nn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gf.bind(null,Re,!0,n),n.dispatch=t,[e,t]}function av(e,t){var n=rt();return lv(n,lt,e,t)}function lv(e,t,n,s){return e.baseState=n,Df(e,lt,typeof s=="function"?s:ms)}function iv(e,t){var n=rt();return lt!==null?lv(n,lt,e,t):(n.baseState=e,[e,n.queue.dispatch])}function zS(e,t,n,s,r){if(ru(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){o.listeners.push(c)}};P.T!==null?n(!0):o.isTransition=!1,s(o),n=t.pending,n===null?(o.next=t.pending=o,cv(t,o)):(o.next=n.next,t.pending=n.next=o)}}function cv(e,t){var n=t.action,s=t.payload,r=e.state;if(t.isTransition){var o=P.T,c={};P.T=c,P.T._updatedFibers=new Set;try{var f=n(r,s),b=P.S;b!==null&&b(c,f),uv(e,t,f)}catch(g){Of(e,t,g)}finally{P.T=o,o===null&&c._updatedFibers&&(e=c._updatedFibers.size,c._updatedFibers.clear(),10<e&&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{c=n(r,s),uv(e,t,c)}catch(g){Of(e,t,g)}}function uv(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?(n.then(function(s){dv(e,t,s)},function(s){return Of(e,t,s)}),t.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.")):dv(e,t,n)}function dv(e,t,n){t.status="fulfilled",t.value=n,fv(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,cv(e,n)))}function Of(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,fv(t),t=t.next;while(t!==s)}e.action=null}function fv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mv(e,t){return t}function Aa(e,t){if(We){var n=ut.formState;if(n!==null){e:{var s=Re;if(We){if(Et){t:{for(var r=Et,o=Hs;r.nodeType!==8;){if(!o){r=null;break t}if(r=Zn(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o===sh||o===Px?r:null}if(r){Et=Zn(r.nextSibling),s=r.data===sh;break e}}Vo(s)}s=!1}s&&(t=n[0])}}return n=Nn(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mv,lastRenderedState:t},n.queue=s,n=Ev.bind(null,Re,s),s.dispatch=n,s=Rf(!1),o=Gf.bind(null,Re,!1,s.queue),s=Nn(),r={state:t,dispatch:null,action:e,pending:null},s.queue=r,n=zS.bind(null,Re,r,o,n),r.dispatch=n,s.memoizedState=e,[t,n,!1]}function Kc(e){var t=rt();return pv(t,lt,e)}function pv(e,t,n){if(t=Df(e,t,mv)[0],e=Ua(ms)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ui(t)}catch(c){throw c===Xi?Fu:c}else s=t;t=rt();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(Re.flags|=2048,Oa(rs|_t,Wc(),kS.bind(null,r,n),null)),[s,o,e]}function kS(e,t){e.action=t}function Jc(e){var t=rt(),n=lt;if(n!==null)return pv(t,n,e);rt(),t=t.memoizedState,n=rt();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function Oa(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=Re.updateQueue,t===null&&(t=jf(),Re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function Wc(){return{destroy:void 0,resource:void 0}}function Mf(e){var t=Nn();return e={current:e},t.memoizedState=e}function _o(e,t,n,s){var r=Nn();s=s===void 0?null:s,Re.flags|=e,r.memoizedState=Oa(rs|t,Wc(),n,s)}function Sn(e,t,n,s){var r=rt();s=s===void 0?null:s;var o=r.memoizedState.inst;lt!==null&&s!==null&&yf(s,lt.memoizedState.deps)?r.memoizedState=Oa(t,o,n,s):(Re.flags|=e,r.memoizedState=Oa(rs|t,o,n,s))}function eu(e,t){(Re.mode&hs)!==mt&&(Re.mode&N0)===mt?_o(276826112,_t,e,t):_o(8390656,_t,e,t)}function Vf(e,t){var n=4194308;return(Re.mode&hs)!==mt&&(n|=134217728),_o(n,Zt,e,t)}function hv(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return t.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(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function zf(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null;var s=4194308;(Re.mode&hs)!==mt&&(s|=134217728),_o(s,Zt,hv.bind(null,t,e),n)}function tu(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null,Sn(4,Zt,hv.bind(null,t,e),n)}function kf(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e}function nu(e,t){var n=rt();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&yf(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Pf(e,t){var n=Nn();t=t===void 0?null:t;var s=e();if(Zo){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[s,t],s}function su(e,t){var n=rt();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&yf(t,s[1]))return s[0];if(s=e(),Zo){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[s,t],s}function _f(e,t){var n=Nn();return Hf(n,e,t)}function bv(e,t){var n=rt();return gv(n,lt.memoizedState,e,t)}function vv(e,t){var n=rt();return lt===null?Hf(n,e,t):gv(n,lt.memoizedState,e,t)}function Hf(e,t,n){return n===void 0||(Ir&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=yg(),Re.lanes|=e,Kr|=e,n)}function gv(e,t,n,s){return cn(n,t)?n:il.current!==null?(e=Hf(e,n,s),cn(e,t)||(Yt=!0),e):(Ir&42)===0?(Yt=!0,e.memoizedState=n):(e=yg(),Re.lanes|=e,Kr|=e,t)}function yv(e,t,n,s,r){var o=et.p;et.p=o!==0&&o<ks?o:ks;var c=P.T,f={};P.T=f,Gf(e,!1,t,n),f._updatedFibers=new Set;try{var b=r(),g=P.S;if(g!==null&&g(f,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var z=OS(b,s);fi(e,t,z,Ln(e))}else fi(e,t,s,Ln(e))}catch(_){fi(e,t,{then:function(){},status:"rejected",reason:_},Ln(e))}finally{et.p=o,P.T=c,c===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._updatedFibers.clear(),10<e&&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 Bf(e,t,n,s){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=xv(e).queue;yv(e,r,t,la,n===null?A:function(){return Nv(e),n(s)})}function xv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:la,baseState:la,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:la},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Nv(e){P.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=xv(e).next.queue;fi(e,t,{},Ln(e))}function Lf(){var e=Rf(!1);return e=yv.bind(null,Re,e.queue,!0,!1),Nn().memoizedState=e,[!1,e]}function Sv(){var e=Ua(ms)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:ui(e),t]}function wv(){var e=di(ms)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:ui(e),t]}function Ho(){return vt(mc)}function qf(){var e=Nn(),t=ut.identifierPrefix;if(We){var n=ur,s=cr;n=(s&~(1<<32-an(s)-1)).toString(32)+n,t="«"+t+"R"+n,n=Wu++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=rj++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t}function Yf(){return Nn().memoizedState=PS.bind(null,Re)}function PS(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=Ln(n);e=Or(s);var r=Mr(n,e,s);r!==null&&(Rt(r,n,s),li(r,n,s)),n=df(),t!=null&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:n};return}n=n.return}}function _S(e,t,n){var s=arguments;typeof s[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()."),s=Ln(e);var r={lane:s,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};ru(e)?jv(t,r):(r=Jd(e,t,r,s),r!==null&&(Rt(r,e,s),Tv(r,t,s))),ws(e,s)}function Ev(e,t,n){var s=arguments;typeof s[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()."),s=Ln(e),fi(e,t,n,s),ws(e,s)}function fi(e,t,n,s){var r={lane:s,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ru(e))jv(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null)){var c=P.H;P.H=vs;try{var f=t.lastRenderedState,b=o(f,n);if(r.hasEagerState=!0,r.eagerState=b,cn(b,f))return _c(e,t,r,0),ut===null&&Pc(),!1}catch{}finally{P.H=c}}if(n=Jd(e,t,r,s),n!==null)return Rt(n,e,s),Tv(n,t,s),!0}return!1}function Gf(e,t,n,s){if(P.T===null&&Xo===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."),s={lane:2,revertLane:Nm(),action:s,hasEagerState:!1,eagerState:null,next:null},ru(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Jd(e,n,s,2),t!==null&&Rt(t,e,2);ws(e,2)}function ru(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function jv(e,t){ul=Ju=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tv(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Is(e,n)}}function $t(e){var t=He;return e!=null&&(He=t===null?e:t.concat(e)),t}function ou(e,t,n){for(var s=Object.keys(e.props),r=0;r<s.length;r++){var o=s[r];if(o!=="children"&&o!=="key"){t===null&&(t=Bc(e,n.mode,0),t._debugInfo=He,t.return=n),Ne(t,function(c){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c)},o);break}}}function au(e){var t=Ki;return Ki+=1,dl===null&&(dl=Qb()),Ib(dl,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lu(e,t){throw t.$$typeof===Yw?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
152
- - Multiple copies of the "react" package is used.
153
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
154
- - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function iu(e,t){var n=Z(e)||"Component";ex[n]||(ex[n]=!0,t=t.displayName||t.name||"Component",e.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.
155
- root.render(%s)`,t,t,t):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.
156
- <%s>{%s}</%s>`,t,t,n,t,n))}function cu(e,t){var n=Z(e)||"Component";tx[n]||(tx[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
157
- root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
158
- <%s>%s</%s>`,n,t,n))}function Dv(e){function t(S,w){if(e){var D=S.deletions;D===null?(S.deletions=[w],S.flags|=16):D.push(w)}}function n(S,w){if(!e)return null;for(;w!==null;)t(S,w),w=w.sibling;return null}function s(S){for(var w=new Map;S!==null;)S.key!==null?w.set(S.key,S):w.set(S.index,S),S=S.sibling;return w}function r(S,w){return S=Zs(S,w),S.index=0,S.sibling=null,S}function o(S,w,D){return S.index=D,e?(D=S.alternate,D!==null?(D=D.index,D<w?(S.flags|=67108866,w):D):(S.flags|=67108866,w)):(S.flags|=1048576,w)}function c(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function f(S,w,D,Y){return w===null||w.tag!==6?(w=sf(D,S.mode,Y),w.return=S,w._debugOwner=S,w._debugTask=S._debugTask,w._debugInfo=He,w):(w=r(w,D),w.return=S,w._debugInfo=He,w)}function b(S,w,D,Y){var ne=D.type;return ne===Ya?(w=z(S,w,D.props.children,Y,D.key),ou(D,w,S),w):w!==null&&(w.elementType===ne||Vb(w,D)||typeof ne=="object"&&ne!==null&&ne.$$typeof===qn&&Fr(ne)===w.type)?(w=r(w,D.props),mi(w,D),w.return=S,w._debugOwner=D._owner,w._debugInfo=He,w):(w=Bc(D,S.mode,Y),mi(w,D),w.return=S,w._debugInfo=He,w)}function g(S,w,D,Y){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=rf(D,S.mode,Y),w.return=S,w._debugInfo=He,w):(w=r(w,D.children||[]),w.return=S,w._debugInfo=He,w)}function z(S,w,D,Y,ne){return w===null||w.tag!==7?(w=Uo(D,S.mode,Y,ne),w.return=S,w._debugOwner=S,w._debugTask=S._debugTask,w._debugInfo=He,w):(w=r(w,D),w.return=S,w._debugInfo=He,w)}function _(S,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=sf(""+w,S.mode,D),w.return=S,w._debugOwner=S,w._debugTask=S._debugTask,w._debugInfo=He,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Br:return D=Bc(w,S.mode,D),mi(D,w),D.return=S,S=$t(w._debugInfo),D._debugInfo=He,He=S,D;case qa:return w=rf(w,S.mode,D),w.return=S,w._debugInfo=He,w;case qn:var Y=$t(w._debugInfo);return w=Fr(w),S=_(S,w,D),He=Y,S}if(It(w)||ge(w))return D=Uo(w,S.mode,D,null),D.return=S,D._debugOwner=S,D._debugTask=S._debugTask,S=$t(w._debugInfo),D._debugInfo=He,He=S,D;if(typeof w.then=="function")return Y=$t(w._debugInfo),S=_(S,au(w),D),He=Y,S;if(w.$$typeof===Ms)return _(S,Yc(S,w),D);lu(S,w)}return typeof w=="function"&&iu(S,w),typeof w=="symbol"&&cu(S,w),null}function M(S,w,D,Y){var ne=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:f(S,w,""+D,Y);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Br:return D.key===ne?(ne=$t(D._debugInfo),S=b(S,w,D,Y),He=ne,S):null;case qa:return D.key===ne?g(S,w,D,Y):null;case qn:return ne=$t(D._debugInfo),D=Fr(D),S=M(S,w,D,Y),He=ne,S}if(It(D)||ge(D))return ne!==null?null:(ne=$t(D._debugInfo),S=z(S,w,D,Y,null),He=ne,S);if(typeof D.then=="function")return ne=$t(D._debugInfo),S=M(S,w,au(D),Y),He=ne,S;if(D.$$typeof===Ms)return M(S,w,Yc(S,D),Y);lu(S,D)}return typeof D=="function"&&iu(S,D),typeof D=="symbol"&&cu(S,D),null}function L(S,w,D,Y,ne){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return S=S.get(D)||null,f(w,S,""+Y,ne);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Br:return D=S.get(Y.key===null?D:Y.key)||null,S=$t(Y._debugInfo),w=b(w,D,Y,ne),He=S,w;case qa:return S=S.get(Y.key===null?D:Y.key)||null,g(w,S,Y,ne);case qn:var Ae=$t(Y._debugInfo);return Y=Fr(Y),w=L(S,w,D,Y,ne),He=Ae,w}if(It(Y)||ge(Y))return D=S.get(D)||null,S=$t(Y._debugInfo),w=z(w,D,Y,ne,null),He=S,w;if(typeof Y.then=="function")return Ae=$t(Y._debugInfo),w=L(S,w,D,au(Y),ne),He=Ae,w;if(Y.$$typeof===Ms)return L(S,w,D,Yc(w,Y),ne);lu(w,Y)}return typeof Y=="function"&&iu(w,Y),typeof Y=="symbol"&&cu(w,Y),null}function fe(S,w,D,Y){if(typeof D!="object"||D===null)return Y;switch(D.$$typeof){case Br:case qa:E(S,w,D);var ne=D.key;if(typeof ne!="string")break;if(Y===null){Y=new Set,Y.add(ne);break}if(!Y.has(ne)){Y.add(ne);break}Ne(w,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.",ne)});break;case qn:D=Fr(D),fe(S,w,D,Y)}return Y}function Ce(S,w,D,Y){for(var ne=null,Ae=null,me=null,Oe=w,ke=w=0,pt=null;Oe!==null&&ke<D.length;ke++){Oe.index>ke?(pt=Oe,Oe=null):pt=Oe.sibling;var At=M(S,Oe,D[ke],Y);if(At===null){Oe===null&&(Oe=pt);break}ne=fe(S,At,D[ke],ne),e&&Oe&&At.alternate===null&&t(S,Oe),w=o(At,w,ke),me===null?Ae=At:me.sibling=At,me=At,Oe=pt}if(ke===D.length)return n(S,Oe),We&&Ao(S,ke),Ae;if(Oe===null){for(;ke<D.length;ke++)Oe=_(S,D[ke],Y),Oe!==null&&(ne=fe(S,Oe,D[ke],ne),w=o(Oe,w,ke),me===null?Ae=Oe:me.sibling=Oe,me=Oe);return We&&Ao(S,ke),Ae}for(Oe=s(Oe);ke<D.length;ke++)pt=L(Oe,S,ke,D[ke],Y),pt!==null&&(ne=fe(S,pt,D[ke],ne),e&&pt.alternate!==null&&Oe.delete(pt.key===null?ke:pt.key),w=o(pt,w,ke),me===null?Ae=pt:me.sibling=pt,me=pt);return e&&Oe.forEach(function(yr){return t(S,yr)}),We&&Ao(S,ke),Ae}function dt(S,w,D,Y){if(D==null)throw Error("An iterable object provided no iterator.");for(var ne=null,Ae=null,me=w,Oe=w=0,ke=null,pt=null,At=D.next();me!==null&&!At.done;Oe++,At=D.next()){me.index>Oe?(ke=me,me=null):ke=me.sibling;var yr=M(S,me,At.value,Y);if(yr===null){me===null&&(me=ke);break}pt=fe(S,yr,At.value,pt),e&&me&&yr.alternate===null&&t(S,me),w=o(yr,w,Oe),Ae===null?ne=yr:Ae.sibling=yr,Ae=yr,me=ke}if(At.done)return n(S,me),We&&Ao(S,Oe),ne;if(me===null){for(;!At.done;Oe++,At=D.next())me=_(S,At.value,Y),me!==null&&(pt=fe(S,me,At.value,pt),w=o(me,w,Oe),Ae===null?ne=me:Ae.sibling=me,Ae=me);return We&&Ao(S,Oe),ne}for(me=s(me);!At.done;Oe++,At=D.next())ke=L(me,S,Oe,At.value,Y),ke!==null&&(pt=fe(S,ke,At.value,pt),e&&ke.alternate!==null&&me.delete(ke.key===null?Oe:ke.key),w=o(ke,w,Oe),Ae===null?ne=ke:Ae.sibling=ke,Ae=ke);return e&&me.forEach(function(Aj){return t(S,Aj)}),We&&Ao(S,Oe),ne}function Ie(S,w,D,Y){if(typeof D=="object"&&D!==null&&D.type===Ya&&D.key===null&&(ou(D,null,S),D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case Br:var ne=$t(D._debugInfo);e:{for(var Ae=D.key;w!==null;){if(w.key===Ae){if(Ae=D.type,Ae===Ya){if(w.tag===7){n(S,w.sibling),Y=r(w,D.props.children),Y.return=S,Y._debugOwner=D._owner,Y._debugInfo=He,ou(D,Y,S),S=Y;break e}}else if(w.elementType===Ae||Vb(w,D)||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===qn&&Fr(Ae)===w.type){n(S,w.sibling),Y=r(w,D.props),mi(Y,D),Y.return=S,Y._debugOwner=D._owner,Y._debugInfo=He,S=Y;break e}n(S,w);break}else t(S,w);w=w.sibling}D.type===Ya?(Y=Uo(D.props.children,S.mode,Y,D.key),Y.return=S,Y._debugOwner=S,Y._debugTask=S._debugTask,Y._debugInfo=He,ou(D,Y,S),S=Y):(Y=Bc(D,S.mode,Y),mi(Y,D),Y.return=S,Y._debugInfo=He,S=Y)}return S=c(S),He=ne,S;case qa:e:{for(ne=D,D=ne.key;w!==null;){if(w.key===D)if(w.tag===4&&w.stateNode.containerInfo===ne.containerInfo&&w.stateNode.implementation===ne.implementation){n(S,w.sibling),Y=r(w,ne.children||[]),Y.return=S,S=Y;break e}else{n(S,w);break}else t(S,w);w=w.sibling}Y=rf(ne,S.mode,Y),Y.return=S,S=Y}return c(S);case qn:return ne=$t(D._debugInfo),D=Fr(D),S=Ie(S,w,D,Y),He=ne,S}if(It(D))return ne=$t(D._debugInfo),S=Ce(S,w,D,Y),He=ne,S;if(ge(D)){if(ne=$t(D._debugInfo),Ae=ge(D),typeof Ae!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var me=Ae.call(D);return me===D?(S.tag!==0||Object.prototype.toString.call(S.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(me)!=="[object Generator]")&&(J0||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."),J0=!0):D.entries!==Ae||Mp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mp=!0),S=dt(S,w,me,Y),He=ne,S}if(typeof D.then=="function")return ne=$t(D._debugInfo),S=Ie(S,w,au(D),Y),He=ne,S;if(D.$$typeof===Ms)return Ie(S,w,Yc(S,D),Y);lu(S,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(ne=""+D,w!==null&&w.tag===6?(n(S,w.sibling),Y=r(w,ne),Y.return=S,S=Y):(n(S,w),Y=sf(ne,S.mode,Y),Y.return=S,Y._debugOwner=S,Y._debugTask=S._debugTask,Y._debugInfo=He,S=Y),c(S)):(typeof D=="function"&&iu(S,D),typeof D=="symbol"&&cu(S,D),n(S,w))}return function(S,w,D,Y){var ne=He;He=null;try{Ki=0;var Ae=Ie(S,w,D,Y);return dl=null,Ae}catch(pt){if(pt===Xi||pt===Fu)throw pt;var me=y(29,pt,null,S.mode);me.lanes=Y,me.return=S;var Oe=me._debugInfo=He;if(me._debugOwner=S._debugOwner,me._debugTask=S._debugTask,Oe!=null){for(var ke=Oe.length-1;0<=ke;ke--)if(typeof Oe[ke].stack=="string"){me._debugOwner=Oe[ke],me._debugTask=Oe[ke].debugTask;break}}return me}finally{He=ne}}}function zr(e){var t=e.alternate;re(Ht,Ht.current&ml,e),re(as,e,e),Ls===null&&(t===null||il.current!==null||t.memoizedState!==null)&&(Ls=e)}function Cv(e){if(e.tag===22){if(re(Ht,Ht.current,e),re(as,e,e),Ls===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Ls=e)}}else kr(e)}function kr(e){re(Ht,Ht.current,e),re(as,as.current,e)}function Ws(e){B(as,e),Ls===e&&(Ls=null),B(Ht,e)}function uu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===br||Om(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function $f(e){if(e!==null&&typeof e!="function"){var t=String(e);mx.has(t)||(mx.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Qf(e,t,n,s){var r=e.memoizedState,o=n(s,r);if(e.mode&en){pe(!0);try{o=n(s,r)}finally{pe(!1)}}o===void 0&&(t=ye(t)||"Component",cx.has(t)||(cx.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=o==null?r:Le({},r,o),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function Rv(e,t,n,s,r,o,c){var f=e.stateNode;if(typeof f.shouldComponentUpdate=="function"){if(n=f.shouldComponentUpdate(s,o,c),e.mode&en){pe(!0);try{n=f.shouldComponentUpdate(s,o,c)}finally{pe(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ye(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!ei(n,s)||!ei(r,o):!0}function Uv(e,t,n,s){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==r&&(e=Z(e)||"Component",rx.has(e)||(rx.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Vp.enqueueReplaceState(t,t.state,null))}function Bo(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=Le({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function Av(e){zp(e),console.warn(`%s
159
-
160
- %s
161
- `,pl?"An error occurred in the <"+pl+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
162
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Ov(e){var t=pl?"The above error occurred in the <"+pl+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+((kp||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var s=e.environmentName;e=[`%o
163
-
164
- %s
165
-
166
- %s
167
- `,e,t,n].slice(0),typeof e[0]=="string"?e.splice(0,1,$x+e[0],Qx,yd+s+yd,Xx):e.splice(0,0,$x,Qx,yd+s+yd,Xx),e.unshift(console),s=Rj.apply(console.error,e),s()}else console.error(`%o
168
-
169
- %s
170
-
171
- %s
172
- `,e,t,n)}function Mv(e){zp(e)}function du(e,t){try{pl=t.source?Z(t.source):null,kp=null;var n=t.value;if(P.actQueue!==null)P.thrownErrors.push(n);else{var s=e.onUncaughtError;s(n,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function Vv(e,t,n){try{pl=n.source?Z(n.source):null,kp=Z(t);var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Xf(e,t,n){return n=Or(n),n.tag=jp,n.payload={element:null},n.callback=function(){Ne(t.source,du,e,t)},n}function If(e){return e=Or(e),e.tag=jp,e}function Ff(e,t,n,s){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=s.value;e.payload=function(){return r(o)},e.callback=function(){zb(n),Ne(s.source,Vv,t,n,s)}}var c=n.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){zb(n),Ne(s.source,Vv,t,n,s),typeof r!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this)),aj(this,s),typeof r=="function"||(n.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.",Z(n)||"Unknown")})}function HS(e,t,n,s,r){if(n.flags|=32768,ps&&xi(e,r),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&ri(t,n,r,!0),We&&(dr=!0),n=as.current,n!==null){switch(n.tag){case 13:return Ls===null?pm():n.alternate===null&&jt===hr&&(jt=Bp),n.flags&=-257,n.flags|=65536,n.lanes=r,s===Ep?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),vm(e,s,r)),!1;case 22:return n.flags|=65536,s===Ep?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),vm(e,s,r)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return vm(e,s,r),pm(),!1}if(We)return dr=!0,t=as.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,s!==xp&&si(_n(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),n))):(s!==xp&&si(_n(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),n)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,s=_n(s,n),r=Xf(e.stateNode,s,r),Ic(e,r),jt!==Ko&&(jt=gl)),!1;var o=_n(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),n);if(oc===null?oc=[o]:oc.push(o),jt!==Ko&&(jt=gl),t===null)return!0;s=_n(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Xf(n.stateNode,s,e),Ic(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Wr===null||!Wr.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=If(r),Ff(r,e,n,s),Ic(n,r),!1}n=n.return}while(n!==null);return!1}function Qt(e,t,n,s){t.child=e===null?nx(t,null,n,s):fl(t,e.child,n,s)}function zv(e,t,n,s,r){n=n.render;var o=t.ref;if("ref"in s){var c={};for(var f in s)f!=="ref"&&(c[f]=s[f])}else c=s;return zo(t),Ze(t),s=xf(e,t,n,c,o,r),f=Sf(),ct(),e!==null&&!Yt?(wf(e,t,r),er(e,t,r)):(We&&f&&of(t),t.flags|=1,Qt(e,t,s,r),t.child)}function kv(e,t,n,s,r){if(e===null){var o=n.type;return typeof o=="function"&&!tf(o)&&o.defaultProps===void 0&&n.compare===null?(n=Ro(o),t.tag=15,t.type=n,Kf(t,o),Pv(e,t,n,s,r)):(e=nf(n.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!sm(e,r)){var c=o.memoizedProps;if(n=n.compare,n=n!==null?n:ei,n(c,s)&&e.ref===t.ref)return er(e,t,r)}return t.flags|=1,e=Zs(o,s),e.ref=t.ref,e.return=t,t.child=e}function Pv(e,t,n,s,r){if(e!==null){var o=e.memoizedProps;if(ei(o,s)&&e.ref===t.ref&&t.type===e.type)if(Yt=!1,t.pendingProps=s=o,sm(e,r))(e.flags&131072)!==0&&(Yt=!0);else return t.lanes=e.lanes,er(e,t,r)}return Zf(e,t,n,s,r)}function _v(e,t,n){var s=t.pendingProps,r=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;t.childLanes=o&~s}else t.childLanes=0,t.child=null;return Hv(e,t,s,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qc(t,o!==null?o.cachePool:null),o!==null?Wb(t,o):vf(t),Cv(t);else return t.lanes=t.childLanes=536870912,Hv(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Qc(t,o.cachePool),Wb(t,o),kr(t),t.memoizedState=null):(e!==null&&Qc(t,null),vf(t),kr(t));return Qt(e,t,r,n),t.child}function Hv(e,t,n,s){var r=pf();return r=r===null?null:{parent:Pt._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Qc(t,null),vf(t),Cv(t),e!==null&&ri(e,t,s,!0),null}function fu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zf(e,t,n,s,r){if(n.prototype&&typeof n.prototype.render=="function"){var o=ye(n)||"Unknown";hx[o]||(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.",o,o),hx[o]=!0)}return t.mode&en&&bs.recordLegacyContextWarning(t,null),e===null&&(Kf(t,t.type),n.contextTypes&&(o=ye(n)||"Unknown",vx[o]||(vx[o]=!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)",o)))),zo(t),Ze(t),n=xf(e,t,n,s,void 0,r),s=Sf(),ct(),e!==null&&!Yt?(wf(e,t,r),er(e,t,r)):(We&&s&&of(t),t.flags|=1,Qt(e,t,n,r),t.child)}function Bv(e,t,n,s,r,o){return zo(t),Ze(t),mr=-1,Zi=e!==null&&e.type!==t.type,t.updateQueue=null,n=Nf(t,s,n,r),ev(e,t),s=Sf(),ct(),e!==null&&!Yt?(wf(e,t,o),er(e,t,o)):(We&&s&&of(t),t.flags|=1,Qt(e,t,n,o),t.child)}function Lv(e,t,n,s,r){switch(N(t)){case!1:var o=t.stateNode,c=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,c,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var f=r&-r;if(t.lanes|=f,c=ut,c===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");f=If(f),Ff(f,c,t,_n(o,t)),Ic(t,f)}if(zo(t),t.stateNode===null){if(c=Qr,o=n.contextType,"contextType"in n&&o!==null&&(o===void 0||o.$$typeof!==Ms)&&!fx.has(n)&&(fx.add(n),f=o===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 o!="object"?" However, it is set to a "+typeof o+".":o.$$typeof===Gm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ye(n)||"Component",f)),typeof o=="object"&&o!==null&&(c=vt(o)),o=new n(s,c),t.mode&en){pe(!0);try{o=new n(s,c)}finally{pe(!1)}}if(c=t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Vp,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=sx,typeof n.getDerivedStateFromProps=="function"&&c===null&&(c=ye(n)||"Component",ox.has(c)||(ox.add(c),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.",c,o.state===null?"null":"undefined",c))),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"){var b=f=c=null;if(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0?c="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(c="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0?f="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(f="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),c!==null||f!==null||b!==null){o=ye(n)||"Component";var g=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";lx.has(o)||(lx.add(o),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
173
-
174
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
175
-
176
- The above lifecycles should be removed. Learn more about this warning here:
177
- https://react.dev/link/unsafe-component-lifecycles`,o,g,c!==null?`
178
- `+c:"",f!==null?`
179
- `+f:"",b!==null?`
180
- `+b:""))}}o=t.stateNode,c=ye(n)||"Component",o.render||(n.prototype&&typeof n.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",c):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",c)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.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?",c),o.getDefaultProps&&!o.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.",c),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",c),n.childContextTypes&&!dx.has(n)&&(dx.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",c)),n.contextTypes&&!ux.has(n)&&(ux.add(n),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)",c)),typeof o.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.",c),n.prototype&&n.prototype.isPureReactComponent&&typeof o.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.",ye(n)||"A pure component"),typeof o.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",c),typeof o.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().",c),typeof o.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",c),typeof o.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",c),f=o.props!==s,o.props!==void 0&&f&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",c),o.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.",c,c),typeof o.getSnapshotBeforeUpdate!="function"||typeof o.componentDidUpdate=="function"||ax.has(n)||(ax.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ye(n))),typeof o.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof o.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof n.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",c),(f=o.state)&&(typeof f!="object"||It(f))&&console.error("%s.state: must be set to an object or null",c),typeof o.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",c),o=t.stateNode,o.props=s,o.state=t.memoizedState,o.refs={},hf(t),c=n.contextType,o.context=typeof c=="object"&&c!==null?vt(c):Qr,o.state===s&&(c=ye(n)||"Component",ix.has(c)||(ix.add(c),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.",c))),t.mode&en&&bs.recordLegacyContextWarning(t,o),bs.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(Qf(t,n,c,s),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(c=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),c!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z(t)||"Component"),Vp.enqueueReplaceState(o,o.state,null)),ci(t,s,o,r),ii(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&hs)!==mt&&(t.flags|=134217728),o=!0}else if(e===null){o=t.stateNode;var z=t.memoizedProps;f=Bo(n,z),o.props=f;var _=o.context;b=n.contextType,c=Qr,typeof b=="object"&&b!==null&&(c=vt(b)),g=n.getDerivedStateFromProps,b=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,b||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(z||_!==c)&&Uv(t,o,s,c),Xr=!1;var M=t.memoizedState;o.state=M,ci(t,s,o,r),ii(),_=t.memoizedState,z||M!==_||Xr?(typeof g=="function"&&(Qf(t,n,g,s),_=t.memoizedState),(f=Xr||Rv(t,n,f,s,M,_,c))?(b||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&hs)!==mt&&(t.flags|=134217728)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&hs)!==mt&&(t.flags|=134217728),t.memoizedProps=s,t.memoizedState=_),o.props=s,o.state=_,o.context=c,o=f):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&hs)!==mt&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,bf(e,t),c=t.memoizedProps,b=Bo(n,c),o.props=b,g=t.pendingProps,M=o.context,_=n.contextType,f=Qr,typeof _=="object"&&_!==null&&(f=vt(_)),z=n.getDerivedStateFromProps,(_=typeof z=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==g||M!==f)&&Uv(t,o,s,f),Xr=!1,M=t.memoizedState,o.state=M,ci(t,s,o,r),ii();var L=t.memoizedState;c!==g||M!==L||Xr||e!==null&&e.dependencies!==null&&qc(e.dependencies)?(typeof z=="function"&&(Qf(t,n,z,s),L=t.memoizedState),(b=Xr||Rv(t,n,b,s,M,L,f)||e!==null&&e.dependencies!==null&&qc(e.dependencies))?(_||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,L,f),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,L,f)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=L),o.props=s,o.state=L,o.context=f,o=b):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),o=!1)}if(f=o,fu(e,t),c=(t.flags&128)!==0,f||c){if(f=t.stateNode,Ld(t),c&&typeof n.getDerivedStateFromError!="function")n=null,En=-1;else{if(Ze(t),n=q0(f),t.mode&en){pe(!0);try{q0(f)}finally{pe(!1)}}ct()}t.flags|=1,e!==null&&c?(t.child=fl(t,e.child,null,r),t.child=fl(t,null,n,r)):Qt(e,t,n,r),t.memoizedState=f.state,e=t.child}else e=er(e,t,r);return r=t.stateNode,o&&r.props!==s&&(hl||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Z(t)||"a component"),hl=!0),e}function qv(e,t,n,s){return ni(),t.flags|=256,Qt(e,t,n,s),t.child}function Kf(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
181
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=ye(t)||"Unknown",gx[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),gx[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=ye(t)||"Unknown",bx[t]||(console.error("%s: Function components do not support contextType.",t),bx[t]=!0))}function Jf(e){return{baseLanes:e,cachePool:$b()}}function Wf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Qn),e}function Yv(e,t,n){var s,r=t.pendingProps;v(t)&&(t.flags|=128);var o=!1,c=(t.flags&128)!==0;if((s=c)||(s=e!==null&&e.memoizedState===null?!1:(Ht.current&Ji)!==0),s&&(o=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(We){if(o?zr(t):kr(t),We){var f=Et,b;if(!(b=!f)){e:{var g=f;for(b=Hs;g.nodeType!==8;){if(!b){b=null;break e}if(g=Zn(g.nextSibling),g===null){b=null;break e}}b=g}b!==null?(Oo(),t.memoizedState={dehydrated:b,treeContext:Go!==null?{id:cr,overflow:ur}:null,retryLane:536870912,hydrationErrors:null},g=y(18,null,null,mt),g.stateNode=b,g.return=t,t.child=g,un=t,Et=null,b=!0):b=!1,b=!b}b&&(lf(t,f),Vo(t))}if(f=t.memoizedState,f!==null&&(f=f.dehydrated,f!==null))return Om(f)?t.lanes=32:t.lanes=536870912,null;Ws(t)}return f=r.children,r=r.fallback,o?(kr(t),o=t.mode,f=mu({mode:"hidden",children:f},o),r=Uo(r,o,n,null),f.return=t,r.return=t,f.sibling=r,t.child=f,o=t.child,o.memoizedState=Jf(n),o.childLanes=Wf(e,s,n),t.memoizedState=_p,r):(zr(t),em(t,f))}var z=e.memoizedState;if(z!==null&&(f=z.dehydrated,f!==null)){if(c)t.flags&256?(zr(t),t.flags&=-257,t=tm(e,t,n)):t.memoizedState!==null?(kr(t),t.child=e.child,t.flags|=128,t=null):(kr(t),o=r.fallback,f=t.mode,r=mu({mode:"visible",children:r.children},f),o=Uo(o,f,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,fl(t,e.child,null,n),r=t.child,r.memoizedState=Jf(n),r.childLanes=Wf(e,s,n),t.memoizedState=_p,t=o);else if(zr(t),We&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Om(f)){if(s=f.nextSibling&&f.nextSibling.dataset,s){b=s.dgst;var _=s.msg;g=s.stck;var M=s.cstck}f=_,s=b,r=g,b=o=M,o=Error(f||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),o.stack=r||"",o.digest=s,s=b===void 0?null:b,r={value:o,source:null,stack:s},typeof s=="string"&&gp.set(o,r),si(r),t=tm(e,t,n)}else if(Yt||ri(e,t,n,!1),s=(n&e.childLanes)!==0,Yt||s){if(s=ut,s!==null&&(r=n&-n,r=(r&42)!==0?1:jo(r),r=(r&(s.suspendedLanes|n))!==0?0:r,r!==0&&r!==z.retryLane))throw z.retryLane=r,xn(e,r),Rt(s,e,r),px;f.data===br||pm(),t=tm(e,t,n)}else f.data===br?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,Et=Zn(f.nextSibling),un=t,We=!0,$o=null,dr=!1,ns=null,Hs=!1,e!==null&&(Oo(),es[ts++]=cr,es[ts++]=ur,es[ts++]=Go,cr=e.id,ur=e.overflow,Go=t),t=em(t,r.children),t.flags|=4096);return t}return o?(kr(t),o=r.fallback,f=t.mode,b=e.child,g=b.sibling,r=Zs(b,{mode:"hidden",children:r.children}),r.subtreeFlags=b.subtreeFlags&65011712,g!==null?o=Zs(g,o):(o=Uo(o,f,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,f=e.child.memoizedState,f===null?f=Jf(n):(b=f.cachePool,b!==null?(g=Pt._currentValue,b=b.parent!==g?{parent:g,pool:g}:b):b=$b(),f={baseLanes:f.baseLanes|n,cachePool:b}),o.memoizedState=f,o.childLanes=Wf(e,s,n),t.memoizedState=_p,r):(zr(t),n=e.child,e=n.sibling,n=Zs(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function em(e,t){return t=mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function mu(e,t){return e=y(22,e,null,t),e.lanes=0,e.stateNode={_visibility:Lu,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function tm(e,t,n){return fl(t,e.child,null,n),e=em(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gv(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),cf(e.return,t,n)}function $v(e,t){var n=It(e);return e=!n&&typeof ge(e)=="function",n||e?(n=n?"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>",n,t,n),!1):!0}function nm(e,t,n,s,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=s,o.tail=n,o.tailMode=r)}function Qv(e,t,n){var s=t.pendingProps,r=s.revealOrder,o=s.tail;if(s=s.children,r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!yx[r])if(yx[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.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.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);o===void 0||Pp[o]||(o!=="collapsed"&&o!=="hidden"?(Pp[o]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):r!=="forwards"&&r!=="backwards"&&(Pp[o]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if((r==="forwards"||r==="backwards")&&s!==void 0&&s!==null&&s!==!1)if(It(s)){for(var c=0;c<s.length;c++)if(!$v(s[c],c))break e}else if(c=ge(s),typeof c=="function"){if(c=c.call(s))for(var f=c.next(),b=0;!f.done;f=c.next()){if(!$v(f.value,b))break e;b++}}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?',r);if(Qt(e,t,s,n),s=Ht.current,(s&Ji)!==0)s=s&ml|Ji,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gv(e,n,t);else if(e.tag===19)Gv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=ml}switch(re(Ht,s,t),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&uu(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),nm(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&uu(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}nm(t,!0,n,null,o);break;case"together":nm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function er(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),En=-1,Kr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ri(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,n=Zs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sm(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qc(e)))}function BS(e,t,n){switch(t.tag){case 3:Me(t,t.stateNode.containerInfo),Ar(t,Pt,e.memoizedState.cache),ni();break;case 27:case 5:ue(t);break;case 4:Me(t,t.stateNode.containerInfo);break;case 10:Ar(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var s=t.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(zr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Yv(e,t,n):(zr(t),e=er(e,t,n),e!==null?e.sibling:null);zr(t);break;case 19:var r=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(ri(e,t,n,!1),s=(n&t.childLanes)!==0),r){if(s)return Qv(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),re(Ht,Ht.current,t),s)break;return null;case 22:case 23:return t.lanes=0,_v(e,t,n);case 24:Ar(t,Pt,e.memoizedState.cache)}return er(e,t,n)}function rm(e,t,n){if(t._debugNeedsRemount&&e!==null){n=nf(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var s=t.return;if(s===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===s.child)s.child=n;else{var r=s.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=n}return t=s.deletions,t===null?(s.deletions=[e],s.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Yt=!0;else{if(!sm(e,n)&&(t.flags&128)===0)return Yt=!1,BS(e,t,n);Yt=(e.flags&131072)!==0}else Yt=!1,(s=We)&&(Oo(),s=(t.flags&1048576)!==0),s&&(s=t.index,Oo(),Pb(t,Yu,s));switch(t.lanes=0,t.tag){case 16:e:if(s=t.pendingProps,e=Fr(t.elementType),t.type=e,typeof e=="function")tf(e)?(s=Bo(e,s),t.tag=1,t.type=e=Ro(e),t=Lv(null,t,e,s,n)):(t.tag=0,Kf(t,e),t.type=e=Ro(e),t=Zf(null,t,e,s,n));else{if(e!=null){if(r=e.$$typeof,r===Ci){t.tag=11,t.type=e=Wd(e),t=zv(null,t,e,s,n);break e}else if(r===Uu){t.tag=14,t=kv(null,t,e,s,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===qn&&(t=" Did you wrap a component in React.lazy() more than once?"),e=ye(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Zf(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,r=Bo(s,t.pendingProps),Lv(e,t,s,r,n);case 3:e:{if(Me(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");s=t.pendingProps;var o=t.memoizedState;r=o.element,bf(e,t),ci(t,s,null,n);var c=t.memoizedState;if(s=c.cache,Ar(t,Pt,s),s!==o.cache&&uf(t,[Pt],n,!0),ii(),s=c.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=qv(e,t,s,n);break e}else if(s!==r){r=_n(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),si(r),t=qv(e,t,s,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Et=Zn(e.firstChild),un=t,We=!0,$o=null,dr=!1,ns=null,Hs=!0,e=nx(t,null,s,n),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(ni(),s===r){t=er(e,t,n);break e}Qt(e,t,s,n)}t=t.child}return t;case 26:return fu(e,t),e===null?(e=dy(t.type,null,t.pendingProps,null))?t.memoizedState=e:We||(e=t.type,n=t.pendingProps,s=Ee(qr.current),s=Nu(s).createElement(e),s[Wt]=t,s[wn]=n,Xt(s,e,n),R(s),t.stateNode=s):t.memoizedState=dy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ue(t),e===null&&We&&(s=Ee(qr.current),r=H(),s=t.stateNode=cy(t.type,t.pendingProps,s,r,!1),dr||(r=ey(s,t.type,t.pendingProps,r),r!==null&&(Mo(t,0).serverProps=r)),un=t,Hs=!0,r=Et,Hr(t.type)?(lh=r,Et=Zn(s.firstChild)):Et=r),Qt(e,t,t.pendingProps.children,n),fu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&We&&(o=H(),s=Id(t.type,o.ancestorInfo),r=Et,(c=!r)||(c=ww(r,t.type,t.pendingProps,Hs),c!==null?(t.stateNode=c,dr||(o=ey(c,t.type,t.pendingProps,o),o!==null&&(Mo(t,0).serverProps=o)),un=t,Et=Zn(c.firstChild),Hs=!1,o=!0):o=!1,c=!o),c&&(s&&lf(t,r),Vo(t))),ue(t),r=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,s=o.children,Um(r,o)?s=null:c!==null&&Um(r,c)&&(t.flags|=32),t.memoizedState!==null&&(r=xf(e,t,VS,null,null,n),mc._currentValue=r),fu(e,t),Qt(e,t,s,n),t.child;case 6:return e===null&&We&&(e=t.pendingProps,n=H(),s=n.ancestorInfo.current,e=s!=null?Mc(e,s.tag,n.ancestorInfo.implicitRootScope):!0,n=Et,(s=!n)||(s=Ew(n,t.pendingProps,Hs),s!==null?(t.stateNode=s,un=t,Et=null,s=!0):s=!1,s=!s),s&&(e&&lf(t,n),Vo(t))),null;case 13:return Yv(e,t,n);case 4:return Me(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=fl(t,null,s,n):Qt(e,t,s,n),t.child;case 11:return zv(e,t,t.type,t.pendingProps,n);case 7:return Qt(e,t,t.pendingProps,n),t.child;case 8:return Qt(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,s=t.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,Qt(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.type,r=t.pendingProps,o=r.value,"value"in r||xx||(xx=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ar(t,s,o),Qt(e,t,r.children,n),t.child;case 9:return r=t.type._context,s=t.pendingProps.children,typeof s!="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."),zo(t),r=vt(r),Ze(t),s=Ap(s,r,void 0),ct(),t.flags|=1,Qt(e,t,s,n),t.child;case 14:return kv(e,t,t.type,t.pendingProps,n);case 15:return Pv(e,t,t.type,t.pendingProps,n);case 19:return Qv(e,t,n);case 31:return s=t.pendingProps,n=t.mode,s={mode:s.mode,children:s.children},e===null?(e=mu(s,n),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=Zs(e.child,s),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return _v(e,t,n);case 24:return zo(t),s=vt(Pt),e===null?(r=pf(),r===null&&(r=ut,o=df(),r.pooledCache=o,ko(o),o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:s,cache:r},hf(t),Ar(t,Pt,r)):((e.lanes&n)!==0&&(bf(e,t),ci(t,null,null,n),ii()),r=e.memoizedState,o=t.memoizedState,r.parent!==s?(r={parent:s,cache:s},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ar(t,Pt,s)):(s=o.cache,Ar(t,Pt,s),s!==r.cache&&uf(t,[Pt],n,!0))),Qt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function tr(e){e.flags|=4}function Xv(e,t){if(t.type!=="stylesheet"||(t.state.loading&ls)!==aa)e.flags&=-16777217;else if(e.flags|=16777216,!by(t)){if(t=as.current,t!==null&&((Qe&4194048)===Qe?Ls!==null:(Qe&62914560)!==Qe&&(Qe&536870912)===0||t!==Ls))throw Ii=Ep,U0;e.flags|=8192}}function pu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xs():536870912,e.lanes|=t,ea|=t)}function pi(e,t){if(!We)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function gt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)if((e.mode&Ft)!==mt){for(var r=e.selfBaseDuration,o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,r+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Ft)!==mt){r=e.actualDuration,o=e.selfBaseDuration;for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,r+=c.actualDuration,o+=c.treeBaseDuration,c=c.sibling;e.actualDuration=r,e.treeBaseDuration=o}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function LS(e,t,n){var s=t.pendingProps;switch(af(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(t),null;case 1:return gt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Ks(Pt,t),Ve(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ti(t)?(Lb(),tr(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bb())),gt(t),null;case 26:return n=t.memoizedState,e===null?(tr(t),n!==null?(gt(t),Xv(t,n)):(gt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(tr(t),gt(t),Xv(t,n)):(gt(t),t.flags&=-16777217):(e.memoizedProps!==s&&tr(t),gt(t),t.flags&=-16777217),null;case 27:X(t),n=Ee(qr.current);var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&tr(t);else{if(!s){if(t.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 gt(t),null}e=H(),ti(t)?_b(t):(e=cy(r,s,n,e,!0),t.stateNode=e,tr(t))}return gt(t),null;case 5:if(X(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&tr(t);else{if(!s){if(t.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 gt(t),null}if(r=H(),ti(t))_b(t);else{switch(e=Ee(qr.current),Id(n,r.ancestorInfo),r=r.context,e=Nu(e),r){case El:e=e.createElementNS(Xa,n);break;case bd:e=e.createElementNS(ku,n);break;default:switch(n){case"svg":e=e.createElementNS(Xa,n);break;case"math":e=e.createElementNS(ku,n);break;case"script":e=e.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?e.createElement("select",{is:s.is}):e.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?e.createElement(n,{is:s.is}):e.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(e)!=="[object HTMLUnknownElement]"||ar.call(Hx,n)||(Hx[n]=!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.",n)))}}e[Wt]=t,e[wn]=s;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Xt(e,n,s),n){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&tr(t)}}return gt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&tr(t);else{if(typeof s!="string"&&t.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(e=Ee(qr.current),n=H(),ti(t)){e=t.stateNode,n=t.memoizedProps,r=!dr,s=null;var o=un;if(o!==null)switch(o.tag){case 3:r&&(r=ay(e,n,s),r!==null&&(Mo(t,0).serverProps=r));break;case 27:case 5:s=o.memoizedProps,r&&(r=ay(e,n,s),r!==null&&(Mo(t,0).serverProps=r))}e[Wt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||Fg(e.nodeValue,n)),e||Vo(t)}else r=n.ancestorInfo.current,r!=null&&Mc(s,r.tag,n.ancestorInfo.implicitRootScope),e=Nu(e).createTextNode(s),e[Wt]=t,t.stateNode=e}return gt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=ti(t),s!==null&&s.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[Wt]=t,gt(t),(t.mode&Ft)!==mt&&s!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else Lb(),ni(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,gt(t),(t.mode&Ft)!==mt&&s!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=Bb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ws(t),t):(Ws(t),null)}return Ws(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&Ft)!==mt&&$c(t),t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==r&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),pu(t,t.updateQueue),gt(t),(t.mode&Ft)!==mt&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Ve(t),e===null&&wm(t.stateNode.containerInfo),gt(t),null;case 10:return Ks(t.type,t),gt(t),null;case 19:if(B(Ht,t),r=t.memoizedState,r===null)return gt(t),null;if(s=(t.flags&128)!==0,o=r.rendering,o===null)if(s)pi(r,!1);else{if(jt!==hr||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=uu(e),o!==null){for(t.flags|=128,pi(r,!1),e=o.updateQueue,t.updateQueue=e,pu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)kb(n,e),n=n.sibling;return re(Ht,Ht.current&ml|Ji,t),t.child}e=e.sibling}r.tail!==null&&Vs()>rd&&(t.flags|=128,s=!0,pi(r,!1),t.lanes=4194304)}else{if(!s)if(e=uu(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,pu(t,e),pi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!We)return gt(t),null}else 2*Vs()-r.renderingStartTime>rd&&n!==536870912&&(t.flags|=128,s=!0,pi(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Vs(),e.sibling=null,n=Ht.current,n=s?n&ml|Ji:n&ml,re(Ht,n,t),e):(gt(t),null);case 22:case 23:return Ws(t),gf(t),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(gt(t),t.subtreeFlags&6&&(t.flags|=8192)):gt(t),n=t.updateQueue,n!==null&&pu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&B(Io,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ks(Pt,t),gt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function qS(e,t){switch(af(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ft)!==mt&&$c(t),t):null;case 3:return Ks(Pt,t),Ve(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return X(t),null;case 13:if(Ws(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ft)!==mt&&$c(t),t):null;case 19:return B(Ht,t),null;case 4:return Ve(t),null;case 10:return Ks(t.type,t),null;case 22:case 23:return Ws(t),gf(t),e!==null&&B(Io,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ft)!==mt&&$c(t),t):null;case 24:return Ks(Pt,t),null;case 25:return null;default:return null}}function Iv(e,t){switch(af(t),t.tag){case 3:Ks(Pt,t),Ve(t);break;case 26:case 27:case 5:X(t);break;case 4:Ve(t);break;case 13:Ws(t);break;case 19:B(Ht,t);break;case 10:Ks(t.type,t);break;case 22:case 23:Ws(t),gf(t),e!==null&&B(Io,t);break;case 24:Ks(Pt,t)}}function Cs(e){return(e.mode&Ft)!==mt}function Fv(e,t){Cs(e)?(Ds(),hi(t,e),Ts()):hi(t,e)}function om(e,t,n){Cs(e)?(Ds(),Ma(n,e,t),Ts()):Ma(n,e,t)}function hi(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var r=s.next;n=r;do{if((n.tag&e)===e&&((e&_t)!==ss?ce!==null&&typeof ce.markComponentPassiveEffectMountStarted=="function"&&ce.markComponentPassiveEffectMountStarted(t):(e&Zt)!==ss&&ce!==null&&typeof ce.markComponentLayoutEffectMountStarted=="function"&&ce.markComponentLayoutEffectMountStarted(t),s=void 0,(e&dn)!==ss&&(Sl=!0),s=Ne(t,lj,n),(e&dn)!==ss&&(Sl=!1),(e&_t)!==ss?ce!==null&&typeof ce.markComponentPassiveEffectMountStopped=="function"&&ce.markComponentPassiveEffectMountStopped():(e&Zt)!==ss&&ce!==null&&typeof ce.markComponentLayoutEffectMountStopped=="function"&&ce.markComponentLayoutEffectMountStopped(),s!==void 0&&typeof s!="function")){var o=void 0;o=(n.tag&Zt)!==0?"useLayoutEffect":(n.tag&dn)!==0?"useInsertionEffect":"useEffect";var c=void 0;c=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
182
-
183
- It looks like you wrote `+o+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
184
-
185
- `+o+`(() => {
186
- async function fetchData() {
187
- // You can await here
188
- const response = await MyAPI.getData(someId);
189
- // ...
190
- }
191
- fetchData();
192
- }, [someId]); // Or [] if effect doesn't need props or state
193
-
194
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,Ne(t,function(f,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",f,b)},o,c)}n=n.next}while(n!==r)}}catch(f){ot(t,t.return,f)}}function Ma(e,t,n){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var o=r.next;s=o;do{if((s.tag&e)===e){var c=s.inst,f=c.destroy;f!==void 0&&(c.destroy=void 0,(e&_t)!==ss?ce!==null&&typeof ce.markComponentPassiveEffectUnmountStarted=="function"&&ce.markComponentPassiveEffectUnmountStarted(t):(e&Zt)!==ss&&ce!==null&&typeof ce.markComponentLayoutEffectUnmountStarted=="function"&&ce.markComponentLayoutEffectUnmountStarted(t),(e&dn)!==ss&&(Sl=!0),r=t,Ne(r,ij,r,n,f),(e&dn)!==ss&&(Sl=!1),(e&_t)!==ss?ce!==null&&typeof ce.markComponentPassiveEffectUnmountStopped=="function"&&ce.markComponentPassiveEffectUnmountStopped():(e&Zt)!==ss&&ce!==null&&typeof ce.markComponentLayoutEffectUnmountStopped=="function"&&ce.markComponentLayoutEffectUnmountStopped())}s=s.next}while(s!==o)}}catch(b){ot(t,t.return,b)}}function Zv(e,t){Cs(e)?(Ds(),hi(t,e),Ts()):hi(t,e)}function am(e,t,n){Cs(e)?(Ds(),Ma(n,e,t),Ts()):Ma(n,e,t)}function Kv(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||hl||(n.props!==e.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.",Z(e)||"instance"),n.state!==e.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.",Z(e)||"instance"));try{Ne(e,Jb,t,n)}catch(s){ot(e,e.return,s)}}}function YS(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function GS(e,t){var n=t.memoizedProps,s=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||hl||(t.props!==e.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.",Z(e)||"instance"),t.state!==e.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.",Z(e)||"instance"));try{var r=Bo(e.type,n,e.elementType===e.type),o=Ne(e,YS,t,r,s);n=Nx,o!==void 0||n.has(e.type)||(n.add(e.type),Ne(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Z(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(c){ot(e,e.return,c)}}function Jv(e,t,n){n.props=Bo(e.type,e.memoizedProps),n.state=e.memoizedState,Cs(e)?(Ds(),Ne(e,I0,e,t,n),Ts()):Ne(e,I0,e,t,n)}function $S(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t=="function")if(Cs(e))try{Ds(),e.refCleanup=t(n)}finally{Ts()}else e.refCleanup=t(n);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Z(e)),t.current=n}}function bi(e,t){try{Ne(e,$S,e)}catch(n){ot(e,t,n)}}function Rs(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{if(Cs(e))try{Ds(),Ne(e,s)}finally{Ts(e)}else Ne(e,s)}catch(r){ot(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(Cs(e))try{Ds(),Ne(e,n,null)}finally{Ts(e)}else Ne(e,n,null)}catch(r){ot(e,t,r)}else n.current=null}function Wv(e,t,n,s){var r=e.memoizedProps,o=r.id,c=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Qu&&(t="nested-update"),typeof r=="function"&&r(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof c=="function"&&c(e.memoizedProps.id,t,s,n)}function QS(e,t,n,s){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Qu&&(t="nested-update"),typeof r=="function"&&r(e,t,s,n)}function eg(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{Ne(e,pw,s,t,n,e)}catch(r){ot(e,e.return,r)}}function lm(e,t,n){try{Ne(e,hw,e.stateNode,e.type,n,t,e)}catch(s){ot(e,e.return,s)}}function tg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hr(e.type)||e.tag===4}function im(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Hr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cm(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xu));else if(s!==4&&(s===27&&Hr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(cm(e,t,n),e=e.sibling;e!==null;)cm(e,t,n),e=e.sibling}function hu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&Hr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(hu(e,t,n),e=e.sibling;e!==null;)hu(e,t,n),e=e.sibling}function XS(e){for(var t,n=e.return;n!==null;){if(tg(n)){t=n;break}n=n.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,n=im(e),hu(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(sy(n),t.flags&=-33),t=im(e),hu(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=im(e),cm(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function ng(e){var t=e.stateNode,n=e.memoizedProps;try{Ne(e,Cw,e.type,n,t,e)}catch(s){ot(e,e.return,s)}}function IS(e,t){if(e=e.containerInfo,rh=xd,e=Ab(e),Kd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var c=0,f=-1,b=-1,g=0,z=0,_=e,M=null;t:for(;;){for(var L;_!==n||r!==0&&_.nodeType!==3||(f=c+r),_!==o||s!==0&&_.nodeType!==3||(b=c+s),_.nodeType===3&&(c+=_.nodeValue.length),(L=_.firstChild)!==null;)M=_,_=L;for(;;){if(_===e)break t;if(M===n&&++g===r&&(f=c),M===o&&++z===s&&(b=c),(L=_.nextSibling)!==null)break;_=M,M=_.parentNode}_=L}n=f===-1||b===-1?null:{start:f,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(oh={focusedElem:e,selectionRange:n},xd=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){switch(e=t=Gt,n=e.alternate,r=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(r&1024)!==0&&n!==null&&GS(e,n);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)Am(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Am(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&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(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}}function sg(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:sr(e,n),s&4&&Fv(n,Zt|rs);break;case 1:if(sr(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||hl||(e.props!==n.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.",Z(n)||"instance"),e.state!==n.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.",Z(n)||"instance")),Cs(n)?(Ds(),Ne(n,Op,n,e),Ts()):Ne(n,Op,n,e);else{var r=Bo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||hl||(e.props!==n.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.",Z(n)||"instance"),e.state!==n.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.",Z(n)||"instance")),Cs(n)?(Ds(),Ne(n,$0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate),Ts()):Ne(n,$0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&Kv(n),s&512&&bi(n,n.return);break;case 3:if(t=Js(),sr(e,n),s&64&&(s=n.updateQueue,s!==null)){if(r=null,n.child!==null)switch(n.child.tag){case 27:case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}try{Ne(n,Jb,s,r)}catch(c){ot(n,n.return,c)}}e.effectDuration+=Gc(t);break;case 27:t===null&&s&4&&ng(n);case 26:case 5:sr(e,n),t===null&&s&4&&eg(n),s&512&&bi(n,n.return);break;case 12:if(s&4){s=Js(),sr(e,n),e=n.stateNode,e.effectDuration+=ai(s);try{Ne(n,Wv,n,t,$u,e.effectDuration)}catch(c){ot(n,n.return,c)}}else sr(e,n);break;case 13:sr(e,n),s&4&&ag(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sw.bind(null,n),jw(e,n))));break;case 22:if(s=n.memoizedState!==null||pr,!s){t=t!==null&&t.memoizedState!==null||Ut,r=pr;var o=Ut;pr=s,(Ut=t)&&!o?rr(e,n,(n.subtreeFlags&8772)!==0):sr(e,n),pr=r,Ut=o}break;case 30:break;default:sr(e,n)}}function rg(e){var t=e.alternate;t!==null&&(e.alternate=null,rg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Es(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nr(e,t,n){for(n=n.child;n!==null;)og(e,t,n),n=n.sibling}function og(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount($a,n)}catch(o){zs||(zs=!0,console.error("React instrumentation encountered an error: %s",o))}switch(n.tag){case 26:Ut||Rs(n,t),nr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ut||Rs(n,t);var s=zt,r=jn;Hr(n.type)&&(zt=n.stateNode,jn=!1),nr(e,t,n),Ne(n,wi,n.stateNode),zt=s,jn=r;break;case 5:Ut||Rs(n,t);case 6:if(s=zt,r=jn,zt=null,nr(e,t,n),zt=s,jn=r,zt!==null)if(jn)try{Ne(n,gw,zt,n.stateNode)}catch(o){ot(n,t,o)}else try{Ne(n,vw,zt,n.stateNode)}catch(o){ot(n,t,o)}break;case 18:zt!==null&&(jn?(e=zt,ry(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Di(e)):ry(zt,n.stateNode));break;case 4:s=zt,r=jn,zt=n.stateNode.containerInfo,jn=!0,nr(e,t,n),zt=s,jn=r;break;case 0:case 11:case 14:case 15:Ut||Ma(dn,n,t),Ut||om(n,t,Zt),nr(e,t,n);break;case 1:Ut||(Rs(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Jv(n,t,s)),nr(e,t,n);break;case 21:nr(e,t,n);break;case 22:Ut=(s=Ut)||n.memoizedState!==null,nr(e,t,n),Ut=s;break;default:nr(e,t,n)}}function ag(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ne(t,Dw,e)}catch(n){ot(t,t.return,n)}}function FS(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sx),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sx),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function um(e,t){var n=FS(e);t.forEach(function(s){var r=rw.bind(null,e,s);if(!n.has(s)){if(n.add(s),ps)if(bl!==null&&vl!==null)xi(vl,bl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(r,r)}})}function Hn(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=e,o=t,c=n[s],f=o;e:for(;f!==null;){switch(f.tag){case 27:if(Hr(f.type)){zt=f.stateNode,jn=!1;break e}break;case 5:zt=f.stateNode,jn=!1;break e;case 3:case 4:zt=f.stateNode.containerInfo,jn=!0;break e}f=f.return}if(zt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");og(r,o,c),zt=null,jn=!1,r=c,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)lg(t,e),t=t.sibling}function lg(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hn(t,e),Bn(e),s&4&&(Ma(dn|rs,e,e.return),hi(dn|rs,e),om(e,e.return,Zt|rs));break;case 1:Hn(t,e),Bn(e),s&512&&(Ut||n===null||Rs(n,n.return)),s&64&&pr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var r=gs;if(Hn(t,e),Bn(e),s&512&&(Ut||n===null||Rs(n,n.return)),s&4)if(t=n!==null?n.memoizedState:null,s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,t=r.ownerDocument||r;t:switch(s){case"title":r=t.getElementsByTagName("title")[0],(!r||r[Ui]||r[Wt]||r.namespaceURI===Xa||r.hasAttribute("itemprop"))&&(r=t.createElement(s),t.head.insertBefore(r,t.querySelector("head > title"))),Xt(r,s,n),r[Wt]=e,R(r),s=r;break e;case"link":var o=py("link","href",t).get(s+(n.href||""));if(o){for(var c=0;c<o.length;c++)if(r=o[c],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(c,1);break t}}r=t.createElement(s),Xt(r,s,n),t.head.appendChild(r);break;case"meta":if(o=py("meta","content",t).get(s+(n.content||""))){for(c=0;c<o.length;c++)if(r=o[c],I(n.content,"content"),r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(c,1);break t}}r=t.createElement(s),Xt(r,s,n),t.head.appendChild(r);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}r[Wt]=e,R(r),s=r}e.stateNode=s}else hy(r,e.type,e.stateNode);else e.stateNode=my(r,s,e.memoizedProps);else t!==s?(t===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):t.count--,s===null?hy(r,e.type,e.stateNode):my(r,s,e.memoizedProps)):s===null&&e.stateNode!==null&&lm(e,e.memoizedProps,n.memoizedProps);break;case 27:Hn(t,e),Bn(e),s&512&&(Ut||n===null||Rs(n,n.return)),n!==null&&s&4&&lm(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hn(t,e),Bn(e),s&512&&(Ut||n===null||Rs(n,n.return)),e.flags&32){t=e.stateNode;try{Ne(e,sy,t)}catch(z){ot(e,e.return,z)}}s&4&&e.stateNode!=null&&(t=e.memoizedProps,lm(e,t,n!==null?n.memoizedProps:t)),s&1024&&(Hp=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Hn(t,e),Bn(e),s&4){if(e.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.");s=e.memoizedProps,n=n!==null?n.memoizedProps:s,t=e.stateNode;try{Ne(e,bw,t,n,s)}catch(z){ot(e,e.return,z)}}break;case 3:if(r=Js(),vd=null,o=gs,gs=Su(t.containerInfo),Hn(t,e),gs=o,Bn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ne(e,Tw,t.containerInfo)}catch(z){ot(e,e.return,z)}Hp&&(Hp=!1,ig(e)),t.effectDuration+=Gc(r);break;case 4:s=gs,gs=Su(e.stateNode.containerInfo),Hn(t,e),Bn(e),gs=s;break;case 12:s=Js(),Hn(t,e),Bn(e),e.stateNode.effectDuration+=ai(s);break;case 13:Hn(t,e),Bn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($p=Vs()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,um(e,s)));break;case 22:r=e.memoizedState!==null;var f=n!==null&&n.memoizedState!==null,b=pr,g=Ut;if(pr=b||r,Ut=g||f,Hn(t,e),Ut=g,pr=b,Bn(e),s&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&~Lu:t._visibility|Lu,r&&(n===null||f||pr||Ut||Lo(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){f=n=t;try{o=f.stateNode,r?Ne(f,yw,o):Ne(f,Nw,f.stateNode,f.memoizedProps)}catch(z){ot(f,f.return,z)}}}else if(t.tag===6){if(n===null){f=t;try{c=f.stateNode,r?Ne(f,xw,c):Ne(f,Sw,c,f.memoizedProps)}catch(z){ot(f,f.return,z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,um(e,n))));break;case 19:Hn(t,e),Bn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,um(e,s)));break;case 30:break;case 21:break;default:Hn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{Ne(e,XS,e)}catch(n){ot(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ig(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ig(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sg(e,t.alternate,t),t=t.sibling}function cg(e){switch(e.tag){case 0:case 11:case 14:case 15:om(e,e.return,Zt),Lo(e);break;case 1:Rs(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&Jv(e,e.return,t),Lo(e);break;case 27:Ne(e,wi,e.stateNode);case 26:case 5:Rs(e,e.return),Lo(e);break;case 22:e.memoizedState===null&&Lo(e);break;case 30:Lo(e);break;default:Lo(e)}}function Lo(e){for(e=e.child;e!==null;)cg(e),e=e.sibling}function ug(e,t,n,s){var r=n.flags;switch(n.tag){case 0:case 11:case 15:rr(e,n,s),Fv(n,Zt);break;case 1:if(rr(e,n,s),t=n.stateNode,typeof t.componentDidMount=="function"&&Ne(n,Op,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{Ne(n,MS,t,e)}catch(o){ot(n,n.return,o)}}s&&r&64&&Kv(n),bi(n,n.return);break;case 27:ng(n);case 26:case 5:rr(e,n,s),s&&t===null&&r&4&&eg(n),bi(n,n.return);break;case 12:if(s&&r&4){r=Js(),rr(e,n,s),s=n.stateNode,s.effectDuration+=ai(r);try{Ne(n,Wv,n,t,$u,s.effectDuration)}catch(o){ot(n,n.return,o)}}else rr(e,n,s);break;case 13:rr(e,n,s),s&&r&4&&ag(e,n);break;case 22:n.memoizedState===null&&rr(e,n,s),bi(n,n.return);break;case 30:break;default:rr(e,n,s)}}function rr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)ug(e,t.alternate,t,n),t=t.sibling}function dm(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&ko(e),n!=null&&oi(n))}function fm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ko(t),e!=null&&oi(e))}function Us(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dg(e,t,n,s),t=t.sibling}function dg(e,t,n,s){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Us(e,t,n,s),r&2048&&Zv(t,_t|rs);break;case 1:Us(e,t,n,s);break;case 3:var o=Js();Us(e,t,n,s),r&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(ko(t),n!=null&&oi(n))),e.passiveEffectDuration+=Gc(o);break;case 12:if(r&2048){r=Js(),Us(e,t,n,s),e=t.stateNode,e.passiveEffectDuration+=ai(r);try{Ne(t,QS,t,t.alternate,$u,e.passiveEffectDuration)}catch(f){ot(t,t.return,f)}}else Us(e,t,n,s);break;case 13:Us(e,t,n,s);break;case 23:break;case 22:o=t.stateNode;var c=t.alternate;t.memoizedState!==null?o._visibility&ir?Us(e,t,n,s):vi(e,t):o._visibility&ir?Us(e,t,n,s):(o._visibility|=ir,Va(e,t,n,s,(t.subtreeFlags&10256)!==0)),r&2048&&dm(c,t);break;case 24:Us(e,t,n,s),r&2048&&fm(t.alternate,t);break;default:Us(e,t,n,s)}}function Va(e,t,n,s,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)fg(e,t,n,s,r),t=t.sibling}function fg(e,t,n,s,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Va(e,t,n,s,r),Zv(t,_t);break;case 23:break;case 22:var c=t.stateNode;t.memoizedState!==null?c._visibility&ir?Va(e,t,n,s,r):vi(e,t):(c._visibility|=ir,Va(e,t,n,s,r)),r&&o&2048&&dm(t.alternate,t);break;case 24:Va(e,t,n,s,r),r&&o&2048&&fm(t.alternate,t);break;default:Va(e,t,n,s,r)}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,r=s.flags;switch(s.tag){case 22:vi(n,s),r&2048&&dm(s.alternate,s);break;case 24:vi(n,s),r&2048&&fm(s.alternate,s);break;default:vi(n,s)}t=t.sibling}}function za(e){if(e.subtreeFlags&Wi)for(e=e.child;e!==null;)mg(e),e=e.sibling}function mg(e){switch(e.tag){case 26:za(e),e.flags&Wi&&e.memoizedState!==null&&Ow(gs,e.memoizedState,e.memoizedProps);break;case 5:za(e);break;case 3:case 4:var t=gs;gs=Su(e.stateNode.containerInfo),za(e),gs=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Wi,Wi=16777216,za(e),Wi=t):za(e));break;default:za(e)}}function pg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Gt=s,vg(s,e)}pg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hg(e),e=e.sibling}function hg(e){switch(e.tag){case 0:case 11:case 15:gi(e),e.flags&2048&&am(e,e.return,_t|rs);break;case 3:var t=Js();gi(e),e.stateNode.passiveEffectDuration+=Gc(t);break;case 12:t=Js(),gi(e),e.stateNode.passiveEffectDuration+=ai(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&ir&&(e.return===null||e.return.tag!==13)?(t._visibility&=~ir,bu(e)):gi(e);break;default:gi(e)}}function bu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Gt=s,vg(s,e)}pg(e)}for(e=e.child;e!==null;)bg(e),e=e.sibling}function bg(e){switch(e.tag){case 0:case 11:case 15:am(e,e.return,_t),bu(e);break;case 22:var t=e.stateNode;t._visibility&ir&&(t._visibility&=~ir,bu(e));break;default:bu(e)}}function vg(e,t){for(;Gt!==null;){var n=Gt,s=n;switch(s.tag){case 0:case 11:case 15:am(s,t,_t);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(s=s.memoizedState.cachePool.pool,s!=null&&ko(s));break;case 24:oi(s.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,Gt=s;else e:for(n=e;Gt!==null;){s=Gt;var r=s.sibling,o=s.return;if(rg(s),s===n){Gt=null;break e}if(r!==null){r.return=o,Gt=r;break e}Gt=o}}}function ZS(){uj.forEach(function(e){return e()})}function gg(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||P.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ln(e){if((tt&fn)!==Gn&&Qe!==0)return Qe&-Qe;var t=P.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Xo,e!==0?e:Nm()):Cr()}function yg(){Qn===0&&(Qn=(Qe&536870912)===0||We?_e():536870912);var e=as.current;return e!==null&&(e.flags|=32),Qn}function Rt(e,t,n){if(Sl&&console.error("useInsertionEffect must not schedule updates."),Zp&&(od=!0),(e===ut&&(nt===Jo||nt===Wo)||e.cancelPendingCommit!==null)&&(Pa(e,0),Pr(e,Qe,Qn,!1)),on(e,n),(tt&fn)!==0&&e===ut){if(Ps)switch(t.tag){case 0:case 11:case 15:e=Ye&&Z(Ye)||"Unknown",Ox.has(e)||(Ox.add(e),t=Z(t)||"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",t,e,e));break;case 1:Ax||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Ax=!0)}}else ps&&Dr(e,t,n),aw(t),e===ut&&((tt&fn)===Gn&&(Jr|=n),jt===Ko&&Pr(e,Qe,Qn,!1)),As(e)}function xg(e,t,n){if((tt&(fn|ys))!==Gn)throw Error("Should not already be working.");var s=!n&&(t&124)===0&&(t&e.expiredLanes)===0||us(e,t),r=s?JS(e,t):hm(e,t,!0),o=s;do{if(r===hr){xl&&!s&&Pr(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!KS(n)){r=hm(e,t,!1),o=!1;continue}if(r===gl){if(o=t,e.errorRecoveryDisabledLanes&o)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{r=e;var f=c;c=oc;var b=r.current.memoizedState.isDehydrated;if(b&&(Pa(r,f).flags|=256),f=hm(r,f,!1),f!==gl){if(Yp&&!b){r.errorRecoveryDisabledLanes|=o,Jr|=o,r=Ko;break e}r=mn,mn=c,r!==null&&(mn===null?mn=r:mn.push.apply(mn,r))}r=f}if(o=!1,r!==gl)continue}}if(r===tc){Pa(e,0),Pr(e,t,0,!0);break}e:{switch(s=e,r){case hr:case tc:throw Error("Root did not complete. This is a bug in React.");case Ko:if((t&4194048)!==t)break;case nd:Pr(s,t,Qn,!Zr);break e;case gl:mn=null;break;case Bp:case wx:break;default:throw Error("Unknown root exit status.")}if(P.actQueue!==null)bm(s,n,t,mn,ac,sd,Qn,Jr,ea);else{if((t&62914560)===t&&(o=$p+jx-Vs(),10<o)){if(Pr(s,t,Qn,!Zr),rn(s,0,!0)!==0)break e;s.timeoutHandle=Bx(Ng.bind(null,s,n,mn,ac,sd,t,Qn,Jr,ea,Zr,r,pj,D0,0),o);break e}Ng(s,n,mn,ac,sd,t,Qn,Jr,ea,Zr,r,fj,D0,0)}}}break}while(!0);As(e)}function Ng(e,t,n,s,r,o,c,f,b,g,z,_,M,L){if(e.timeoutHandle=oa,_=t.subtreeFlags,(_&8192||(_&16785408)===16785408)&&(fc={stylesheets:null,count:0,unsuspend:Aw},mg(t),_=Mw(),_!==null)){e.cancelPendingCommit=_(bm.bind(null,e,t,o,n,s,r,c,f,b,z,mj,M,L)),Pr(e,o,c,!g);return}bm(e,t,o,n,s,r,c,f,b)}function KS(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var r=n[s],o=r.getSnapshot;r=r.value;try{if(!cn(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pr(e,t,n,s){t&=~Gp,t&=~Jr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var r=t;0<r;){var o=31-an(r),c=1<<o;s[o]=-1,r&=~c}n!==0&&Eo(e,n,t)}function ka(){return(tt&(fn|ys))===Gn?(Ni(0),!1):!0}function mm(){if(Ye!==null){if(nt===Tn)var e=Ye.return;else e=Ye,Lc(),Ef(e),dl=null,Ki=0,e=Ye;for(;e!==null;)Iv(e.alternate,e),e=e.return;Ye=null}}function Pa(e,t){var n=e.timeoutHandle;n!==oa&&(e.timeoutHandle=oa,Dj(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),mm(),ut=e,Ye=n=Zs(e.current,null),Qe=t,nt=Tn,$n=null,Zr=!1,xl=us(e,t),Yp=!1,jt=hr,ea=Qn=Gp=Jr=Kr=0,mn=oc=null,sd=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var r=31-an(s),o=1<<r;t|=e[r],s&=~o}return qs=t,Pc(),t=j0(),1e3<t-E0&&(P.recentlyCreatedOwnerStacks=0,E0=t),bs.discardPendingWarnings(),n}function Sg(e,t){Re=null,P.H=ed,P.getCurrentStack=null,Ps=!1,Yn=null,t===Xi||t===Fu?(t=Fb(),nt=sc):t===U0?(t=Fb(),nt=Ex):nt=t===px?qp:t!==null&&typeof t=="object"&&typeof t.then=="function"?yl:nc,$n=t;var n=Ye;if(n===null)jt=tc,du(e,_n(t,e.current));else switch(n.mode&Ft&&mf(n),ct(),nt){case nc:ce!==null&&typeof ce.markComponentErrored=="function"&&ce.markComponentErrored(n,t,Qe);break;case Jo:case Wo:case sc:case yl:case rc:ce!==null&&typeof ce.markComponentSuspended=="function"&&ce.markComponentSuspended(n,t,Qe)}}function wg(){var e=P.H;return P.H=ed,e===null?ed:e}function Eg(){var e=P.A;return P.A=cj,e}function pm(){jt=Ko,Zr||(Qe&4194048)!==Qe&&as.current!==null||(xl=!0),(Kr&134217727)===0&&(Jr&134217727)===0||ut===null||Pr(ut,Qe,Qn,!1)}function hm(e,t,n){var s=tt;tt|=fn;var r=wg(),o=Eg();if(ut!==e||Qe!==t){if(ps){var c=e.memoizedUpdaters;0<c.size&&(xi(e,Qe),c.clear()),Fs(e,t)}ac=null,Pa(e,t)}sn(t),t=!1,c=jt;e:do try{if(nt!==Tn&&Ye!==null){var f=Ye,b=$n;switch(nt){case qp:mm(),c=nd;break e;case sc:case Jo:case Wo:case yl:as.current===null&&(t=!0);var g=nt;if(nt=Tn,$n=null,_a(e,f,b,g),n&&xl){c=hr;break e}break;default:g=nt,nt=Tn,$n=null,_a(e,f,b,g)}}jg(),c=jt;break}catch(z){Sg(e,z)}while(!0);return t&&e.shellSuspendCounter++,Lc(),tt=s,P.H=r,P.A=o,An(),Ye===null&&(ut=null,Qe=0,Pc()),c}function jg(){for(;Ye!==null;)Tg(Ye)}function JS(e,t){var n=tt;tt|=fn;var s=wg(),r=Eg();if(ut!==e||Qe!==t){if(ps){var o=e.memoizedUpdaters;0<o.size&&(xi(e,Qe),o.clear()),Fs(e,t)}ac=null,rd=Vs()+Tx,Pa(e,t)}else xl=us(e,t);sn(t);e:do try{if(nt!==Tn&&Ye!==null)t:switch(t=Ye,o=$n,nt){case nc:nt=Tn,$n=null,_a(e,t,o,nc);break;case Jo:case Wo:if(Xb(o)){nt=Tn,$n=null,Dg(t);break}t=function(){nt!==Jo&&nt!==Wo||ut!==e||(nt=rc),As(e)},o.then(t,t);break e;case sc:nt=rc;break e;case Ex:nt=Lp;break e;case rc:Xb(o)?(nt=Tn,$n=null,Dg(t)):(nt=Tn,$n=null,_a(e,t,o,rc));break;case Lp:var c=null;switch(Ye.tag){case 26:c=Ye.memoizedState;case 5:case 27:var f=Ye;if(!c||by(c)){nt=Tn,$n=null;var b=f.sibling;if(b!==null)Ye=b;else{var g=f.return;g!==null?(Ye=g,vu(g)):Ye=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}nt=Tn,$n=null,_a(e,t,o,Lp);break;case yl:nt=Tn,$n=null,_a(e,t,o,yl);break;case qp:mm(),jt=nd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}P.actQueue!==null?jg():WS();break}catch(z){Sg(e,z)}while(!0);return Lc(),P.H=s,P.A=r,tt=n,Ye!==null?(ce!==null&&typeof ce.markRenderYielded=="function"&&ce.markRenderYielded(),hr):(An(),ut=null,Qe=0,Pc(),jt)}function WS(){for(;Ye!==null&&!Fw();)Tg(Ye)}function Tg(e){var t=e.alternate;(e.mode&Ft)!==mt?(ff(e),t=Ne(e,rm,t,e,qs),mf(e)):t=Ne(e,rm,t,e,qs),e.memoizedProps=e.pendingProps,t===null?vu(e):Ye=t}function Dg(e){var t=Ne(e,ew,e);e.memoizedProps=e.pendingProps,t===null?vu(e):Ye=t}function ew(e){var t=e.alternate,n=(e.mode&Ft)!==mt;switch(n&&ff(e),e.tag){case 15:case 0:t=Bv(t,e,e.pendingProps,e.type,void 0,Qe);break;case 11:t=Bv(t,e,e.pendingProps,e.type.render,e.ref,Qe);break;case 5:Ef(e);default:Iv(t,e),e=Ye=kb(e,qs),t=rm(t,e,qs)}return n&&mf(e),t}function _a(e,t,n,s){Lc(),Ef(t),dl=null,Ki=0;var r=t.return;try{if(HS(e,r,t,n,Qe)){jt=tc,du(e,_n(n,e.current)),Ye=null;return}}catch(o){if(r!==null)throw Ye=r,o;jt=tc,du(e,_n(n,e.current)),Ye=null;return}t.flags&32768?(We||s===nc?e=!0:xl||(Qe&536870912)!==0?e=!1:(Zr=e=!0,(s===Jo||s===Wo||s===sc||s===yl)&&(s=as.current,s!==null&&s.tag===13&&(s.flags|=16384))),Cg(t,e)):vu(t)}function vu(e){var t=e;do{if((t.flags&32768)!==0){Cg(t,Zr);return}var n=t.alternate;if(e=t.return,ff(t),n=Ne(t,LS,n,t,qs),(t.mode&Ft)!==mt&&Yb(t),n!==null){Ye=n;return}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);jt===hr&&(jt=wx)}function Cg(e,t){do{var n=qS(e.alternate,e);if(n!==null){n.flags&=32767,Ye=n;return}if((e.mode&Ft)!==mt){Yb(e),n=e.actualDuration;for(var s=e.child;s!==null;)n+=s.actualDuration,s=s.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ye=e;return}Ye=e=n}while(e!==null);jt=nd,Ye=null}function bm(e,t,n,s,r,o,c,f,b){e.cancelPendingCommit=null;do yi();while(Kt!==ta);if(bs.flushLegacyContextWarning(),bs.flushPendingUnsafeLifecycleWarnings(),(tt&(fn|ys))!==Gn)throw Error("Should not already be working.");if(ce!==null&&typeof ce.markCommitStarted=="function"&&ce.markCommitStarted(n),t===null)De();else{if(n===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.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(o=t.lanes|t.childLanes,o|=yp,ja(e,n,o,c,f,b),e===ut&&(Ye=ut=null,Qe=0),Nl=t,eo=e,to=n,Xp=o,Ip=r,Ux=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ow(Ga,function(){return Mg(),null})):(e.callbackNode=null,e.callbackPriority=0),$u=al(),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=P.T,P.T=null,r=et.p,et.p=Kn,c=tt,tt|=ys;try{IS(e,t,n)}finally{tt=c,et.p=r,P.T=s}}Kt=Dx,Rg(),Ug(),Ag()}}function Rg(){if(Kt===Dx){Kt=ta;var e=eo,t=Nl,n=to,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var r=et.p;et.p=Kn;var o=tt;tt|=ys;try{bl=n,vl=e,lg(t,e),vl=bl=null,n=oh;var c=Ab(e.containerInfo),f=n.focusedElem,b=n.selectionRange;if(c!==f&&f&&f.ownerDocument&&Ub(f.ownerDocument.documentElement,f)){if(b!==null&&Kd(f)){var g=b.start,z=b.end;if(z===void 0&&(z=g),"selectionStart"in f)f.selectionStart=g,f.selectionEnd=Math.min(z,f.value.length);else{var _=f.ownerDocument||document,M=_&&_.defaultView||window;if(M.getSelection){var L=M.getSelection(),fe=f.textContent.length,Ce=Math.min(b.start,fe),dt=b.end===void 0?Ce:Math.min(b.end,fe);!L.extend&&Ce>dt&&(c=dt,dt=Ce,Ce=c);var Ie=Rb(f,Ce),S=Rb(f,dt);if(Ie&&S&&(L.rangeCount!==1||L.anchorNode!==Ie.node||L.anchorOffset!==Ie.offset||L.focusNode!==S.node||L.focusOffset!==S.offset)){var w=_.createRange();w.setStart(Ie.node,Ie.offset),L.removeAllRanges(),Ce>dt?(L.addRange(w),L.extend(S.node,S.offset)):(w.setEnd(S.node,S.offset),L.addRange(w))}}}}for(_=[],L=f;L=L.parentNode;)L.nodeType===1&&_.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<_.length;f++){var D=_[f];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}xd=!!rh,oh=rh=null}finally{tt=o,et.p=r,P.T=s}}e.current=t,Kt=Cx}}function Ug(){if(Kt===Cx){Kt=ta;var e=eo,t=Nl,n=to,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var r=et.p;et.p=Kn;var o=tt;tt|=ys;try{ce!==null&&typeof ce.markLayoutEffectsStarted=="function"&&ce.markLayoutEffectsStarted(n),bl=n,vl=e,sg(e,t.alternate,t),vl=bl=null,ce!==null&&typeof ce.markLayoutEffectsStopped=="function"&&ce.markLayoutEffectsStopped()}finally{tt=o,et.p=r,P.T=s}}Kt=Rx}}function Ag(){if(Kt===hj||Kt===Rx){Kt=ta,Zw();var e=eo,t=Nl,n=to,s=Ux,r=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;r?Kt=Qp:(Kt=ta,Nl=eo=null,Og(e,e.pendingLanes),na=0,ic=null);var o=e.pendingLanes;if(o===0&&(Wr=null),r||Pg(e),r=Mn(n),t=t.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{var c=(t.current.flags&128)===128;switch(r){case Kn:var f=Km;break;case ks:f=Jm;break;case lr:f=Ga;break;case Vu:f=Wm;break;default:f=Ga}Jt.onCommitFiberRoot($a,t,f,c)}catch(_){zs||(zs=!0,console.error("React instrumentation encountered an error: %s",_))}if(ps&&e.memoizedUpdaters.clear(),ZS(),s!==null){c=P.T,f=et.p,et.p=Kn,P.T=null;try{var b=e.onRecoverableError;for(t=0;t<s.length;t++){var g=s[t],z=tw(g.stack);Ne(g.source,b,g.value,z)}}finally{P.T=c,et.p=f}}(to&3)!==0&&yi(),As(e),o=e.pendingLanes,(n&4194090)!==0&&(o&42)!==0?(Xu=!0,e===Fp?lc++:(lc=0,Fp=e)):lc=0,Ni(0),De()}}function tw(e){return e={componentStack:e},Object.defineProperty(e,"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.')}}),e}function Og(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,oi(t)))}function yi(e){return Rg(),Ug(),Ag(),Mg()}function Mg(){if(Kt!==Qp)return!1;var e=eo,t=Xp;Xp=0;var n=Mn(to),s=lr>n?lr:n;n=P.T;var r=et.p;try{et.p=s,P.T=null,s=Ip,Ip=null;var o=eo,c=to;if(Kt=ta,Nl=eo=null,to=0,(tt&(fn|ys))!==Gn)throw Error("Cannot flush passive effects while already rendering.");Zp=!0,od=!1,ce!==null&&typeof ce.markPassiveEffectsStarted=="function"&&ce.markPassiveEffectsStarted(c);var f=tt;if(tt|=ys,hg(o.current),dg(o,o.current,c,s),ce!==null&&typeof ce.markPassiveEffectsStopped=="function"&&ce.markPassiveEffectsStopped(),Pg(o),tt=f,Ni(0,!1),od?o===ic?na++:(na=0,ic=o):na=0,od=Zp=!1,Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot($a,o)}catch(g){zs||(zs=!0,console.error("React instrumentation encountered an error: %s",g))}var b=o.current.stateNode;return b.effectDuration=0,b.passiveEffectDuration=0,!0}finally{et.p=r,P.T=n,Og(e,t)}}function Vg(e,t,n){t=_n(n,t),t=Xf(e.stateNode,t,2),e=Mr(e,t,2),e!==null&&(on(e,2),As(e))}function ot(e,t,n){if(Sl=!1,e.tag===3)Vg(e,e,n);else{for(;t!==null;){if(t.tag===3){Vg(t,e,n);return}if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wr===null||!Wr.has(s))){e=_n(n,e),n=If(2),s=Mr(t,n,2),s!==null&&(Ff(n,s,t,e),on(s,2),As(s));return}}t=t.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.
195
-
196
- Error message:
197
-
198
- %s`,n)}}function vm(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new dj;var r=new Set;s.set(t,r)}else r=s.get(t),r===void 0&&(r=new Set,s.set(t,r));r.has(n)||(Yp=!0,r.add(n),s=nw.bind(null,e,t,n),ps&&xi(e,n),t.then(s,s))}function nw(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,gg()&&P.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
199
-
200
- When testing, code that resolves suspended data should be wrapped into act(...):
201
-
202
- act(() => {
203
- /* finish loading suspended data */
204
- });
205
- /* assert on the output */
206
-
207
- 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`),ut===e&&(Qe&n)===n&&(jt===Ko||jt===Bp&&(Qe&62914560)===Qe&&Vs()-$p<jx?(tt&fn)===Gn&&Pa(e,0):Gp|=n,ea===Qe&&(ea=0)),As(e)}function zg(e,t){t===0&&(t=Xs()),e=xn(e,t),e!==null&&(on(e,t),As(e))}function sw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zg(e,n)}function rw(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(t),zg(e,n)}function gm(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var s=e,r=t,o=r.type===Ru;o=n||o,r.tag!==22?r.flags&67108864?o&&Ne(r,kg,s,r,(r.mode&N0)===mt):gm(s,r,o):r.memoizedState===null&&(o&&r.flags&8192?Ne(r,kg,s,r):r.subtreeFlags&67108864&&Ne(r,gm,s,r,o)),t=t.sibling}}function kg(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;pe(!0);try{cg(t),n&&bg(t),ug(e,t.alternate,t,!1),n&&fg(e,t,0,null,!1,0)}finally{pe(!1)}}function Pg(e){var t=!0;e.current.mode&(en|hs)||(t=!1),gm(e,e.current,t)}function _g(e){if((tt&fn)===Gn){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=Z(e)||"ReactComponent",ad!==null){if(ad.has(t))return;ad.add(t)}else ad=new Set([t]);Ne(e,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 later calls tries to update the component. Move this work to useEffect instead.")})}}}function xi(e,t){ps&&e.memoizedUpdaters.forEach(function(n){Dr(e,n,t)})}function ow(e,t){var n=P.actQueue;return n!==null?(n.push(t),gj):Zm(e,t)}function aw(e){gg()&&P.actQueue===null&&Ne(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
208
-
209
- When testing, code that causes React state updates should be wrapped into act(...):
210
-
211
- act(() => {
212
- /* fire events that update state */
213
- });
214
- /* assert on the output */
215
-
216
- 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`,Z(e))})}function As(e){e!==wl&&e.next===null&&(wl===null?ld=wl=e:wl=wl.next=e),id=!0,P.actQueue!==null?Jp||(Jp=!0,qg()):Kp||(Kp=!0,qg())}function Ni(e,t){if(!Wp&&id){Wp=!0;do for(var n=!1,s=ld;s!==null;){if(e!==0){var r=s.pendingLanes;if(r===0)var o=0;else{var c=s.suspendedLanes,f=s.pingedLanes;o=(1<<31-an(42|e)+1)-1,o&=r&~(c&~f),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Lg(s,o))}else o=Qe,o=rn(s,s===ut?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==oa),(o&3)===0||us(s,o)||(n=!0,Lg(s,o));s=s.next}while(n);Wp=!1}}function lw(){ym()}function ym(){id=Jp=Kp=!1;var e=0;sa!==0&&(fw()&&(e=sa),sa=0);for(var t=Vs(),n=null,s=ld;s!==null;){var r=s.next,o=Hg(s,t);o===0?(s.next=null,n===null?ld=r:n.next=r,r===null&&(wl=n)):(n=s,(e!==0||(o&3)!==0)&&(id=!0)),s=r}Ni(e)}function Hg(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var c=31-an(o),f=1<<c,b=r[c];b===-1?((f&n)===0||(f&s)!==0)&&(r[c]=On(f,t)):b<=t&&(e.expiredLanes|=f),o&=~f}if(t=ut,n=Qe,n=rn(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==oa),s=e.callbackNode,n===0||e===t&&(nt===Jo||nt===Wo)||e.cancelPendingCommit!==null)return s!==null&&xm(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||us(e,n)){if(t=n&-n,t!==e.callbackPriority||P.actQueue!==null&&s!==eh)xm(s);else return t;switch(Mn(n)){case Kn:case ks:n=Jm;break;case lr:n=Ga;break;case Vu:n=Wm;break;default:n=Ga}return s=Bg.bind(null,e),P.actQueue!==null?(P.actQueue.push(s),n=eh):n=Zm(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&xm(s),e.callbackPriority=2,e.callbackNode=null,2}function Bg(e,t){if(Xu=Qu=!1,Kt!==ta&&Kt!==Qp)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(yi()&&e.callbackNode!==n)return null;var s=Qe;return s=rn(e,e===ut?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==oa),s===0?null:(xg(e,s,t),Hg(e,Vs()),e.callbackNode!=null&&e.callbackNode===n?Bg.bind(null,e):null)}function Lg(e,t){if(yi())return null;Qu=Xu,Xu=!1,xg(e,t,!0)}function xm(e){e!==eh&&e!==null&&Iw(e)}function qg(){P.actQueue!==null&&P.actQueue.push(function(){return ym(),null}),Cj(function(){(tt&(fn|ys))!==Gn?Zm(Km,lw):ym()})}function Nm(){return sa===0&&(sa=_e()),sa}function Yg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(I(e,"action"),Jl(""+e))}function Gg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function iw(e,t,n,s,r){if(t==="submit"&&n&&n.stateNode===r){var o=Yg((r[wn]||null).action),c=s.submitter;c&&(t=(t=c[wn]||null)?Yg(t.formAction):c.getAttribute("formAction"),t!==null&&(o=t,c=null));var f=new Hu("action","action",null,s,r);e.push({event:f,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(sa!==0){var b=c?Gg(r,c):new FormData(r),g={pending:!0,data:b,method:r.method,action:o};Object.freeze(g),Bf(n,g,null,b)}}else typeof o=="function"&&(f.preventDefault(),b=c?Gg(r,c):new FormData(r),g={pending:!0,data:b,method:r.method,action:o},Object.freeze(g),Bf(n,g,o,b))},currentTarget:r}]})}}function gu(e,t,n){e.currentTarget=n;try{t(e)}catch(s){zp(s)}e.currentTarget=null}function $g(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n];e:{var r=void 0,o=s.event;if(s=s.listeners,t)for(var c=s.length-1;0<=c;c--){var f=s[c],b=f.instance,g=f.currentTarget;if(f=f.listener,b!==r&&o.isPropagationStopped())break e;b!==null?Ne(b,gu,o,f,g):gu(o,f,g),r=b}else for(c=0;c<s.length;c++){if(f=s[c],b=f.instance,g=f.currentTarget,f=f.listener,b!==r&&o.isPropagationStopped())break e;b!==null?Ne(b,gu,o,f,g):gu(o,f,g),r=b}}}}function Xe(e,t){th.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[ep];n===void 0&&(n=t[ep]=new Set);var s=e+"__bubble";n.has(s)||(Qg(t,e,2,!1),n.add(s))}function Sm(e,t,n){th.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var s=0;t&&(s|=4),Qg(n,e,s,t)}function wm(e){if(!e[cd]){e[cd]=!0,Ry.forEach(function(n){n!=="selectionchange"&&(th.has(n)||Sm(n,!1,e),Sm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cd]||(t[cd]=!0,Sm("selectionchange",!1,t))}}function Qg(e,t,n,s){switch(Ny(t)){case Kn:var r=_w;break;case ks:r=Hw;break;default:r=_m}n=r.bind(null,t,n,e),r=void 0,!ip||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Em(e,t,n,s,r){var o=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var c=s.tag;if(c===3||c===4){var f=s.stateNode.containerInfo;if(f===r)break;if(c===4)for(c=s.return;c!==null;){var b=c.tag;if((b===3||b===4)&&c.stateNode.containerInfo===r)return;c=c.return}for(;f!==null;){if(c=zn(f),c===null)return;if(b=c.tag,b===5||b===6||b===26||b===27){s=o=c;continue e}f=f.parentNode}}s=s.return}gb(function(){var g=o,z=Fd(n),_=[];e:{var M=x0.get(e);if(M!==void 0){var L=Hu,fe=e;switch(e){case"keypress":if(Vc(n)===0)break e;case"keydown":case"keyup":L=zE;break;case"focusin":fe="focus",L=fp;break;case"focusout":fe="blur",L=fp;break;case"beforeblur":case"afterblur":L=fp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=a0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=wE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=_E;break;case b0:case v0:case g0:L=TE;break;case y0:L=BE;break;case"scroll":case"scrollend":L=NE;break;case"wheel":L=qE;break;case"copy":case"cut":case"paste":L=CE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=i0;break;case"toggle":case"beforetoggle":L=GE}var Ce=(t&4)!==0,dt=!Ce&&(e==="scroll"||e==="scrollend"),Ie=Ce?M!==null?M+"Capture":null:M;Ce=[];for(var S=g,w;S!==null;){var D=S;if(w=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||w===null||Ie===null||(D=Wl(S,Ie),D!=null&&Ce.push(Si(S,D,w))),dt)break;S=S.return}0<Ce.length&&(M=new L(M,fe,null,n,z),_.push({event:M,listeners:Ce}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",M&&n!==Oi&&(fe=n.relatedTarget||n.fromElement)&&(zn(fe)||fe[Gr]))break e;if((L||M)&&(M=z.window===z?z:(M=z.ownerDocument)?M.defaultView||M.parentWindow:window,L?(fe=n.relatedTarget||n.toElement,L=g,fe=fe?zn(fe):null,fe!==null&&(dt=$(fe),Ce=fe.tag,fe!==dt||Ce!==5&&Ce!==27&&Ce!==6)&&(fe=null)):(L=null,fe=g),L!==fe)){if(Ce=a0,D="onMouseLeave",Ie="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=i0,D="onPointerLeave",Ie="onPointerEnter",S="pointer"),dt=L==null?M:ds(L),w=fe==null?M:ds(fe),M=new Ce(D,S+"leave",L,n,z),M.target=dt,M.relatedTarget=w,D=null,zn(z)===g&&(Ce=new Ce(Ie,S+"enter",fe,n,z),Ce.target=w,Ce.relatedTarget=dt,D=Ce),dt=D,L&&fe)t:{for(Ce=L,Ie=fe,S=0,w=Ce;w;w=Ha(w))S++;for(w=0,D=Ie;D;D=Ha(D))w++;for(;0<S-w;)Ce=Ha(Ce),S--;for(;0<w-S;)Ie=Ha(Ie),w--;for(;S--;){if(Ce===Ie||Ie!==null&&Ce===Ie.alternate)break t;Ce=Ha(Ce),Ie=Ha(Ie)}Ce=null}else Ce=null;L!==null&&Xg(_,M,L,Ce,!1),fe!==null&&dt!==null&&Xg(_,dt,fe,Ce,!0)}}e:{if(M=g?ds(g):window,L=M.nodeName&&M.nodeName.toLowerCase(),L==="select"||L==="input"&&M.type==="file")var Y=jb;else if(wb(M))if(p0)Y=CS;else{Y=TS;var ne=jS}else L=M.nodeName,!L||L.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?g&&Kl(g.elementType)&&(Y=jb):Y=DS;if(Y&&(Y=Y(e,g))){Eb(_,Y,n,z);break e}ne&&ne(e,M,g),e==="focusout"&&g&&M.type==="number"&&g.memoizedProps.value!=null&&Yd(M,"number",M.value)}switch(ne=g?ds(g):window,e){case"focusin":(wb(ne)||ne.contentEditable==="true")&&(Ja=ne,pp=g,Hi=null);break;case"focusout":Hi=pp=Ja=null;break;case"mousedown":hp=!0;break;case"contextmenu":case"mouseup":case"dragend":hp=!1,Ob(_,n,z);break;case"selectionchange":if(IE)break;case"keydown":case"keyup":Ob(_,n,z)}var Ae;if(mp)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Ka?Nb(e,n)&&(me="onCompositionEnd"):e==="keydown"&&n.keyCode===c0&&(me="onCompositionStart");me&&(u0&&n.locale!=="ko"&&(Ka||me!=="onCompositionStart"?me==="onCompositionEnd"&&Ka&&(Ae=yb()):($r=z,cp="value"in $r?$r.value:$r.textContent,Ka=!0)),ne=yu(g,me),0<ne.length&&(me=new l0(me,e,null,n,z),_.push({event:me,listeners:ne}),Ae?me.data=Ae:(Ae=Sb(n),Ae!==null&&(me.data=Ae)))),(Ae=QE?NS(e,n):SS(e,n))&&(me=yu(g,"onBeforeInput"),0<me.length&&(ne=new UE("onBeforeInput","beforeinput",null,n,z),_.push({event:ne,listeners:me}),ne.data=Ae)),iw(_,e,g,n,z)}$g(_,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yu(e,t){for(var n=t+"Capture",s=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=Wl(e,n),r!=null&&s.unshift(Si(e,r,o)),r=Wl(e,t),r!=null&&s.push(Si(e,r,o))),e.tag===3)return s;e=e.return}return[]}function Ha(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xg(e,t,n,s,r){for(var o=t._reactName,c=[];n!==null&&n!==s;){var f=n,b=f.alternate,g=f.stateNode;if(f=f.tag,b!==null&&b===s)break;f!==5&&f!==26&&f!==27||g===null||(b=g,r?(g=Wl(n,o),g!=null&&c.unshift(Si(n,g,b))):r||(g=Wl(n,o),g!=null&&c.push(Si(n,g,b)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}function jm(e,t){vS(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||r0||(r0=!0,e==="select"&&t.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.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:qo,possibleRegistrationNames:tp};Kl(e)||typeof t.is=="string"||yS(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.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 qt(e,t,n,s){t!==n&&(n=_r(n),_r(t)!==n&&(s[e]=t))}function cw(e,t,n){t.forEach(function(s){n[Zg(s)]=s==="style"?Dm(e):e.getAttribute(s)})}function Os(e,t){t===!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.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Ig(e,t){return e=e.namespaceURI===ku||e.namespaceURI===Xa?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function _r(e){return j(e)&&(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.",Te(e)),G(e)),(typeof e=="string"?e:""+e).replace(yj,`
217
- `).replace(xj,"")}function Fg(e,t){return t=_r(t),_r(e)===t}function xu(){}function at(e,t,n,s,r,o){switch(n){case"children":typeof s=="string"?(Mc(s,t,!1),t==="body"||t==="textarea"&&s===""||Zl(e,s)):(typeof s=="number"||typeof s=="bigint")&&(Mc(""+s,t,!1),t!=="body"&&Zl(e,""+s));break;case"className":xe(e,"class",s);break;case"tabIndex":xe(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":xe(e,n,s);break;case"style":hb(e,s,o);break;case"data":if(t!=="object"){xe(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){console.error(n==="src"?'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.':'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.',n,n),e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}I(s,n),s=Jl(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(s!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(r.encType==null&&r.method==null||fd||(fd=!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.")),r.target==null||dd||(dd=!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."))):t==="input"||t==="button"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||ud?t!=="button"||r.type==null||r.type==="submit"||ud?typeof s=="function"&&(r.name==null||zx||(zx=!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.')),r.formEncType==null&&r.formMethod==null||fd||(fd=!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.")),r.formTarget==null||dd||(dd=!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."))):(ud=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(ud=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(n==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&at(e,t,"name",r.name,r,null),at(e,t,"formEncType",r.formEncType,r,null),at(e,t,"formMethod",r.formMethod,r,null),at(e,t,"formTarget",r.formTarget,r,null)):(at(e,t,"encType",r.encType,r,null),at(e,t,"method",r.method,r,null),at(e,t,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}I(s,n),s=Jl(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(typeof s!="function"&&Os(n,s),e.onclick=xu);break;case"onScroll":s!=null&&(typeof s!="function"&&Os(n,s),Xe("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&Os(n,s),Xe("scrollend",e));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}I(s,n),n=Jl(""+s),e.setAttributeNS(ra,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(I(s,n),e.setAttribute(n,""+s)):e.removeAttribute(n);break;case"inert":s!==""||md[n]||(md[n]=!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.",n));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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(I(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(I(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):(I(s,n),e.setAttribute(n,s));break;case"popover":Xe("beforetoggle",e),Xe("toggle",e),le(e,"popover",s);break;case"xlinkActuate":Ke(e,ra,"xlink:actuate",s);break;case"xlinkArcrole":Ke(e,ra,"xlink:arcrole",s);break;case"xlinkRole":Ke(e,ra,"xlink:role",s);break;case"xlinkShow":Ke(e,ra,"xlink:show",s);break;case"xlinkTitle":Ke(e,ra,"xlink:title",s);break;case"xlinkType":Ke(e,ra,"xlink:type",s);break;case"xmlBase":Ke(e,nh,"xml:base",s);break;case"xmlLang":Ke(e,nh,"xml:lang",s);break;case"xmlSpace":Ke(e,nh,"xml:space",s);break;case"is":o!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),le(e,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":kx||s==null||typeof s!="object"||(kx=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=bb(n),le(e,n,s)):qo.hasOwnProperty(n)&&s!=null&&typeof s!="function"&&Os(n,s)}}function Tm(e,t,n,s,r,o){switch(n){case"style":hb(e,s,o);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof s=="string"?Zl(e,s):(typeof s=="number"||typeof s=="bigint")&&Zl(e,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&Os(n,s),Xe("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&Os(n,s),Xe("scrollend",e));break;case"onClick":s!=null&&(typeof s!="function"&&Os(n,s),e.onclick=xu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(qo.hasOwnProperty(n))s!=null&&typeof s!="function"&&Os(n,s);else e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[wn]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof s=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,r);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):le(e,n,s)}}}function Xt(e,t,n){switch(jm(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",e),Xe("load",e);var s=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var c=n[o];if(c!=null)switch(o){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:at(e,t,o,c,n,null)}}r&&at(e,t,"srcSet",n.srcSet,n,null),s&&at(e,t,"src",n.src,n,null);return;case"input":ve("input",n),Xe("invalid",e);var f=o=c=r=null,b=null,g=null;for(s in n)if(n.hasOwnProperty(s)){var z=n[s];if(z!=null)switch(s){case"name":r=z;break;case"type":c=z;break;case"checked":b=z;break;case"defaultChecked":g=z;break;case"value":o=z;break;case"defaultValue":f=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:at(e,t,s,z,n,null)}}Wh(e,n),eb(e,o,f,b,g,c,r,!1),Uc(e);return;case"select":ve("select",n),Xe("invalid",e),s=c=o=null;for(r in n)if(n.hasOwnProperty(r)&&(f=n[r],f!=null))switch(r){case"value":o=f;break;case"defaultValue":c=f;break;case"multiple":s=f;default:at(e,t,r,f,n,null)}sb(e,n),t=o,n=c,e.multiple=!!s,t!=null?Ta(e,!!s,t,!1):n!=null&&Ta(e,!!s,n,!0);return;case"textarea":ve("textarea",n),Xe("invalid",e),o=r=s=null;for(c in n)if(n.hasOwnProperty(c)&&(f=n[c],f!=null))switch(c){case"value":s=f;break;case"defaultValue":r=f;break;case"children":o=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:at(e,t,c,f,n,null)}rb(e,n),ab(e,s,r,o),Uc(e);return;case"option":tb(e,n);for(b in n)if(n.hasOwnProperty(b)&&(s=n[b],s!=null))switch(b){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:at(e,t,b,s,n,null)}return;case"dialog":Xe("beforetoggle",e),Xe("toggle",e),Xe("cancel",e),Xe("close",e);break;case"iframe":case"object":Xe("load",e);break;case"video":case"audio":for(s=0;s<cc.length;s++)Xe(cc[s],e);break;case"image":Xe("error",e),Xe("load",e);break;case"details":Xe("toggle",e);break;case"embed":case"source":case"link":Xe("error",e),Xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in n)if(n.hasOwnProperty(g)&&(s=n[g],s!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:at(e,t,g,s,n,null)}return;default:if(Kl(t)){for(z in n)n.hasOwnProperty(z)&&(s=n[z],s!==void 0&&Tm(e,t,z,s,n,void 0));return}}for(f in n)n.hasOwnProperty(f)&&(s=n[f],s!=null&&at(e,t,f,s,n,null))}function uw(e,t,n,s){switch(jm(t,s),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,c=null,f=null,b=null,g=null,z=null;for(L in n){var _=n[L];if(n.hasOwnProperty(L)&&_!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":b=_;default:s.hasOwnProperty(L)||at(e,t,L,null,s,_)}}for(var M in s){var L=s[M];if(_=n[M],s.hasOwnProperty(M)&&(L!=null||_!=null))switch(M){case"type":o=L;break;case"name":r=L;break;case"checked":g=L;break;case"defaultChecked":z=L;break;case"value":c=L;break;case"defaultValue":f=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:L!==_&&at(e,t,M,L,s,_)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,t||!s||Vx||(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"),Vx=!0),!t||s||Mx||(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"),Mx=!0),qd(e,c,f,b,g,z,o,r);return;case"select":L=c=f=M=null;for(o in n)if(b=n[o],n.hasOwnProperty(o)&&b!=null)switch(o){case"value":break;case"multiple":L=b;default:s.hasOwnProperty(o)||at(e,t,o,null,s,b)}for(r in s)if(o=s[r],b=n[r],s.hasOwnProperty(r)&&(o!=null||b!=null))switch(r){case"value":M=o;break;case"defaultValue":f=o;break;case"multiple":c=o;default:o!==b&&at(e,t,r,o,s,b)}s=f,t=c,n=L,M!=null?Ta(e,!!t,M,!1):!!n!=!!t&&(s!=null?Ta(e,!!t,s,!0):Ta(e,!!t,t?[]:"",!1));return;case"textarea":L=M=null;for(f in n)if(r=n[f],n.hasOwnProperty(f)&&r!=null&&!s.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:at(e,t,f,null,s,r)}for(c in s)if(r=s[c],o=n[c],s.hasOwnProperty(c)&&(r!=null||o!=null))switch(c){case"value":M=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==o&&at(e,t,c,r,s,o)}ob(e,M,L);return;case"option":for(var fe in n)if(M=n[fe],n.hasOwnProperty(fe)&&M!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:at(e,t,fe,null,s,M)}for(b in s)if(M=s[b],L=n[b],s.hasOwnProperty(b)&&M!==L&&(M!=null||L!=null))switch(b){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:at(e,t,b,M,s,L)}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 Ce in n)M=n[Ce],n.hasOwnProperty(Ce)&&M!=null&&!s.hasOwnProperty(Ce)&&at(e,t,Ce,null,s,M);for(g in s)if(M=s[g],L=n[g],s.hasOwnProperty(g)&&M!==L&&(M!=null||L!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:at(e,t,g,M,s,L)}return;default:if(Kl(t)){for(var dt in n)M=n[dt],n.hasOwnProperty(dt)&&M!==void 0&&!s.hasOwnProperty(dt)&&Tm(e,t,dt,void 0,s,M);for(z in s)M=s[z],L=n[z],!s.hasOwnProperty(z)||M===L||M===void 0&&L===void 0||Tm(e,t,z,M,s,L);return}}for(var Ie in n)M=n[Ie],n.hasOwnProperty(Ie)&&M!=null&&!s.hasOwnProperty(Ie)&&at(e,t,Ie,null,s,M);for(_ in s)M=s[_],L=n[_],!s.hasOwnProperty(_)||M===L||M==null&&L==null||at(e,t,_,M,s,L)}function Zg(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Dm(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var s=e[n];t[s]=e.getPropertyValue(s)}return t}function Kg(e,t,n){if(t!=null&&typeof t!="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 s,r=s="",o;for(o in t)if(t.hasOwnProperty(o)){var c=t[o];c!=null&&typeof c!="boolean"&&c!==""&&(o.indexOf("--")===0?(te(c,o),s+=r+o+":"+(""+c).trim()):typeof c!="number"||c===0||n0.has(o)?(te(c,o),s+=r+o.replace(Ky,"-$1").toLowerCase().replace(Jy,"-ms-")+":"+(""+c).trim()):s+=r+o.replace(Ky,"-$1").toLowerCase().replace(Jy,"-ms-")+":"+c+"px",r=";")}s=s||null,t=e.getAttribute("style"),t!==s&&(s=_r(s),_r(t)!==s&&(n.style=Dm(e)))}}function Fn(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(I(s,t),e===""+s)return}qt(t,e,s,o)}function Jg(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}qt(t,e,s,o)}function Cm(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(I(s,n),e===""+s)return}qt(t,e,s,o)}function Wg(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(I(s,t),e===""+s))return}qt(t,e,s,o)}function Rm(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(I(s,t),n=Jl(""+s),e===n)return}qt(t,e,s,o)}function ey(e,t,n,s){for(var r={},o=new Set,c=e.attributes,f=0;f<c.length;f++)switch(c[f].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:o.add(c[f].name)}if(Kl(t)){for(var b in n)if(n.hasOwnProperty(b)){var g=n[b];if(g!=null){if(qo.hasOwnProperty(b))typeof g!="function"&&Os(b,g);else if(n.suppressHydrationWarning!==!0)switch(b){case"children":typeof g!="string"&&typeof g!="number"||qt("children",e.textContent,g,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=Ig(e,g),qt(b,c,g,r));continue;case"style":o.delete(b),Kg(e,g,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":o.delete("class"),c=Ue(e,"class",g),qt("className",c,g,r);continue;default:s.context===vr&&t!=="svg"&&t!=="math"?o.delete(b.toLowerCase()):o.delete(b),c=Ue(e,b,g),qt(b,c,g,r)}}}}else for(g in n)if(n.hasOwnProperty(g)&&(b=n[g],b!=null)){if(qo.hasOwnProperty(g))typeof b!="function"&&Os(g,b);else if(n.suppressHydrationWarning!==!0)switch(g){case"children":typeof b!="string"&&typeof b!="number"||qt("children",e.textContent,b,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=Ig(e,b),c!==b&&(r[g]={__html:c}));continue;case"className":Fn(e,g,"class",b,o,r);continue;case"tabIndex":Fn(e,g,"tabindex",b,o,r);continue;case"style":o.delete(g),Kg(e,b,r);continue;case"multiple":o.delete(g),qt(g,e.multiple,b,r);continue;case"muted":o.delete(g),qt(g,e.muted,b,r);continue;case"autoFocus":o.delete("autofocus"),qt(g,e.autofocus,b,r);continue;case"data":if(t!=="object"){o.delete(g),c=e.getAttribute("data"),qt(g,c,b,r);continue}case"src":case"href":if(!(b!==""||t==="a"&&g==="href"||t==="object"&&g==="data")){console.error(g==="src"?'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.':'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.',g,g);continue}Rm(e,g,g,b,o,r);continue;case"action":case"formAction":if(c=e.getAttribute(g),typeof b=="function"){o.delete(g.toLowerCase()),g==="formAction"?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}else if(c===Nj){o.delete(g.toLowerCase()),qt(g,"function",b,r);continue}Rm(e,g,g.toLowerCase(),b,o,r);continue;case"xlinkHref":Rm(e,g,"xlink:href",b,o,r);continue;case"contentEditable":Cm(e,g,"contenteditable",b,o,r);continue;case"spellCheck":Cm(e,g,"spellcheck",b,o,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Cm(e,g,g,b,o,r);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":Jg(e,g,g.toLowerCase(),b,o,r);continue;case"capture":case"download":e:{f=e;var z=c=g,_=r;if(o.delete(z),f=f.getAttribute(z),f===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&f==="")break e;break;default:if(I(b,c),f===""+b)break e}qt(c,f,b,_)}continue;case"cols":case"rows":case"size":case"span":e:{if(f=e,z=c=g,_=r,o.delete(z),f=f.getAttribute(z),f===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(I(b,c),f===""+b))break e}qt(c,f,b,_)}continue;case"rowSpan":Wg(e,g,"rowspan",b,o,r);continue;case"start":Wg(e,g,g,b,o,r);continue;case"xHeight":Fn(e,g,"x-height",b,o,r);continue;case"xlinkActuate":Fn(e,g,"xlink:actuate",b,o,r);continue;case"xlinkArcrole":Fn(e,g,"xlink:arcrole",b,o,r);continue;case"xlinkRole":Fn(e,g,"xlink:role",b,o,r);continue;case"xlinkShow":Fn(e,g,"xlink:show",b,o,r);continue;case"xlinkTitle":Fn(e,g,"xlink:title",b,o,r);continue;case"xlinkType":Fn(e,g,"xlink:type",b,o,r);continue;case"xmlBase":Fn(e,g,"xml:base",b,o,r);continue;case"xmlLang":Fn(e,g,"xml:lang",b,o,r);continue;case"xmlSpace":Fn(e,g,"xml:space",b,o,r);continue;case"inert":b!==""||md[g]||(md[g]=!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.",g)),Jg(e,g,g,b,o,r);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){f=bb(g),c=!1,s.context===vr&&t!=="svg"&&t!=="math"?o.delete(f.toLowerCase()):(z=g.toLowerCase(),z=Pu.hasOwnProperty(z)&&Pu[z]||null,z!==null&&z!==g&&(c=!0,o.delete(z)),o.delete(f));e:if(z=e,_=f,f=b,ze(_))if(z.hasAttribute(_))z=z.getAttribute(_),I(f,_),f=z===""+f?f:z;else{switch(typeof f){case"function":case"symbol":break e;case"boolean":if(z=_.toLowerCase().slice(0,5),z!=="data-"&&z!=="aria-")break e}f=f===void 0?void 0:null}else f=void 0;c||qt(g,f,b,r)}}}return 0<o.size&&n.suppressHydrationWarning!==!0&&cw(e,o,r),Object.keys(r).length===0?null:r}function dw(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Nu(e){return e.nodeType===9?e:e.ownerDocument}function ty(e){switch(e){case Xa:return El;case ku:return bd;default:return vr}}function ny(e,t){if(e===vr)switch(t){case"svg":return El;case"math":return bd;default:return vr}return e===El&&t==="foreignObject"?vr:e}function Um(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function fw(){var e=window.event;return e&&e.type==="popstate"?e===ah?!1:(ah=e,!0):(ah=null,!1)}function mw(e){setTimeout(function(){throw e})}function pw(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function hw(e,t,n,s){uw(e,t,n,s),e[wn]=s}function sy(e){Zl(e,"")}function bw(e,t,n){e.nodeValue=n}function Hr(e){return e==="head"}function vw(e,t){e.removeChild(t)}function gw(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function ry(e,t){var n=t,s=0,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n===hd){if(0<s&&8>s){n=s;var c=e.ownerDocument;if(n&wj&&wi(c.documentElement),n&Ej&&wi(c.body),n&jj)for(n=c.head,wi(n),c=n.firstChild;c;){var f=c.nextSibling,b=c.nodeName;c[Ui]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}if(r===0){e.removeChild(o),Di(t);return}r--}else n===pd||n===br||n===uc?r++:s=n.charCodeAt(0)-48;else s=0;n=o}while(n);Di(t)}function yw(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function xw(e){e.nodeValue=""}function Nw(e,t){t=t[Tj],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function Sw(e,t){e.nodeValue=t}function Am(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Am(n),Es(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function ww(e,t,n,s){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Ui])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){I(r.name,"name");var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Zn(e.nextSibling),e===null)break}return null}function Ew(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Zn(e.nextSibling),e===null))return null;return e}function Om(e){return e.data===uc||e.data===br&&e.ownerDocument.readyState===_x}function jw(e,t){var n=e.ownerDocument;if(e.data!==br||n.readyState===_x)t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Zn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===pd||t===uc||t===br||t===sh||t===Px)break;if(t===hd)return null}}return e}function oy(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},s=e.attributes,r=0;r<s.length;r++){var o=s[r];n[Zg(o.name)]=o.name.toLowerCase()==="style"?Dm(e):o.value}return{type:t,props:n}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function ay(e,t,n){return n===null||n[Sj]!==!0?(e.nodeValue===t?e=null:(t=_r(t),e=_r(e.nodeValue)===t?null:e.nodeValue),e):null}function ly(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===hd){if(t===0)return Zn(e.nextSibling);t--}else n!==pd&&n!==uc&&n!==br||t++}e=e.nextSibling}return null}function iy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===pd||n===uc||n===br){if(t===0)return e;t--}else n===hd&&t++}e=e.previousSibling}return null}function Tw(e){Di(e)}function Dw(e){Di(e)}function cy(e,t,n,s,r){switch(r&&Id(e,s.ancestorInfo),t=Nu(n),e){case"html":if(e=t.documentElement,!e)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 e;case"head":if(e=t.head,!e)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 e;case"body":if(e=t.body,!e)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 e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Cw(e,t,n,s){if(!n[Gr]&&vn(n)){var r=n.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.",r,r,r)}switch(e){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(r=n.attributes;r.length;)n.removeAttributeNode(r[0]);Xt(n,e,t),n[Wt]=s,n[wn]=t}function wi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Es(e)}function Su(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function uy(e,t,n){var s=jl;if(s&&typeof t=="string"&&t){var r=In(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Gx.has(r)||(Gx.add(r),e={rel:e,crossOrigin:n,href:t},s.querySelector(r)===null&&(t=s.createElement("link"),Xt(t,"link",e),R(t),s.head.appendChild(t)))}}function dy(e,t,n,s){var r=(r=qr.current)?Su(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ba(n.href),t=p(r).hoistableStyles,s=t.get(n),s||(s={type:"style",instance:null,count:0,state:null},t.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ba(n.href);var o=p(r).hoistableStyles,c=o.get(e);if(!c&&(r=r.ownerDocument||r,c={type:"stylesheet",instance:null,count:0,state:{loading:aa,preload:null}},o.set(e,c),(o=r.querySelector(Ei(e)))&&!o._p&&(c.instance=o,c.state.loading=dc|ls),!is.has(e))){var f={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};is.set(e,f),o||Rw(r,e,f,c.state)}if(t&&s===null)throw n=`
218
-
219
- - `+wu(t)+`
220
- + `+wu(n),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."+n);return c}if(t&&s!==null)throw n=`
221
-
222
- - `+wu(t)+`
223
- + `+wu(n),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."+n);return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=La(n),t=p(r).hoistableScripts,s=t.get(n),s||(s={type:"script",instance:null,count:0,state:null},t.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function wu(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):ar.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):ar.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):ar.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Ba(e){return'href="'+In(e)+'"'}function Ei(e){return'link[rel="stylesheet"]['+e+"]"}function fy(e){return Le({},e,{"data-precedence":e.precedence,precedence:null})}function Rw(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=dc:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=dc}),t.addEventListener("error",function(){return s.loading|=qx}),Xt(t,"link",n),R(t),e.head.appendChild(t))}function La(e){return'[src="'+In(e)+'"]'}function ji(e){return"script[async]"+e}function my(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+In(n.href)+'"]');if(s)return t.instance=s,R(s),s;var r=Le({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),R(s),Xt(s,"style",r),Eu(s,n.precedence,e),t.instance=s;case"stylesheet":r=Ba(n.href);var o=e.querySelector(Ei(r));if(o)return t.state.loading|=ls,t.instance=o,R(o),o;s=fy(n),(r=is.get(r))&&Mm(s,r),o=(e.ownerDocument||e).createElement("link"),R(o);var c=o;return c._p=new Promise(function(f,b){c.onload=f,c.onerror=b}),Xt(o,"link",s),t.state.loading|=ls,Eu(o,n.precedence,e),t.instance=o;case"script":return o=La(n.src),(r=e.querySelector(ji(o)))?(t.instance=r,R(r),r):(s=n,(r=is.get(o))&&(s=Le({},n),Vm(s,r)),e=e.ownerDocument||e,r=e.createElement("script"),R(r),Xt(r,"link",s),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&ls)===aa&&(s=t.instance,t.state.loading|=ls,Eu(s,n.precedence,e));return t.instance}function Eu(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,o=r,c=0;c<s.length;c++){var f=s[c];if(f.dataset.precedence===t)o=f;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Mm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function py(e,t,n){if(vd===null){var s=new Map,r=vd=new Map;r.set(n,s)}else r=vd,s=r.get(n),s||(s=new Map,r.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[Ui]||o[Wt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!==Xa){var c=o.getAttribute(t)||"";c=e+c;var f=s.get(c);f?f.push(o):s.set(c,[o])}}return s}function hy(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Uw(e,t,n){var s=!n.ancestorInfo.containerTagInScope;if(n.context===El||t.itemProp!=null)return!s||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="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.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){s&&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 t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,o=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),r&&n.push("`onError`"),o!=null&&n.push("`disabled`"),r=dw(n,"and"),r+=n.length===1?" prop":" props",o=n.length===1?"an "+r:"the "+r,n.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.',e,o,r)}s&&(typeof t.rel!="string"||typeof t.href!="string"||t.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"):(t.onError||t.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(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&s&&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 e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){s&&(e?t.onLoad||t.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":s&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function by(e){return!(e.type==="stylesheet"&&(e.state.loading&Yx)===aa)}function Aw(){}function Ow(e,t,n){if(fc===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var s=fc;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&ls)===aa){if(t.instance===null){var r=Ba(n.href),o=e.querySelector(Ei(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ju.bind(s),e.then(s,s)),t.state.loading|=ls,t.instance=o,R(o);return}o=e.ownerDocument||e,n=fy(n),(r=is.get(r))&&Mm(n,r),o=o.createElement("link"),R(o);var c=o;c._p=new Promise(function(f,b){c.onload=f,c.onerror=b}),Xt(o,"link",n),t.instance=o}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&Yx)===aa&&(s.count++,t=ju.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function Mw(){if(fc===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=fc;return e.stylesheets&&e.count===0&&zm(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&zm(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function ju(){if(this.count--,this.count===0){if(this.stylesheets)zm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function zm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gd=new Map,t.forEach(Vw,e),gd=null,ju.call(e))}function Vw(e,t){if(!(t.state.loading&ls)){var n=gd.get(e);if(n)var s=n.get(ih);else{n=new Map,gd.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var c=r[o];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(n.set(c.dataset.precedence,c),s=c)}s&&n.set(ih,s)}r=t.instance,c=r.getAttribute("data-precedence"),o=n.get(c)||s,o===s&&n.set(ih,r),n.set(c,r),this.count++,s=ju.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=ls}}function zw(e,t,n,s,r,o,c,f){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=oa,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ot(0),this.hiddenUpdates=Ot(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function vy(e,t,n,s,r,o,c,f,b,g,z,_){return e=new zw(e,t,n,c,f,b,g,_),t=JE,o===!0&&(t|=en|hs),ps&&(t|=Ft),o=y(3,null,null,t),e.current=o,o.stateNode=e,t=df(),ko(t),e.pooledCache=t,ko(t),o.memoizedState={element:s,isDehydrated:n,cache:t},hf(o),e}function gy(e){return e?(e=Qr,e):Qr}function km(e,t,n,s,r,o){if(Jt&&typeof Jt.onScheduleFiberRoot=="function")try{Jt.onScheduleFiberRoot($a,s,n)}catch(c){zs||(zs=!0,console.error("React instrumentation encountered an error: %s",c))}ce!==null&&typeof ce.markRenderScheduled=="function"&&ce.markRenderScheduled(t),r=gy(r),s.context===null?s.context=r:s.pendingContext=r,Ps&&Yn!==null&&!Ix&&(Ix=!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.
224
-
225
- Check the render method of %s.`,Z(Yn)||"Unknown")),s=Or(t),s.payload={element:n},o=o===void 0?null:o,o!==null&&(typeof o!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o),s.callback=o),n=Mr(e,s,t),n!==null&&(Rt(n,e,t),li(n,e,t))}function yy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pm(e,t){yy(e,t),(e=e.alternate)&&yy(e,t)}function xy(e){if(e.tag===13){var t=xn(e,67108864);t!==null&&Rt(t,e,67108864),Pm(e,67108864)}}function kw(){return Yn}function Pw(){for(var e=new Map,t=1,n=0;31>n;n++){var s=wo(t);e.set(t,s),t*=2}return e}function _w(e,t,n,s){var r=P.T;P.T=null;var o=et.p;try{et.p=Kn,_m(e,t,n,s)}finally{et.p=o,P.T=r}}function Hw(e,t,n,s){var r=P.T;P.T=null;var o=et.p;try{et.p=ks,_m(e,t,n,s)}finally{et.p=o,P.T=r}}function _m(e,t,n,s){if(xd){var r=Hm(s);if(r===null)Em(e,t,s,Nd,n),Sy(e,s);else if(Bw(r,e,t,n,s))s.stopPropagation();else if(Sy(e,s),t&4&&-1<Uj.indexOf(e)){for(;r!==null;){var o=vn(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var c=yt(o.pendingLanes);if(c!==0){var f=o;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var b=1<<31-an(c);f.entanglements[1]|=b,c&=~b}As(o),(tt&(fn|ys))===Gn&&(rd=Vs()+Tx,Ni(0))}}break;case 13:f=xn(o,2),f!==null&&Rt(f,o,2),ka(),Pm(o,2)}if(o=Hm(s),o===null&&Em(e,t,s,Nd,n),o===r)break;r=o}r!==null&&s.stopPropagation()}else Em(e,t,s,null,n)}}function Hm(e){return e=Fd(e),Bm(e)}function Bm(e){if(Nd=null,e=zn(e),e!==null){var t=$(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=oe(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Nd=e,null}function Ny(e){switch(e){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 Kn;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 ks;case"message":switch(Kw()){case Km:return Kn;case Jm:return ks;case Ga:case Jw:return lr;case Wm:return Vu;default:return lr}default:return lr}}function Sy(e,t){switch(e){case"focusin":case"focusout":no=null;break;case"dragenter":case"dragleave":so=null;break;case"mouseover":case"mouseout":ro=null;break;case"pointerover":case"pointerout":pc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hc.delete(t.pointerId)}}function Ti(e,t,n,s,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:o,targetContainers:[r]},t!==null&&(t=vn(t),t!==null&&xy(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Bw(e,t,n,s,r){switch(t){case"focusin":return no=Ti(no,e,t,n,s,r),!0;case"dragenter":return so=Ti(so,e,t,n,s,r),!0;case"mouseover":return ro=Ti(ro,e,t,n,s,r),!0;case"pointerover":var o=r.pointerId;return pc.set(o,Ti(pc.get(o)||null,e,t,n,s,r)),!0;case"gotpointercapture":return o=r.pointerId,hc.set(o,Ti(hc.get(o)||null,e,t,n,s,r)),!0}return!1}function wy(e){var t=zn(e.target);if(t!==null){var n=$(t);if(n!==null){if(t=n.tag,t===13){if(t=oe(n),t!==null){e.blockedOn=t,Vn(e.priority,function(){if(n.tag===13){var s=Ln(n);s=jo(s);var r=xn(n,s);r!==null&&Rt(r,n,s),Pm(n,s)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hm(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n),r=s;Oi!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Oi=r,n.target.dispatchEvent(s),Oi===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."),Oi=null}else return t=vn(n),t!==null&&xy(t),e.blockedOn=n,!1;t.shift()}return!0}function Ey(e,t,n){Tu(e)&&n.delete(t)}function Lw(){ch=!1,no!==null&&Tu(no)&&(no=null),so!==null&&Tu(so)&&(so=null),ro!==null&&Tu(ro)&&(ro=null),pc.forEach(Ey),hc.forEach(Ey)}function Du(e,t){e.blockedOn===t&&(e.blockedOn=null,ch||(ch=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,Lw)))}function jy(e){Sd!==e&&(Sd=e,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,function(){Sd===e&&(Sd=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],r=e[t+2];if(typeof s!="function"){if(Bm(s||n)===null)continue;break}var o=vn(n);o!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:r,method:n.method,action:s},Object.freeze(n),Bf(o,n,s,r))}}))}function Di(e){function t(b){return Du(b,e)}no!==null&&Du(no,e),so!==null&&Du(so,e),ro!==null&&Du(ro,e),pc.forEach(t),hc.forEach(t);for(var n=0;n<oo.length;n++){var s=oo[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<oo.length&&(n=oo[0],n.blockedOn===null);)wy(n),n.blockedOn===null&&oo.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var r=n[s],o=n[s+1],c=r[wn]||null;if(typeof o=="function")c||jy(n);else if(c){var f=null;if(o&&o.hasAttribute("formAction")){if(r=o,c=o[wn]||null)f=c.formAction;else if(Bm(r)!==null)continue}else f=c.action;typeof f=="function"?n[s+1]=f:(n.splice(s,3),s-=3),jy(n)}}}function Lm(e){this._internalRoot=e}function Cu(e){this._internalRoot=e}function Ty(e){e[Gr]&&(e._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 Mt=Pj(),qm=Cc(),qw=n1(),Le=Object.assign,Yw=Symbol.for("react.element"),Br=Symbol.for("react.transitional.element"),qa=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),Ru=Symbol.for("react.strict_mode"),Ym=Symbol.for("react.profiler"),Gw=Symbol.for("react.provider"),Gm=Symbol.for("react.consumer"),Ms=Symbol.for("react.context"),Ci=Symbol.for("react.forward_ref"),$m=Symbol.for("react.suspense"),Qm=Symbol.for("react.suspense_list"),Uu=Symbol.for("react.memo"),qn=Symbol.for("react.lazy"),Xm=Symbol.for("react.activity"),$w=Symbol.for("react.memo_cache_sentinel"),Dy=Symbol.iterator,Qw=Symbol.for("react.client.reference"),It=Array.isArray,P=qm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et=qw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xw=Object.freeze({pending:!1,data:null,method:null,action:null}),Im=[],Fm=[],or=-1,Lr=Se(null),Ri=Se(null),qr=Se(null),Au=Se(null),ar=Object.prototype.hasOwnProperty,Zm=Mt.unstable_scheduleCallback,Iw=Mt.unstable_cancelCallback,Fw=Mt.unstable_shouldYield,Zw=Mt.unstable_requestPaint,Vs=Mt.unstable_now,Kw=Mt.unstable_getCurrentPriorityLevel,Km=Mt.unstable_ImmediatePriority,Jm=Mt.unstable_UserBlockingPriority,Ga=Mt.unstable_NormalPriority,Jw=Mt.unstable_LowPriority,Wm=Mt.unstable_IdlePriority,Ww=Mt.log,eE=Mt.unstable_setDisableYieldValue,$a=null,Jt=null,ce=null,zs=!1,ps=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",an=Math.clz32?Math.clz32:Tr,tE=Math.log,nE=Math.LN2,Ou=256,Mu=4194304,Kn=2,ks=8,lr=32,Vu=268435456,Yr=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Yr,wn="__reactProps$"+Yr,Gr="__reactContainer$"+Yr,ep="__reactEvents$"+Yr,sE="__reactListeners$"+Yr,rE="__reactHandles$"+Yr,Cy="__reactResources$"+Yr,Ui="__reactMarker$"+Yr,Ry=new Set,qo={},tp={},oE={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},aE=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]*$"),Uy={},Ay={},Ai=0,Oy,My,Vy,zy,ky,Py,_y;xt.__reactDisabledLog=!0;var np,Hy,sp=!1,rp=new(typeof WeakMap=="function"?WeakMap:Map),Yn=null,Ps=!1,lE=/[\n"\\]/g,By=!1,Ly=!1,qy=!1,Yy=!1,Gy=!1,$y=!1,Qy=["value","defaultValue"],Xy=!1,Iy=/["'&<>\n\t]|^\s|\s$/,iE="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(" "),Fy="applet caption html table td th marquee object template foreignObject desc title".split(" "),cE=Fy.concat(["button"]),uE="dd dt li option optgroup p rp rt".split(" "),Zy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},zu={},op={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"]},Ky=/([A-Z])/g,Jy=/^ms-/,dE=/^(?:webkit|moz|o)[A-Z]/,fE=/^-ms-/,mE=/-(.)/g,Wy=/;\s*$/,Qa={},ap={},e0=!1,t0=!1,n0=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(" ")),ku="http://www.w3.org/1998/Math/MathML",Xa="http://www.w3.org/2000/svg",pE=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"]]),Pu={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"},s0={"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},Ia={},hE=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]*$"),bE=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]*$"),r0=!1,ln={},o0=/^on./,vE=/^on[^A-Z]/,gE=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]*$"),yE=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]*$"),xE=/^[\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,Oi=null,Fa=null,Za=null,lp=!1,_s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ip=!1;if(_s)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){ip=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{ip=!1}var $r=null,cp=null,_u=null,Yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=yn(Yo),Vi=Le({},Yo,{view:0,detail:0}),NE=yn(Vi),up,dp,zi,Bu=Le({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zi&&(zi&&e.type==="mousemove"?(up=e.screenX-zi.screenX,dp=e.screenY-zi.screenY):dp=up=0,zi=e),up)},movementY:function(e){return"movementY"in e?e.movementY:dp}}),a0=yn(Bu),SE=Le({},Bu,{dataTransfer:0}),wE=yn(SE),EE=Le({},Vi,{relatedTarget:0}),fp=yn(EE),jE=Le({},Yo,{animationName:0,elapsedTime:0,pseudoElement:0}),TE=yn(jE),DE=Le({},Yo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CE=yn(DE),RE=Le({},Yo,{data:0}),l0=yn(RE),UE=l0,AE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},OE={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"},ME={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},VE=Le({},Vi,{key:function(e){if(e.key){var t=AE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?OE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zd,charCode:function(e){return e.type==="keypress"?Vc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zE=yn(VE),kE=Le({},Bu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),i0=yn(kE),PE=Le({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zd}),_E=yn(PE),HE=Le({},Yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),BE=yn(HE),LE=Le({},Bu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qE=yn(LE),YE=Le({},Yo,{newState:0,oldState:0}),GE=yn(YE),$E=[9,13,27,32],c0=229,mp=_s&&"CompositionEvent"in window,ki=null;_s&&"documentMode"in document&&(ki=document.documentMode);var QE=_s&&"TextEvent"in window&&!ki,u0=_s&&(!mp||ki&&8<ki&&11>=ki),d0=32,f0=String.fromCharCode(d0),m0=!1,Ka=!1,XE={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},Pi=null,_i=null,p0=!1;_s&&(p0=wS("input")&&(!document.documentMode||9<document.documentMode));var cn=typeof Object.is=="function"?Object.is:RS,IE=_s&&"documentMode"in document&&11>=document.documentMode,Ja=null,pp=null,Hi=null,hp=!1,Wa={animationend:Do("Animation","AnimationEnd"),animationiteration:Do("Animation","AnimationIteration"),animationstart:Do("Animation","AnimationStart"),transitionrun:Do("Transition","TransitionRun"),transitionstart:Do("Transition","TransitionStart"),transitioncancel:Do("Transition","TransitionCancel"),transitionend:Do("Transition","TransitionEnd")},bp={},h0={};_s&&(h0=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);var b0=Co("animationend"),v0=Co("animationiteration"),g0=Co("animationstart"),FE=Co("transitionrun"),ZE=Co("transitionstart"),KE=Co("transitioncancel"),y0=Co("transitionend"),x0=new Map,vp="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(" ");vp.push("scrollEnd");var gp=new WeakMap,Lu=1,ir=2,Jn=[],el=0,yp=0,Qr={};Object.freeze(Qr);var Wn=null,tl=null,mt=0,JE=1,Ft=2,en=8,hs=16,N0=64,S0=!1;try{var w0=Object.preventExtensions({})}catch{S0=!0}var nl=[],sl=0,qu=null,Yu=0,es=[],ts=0,Go=null,cr=1,ur="",un=null,Et=null,We=!1,dr=!1,ns=null,$o=null,Hs=!1,xp=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."),E0=0;if(typeof performance=="object"&&typeof performance.now=="function")var WE=performance,j0=function(){return WE.now()};else{var ej=Date;j0=function(){return ej.now()}}var Np=Se(null),Sp=Se(null),T0={},Gu=null,rl=null,ol=!1,tj=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},nj=Mt.unstable_scheduleCallback,sj=Mt.unstable_NormalPriority,Pt={$$typeof:Ms,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},al=Mt.unstable_now,D0=-0,$u=-0,En=-1.1,Qo=-0,Qu=!1,Xu=!1,Bi=null,wp=0,Xo=0,ll=null,C0=P.S;P.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&AS(e,t),C0!==null&&C0(e,t)};var Io=Se(null),bs={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Li=[],qi=[],Yi=[],Gi=[],$i=[],Qi=[],Fo=new Set;bs.recordUnsafeLifecycleWarnings=function(e,t){Fo.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Li.push(e),e.mode&en&&typeof t.UNSAFE_componentWillMount=="function"&&qi.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Yi.push(e),e.mode&en&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Gi.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&$i.push(e),e.mode&en&&typeof t.UNSAFE_componentWillUpdate=="function"&&Qi.push(e))},bs.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Li.length&&(Li.forEach(function(f){e.add(Z(f)||"Component"),Fo.add(f.type)}),Li=[]);var t=new Set;0<qi.length&&(qi.forEach(function(f){t.add(Z(f)||"Component"),Fo.add(f.type)}),qi=[]);var n=new Set;0<Yi.length&&(Yi.forEach(function(f){n.add(Z(f)||"Component"),Fo.add(f.type)}),Yi=[]);var s=new Set;0<Gi.length&&(Gi.forEach(function(f){s.add(Z(f)||"Component"),Fo.add(f.type)}),Gi=[]);var r=new Set;0<$i.length&&($i.forEach(function(f){r.add(Z(f)||"Component"),Fo.add(f.type)}),$i=[]);var o=new Set;if(0<Qi.length&&(Qi.forEach(function(f){o.add(Z(f)||"Component"),Fo.add(f.type)}),Qi=[]),0<t.size){var c=m(t);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.
226
-
227
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
228
-
229
- Please update the following components: %s`,c)}0<s.size&&(c=m(s),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.
230
-
231
- * Move data fetching code or side effects to componentDidUpdate.
232
- * 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
233
-
234
- Please update the following components: %s`,c)),0<o.size&&(c=m(o),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.
235
-
236
- * Move data fetching code or side effects to componentDidUpdate.
237
-
238
- Please update the following components: %s`,c)),0<e.size&&(c=m(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
239
-
240
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
241
- * 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.
242
-
243
- Please update the following components: %s`,c)),0<n.size&&(c=m(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
244
-
245
- * Move data fetching code or side effects to componentDidUpdate.
246
- * 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
247
- * 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.
248
-
249
- Please update the following components: %s`,c)),0<r.size&&(c=m(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
250
-
251
- * Move data fetching code or side effects to componentDidUpdate.
252
- * 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.
253
-
254
- Please update the following components: %s`,c))};var Iu=new Map,R0=new Set;bs.recordLegacyContextWarning=function(e,t){for(var n=null,s=e;s!==null;)s.mode&en&&(n=s),s=s.return;n===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."):!R0.has(e.type)&&(s=Iu.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(s===void 0&&(s=[],Iu.set(n,s)),s.push(e))},bs.flushLegacyContextWarning=function(){Iu.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(r){n.add(Z(r)||"Component"),R0.add(r.type)});var s=m(n);Ne(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
255
-
256
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
257
-
258
- Please update the following components: %s
259
-
260
- Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}})},bs.discardPendingWarnings=function(){Li=[],qi=[],Yi=[],Gi=[],$i=[],Qi=[],Iu=new Map};var Xi=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`."),U0=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."),Fu=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."),Ep={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.')}},Ii=null,Zu=!1,ss=0,rs=1,dn=2,Zt=4,_t=8,A0=0,O0=1,M0=2,jp=3,Xr=!1,V0=!1,Tp=null,Dp=!1,il=Se(null),Ku=Se(0),cl,z0=new Set,k0=new Set,Cp=new Set,P0=new Set,Ir=0,Re=null,lt=null,Vt=null,Ju=!1,ul=!1,Zo=!1,Wu=0,Fi=0,fr=null,rj=0,oj=25,k=null,os=null,mr=-1,Zi=!1,ed={readContext:vt,use:Vr,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct},Rp=null,_0=null,Up=null,H0=null,Bs=null,vs=null,td=null;Rp={readContext:function(e){return vt(e)},use:Vr,useCallback:function(e,t){return k="useCallback",$e(),Ra(t),kf(e,t)},useContext:function(e){return k="useContext",$e(),vt(e)},useEffect:function(e,t){return k="useEffect",$e(),Ra(t),eu(e,t)},useImperativeHandle:function(e,t,n){return k="useImperativeHandle",$e(),Ra(n),zf(e,t,n)},useInsertionEffect:function(e,t){k="useInsertionEffect",$e(),Ra(t),_o(4,dn,e,t)},useLayoutEffect:function(e,t){return k="useLayoutEffect",$e(),Ra(t),Vf(e,t)},useMemo:function(e,t){k="useMemo",$e(),Ra(t);var n=P.H;P.H=Bs;try{return Pf(e,t)}finally{P.H=n}},useReducer:function(e,t,n){k="useReducer",$e();var s=P.H;P.H=Bs;try{return Tf(e,t,n)}finally{P.H=s}},useRef:function(e){return k="useRef",$e(),Mf(e)},useState:function(e){k="useState",$e();var t=P.H;P.H=Bs;try{return Uf(e)}finally{P.H=t}},useDebugValue:function(){k="useDebugValue",$e()},useDeferredValue:function(e,t){return k="useDeferredValue",$e(),_f(e,t)},useTransition:function(){return k="useTransition",$e(),Lf()},useSyncExternalStore:function(e,t,n){return k="useSyncExternalStore",$e(),Cf(e,t,n)},useId:function(){return k="useId",$e(),qf()},useFormState:function(e,t){return k="useFormState",$e(),Fc(),Aa(e,t)},useActionState:function(e,t){return k="useActionState",$e(),Aa(e,t)},useOptimistic:function(e){return k="useOptimistic",$e(),Af(e)},useHostTransitionStatus:Ho,useMemoCache:Po,useCacheRefresh:function(){return k="useCacheRefresh",$e(),Yf()}},_0={readContext:function(e){return vt(e)},use:Vr,useCallback:function(e,t){return k="useCallback",J(),kf(e,t)},useContext:function(e){return k="useContext",J(),vt(e)},useEffect:function(e,t){return k="useEffect",J(),eu(e,t)},useImperativeHandle:function(e,t,n){return k="useImperativeHandle",J(),zf(e,t,n)},useInsertionEffect:function(e,t){k="useInsertionEffect",J(),_o(4,dn,e,t)},useLayoutEffect:function(e,t){return k="useLayoutEffect",J(),Vf(e,t)},useMemo:function(e,t){k="useMemo",J();var n=P.H;P.H=Bs;try{return Pf(e,t)}finally{P.H=n}},useReducer:function(e,t,n){k="useReducer",J();var s=P.H;P.H=Bs;try{return Tf(e,t,n)}finally{P.H=s}},useRef:function(e){return k="useRef",J(),Mf(e)},useState:function(e){k="useState",J();var t=P.H;P.H=Bs;try{return Uf(e)}finally{P.H=t}},useDebugValue:function(){k="useDebugValue",J()},useDeferredValue:function(e,t){return k="useDeferredValue",J(),_f(e,t)},useTransition:function(){return k="useTransition",J(),Lf()},useSyncExternalStore:function(e,t,n){return k="useSyncExternalStore",J(),Cf(e,t,n)},useId:function(){return k="useId",J(),qf()},useActionState:function(e,t){return k="useActionState",J(),Aa(e,t)},useFormState:function(e,t){return k="useFormState",J(),Fc(),Aa(e,t)},useOptimistic:function(e){return k="useOptimistic",J(),Af(e)},useHostTransitionStatus:Ho,useMemoCache:Po,useCacheRefresh:function(){return k="useCacheRefresh",J(),Yf()}},Up={readContext:function(e){return vt(e)},use:Vr,useCallback:function(e,t){return k="useCallback",J(),nu(e,t)},useContext:function(e){return k="useContext",J(),vt(e)},useEffect:function(e,t){k="useEffect",J(),Sn(2048,_t,e,t)},useImperativeHandle:function(e,t,n){return k="useImperativeHandle",J(),tu(e,t,n)},useInsertionEffect:function(e,t){return k="useInsertionEffect",J(),Sn(4,dn,e,t)},useLayoutEffect:function(e,t){return k="useLayoutEffect",J(),Sn(4,Zt,e,t)},useMemo:function(e,t){k="useMemo",J();var n=P.H;P.H=vs;try{return su(e,t)}finally{P.H=n}},useReducer:function(e,t,n){k="useReducer",J();var s=P.H;P.H=vs;try{return Ua(e,t,n)}finally{P.H=s}},useRef:function(){return k="useRef",J(),rt().memoizedState},useState:function(){k="useState",J();var e=P.H;P.H=vs;try{return Ua(ms)}finally{P.H=e}},useDebugValue:function(){k="useDebugValue",J()},useDeferredValue:function(e,t){return k="useDeferredValue",J(),bv(e,t)},useTransition:function(){return k="useTransition",J(),Sv()},useSyncExternalStore:function(e,t,n){return k="useSyncExternalStore",J(),Zc(e,t,n)},useId:function(){return k="useId",J(),rt().memoizedState},useFormState:function(e){return k="useFormState",J(),Fc(),Kc(e)},useActionState:function(e){return k="useActionState",J(),Kc(e)},useOptimistic:function(e,t){return k="useOptimistic",J(),av(e,t)},useHostTransitionStatus:Ho,useMemoCache:Po,useCacheRefresh:function(){return k="useCacheRefresh",J(),rt().memoizedState}},H0={readContext:function(e){return vt(e)},use:Vr,useCallback:function(e,t){return k="useCallback",J(),nu(e,t)},useContext:function(e){return k="useContext",J(),vt(e)},useEffect:function(e,t){k="useEffect",J(),Sn(2048,_t,e,t)},useImperativeHandle:function(e,t,n){return k="useImperativeHandle",J(),tu(e,t,n)},useInsertionEffect:function(e,t){return k="useInsertionEffect",J(),Sn(4,dn,e,t)},useLayoutEffect:function(e,t){return k="useLayoutEffect",J(),Sn(4,Zt,e,t)},useMemo:function(e,t){k="useMemo",J();var n=P.H;P.H=td;try{return su(e,t)}finally{P.H=n}},useReducer:function(e,t,n){k="useReducer",J();var s=P.H;P.H=td;try{return di(e,t,n)}finally{P.H=s}},useRef:function(){return k="useRef",J(),rt().memoizedState},useState:function(){k="useState",J();var e=P.H;P.H=td;try{return di(ms)}finally{P.H=e}},useDebugValue:function(){k="useDebugValue",J()},useDeferredValue:function(e,t){return k="useDeferredValue",J(),vv(e,t)},useTransition:function(){return k="useTransition",J(),wv()},useSyncExternalStore:function(e,t,n){return k="useSyncExternalStore",J(),Zc(e,t,n)},useId:function(){return k="useId",J(),rt().memoizedState},useFormState:function(e){return k="useFormState",J(),Fc(),Jc(e)},useActionState:function(e){return k="useActionState",J(),Jc(e)},useOptimistic:function(e,t){return k="useOptimistic",J(),iv(e,t)},useHostTransitionStatus:Ho,useMemoCache:Po,useCacheRefresh:function(){return k="useCacheRefresh",J(),rt().memoizedState}},Bs={readContext:function(e){return C(),vt(e)},use:function(e){return x(),Vr(e)},useCallback:function(e,t){return k="useCallback",x(),$e(),kf(e,t)},useContext:function(e){return k="useContext",x(),$e(),vt(e)},useEffect:function(e,t){return k="useEffect",x(),$e(),eu(e,t)},useImperativeHandle:function(e,t,n){return k="useImperativeHandle",x(),$e(),zf(e,t,n)},useInsertionEffect:function(e,t){k="useInsertionEffect",x(),$e(),_o(4,dn,e,t)},useLayoutEffect:function(e,t){return k="useLayoutEffect",x(),$e(),Vf(e,t)},useMemo:function(e,t){k="useMemo",x(),$e();var n=P.H;P.H=Bs;try{return Pf(e,t)}finally{P.H=n}},useReducer:function(e,t,n){k="useReducer",x(),$e();var s=P.H;P.H=Bs;try{return Tf(e,t,n)}finally{P.H=s}},useRef:function(e){return k="useRef",x(),$e(),Mf(e)},useState:function(e){k="useState",x(),$e();var t=P.H;P.H=Bs;try{return Uf(e)}finally{P.H=t}},useDebugValue:function(){k="useDebugValue",x(),$e()},useDeferredValue:function(e,t){return k="useDeferredValue",x(),$e(),_f(e,t)},useTransition:function(){return k="useTransition",x(),$e(),Lf()},useSyncExternalStore:function(e,t,n){return k="useSyncExternalStore",x(),$e(),Cf(e,t,n)},useId:function(){return k="useId",x(),$e(),qf()},useFormState:function(e,t){return k="useFormState",x(),$e(),Aa(e,t)},useActionState:function(e,t){return k="useActionState",x(),$e(),Aa(e,t)},useOptimistic:function(e){return k="useOptimistic",x(),$e(),Af(e)},useMemoCache:function(e){return x(),Po(e)},useHostTransitionStatus:Ho,useCacheRefresh:function(){return k="useCacheRefresh",$e(),Yf()}},vs={readContext:function(e){return C(),vt(e)},use:function(e){return x(),Vr(e)},useCallback:function(e,t){return k="useCallback",x(),J(),nu(e,t)},useContext:function(e){return k="useContext",x(),J(),vt(e)},useEffect:function(e,t){k="useEffect",x(),J(),Sn(2048,_t,e,t)},useImperativeHandle:function(e,t,n){return k="useImperativeHandle",x(),J(),tu(e,t,n)},useInsertionEffect:function(e,t){return k="useInsertionEffect",x(),J(),Sn(4,dn,e,t)},useLayoutEffect:function(e,t){return k="useLayoutEffect",x(),J(),Sn(4,Zt,e,t)},useMemo:function(e,t){k="useMemo",x(),J();var n=P.H;P.H=vs;try{return su(e,t)}finally{P.H=n}},useReducer:function(e,t,n){k="useReducer",x(),J();var s=P.H;P.H=vs;try{return Ua(e,t,n)}finally{P.H=s}},useRef:function(){return k="useRef",x(),J(),rt().memoizedState},useState:function(){k="useState",x(),J();var e=P.H;P.H=vs;try{return Ua(ms)}finally{P.H=e}},useDebugValue:function(){k="useDebugValue",x(),J()},useDeferredValue:function(e,t){return k="useDeferredValue",x(),J(),bv(e,t)},useTransition:function(){return k="useTransition",x(),J(),Sv()},useSyncExternalStore:function(e,t,n){return k="useSyncExternalStore",x(),J(),Zc(e,t,n)},useId:function(){return k="useId",x(),J(),rt().memoizedState},useFormState:function(e){return k="useFormState",x(),J(),Kc(e)},useActionState:function(e){return k="useActionState",x(),J(),Kc(e)},useOptimistic:function(e,t){return k="useOptimistic",x(),J(),av(e,t)},useMemoCache:function(e){return x(),Po(e)},useHostTransitionStatus:Ho,useCacheRefresh:function(){return k="useCacheRefresh",J(),rt().memoizedState}},td={readContext:function(e){return C(),vt(e)},use:function(e){return x(),Vr(e)},useCallback:function(e,t){return k="useCallback",x(),J(),nu(e,t)},useContext:function(e){return k="useContext",x(),J(),vt(e)},useEffect:function(e,t){k="useEffect",x(),J(),Sn(2048,_t,e,t)},useImperativeHandle:function(e,t,n){return k="useImperativeHandle",x(),J(),tu(e,t,n)},useInsertionEffect:function(e,t){return k="useInsertionEffect",x(),J(),Sn(4,dn,e,t)},useLayoutEffect:function(e,t){return k="useLayoutEffect",x(),J(),Sn(4,Zt,e,t)},useMemo:function(e,t){k="useMemo",x(),J();var n=P.H;P.H=vs;try{return su(e,t)}finally{P.H=n}},useReducer:function(e,t,n){k="useReducer",x(),J();var s=P.H;P.H=vs;try{return di(e,t,n)}finally{P.H=s}},useRef:function(){return k="useRef",x(),J(),rt().memoizedState},useState:function(){k="useState",x(),J();var e=P.H;P.H=vs;try{return di(ms)}finally{P.H=e}},useDebugValue:function(){k="useDebugValue",x(),J()},useDeferredValue:function(e,t){return k="useDeferredValue",x(),J(),vv(e,t)},useTransition:function(){return k="useTransition",x(),J(),wv()},useSyncExternalStore:function(e,t,n){return k="useSyncExternalStore",x(),J(),Zc(e,t,n)},useId:function(){return k="useId",x(),J(),rt().memoizedState},useFormState:function(e){return k="useFormState",x(),J(),Jc(e)},useActionState:function(e){return k="useActionState",x(),J(),Jc(e)},useOptimistic:function(e,t){return k="useOptimistic",x(),J(),iv(e,t)},useMemoCache:function(e){return x(),Po(e)},useHostTransitionStatus:Ho,useCacheRefresh:function(){return k="useCacheRefresh",J(),rt().memoizedState}};var B0={"react-stack-bottom-frame":function(e,t,n){var s=Ps;Ps=!0;try{return e(t,n)}finally{Ps=s}}},Ap=B0["react-stack-bottom-frame"].bind(B0),L0={"react-stack-bottom-frame":function(e){var t=Ps;Ps=!0;try{return e.render()}finally{Ps=t}}},q0=L0["react-stack-bottom-frame"].bind(L0),Y0={"react-stack-bottom-frame":function(e,t){try{t.componentDidMount()}catch(n){ot(e,e.return,n)}}},Op=Y0["react-stack-bottom-frame"].bind(Y0),G0={"react-stack-bottom-frame":function(e,t,n,s,r){try{t.componentDidUpdate(n,s,r)}catch(o){ot(e,e.return,o)}}},$0=G0["react-stack-bottom-frame"].bind(G0),Q0={"react-stack-bottom-frame":function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},aj=Q0["react-stack-bottom-frame"].bind(Q0),X0={"react-stack-bottom-frame":function(e,t,n){try{n.componentWillUnmount()}catch(s){ot(e,t,s)}}},I0=X0["react-stack-bottom-frame"].bind(X0),F0={"react-stack-bottom-frame":function(e){e.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},lj=F0["react-stack-bottom-frame"].bind(F0),Z0={"react-stack-bottom-frame":function(e,t,n){try{n()}catch(s){ot(e,t,s)}}},ij=Z0["react-stack-bottom-frame"].bind(Z0),K0={"react-stack-bottom-frame":function(e){var t=e._init;return t(e._payload)}},Fr=K0["react-stack-bottom-frame"].bind(K0),dl=null,Ki=0,He=null,Mp,J0=Mp=!1,W0={},ex={},tx={};E=function(e,t,n){if(n!==null&&typeof n=="object"&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._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.");n._store.validated=1;var s=Z(e),r=s||"null";if(!W0[r]){W0[r]=!0,n=n._owner,e=e._debugOwner;var o="";e&&typeof e.tag=="number"&&(r=Z(e))&&(o=`
261
-
262
- Check the render method of \``+r+"`."),o||s&&(o=`
263
-
264
- Check the top-level render call using <`+s+">.");var c="";n!=null&&e!==n&&(s=null,typeof n.tag=="number"?s=Z(n):typeof n.name=="string"&&(s=n.name),s&&(c=" It was passed a child from "+s+".")),Ne(t,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.',o,c)})}}};var fl=Dv(!0),nx=Dv(!1),as=Se(null),Ls=null,ml=1,Ji=2,Ht=Se(0),sx={},rx=new Set,ox=new Set,ax=new Set,lx=new Set,ix=new Set,cx=new Set,ux=new Set,dx=new Set,fx=new Set,mx=new Set;Object.freeze(sx);var Vp={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Ln(e),r=Or(s);r.payload=t,n!=null&&($f(n),r.callback=n),t=Mr(e,r,s),t!==null&&(Rt(t,e,s),li(t,e,s)),ws(e,s)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Ln(e),r=Or(s);r.tag=O0,r.payload=t,n!=null&&($f(n),r.callback=n),t=Mr(e,r,s),t!==null&&(Rt(t,e,s),li(t,e,s)),ws(e,s)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ln(e),s=Or(n);s.tag=M0,t!=null&&($f(t),s.callback=t),t=Mr(e,s,n),t!==null&&(Rt(t,e,n),li(t,e,n)),ce!==null&&typeof ce.markForceUpdateScheduled=="function"&&ce.markForceUpdateScheduled(e,n)}},zp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pl=null,kp=null,px=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."),Yt=!1,hx={},bx={},vx={},gx={},hl=!1,yx={},Pp={},_p={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},xx=!1,Nx=null;Nx=new Set;var pr=!1,Ut=!1,Hp=!1,Sx=typeof WeakSet=="function"?WeakSet:Set,Gt=null,bl=null,vl=null,zt=null,jn=!1,gs=null,Wi=8192,cj={getCacheForType:function(e){var t=vt(Pt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return Yn}};if(typeof Symbol=="function"&&Symbol.for){var ec=Symbol.for;ec("selector.component"),ec("selector.has_pseudo_class"),ec("selector.role"),ec("selector.test_id"),ec("selector.text")}var uj=[],dj=typeof WeakMap=="function"?WeakMap:Map,Gn=0,fn=2,ys=4,hr=0,tc=1,gl=2,Bp=3,Ko=4,nd=6,wx=5,tt=Gn,ut=null,Ye=null,Qe=0,Tn=0,nc=1,Jo=2,sc=3,Ex=4,Lp=5,yl=6,rc=7,qp=8,Wo=9,nt=Tn,$n=null,Zr=!1,xl=!1,Yp=!1,qs=0,jt=hr,Kr=0,Jr=0,Gp=0,Qn=0,ea=0,oc=null,mn=null,sd=!1,$p=0,jx=300,rd=1/0,Tx=500,ac=null,Wr=null,fj=0,mj=1,pj=2,ta=0,Dx=1,Cx=2,Rx=3,hj=4,Qp=5,Kt=0,eo=null,Nl=null,to=0,Xp=0,Ip=null,Ux=null,bj=50,lc=0,Fp=null,Zp=!1,od=!1,vj=50,na=0,ic=null,Sl=!1,ad=null,Ax=!1,Ox=new Set,gj={},ld=null,wl=null,Kp=!1,Jp=!1,id=!1,Wp=!1,sa=0,eh={};(function(){for(var e=0;e<vp.length;e++){var t=vp[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),fs(n,"on"+t)}fs(b0,"onAnimationEnd"),fs(v0,"onAnimationIteration"),fs(g0,"onAnimationStart"),fs("dblclick","onDoubleClick"),fs("focusin","onFocus"),fs("focusout","onBlur"),fs(FE,"onTransitionRun"),fs(ZE,"onTransitionStart"),fs(KE,"onTransitionCancel"),fs(y0,"onTransitionEnd")})(),se("onMouseEnter",["mouseout","mouseover"]),se("onMouseLeave",["mouseout","mouseover"]),se("onPointerEnter",["pointerout","pointerover"]),se("onPointerLeave",["pointerout","pointerover"]),K("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K("onBeforeInput",["compositionend","keypress","textInput","paste"]),K("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cc="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(" "),th=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cc)),cd="_reactListening"+Math.random().toString(36).slice(2),Mx=!1,Vx=!1,ud=!1,zx=!1,dd=!1,fd=!1,kx=!1,md={},yj=/\r\n?/g,xj=/\u0000|\uFFFD/g,ra="http://www.w3.org/1999/xlink",nh="http://www.w3.org/XML/1998/namespace",Nj="javascript:throw new Error('React form unexpectedly submitted.')",Sj="suppressHydrationWarning",pd="$",hd="/$",br="$?",uc="$!",wj=1,Ej=2,jj=4,sh="F!",Px="F",_x="complete",Tj="style",vr=0,El=1,bd=2,rh=null,oh=null,Hx={dialog:!0,webview:!0},ah=null,Bx=typeof setTimeout=="function"?setTimeout:void 0,Dj=typeof clearTimeout=="function"?clearTimeout:void 0,oa=-1,Lx=typeof Promise=="function"?Promise:void 0,Cj=typeof queueMicrotask=="function"?queueMicrotask:typeof Lx<"u"?function(e){return Lx.resolve(null).then(e).catch(mw)}:Bx,lh=null,aa=0,dc=1,qx=2,Yx=3,ls=4,is=new Map,Gx=new Set,gr=et.d;et.d={f:function(){var e=gr.f(),t=ka();return e||t},r:function(e){var t=vn(e);t!==null&&t.tag===5&&t.type==="form"?Nv(t):gr.r(e)},D:function(e){gr.D(e),uy("dns-prefetch",e,null)},C:function(e,t){gr.C(e,t),uy("preconnect",e,t)},L:function(e,t,n){gr.L(e,t,n);var s=jl;if(s&&e&&t){var r='link[rel="preload"][as="'+In(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+In(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+In(n.imageSizes)+'"]')):r+='[href="'+In(e)+'"]';var o=r;switch(t){case"style":o=Ba(e);break;case"script":o=La(e)}is.has(o)||(e=Le({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),is.set(o,e),s.querySelector(r)!==null||t==="style"&&s.querySelector(Ei(o))||t==="script"&&s.querySelector(ji(o))||(t=s.createElement("link"),Xt(t,"link",e),R(t),s.head.appendChild(t)))}},m:function(e,t){gr.m(e,t);var n=jl;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+In(s)+'"][href="'+In(e)+'"]',o=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=La(e)}if(!is.has(o)&&(e=Le({rel:"modulepreload",href:e},t),is.set(o,e),n.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ji(o)))return}s=n.createElement("link"),Xt(s,"link",e),R(s),n.head.appendChild(s)}}},X:function(e,t){gr.X(e,t);var n=jl;if(n&&e){var s=p(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(ji(r)),o||(e=Le({src:e,async:!0},t),(t=is.get(r))&&Vm(e,t),o=n.createElement("script"),R(o),Xt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}},S:function(e,t,n){gr.S(e,t,n);var s=jl;if(s&&e){var r=p(s).hoistableStyles,o=Ba(e);t=t||"default";var c=r.get(o);if(!c){var f={loading:aa,preload:null};if(c=s.querySelector(Ei(o)))f.loading=dc|ls;else{e=Le({rel:"stylesheet",href:e,"data-precedence":t},n),(n=is.get(o))&&Mm(e,n);var b=c=s.createElement("link");R(b),Xt(b,"link",e),b._p=new Promise(function(g,z){b.onload=g,b.onerror=z}),b.addEventListener("load",function(){f.loading|=dc}),b.addEventListener("error",function(){f.loading|=qx}),f.loading|=ls,Eu(c,t,s)}c={type:"stylesheet",instance:c,count:1,state:f},r.set(o,c)}}},M:function(e,t){gr.M(e,t);var n=jl;if(n&&e){var s=p(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(ji(r)),o||(e=Le({src:e,async:!0,type:"module"},t),(t=is.get(r))&&Vm(e,t),o=n.createElement("script"),R(o),Xt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}}};var jl=typeof document>"u"?null:document,vd=null,fc=null,ih=null,gd=null,la=Xw,mc={$$typeof:Ms,Provider:null,Consumer:null,_currentValue:la,_currentValue2:la,_threadCount:0},$x="%c%s%c ",Qx="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",Xx="",yd=" ",Rj=Function.prototype.bind,Ix=!1,Fx=null,Zx=null,Kx=null,Jx=null,Wx=null,eN=null,tN=null,nN=null,sN=null;Fx=function(e,t,n,s){t=l(e,t),t!==null&&(n=a(t.memoizedState,n,0,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=Le({},e.memoizedProps),n=xn(e,2),n!==null&&Rt(n,e,2))},Zx=function(e,t,n){t=l(e,t),t!==null&&(n=h(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=Le({},e.memoizedProps),n=xn(e,2),n!==null&&Rt(n,e,2))},Kx=function(e,t,n,s){t=l(e,t),t!==null&&(n=i(t.memoizedState,n,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=Le({},e.memoizedProps),n=xn(e,2),n!==null&&Rt(n,e,2))},Jx=function(e,t,n){e.pendingProps=a(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xn(e,2),t!==null&&Rt(t,e,2)},Wx=function(e,t){e.pendingProps=h(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xn(e,2),t!==null&&Rt(t,e,2)},eN=function(e,t,n){e.pendingProps=i(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xn(e,2),t!==null&&Rt(t,e,2)},tN=function(e){var t=xn(e,2);t!==null&&Rt(t,e,2)},nN=function(e){N=e},sN=function(e){v=e};var xd=!0,Nd=null,ch=!1,no=null,so=null,ro=null,pc=new Map,hc=new Map,oo=[],Uj="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(" "),Sd=null;if(Cu.prototype.render=Lm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[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()."):U(n[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 n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var s=t.current,r=Ln(s);km(s,r,n,t,null,null)},Cu.prototype.unmount=Lm.prototype.unmount=function(){var e=arguments;if(typeof e[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()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(tt&(fn|ys))!==Gn&&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."),km(e.current,2,null,e,null,null),ka(),t[Gr]=null}},Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<oo.length&&t!==0&&t<oo[n].priority;n++);oo.splice(n,0,e),n===0&&wy(e)}},function(){var e=qm.version;if(e!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
265
- - react: `+(e+`
266
- - react-dom: 19.1.0
267
- 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"),et.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=ie(t),e=e!==null?ae(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.1.0"};return e.overrideHookState=Fx,e.overrideHookStateDeletePath=Zx,e.overrideHookStateRenamePath=Kx,e.overrideProps=Jx,e.overridePropsDeletePath=Wx,e.overridePropsRenamePath=eN,e.scheduleUpdate=tN,e.setErrorHandler=nN,e.setSuspenseHandler=sN,e.scheduleRefresh=q,e.scheduleRoot=V,e.setRefreshHandler=O,e.getCurrentFiber=kw,e.getLaneLabelMap=Pw,e.injectProfilingHooks=Fe,Be(e)}()&&_s&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var rN=window.location.protocol;/^(https?|file):$/.test(rN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(rN==="file:"?`
268
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}bc.createRoot=function(e,t){if(!U(e))throw Error("Target container is not a DOM element.");Ty(e);var n=!1,s="",r=Av,o=Ov,c=Mv,f=null;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Br&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
269
-
270
- let root = createRoot(domContainer);
271
- root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(f=t.unstable_transitionCallbacks)),t=vy(e,1,!1,null,null,n,s,r,o,c,f,null),e[Gr]=t.current,wm(e),new Lm(t)},bc.hydrateRoot=function(e,t,n){if(!U(e))throw Error("Target container is not a DOM element.");Ty(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,r="",o=Av,c=Ov,f=Mv,b=null,g=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(f=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(b=n.unstable_transitionCallbacks),n.formState!==void 0&&(g=n.formState)),t=vy(e,1,!0,t,n??null,s,r,o,c,f,b,g),t.context=gy(null),n=t.current,s=Ln(n),s=jo(s),r=Or(s),r.callback=null,Mr(n,r,s),n=s,t.current.lanes=n,on(t,n),As(t),e[Gr]=t.current,wm(e),new Cu(t)},bc.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),bc}var hN;function Bj(){return hN||(hN=1,mh.exports=Hj()),mh.exports}var Lj=Bj(),ql=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},wa=typeof window>"u"||"Deno"in globalThis;function bn(){}function qj(l,a){return typeof l=="function"?l(a):l}function Sh(l){return typeof l=="number"&&l>=0&&l!==1/0}function s1(l,a){return Math.max(l+(a||0)-Date.now(),0)}function xo(l,a){return typeof l=="function"?l(a):l}function Ss(l,a){return typeof l=="function"?l(a):l}function bN(l,a){const{type:i="all",exact:d,fetchStatus:h,predicate:v,queryKey:N,stale:E}=l;if(N){if(d){if(a.queryHash!==Gh(N,a.options))return!1}else if(!Sc(a.queryKey,N))return!1}if(i!=="all"){const x=a.isActive();if(i==="active"&&!x||i==="inactive"&&x)return!1}return!(typeof E=="boolean"&&a.isStale()!==E||h&&h!==a.state.fetchStatus||v&&!v(a))}function vN(l,a){const{exact:i,status:d,predicate:h,mutationKey:v}=l;if(v){if(!a.options.mutationKey)return!1;if(i){if(Ea(a.options.mutationKey)!==Ea(v))return!1}else if(!Sc(a.options.mutationKey,v))return!1}return!(d&&a.state.status!==d||h&&!h(a))}function Gh(l,a){return((a==null?void 0:a.queryKeyHashFn)||Ea)(l)}function Ea(l){return JSON.stringify(l,(a,i)=>Eh(i)?Object.keys(i).sort().reduce((d,h)=>(d[h]=i[h],d),{}):i)}function Sc(l,a){return l===a?!0:typeof l!=typeof a?!1:l&&a&&typeof l=="object"&&typeof a=="object"?Object.keys(a).every(i=>Sc(l[i],a[i])):!1}function wh(l,a){if(l===a)return l;const i=gN(l)&&gN(a);if(i||Eh(l)&&Eh(a)){const d=i?l:Object.keys(l),h=d.length,v=i?a:Object.keys(a),N=v.length,E=i?[]:{},x=new Set(d);let C=0;for(let A=0;A<N;A++){const m=i?A:v[A];(!i&&x.has(m)||i)&&l[m]===void 0&&a[m]===void 0?(E[m]=void 0,C++):(E[m]=wh(l[m],a[m]),E[m]===l[m]&&l[m]!==void 0&&C++)}return h===N&&C===h?l:E}return a}function Ad(l,a){if(!a||Object.keys(l).length!==Object.keys(a).length)return!1;for(const i in l)if(l[i]!==a[i])return!1;return!0}function gN(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Eh(l){if(!yN(l))return!1;const a=l.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!yN(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function yN(l){return Object.prototype.toString.call(l)==="[object Object]"}function Yj(l){return new Promise(a=>{setTimeout(a,l)})}function jh(l,a,i){if(typeof i.structuralSharing=="function")return i.structuralSharing(l,a);if(i.structuralSharing!==!1){try{return wh(l,a)}catch(d){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. [${i.queryHash}]: ${d}`),d}return wh(l,a)}return a}function Gj(l,a,i=0){const d=[...l,a];return i&&d.length>i?d.slice(1):d}function $j(l,a,i=0){const d=[a,...l];return i&&d.length>i?d.slice(0,-1):d}var Od=Symbol();function r1(l,a){return l.queryFn===Od&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${l.queryHash}'`),!l.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!l.queryFn||l.queryFn===Od?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function o1(l,a){return typeof l=="function"?l(...a):!!l}var ha,io,Cl,GN,Qj=(GN=class extends ql{constructor(){super();je(this,ha);je(this,io);je(this,Cl);de(this,Cl,a=>{if(!wa&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){T(this,io)||this.setEventListener(T(this,Cl))}onUnsubscribe(){var a;this.hasListeners()||((a=T(this,io))==null||a.call(this),de(this,io,void 0))}setEventListener(a){var i;de(this,Cl,a),(i=T(this,io))==null||i.call(this),de(this,io,a(d=>{typeof d=="boolean"?this.setFocused(d):this.onFocus()}))}setFocused(a){T(this,ha)!==a&&(de(this,ha,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){var a;return typeof T(this,ha)=="boolean"?T(this,ha):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},ha=new WeakMap,io=new WeakMap,Cl=new WeakMap,GN),$h=new Qj,Rl,co,Ul,$N,Xj=($N=class extends ql{constructor(){super();je(this,Rl,!0);je(this,co);je(this,Ul);de(this,Ul,a=>{if(!wa&&window.addEventListener){const i=()=>a(!0),d=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",d,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",d)}}})}onSubscribe(){T(this,co)||this.setEventListener(T(this,Ul))}onUnsubscribe(){var a;this.hasListeners()||((a=T(this,co))==null||a.call(this),de(this,co,void 0))}setEventListener(a){var i;de(this,Ul,a),(i=T(this,co))==null||i.call(this),de(this,co,a(this.setOnline.bind(this)))}setOnline(a){T(this,Rl)!==a&&(de(this,Rl,a),this.listeners.forEach(d=>{d(a)}))}isOnline(){return T(this,Rl)}},Rl=new WeakMap,co=new WeakMap,Ul=new WeakMap,$N),Md=new Xj;function Th(){let l,a;const i=new Promise((h,v)=>{l=h,a=v});i.status="pending",i.catch(()=>{});function d(h){Object.assign(i,h),delete i.resolve,delete i.reject}return i.resolve=h=>{d({status:"fulfilled",value:h}),l(h)},i.reject=h=>{d({status:"rejected",reason:h}),a(h)},i}function Ij(l){return Math.min(1e3*2**l,3e4)}function a1(l){return(l??"online")==="online"?Md.isOnline():!0}var l1=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function vh(l){return l instanceof l1}function i1(l){let a=!1,i=0,d=!1,h;const v=Th(),N=O=>{var U;d||(y(new l1(O)),(U=l.abort)==null||U.call(l))},E=()=>{a=!0},x=()=>{a=!1},C=()=>$h.isFocused()&&(l.networkMode==="always"||Md.isOnline())&&l.canRun(),A=()=>a1(l.networkMode)&&l.canRun(),m=O=>{var U;d||(d=!0,(U=l.onSuccess)==null||U.call(l,O),h==null||h(),v.resolve(O))},y=O=>{var U;d||(d=!0,(U=l.onError)==null||U.call(l,O),h==null||h(),v.reject(O))},V=()=>new Promise(O=>{var U;h=$=>{(d||C())&&O($)},(U=l.onPause)==null||U.call(l)}).then(()=>{var O;h=void 0,d||(O=l.onContinue)==null||O.call(l)}),q=()=>{if(d)return;let O;const U=i===0?l.initialPromise:void 0;try{O=U??l.fn()}catch($){O=Promise.reject($)}Promise.resolve(O).then(m).catch($=>{var ge;if(d)return;const oe=l.retry??(wa?0:3),ee=l.retryDelay??Ij,ie=typeof ee=="function"?ee(i,$):ee,ae=oe===!0||typeof oe=="number"&&i<oe||typeof oe=="function"&&oe(i,$);if(a||!ae){y($);return}i++,(ge=l.onFail)==null||ge.call(l,i,$),Yj(ie).then(()=>C()?void 0:V()).then(()=>{a?y($):q()})})};return{promise:v,cancel:N,continue:()=>(h==null||h(),v),cancelRetry:E,continueRetry:x,canStart:A,start:()=>(A()?q():V().then(q),v)}}var Fj=l=>setTimeout(l,0);function Zj(){let l=[],a=0,i=E=>{E()},d=E=>{E()},h=Fj;const v=E=>{a?l.push(E):h(()=>{i(E)})},N=()=>{const E=l;l=[],E.length&&h(()=>{d(()=>{E.forEach(x=>{i(x)})})})};return{batch:E=>{let x;a++;try{x=E()}finally{a--,a||N()}return x},batchCalls:E=>(...x)=>{v(()=>{E(...x)})},schedule:v,setNotifyFunction:E=>{i=E},setBatchNotifyFunction:E=>{d=E},setScheduler:E=>{h=E}}}var Lt=Zj(),ba,QN,c1=(QN=class{constructor(){je(this,ba)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sh(this.gcTime)&&de(this,ba,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(wa?1/0:5*60*1e3))}clearGcTimeout(){T(this,ba)&&(clearTimeout(T(this,ba)),de(this,ba,void 0))}},ba=new WeakMap,QN),Al,Ol,cs,va,nn,Ec,ga,xs,Nr,XN,Kj=(XN=class extends c1{constructor(a){super();je(this,xs);je(this,Al);je(this,Ol);je(this,cs);je(this,va);je(this,nn);je(this,Ec);je(this,ga);de(this,ga,!1),de(this,Ec,a.defaultOptions),this.setOptions(a.options),this.observers=[],de(this,va,a.client),de(this,cs,T(this,va).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,de(this,Al,Jj(this.options)),this.state=a.state??T(this,Al),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=T(this,nn))==null?void 0:a.promise}setOptions(a){this.options={...T(this,Ec),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,cs).remove(this)}setData(a,i){const d=jh(this.state.data,a,this.options);return qe(this,xs,Nr).call(this,{data:d,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),d}setState(a,i){qe(this,xs,Nr).call(this,{type:"setState",state:a,setStateOptions:i})}cancel(a){var d,h;const i=(d=T(this,nn))==null?void 0:d.promise;return(h=T(this,nn))==null||h.cancel(a),i?i.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Al))}isActive(){return this.observers.some(a=>Ss(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Od||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>xo(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!s1(this.state.dataUpdatedAt,a)}onFocus(){var i;const a=this.observers.find(d=>d.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(i=T(this,nn))==null||i.continue()}onOnline(){var i;const a=this.observers.find(d=>d.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(i=T(this,nn))==null||i.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),T(this,cs).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(T(this,nn)&&(T(this,ga)?T(this,nn).cancel({revert:!0}):T(this,nn).cancelRetry()),this.scheduleGc()),T(this,cs).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||qe(this,xs,Nr).call(this,{type:"invalidate"})}fetch(a,i){var C,A,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(T(this,nn))return T(this,nn).continueRetry(),T(this,nn).promise}if(a&&this.setOptions(a),!this.options.queryFn){const y=this.observers.find(V=>V.options.queryFn);y&&this.setOptions(y.options)}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']");const d=new AbortController,h=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(de(this,ga,!0),d.signal)})},v=()=>{const y=r1(this.options,i),q=(()=>{const O={client:T(this,va),queryKey:this.queryKey,meta:this.meta};return h(O),O})();return de(this,ga,!1),this.options.persister?this.options.persister(y,q,this):y(q)},E=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:T(this,va),state:this.state,fetchFn:v};return h(y),y})();(C=this.options.behavior)==null||C.onFetch(E,this),de(this,Ol,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((A=E.fetchOptions)==null?void 0:A.meta))&&qe(this,xs,Nr).call(this,{type:"fetch",meta:(m=E.fetchOptions)==null?void 0:m.meta});const x=y=>{var V,q,O,U;vh(y)&&y.silent||qe(this,xs,Nr).call(this,{type:"error",error:y}),vh(y)||((q=(V=T(this,cs).config).onError)==null||q.call(V,y,this),(U=(O=T(this,cs).config).onSettled)==null||U.call(O,this.state.data,y,this)),this.scheduleGc()};return de(this,nn,i1({initialPromise:i==null?void 0:i.initialPromise,fn:E.fetchFn,abort:d.abort.bind(d),onSuccess:y=>{var V,q,O,U;if(y===void 0){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}`),x(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch($){x($);return}(q=(V=T(this,cs).config).onSuccess)==null||q.call(V,y,this),(U=(O=T(this,cs).config).onSettled)==null||U.call(O,y,this.state.error,this),this.scheduleGc()},onError:x,onFail:(y,V)=>{qe(this,xs,Nr).call(this,{type:"failed",failureCount:y,error:V})},onPause:()=>{qe(this,xs,Nr).call(this,{type:"pause"})},onContinue:()=>{qe(this,xs,Nr).call(this,{type:"continue"})},retry:E.options.retry,retryDelay:E.options.retryDelay,networkMode:E.options.networkMode,canRun:()=>!0})),T(this,nn).start()}},Al=new WeakMap,Ol=new WeakMap,cs=new WeakMap,va=new WeakMap,nn=new WeakMap,Ec=new WeakMap,ga=new WeakMap,xs=new WeakSet,Nr=function(a){const i=d=>{switch(a.type){case"failed":return{...d,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...d,fetchStatus:"paused"};case"continue":return{...d,fetchStatus:"fetching"};case"fetch":return{...d,...u1(d.data,this.options),fetchMeta:a.meta??null};case"success":return{...d,data:a.data,dataUpdateCount:d.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const h=a.error;return vh(h)&&h.revert&&T(this,Ol)?{...T(this,Ol),fetchStatus:"idle"}:{...d,error:h,errorUpdateCount:d.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:d.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error"};case"invalidate":return{...d,isInvalidated:!0};case"setState":return{...d,...a.state}}};this.state=i(this.state),Lt.batch(()=>{this.observers.forEach(d=>{d.onQueryUpdate()}),T(this,cs).notify({query:this,type:"updated",action:a})})},XN);function u1(l,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:a1(a.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Jj(l){const a=typeof l.initialData=="function"?l.initialData():l.initialData,i=a!==void 0,d=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?d??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Gs,IN,Wj=(IN=class extends ql{constructor(a={}){super();je(this,Gs);this.config=a,de(this,Gs,new Map)}build(a,i,d){const h=i.queryKey,v=i.queryHash??Gh(h,i);let N=this.get(v);return N||(N=new Kj({client:a,queryKey:h,queryHash:v,options:a.defaultQueryOptions(i),state:d,defaultOptions:a.getQueryDefaults(h)}),this.add(N)),N}add(a){T(this,Gs).has(a.queryHash)||(T(this,Gs).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=T(this,Gs).get(a.queryHash);i&&(a.destroy(),i===a&&T(this,Gs).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Lt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return T(this,Gs).get(a)}getAll(){return[...T(this,Gs).values()]}find(a){const i={exact:!0,...a};return this.getAll().find(d=>bN(i,d))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(d=>bN(a,d)):i}notify(a){Lt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Gs=new WeakMap,IN),$s,pn,ya,Qs,lo,FN,eT=(FN=class extends c1{constructor(a){super();je(this,Qs);je(this,$s);je(this,pn);je(this,ya);this.mutationId=a.mutationId,de(this,pn,a.mutationCache),de(this,$s,[]),this.state=a.state||d1(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){T(this,$s).includes(a)||(T(this,$s).push(a),this.clearGcTimeout(),T(this,pn).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){de(this,$s,T(this,$s).filter(i=>i!==a)),this.scheduleGc(),T(this,pn).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){T(this,$s).length||(this.state.status==="pending"?this.scheduleGc():T(this,pn).remove(this))}continue(){var a;return((a=T(this,ya))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var v,N,E,x,C,A,m,y,V,q,O,U,$,oe,ee,ie,ae,ge,ye,F;const i=()=>{qe(this,Qs,lo).call(this,{type:"continue"})};de(this,ya,i1({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(Z,Se)=>{qe(this,Qs,lo).call(this,{type:"failed",failureCount:Z,error:Se})},onPause:()=>{qe(this,Qs,lo).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,pn).canRun(this)}));const d=this.state.status==="pending",h=!T(this,ya).canStart();try{if(d)i();else{qe(this,Qs,lo).call(this,{type:"pending",variables:a,isPaused:h}),await((N=(v=T(this,pn).config).onMutate)==null?void 0:N.call(v,a,this));const Se=await((x=(E=this.options).onMutate)==null?void 0:x.call(E,a));Se!==this.state.context&&qe(this,Qs,lo).call(this,{type:"pending",context:Se,variables:a,isPaused:h})}const Z=await T(this,ya).start();return await((A=(C=T(this,pn).config).onSuccess)==null?void 0:A.call(C,Z,a,this.state.context,this)),await((y=(m=this.options).onSuccess)==null?void 0:y.call(m,Z,a,this.state.context)),await((q=(V=T(this,pn).config).onSettled)==null?void 0:q.call(V,Z,null,this.state.variables,this.state.context,this)),await((U=(O=this.options).onSettled)==null?void 0:U.call(O,Z,null,a,this.state.context)),qe(this,Qs,lo).call(this,{type:"success",data:Z}),Z}catch(Z){try{throw await((oe=($=T(this,pn).config).onError)==null?void 0:oe.call($,Z,a,this.state.context,this)),await((ie=(ee=this.options).onError)==null?void 0:ie.call(ee,Z,a,this.state.context)),await((ge=(ae=T(this,pn).config).onSettled)==null?void 0:ge.call(ae,void 0,Z,this.state.variables,this.state.context,this)),await((F=(ye=this.options).onSettled)==null?void 0:F.call(ye,void 0,Z,a,this.state.context)),Z}finally{qe(this,Qs,lo).call(this,{type:"error",error:Z})}}finally{T(this,pn).runNext(this)}}},$s=new WeakMap,pn=new WeakMap,ya=new WeakMap,Qs=new WeakSet,lo=function(a){const i=d=>{switch(a.type){case"failed":return{...d,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...d,isPaused:!0};case"continue":return{...d,isPaused:!1};case"pending":return{...d,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...d,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...d,data:void 0,error:a.error,failureCount:d.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Lt.batch(()=>{T(this,$s).forEach(d=>{d.onMutationUpdate(a)}),T(this,pn).notify({mutation:this,type:"updated",action:a})})},FN);function d1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sr,Ns,jc,ZN,tT=(ZN=class extends ql{constructor(a={}){super();je(this,Sr);je(this,Ns);je(this,jc);this.config=a,de(this,Sr,new Set),de(this,Ns,new Map),de(this,jc,0)}build(a,i,d){const h=new eT({mutationCache:this,mutationId:++wd(this,jc)._,options:a.defaultMutationOptions(i),state:d});return this.add(h),h}add(a){T(this,Sr).add(a);const i=jd(a);if(typeof i=="string"){const d=T(this,Ns).get(i);d?d.push(a):T(this,Ns).set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(T(this,Sr).delete(a)){const i=jd(a);if(typeof i=="string"){const d=T(this,Ns).get(i);if(d)if(d.length>1){const h=d.indexOf(a);h!==-1&&d.splice(h,1)}else d[0]===a&&T(this,Ns).delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=jd(a);if(typeof i=="string"){const d=T(this,Ns).get(i),h=d==null?void 0:d.find(v=>v.state.status==="pending");return!h||h===a}else return!0}runNext(a){var d;const i=jd(a);if(typeof i=="string"){const h=(d=T(this,Ns).get(i))==null?void 0:d.find(v=>v!==a&&v.state.isPaused);return(h==null?void 0:h.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Lt.batch(()=>{T(this,Sr).forEach(a=>{this.notify({type:"removed",mutation:a})}),T(this,Sr).clear(),T(this,Ns).clear()})}getAll(){return Array.from(T(this,Sr))}find(a){const i={exact:!0,...a};return this.getAll().find(d=>vN(i,d))}findAll(a={}){return this.getAll().filter(i=>vN(a,i))}notify(a){Lt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Lt.batch(()=>Promise.all(a.map(i=>i.continue().catch(bn))))}},Sr=new WeakMap,Ns=new WeakMap,jc=new WeakMap,ZN);function jd(l){var a;return(a=l.options.scope)==null?void 0:a.id}function xN(l){return{onFetch:(a,i)=>{var A,m,y,V,q;const d=a.options,h=(y=(m=(A=a.fetchOptions)==null?void 0:A.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,v=((V=a.state.data)==null?void 0:V.pages)||[],N=((q=a.state.data)==null?void 0:q.pageParams)||[];let E={pages:[],pageParams:[]},x=0;const C=async()=>{let O=!1;const U=ee=>{Object.defineProperty(ee,"signal",{enumerable:!0,get:()=>(a.signal.aborted?O=!0:a.signal.addEventListener("abort",()=>{O=!0}),a.signal)})},$=r1(a.options,a.fetchOptions),oe=async(ee,ie,ae)=>{if(O)return Promise.reject();if(ie==null&&ee.pages.length)return Promise.resolve(ee);const ye=(()=>{const B={client:a.client,queryKey:a.queryKey,pageParam:ie,direction:ae?"backward":"forward",meta:a.options.meta};return U(B),B})(),F=await $(ye),{maxPages:Z}=a.options,Se=ae?$j:Gj;return{pages:Se(ee.pages,F,Z),pageParams:Se(ee.pageParams,ie,Z)}};if(h&&v.length){const ee=h==="backward",ie=ee?nT:NN,ae={pages:v,pageParams:N},ge=ie(d,ae);E=await oe(ae,ge,ee)}else{const ee=l??v.length;do{const ie=x===0?N[0]??d.initialPageParam:NN(d,E);if(x>0&&ie==null)break;E=await oe(E,ie),x++}while(x<ee)}return E};a.options.persister?a.fetchFn=()=>{var O,U;return(U=(O=a.options).persister)==null?void 0:U.call(O,C,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i)}:a.fetchFn=C}}}function NN(l,{pages:a,pageParams:i}){const d=a.length-1;return a.length>0?l.getNextPageParam(a[d],a,i[d],i):void 0}function nT(l,{pages:a,pageParams:i}){var d;return a.length>0?(d=l.getPreviousPageParam)==null?void 0:d.call(l,a[0],a,i[0],i):void 0}var Tt,uo,fo,Ml,Vl,mo,zl,kl,KN,sT=(KN=class{constructor(l={}){je(this,Tt);je(this,uo);je(this,fo);je(this,Ml);je(this,Vl);je(this,mo);je(this,zl);je(this,kl);de(this,Tt,l.queryCache||new Wj),de(this,uo,l.mutationCache||new tT),de(this,fo,l.defaultOptions||{}),de(this,Ml,new Map),de(this,Vl,new Map),de(this,mo,0)}mount(){wd(this,mo)._++,T(this,mo)===1&&(de(this,zl,$h.subscribe(async l=>{l&&(await this.resumePausedMutations(),T(this,Tt).onFocus())})),de(this,kl,Md.subscribe(async l=>{l&&(await this.resumePausedMutations(),T(this,Tt).onOnline())})))}unmount(){var l,a;wd(this,mo)._--,T(this,mo)===0&&((l=T(this,zl))==null||l.call(this),de(this,zl,void 0),(a=T(this,kl))==null||a.call(this),de(this,kl,void 0))}isFetching(l){return T(this,Tt).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return T(this,uo).findAll({...l,status:"pending"}).length}getQueryData(l){var i;const a=this.defaultQueryOptions({queryKey:l});return(i=T(this,Tt).get(a.queryHash))==null?void 0:i.state.data}ensureQueryData(l){const a=this.defaultQueryOptions(l),i=T(this,Tt).build(this,a),d=i.state.data;return d===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(xo(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(d))}getQueriesData(l){return T(this,Tt).findAll(l).map(({queryKey:a,state:i})=>{const d=i.data;return[a,d]})}setQueryData(l,a,i){const d=this.defaultQueryOptions({queryKey:l}),h=T(this,Tt).get(d.queryHash),v=h==null?void 0:h.state.data,N=qj(a,v);if(N!==void 0)return T(this,Tt).build(this,d).setData(N,{...i,manual:!0})}setQueriesData(l,a,i){return Lt.batch(()=>T(this,Tt).findAll(l).map(({queryKey:d})=>[d,this.setQueryData(d,a,i)]))}getQueryState(l){var i;const a=this.defaultQueryOptions({queryKey:l});return(i=T(this,Tt).get(a.queryHash))==null?void 0:i.state}removeQueries(l){const a=T(this,Tt);Lt.batch(()=>{a.findAll(l).forEach(i=>{a.remove(i)})})}resetQueries(l,a){const i=T(this,Tt);return Lt.batch(()=>(i.findAll(l).forEach(d=>{d.reset()}),this.refetchQueries({type:"active",...l},a)))}cancelQueries(l,a={}){const i={revert:!0,...a},d=Lt.batch(()=>T(this,Tt).findAll(l).map(h=>h.cancel(i)));return Promise.all(d).then(bn).catch(bn)}invalidateQueries(l,a={}){return Lt.batch(()=>(T(this,Tt).findAll(l).forEach(i=>{i.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},a)))}refetchQueries(l,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},d=Lt.batch(()=>T(this,Tt).findAll(l).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let v=h.fetch(void 0,i);return i.throwOnError||(v=v.catch(bn)),h.state.fetchStatus==="paused"?Promise.resolve():v}));return Promise.all(d).then(bn)}fetchQuery(l){const a=this.defaultQueryOptions(l);a.retry===void 0&&(a.retry=!1);const i=T(this,Tt).build(this,a);return i.isStaleByTime(xo(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(bn).catch(bn)}fetchInfiniteQuery(l){return l.behavior=xN(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(bn).catch(bn)}ensureInfiniteQueryData(l){return l.behavior=xN(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Md.isOnline()?T(this,uo).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Tt)}getMutationCache(){return T(this,uo)}getDefaultOptions(){return T(this,fo)}setDefaultOptions(l){de(this,fo,l)}setQueryDefaults(l,a){T(this,Ml).set(Ea(l),{queryKey:l,defaultOptions:a})}getQueryDefaults(l){const a=[...T(this,Ml).values()],i={};return a.forEach(d=>{Sc(l,d.queryKey)&&Object.assign(i,d.defaultOptions)}),i}setMutationDefaults(l,a){T(this,Vl).set(Ea(l),{mutationKey:l,defaultOptions:a})}getMutationDefaults(l){const a=[...T(this,Vl).values()],i={};return a.forEach(d=>{Sc(l,d.mutationKey)&&Object.assign(i,d.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const a={...T(this,fo).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return a.queryHash||(a.queryHash=Gh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Od&&(a.enabled=!1),a}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...T(this,fo).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){T(this,Tt).clear(),T(this,uo).clear()}},Tt=new WeakMap,uo=new WeakMap,fo=new WeakMap,Ml=new WeakMap,Vl=new WeakMap,mo=new WeakMap,zl=new WeakMap,kl=new WeakMap,KN),Dn,Je,Tc,hn,xa,Pl,po,ho,Dc,_l,Hl,Na,Sa,bo,Bl,st,Nc,Dh,Ch,Rh,Uh,Ah,Oh,Mh,f1,JN,rT=(JN=class extends ql{constructor(a,i){super();je(this,st);je(this,Dn);je(this,Je);je(this,Tc);je(this,hn);je(this,xa);je(this,Pl);je(this,po);je(this,ho);je(this,Dc);je(this,_l);je(this,Hl);je(this,Na);je(this,Sa);je(this,bo);je(this,Bl,new Set);this.options=i,de(this,Dn,a),de(this,ho,null),de(this,po,Th()),this.options.experimental_prefetchInRender||T(this,po).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Je).addObserver(this),SN(T(this,Je),this.options)?qe(this,st,Nc).call(this):this.updateResult(),qe(this,st,Uh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vh(T(this,Je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vh(T(this,Je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,qe(this,st,Ah).call(this),qe(this,st,Oh).call(this),T(this,Je).removeObserver(this)}setOptions(a){const i=this.options,d=T(this,Je);if(this.options=T(this,Dn).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ss(this.options.enabled,T(this,Je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");qe(this,st,Mh).call(this),T(this,Je).setOptions(this.options),i._defaulted&&!Ad(this.options,i)&&T(this,Dn).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Je),observer:this});const h=this.hasListeners();h&&wN(T(this,Je),d,this.options,i)&&qe(this,st,Nc).call(this),this.updateResult(),h&&(T(this,Je)!==d||Ss(this.options.enabled,T(this,Je))!==Ss(i.enabled,T(this,Je))||xo(this.options.staleTime,T(this,Je))!==xo(i.staleTime,T(this,Je)))&&qe(this,st,Dh).call(this);const v=qe(this,st,Ch).call(this);h&&(T(this,Je)!==d||Ss(this.options.enabled,T(this,Je))!==Ss(i.enabled,T(this,Je))||v!==T(this,bo))&&qe(this,st,Rh).call(this,v)}getOptimisticResult(a){const i=T(this,Dn).getQueryCache().build(T(this,Dn),a),d=this.createResult(i,a);return aT(this,d)&&(de(this,hn,d),de(this,Pl,this.options),de(this,xa,T(this,Je).state)),d}getCurrentResult(){return T(this,hn)}trackResult(a,i){return new Proxy(a,{get:(d,h)=>(this.trackProp(h),i==null||i(h),Reflect.get(d,h))})}trackProp(a){T(this,Bl).add(a)}getCurrentQuery(){return T(this,Je)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=T(this,Dn).defaultQueryOptions(a),d=T(this,Dn).getQueryCache().build(T(this,Dn),i);return d.fetch().then(()=>this.createResult(d,i))}fetch(a){return qe(this,st,Nc).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,hn)))}createResult(a,i){var Z;const d=T(this,Je),h=this.options,v=T(this,hn),N=T(this,xa),E=T(this,Pl),C=a!==d?a.state:T(this,Tc),{state:A}=a;let m={...A},y=!1,V;if(i._optimisticResults){const Se=this.hasListeners(),B=!Se&&SN(a,i),re=Se&&wN(a,d,i,h);(B||re)&&(m={...m,...u1(A.data,a.options)}),i._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:q,errorUpdatedAt:O,status:U}=m;V=m.data;let $=!1;if(i.placeholderData!==void 0&&V===void 0&&U==="pending"){let Se;v!=null&&v.isPlaceholderData&&i.placeholderData===(E==null?void 0:E.placeholderData)?(Se=v.data,$=!0):Se=typeof i.placeholderData=="function"?i.placeholderData((Z=T(this,Hl))==null?void 0:Z.state.data,T(this,Hl)):i.placeholderData,Se!==void 0&&(U="success",V=jh(v==null?void 0:v.data,Se,i),y=!0)}if(i.select&&V!==void 0&&!$)if(v&&V===(N==null?void 0:N.data)&&i.select===T(this,Dc))V=T(this,_l);else try{de(this,Dc,i.select),V=i.select(V),V=jh(v==null?void 0:v.data,V,i),de(this,_l,V),de(this,ho,null)}catch(Se){de(this,ho,Se)}T(this,ho)&&(q=T(this,ho),V=T(this,_l),O=Date.now(),U="error");const oe=m.fetchStatus==="fetching",ee=U==="pending",ie=U==="error",ae=ee&&oe,ge=V!==void 0,F={status:U,fetchStatus:m.fetchStatus,isPending:ee,isSuccess:U==="success",isError:ie,isInitialLoading:ae,isLoading:ae,data:V,dataUpdatedAt:m.dataUpdatedAt,error:q,errorUpdatedAt:O,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>C.dataUpdateCount||m.errorUpdateCount>C.errorUpdateCount,isFetching:oe,isRefetching:oe&&!ee,isLoadingError:ie&&!ge,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:ie&&ge,isStale:Qh(a,i),refetch:this.refetch,promise:T(this,po)};if(this.options.experimental_prefetchInRender){const Se=Ee=>{F.status==="error"?Ee.reject(F.error):F.data!==void 0&&Ee.resolve(F.data)},B=()=>{const Ee=de(this,po,F.promise=Th());Se(Ee)},re=T(this,po);switch(re.status){case"pending":a.queryHash===d.queryHash&&Se(re);break;case"fulfilled":(F.status==="error"||F.data!==re.value)&&B();break;case"rejected":(F.status!=="error"||F.error!==re.reason)&&B();break}}return F}updateResult(){const a=T(this,hn),i=this.createResult(T(this,Je),this.options);if(de(this,xa,T(this,Je).state),de(this,Pl,this.options),T(this,xa).data!==void 0&&de(this,Hl,T(this,Je)),Ad(i,a))return;de(this,hn,i);const d=()=>{if(!a)return!0;const{notifyOnChangeProps:h}=this.options,v=typeof h=="function"?h():h;if(v==="all"||!v&&!T(this,Bl).size)return!0;const N=new Set(v??T(this,Bl));return this.options.throwOnError&&N.add("error"),Object.keys(T(this,hn)).some(E=>{const x=E;return T(this,hn)[x]!==a[x]&&N.has(x)})};qe(this,st,f1).call(this,{listeners:d()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&qe(this,st,Uh).call(this)}},Dn=new WeakMap,Je=new WeakMap,Tc=new WeakMap,hn=new WeakMap,xa=new WeakMap,Pl=new WeakMap,po=new WeakMap,ho=new WeakMap,Dc=new WeakMap,_l=new WeakMap,Hl=new WeakMap,Na=new WeakMap,Sa=new WeakMap,bo=new WeakMap,Bl=new WeakMap,st=new WeakSet,Nc=function(a){qe(this,st,Mh).call(this);let i=T(this,Je).fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(bn)),i},Dh=function(){qe(this,st,Ah).call(this);const a=xo(this.options.staleTime,T(this,Je));if(wa||T(this,hn).isStale||!Sh(a))return;const d=s1(T(this,hn).dataUpdatedAt,a)+1;de(this,Na,setTimeout(()=>{T(this,hn).isStale||this.updateResult()},d))},Ch=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Je)):this.options.refetchInterval)??!1},Rh=function(a){qe(this,st,Oh).call(this),de(this,bo,a),!(wa||Ss(this.options.enabled,T(this,Je))===!1||!Sh(T(this,bo))||T(this,bo)===0)&&de(this,Sa,setInterval(()=>{(this.options.refetchIntervalInBackground||$h.isFocused())&&qe(this,st,Nc).call(this)},T(this,bo)))},Uh=function(){qe(this,st,Dh).call(this),qe(this,st,Rh).call(this,qe(this,st,Ch).call(this))},Ah=function(){T(this,Na)&&(clearTimeout(T(this,Na)),de(this,Na,void 0))},Oh=function(){T(this,Sa)&&(clearInterval(T(this,Sa)),de(this,Sa,void 0))},Mh=function(){const a=T(this,Dn).getQueryCache().build(T(this,Dn),this.options);if(a===T(this,Je))return;const i=T(this,Je);de(this,Je,a),de(this,Tc,a.state),this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))},f1=function(a){Lt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(T(this,hn))}),T(this,Dn).getQueryCache().notify({query:T(this,Je),type:"observerResultsUpdated"})})},JN);function oT(l,a){return Ss(a.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&a.retryOnMount===!1)}function SN(l,a){return oT(l,a)||l.state.data!==void 0&&Vh(l,a,a.refetchOnMount)}function Vh(l,a,i){if(Ss(a.enabled,l)!==!1&&xo(a.staleTime,l)!=="static"){const d=typeof i=="function"?i(l):i;return d==="always"||d!==!1&&Qh(l,a)}return!1}function wN(l,a,i,d){return(l!==a||Ss(d.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Qh(l,i)}function Qh(l,a){return Ss(a.enabled,l)!==!1&&l.isStaleByTime(xo(a.staleTime,l))}function aT(l,a){return!Ad(l.getCurrentResult(),a)}var vo,go,Cn,wr,jr,Ud,zh,WN,lT=(WN=class extends ql{constructor(i,d){super();je(this,jr);je(this,vo);je(this,go);je(this,Cn);je(this,wr);de(this,vo,i),this.setOptions(d),this.bindMethods(),qe(this,jr,Ud).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var h;const d=this.options;this.options=T(this,vo).defaultMutationOptions(i),Ad(this.options,d)||T(this,vo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,Cn),observer:this}),d!=null&&d.mutationKey&&this.options.mutationKey&&Ea(d.mutationKey)!==Ea(this.options.mutationKey)?this.reset():((h=T(this,Cn))==null?void 0:h.state.status)==="pending"&&T(this,Cn).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=T(this,Cn))==null||i.removeObserver(this)}onMutationUpdate(i){qe(this,jr,Ud).call(this),qe(this,jr,zh).call(this,i)}getCurrentResult(){return T(this,go)}reset(){var i;(i=T(this,Cn))==null||i.removeObserver(this),de(this,Cn,void 0),qe(this,jr,Ud).call(this),qe(this,jr,zh).call(this)}mutate(i,d){var h;return de(this,wr,d),(h=T(this,Cn))==null||h.removeObserver(this),de(this,Cn,T(this,vo).getMutationCache().build(T(this,vo),this.options)),T(this,Cn).addObserver(this),T(this,Cn).execute(i)}},vo=new WeakMap,go=new WeakMap,Cn=new WeakMap,wr=new WeakMap,jr=new WeakSet,Ud=function(){var d;const i=((d=T(this,Cn))==null?void 0:d.state)??d1();de(this,go,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},zh=function(i){Lt.batch(()=>{var d,h,v,N,E,x,C,A;if(T(this,wr)&&this.hasListeners()){const m=T(this,go).variables,y=T(this,go).context;(i==null?void 0:i.type)==="success"?((h=(d=T(this,wr)).onSuccess)==null||h.call(d,i.data,m,y),(N=(v=T(this,wr)).onSettled)==null||N.call(v,i.data,null,m,y)):(i==null?void 0:i.type)==="error"&&((x=(E=T(this,wr)).onError)==null||x.call(E,i.error,m,y),(A=(C=T(this,wr)).onSettled)==null||A.call(C,void 0,i.error,m,y))}this.listeners.forEach(m=>{m(T(this,go))})})},WN),gh={exports:{}},vc={},EN;function iT(){if(EN)return vc;EN=1;/**
272
- * @license React
273
- * react-jsx-runtime.development.js
274
- *
275
- * Copyright (c) Meta Platforms, Inc. and affiliates.
276
- *
277
- * This source code is licensed under the MIT license found in the
278
- * LICENSE file in the root directory of this source tree.
279
- */return function(){function l(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===Se?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case O:return"Fragment";case $:return"Profiler";case U:return"StrictMode";case ae:return"Suspense";case ge:return"SuspenseList";case Z:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case q:return"Portal";case ee:return(j.displayName||"Context")+".Provider";case oe:return(j._context.displayName||"Context")+".Consumer";case ie:var G=j.render;return j=j.displayName,j||(j=G.displayName||G.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case ye:return G=j.displayName||null,G!==null?G:l(j.type)||"Memo";case F:G=j._payload,j=j._init;try{return l(j(G))}catch{}}return null}function a(j){return""+j}function i(j){try{a(j);var G=!1}catch{G=!0}if(G){G=console;var I=G.error,te=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return I.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",te),a(j)}}function d(j){if(j===O)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===F)return"<...>";try{var G=l(j);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function h(){var j=B.A;return j===null?null:j.getOwner()}function v(){return Error("react-stack-top-frame")}function N(j){if(re.call(j,"key")){var G=Object.getOwnPropertyDescriptor(j,"key").get;if(G&&G.isReactWarning)return!1}return j.key!==void 0}function E(j,G){function I(){Ve||(Ve=!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)",G))}I.isReactWarning=!0,Object.defineProperty(j,"key",{get:I,configurable:!0})}function x(){var j=l(this.type);return H[j]||(H[j]=!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.")),j=this.props.ref,j!==void 0?j:null}function C(j,G,I,te,we,Be,pe,Fe){return I=Be.ref,j={$$typeof:V,type:j,key:G,props:Be,_owner:we},(I!==void 0?I:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:x}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Fe}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function A(j,G,I,te,we,Be,pe,Fe){var De=G.children;if(De!==void 0)if(te)if(Ee(De)){for(te=0;te<De.length;te++)m(De[te]);Object.freeze&&Object.freeze(De)}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 m(De);if(re.call(G,"key")){De=l(j);var Ze=Object.keys(G).filter(function(sn){return sn!=="key"});te=0<Ze.length?"{key: someKey, "+Ze.join(": ..., ")+": ...}":"{key: someKey}",Te[De+te]||(Ze=0<Ze.length?"{"+Ze.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
280
- let props = %s;
281
- <%s {...props} />
282
- React keys must be passed directly to JSX without using spread:
283
- let props = %s;
284
- <%s key={someKey} {...props} />`,te,De,Ze,De),Te[De+te]=!0)}if(De=null,I!==void 0&&(i(I),De=""+I),N(G)&&(i(G.key),De=""+G.key),"key"in G){I={};for(var ct in G)ct!=="key"&&(I[ct]=G[ct])}else I=G;return De&&E(I,typeof j=="function"?j.displayName||j.name||"Unknown":j),C(j,De,Be,we,h(),I,pe,Fe)}function m(j){typeof j=="object"&&j!==null&&j.$$typeof===V&&j._store&&(j._store.validated=1)}var y=Cc(),V=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),oe=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),ye=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),Se=Symbol.for("react.client.reference"),B=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=Object.prototype.hasOwnProperty,Ee=Array.isArray,Me=console.createTask?console.createTask:function(){return null};y={"react-stack-bottom-frame":function(j){return j()}};var Ve,H={},ue=y["react-stack-bottom-frame"].bind(y,v)(),X=Me(d(v)),Te={};vc.Fragment=O,vc.jsx=function(j,G,I,te,we){var Be=1e4>B.recentlyCreatedOwnerStacks++;return A(j,G,I,!1,te,we,Be?Error("react-stack-top-frame"):ue,Be?Me(d(j)):X)},vc.jsxs=function(j,G,I,te,we){var Be=1e4>B.recentlyCreatedOwnerStacks++;return A(j,G,I,!0,te,we,Be?Error("react-stack-top-frame"):ue,Be?Me(d(j)):X)}}(),vc}var jN;function cT(){return jN||(jN=1,gh.exports=iT()),gh.exports}var wt=cT(),m1=Q.createContext(void 0),Hd=l=>{const a=Q.useContext(m1);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},TN=({client:l,children:a})=>(Q.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),wt.jsx(m1.Provider,{value:l,children:a})),p1=Q.createContext(!1),uT=()=>Q.useContext(p1);p1.Provider;function dT(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var fT=Q.createContext(dT()),mT=()=>Q.useContext(fT),pT=(l,a)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(a.isReset()||(l.retryOnMount=!1))},hT=l=>{Q.useEffect(()=>{l.clearReset()},[l])},bT=({result:l,errorResetBoundary:a,throwOnError:i,query:d,suspense:h})=>l.isError&&!a.isReset()&&!l.isFetching&&d&&(h&&l.data===void 0||o1(i,[l.error,d])),vT=l=>{if(l.suspense){const a=d=>d==="static"?d:Math.max(d??1e3,1e3),i=l.staleTime;l.staleTime=typeof i=="function"?(...d)=>a(i(...d)):a(i),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},gT=(l,a)=>l.isLoading&&l.isFetching&&!a,yT=(l,a)=>(l==null?void 0:l.suspense)&&a.isPending,DN=(l,a,i)=>a.fetchOptimistic(l).catch(()=>{i.clearReset()});function xT(l,a,i){var m,y,V,q,O;if(typeof l!="object"||Array.isArray(l))throw new 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');const d=uT(),h=mT(),v=Hd(),N=v.defaultQueryOptions(l);(y=(m=v.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||y.call(m,N),N.queryFn||console.error(`[${N.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`),N._optimisticResults=d?"isRestoring":"optimistic",vT(N),pT(N,h),hT(h);const E=!v.getQueryCache().get(N.queryHash),[x]=Q.useState(()=>new a(v,N)),C=x.getOptimisticResult(N),A=!d&&l.subscribed!==!1;if(Q.useSyncExternalStore(Q.useCallback(U=>{const $=A?x.subscribe(Lt.batchCalls(U)):bn;return x.updateResult(),$},[x,A]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),Q.useEffect(()=>{x.setOptions(N)},[N,x]),yT(N,C))throw DN(N,x,h);if(bT({result:C,errorResetBoundary:h,throwOnError:N.throwOnError,query:v.getQueryCache().get(N.queryHash),suspense:N.suspense}))throw C.error;if((q=(V=v.getDefaultOptions().queries)==null?void 0:V._experimental_afterQuery)==null||q.call(V,N,C),N.experimental_prefetchInRender&&!wa&&gT(C,d)){const U=E?DN(N,x,h):(O=v.getQueryCache().get(N.queryHash))==null?void 0:O.promise;U==null||U.catch(bn).finally(()=>{x.updateResult()})}return N.notifyOnChangeProps?C:x.trackResult(C)}function So(l,a){return xT(l,rT)}function h1(l,a){const i=Hd(),[d]=Q.useState(()=>new lT(i,l));Q.useEffect(()=>{d.setOptions(l)},[d,l]);const h=Q.useSyncExternalStore(Q.useCallback(N=>d.subscribe(Lt.batchCalls(N)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),v=Q.useCallback((N,E)=>{d.mutate(N,E).catch(bn)},[d]);if(h.error&&o1(d.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:v,mutateAsync:h.mutate}}function b1(l){var a,i,d="";if(typeof l=="string"||typeof l=="number")d+=l;else if(typeof l=="object")if(Array.isArray(l)){var h=l.length;for(a=0;a<h;a++)l[a]&&(i=b1(l[a]))&&(d&&(d+=" "),d+=i)}else for(i in l)l[i]&&(d&&(d+=" "),d+=i);return d}function v1(){for(var l,a,i=0,d="",h=arguments.length;i<h;i++)(l=arguments[i])&&(a=b1(l))&&(d&&(d+=" "),d+=a);return d}const Xh="-",NT=l=>{const a=wT(l),{conflictingClassGroups:i,conflictingClassGroupModifiers:d}=l;return{getClassGroupId:N=>{const E=N.split(Xh);return E[0]===""&&E.length!==1&&E.shift(),g1(E,a)||ST(N)},getConflictingClassGroupIds:(N,E)=>{const x=i[N]||[];return E&&d[N]?[...x,...d[N]]:x}}},g1=(l,a)=>{var N;if(l.length===0)return a.classGroupId;const i=l[0],d=a.nextPart.get(i),h=d?g1(l.slice(1),d):void 0;if(h)return h;if(a.validators.length===0)return;const v=l.join(Xh);return(N=a.validators.find(({validator:E})=>E(v)))==null?void 0:N.classGroupId},CN=/^\[(.+)\]$/,ST=l=>{if(CN.test(l)){const a=CN.exec(l)[1],i=a==null?void 0:a.substring(0,a.indexOf(":"));if(i)return"arbitrary.."+i}},wT=l=>{const{theme:a,classGroups:i}=l,d={nextPart:new Map,validators:[]};for(const h in i)kh(i[h],d,h,a);return d},kh=(l,a,i,d)=>{l.forEach(h=>{if(typeof h=="string"){const v=h===""?a:RN(a,h);v.classGroupId=i;return}if(typeof h=="function"){if(ET(h)){kh(h(d),a,i,d);return}a.validators.push({validator:h,classGroupId:i});return}Object.entries(h).forEach(([v,N])=>{kh(N,RN(a,v),i,d)})})},RN=(l,a)=>{let i=l;return a.split(Xh).forEach(d=>{i.nextPart.has(d)||i.nextPart.set(d,{nextPart:new Map,validators:[]}),i=i.nextPart.get(d)}),i},ET=l=>l.isThemeGetter,jT=l=>{if(l<1)return{get:()=>{},set:()=>{}};let a=0,i=new Map,d=new Map;const h=(v,N)=>{i.set(v,N),a++,a>l&&(a=0,d=i,i=new Map)};return{get(v){let N=i.get(v);if(N!==void 0)return N;if((N=d.get(v))!==void 0)return h(v,N),N},set(v,N){i.has(v)?i.set(v,N):h(v,N)}}},Ph="!",_h=":",TT=_h.length,DT=l=>{const{prefix:a,experimentalParseClassName:i}=l;let d=h=>{const v=[];let N=0,E=0,x=0,C;for(let q=0;q<h.length;q++){let O=h[q];if(N===0&&E===0){if(O===_h){v.push(h.slice(x,q)),x=q+TT;continue}if(O==="/"){C=q;continue}}O==="["?N++:O==="]"?N--:O==="("?E++:O===")"&&E--}const A=v.length===0?h:h.substring(x),m=CT(A),y=m!==A,V=C&&C>x?C-x:void 0;return{modifiers:v,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:V}};if(a){const h=a+_h,v=d;d=N=>N.startsWith(h)?v(N.substring(h.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:N,maybePostfixModifierPosition:void 0}}if(i){const h=d;d=v=>i({className:v,parseClassName:h})}return d},CT=l=>l.endsWith(Ph)?l.substring(0,l.length-1):l.startsWith(Ph)?l.substring(1):l,RT=l=>{const a=Object.fromEntries(l.orderSensitiveModifiers.map(d=>[d,!0]));return d=>{if(d.length<=1)return d;const h=[];let v=[];return d.forEach(N=>{N[0]==="["||a[N]?(h.push(...v.sort(),N),v=[]):v.push(N)}),h.push(...v.sort()),h}},UT=l=>({cache:jT(l.cacheSize),parseClassName:DT(l),sortModifiers:RT(l),...NT(l)}),AT=/\s+/,OT=(l,a)=>{const{parseClassName:i,getClassGroupId:d,getConflictingClassGroupIds:h,sortModifiers:v}=a,N=[],E=l.trim().split(AT);let x="";for(let C=E.length-1;C>=0;C-=1){const A=E[C],{isExternal:m,modifiers:y,hasImportantModifier:V,baseClassName:q,maybePostfixModifierPosition:O}=i(A);if(m){x=A+(x.length>0?" "+x:x);continue}let U=!!O,$=d(U?q.substring(0,O):q);if(!$){if(!U){x=A+(x.length>0?" "+x:x);continue}if($=d(q),!$){x=A+(x.length>0?" "+x:x);continue}U=!1}const oe=v(y).join(":"),ee=V?oe+Ph:oe,ie=ee+$;if(N.includes(ie))continue;N.push(ie);const ae=h($,U);for(let ge=0;ge<ae.length;++ge){const ye=ae[ge];N.push(ee+ye)}x=A+(x.length>0?" "+x:x)}return x};function MT(){let l=0,a,i,d="";for(;l<arguments.length;)(a=arguments[l++])&&(i=y1(a))&&(d&&(d+=" "),d+=i);return d}const y1=l=>{if(typeof l=="string")return l;let a,i="";for(let d=0;d<l.length;d++)l[d]&&(a=y1(l[d]))&&(i&&(i+=" "),i+=a);return i};function VT(l,...a){let i,d,h,v=N;function N(x){const C=a.reduce((A,m)=>m(A),l());return i=UT(C),d=i.cache.get,h=i.cache.set,v=E,E(x)}function E(x){const C=d(x);if(C)return C;const A=OT(x,i);return h(x,A),A}return function(){return v(MT.apply(null,arguments))}}const Bt=l=>{const a=i=>i[l]||[];return a.isThemeGetter=!0,a},x1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zT=/^\d+\/\d+$/,kT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PT=/\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$/,_T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,HT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tl=l=>zT.test(l),Ge=l=>!!l&&!Number.isNaN(Number(l)),ao=l=>!!l&&Number.isInteger(Number(l)),yh=l=>l.endsWith("%")&&Ge(l.slice(0,-1)),xr=l=>kT.test(l),LT=()=>!0,qT=l=>PT.test(l)&&!_T.test(l),S1=()=>!1,YT=l=>HT.test(l),GT=l=>BT.test(l),$T=l=>!he(l)&&!be(l),QT=l=>Yl(l,j1,S1),he=l=>x1.test(l),ia=l=>Yl(l,T1,qT),xh=l=>Yl(l,KT,Ge),UN=l=>Yl(l,w1,S1),XT=l=>Yl(l,E1,GT),Td=l=>Yl(l,D1,YT),be=l=>N1.test(l),gc=l=>Gl(l,T1),IT=l=>Gl(l,JT),AN=l=>Gl(l,w1),FT=l=>Gl(l,j1),ZT=l=>Gl(l,E1),Dd=l=>Gl(l,D1,!0),Yl=(l,a,i)=>{const d=x1.exec(l);return d?d[1]?a(d[1]):i(d[2]):!1},Gl=(l,a,i=!1)=>{const d=N1.exec(l);return d?d[1]?a(d[1]):i:!1},w1=l=>l==="position"||l==="percentage",E1=l=>l==="image"||l==="url",j1=l=>l==="length"||l==="size"||l==="bg-size",T1=l=>l==="length",KT=l=>l==="number",JT=l=>l==="family-name",D1=l=>l==="shadow",WT=()=>{const l=Bt("color"),a=Bt("font"),i=Bt("text"),d=Bt("font-weight"),h=Bt("tracking"),v=Bt("leading"),N=Bt("breakpoint"),E=Bt("container"),x=Bt("spacing"),C=Bt("radius"),A=Bt("shadow"),m=Bt("inset-shadow"),y=Bt("text-shadow"),V=Bt("drop-shadow"),q=Bt("blur"),O=Bt("perspective"),U=Bt("aspect"),$=Bt("ease"),oe=Bt("animate"),ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ae=()=>[...ie(),be,he],ge=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto","contain","none"],F=()=>[be,he,x],Z=()=>[Tl,"full","auto",...F()],Se=()=>[ao,"none","subgrid",be,he],B=()=>["auto",{span:["full",ao,be,he]},ao,be,he],re=()=>[ao,"auto",be,he],Ee=()=>["auto","min","max","fr",be,he],Me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ve=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...F()],ue=()=>[Tl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],X=()=>[l,be,he],Te=()=>[...ie(),AN,UN,{position:[be,he]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",FT,QT,{size:[be,he]}],I=()=>[yh,gc,ia],te=()=>["","none","full",C,be,he],we=()=>["",Ge,gc,ia],Be=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Fe=()=>[Ge,yh,AN,UN],De=()=>["","none",q,be,he],Ze=()=>["none",Ge,be,he],ct=()=>["none",Ge,be,he],sn=()=>[Ge,be,he],An=()=>[Tl,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xr],breakpoint:[xr],color:[LT],container:[xr],"drop-shadow":[xr],ease:["in","out","in-out"],font:[$T],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xr],shadow:[xr],spacing:["px",Ge],text:[xr],"text-shadow":[xr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tl,he,be,U]}],container:["container"],columns:[{columns:[Ge,he,be,E]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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:ae()}],overflow:[{overflow:ge()}],"overflow-x":[{"overflow-x":ge()}],"overflow-y":[{"overflow-y":ge()}],overscroll:[{overscroll:ye()}],"overscroll-x":[{"overscroll-x":ye()}],"overscroll-y":[{"overscroll-y":ye()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[ao,"auto",be,he]}],basis:[{basis:[Tl,"full","auto",E,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,Tl,"auto","initial","none",he]}],grow:[{grow:["",Ge,be,he]}],shrink:[{shrink:["",Ge,be,he]}],order:[{order:[ao,"first","last","none",be,he]}],"grid-cols":[{"grid-cols":Se()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":Se()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ee()}],"auto-rows":[{"auto-rows":Ee()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...Me(),"normal"]}],"justify-items":[{"justify-items":[...Ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ve()]}],"align-content":[{content:["normal",...Me()]}],"align-items":[{items:[...Ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":Me()}],"place-items":[{"place-items":[...Ve(),"baseline"]}],"place-self":[{"place-self":["auto",...Ve()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:ue()}],w:[{w:[E,"screen",...ue()]}],"min-w":[{"min-w":[E,"screen","none",...ue()]}],"max-w":[{"max-w":[E,"screen","none","prose",{screen:[N]},...ue()]}],h:[{h:["screen","lh",...ue()]}],"min-h":[{"min-h":["screen","lh","none",...ue()]}],"max-h":[{"max-h":["screen","lh",...ue()]}],"font-size":[{text:["base",i,gc,ia]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,be,xh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yh,he]}],"font-family":[{font:[IT,he,a]}],"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:[h,be,he]}],"line-clamp":[{"line-clamp":[Ge,"none",be,xh]}],leading:[{leading:[v,...F()]}],"list-image":[{"list-image":["none",be,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",be,ia]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[Ge,"auto",be,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,he]}],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",be,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Te()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ao,be,he],radial:["",be,he],conic:[ao,be,he]},ZT,XT]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,be,he]}],"outline-w":[{outline:["",Ge,gc,ia]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",A,Dd,Td]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",m,Dd,Td]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[Ge,ia]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",y,Dd,Td]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[Ge,be,he]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":Fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Fe()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":Fe()}],"mask-image-t-to-pos":[{"mask-t-to":Fe()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":Fe()}],"mask-image-r-to-pos":[{"mask-r-to":Fe()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":Fe()}],"mask-image-b-to-pos":[{"mask-b-to":Fe()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":Fe()}],"mask-image-l-to-pos":[{"mask-l-to":Fe()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":Fe()}],"mask-image-x-to-pos":[{"mask-x-to":Fe()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":Fe()}],"mask-image-y-to-pos":[{"mask-y-to":Fe()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[be,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":Fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Fe()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"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":ie()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":Fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Fe()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Te()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,he]}],filter:[{filter:["","none",be,he]}],blur:[{blur:De()}],brightness:[{brightness:[Ge,be,he]}],contrast:[{contrast:[Ge,be,he]}],"drop-shadow":[{"drop-shadow":["","none",V,Dd,Td]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",Ge,be,he]}],"hue-rotate":[{"hue-rotate":[Ge,be,he]}],invert:[{invert:["",Ge,be,he]}],saturate:[{saturate:[Ge,be,he]}],sepia:[{sepia:["",Ge,be,he]}],"backdrop-filter":[{"backdrop-filter":["","none",be,he]}],"backdrop-blur":[{"backdrop-blur":De()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,be,he]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,be,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,be,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,be,he]}],"backdrop-invert":[{"backdrop-invert":["",Ge,be,he]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,be,he]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,be,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,be,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",be,he]}],ease:[{ease:["linear","initial",$,be,he]}],delay:[{delay:[Ge,be,he]}],animate:[{animate:["none",oe,be,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,be,he]}],"perspective-origin":[{"perspective-origin":ae()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:ct()}],"scale-x":[{"scale-x":ct()}],"scale-y":[{"scale-y":ct()}],"scale-z":[{"scale-z":ct()}],"scale-3d":["scale-3d"],skew:[{skew:sn()}],"skew-x":[{"skew-x":sn()}],"skew-y":[{"skew-y":sn()}],transform:[{transform:[be,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:ae()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:An()}],"translate-x":[{"translate-x":An()}],"translate-y":[{"translate-y":An()}],"translate-z":[{"translate-z":An()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"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",be,he]}],"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":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",be,he]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[Ge,gc,ia,xh]}],stroke:[{stroke:["none",...X()]}],"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"]}},eD=VT(WT);function Un(...l){return eD(v1(l))}function ft({className:l,...a}){return u.jsxDEV("div",{"data-slot":"card",className:Un("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:7,columnNumber:5},this)}function Nt({className:l,...a}){return u.jsxDEV("div",{"data-slot":"card-header",className:Un("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:20,columnNumber:5},this)}function St({className:l,...a}){return u.jsxDEV("div",{"data-slot":"card-title",className:Un("leading-none font-semibold",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:33,columnNumber:5},this)}function bt({className:l,...a}){return u.jsxDEV("div",{"data-slot":"card-content",className:Un("px-6",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:66,columnNumber:5},this)}function ON(l,a){if(typeof l=="function")return l(a);l!=null&&(l.current=a)}function C1(...l){return a=>{let i=!1;const d=l.map(h=>{const v=ON(h,a);return!i&&typeof v=="function"&&(i=!0),v});if(i)return()=>{for(let h=0;h<d.length;h++){const v=d[h];typeof v=="function"?v():ON(l[h],null)}}}}function Vd(...l){return Q.useCallback(C1(...l),l)}function zd(l){const a=tD(l),i=Q.forwardRef((d,h)=>{const{children:v,...N}=d,E=Q.Children.toArray(v),x=E.find(sD);if(x){const C=x.props.children,A=E.map(m=>m===x?Q.Children.count(C)>1?Q.Children.only(null):Q.isValidElement(C)?C.props.children:null:m);return wt.jsx(a,{...N,ref:h,children:Q.isValidElement(C)?Q.cloneElement(C,void 0,A):null})}return wt.jsx(a,{...N,ref:h,children:v})});return i.displayName=`${l}.Slot`,i}var R1=zd("Slot");function tD(l){const a=Q.forwardRef((i,d)=>{const{children:h,...v}=i;if(Q.isValidElement(h)){const N=oD(h),E=rD(v,h.props);return h.type!==Q.Fragment&&(E.ref=d?C1(d,N):N),Q.cloneElement(h,E)}return Q.Children.count(h)>1?Q.Children.only(null):null});return a.displayName=`${l}.SlotClone`,a}var nD=Symbol("radix.slottable");function sD(l){return Q.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===nD}function rD(l,a){const i={...a};for(const d in a){const h=l[d],v=a[d];/^on[A-Z]/.test(d)?h&&v?i[d]=(...E)=>{const x=v(...E);return h(...E),x}:h&&(i[d]=h):d==="style"?i[d]={...h,...v}:d==="className"&&(i[d]=[h,v].filter(Boolean).join(" "))}return{...l,...i}}function oD(l){var d,h;let a=(d=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:d.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?l.ref:(a=(h=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:h.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}const MN=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,VN=v1,Ih=(l,a)=>i=>{var d;if((a==null?void 0:a.variants)==null)return VN(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:h,defaultVariants:v}=a,N=Object.keys(h).map(C=>{const A=i==null?void 0:i[C],m=v==null?void 0:v[C];if(A===null)return null;const y=MN(A)||MN(m);return h[C][y]}),E=i&&Object.entries(i).reduce((C,A)=>{let[m,y]=A;return y===void 0||(C[m]=y),C},{}),x=a==null||(d=a.compoundVariants)===null||d===void 0?void 0:d.reduce((C,A)=>{let{class:m,className:y,...V}=A;return Object.entries(V).every(q=>{let[O,U]=q;return Array.isArray(U)?U.includes({...v,...E}[O]):{...v,...E}[O]===U})?[...C,m,y]:C},[]);return VN(l,N,x,i==null?void 0:i.class,i==null?void 0:i.className)},aD=Ih("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 shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs 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 shadow-xs 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"}},defaultVariants:{variant:"default",size:"default"}});function Pe({className:l,variant:a,size:i,asChild:d=!1,...h}){const v=d?R1:"button";return u.jsxDEV(v,{"data-slot":"button",className:Un(aD({variant:a,size:i,className:l})),...h},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/button.tsx",lineNumber:51,columnNumber:5},this)}const lD=Ih("inline-flex items-center justify-center rounded-md 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 Ll({className:l,variant:a,asChild:i=!1,...d}){const h=i?R1:"span";return u.jsxDEV(h,{"data-slot":"badge",className:Un(lD({variant:a}),l),...d},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}/**
285
- * @license lucide-react v0.513.0 - ISC
286
- *
287
- * This source code is licensed under the ISC license.
288
- * See the LICENSE file in the root directory of this source tree.
289
- */const iD=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cD=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,d)=>d?d.toUpperCase():i.toLowerCase()),zN=l=>{const a=cD(l);return a.charAt(0).toUpperCase()+a.slice(1)},U1=(...l)=>l.filter((a,i,d)=>!!a&&a.trim()!==""&&d.indexOf(a)===i).join(" ").trim(),uD=l=>{for(const a in l)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
290
- * @license lucide-react v0.513.0 - ISC
291
- *
292
- * This source code is licensed under the ISC license.
293
- * See the LICENSE file in the root directory of this source tree.
294
- */var dD={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"};/**
295
- * @license lucide-react v0.513.0 - ISC
296
- *
297
- * This source code is licensed under the ISC license.
298
- * See the LICENSE file in the root directory of this source tree.
299
- */const fD=Q.forwardRef(({color:l="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:h="",children:v,iconNode:N,...E},x)=>Q.createElement("svg",{ref:x,...dD,width:a,height:a,stroke:l,strokeWidth:d?Number(i)*24/Number(a):i,className:U1("lucide",h),...!v&&!uD(E)&&{"aria-hidden":"true"},...E},[...N.map(([C,A])=>Q.createElement(C,A)),...Array.isArray(v)?v:[v]]));/**
300
- * @license lucide-react v0.513.0 - ISC
301
- *
302
- * This source code is licensed under the ISC license.
303
- * See the LICENSE file in the root directory of this source tree.
304
- */const it=(l,a)=>{const i=Q.forwardRef(({className:d,...h},v)=>Q.createElement(fD,{ref:v,iconNode:a,className:U1(`lucide-${iD(zN(l))}`,`lucide-${l}`,d),...h}));return i.displayName=zN(l),i};/**
305
- * @license lucide-react v0.513.0 - ISC
306
- *
307
- * This source code is licensed under the ISC license.
308
- * See the LICENSE file in the root directory of this source tree.
309
- */const mD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],yc=it("arrow-right",mD);/**
310
- * @license lucide-react v0.513.0 - ISC
311
- *
312
- * This source code is licensed under the ISC license.
313
- * See the LICENSE file in the root directory of this source tree.
314
- */const pD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],A1=it("chevron-down",pD);/**
315
- * @license lucide-react v0.513.0 - ISC
316
- *
317
- * This source code is licensed under the ISC license.
318
- * See the LICENSE file in the root directory of this source tree.
319
- */const hD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],O1=it("chevron-right",hD);/**
320
- * @license lucide-react v0.513.0 - ISC
321
- *
322
- * This source code is licensed under the ISC license.
323
- * See the LICENSE file in the root directory of this source tree.
324
- */const bD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Hh=it("circle-alert",bD);/**
325
- * @license lucide-react v0.513.0 - ISC
326
- *
327
- * This source code is licensed under the ISC license.
328
- * See the LICENSE file in the root directory of this source tree.
329
- */const vD=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],No=it("circle-check-big",vD);/**
330
- * @license lucide-react v0.513.0 - ISC
331
- *
332
- * This source code is licensed under the ISC license.
333
- * See the LICENSE file in the root directory of this source tree.
334
- */const gD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],yD=it("circle-help",gD);/**
335
- * @license lucide-react v0.513.0 - ISC
336
- *
337
- * This source code is licensed under the ISC license.
338
- * See the LICENSE file in the root directory of this source tree.
339
- */const xD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ND=it("circle",xD);/**
340
- * @license lucide-react v0.513.0 - ISC
341
- *
342
- * This source code is licensed under the ISC license.
343
- * See the LICENSE file in the root directory of this source tree.
344
- */const SD=[["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"}]],kd=it("copy",SD);/**
345
- * @license lucide-react v0.513.0 - ISC
346
- *
347
- * This source code is licensed under the ISC license.
348
- * See the LICENSE file in the root directory of this source tree.
349
- */const wD=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ED=it("download",wD);/**
350
- * @license lucide-react v0.513.0 - ISC
351
- *
352
- * This source code is licensed under the ISC license.
353
- * See the LICENSE file in the root directory of this source tree.
354
- */const jD=[["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"}]],TD=it("external-link",jD);/**
355
- * @license lucide-react v0.513.0 - ISC
356
- *
357
- * This source code is licensed under the ISC license.
358
- * See the LICENSE file in the root directory of this source tree.
359
- */const DD=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],kN=it("eye",DD);/**
360
- * @license lucide-react v0.513.0 - ISC
361
- *
362
- * This source code is licensed under the ISC license.
363
- * See the LICENSE file in the root directory of this source tree.
364
- */const CD=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],M1=it("file-text",CD);/**
365
- * @license lucide-react v0.513.0 - ISC
366
- *
367
- * This source code is licensed under the ISC license.
368
- * See the LICENSE file in the root directory of this source tree.
369
- */const RD=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Dl=it("file",RD);/**
370
- * @license lucide-react v0.513.0 - ISC
371
- *
372
- * This source code is licensed under the ISC license.
373
- * See the LICENSE file in the root directory of this source tree.
374
- */const UD=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],V1=it("folder-open",UD);/**
375
- * @license lucide-react v0.513.0 - ISC
376
- *
377
- * This source code is licensed under the ISC license.
378
- * See the LICENSE file in the root directory of this source tree.
379
- */const AD=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],OD=it("folder",AD);/**
380
- * @license lucide-react v0.513.0 - ISC
381
- *
382
- * This source code is licensed under the ISC license.
383
- * See the LICENSE file in the root directory of this source tree.
384
- */const MD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],VD=it("info",MD);/**
385
- * @license lucide-react v0.513.0 - ISC
386
- *
387
- * This source code is licensed under the ISC license.
388
- * See the LICENSE file in the root directory of this source tree.
389
- */const zD=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Bh=it("loader-circle",zD);/**
390
- * @license lucide-react v0.513.0 - ISC
391
- *
392
- * This source code is licensed under the ISC license.
393
- * See the LICENSE file in the root directory of this source tree.
394
- */const kD=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],z1=it("play",kD);/**
395
- * @license lucide-react v0.513.0 - ISC
396
- *
397
- * This source code is licensed under the ISC license.
398
- * See the LICENSE file in the root directory of this source tree.
399
- */const PD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],PN=it("plus",PD);/**
400
- * @license lucide-react v0.513.0 - ISC
401
- *
402
- * This source code is licensed under the ISC license.
403
- * See the LICENSE file in the root directory of this source tree.
404
- */const _D=[["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"}]],k1=it("refresh-cw",_D);/**
405
- * @license lucide-react v0.513.0 - ISC
406
- *
407
- * This source code is licensed under the ISC license.
408
- * See the LICENSE file in the root directory of this source tree.
409
- */const HD=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],P1=it("save",HD);/**
410
- * @license lucide-react v0.513.0 - ISC
411
- *
412
- * This source code is licensed under the ISC license.
413
- * See the LICENSE file in the root directory of this source tree.
414
- */const BD=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],yo=it("settings",BD);/**
415
- * @license lucide-react v0.513.0 - ISC
416
- *
417
- * This source code is licensed under the ISC license.
418
- * See the LICENSE file in the root directory of this source tree.
419
- */const LD=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],wc=it("sparkles",LD);/**
420
- * @license lucide-react v0.513.0 - ISC
421
- *
422
- * This source code is licensed under the ISC license.
423
- * See the LICENSE file in the root directory of this source tree.
424
- */const qD=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Lh=it("terminal",qD);/**
425
- * @license lucide-react v0.513.0 - ISC
426
- *
427
- * This source code is licensed under the ISC license.
428
- * See the LICENSE file in the root directory of this source tree.
429
- */const YD=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],_N=it("trash-2",YD);/**
430
- * @license lucide-react v0.513.0 - ISC
431
- *
432
- * This source code is licensed under the ISC license.
433
- * See the LICENSE file in the root directory of this source tree.
434
- */const GD=[["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"}]],Pd=it("triangle-alert",GD);/**
435
- * @license lucide-react v0.513.0 - ISC
436
- *
437
- * This source code is licensed under the ISC license.
438
- * See the LICENSE file in the root directory of this source tree.
439
- */const $D=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],QD=it("upload",$D);/**
440
- * @license lucide-react v0.513.0 - ISC
441
- *
442
- * This source code is licensed under the ISC license.
443
- * See the LICENSE file in the root directory of this source tree.
444
- */const XD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ID=it("x",XD);var FD=n1();const ZD=e1(FD);function KD(l){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",a.appendChild(i),i.styleSheet?i.styleSheet.cssText=l:i.appendChild(document.createTextNode(l))}const JD=l=>{switch(l){case"success":return tC;case"info":return sC;case"warning":return nC;case"error":return rC;default:return null}},WD=Array(12).fill(0),eC=({visible:l,className:a})=>W.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":l},W.createElement("div",{className:"sonner-spinner"},WD.map((i,d)=>W.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${d}`})))),tC=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.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"})),nC=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},W.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"})),sC=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.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"})),rC=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.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"})),oC=W.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"},W.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),W.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),aC=()=>{const[l,a]=W.useState(document.hidden);return W.useEffect(()=>{const i=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),l};let qh=1;class lC{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const i=this.subscribers.indexOf(a);this.subscribers.splice(i,1)}),this.publish=a=>{this.subscribers.forEach(i=>i(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var i;const{message:d,...h}=a,v=typeof(a==null?void 0:a.id)=="number"||((i=a.id)==null?void 0:i.length)>0?a.id:qh++,N=this.toasts.find(x=>x.id===v),E=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(v)&&this.dismissedToasts.delete(v),N?this.toasts=this.toasts.map(x=>x.id===v?(this.publish({...x,...a,id:v,title:d}),{...x,...a,id:v,dismissible:E,title:d}):x):this.addToast({title:d,...h,dismissible:E,id:v}),v},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:a,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(d=>d({id:i.id,dismiss:!0}))}),a),this.message=(a,i)=>this.create({...i,message:a}),this.error=(a,i)=>this.create({...i,message:a,type:"error"}),this.success=(a,i)=>this.create({...i,type:"success",message:a}),this.info=(a,i)=>this.create({...i,type:"info",message:a}),this.warning=(a,i)=>this.create({...i,type:"warning",message:a}),this.loading=(a,i)=>this.create({...i,type:"loading",message:a}),this.promise=(a,i)=>{if(!i)return;let d;i.loading!==void 0&&(d=this.create({...i,promise:a,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const h=Promise.resolve(a instanceof Function?a():a);let v=d!==void 0,N;const E=h.then(async C=>{if(N=["resolve",C],W.isValidElement(C))v=!1,this.create({id:d,type:"default",message:C});else if(cC(C)&&!C.ok){v=!1;const m=typeof i.error=="function"?await i.error(`HTTP error! status: ${C.status}`):i.error,y=typeof i.description=="function"?await i.description(`HTTP error! status: ${C.status}`):i.description,q=typeof m=="object"&&!W.isValidElement(m)?m:{message:m};this.create({id:d,type:"error",description:y,...q})}else if(C instanceof Error){v=!1;const m=typeof i.error=="function"?await i.error(C):i.error,y=typeof i.description=="function"?await i.description(C):i.description,q=typeof m=="object"&&!W.isValidElement(m)?m:{message:m};this.create({id:d,type:"error",description:y,...q})}else if(i.success!==void 0){v=!1;const m=typeof i.success=="function"?await i.success(C):i.success,y=typeof i.description=="function"?await i.description(C):i.description,q=typeof m=="object"&&!W.isValidElement(m)?m:{message:m};this.create({id:d,type:"success",description:y,...q})}}).catch(async C=>{if(N=["reject",C],i.error!==void 0){v=!1;const A=typeof i.error=="function"?await i.error(C):i.error,m=typeof i.description=="function"?await i.description(C):i.description,V=typeof A=="object"&&!W.isValidElement(A)?A:{message:A};this.create({id:d,type:"error",description:m,...V})}}).finally(()=>{v&&(this.dismiss(d),d=void 0),i.finally==null||i.finally.call(i)}),x=()=>new Promise((C,A)=>E.then(()=>N[0]==="reject"?A(N[1]):C(N[1])).catch(A));return typeof d!="string"&&typeof d!="number"?{unwrap:x}:Object.assign(d,{unwrap:x})},this.custom=(a,i)=>{const d=(i==null?void 0:i.id)||qh++;return this.create({jsx:a(d),id:d,...i}),d},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Rn=new lC,iC=(l,a)=>{const i=(a==null?void 0:a.id)||qh++;return Rn.addToast({title:l,...a,id:i}),i},cC=l=>l&&typeof l=="object"&&"ok"in l&&typeof l.ok=="boolean"&&"status"in l&&typeof l.status=="number",uC=iC,dC=()=>Rn.toasts,fC=()=>Rn.getActiveToasts(),kt=Object.assign(uC,{success:Rn.success,info:Rn.info,warning:Rn.warning,error:Rn.error,custom:Rn.custom,message:Rn.message,promise:Rn.promise,dismiss:Rn.dismiss,loading:Rn.loading},{getHistory:dC,getToasts:fC});KD("[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 Cd(l){return l.label!==void 0}const mC=3,pC="24px",hC="16px",HN=4e3,bC=356,vC=14,gC=45,yC=200;function Ys(...l){return l.filter(Boolean).join(" ")}function xC(l){const[a,i]=l.split("-"),d=[];return a&&d.push(a),i&&d.push(i),d}const NC=l=>{var a,i,d,h,v,N,E,x,C;const{invert:A,toast:m,unstyled:y,interacting:V,setHeights:q,visibleToasts:O,heights:U,index:$,toasts:oe,expanded:ee,removeToast:ie,defaultRichColors:ae,closeButton:ge,style:ye,cancelButtonStyle:F,actionButtonStyle:Z,className:Se="",descriptionClassName:B="",duration:re,position:Ee,gap:Me,expandByDefault:Ve,classNames:H,icons:ue,closeButtonAriaLabel:X="Close toast"}=l,[Te,j]=W.useState(null),[G,I]=W.useState(null),[te,we]=W.useState(!1),[Be,pe]=W.useState(!1),[Fe,De]=W.useState(!1),[Ze,ct]=W.useState(!1),[sn,An]=W.useState(!1),[ws,Tr]=W.useState(0),[wo,yt]=W.useState(0),rn=W.useRef(m.duration||re||HN),us=W.useRef(null),On=W.useRef(null),_e=$===0,Xs=$+1<=O,Ot=m.type,on=m.dismissible!==!1,ja=m.className||"",Eo=m.descriptionClassName||"",Is=W.useMemo(()=>U.findIndex(le=>le.toastId===m.id)||0,[U,m.id]),jo=W.useMemo(()=>{var le;return(le=m.closeButton)!=null?le:ge},[m.closeButton,ge]),Dr=W.useMemo(()=>m.duration||re||HN,[m.duration,re]),Fs=W.useRef(0),Mn=W.useRef(0),Cr=W.useRef(0),Vn=W.useRef(null),[Es,zn]=Ee.split("-"),vn=W.useMemo(()=>U.reduce((le,xe,Ke)=>Ke>=Is?le:le+xe.height,0),[U,Is]),ds=aC(),p=m.invert||A,R=Ot==="loading";Mn.current=W.useMemo(()=>Is*Me+vn,[Is,vn]),W.useEffect(()=>{rn.current=Dr},[Dr]),W.useEffect(()=>{we(!0)},[]),W.useEffect(()=>{const le=On.current;if(le){const xe=le.getBoundingClientRect().height;return yt(xe),q(Ke=>[{toastId:m.id,height:xe,position:m.position},...Ke]),()=>q(Ke=>Ke.filter(xt=>xt.toastId!==m.id))}},[q,m.id]),W.useLayoutEffect(()=>{if(!te)return;const le=On.current,xe=le.style.height;le.style.height="auto";const Ke=le.getBoundingClientRect().height;le.style.height=xe,yt(Ke),q(xt=>xt.find(Dt=>Dt.toastId===m.id)?xt.map(Dt=>Dt.toastId===m.id?{...Dt,height:Ke}:Dt):[{toastId:m.id,height:Ke,position:m.position},...xt])},[te,m.title,m.description,q,m.id,m.jsx,m.action,m.cancel]);const K=W.useCallback(()=>{pe(!0),Tr(Mn.current),q(le=>le.filter(xe=>xe.toastId!==m.id)),setTimeout(()=>{ie(m)},yC)},[m,ie,q,Mn]);W.useEffect(()=>{if(m.promise&&Ot==="loading"||m.duration===1/0||m.type==="loading")return;let le;return ee||V||ds?(()=>{if(Cr.current<Fs.current){const xt=new Date().getTime()-Fs.current;rn.current=rn.current-xt}Cr.current=new Date().getTime()})():(()=>{rn.current!==1/0&&(Fs.current=new Date().getTime(),le=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),K()},rn.current))})(),()=>clearTimeout(le)},[ee,V,m,Ot,ds,K]),W.useEffect(()=>{m.delete&&(K(),m.onDismiss==null||m.onDismiss.call(m,m))},[K,m.delete]);function se(){var le;if(ue!=null&&ue.loading){var xe;return W.createElement("div",{className:Ys(H==null?void 0:H.loader,m==null||(xe=m.classNames)==null?void 0:xe.loader,"sonner-loader"),"data-visible":Ot==="loading"},ue.loading)}return W.createElement(eC,{className:Ys(H==null?void 0:H.loader,m==null||(le=m.classNames)==null?void 0:le.loader),visible:Ot==="loading"})}const ve=m.icon||(ue==null?void 0:ue[Ot])||JD(Ot);var ze,Ue;return W.createElement("li",{tabIndex:0,ref:On,className:Ys(Se,ja,H==null?void 0:H.toast,m==null||(a=m.classNames)==null?void 0:a.toast,H==null?void 0:H.default,H==null?void 0:H[Ot],m==null||(i=m.classNames)==null?void 0:i[Ot]),"data-sonner-toast":"","data-rich-colors":(ze=m.richColors)!=null?ze:ae,"data-styled":!(m.jsx||m.unstyled||y),"data-mounted":te,"data-promise":!!m.promise,"data-swiped":sn,"data-removed":Be,"data-visible":Xs,"data-y-position":Es,"data-x-position":zn,"data-index":$,"data-front":_e,"data-swiping":Fe,"data-dismissible":on,"data-type":Ot,"data-invert":p,"data-swipe-out":Ze,"data-swipe-direction":G,"data-expanded":!!(ee||Ve&&te),style:{"--index":$,"--toasts-before":$,"--z-index":oe.length-$,"--offset":`${Be?ws:Mn.current}px`,"--initial-height":Ve?"auto":`${wo}px`,...ye,...m.style},onDragEnd:()=>{De(!1),j(null),Vn.current=null},onPointerDown:le=>{R||!on||(us.current=new Date,Tr(Mn.current),le.target.setPointerCapture(le.pointerId),le.target.tagName!=="BUTTON"&&(De(!0),Vn.current={x:le.clientX,y:le.clientY}))},onPointerUp:()=>{var le,xe,Ke;if(Ze||!on)return;Vn.current=null;const xt=Number(((le=On.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Rr=Number(((xe=On.current)==null?void 0:xe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dt=new Date().getTime()-((Ke=us.current)==null?void 0:Ke.getTime()),ht=Te==="x"?xt:Rr,Ur=Math.abs(ht)/Dt;if(Math.abs(ht)>=gC||Ur>.11){Tr(Mn.current),m.onDismiss==null||m.onDismiss.call(m,m),I(Te==="x"?xt>0?"right":"left":Rr>0?"down":"up"),K(),ct(!0);return}else{var gn,kn;(gn=On.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(kn=On.current)==null||kn.style.setProperty("--swipe-amount-y","0px")}An(!1),De(!1),j(null)},onPointerMove:le=>{var xe,Ke,xt;if(!Vn.current||!on||((xe=window.getSelection())==null?void 0:xe.toString().length)>0)return;const Dt=le.clientY-Vn.current.y,ht=le.clientX-Vn.current.x;var Ur;const gn=(Ur=l.swipeDirections)!=null?Ur:xC(Ee);!Te&&(Math.abs(ht)>1||Math.abs(Dt)>1)&&j(Math.abs(ht)>Math.abs(Dt)?"x":"y");let kn={x:0,y:0};const Ql=js=>1/(1.5+Math.abs(js)/20);if(Te==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&Dt<0||gn.includes("bottom")&&Dt>0)kn.y=Dt;else{const js=Dt*Ql(Dt);kn.y=Math.abs(js)<Math.abs(Dt)?js:Dt}}else if(Te==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&ht<0||gn.includes("right")&&ht>0)kn.x=ht;else{const js=ht*Ql(ht);kn.x=Math.abs(js)<Math.abs(ht)?js:ht}(Math.abs(kn.x)>0||Math.abs(kn.y)>0)&&An(!0),(Ke=On.current)==null||Ke.style.setProperty("--swipe-amount-x",`${kn.x}px`),(xt=On.current)==null||xt.style.setProperty("--swipe-amount-y",`${kn.y}px`)}},jo&&!m.jsx&&Ot!=="loading"?W.createElement("button",{"aria-label":X,"data-disabled":R,"data-close-button":!0,onClick:R||!on?()=>{}:()=>{K(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Ys(H==null?void 0:H.closeButton,m==null||(d=m.classNames)==null?void 0:d.closeButton)},(Ue=ue==null?void 0:ue.close)!=null?Ue:oC):null,(Ot||m.icon||m.promise)&&m.icon!==null&&((ue==null?void 0:ue[Ot])!==null||m.icon)?W.createElement("div",{"data-icon":"",className:Ys(H==null?void 0:H.icon,m==null||(h=m.classNames)==null?void 0:h.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||se():null,m.type!=="loading"?ve:null):null,W.createElement("div",{"data-content":"",className:Ys(H==null?void 0:H.content,m==null||(v=m.classNames)==null?void 0:v.content)},W.createElement("div",{"data-title":"",className:Ys(H==null?void 0:H.title,m==null||(N=m.classNames)==null?void 0:N.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?W.createElement("div",{"data-description":"",className:Ys(B,Eo,H==null?void 0:H.description,m==null||(E=m.classNames)==null?void 0:E.description)},typeof m.description=="function"?m.description():m.description):null),W.isValidElement(m.cancel)?m.cancel:m.cancel&&Cd(m.cancel)?W.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||F,onClick:le=>{Cd(m.cancel)&&on&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,le),K())},className:Ys(H==null?void 0:H.cancelButton,m==null||(x=m.classNames)==null?void 0:x.cancelButton)},m.cancel.label):null,W.isValidElement(m.action)?m.action:m.action&&Cd(m.action)?W.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||Z,onClick:le=>{Cd(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,le),!le.defaultPrevented&&K())},className:Ys(H==null?void 0:H.actionButton,m==null||(C=m.classNames)==null?void 0:C.actionButton)},m.action.label):null)};function BN(){if(typeof window>"u"||typeof document>"u")return"ltr";const l=document.documentElement.getAttribute("dir");return l==="auto"||!l?window.getComputedStyle(document.documentElement).direction:l}function SC(l,a){const i={};return[l,a].forEach((d,h)=>{const v=h===1,N=v?"--mobile-offset":"--offset",E=v?hC:pC;function x(C){["top","right","bottom","left"].forEach(A=>{i[`${N}-${A}`]=typeof C=="number"?`${C}px`:C})}typeof d=="number"||typeof d=="string"?x(d):typeof d=="object"?["top","right","bottom","left"].forEach(C=>{d[C]===void 0?i[`${N}-${C}`]=E:i[`${N}-${C}`]=typeof d[C]=="number"?`${d[C]}px`:d[C]}):x(E)}),i}const wC=W.forwardRef(function(a,i){const{invert:d,position:h="bottom-right",hotkey:v=["altKey","KeyT"],expand:N,closeButton:E,className:x,offset:C,mobileOffset:A,theme:m="light",richColors:y,duration:V,style:q,visibleToasts:O=mC,toastOptions:U,dir:$=BN(),gap:oe=vC,icons:ee,containerAriaLabel:ie="Notifications"}=a,[ae,ge]=W.useState([]),ye=W.useMemo(()=>Array.from(new Set([h].concat(ae.filter(G=>G.position).map(G=>G.position)))),[ae,h]),[F,Z]=W.useState([]),[Se,B]=W.useState(!1),[re,Ee]=W.useState(!1),[Me,Ve]=W.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=W.useRef(null),ue=v.join("+").replace(/Key/g,"").replace(/Digit/g,""),X=W.useRef(null),Te=W.useRef(!1),j=W.useCallback(G=>{ge(I=>{var te;return(te=I.find(we=>we.id===G.id))!=null&&te.delete||Rn.dismiss(G.id),I.filter(({id:we})=>we!==G.id)})},[]);return W.useEffect(()=>Rn.subscribe(G=>{if(G.dismiss){requestAnimationFrame(()=>{ge(I=>I.map(te=>te.id===G.id?{...te,delete:!0}:te))});return}setTimeout(()=>{ZD.flushSync(()=>{ge(I=>{const te=I.findIndex(we=>we.id===G.id);return te!==-1?[...I.slice(0,te),{...I[te],...G},...I.slice(te+1)]:[G,...I]})})})}),[ae]),W.useEffect(()=>{if(m!=="system"){Ve(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ve("dark"):Ve("light")),typeof window>"u")return;const G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:I})=>{Ve(I?"dark":"light")})}catch{G.addListener(({matches:te})=>{try{Ve(te?"dark":"light")}catch(we){console.error(we)}})}},[m]),W.useEffect(()=>{ae.length<=1&&B(!1)},[ae]),W.useEffect(()=>{const G=I=>{var te;if(v.every(pe=>I[pe]||I.code===pe)){var Be;B(!0),(Be=H.current)==null||Be.focus()}I.code==="Escape"&&(document.activeElement===H.current||(te=H.current)!=null&&te.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[v]),W.useEffect(()=>{if(H.current)return()=>{X.current&&(X.current.focus({preventScroll:!0}),X.current=null,Te.current=!1)}},[H.current]),W.createElement("section",{ref:i,"aria-label":`${ie} ${ue}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ye.map((G,I)=>{var te;const[we,Be]=G.split("-");return ae.length?W.createElement("ol",{key:G,dir:$==="auto"?BN():$,tabIndex:-1,ref:H,className:x,"data-sonner-toaster":!0,"data-sonner-theme":Me,"data-y-position":we,"data-x-position":Be,style:{"--front-toast-height":`${((te=F[0])==null?void 0:te.height)||0}px`,"--width":`${bC}px`,"--gap":`${oe}px`,...q,...SC(C,A)},onBlur:pe=>{Te.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(Te.current=!1,X.current&&(X.current.focus({preventScroll:!0}),X.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||Te.current||(Te.current=!0,X.current=pe.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{re||B(!1)},onDragEnd:()=>B(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||Ee(!0)},onPointerUp:()=>Ee(!1)},ae.filter(pe=>!pe.position&&I===0||pe.position===G).map((pe,Fe)=>{var De,Ze;return W.createElement(NC,{key:pe.id,icons:ee,index:Fe,toast:pe,defaultRichColors:y,duration:(De=U==null?void 0:U.duration)!=null?De:V,className:U==null?void 0:U.className,descriptionClassName:U==null?void 0:U.descriptionClassName,invert:d,visibleToasts:O,closeButton:(Ze=U==null?void 0:U.closeButton)!=null?Ze:E,interacting:re,position:G,style:U==null?void 0:U.style,unstyled:U==null?void 0:U.unstyled,classNames:U==null?void 0:U.classNames,cancelButtonStyle:U==null?void 0:U.cancelButtonStyle,actionButtonStyle:U==null?void 0:U.actionButtonStyle,closeButtonAriaLabel:U==null?void 0:U.closeButtonAriaLabel,removeToast:j,toasts:ae.filter(ct=>ct.position==pe.position),heights:F.filter(ct=>ct.position==pe.position),setHeights:Z,expandByDefault:N,gap:oe,expanded:Se,swipeDirections:a.swipeDirections})})):null}))}),EC=async()=>{const l=await fetch("http://localhost:3333/api/bundles");if(!l.ok)throw new Error("Failed to fetch bundles");return l.json()};function jC(){const{data:l,isLoading:a,refetch:i}=So({queryKey:["bundles"],queryFn:EC,refetchInterval:5e3}),[d,h]=Q.useState(new Set),[v,N]=Q.useState(new Set),[E,x]=Q.useState(new Set),[C,A]=Q.useState(new Set),m=O=>{const U=new Set(d);U.has(O)?U.delete(O):U.add(O),h(U)},y=(O,U)=>{N($=>{const oe=new Set($);return U==="loading"?oe.add(O):oe.delete(O),oe}),x($=>{const oe=new Set($);return U==="success"?(oe.add(O),setTimeout(()=>x(ee=>{const ie=new Set(ee);return ie.delete(O),ie}),2e3)):oe.delete(O),oe}),A($=>{const oe=new Set($);return U==="error"?(oe.add(O),setTimeout(()=>A(ee=>{const ie=new Set(ee);return ie.delete(O),ie}),3e3)):oe.delete(O),oe})},V=async O=>{const U=`copy-${O}`;y(U,"loading");try{const $=await fetch(`http://localhost:3333/api/bundles/${O}`);if(!$.ok)throw new Error("Failed to fetch bundle content");const oe=await $.text();await navigator.clipboard.writeText(oe),y(U,"success"),kt.success(`Bundle "${O}" copied to clipboard!`)}catch($){y(U,"error"),kt.error(`Failed to copy bundle: ${$ instanceof Error?$.message:"Unknown error"}`)}},q=async O=>{const U=`regen-${O}`;y(U,"loading");try{if(!(await fetch(`http://localhost:3333/api/regenerate/${O}`,{method:"POST"})).ok)throw new Error("Failed to regenerate bundle");await i(),y(U,"success"),kt.success(`Bundle "${O}" regenerated successfully!`)}catch($){y(U,"error"),kt.error(`Failed to regenerate bundle: ${$ instanceof Error?$.message:"Unknown error"}`)}};return a?u.jsxDEV("div",{children:"Loading bundles..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:127,columnNumber:25},this):l?u.jsxDEV("div",{className:"space-y-4",children:l.map(O=>{const U=`copy-${O.name}`,$=`regen-${O.name}`,oe=v.has(U),ee=v.has($),ie=E.has(U),ae=E.has($),ge=C.has(U),ye=C.has($);return u.jsxDEV(ft,{className:O.changed?"border-yellow-500":"",children:[u.jsxDEV(Nt,{children:u.jsxDEV("div",{className:"flex justify-between items-center",children:[u.jsxDEV(St,{className:"flex items-center gap-2",children:[O.name,u.jsxDEV(Ll,{variant:O.changed?"destructive":"secondary",children:O.changed?"CHANGED":"SYNCED"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:148,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:146,columnNumber:17},this),u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:()=>q(O.name),disabled:ee,className:`transition-all duration-200 ${ae?"border-green-500 bg-green-50 text-green-700":ye?"border-red-500 bg-red-50 text-red-700":ee?"opacity-75":""}`,children:[ee?u.jsxDEV(Bh,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:164,columnNumber:23},this):ae?u.jsxDEV(No,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:166,columnNumber:23},this):ye?u.jsxDEV(Hh,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:168,columnNumber:23},this):u.jsxDEV(k1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:170,columnNumber:23},this),"Regenerate"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:153,columnNumber:19},this),u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:()=>V(O.name),disabled:oe,className:`transition-all duration-200 ${ie?"border-green-500 bg-green-50 text-green-700":ge?"border-red-500 bg-red-50 text-red-700":oe?"opacity-75":""}`,children:[oe?u.jsxDEV(Bh,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:185,columnNumber:23},this):ie?u.jsxDEV(No,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:187,columnNumber:23},this):ge?u.jsxDEV(Hh,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:189,columnNumber:23},this):u.jsxDEV(kd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:191,columnNumber:23},this),"Copy XML"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:174,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:152,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:145,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:144,columnNumber:13},this),u.jsxDEV(bt,{children:[u.jsxDEV("div",{className:"text-sm text-muted-foreground mb-3",children:[O.fileCount," files • ",(O.size/1024).toFixed(1),"kb",O.lastGenerated&&` • Generated ${new Date(O.lastGenerated).toLocaleTimeString()}`]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:199,columnNumber:15},this),u.jsxDEV("div",{className:"space-y-2",children:[u.jsxDEV(Pe,{variant:"ghost",size:"sm",onClick:()=>m(O.name),className:"p-0 h-auto font-normal",children:[d.has(O.name)?u.jsxDEV(A1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:214,columnNumber:21},this):u.jsxDEV(O1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:216,columnNumber:21},this),"View Files (",O.files.length,")"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:207,columnNumber:17},this),d.has(O.name)&&u.jsxDEV("div",{className:"ml-5 space-y-1 max-h-40 overflow-y-auto",children:O.files.map(F=>u.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:F},F,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:224,columnNumber:23},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:222,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:206,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:198,columnNumber:13},this)]},O.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:143,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:131,columnNumber:5},this):u.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:128,columnNumber:24},this)}const TC=async()=>{const l=await fetch("http://localhost:3333/api/bundles");if(!l.ok)throw new Error("Failed to fetch bundles");return l.json()},LN=l=>{const a={name:"",path:"",type:"directory",children:[]},i=new Set,d=new Map;l.forEach(v=>{v.files.forEach(N=>{i.add(N),d.has(N)||d.set(N,[]),d.get(N).push(v.name)})}),i.forEach(v=>{const N=v.split("/");let E=a;N.forEach((x,C)=>{const A=C===N.length-1,m=N.slice(0,C+1).join("/");E.children||(E.children=[]);let y=E.children.find(V=>V.name===x);y||(y={name:x,path:m,type:A?"file":"directory",children:A?void 0:[],bundles:A?d.get(v):void 0},E.children.push(y)),A||(E=y)})});const h=v=>{v.children&&(v.children.sort((N,E)=>N.type!==E.type?N.type==="directory"?-1:1:N.name.localeCompare(E.name)),v.children.forEach(h))};return h(a),a},DC=l=>{if(l===0)return"0 B";const a=1024,i=["B","KB","MB","GB"],d=Math.floor(Math.log(l)/Math.log(a));return parseFloat((l/Math.pow(a,d)).toFixed(1))+" "+i[d]};function _1({node:l,level:a,expandedDirs:i,onToggleDir:d}){const h=i.has(l.path),v=a*16;if(l.type==="directory")return u.jsxDEV("div",{children:[u.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded cursor-pointer",style:{paddingLeft:`${v+8}px`},onClick:()=>d(l.path),children:[h?u.jsxDEV(A1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:119,columnNumber:13},this):u.jsxDEV(O1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:121,columnNumber:13},this),h?u.jsxDEV(V1,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:124,columnNumber:13},this):u.jsxDEV(OD,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:126,columnNumber:13},this),u.jsxDEV("span",{className:"text-sm font-medium",children:l.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:128,columnNumber:11},this),l.children&&u.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:[l.children.length," items"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:130,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:113,columnNumber:9},this),h&&l.children&&u.jsxDEV("div",{children:l.children.map(E=>u.jsxDEV(_1,{node:E,level:a+1,expandedDirs:i,onToggleDir:d},E.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:139,columnNumber:15},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:112,columnNumber:7},this);const N=E=>{var A;const x=(A=E.split(".").pop())==null?void 0:A.toLowerCase(),C="w-4 h-4";switch(x){case"js":case"ts":case"jsx":case"tsx":return u.jsxDEV(Dl,{className:`${C} text-yellow-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:163,columnNumber:16},this);case"json":return u.jsxDEV(Dl,{className:`${C} text-green-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:165,columnNumber:16},this);case"md":return u.jsxDEV(Dl,{className:`${C} text-blue-400`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:167,columnNumber:16},this);case"css":case"scss":return u.jsxDEV(Dl,{className:`${C} text-pink-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:170,columnNumber:16},this);case"html":return u.jsxDEV(Dl,{className:`${C} text-orange-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:172,columnNumber:16},this);default:return u.jsxDEV(Dl,{className:`${C} text-muted-foreground`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:174,columnNumber:16},this)}};return u.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded",style:{paddingLeft:`${v+24}px`},children:[N(l.name),u.jsxDEV("span",{className:"text-sm font-mono",children:l.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:184,columnNumber:7},this),l.bundles&&l.bundles.length>0&&u.jsxDEV("div",{className:"flex gap-1 ml-2",children:l.bundles.map(E=>u.jsxDEV(Ll,{variant:"outline",className:"text-xs px-1 py-0",children:E},E,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:189,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:187,columnNumber:9},this),l.size&&u.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:DC(l.size)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:201,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:179,columnNumber:5},this)}function CC(){const[l,a]=Q.useState(new Set([""])),{data:i,isLoading:d}=So({queryKey:["bundles"],queryFn:TC,refetchInterval:5e3}),h=C=>{const A=new Set(l);A.has(C)?A.delete(C):A.add(C),a(A)},v=()=>{if(!i)return;const C=LN(i),A=new Set,m=y=>{var V;y.type==="directory"&&(A.add(y.path),(V=y.children)==null||V.forEach(m))};m(C),a(A)},N=()=>{a(new Set([""]))};if(d)return u.jsxDEV("div",{children:"Loading file tree..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:250,columnNumber:25},this);if(!i)return u.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:251,columnNumber:24},this);const E=LN(i),x=i.reduce((C,A)=>C+A.files.length,0);return u.jsxDEV("div",{className:"space-y-4",children:[u.jsxDEV("div",{className:"flex items-center justify-between",children:[u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:v,children:"Expand All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:261,columnNumber:11},this),u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:N,children:"Collapse All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:264,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:260,columnNumber:9},this),u.jsxDEV("div",{className:"text-sm text-muted-foreground",children:[x," files tracked"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:259,columnNumber:7},this),u.jsxDEV(ft,{className:"p-4",children:u.jsxDEV("div",{className:"space-y-1 max-h-96 overflow-y-auto",children:E.children&&E.children.length>0?E.children.map(C=>u.jsxDEV(_1,{node:C,level:0,expandedDirs:l,onToggleDir:h},C.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:279,columnNumber:15},this)):u.jsxDEV("div",{className:"text-center text-muted-foreground py-8",children:"No files found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:288,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:276,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:275,columnNumber:7},this),u.jsxDEV(ft,{className:"p-4",children:[u.jsxDEV("h3",{className:"text-sm font-medium mb-2",children:"Bundle Legend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:297,columnNumber:9},this),u.jsxDEV("div",{className:"flex flex-wrap gap-2",children:i.map(C=>u.jsxDEV(Ll,{variant:"outline",children:[C.name," (",C.files.length,")"]},C.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:300,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:298,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:296,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:257,columnNumber:5},this)}function qN({className:l,type:a,...i}){return u.jsxDEV("input",{type:a,"data-slot":"input",className:Un("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",l),...i},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/input.tsx",lineNumber:7,columnNumber:5},this)}function H1({className:l,...a}){return u.jsxDEV("textarea",{"data-slot":"textarea",className:Un("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/textarea.tsx",lineNumber:7,columnNumber:5},this)}function B1(){const[l,a]=Q.useState({}),i=(E,x)=>{a(C=>({...C,[E]:x})),x==="success"?setTimeout(()=>{a(C=>({...C,[E]:"idle"}))},2e3):x==="error"&&setTimeout(()=>{a(C=>({...C,[E]:"idle"}))},3e3)},d=E=>l[E]||"idle";return{setButtonState:i,getButtonState:d,isLoading:E=>d(E)==="loading",isSuccess:E=>d(E)==="success",isError:E=>d(E)==="error"}}function ca(l,a){switch(l){case"loading":return u.jsxDEV(Bh,{className:"w-4 h-4 animate-spin"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/utils/buttonHelpers.tsx",lineNumber:8,columnNumber:14},this);case"success":return u.jsxDEV(No,{className:"w-4 h-4 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/utils/buttonHelpers.tsx",lineNumber:10,columnNumber:14},this);case"error":return u.jsxDEV(Hh,{className:"w-4 h-4 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/utils/buttonHelpers.tsx",lineNumber:12,columnNumber:14},this);default:return a}}function ua(l,a=""){return`transition-all duration-200 ${a} ${{loading:"opacity-75",success:"border-green-500 bg-green-50 text-green-700",error:"border-red-500 bg-red-50 text-red-700",idle:""}[l]}`}const RC=async()=>{const l=await fetch("http://localhost:3333/api/config");if(!l.ok)throw new Error("Failed to fetch config");return l.json()},UC=async()=>{const l=await fetch("http://localhost:3333/api/bundles");if(!l.ok)throw new Error("Failed to fetch bundles");return l.json()},AC=async l=>{if(!(await fetch("http://localhost:3333/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})).ok)throw new Error("Failed to save config")},OC=async l=>{const a=await fetch("http://localhost:3333/api/test-pattern",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pattern:l})});if(!a.ok)throw new Error("Failed to test pattern");return a.json()};function MC(){const l=Hd(),[a,i]=Q.useState(null),[d,h]=Q.useState(""),[v,N]=Q.useState([]),[E,x]=Q.useState(""),{setButtonState:C,getButtonState:A,isLoading:m}=B1(),{data:y,isLoading:V}=So({queryKey:["config"],queryFn:RC}),{data:q}=So({queryKey:["bundles"],queryFn:UC,refetchInterval:5e3}),O=h1({mutationFn:AC,onSuccess:()=>{l.invalidateQueries({queryKey:["config"]}),l.invalidateQueries({queryKey:["bundles"]}),i(null),C("save","success"),kt.success("Configuration saved successfully!")},onError:B=>{C("save","error"),kt.error(`Failed to save config: ${B.message}`)}});Q.useEffect(()=>{y&&!a&&i(y)},[y]);const U=()=>{a&&(C("save","loading"),O.mutate(a))},$=async()=>{if(d.trim()){C("test","loading");try{const B=await OC(d);N(B),C("test","success"),kt.success(`Pattern matched ${B.length} files`)}catch(B){console.error("Pattern test failed:",B),N([]),C("test","error"),kt.error("Failed to test pattern")}}},oe=async()=>{if(E.trim()){C("paste","loading");try{const B=JSON.parse(E);if(!B.bundles||typeof B.bundles!="object")throw new Error('Configuration must have a "bundles" object');B.bundles.master||(B.bundles.master=["**/*"]),i({bundles:Object.fromEntries(Object.entries(B.bundles).map(([Ee,Me])=>[Ee,Array.isArray(Me)?Me:[Me]]))});const re=Object.keys(B.bundles).length;x(""),C("paste","success"),kt.success(`Applied ${re} bundles successfully`)}catch(B){C("paste","error"),kt.error(`Invalid configuration: ${B instanceof Error?B.message:"Unknown error"}`)}}},ee=()=>{if(!a)return;const B=prompt("Bundle name:");B&&!a.bundles[B]&&i({...a,bundles:{...a.bundles,[B]:["**/*"]}})},ie=B=>{if(!(!a||B==="master")&&confirm(`Delete bundle "${B}"?`)){const{[B]:re,...Ee}=a.bundles;i({...a,bundles:Ee})}},ae=(B,re,Ee)=>{if(!a)return;const Me=[...a.bundles[B]];Me[re]=Ee,i({...a,bundles:{...a.bundles,[B]:Me}})},ge=B=>{a&&i({...a,bundles:{...a.bundles,[B]:[...a.bundles[B],""]}})},ye=(B,re)=>{if(!a||a.bundles[B].length===1)return;const Ee=a.bundles[B].filter((Me,Ve)=>Ve!==re);i({...a,bundles:{...a.bundles,[B]:Ee}})},F=B=>{const re=q==null?void 0:q.find(Ee=>Ee.name===B);return re?{files:re.files.length,size:re.size}:{files:0,size:0}},Z=B=>{if(B===0)return"0 B";const re=1024,Ee=["B","KB","MB","GB"],Me=Math.floor(Math.log(B)/Math.log(re));return parseFloat((B/Math.pow(re,Me)).toFixed(1))+" "+Ee[Me]};if(V)return u.jsxDEV("div",{children:"Loading configuration..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:218,columnNumber:29},this);if(!a)return u.jsxDEV("div",{children:"No configuration found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:219,columnNumber:30},this);const Se=JSON.stringify(y)!==JSON.stringify(a);return u.jsxDEV("div",{className:"space-y-6",children:[u.jsxDEV("div",{className:"flex justify-between items-center",children:[u.jsxDEV("div",{children:[u.jsxDEV("h2",{className:"text-lg font-semibold",children:"Bundle Configuration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:228,columnNumber:11},this),u.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Define patterns for each bundle. Use glob patterns like *.js, src/**/*.tsx, etc."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:229,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:227,columnNumber:9},this),u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>i(y||null),disabled:!Se,children:"Reset"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:234,columnNumber:11},this),u.jsxDEV(Pe,{onClick:U,disabled:!Se||m("save"),className:ua(A("save")),children:[ca(A("save"),u.jsxDEV(P1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:247,columnNumber:52},this)),u.jsxDEV("span",{className:"ml-1",children:"Save Changes"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:248,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:242,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:233,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:226,columnNumber:7},this),u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(yo,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:257,columnNumber:13},this),"Paste Bundle Configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:256,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:255,columnNumber:9},this),u.jsxDEV(bt,{className:"space-y-4",children:[u.jsxDEV(H1,{placeholder:"Paste bundle configuration JSON here...",value:E,onChange:B=>x(B.target.value),className:"min-h-32 font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:262,columnNumber:11},this),u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(Pe,{onClick:oe,disabled:!E.trim()||m("paste"),className:ua(A("paste")),children:[ca(A("paste"),u.jsxDEV(yo,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:274,columnNumber:55},this)),u.jsxDEV("span",{className:"ml-1",children:"Apply Configuration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:275,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:269,columnNumber:13},this),u.jsxDEV(Pe,{variant:"outline",onClick:()=>x(""),disabled:!E.trim(),children:"Clear"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:277,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:268,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:261,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:254,columnNumber:7},this),u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(kN,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:292,columnNumber:13},this),"Pattern Tester"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:291,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:290,columnNumber:9},this),u.jsxDEV(bt,{className:"space-y-4",children:[u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(qN,{placeholder:"Test a glob pattern (e.g., src/**/*.ts)",value:d,onChange:B=>h(B.target.value),onKeyDown:B=>B.key==="Enter"&&$()},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:298,columnNumber:13},this),u.jsxDEV(Pe,{onClick:$,disabled:!d.trim()||m("test"),className:ua(A("test")),children:[ca(A("test"),u.jsxDEV(kN,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:309,columnNumber:54},this)),u.jsxDEV("span",{className:"ml-1",children:"Test"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:310,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:304,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:297,columnNumber:11},this),v.length>0&&u.jsxDEV("div",{className:"space-y-2",children:[u.jsxDEV("div",{className:"text-sm font-medium",children:["Matches ",v.length," files:"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:316,columnNumber:15},this),u.jsxDEV("div",{className:"max-h-40 overflow-y-auto bg-muted p-3 rounded-md",children:[v.slice(0,20).map((B,re)=>u.jsxDEV("div",{className:"text-sm font-mono",children:B},re,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:321,columnNumber:19},this)),v.length>20&&u.jsxDEV("div",{className:"text-sm text-muted-foreground",children:["... and ",v.length-20," more files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:324,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:319,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:315,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:296,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:289,columnNumber:7},this),u.jsxDEV("div",{className:"space-y-4",children:Object.entries(a.bundles).map(([B,re])=>{const Ee=F(B),Me=Ee.size>10*1024*1024;return u.jsxDEV(ft,{className:Me?"border-yellow-500":"",children:[u.jsxDEV(Nt,{children:u.jsxDEV("div",{className:"flex justify-between items-center",children:[u.jsxDEV("div",{className:"flex items-center gap-3",children:[u.jsxDEV(St,{children:B},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:345,columnNumber:21},this),u.jsxDEV(Ll,{variant:"outline",children:[Ee.files," files • ",Z(Ee.size)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:346,columnNumber:21},this),Me&&u.jsxDEV(Ll,{variant:"destructive",className:"flex items-center gap-1",children:[u.jsxDEV(Pd,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:351,columnNumber:25},this),"Large"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:350,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:344,columnNumber:19},this),u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:()=>ge(B),children:[u.jsxDEV(PN,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:362,columnNumber:23},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:357,columnNumber:21},this),B!=="master"&&u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:()=>ie(B),children:u.jsxDEV(_N,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:371,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:366,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:356,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:343,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:342,columnNumber:15},this),u.jsxDEV(bt,{className:"space-y-3",children:re.map((Ve,H)=>u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(qN,{value:Ve,onChange:ue=>ae(B,H,ue.target.value),placeholder:"Glob pattern (e.g., src/**/*.ts)",className:"font-mono"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:380,columnNumber:21},this),re.length>1&&u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:()=>ye(B,H),children:u.jsxDEV(_N,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:392,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:387,columnNumber:23},this)]},H,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:379,columnNumber:19},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:377,columnNumber:15},this)]},B,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:341,columnNumber:13},this)})},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:335,columnNumber:7},this),u.jsxDEV(ft,{children:u.jsxDEV(bt,{className:"pt-6",children:u.jsxDEV(Pe,{variant:"outline",onClick:ee,className:"w-full",children:[u.jsxDEV(PN,{className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:407,columnNumber:13},this),"Add New Bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:406,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:405,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:404,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleConfig.tsx",lineNumber:224,columnNumber:5},this)}const VC=Ih("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 da({className:l,variant:a,...i}){return u.jsxDEV("div",{"data-slot":"alert",role:"alert",className:Un(VC({variant:a}),l),...i},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function fa({className:l,...a}){return u.jsxDEV("div",{"data-slot":"alert-description",className:Un("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:55,columnNumber:5},this)}function Er(l,a,{checkForDefaultPrevented:i=!0}={}){return function(h){if(l==null||l(h),i===!1||!h.defaultPrevented)return a==null?void 0:a(h)}}function Fh(l,a=[]){let i=[];function d(v,N){const E=Q.createContext(N),x=i.length;i=[...i,N];const C=m=>{var $;const{scope:y,children:V,...q}=m,O=(($=y==null?void 0:y[l])==null?void 0:$[x])||E,U=Q.useMemo(()=>q,Object.values(q));return wt.jsx(O.Provider,{value:U,children:V})};C.displayName=v+"Provider";function A(m,y){var O;const V=((O=y==null?void 0:y[l])==null?void 0:O[x])||E,q=Q.useContext(V);if(q)return q;if(N!==void 0)return N;throw new Error(`\`${m}\` must be used within \`${v}\``)}return[C,A]}const h=()=>{const v=i.map(N=>Q.createContext(N));return function(E){const x=(E==null?void 0:E[l])||v;return Q.useMemo(()=>({[`__scope${l}`]:{...E,[l]:x}}),[E,x])}};return h.scopeName=l,[d,zC(h,...a)]}function zC(...l){const a=l[0];if(l.length===1)return a;const i=()=>{const d=l.map(h=>({useScope:h(),scopeName:h.scopeName}));return function(v){const N=d.reduce((E,{useScope:x,scopeName:C})=>{const m=x(v)[`__scope${C}`];return{...E,...m}},{});return Q.useMemo(()=>({[`__scope${a.scopeName}`]:N}),[N])}};return i.scopeName=a.scopeName,i}function kC(l){const a=l+"CollectionProvider",[i,d]=Fh(a),[h,v]=i(a,{collectionRef:{current:null},itemMap:new Map}),N=O=>{const{scope:U,children:$}=O,oe=W.useRef(null),ee=W.useRef(new Map).current;return wt.jsx(h,{scope:U,itemMap:ee,collectionRef:oe,children:$})};N.displayName=a;const E=l+"CollectionSlot",x=zd(E),C=W.forwardRef((O,U)=>{const{scope:$,children:oe}=O,ee=v(E,$),ie=Vd(U,ee.collectionRef);return wt.jsx(x,{ref:ie,children:oe})});C.displayName=E;const A=l+"CollectionItemSlot",m="data-radix-collection-item",y=zd(A),V=W.forwardRef((O,U)=>{const{scope:$,children:oe,...ee}=O,ie=W.useRef(null),ae=Vd(U,ie),ge=v(A,$);return W.useEffect(()=>(ge.itemMap.set(ie,{ref:ie,...ee}),()=>void ge.itemMap.delete(ie))),wt.jsx(y,{[m]:"",ref:ae,children:oe})});V.displayName=A;function q(O){const U=v(l+"CollectionConsumer",O);return W.useCallback(()=>{const oe=U.collectionRef.current;if(!oe)return[];const ee=Array.from(oe.querySelectorAll(`[${m}]`));return Array.from(U.itemMap.values()).sort((ge,ye)=>ee.indexOf(ge.ref.current)-ee.indexOf(ye.ref.current))},[U.collectionRef,U.itemMap])}return[{Provider:N,Slot:C,ItemSlot:V},q,d]}var _d=globalThis!=null&&globalThis.document?Q.useLayoutEffect:()=>{},PC=t1[" useId ".trim().toString()]||(()=>{}),_C=0;function L1(l){const[a,i]=Q.useState(PC());return _d(()=>{i(d=>d??String(_C++))},[l]),l||(a?`radix-${a}`:"")}var HC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$l=HC.reduce((l,a)=>{const i=zd(`Primitive.${a}`),d=Q.forwardRef((h,v)=>{const{asChild:N,...E}=h,x=N?i:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),wt.jsx(x,{...E,ref:v})});return d.displayName=`Primitive.${a}`,{...l,[a]:d}},{});function BC(l){const a=Q.useRef(l);return Q.useEffect(()=>{a.current=l}),Q.useMemo(()=>(...i)=>{var d;return(d=a.current)==null?void 0:d.call(a,...i)},[])}var LC=t1[" useInsertionEffect ".trim().toString()]||_d;function q1({prop:l,defaultProp:a,onChange:i=()=>{},caller:d}){const[h,v,N]=qC({defaultProp:a,onChange:i}),E=l!==void 0,x=E?l:h;{const A=Q.useRef(l!==void 0);Q.useEffect(()=>{const m=A.current;m!==E&&console.warn(`${d} is changing from ${m?"controlled":"uncontrolled"} to ${E?"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=E},[E,d])}const C=Q.useCallback(A=>{var m;if(E){const y=YC(A)?A(l):A;y!==l&&((m=N.current)==null||m.call(N,y))}else v(A)},[E,l,v,N]);return[x,C]}function qC({defaultProp:l,onChange:a}){const[i,d]=Q.useState(l),h=Q.useRef(i),v=Q.useRef(a);return LC(()=>{v.current=a},[a]),Q.useEffect(()=>{var N;h.current!==i&&((N=v.current)==null||N.call(v,i),h.current=i)},[i,h]),[i,d,v]}function YC(l){return typeof l=="function"}var GC=Q.createContext(void 0);function Y1(l){const a=Q.useContext(GC);return l||a||"ltr"}var Nh="rovingFocusGroup.onEntryFocus",$C={bubbles:!1,cancelable:!0},Rc="RovingFocusGroup",[Yh,G1,QC]=kC(Rc),[XC,$1]=Fh(Rc,[QC]),[IC,FC]=XC(Rc),Q1=Q.forwardRef((l,a)=>wt.jsx(Yh.Provider,{scope:l.__scopeRovingFocusGroup,children:wt.jsx(Yh.Slot,{scope:l.__scopeRovingFocusGroup,children:wt.jsx(ZC,{...l,ref:a})})}));Q1.displayName=Rc;var ZC=Q.forwardRef((l,a)=>{const{__scopeRovingFocusGroup:i,orientation:d,loop:h=!1,dir:v,currentTabStopId:N,defaultCurrentTabStopId:E,onCurrentTabStopIdChange:x,onEntryFocus:C,preventScrollOnEntryFocus:A=!1,...m}=l,y=Q.useRef(null),V=Vd(a,y),q=Y1(v),[O,U]=q1({prop:N,defaultProp:E??null,onChange:x,caller:Rc}),[$,oe]=Q.useState(!1),ee=BC(C),ie=G1(i),ae=Q.useRef(!1),[ge,ye]=Q.useState(0);return Q.useEffect(()=>{const F=y.current;if(F)return F.addEventListener(Nh,ee),()=>F.removeEventListener(Nh,ee)},[ee]),wt.jsx(IC,{scope:i,orientation:d,dir:q,loop:h,currentTabStopId:O,onItemFocus:Q.useCallback(F=>U(F),[U]),onItemShiftTab:Q.useCallback(()=>oe(!0),[]),onFocusableItemAdd:Q.useCallback(()=>ye(F=>F+1),[]),onFocusableItemRemove:Q.useCallback(()=>ye(F=>F-1),[]),children:wt.jsx($l.div,{tabIndex:$||ge===0?-1:0,"data-orientation":d,...m,ref:V,style:{outline:"none",...l.style},onMouseDown:Er(l.onMouseDown,()=>{ae.current=!0}),onFocus:Er(l.onFocus,F=>{const Z=!ae.current;if(F.target===F.currentTarget&&Z&&!$){const Se=new CustomEvent(Nh,$C);if(F.currentTarget.dispatchEvent(Se),!Se.defaultPrevented){const B=ie().filter(H=>H.focusable),re=B.find(H=>H.active),Ee=B.find(H=>H.id===O),Ve=[re,Ee,...B].filter(Boolean).map(H=>H.ref.current);F1(Ve,A)}}ae.current=!1}),onBlur:Er(l.onBlur,()=>oe(!1))})})}),X1="RovingFocusGroupItem",I1=Q.forwardRef((l,a)=>{const{__scopeRovingFocusGroup:i,focusable:d=!0,active:h=!1,tabStopId:v,children:N,...E}=l,x=L1(),C=v||x,A=FC(X1,i),m=A.currentTabStopId===C,y=G1(i),{onFocusableItemAdd:V,onFocusableItemRemove:q,currentTabStopId:O}=A;return Q.useEffect(()=>{if(d)return V(),()=>q()},[d,V,q]),wt.jsx(Yh.ItemSlot,{scope:i,id:C,focusable:d,active:h,children:wt.jsx($l.span,{tabIndex:m?0:-1,"data-orientation":A.orientation,...E,ref:a,onMouseDown:Er(l.onMouseDown,U=>{d?A.onItemFocus(C):U.preventDefault()}),onFocus:Er(l.onFocus,()=>A.onItemFocus(C)),onKeyDown:Er(l.onKeyDown,U=>{if(U.key==="Tab"&&U.shiftKey){A.onItemShiftTab();return}if(U.target!==U.currentTarget)return;const $=WC(U,A.orientation,A.dir);if($!==void 0){if(U.metaKey||U.ctrlKey||U.altKey||U.shiftKey)return;U.preventDefault();let ee=y().filter(ie=>ie.focusable).map(ie=>ie.ref.current);if($==="last")ee.reverse();else if($==="prev"||$==="next"){$==="prev"&&ee.reverse();const ie=ee.indexOf(U.currentTarget);ee=A.loop?eR(ee,ie+1):ee.slice(ie+1)}setTimeout(()=>F1(ee))}}),children:typeof N=="function"?N({isCurrentTabStop:m,hasTabStop:O!=null}):N})})});I1.displayName=X1;var KC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function JC(l,a){return a!=="rtl"?l:l==="ArrowLeft"?"ArrowRight":l==="ArrowRight"?"ArrowLeft":l}function WC(l,a,i){const d=JC(l.key,i);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(d))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(d)))return KC[d]}function F1(l,a=!1){const i=document.activeElement;for(const d of l)if(d===i||(d.focus({preventScroll:a}),document.activeElement!==i))return}function eR(l,a){return l.map((i,d)=>l[(a+d)%l.length])}var tR=Q1,nR=I1;function sR(l,a){return Q.useReducer((i,d)=>a[i][d]??i,l)}var Z1=l=>{const{present:a,children:i}=l,d=rR(a),h=typeof i=="function"?i({present:d.isPresent}):Q.Children.only(i),v=Vd(d.ref,oR(h));return typeof i=="function"||d.isPresent?Q.cloneElement(h,{ref:v}):null};Z1.displayName="Presence";function rR(l){const[a,i]=Q.useState(),d=Q.useRef(null),h=Q.useRef(l),v=Q.useRef("none"),N=l?"mounted":"unmounted",[E,x]=sR(N,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const C=Rd(d.current);v.current=E==="mounted"?C:"none"},[E]),_d(()=>{const C=d.current,A=h.current;if(A!==l){const y=v.current,V=Rd(C);l?x("MOUNT"):V==="none"||(C==null?void 0:C.display)==="none"?x("UNMOUNT"):x(A&&y!==V?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,x]),_d(()=>{if(a){let C;const A=a.ownerDocument.defaultView??window,m=V=>{const O=Rd(d.current).includes(V.animationName);if(V.target===a&&O&&(x("ANIMATION_END"),!h.current)){const U=a.style.animationFillMode;a.style.animationFillMode="forwards",C=A.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=U)})}},y=V=>{V.target===a&&(v.current=Rd(d.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",m),a.addEventListener("animationend",m),()=>{A.clearTimeout(C),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",m),a.removeEventListener("animationend",m)}}else x("ANIMATION_END")},[a,x]),{isPresent:["mounted","unmountSuspended"].includes(E),ref:Q.useCallback(C=>{d.current=C?getComputedStyle(C):null,i(C)},[])}}function Rd(l){return(l==null?void 0:l.animationName)||"none"}function oR(l){var d,h;let a=(d=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:d.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?l.ref:(a=(h=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:h.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}var Bd="Tabs",[aR,ER]=Fh(Bd,[$1]),K1=$1(),[lR,Zh]=aR(Bd),J1=Q.forwardRef((l,a)=>{const{__scopeTabs:i,value:d,onValueChange:h,defaultValue:v,orientation:N="horizontal",dir:E,activationMode:x="automatic",...C}=l,A=Y1(E),[m,y]=q1({prop:d,onChange:h,defaultProp:v??"",caller:Bd});return wt.jsx(lR,{scope:i,baseId:L1(),value:m,onValueChange:y,orientation:N,dir:A,activationMode:x,children:wt.jsx($l.div,{dir:A,"data-orientation":N,...C,ref:a})})});J1.displayName=Bd;var W1="TabsList",eS=Q.forwardRef((l,a)=>{const{__scopeTabs:i,loop:d=!0,...h}=l,v=Zh(W1,i),N=K1(i);return wt.jsx(tR,{asChild:!0,...N,orientation:v.orientation,dir:v.dir,loop:d,children:wt.jsx($l.div,{role:"tablist","aria-orientation":v.orientation,...h,ref:a})})});eS.displayName=W1;var tS="TabsTrigger",nS=Q.forwardRef((l,a)=>{const{__scopeTabs:i,value:d,disabled:h=!1,...v}=l,N=Zh(tS,i),E=K1(i),x=oS(N.baseId,d),C=aS(N.baseId,d),A=d===N.value;return wt.jsx(nR,{asChild:!0,...E,focusable:!h,active:A,children:wt.jsx($l.button,{type:"button",role:"tab","aria-selected":A,"aria-controls":C,"data-state":A?"active":"inactive","data-disabled":h?"":void 0,disabled:h,id:x,...v,ref:a,onMouseDown:Er(l.onMouseDown,m=>{!h&&m.button===0&&m.ctrlKey===!1?N.onValueChange(d):m.preventDefault()}),onKeyDown:Er(l.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&N.onValueChange(d)}),onFocus:Er(l.onFocus,()=>{const m=N.activationMode!=="manual";!A&&!h&&m&&N.onValueChange(d)})})})});nS.displayName=tS;var sS="TabsContent",rS=Q.forwardRef((l,a)=>{const{__scopeTabs:i,value:d,forceMount:h,children:v,...N}=l,E=Zh(sS,i),x=oS(E.baseId,d),C=aS(E.baseId,d),A=d===E.value,m=Q.useRef(A);return Q.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),wt.jsx(Z1,{present:h||A,children:({present:y})=>wt.jsx($l.div,{"data-state":A?"active":"inactive","data-orientation":E.orientation,role:"tabpanel","aria-labelledby":x,hidden:!y,id:C,tabIndex:0,...N,ref:a,style:{...l.style,animationDuration:m.current?"0s":void 0},children:y&&v})})});rS.displayName=sS;function oS(l,a){return`${l}-trigger-${a}`}function aS(l,a){return`${l}-content-${a}`}var iR=J1,cR=eS,uR=nS,dR=rS;function lS({className:l,...a}){return u.jsxDEV(iR,{"data-slot":"tabs",className:Un("flex flex-col gap-2",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:11,columnNumber:5},this)}function iS({className:l,...a}){return u.jsxDEV(cR,{"data-slot":"tabs-list",className:Un("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:24,columnNumber:5},this)}function ma({className:l,...a}){return u.jsxDEV(uR,{"data-slot":"tabs-trigger",className:Un("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:40,columnNumber:5},this)}function pa({className:l,...a}){return u.jsxDEV(dR,{"data-slot":"tabs-content",className:Un("flex-1 outline-none",l),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:56,columnNumber:5},this)}const fR=async()=>{const l=await fetch("http://localhost:3333/api/cursor-rules");if(!l.ok)throw new Error("Failed to fetch cursor rules");return l.text()},mR=async l=>{if(!(await fetch("http://localhost:3333/api/cursor-rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:l})})).ok)throw new Error("Failed to save cursor rules")},pR=async()=>{const l=await fetch("http://localhost:3333/api/cursor-rules/templates");if(!l.ok)throw new Error("Failed to fetch templates");return l.json()};function hR(){const l=Hd(),[a,i]=Q.useState(""),[d,h]=Q.useState(""),{setButtonState:v,getButtonState:N,isLoading:E}=B1(),{data:x,isLoading:C}=So({queryKey:["cursor-rules"],queryFn:fR}),{data:A}=So({queryKey:["cursor-templates"],queryFn:pR}),m=h1({mutationFn:mR,onSuccess:()=>{l.invalidateQueries({queryKey:["cursor-rules"]}),v("save","success"),kt.success("Cursor rules saved successfully!")},onError:ae=>{v("save","error"),kt.error(`Failed to save cursor rules: ${ae.message}`)}});Q.useEffect(()=>{x&&!a&&i(x)},[x]);const y=()=>{a&&(v("save","loading"),m.mutate(a))},V=()=>{i(x||""),kt.info("Reset to last saved version")},q=ae=>{A&&A[ae]&&(i(A[ae]),h(ae),kt.success(`Loaded ${ae} template`))},O=async()=>{if(a){v("copy","loading");try{await navigator.clipboard.writeText(a),v("copy","success"),kt.success("Cursor rules copied to clipboard!")}catch{v("copy","error"),kt.error("Failed to copy to clipboard")}}},U=()=>{v("download","loading");try{const ae=new Blob([a],{type:"text/plain"}),ge=URL.createObjectURL(ae),ye=document.createElement("a");ye.href=ge,ye.download=".cursorrules",ye.click(),URL.revokeObjectURL(ge),v("download","success"),kt.success("Cursor rules downloaded!")}catch{v("download","error"),kt.error("Failed to download file")}},$=ae=>{var F;const ge=(F=ae.target.files)==null?void 0:F[0];if(!ge)return;v("upload","loading");const ye=new FileReader;ye.onload=Z=>{var B;const Se=(B=Z.target)==null?void 0:B.result;i(Se),v("upload","success"),kt.success("Cursor rules uploaded successfully!")},ye.onerror=()=>{v("upload","error"),kt.error("Failed to read file")},ye.readAsText(ge)};if(C)return u.jsxDEV("div",{children:"Loading cursor rules..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:148,columnNumber:28},this);const oe=x!==a,ee=a.split(/\s+/).filter(ae=>ae.length>0).length,ie=a.split(`
445
- `).length;return u.jsxDEV("div",{className:"space-y-6",children:[u.jsxDEV("div",{className:"flex justify-between items-start",children:[u.jsxDEV("div",{children:[u.jsxDEV("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[u.jsxDEV(wc,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:160,columnNumber:13},this),"Cursor Rules Management"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:159,columnNumber:11},this),u.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Configure AI assistant behavior and project context for Cursor IDE"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:163,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:158,columnNumber:9},this),u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(Pe,{variant:"outline",onClick:V,disabled:!oe,children:[u.jsxDEV(k1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:173,columnNumber:13},this),"Reset"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:168,columnNumber:11},this),u.jsxDEV(Pe,{onClick:y,disabled:!oe||E("save"),className:`bg-purple-600 hover:bg-purple-700 ${ua(N("save"))}`,children:[ca(N("save"),u.jsxDEV(P1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:181,columnNumber:52},this)),u.jsxDEV("span",{className:"ml-1",children:"Save Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:182,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:176,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:167,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:157,columnNumber:7},this),u.jsxDEV(ft,{children:u.jsxDEV(bt,{className:"pt-6",children:u.jsxDEV("div",{className:"flex items-center justify-between",children:[u.jsxDEV("div",{className:"flex items-center gap-4",children:[u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV(M1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:193,columnNumber:17},this),u.jsxDEV("span",{className:"text-sm text-muted-foreground",children:[ie," lines • ",ee," words"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:194,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:192,columnNumber:15},this),x&&u.jsxDEV("div",{className:"flex items-center gap-2",children:u.jsxDEV("span",{className:"text-sm text-green-700",children:".cursorrules file exists"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:200,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:199,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:191,columnNumber:13},this),u.jsxDEV("div",{className:"flex gap-2",children:[u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:O,disabled:E("copy"),className:ua(N("copy")),children:[ca(N("copy"),u.jsxDEV(kd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:212,columnNumber:56},this)),u.jsxDEV("span",{className:"ml-1",children:"Copy"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:213,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:205,columnNumber:15},this),u.jsxDEV(Pe,{variant:"outline",size:"sm",onClick:U,disabled:E("download"),className:ua(N("download")),children:[ca(N("download"),u.jsxDEV(ED,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:222,columnNumber:60},this)),u.jsxDEV("span",{className:"ml-1",children:"Download"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:223,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:215,columnNumber:15},this),u.jsxDEV("label",{className:"cursor-pointer",children:[u.jsxDEV(Pe,{variant:"outline",size:"sm",asChild:!0,className:ua(N("upload")),children:u.jsxDEV("span",{children:[ca(N("upload"),u.jsxDEV(QD,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:233,columnNumber:62},this)),u.jsxDEV("span",{className:"ml-1",children:"Upload"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:234,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:232,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:226,columnNumber:17},this),u.jsxDEV("input",{type:"file",accept:".cursorrules,.txt,.md",onChange:$,className:"hidden"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:237,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:225,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:204,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:190,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:189,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:188,columnNumber:7},this),u.jsxDEV(lS,{defaultValue:"editor",className:"space-y-6",children:[u.jsxDEV(iS,{children:[u.jsxDEV(ma,{value:"editor",children:"Rules Editor"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:251,columnNumber:11},this),u.jsxDEV(ma,{value:"templates",children:"Templates"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:252,columnNumber:11},this),u.jsxDEV(ma,{value:"help",children:"Help & Examples"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:253,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:250,columnNumber:9},this),u.jsxDEV(pa,{value:"editor",children:u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"Edit Cursor Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:259,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:258,columnNumber:13},this),u.jsxDEV(bt,{className:"space-y-4",children:[oe&&u.jsxDEV(da,{className:"border-yellow-200 bg-yellow-50",children:[u.jsxDEV(VD,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:264,columnNumber:19},this),u.jsxDEV(fa,{children:'You have unsaved changes. Click "Save Rules" to apply them to your .cursorrules file.'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:265,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:263,columnNumber:17},this),u.jsxDEV(H1,{value:a,onChange:ae=>i(ae.target.value),placeholder:"Enter your cursor rules here...",className:"min-h-96 font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:271,columnNumber:15},this),d&&u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV("span",{className:"text-sm text-muted-foreground",children:["Template: ",d]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:280,columnNumber:19},this),u.jsxDEV(Pe,{variant:"ghost",size:"sm",onClick:()=>h(""),children:"Clear"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:283,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:279,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:261,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:257,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:256,columnNumber:9},this),u.jsxDEV(pa,{value:"templates",children:u.jsxDEV("div",{className:"space-y-4",children:u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"Project Templates"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:300,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:299,columnNumber:15},this),u.jsxDEV(bt,{children:[u.jsxDEV("p",{className:"text-sm text-muted-foreground mb-4",children:"Choose a template that matches your project type. You can customize it after loading."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:303,columnNumber:17},this),u.jsxDEV("div",{className:"grid gap-3",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>q("react"),className:"justify-start h-auto p-4",children:u.jsxDEV("div",{className:"text-left",children:[u.jsxDEV("div",{className:"font-medium",children:"React Application"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:313,columnNumber:23},this),u.jsxDEV("div",{className:"text-sm text-muted-foreground",children:"Modern React with TypeScript, hooks, and Tailwind CSS"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:314,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:312,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:307,columnNumber:19},this),u.jsxDEV(Pe,{variant:"outline",onClick:()=>q("node"),className:"justify-start h-auto p-4",children:u.jsxDEV("div",{className:"text-left",children:[u.jsxDEV("div",{className:"font-medium",children:"Node.js Backend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:326,columnNumber:23},this),u.jsxDEV("div",{className:"text-sm text-muted-foreground",children:"Express/Fastify backend with ES modules and TypeScript"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:327,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:325,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:320,columnNumber:19},this),u.jsxDEV(Pe,{variant:"outline",onClick:()=>q("general"),className:"justify-start h-auto p-4",children:u.jsxDEV("div",{className:"text-left",children:[u.jsxDEV("div",{className:"font-medium",children:"General Project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:339,columnNumber:23},this),u.jsxDEV("div",{className:"text-sm text-muted-foreground",children:"Basic template for any type of project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:340,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:338,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:333,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:306,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:302,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:298,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:297,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:296,columnNumber:9},this),u.jsxDEV(pa,{value:"help",children:u.jsxDEV("div",{className:"space-y-4",children:[u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"What are Cursor Rules?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:355,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:354,columnNumber:15},this),u.jsxDEV(bt,{className:"space-y-4",children:[u.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Cursor rules (.cursorrules) provide context and guidelines to AI assistants like Cursor IDE's AI. They help the AI understand your project structure, coding preferences, and best practices."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:358,columnNumber:17},this),u.jsxDEV("div",{className:"space-y-3",children:[u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Best Practices"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:365,columnNumber:21},this),u.jsxDEV("ul",{className:"text-sm text-muted-foreground space-y-1 list-disc list-inside",children:[u.jsxDEV("li",{children:"Include project context and technology stack"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:367,columnNumber:23},this),u.jsxDEV("li",{children:"Specify coding standards and naming conventions"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:368,columnNumber:23},this),u.jsxDEV("li",{children:"Document file organization patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:369,columnNumber:23},this),u.jsxDEV("li",{children:"Mention important dependencies and frameworks"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:370,columnNumber:23},this),u.jsxDEV("li",{children:"Include team preferences and architectural decisions"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:371,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:366,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:364,columnNumber:19},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Example Sections"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:376,columnNumber:21},this),u.jsxDEV("div",{className:"bg-gray-50 p-3 rounded text-xs font-mono",children:["# Project Context",u.jsxDEV("br",{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:378,columnNumber:40},this),"# Development Guidelines",u.jsxDEV("br",{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:379,columnNumber:47},this),"# Code Style",u.jsxDEV("br",{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:380,columnNumber:35},this),"# File Organization",u.jsxDEV("br",{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:381,columnNumber:42},this),"# Bundle Context",u.jsxDEV("br",{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:382,columnNumber:39},this),"# AI Assistant Instructions"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:377,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:375,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:363,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:357,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:353,columnNumber:13},this),u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"Integration with cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:392,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:391,columnNumber:15},this),u.jsxDEV(bt,{children:[u.jsxDEV("p",{className:"text-sm text-muted-foreground mb-3",children:"Your cursor rules automatically include information about your cntx-ui bundle configuration, helping AI assistants understand your project structure and file organization."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:395,columnNumber:17},this),u.jsxDEV(da,{children:[u.jsxDEV(wc,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:401,columnNumber:19},this),u.jsxDEV(fa,{children:"When you change your bundle configuration, consider updating your cursor rules to reflect the new project structure and help AI assistants provide better suggestions."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:402,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:400,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:394,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:390,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:352,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:351,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:249,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/CursorRulesManager.tsx",lineNumber:155,columnNumber:5},this)}const cS=async()=>{try{const[l,a,i]=await Promise.all([fetch("http://localhost:3333/api/config"),fetch("http://localhost:3333/api/bundles"),fetch("http://localhost:3333/api/cursor-rules")]),d=l.ok,h=a.ok?await a.json():[],v=i.ok;return{hasConfig:d,hasIgnoreFile:!0,bundleCount:h.length||0,hasCursorRules:v,isFirstTime:!d||h.length===0}}catch{return{hasConfig:!1,hasIgnoreFile:!1,bundleCount:0,hasCursorRules:!1,isFirstTime:!0}}};function bR({onStartSetup:l}){const{data:a,isLoading:i}=So({queryKey:["setup-status"],queryFn:cS,refetchInterval:5e3});return i||!(a!=null&&a.isFirstTime)?null:u.jsxDEV(da,{className:"mb-6 border-blue-200 bg-blue-50",children:[u.jsxDEV(yo,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:64,columnNumber:7},this),u.jsxDEV(fa,{className:"flex items-center justify-between",children:[u.jsxDEV("div",{children:[u.jsxDEV("strong",{children:"Welcome to cntx-ui!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:67,columnNumber:11},this)," It looks like this might be your first time. Let's help you get set up properly."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:66,columnNumber:9},this),u.jsxDEV(Pe,{onClick:l,size:"sm",children:"Start Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:65,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:63,columnNumber:5},this)}function vR({onOpenFullSetup:l}){const{data:a,isLoading:i}=So({queryKey:["setup-status"],queryFn:cS,refetchInterval:1e4});if(i)return u.jsxDEV("div",{children:"Checking setup status..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:90,columnNumber:12},this);const d=[{label:"Configuration file exists",passed:(a==null?void 0:a.hasConfig)||!1,description:".cntx/config.json with bundle definitions"},{label:"Ignore patterns configured",passed:(a==null?void 0:a.hasIgnoreFile)||!1,description:".cntxignore file to exclude unnecessary files"},{label:"Bundles generated",passed:((a==null?void 0:a.bundleCount)||0)>0,description:`${(a==null?void 0:a.bundleCount)||0} bundles currently configured`},{label:"Cursor rules created",passed:(a==null?void 0:a.hasCursorRules)||!1,description:".cursorrules file for AI assistant context"}],h=d.every(v=>v.passed);return u.jsxDEV(ft,{className:h?"":"border-yellow-200",children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(yo,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:122,columnNumber:11},this),"Setup Status",h?u.jsxDEV(No,{className:"w-5 h-5 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:125,columnNumber:13},this):u.jsxDEV(Pd,{className:"w-5 h-5 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:120,columnNumber:7},this),u.jsxDEV(bt,{children:[u.jsxDEV("div",{className:"space-y-3",children:d.map((v,N)=>u.jsxDEV("div",{className:"flex items-start gap-3",children:[u.jsxDEV("div",{className:"flex-shrink-0 mt-0.5",children:v.passed?u.jsxDEV(No,{className:"w-4 h-4 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:137,columnNumber:19},this):u.jsxDEV(Pd,{className:"w-4 h-4 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:139,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:135,columnNumber:15},this),u.jsxDEV("div",{className:"flex-1",children:[u.jsxDEV("div",{className:`font-medium ${v.passed?"text-green-700":"text-yellow-700"}`,children:v.label},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:143,columnNumber:17},this),u.jsxDEV("div",{className:"text-sm text-gray-600",children:v.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:146,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:142,columnNumber:15},this)]},N,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:134,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:132,columnNumber:9},this),!h&&u.jsxDEV("div",{className:"mt-4 pt-4 border-t",children:u.jsxDEV(Pe,{onClick:l,variant:"outline",className:"w-full",children:[u.jsxDEV(z1,{className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:155,columnNumber:15},this),"Complete Setup Guide"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:154,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:153,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:119,columnNumber:5},this)}function gR(){return u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(Lh,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:171,columnNumber:11},this),"Quick Commands"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:170,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:169,columnNumber:7},this),u.jsxDEV(bt,{children:u.jsxDEV("div",{className:"space-y-3 text-sm",children:[u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui init"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:178,columnNumber:13},this),u.jsxDEV("span",{className:"text-gray-600",children:"Initialize project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:179,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:177,columnNumber:11},this),u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui watch"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:182,columnNumber:13},this),u.jsxDEV("span",{className:"text-gray-600",children:"Start file watching"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:183,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:181,columnNumber:11},this),u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:186,columnNumber:13},this),u.jsxDEV("span",{className:"text-gray-600",children:"Check configuration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:187,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:185,columnNumber:11},this),u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui bundle master"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:190,columnNumber:13},this),u.jsxDEV("span",{className:"text-gray-600",children:"Generate specific bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:191,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:189,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:176,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:175,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:168,columnNumber:5},this)}function yR(){return u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(M1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:205,columnNumber:11},this),"How to Use"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:204,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:203,columnNumber:7},this),u.jsxDEV(bt,{className:"space-y-4",children:[u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"1. Configure Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:11},this),u.jsxDEV("p",{className:"text-sm text-gray-600 mb-2",children:"Edit bundle patterns in the Configuration tab to define which files go into each bundle."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:212,columnNumber:11},this),u.jsxDEV("div",{className:"bg-gray-50 p-3 rounded text-xs font-mono",children:['"api": ["src/api/**/*.js", "src/routes/**/*.js"]',u.jsxDEV("br",{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:216,columnNumber:61},this),'"ui": ["src/components/**/*.jsx", "src/styles/**/*.css"]']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:215,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:9},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"2. Set Up AI Assistant"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:222,columnNumber:11},this),u.jsxDEV("p",{className:"text-sm text-gray-600",children:"Configure cursor rules to help AI assistants understand your project context and coding preferences."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:223,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:221,columnNumber:9},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"3. Monitor Changes"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:229,columnNumber:11},this),u.jsxDEV("p",{className:"text-sm text-gray-600",children:"The Bundles tab shows real-time status. Changed bundles are automatically flagged when files are modified."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:230,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:228,columnNumber:9},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"4. Copy Bundle Content"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:236,columnNumber:11},this),u.jsxDEV("p",{className:"text-sm text-gray-600",children:'Use the "Copy XML" button to get bundle content for AI tools like Claude, ChatGPT, or other code assistants.'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:237,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:235,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:209,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:202,columnNumber:5},this)}function xR(){const[l,a]=Q.useState(0),[i,d]=Q.useState([{id:"install",title:"Install cntx-ui",description:"Install the package globally or in your project",completed:!1,required:!0},{id:"init",title:"Initialize Configuration",description:"Set up bundle configurations for your project",completed:!1,required:!0},{id:"ai-config",title:"AI Bundle Configuration",description:"Use AI to suggest optimal bundle patterns",completed:!1,required:!1},{id:"cursor",title:"Configure AI Assistant",description:"Set up cursor rules for AI development context",completed:!1,required:!1},{id:"customize",title:"Customize Ignore Patterns",description:"Configure which files to exclude from bundles",completed:!1,required:!1},{id:"start",title:"Start the Server",description:"Launch the file watching server",completed:!1,required:!0}]),[h,v]=Q.useState(null),[N,E]=Q.useState(!1),x=async(q,O)=>{try{await navigator.clipboard.writeText(q),v(O),setTimeout(()=>v(null),2e3)}catch(U){console.error("Failed to copy:",U)}},C=async()=>{const q=`Analyze this codebase bundle and suggest an optimal bundle configuration for cntx-ui.
446
-
447
- Based on the file structure and content, recommend 3-6 meaningful bundles with glob patterns that group related files logically.
448
-
449
- Consider these common bundle types:
450
- - Frontend/UI components and pages
451
- - Backend API routes and controllers
452
- - Configuration files
453
- - Documentation
454
- - Tests
455
- - Utilities/helpers
456
- - Styles/assets
457
-
458
- Return ONLY a JSON configuration in this exact format:
459
- {
460
- "bundles": {
461
- "master": ["**/*"],
462
- "frontend": ["src/components/**/*", "src/pages/**/*", "src/hooks/**/*"],
463
- "api": ["src/api/**/*", "routes/**/*", "controllers/**/*"],
464
- "config": ["*.config.*", "package.json", "tsconfig.json"],
465
- "docs": ["README.md", "docs/**/*", "*.md"],
466
- "tests": ["**/*.test.*", "**/*.spec.*", "__tests__/**/*"]
467
- }
468
- }
469
-
470
- Please analyze the following master bundle and suggest appropriate bundles:
471
-
472
- [PASTE YOUR MASTER BUNDLE XML CONTENT HERE]`;try{await navigator.clipboard.writeText(q),E(!0),setTimeout(()=>E(!1),3e3)}catch(O){console.error("Failed to copy AI prompt:",O)}},A=q=>{d(O=>O.map(U=>U.id===q?{...U,completed:!0}:U))},m=[{label:"Global Install (Recommended)",command:"npm install -g cntx-ui",description:"Install globally to use from any project"},{label:"Local Install",command:"npm install cntx-ui",description:"Install in current project only"},{label:"Using Yarn",command:"yarn global add cntx-ui",description:"Global install with Yarn"}],y=({command:q,label:O,description:U})=>u.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4 font-mono text-sm",children:[u.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[u.jsxDEV("span",{className:"text-green-400",children:"$"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:142,columnNumber:9},this),u.jsxDEV(Pe,{variant:"ghost",size:"sm",onClick:()=>x(q,O),className:"text-gray-400 hover:text-white",children:h===O?u.jsxDEV(No,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:150,columnNumber:13},this):u.jsxDEV(kd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:152,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:143,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:141,columnNumber:7},this),u.jsxDEV("div",{className:"text-gray-300",children:q},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:156,columnNumber:7},this),U&&u.jsxDEV("div",{className:"text-gray-500 text-xs mt-2",children:U},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:158,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:140,columnNumber:5},this),V=({step:q,isActive:O})=>u.jsxDEV("div",{className:`flex items-center gap-3 p-3 rounded-lg transition-colors ${O?"bg-blue-50 border border-blue-200":"hover:bg-gray-50"}`,children:[u.jsxDEV("div",{className:"flex-shrink-0",children:q.completed?u.jsxDEV(No,{className:"w-6 h-6 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:168,columnNumber:11},this):u.jsxDEV(ND,{className:`w-6 h-6 ${O?"text-blue-500":"text-gray-300"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:170,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:166,columnNumber:7},this),u.jsxDEV("div",{className:"flex-1",children:[u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV("h3",{className:`font-medium ${O?"text-blue-900":"text-gray-900"}`,children:q.title},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:175,columnNumber:11},this),q.required&&u.jsxDEV(Ll,{variant:"outline",className:"text-xs",children:"Required"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:179,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:174,columnNumber:9},this),u.jsxDEV("p",{className:"text-sm text-gray-600",children:q.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:182,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:173,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:164,columnNumber:5},this);return u.jsxDEV("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100",children:u.jsxDEV("div",{className:"container mx-auto px-4 py-8",children:[u.jsxDEV("div",{className:"text-center mb-8",children:[u.jsxDEV("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Welcome to cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:192,columnNumber:11},this),u.jsxDEV("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Let's get your project set up for AI-powered development with intelligent file bundling and organization."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:193,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:191,columnNumber:9},this),u.jsxDEV("div",{className:"grid lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:[u.jsxDEV("div",{className:"lg:col-span-1",children:u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(yo,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:204,columnNumber:19},this),"Setup Progress"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:203,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:202,columnNumber:15},this),u.jsxDEV(bt,{className:"space-y-2",children:i.map((q,O)=>u.jsxDEV("div",{onClick:()=>a(O),className:"cursor-pointer",children:u.jsxDEV(V,{step:q,isActive:l===O},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:215,columnNumber:21},this)},q.id,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:210,columnNumber:19},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:208,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:201,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:200,columnNumber:11},this),u.jsxDEV("div",{className:"lg:col-span-2 space-y-6",children:[l===0&&u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(Lh,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:229,columnNumber:21},this),"Step 1: Install cntx-ui"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:228,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:227,columnNumber:17},this),u.jsxDEV(bt,{className:"space-y-6",children:[u.jsxDEV("div",{className:"space-y-4",children:m.map((q,O)=>u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:q.label},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:237,columnNumber:25},this),u.jsxDEV(y,{command:q.command,label:q.label,description:q.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:238,columnNumber:25},this)]},O,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:236,columnNumber:23},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:234,columnNumber:19},this),u.jsxDEV(da,{children:[u.jsxDEV(Lh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:244,columnNumber:21},this),u.jsxDEV(fa,{children:["After installation, verify it worked by running: ",u.jsxDEV("code",{className:"bg-gray-100 px-1 rounded",children:"cntx-ui --help"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:246,columnNumber:72},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:245,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:243,columnNumber:19},this),u.jsxDEV("div",{className:"flex justify-between",children:[u.jsxDEV(Pe,{variant:"outline",disabled:!0,children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:251,columnNumber:21},this),u.jsxDEV(Pe,{onClick:()=>{A("install"),a(1)},children:["Mark Complete & Continue ",u.jsxDEV(yc,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:253,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:252,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:250,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:233,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:226,columnNumber:15},this),l===1&&u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(V1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:265,columnNumber:21},this),"Step 2: Initialize Your Project"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:264,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:263,columnNumber:17},this),u.jsxDEV(bt,{className:"space-y-6",children:[u.jsxDEV("div",{children:[u.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Navigate to your project directory in your terminal and initialize cntx-ui configuration:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:271,columnNumber:21},this),u.jsxDEV("div",{className:"space-y-4",children:[u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Navigate to your project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:277,columnNumber:25},this),u.jsxDEV(y,{command:"cd your-project-path",label:"navigate",description:"Replace 'your-project-path' with your actual project path"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:278,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:276,columnNumber:23},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Initialize cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:286,columnNumber:25},this),u.jsxDEV(y,{command:"cntx-ui init",label:"init",description:"Creates .cntx/config.json and .cntxignore files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:287,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:285,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:275,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:270,columnNumber:19},this),u.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"What this creates:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:297,columnNumber:21},this),u.jsxDEV("ul",{className:"text-sm text-blue-800 space-y-1",children:[u.jsxDEV("li",{children:["• ",u.jsxDEV("code",{children:".cntx/config.json"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:299,columnNumber:29},this)," - Bundle configurations"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:299,columnNumber:23},this),u.jsxDEV("li",{children:["• ",u.jsxDEV("code",{children:".cntxignore"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:300,columnNumber:29},this)," - Files and patterns to ignore"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:300,columnNumber:23},this),u.jsxDEV("li",{children:["• ",u.jsxDEV("code",{children:".cursorrules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:301,columnNumber:29},this)," - AI assistant context and rules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:301,columnNumber:23},this),u.jsxDEV("li",{children:"• Default bundles: master, api, ui, config, docs"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:302,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:298,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:296,columnNumber:19},this),u.jsxDEV("div",{className:"flex justify-between",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>a(1),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:307,columnNumber:21},this),u.jsxDEV(Pe,{onClick:()=>{A("init"),a(2)},children:["Mark Complete & Continue ",u.jsxDEV(yc,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:309,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:308,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:306,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:269,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:262,columnNumber:15},this),l===2&&u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:"Step 3: AI Bundle Configuration (Optional)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:320,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:319,columnNumber:17},this),u.jsxDEV(bt,{className:"space-y-6",children:[u.jsxDEV("div",{children:[u.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Let AI analyze your project structure and suggest optimal bundle configurations. This saves time and ensures your bundles are logically organized."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:326,columnNumber:21},this),u.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"How it works:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:331,columnNumber:23},this),u.jsxDEV("ol",{className:"text-sm text-blue-800 space-y-1 list-decimal list-inside",children:[u.jsxDEV("li",{children:"Copy the AI prompt below (includes analysis instructions)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:333,columnNumber:25},this),u.jsxDEV("li",{children:["Generate your master bundle: ",u.jsxDEV("code",{className:"bg-blue-100 px-1 rounded",children:"cntx-ui bundle master"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:334,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:334,columnNumber:25},this),u.jsxDEV("li",{children:"Copy the master bundle XML content"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:335,columnNumber:25},this),u.jsxDEV("li",{children:"Paste both the prompt and bundle into Claude, ChatGPT, or your preferred AI"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:336,columnNumber:25},this),u.jsxDEV("li",{children:"AI returns optimized bundle configuration JSON"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:337,columnNumber:25},this),u.jsxDEV("li",{children:"Apply the configuration using the web interface"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:338,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:332,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:330,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:325,columnNumber:19},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Step 1: Copy AI Analysis Prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:344,columnNumber:21},this),u.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4",children:[u.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[u.jsxDEV("span",{className:"text-green-400 text-sm",children:"AI Bundle Analysis Prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:347,columnNumber:25},this),u.jsxDEV(Pe,{variant:"ghost",size:"sm",onClick:C,className:"text-gray-400 hover:text-white",children:N?u.jsxDEV(u.Fragment,{children:[u.jsxDEV(No,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:356,columnNumber:31},this),"Copied!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:355,columnNumber:29},this):u.jsxDEV(u.Fragment,{children:[u.jsxDEV(kd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:361,columnNumber:31},this),"Copy Prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:360,columnNumber:29},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:348,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:346,columnNumber:23},this),u.jsxDEV("div",{className:"text-gray-300 text-sm",children:"Intelligent prompt for AI analysis of your codebase structure"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:367,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:345,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:343,columnNumber:19},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Step 2: Generate your master bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:374,columnNumber:21},this),u.jsxDEV(y,{command:"cntx-ui bundle master",label:"generate-master",description:"Creates master bundle with all project files for AI analysis"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:375,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:373,columnNumber:19},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Step 3: Get master bundle content"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:383,columnNumber:21},this),u.jsxDEV(y,{command:"cat .cntx/bundles/master.xml",label:"get-bundle",description:"Copy this XML content to paste with the AI prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:384,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:382,columnNumber:19},this),u.jsxDEV(da,{children:[u.jsxDEV(wc,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:392,columnNumber:21},this),u.jsxDEV(fa,{children:[u.jsxDEV("strong",{children:"Pro tip:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:394,columnNumber:23},this)," After the AI suggests bundle configurations, you can paste the JSON directly into the Configuration tab once the server is running!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:393,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:391,columnNumber:19},this),u.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"What AI will suggest:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:399,columnNumber:21},this),u.jsxDEV("div",{className:"grid grid-cols-2 gap-2 text-sm text-green-800",children:[u.jsxDEV("div",{children:"• Frontend/UI components"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:401,columnNumber:23},this),u.jsxDEV("div",{children:"• Backend API routes"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:402,columnNumber:23},this),u.jsxDEV("div",{children:"• Configuration files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:403,columnNumber:23},this),u.jsxDEV("div",{children:"• Documentation"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:404,columnNumber:23},this),u.jsxDEV("div",{children:"• Tests and specs"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:405,columnNumber:23},this),u.jsxDEV("div",{children:"• Utilities and helpers"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:406,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:400,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:398,columnNumber:19},this),u.jsxDEV("div",{className:"flex justify-between",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>a(1),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:411,columnNumber:21},this),u.jsxDEV(Pe,{onClick:()=>{A("ai-config"),a(3)},children:["Continue ",u.jsxDEV(yc,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:413,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:412,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:410,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:324,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:318,columnNumber:15},this),l===3&&u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(yo,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:425,columnNumber:21},this),"Step 4: Configure AI Assistant (Optional)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:424,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:423,columnNumber:17},this),u.jsxDEV(bt,{className:"space-y-6",children:[u.jsxDEV("div",{children:[u.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Cursor rules help AI assistants like Cursor IDE understand your project context, coding preferences, and architecture decisions."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:431,columnNumber:21},this),u.jsxDEV("div",{className:"bg-purple-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium text-purple-900 mb-2",children:"What cursor rules provide:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:436,columnNumber:23},this),u.jsxDEV("div",{className:"grid grid-cols-2 gap-2 text-sm text-purple-800",children:[u.jsxDEV("div",{children:"• Project structure context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:438,columnNumber:25},this),u.jsxDEV("div",{children:"• Coding standards & style"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:439,columnNumber:25},this),u.jsxDEV("div",{children:"• Bundle organization info"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:440,columnNumber:25},this),u.jsxDEV("div",{children:"• Framework preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:441,columnNumber:25},this),u.jsxDEV("div",{children:"• Team conventions"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:442,columnNumber:25},this),u.jsxDEV("div",{children:"• Architectural patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:443,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:437,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:435,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:430,columnNumber:19},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"View and edit cursor rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:449,columnNumber:21},this),u.jsxDEV(y,{command:"code .cursorrules",label:"edit-cursor",description:"Open the automatically generated cursor rules file"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:450,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:448,columnNumber:19},this),u.jsxDEV(da,{children:[u.jsxDEV(yo,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:458,columnNumber:21},this),u.jsxDEV(fa,{children:"The cursor rules file was automatically created during initialization with smart defaults based on your project type. You can customize it anytime using the web interface or by editing the file directly."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:459,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:457,columnNumber:19},this),u.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"Pro tip:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:465,columnNumber:21},this),u.jsxDEV("p",{className:"text-sm text-blue-800",children:'After starting the server, use the "Cursor Rules" tab in the web interface to easily customize your AI assistant settings with templates and live preview.'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:466,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:464,columnNumber:19},this),u.jsxDEV("div",{className:"flex justify-between",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>a(2),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:472,columnNumber:21},this),u.jsxDEV(Pe,{onClick:()=>{A("cursor"),a(4)},children:["Continue ",u.jsxDEV(yc,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:474,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:473,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:471,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:429,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:422,columnNumber:15},this),l===4&&u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(yo,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:486,columnNumber:21},this),"Step 3: Customize Ignore Patterns (Optional)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:485,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:484,columnNumber:17},this),u.jsxDEV(bt,{className:"space-y-6",children:[u.jsxDEV("div",{children:[u.jsxDEV("p",{className:"text-gray-600 mb-4",children:["The ",u.jsxDEV("code",{children:".cntxignore"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:493,columnNumber:27},this)," file helps prevent large or unnecessary files from being bundled:"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:492,columnNumber:21},this),u.jsxDEV("div",{className:"bg-gray-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Default ignore patterns include:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:497,columnNumber:23},this),u.jsxDEV("div",{className:"grid grid-cols-2 gap-2 text-sm text-gray-600",children:[u.jsxDEV("div",{children:"• node_modules/"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:499,columnNumber:25},this),u.jsxDEV("div",{children:"• .git/"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:500,columnNumber:25},this),u.jsxDEV("div",{children:"• dist/, build/"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:501,columnNumber:25},this),u.jsxDEV("div",{children:"• *.log files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:502,columnNumber:25},this),u.jsxDEV("div",{children:"• Media files (.jpg, .png, etc.)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:503,columnNumber:25},this),u.jsxDEV("div",{children:"• Binary files (.exe, .dll, etc.)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:504,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:498,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:496,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:491,columnNumber:19},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Edit ignore patterns (optional)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:510,columnNumber:21},this),u.jsxDEV(y,{command:"code .cntxignore",label:"edit-ignore",description:"Add custom patterns to exclude specific files or directories"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:511,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:509,columnNumber:19},this),u.jsxDEV(da,{children:[u.jsxDEV(Pd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:519,columnNumber:21},this),u.jsxDEV(fa,{children:"Good ignore patterns prevent memory issues and keep bundles focused on relevant code files."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:520,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:518,columnNumber:19},this),u.jsxDEV("div",{className:"flex justify-between",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>a(3),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:526,columnNumber:21},this),u.jsxDEV(Pe,{onClick:()=>{A("customize"),a(5)},children:["Continue ",u.jsxDEV(yc,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:528,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:527,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:525,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:490,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:483,columnNumber:15},this),l===5&&u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(z1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:540,columnNumber:21},this),"Step 6: Start the Server"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:539,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:538,columnNumber:17},this),u.jsxDEV(bt,{className:"space-y-6",children:[u.jsxDEV("div",{children:[u.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Start the cntx-ui server to begin file watching and bundle management:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:546,columnNumber:21},this),u.jsxDEV("div",{className:"space-y-4",children:[u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Start with default port (3333)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:552,columnNumber:25},this),u.jsxDEV(y,{command:"cntx-ui watch",label:"start-default",description:"Starts server on http://localhost:3333"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:553,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:551,columnNumber:23},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Start with custom port"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:561,columnNumber:25},this),u.jsxDEV(y,{command:"cntx-ui watch 8080",label:"start-custom",description:"Starts server on custom port"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:562,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:560,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:550,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:545,columnNumber:19},this),u.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"What happens next:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:572,columnNumber:21},this),u.jsxDEV("ul",{className:"text-sm text-green-800 space-y-1",children:[u.jsxDEV("li",{children:"• File system watching begins"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:574,columnNumber:23},this),u.jsxDEV("li",{children:"• Initial bundles are generated"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:575,columnNumber:23},this),u.jsxDEV("li",{children:"• Web UI becomes available"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:576,columnNumber:23},this),u.jsxDEV("li",{children:"• Real-time bundle updates on file changes"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:577,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:573,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:571,columnNumber:19},this),u.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[u.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"Other useful commands:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:582,columnNumber:21},this),u.jsxDEV("div",{className:"space-y-2 text-sm",children:[u.jsxDEV("div",{children:[u.jsxDEV("code",{children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:28},this)," - Check current configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:23},this),u.jsxDEV("div",{children:[u.jsxDEV("code",{children:"cntx-ui bundle master"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:585,columnNumber:28},this)," - Generate specific bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:585,columnNumber:23},this),u.jsxDEV("div",{children:[u.jsxDEV("code",{children:"cntx-ui bundle api"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:586,columnNumber:28},this)," - Generate API bundle only"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:586,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:583,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:581,columnNumber:19},this),u.jsxDEV("div",{className:"flex justify-between",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>a(4),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:591,columnNumber:21},this),u.jsxDEV(Pe,{onClick:()=>A("start"),className:"bg-green-600 hover:bg-green-700",children:["Launch Server ",u.jsxDEV(TD,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:593,columnNumber:37},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:592,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:590,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:544,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:537,columnNumber:15},this),u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"Quick Reference"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:603,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:602,columnNumber:15},this),u.jsxDEV(bt,{children:u.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Key Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:608,columnNumber:21},this),u.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[u.jsxDEV("li",{children:[u.jsxDEV("code",{children:".cntx/config.json"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:610,columnNumber:27},this)," - Bundle patterns"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:610,columnNumber:23},this),u.jsxDEV("li",{children:[u.jsxDEV("code",{children:".cntxignore"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:611,columnNumber:27},this)," - Ignore patterns"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:611,columnNumber:23},this),u.jsxDEV("li",{children:[u.jsxDEV("code",{children:".cursorrules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:612,columnNumber:27},this)," - AI assistant rules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:612,columnNumber:23},this),u.jsxDEV("li",{children:[u.jsxDEV("code",{children:".cntx/bundles.json"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:613,columnNumber:27},this)," - Bundle cache"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:613,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:609,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:607,columnNumber:19},this),u.jsxDEV("div",{children:[u.jsxDEV("h4",{className:"font-medium mb-2",children:"Web Interface"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:617,columnNumber:21},this),u.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[u.jsxDEV("li",{children:"Bundles - View and manage bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:619,columnNumber:23},this),u.jsxDEV("li",{children:"File Tree - Explore tracked files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:620,columnNumber:23},this),u.jsxDEV("li",{children:"Configuration - Edit bundle patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:621,columnNumber:23},this),u.jsxDEV("li",{children:"Cursor Rules - Manage AI assistant context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:622,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:618,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:616,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:606,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:605,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:601,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:223,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:198,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:189,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:188,columnNumber:5},this)}const YN=new sT;function NR(){const[l,a]=Q.useState("connecting"),[i,d]=Q.useState(!1),[h,v]=Q.useState(!1);return Q.useEffect(()=>{const N=new WebSocket("ws://localhost:3333");return N.onopen=()=>a("connected"),N.onclose=()=>a("disconnected"),()=>N.close()},[]),i?u.jsxDEV(TN,{client:YN,children:u.jsxDEV("div",{className:"relative",children:[u.jsxDEV(Pe,{variant:"ghost",size:"sm",onClick:()=>d(!1),className:"absolute top-4 right-4 z-10",children:u.jsxDEV(ID,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:44,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:38,columnNumber:11},this),u.jsxDEV(xR,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:46,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:37,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:36,columnNumber:7},this):u.jsxDEV(TN,{client:YN,children:u.jsxDEV("div",{className:"min-h-screen bg-background text-foreground",children:[u.jsxDEV("header",{className:"border-b",children:u.jsxDEV("div",{className:"container mx-auto px-4 py-4 flex justify-between items-center",children:[u.jsxDEV("h1",{className:"text-2xl font-bold",children:"cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:57,columnNumber:13},this),u.jsxDEV("div",{className:"flex items-center gap-4",children:[u.jsxDEV(Pe,{variant:"ghost",size:"sm",onClick:()=>v(!h),children:[u.jsxDEV(yD,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:64,columnNumber:17},this),"Help"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:59,columnNumber:15},this),u.jsxDEV("div",{className:"flex items-center gap-2",children:[u.jsxDEV("div",{className:`w-2 h-2 rounded-full ${l==="connected"?"bg-green-500":l==="connecting"?"bg-yellow-500":"bg-red-500"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:68,columnNumber:17},this),u.jsxDEV("span",{className:"text-sm text-muted-foreground",children:l==="connected"?"Connected • Watching files":l==="connecting"?"Connecting...":"Disconnected"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:71,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:67,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:58,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:56,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:55,columnNumber:9},this),u.jsxDEV("main",{className:"container mx-auto px-4 py-6",children:[u.jsxDEV(bR,{onStartSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:82,columnNumber:11},this),u.jsxDEV("div",{className:"grid lg:grid-cols-4 gap-6",children:[u.jsxDEV(wC,{position:"top-right"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:85,columnNumber:13},this),u.jsxDEV("div",{className:"lg:col-span-3",children:u.jsxDEV(lS,{defaultValue:"bundles",className:"space-y-6",children:[u.jsxDEV(iS,{children:[u.jsxDEV(ma,{value:"bundles",children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:91,columnNumber:19},this),u.jsxDEV(ma,{value:"files",children:"File Tree"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:92,columnNumber:19},this),u.jsxDEV(ma,{value:"config",children:"Configuration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:93,columnNumber:19},this),u.jsxDEV(ma,{value:"cursor",className:"flex items-center gap-1",children:[u.jsxDEV(wc,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:95,columnNumber:21},this),"Cursor Rules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:94,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:90,columnNumber:17},this),u.jsxDEV(pa,{value:"bundles",children:u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"Bundle Management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:103,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:102,columnNumber:21},this),u.jsxDEV(bt,{children:u.jsxDEV(jC,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:106,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:105,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:101,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:100,columnNumber:17},this),u.jsxDEV(pa,{value:"files",children:u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"File Explorer"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:114,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:113,columnNumber:21},this),u.jsxDEV(bt,{children:u.jsxDEV(CC,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:117,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:116,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:112,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:111,columnNumber:17},this),u.jsxDEV(pa,{value:"config",children:u.jsxDEV(MC,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:123,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:122,columnNumber:17},this),u.jsxDEV(pa,{value:"cursor",children:u.jsxDEV(hR,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:127,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:126,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:89,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:88,columnNumber:13},this),u.jsxDEV("div",{className:"lg:col-span-1 space-y-6",children:[u.jsxDEV(vR,{onOpenFullSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:135,columnNumber:15},this),h&&u.jsxDEV("div",{className:"space-y-4",children:[u.jsxDEV(gR,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:140,columnNumber:19},this),u.jsxDEV(yR,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:141,columnNumber:19},this),u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{className:"flex items-center gap-2",children:[u.jsxDEV(wc,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:147,columnNumber:25},this),"AI Assistant"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:146,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:145,columnNumber:21},this),u.jsxDEV(bt,{className:"space-y-2",children:[u.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Cursor rules help AI assistants understand your project context and coding preferences."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:152,columnNumber:23},this),u.jsxDEV("div",{className:"text-xs space-y-1",children:[u.jsxDEV("div",{children:"• Project structure & bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:156,columnNumber:25},this),u.jsxDEV("div",{children:"• Coding standards & style"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:157,columnNumber:25},this),u.jsxDEV("div",{children:"• Framework preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:158,columnNumber:25},this),u.jsxDEV("div",{children:"• Team conventions"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:159,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:155,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:151,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:144,columnNumber:19},this),u.jsxDEV(ft,{children:[u.jsxDEV(Nt,{children:u.jsxDEV(St,{children:"Need More Help?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:166,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:165,columnNumber:21},this),u.jsxDEV(bt,{className:"space-y-3",children:[u.jsxDEV(Pe,{variant:"outline",onClick:()=>d(!0),className:"w-full",children:"Open Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:169,columnNumber:23},this),u.jsxDEV("div",{className:"text-sm text-muted-foreground",children:"For detailed setup instructions and troubleshooting."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:176,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:168,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:164,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:139,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:133,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:84,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:80,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:54,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:53,columnNumber:5},this)}Lj.createRoot(document.getElementById("root")).render(u.jsxDEV(Q.StrictMode,{children:u.jsxDEV(NR,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:7,columnNumber:3},void 0));