lens-engine 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +284 -24
- package/daemon.js +914 -343
- package/dashboard/assets/index-B-FwfnUH.css +1 -0
- package/dashboard/assets/index-Dpgp0uUn.js +341 -0
- package/dashboard/index.html +2 -2
- package/package.json +1 -1
- package/dashboard/assets/index-DDXq5eat.js +0 -232
- package/dashboard/assets/index-UUQ9jgzS.css +0 -1
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
var Uy=n=>{throw TypeError(n)};var rf=(n,s,l)=>s.has(n)||Uy("Cannot "+l);var T=(n,s,l)=>(rf(n,s,"read from private field"),l?l.call(n):s.get(n)),ue=(n,s,l)=>s.has(n)?Uy("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(n):s.set(n,l),ae=(n,s,l,i)=>(rf(n,s,"write to private field"),i?i.call(n,l):s.set(n,l),l),Ne=(n,s,l)=>(rf(n,s,"access private method"),l);var nc=(n,s,l,i)=>({set _(u){ae(n,s,u,l)},get _(){return T(n,s,i)}});function YS(n,s){for(var l=0;l<s.length;l++){const i=s[l];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(u){if(u.ep)return;u.ep=!0;const f=l(u);fetch(u.href,f)}})();function xv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var of={exports:{}},li={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.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
|
+
*/var By;function KS(){if(By)return li;By=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(i,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:i,key:h,ref:u!==void 0?u:null,props:f}}return li.Fragment=s,li.jsx=l,li.jsxs=l,li}var qy;function FS(){return qy||(qy=1,of.exports=KS()),of.exports}var c=FS(),cf={exports:{}},be={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Hy;function XS(){if(Hy)return be;Hy=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function j(M){return M===null||typeof M!="object"?null:(M=x&&M[x]||M["@@iterator"],typeof M=="function"?M:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,E={};function C(M,J,ee){this.props=M,this.context=J,this.refs=E,this.updater=ee||w}C.prototype.isReactComponent={},C.prototype.setState=function(M,J){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,J,"setState")},C.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function D(){}D.prototype=C.prototype;function P(M,J,ee){this.props=M,this.context=J,this.refs=E,this.updater=ee||w}var O=P.prototype=new D;O.constructor=P,N(O,C.prototype),O.isPureReactComponent=!0;var F=Array.isArray;function W(){}var H={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function X(M,J,ee){var te=ee.ref;return{$$typeof:n,type:M,key:J,ref:te!==void 0?te:null,props:ee}}function Q(M,J){return X(M.type,J,M.props)}function $(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function ne(M){var J={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ee){return J[ee]})}var fe=/\/+/g;function he(M,J){return typeof M=="object"&&M!==null&&M.key!=null?ne(""+M.key):J.toString(36)}function ie(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(W,W):(M.status="pending",M.then(function(J){M.status==="pending"&&(M.status="fulfilled",M.value=J)},function(J){M.status==="pending"&&(M.status="rejected",M.reason=J)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function k(M,J,ee,te,ge){var ve=typeof M;(ve==="undefined"||ve==="boolean")&&(M=null);var ce=!1;if(M===null)ce=!0;else switch(ve){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(M.$$typeof){case n:case s:ce=!0;break;case v:return ce=M._init,k(ce(M._payload),J,ee,te,ge)}}if(ce)return ge=ge(M),ce=te===""?"."+he(M,0):te,F(ge)?(ee="",ce!=null&&(ee=ce.replace(fe,"$&/")+"/"),k(ge,J,ee,"",function(Nt){return Nt})):ge!=null&&($(ge)&&(ge=Q(ge,ee+(ge.key==null||M&&M.key===ge.key?"":(""+ge.key).replace(fe,"$&/")+"/")+ce)),J.push(ge)),1;ce=0;var Ie=te===""?".":te+":";if(F(M))for(var Le=0;Le<M.length;Le++)te=M[Le],ve=Ie+he(te,Le),ce+=k(te,J,ee,ve,ge);else if(Le=j(M),typeof Le=="function")for(M=Le.call(M),Le=0;!(te=M.next()).done;)te=te.value,ve=Ie+he(te,Le++),ce+=k(te,J,ee,ve,ge);else if(ve==="object"){if(typeof M.then=="function")return k(ie(M),J,ee,te,ge);throw J=String(M),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return ce}function V(M,J,ee){if(M==null)return M;var te=[],ge=0;return k(M,te,"","",function(ve){return J.call(ee,ve,ge++)}),te}function K(M){if(M._status===-1){var J=M._result;J=J(),J.then(function(ee){(M._status===0||M._status===-1)&&(M._status=1,M._result=ee)},function(ee){(M._status===0||M._status===-1)&&(M._status=2,M._result=ee)}),M._status===-1&&(M._status=0,M._result=J)}if(M._status===1)return M._result.default;throw M._result}var me=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},ye={map:V,forEach:function(M,J,ee){V(M,function(){J.apply(this,arguments)},ee)},count:function(M){var J=0;return V(M,function(){J++}),J},toArray:function(M){return V(M,function(J){return J})||[]},only:function(M){if(!$(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return be.Activity=b,be.Children=ye,be.Component=C,be.Fragment=l,be.Profiler=u,be.PureComponent=P,be.StrictMode=i,be.Suspense=p,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,be.__COMPILER_RUNTIME={__proto__:null,c:function(M){return H.H.useMemoCache(M)}},be.cache=function(M){return function(){return M.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(M,J,ee){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var te=N({},M.props),ge=M.key;if(J!=null)for(ve in J.key!==void 0&&(ge=""+J.key),J)!q.call(J,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&J.ref===void 0||(te[ve]=J[ve]);var ve=arguments.length-2;if(ve===1)te.children=ee;else if(1<ve){for(var ce=Array(ve),Ie=0;Ie<ve;Ie++)ce[Ie]=arguments[Ie+2];te.children=ce}return X(M.type,ge,te)},be.createContext=function(M){return M={$$typeof:h,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:f,_context:M},M},be.createElement=function(M,J,ee){var te,ge={},ve=null;if(J!=null)for(te in J.key!==void 0&&(ve=""+J.key),J)q.call(J,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ge[te]=J[te]);var ce=arguments.length-2;if(ce===1)ge.children=ee;else if(1<ce){for(var Ie=Array(ce),Le=0;Le<ce;Le++)Ie[Le]=arguments[Le+2];ge.children=Ie}if(M&&M.defaultProps)for(te in ce=M.defaultProps,ce)ge[te]===void 0&&(ge[te]=ce[te]);return X(M,ve,ge)},be.createRef=function(){return{current:null}},be.forwardRef=function(M){return{$$typeof:m,render:M}},be.isValidElement=$,be.lazy=function(M){return{$$typeof:v,_payload:{_status:-1,_result:M},_init:K}},be.memo=function(M,J){return{$$typeof:g,type:M,compare:J===void 0?null:J}},be.startTransition=function(M){var J=H.T,ee={};H.T=ee;try{var te=M(),ge=H.S;ge!==null&&ge(ee,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(W,me)}catch(ve){me(ve)}finally{J!==null&&ee.types!==null&&(J.types=ee.types),H.T=J}},be.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},be.use=function(M){return H.H.use(M)},be.useActionState=function(M,J,ee){return H.H.useActionState(M,J,ee)},be.useCallback=function(M,J){return H.H.useCallback(M,J)},be.useContext=function(M){return H.H.useContext(M)},be.useDebugValue=function(){},be.useDeferredValue=function(M,J){return H.H.useDeferredValue(M,J)},be.useEffect=function(M,J){return H.H.useEffect(M,J)},be.useEffectEvent=function(M){return H.H.useEffectEvent(M)},be.useId=function(){return H.H.useId()},be.useImperativeHandle=function(M,J,ee){return H.H.useImperativeHandle(M,J,ee)},be.useInsertionEffect=function(M,J){return H.H.useInsertionEffect(M,J)},be.useLayoutEffect=function(M,J){return H.H.useLayoutEffect(M,J)},be.useMemo=function(M,J){return H.H.useMemo(M,J)},be.useOptimistic=function(M,J){return H.H.useOptimistic(M,J)},be.useReducer=function(M,J,ee){return H.H.useReducer(M,J,ee)},be.useRef=function(M){return H.H.useRef(M)},be.useState=function(M){return H.H.useState(M)},be.useSyncExternalStore=function(M,J,ee){return H.H.useSyncExternalStore(M,J,ee)},be.useTransition=function(){return H.H.useTransition()},be.version="19.2.4",be}var Py;function zi(){return Py||(Py=1,cf.exports=XS()),cf.exports}var _=zi();const nr=xv(_),Sv=YS({__proto__:null,default:nr},[_]);var uf={exports:{}},ri={},df={exports:{}},ff={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Vy;function ZS(){return Vy||(Vy=1,(function(n){function s(k,V){var K=k.length;k.push(V);e:for(;0<K;){var me=K-1>>>1,ye=k[me];if(0<u(ye,V))k[me]=V,k[K]=ye,K=me;else break e}}function l(k){return k.length===0?null:k[0]}function i(k){if(k.length===0)return null;var V=k[0],K=k.pop();if(K!==V){k[0]=K;e:for(var me=0,ye=k.length,M=ye>>>1;me<M;){var J=2*(me+1)-1,ee=k[J],te=J+1,ge=k[te];if(0>u(ee,K))te<ye&&0>u(ge,ee)?(k[me]=ge,k[te]=K,me=te):(k[me]=ee,k[J]=K,me=J);else if(te<ye&&0>u(ge,K))k[me]=ge,k[te]=K,me=te;else break e}}return V}function u(k,V){var K=k.sortIndex-V.sortIndex;return K!==0?K:k.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],v=1,b=null,x=3,j=!1,w=!1,N=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function O(k){for(var V=l(g);V!==null;){if(V.callback===null)i(g);else if(V.startTime<=k)i(g),V.sortIndex=V.expirationTime,s(p,V);else break;V=l(g)}}function F(k){if(N=!1,O(k),!w)if(l(p)!==null)w=!0,W||(W=!0,ne());else{var V=l(g);V!==null&&ie(F,V.startTime-k)}}var W=!1,H=-1,q=5,X=-1;function Q(){return E?!0:!(n.unstable_now()-X<q)}function $(){if(E=!1,W){var k=n.unstable_now();X=k;var V=!0;try{e:{w=!1,N&&(N=!1,D(H),H=-1),j=!0;var K=x;try{t:{for(O(k),b=l(p);b!==null&&!(b.expirationTime>k&&Q());){var me=b.callback;if(typeof me=="function"){b.callback=null,x=b.priorityLevel;var ye=me(b.expirationTime<=k);if(k=n.unstable_now(),typeof ye=="function"){b.callback=ye,O(k),V=!0;break t}b===l(p)&&i(p),O(k)}else i(p);b=l(p)}if(b!==null)V=!0;else{var M=l(g);M!==null&&ie(F,M.startTime-k),V=!1}}break e}finally{b=null,x=K,j=!1}V=void 0}}finally{V?ne():W=!1}}}var ne;if(typeof P=="function")ne=function(){P($)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,he=fe.port2;fe.port1.onmessage=$,ne=function(){he.postMessage(null)}}else ne=function(){C($,0)};function ie(k,V){H=C(function(){k(n.unstable_now())},V)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(k){switch(x){case 1:case 2:case 3:var V=3;break;default:V=x}var K=x;x=V;try{return k()}finally{x=K}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(k,V){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var K=x;x=k;try{return V()}finally{x=K}},n.unstable_scheduleCallback=function(k,V,K){var me=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?me+K:me):K=me,k){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=K+ye,k={id:v++,callback:V,priorityLevel:k,startTime:K,expirationTime:ye,sortIndex:-1},K>me?(k.sortIndex=K,s(g,k),l(p)===null&&k===l(g)&&(N?(D(H),H=-1):N=!0,ie(F,K-me))):(k.sortIndex=ye,s(p,k),w||j||(w=!0,W||(W=!0,ne()))),k},n.unstable_shouldYield=Q,n.unstable_wrapCallback=function(k){var V=x;return function(){var K=x;x=V;try{return k.apply(this,arguments)}finally{x=K}}}})(ff)),ff}var Qy;function JS(){return Qy||(Qy=1,df.exports=ZS()),df.exports}var hf={exports:{}},St={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Gy;function IS(){if(Gy)return St;Gy=1;var n=zi();function s(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(s(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,g,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:p,containerInfo:g,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,St.createPortal=function(p,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return f(p,g,null,v)},St.flushSync=function(p){var g=h.T,v=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=v,i.d.f()}},St.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},St.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},St.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var v=g.as,b=m(v,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:j}):v==="script"&&i.d.X(p,{crossOrigin:b,integrity:x,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},St.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},St.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,b=m(v,g.crossOrigin);i.d.L(p,v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},St.preloadModule=function(p,g){if(typeof p=="string")if(g){var v=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},St.requestFormReset=function(p){i.d.r(p)},St.unstable_batchedUpdates=function(p,g){return p(g)},St.useFormState=function(p,g,v){return h.H.useFormState(p,g,v)},St.useFormStatus=function(){return h.H.useHostTransitionStatus()},St.version="19.2.4",St}var Yy;function jv(){if(Yy)return hf.exports;Yy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),hf.exports=IS(),hf.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Ky;function $S(){if(Ky)return ri;Ky=1;var n=JS(),s=zi(),l=jv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var d=o.alternate;if(d===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===d.child){for(d=o.child;d;){if(d===a)return p(o),e;if(d===r)return p(o),t;d=d.sibling}throw Error(i(188))}if(a.return!==r.return)a=o,r=d;else{for(var y=!1,S=o.child;S;){if(S===a){y=!0,a=o,r=d;break}if(S===r){y=!0,r=o,a=d;break}S=S.sibling}if(!y){for(S=d.child;S;){if(S===a){y=!0,a=d,r=o;break}if(S===r){y=!0,r=d,a=o;break}S=S.sibling}if(!y)throw Error(i(189))}}if(a.alternate!==r)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),P=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case C:return"Profiler";case E:return"StrictMode";case F:return"Suspense";case W:return"SuspenseList";case X:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case P:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ie=Array.isArray,k=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},me=[],ye=-1;function M(e){return{current:e}}function J(e){0>ye||(e.current=me[ye],me[ye]=null,ye--)}function ee(e,t){ye++,me[ye]=e.current,e.current=t}var te=M(null),ge=M(null),ve=M(null),ce=M(null);function Ie(e,t){switch(ee(ve,t),ee(ge,e),ee(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ry(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ry(t),e=iy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(te),ee(te,e)}function Le(){J(te),J(ge),J(ve)}function Nt(e){e.memoizedState!==null&&ee(ce,e);var t=te.current,a=iy(t,e.type);t!==a&&(ee(ge,e),ee(te,a))}function Ht(e){ge.current===e&&(J(te),J(ge)),ce.current===e&&(J(ce),ti._currentValue=K)}var gn,ur;function Dn(e){if(gn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gn=t&&t[1]||"",ur=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+gn+e+ur}var Ys=!1;function Ks(e,t){if(!e||Ys)return"";Ys=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(G){var B=G}Reflect.construct(e,[],I)}else{try{I.call()}catch(G){B=G}e.call(I.prototype)}}else{try{throw Error()}catch(G){B=G}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(G){if(G&&B&&typeof G.stack=="string")return[G.stack,B.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 d=r.DetermineComponentFrameRoot(),y=d[0],S=d[1];if(y&&S){var R=y.split(`
|
|
44
|
+
`),U=S.split(`
|
|
45
|
+
`);for(o=r=0;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;for(;o<U.length&&!U[o].includes("DetermineComponentFrameRoot");)o++;if(r===R.length||o===U.length)for(r=R.length-1,o=U.length-1;1<=r&&0<=o&&R[r]!==U[o];)o--;for(;1<=r&&0<=o;r--,o--)if(R[r]!==U[o]){if(r!==1||o!==1)do if(r--,o--,0>o||R[r]!==U[o]){var Y=`
|
|
46
|
+
`+R[r].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=r&&0<=o);break}}}finally{Ys=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Dn(a):""}function pa(e,t){switch(e.tag){case 26:case 27:case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return e.child!==t&&t!==null?Dn("Suspense Fallback"):Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 15:return Ks(e.type,!1);case 11:return Ks(e.type.render,!1);case 1:return Ks(e.type,!0);case 31:return Dn("Activity");default:return""}}function Fs(e){try{var t="",a=null;do t+=pa(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
|
+
Error generating stack: `+r.message+`
|
|
48
|
+
`+r.stack}}var yn=Object.prototype.hasOwnProperty,dr=n.unstable_scheduleCallback,fr=n.unstable_cancelCallback,Ui=n.unstable_shouldYield,Kc=n.unstable_requestPaint,_t=n.unstable_now,Fc=n.unstable_getCurrentPriorityLevel,Ge=n.unstable_ImmediatePriority,mt=n.unstable_UserBlockingPriority,xt=n.unstable_NormalPriority,Bi=n.unstable_LowPriority,Hh=n.unstable_IdlePriority,C0=n.log,R0=n.unstable_setDisableYieldValue,hr=null,Pt=null;function ga(e){if(typeof C0=="function"&&R0(e),Pt&&typeof Pt.setStrictMode=="function")try{Pt.setStrictMode(hr,e)}catch{}}var Vt=Math.clz32?Math.clz32:A0,T0=Math.log,M0=Math.LN2;function A0(e){return e>>>=0,e===0?32:31-(T0(e)/M0|0)|0}var qi=256,Hi=262144,Pi=4194304;function ls(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 e}}function Vi(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var o=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~d,r!==0?o=ls(r):(y&=S,y!==0?o=ls(y):a||(a=S&~e,a!==0&&(o=ls(a))))):(S=r&~d,S!==0?o=ls(S):y!==0?o=ls(y):a||(a=r&~e,a!==0&&(o=ls(a)))),o===0?0:t!==0&&t!==o&&(t&d)===0&&(d=o&-o,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:o}function mr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function O0(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-1}}function Ph(){var e=Pi;return Pi<<=1,(Pi&62914560)===0&&(Pi=4194304),e}function Xc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function pr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function k0(e,t,a,r,o,d){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=y&~a;0<a;){var Y=31-Vt(a),I=1<<Y;S[Y]=0,R[Y]=-1;var B=U[Y];if(B!==null)for(U[Y]=null,Y=0;Y<B.length;Y++){var G=B[Y];G!==null&&(G.lane&=-536870913)}a&=~I}r!==0&&Vh(e,r,0),d!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Vh(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Vt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Qh(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Vt(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function Gh(e,t){var a=t&-t;return a=(a&42)!==0?1:Zc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Zc(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 Jc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yh(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:My(e.type))}function Kh(e,t){var a=V.p;try{return V.p=e,t()}finally{V.p=a}}var ya=Math.random().toString(36).slice(2),pt="__reactFiber$"+ya,Tt="__reactProps$"+ya,Xs="__reactContainer$"+ya,Ic="__reactEvents$"+ya,z0="__reactListeners$"+ya,D0="__reactHandles$"+ya,Fh="__reactResources$"+ya,gr="__reactMarker$"+ya;function $c(e){delete e[pt],delete e[Tt],delete e[Ic],delete e[z0],delete e[D0]}function Zs(e){var t=e[pt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xs]||a[pt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=my(e);e!==null;){if(a=e[pt])return a;e=my(e)}return t}e=a,a=e.parentNode}return null}function Js(e){if(e=e[pt]||e[Xs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Is(e){var t=e[Fh];return t||(t=e[Fh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[gr]=!0}var Xh=new Set,Zh={};function rs(e,t){$s(e,t),$s(e+"Capture",t)}function $s(e,t){for(Zh[e]=t,e=0;e<t.length;e++)Xh.add(t[e])}var L0=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]*$"),Jh={},Ih={};function U0(e){return yn.call(Ih,e)?!0:yn.call(Jh,e)?!1:L0.test(e)?Ih[e]=!0:(Jh[e]=!0,!1)}function Qi(e,t,a){if(U0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Gi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Ln(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $h(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function B0(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(y){a=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wc(e){if(!e._valueTracker){var t=$h(e)?"checked":"value";e._valueTracker=B0(e,t,""+e[t])}}function Wh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=$h(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Yi(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}}var q0=/[\n"\\]/g;function en(e){return e.replace(q0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function eu(e,t,a,r,o,d,y,S){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Wt(t)):e.value!==""+Wt(t)&&(e.value=""+Wt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?tu(e,y,Wt(t)):a!=null?tu(e,y,Wt(a)):r!=null&&e.removeAttribute("value"),o==null&&d!=null&&(e.defaultChecked=!!d),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Wt(S):e.removeAttribute("name")}function em(e,t,a,r,o,d,y,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Wc(e);return}a=a!=null?""+Wt(a):"",t=t!=null?""+Wt(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Wc(e)}function tu(e,t,a){t==="number"&&Yi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ws(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Wt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function tm(e,t,a){if(t!=null&&(t=""+Wt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Wt(a):""}function nm(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Wt(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Wc(e)}function el(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var H0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function am(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||H0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function sm(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&am(e,o,r)}else for(var d in t)t.hasOwnProperty(d)&&am(e,d,t[d])}function nu(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}}var P0=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"]]),V0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ki(e){return V0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Un(){}var au=null;function su(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tl=null,nl=null;function lm(e){var t=Js(e);if(t&&(e=t.stateNode)){var a=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(eu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[Tt]||null;if(!o)throw Error(i(90));eu(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Wh(r)}break e;case"textarea":tm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ws(e,!!a.multiple,t,!1)}}}var lu=!1;function rm(e,t,a){if(lu)return e(t,a);lu=!0;try{var r=e(t);return r}finally{if(lu=!1,(tl!==null||nl!==null)&&(zo(),tl&&(t=tl,e=nl,nl=tl=null,lm(t),e)))for(t=0;t<e.length;t++)lm(e[t])}}function br(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Tt]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ru=!1;if(Bn)try{var vr={};Object.defineProperty(vr,"passive",{get:function(){ru=!0}}),window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch{ru=!1}var ba=null,iu=null,Fi=null;function im(){if(Fi)return Fi;var e,t=iu,a=t.length,r,o="value"in ba?ba.value:ba.textContent,d=o.length;for(e=0;e<a&&t[e]===o[e];e++);var y=a-e;for(r=1;r<=y&&t[a-r]===o[d-r];r++);return Fi=o.slice(e,1<r?1-r:void 0)}function Xi(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 Zi(){return!0}function om(){return!1}function Mt(e){function t(a,r,o,d,y){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Zi:om,this.isPropagationStopped=om,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Zi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Zi)},persist:function(){},isPersistent:Zi}),t}var is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ji=Mt(is),xr=b({},is,{view:0,detail:0}),Q0=Mt(xr),ou,cu,Sr,Ii=b({},xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:du,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!==Sr&&(Sr&&e.type==="mousemove"?(ou=e.screenX-Sr.screenX,cu=e.screenY-Sr.screenY):cu=ou=0,Sr=e),ou)},movementY:function(e){return"movementY"in e?e.movementY:cu}}),cm=Mt(Ii),G0=b({},Ii,{dataTransfer:0}),Y0=Mt(G0),K0=b({},xr,{relatedTarget:0}),uu=Mt(K0),F0=b({},is,{animationName:0,elapsedTime:0,pseudoElement:0}),X0=Mt(F0),Z0=b({},is,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J0=Mt(Z0),I0=b({},is,{data:0}),um=Mt(I0),$0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W0={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"},e1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e1[e])?!!t[e]:!1}function du(){return t1}var n1=b({},xr,{key:function(e){if(e.key){var t=$0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:du,charCode:function(e){return e.type==="keypress"?Xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a1=Mt(n1),s1=b({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dm=Mt(s1),l1=b({},xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:du}),r1=Mt(l1),i1=b({},is,{propertyName:0,elapsedTime:0,pseudoElement:0}),o1=Mt(i1),c1=b({},Ii,{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}),u1=Mt(c1),d1=b({},is,{newState:0,oldState:0}),f1=Mt(d1),h1=[9,13,27,32],fu=Bn&&"CompositionEvent"in window,jr=null;Bn&&"documentMode"in document&&(jr=document.documentMode);var m1=Bn&&"TextEvent"in window&&!jr,fm=Bn&&(!fu||jr&&8<jr&&11>=jr),hm=" ",mm=!1;function pm(e,t){switch(e){case"keyup":return h1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function p1(e,t){switch(e){case"compositionend":return gm(t);case"keypress":return t.which!==32?null:(mm=!0,hm);case"textInput":return e=t.data,e===hm&&mm?null:e;default:return null}}function g1(e,t){if(al)return e==="compositionend"||!fu&&pm(e,t)?(e=im(),Fi=iu=ba=null,al=!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 fm&&t.locale!=="ko"?null:t.data;default:return null}}var y1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!y1[e.type]:t==="textarea"}function bm(e,t,a,r){tl?nl?nl.push(r):nl=[r]:tl=r,t=Po(t,"onChange"),0<t.length&&(a=new Ji("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Nr=null,_r=null;function b1(e){ey(e,0)}function $i(e){var t=yr(e);if(Wh(t))return e}function vm(e,t){if(e==="change")return t}var xm=!1;if(Bn){var hu;if(Bn){var mu="oninput"in document;if(!mu){var Sm=document.createElement("div");Sm.setAttribute("oninput","return;"),mu=typeof Sm.oninput=="function"}hu=mu}else hu=!1;xm=hu&&(!document.documentMode||9<document.documentMode)}function jm(){Nr&&(Nr.detachEvent("onpropertychange",Nm),_r=Nr=null)}function Nm(e){if(e.propertyName==="value"&&$i(_r)){var t=[];bm(t,_r,e,su(e)),rm(b1,t)}}function v1(e,t,a){e==="focusin"?(jm(),Nr=t,_r=a,Nr.attachEvent("onpropertychange",Nm)):e==="focusout"&&jm()}function x1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(_r)}function S1(e,t){if(e==="click")return $i(t)}function j1(e,t){if(e==="input"||e==="change")return $i(t)}function N1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:N1;function wr(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!yn.call(t,o)||!Qt(e[o],t[o]))return!1}return!0}function _m(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wm(e,t){var a=_m(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_m(a)}}function Em(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Em(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Yi(e.document)}return t}function pu(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")}var _1=Bn&&"documentMode"in document&&11>=document.documentMode,sl=null,gu=null,Er=null,yu=!1;function Rm(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;yu||sl==null||sl!==Yi(r)||(r=sl,"selectionStart"in r&&pu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&wr(Er,r)||(Er=r,r=Po(gu,"onSelect"),0<r.length&&(t=new Ji("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=sl)))}function os(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ll={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionrun:os("Transition","TransitionRun"),transitionstart:os("Transition","TransitionStart"),transitioncancel:os("Transition","TransitionCancel"),transitionend:os("Transition","TransitionEnd")},bu={},Tm={};Bn&&(Tm=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function cs(e){if(bu[e])return bu[e];if(!ll[e])return e;var t=ll[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Tm)return bu[e]=t[a];return e}var Mm=cs("animationend"),Am=cs("animationiteration"),Om=cs("animationstart"),w1=cs("transitionrun"),E1=cs("transitionstart"),C1=cs("transitioncancel"),km=cs("transitionend"),zm=new Map,vu="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(" ");vu.push("scrollEnd");function bn(e,t){zm.set(e,t),rs(t,[e])}var Wi=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)},tn=[],rl=0,xu=0;function eo(){for(var e=rl,t=xu=rl=0;t<e;){var a=tn[t];tn[t++]=null;var r=tn[t];tn[t++]=null;var o=tn[t];tn[t++]=null;var d=tn[t];if(tn[t++]=null,r!==null&&o!==null){var y=r.pending;y===null?o.next=o:(o.next=y.next,y.next=o),r.pending=o}d!==0&&Dm(a,o,d)}}function to(e,t,a,r){tn[rl++]=e,tn[rl++]=t,tn[rl++]=a,tn[rl++]=r,xu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Su(e,t,a,r){return to(e,t,a,r),no(e)}function us(e,t){return to(e,null,null,t),no(e)}function Dm(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,d=e.return;d!==null;)d.childLanes|=a,r=d.alternate,r!==null&&(r.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(o=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,o&&t!==null&&(o=31-Vt(a),e=d.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),d):null}function no(e){if(50<Xr)throw Xr=0,Md=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var il={};function R1(e,t,a,r){this.tag=e,this.key=a,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,a,r){return new R1(e,t,a,r)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qn(e,t){var a=e.alternate;return a===null?(a=Gt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Lm(e,t){e.flags&=65011714;var a=e.alternate;return a===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.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ao(e,t,a,r,o,d){var y=0;if(r=e,typeof e=="function")ju(e)&&(y=1);else if(typeof e=="string")y=kS(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case X:return e=Gt(31,a,t,o),e.elementType=X,e.lanes=d,e;case N:return ds(a.children,o,d,t);case E:y=8,o|=24;break;case C:return e=Gt(12,a,t,o|2),e.elementType=C,e.lanes=d,e;case F:return e=Gt(13,a,t,o),e.elementType=F,e.lanes=d,e;case W:return e=Gt(19,a,t,o),e.elementType=W,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:y=10;break e;case D:y=9;break e;case O:y=11;break e;case H:y=14;break e;case q:y=16,r=null;break e}y=29,a=Error(i(130,e===null?"null":typeof e,"")),r=null}return t=Gt(y,a,t,o),t.elementType=e,t.type=r,t.lanes=d,t}function ds(e,t,a,r){return e=Gt(7,e,r,t),e.lanes=a,e}function Nu(e,t,a){return e=Gt(6,e,null,t),e.lanes=a,e}function Um(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function _u(e,t,a){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bm=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var a=Bm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Fs(t)},Bm.set(e,t),t)}return{value:e,source:t,stack:Fs(t)}}var ol=[],cl=0,so=null,Cr=0,an=[],sn=0,va=null,En=1,Cn="";function Hn(e,t){ol[cl++]=Cr,ol[cl++]=so,so=e,Cr=t}function qm(e,t,a){an[sn++]=En,an[sn++]=Cn,an[sn++]=va,va=e;var r=En;e=Cn;var o=32-Vt(r)-1;r&=~(1<<o),a+=1;var d=32-Vt(t)+o;if(30<d){var y=o-o%5;d=(r&(1<<y)-1).toString(32),r>>=y,o-=y,En=1<<32-Vt(t)+o|a<<o|r,Cn=d+e}else En=1<<d|a<<o|r,Cn=e}function wu(e){e.return!==null&&(Hn(e,1),qm(e,1,0))}function Eu(e){for(;e===so;)so=ol[--cl],ol[cl]=null,Cr=ol[--cl],ol[cl]=null;for(;e===va;)va=an[--sn],an[sn]=null,Cn=an[--sn],an[sn]=null,En=an[--sn],an[sn]=null}function Hm(e,t){an[sn++]=En,an[sn++]=Cn,an[sn++]=va,En=t.id,Cn=t.overflow,va=e}var gt=null,Fe=null,Me=!1,xa=null,ln=!1,Cu=Error(i(519));function Sa(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rr(nn(t,e)),Cu}function Pm(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[pt]=e,t[Tt]=r,a){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(a=0;a<Jr.length;a++)Ee(Jr[a],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),em(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),nm(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||sy(t.textContent,a)?(r.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),r.onScroll!=null&&Ee("scroll",t),r.onScrollEnd!=null&&Ee("scrollend",t),r.onClick!=null&&(t.onclick=Un),t=!0):t=!1,t||Sa(e,!0)}function Vm(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:gt=gt.return}}function ul(e){if(e!==gt)return!1;if(!Me)return Vm(e),Me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Yd(e.type,e.memoizedProps)),a=!a),a&&Fe&&Sa(e),Vm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=hy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=hy(e)}else t===27?(t=Fe,Da(e.type)?(e=Jd,Jd=null,Fe=e):Fe=t):Fe=gt?on(e.stateNode.nextSibling):null;return!0}function fs(){Fe=gt=null,Me=!1}function Ru(){var e=xa;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),xa=null),e}function Rr(e){xa===null?xa=[e]:xa.push(e)}var Tu=M(null),hs=null,Pn=null;function ja(e,t,a){ee(Tu,t._currentValue),t._currentValue=a}function Vn(e){e._currentValue=Tu.current,J(Tu)}function Mu(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Au(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var d=o.dependencies;if(d!==null){var y=o.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=o;for(var R=0;R<t.length;R++)if(S.context===t[R]){d.lanes|=a,S=d.alternate,S!==null&&(S.lanes|=a),Mu(d.return,a,e),r||(y=null);break e}d=S.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(i(341));y.lanes|=a,d=y.alternate,d!==null&&(d.lanes|=a),Mu(y,a,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function dl(e,t,a,r){e=null;for(var o=t,d=!1;o!==null;){if(!d){if((o.flags&524288)!==0)d=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var S=o.type;Qt(o.pendingProps.value,y.value)||(e!==null?e.push(S):e=[S])}}else if(o===ce.current){if(y=o.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ti):e=[ti])}o=o.return}e!==null&&Au(t,e,a,r),t.flags|=262144}function lo(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ms(e){hs=e,Pn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return Qm(hs,e)}function ro(e,t){return hs===null&&ms(e),Qm(e,t)}function Qm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Pn===null){if(e===null)throw Error(i(308));Pn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pn=Pn.next=t;return a}var T1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},M1=n.unstable_scheduleCallback,A1=n.unstable_NormalPriority,st={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ou(){return{controller:new T1,data:new Map,refCount:0}}function Tr(e){e.refCount--,e.refCount===0&&M1(A1,function(){e.controller.abort()})}var Mr=null,ku=0,fl=0,hl=null;function O1(e,t){if(Mr===null){var a=Mr=[];ku=0,fl=Ld(),hl={status:"pending",value:void 0,then:function(r){a.push(r)}}}return ku++,t.then(Gm,Gm),t}function Gm(){if(--ku===0&&Mr!==null){hl!==null&&(hl.status="fulfilled");var e=Mr;Mr=null,fl=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function k1(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Ym=k.S;k.S=function(e,t){Rg=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&O1(e,t),Ym!==null&&Ym(e,t)};var ps=M(null);function zu(){var e=ps.current;return e!==null?e:Ye.pooledCache}function io(e,t){t===null?ee(ps,ps.current):ee(ps,t.pool)}function Km(){var e=zu();return e===null?null:{parent:st._currentValue,pool:e}}var ml=Error(i(460)),Du=Error(i(474)),oo=Error(i(542)),co={then:function(){}};function Fm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Un,Un),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jm(e),e;default:if(typeof t.status=="string")t.then(Un,Un);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));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,Jm(e),e}throw ys=t,ml}}function gs(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ys=a,ml):a}}var ys=null;function Zm(){if(ys===null)throw Error(i(459));var e=ys;return ys=null,e}function Jm(e){if(e===ml||e===oo)throw Error(i(483))}var pl=null,Ar=0;function uo(e){var t=Ar;return Ar+=1,pl===null&&(pl=[]),Xm(pl,e,t)}function Or(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fo(e,t){throw t.$$typeof===x?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Im(e){function t(z,A){if(e){var L=z.deletions;L===null?(z.deletions=[A],z.flags|=16):L.push(A)}}function a(z,A){if(!e)return null;for(;A!==null;)t(z,A),A=A.sibling;return null}function r(z){for(var A=new Map;z!==null;)z.key!==null?A.set(z.key,z):A.set(z.index,z),z=z.sibling;return A}function o(z,A){return z=qn(z,A),z.index=0,z.sibling=null,z}function d(z,A,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<A?(z.flags|=67108866,A):L):(z.flags|=67108866,A)):(z.flags|=1048576,A)}function y(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function S(z,A,L,Z){return A===null||A.tag!==6?(A=Nu(L,z.mode,Z),A.return=z,A):(A=o(A,L),A.return=z,A)}function R(z,A,L,Z){var de=L.type;return de===N?Y(z,A,L.props.children,Z,L.key):A!==null&&(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===q&&gs(de)===A.type)?(A=o(A,L.props),Or(A,L),A.return=z,A):(A=ao(L.type,L.key,L.props,null,z.mode,Z),Or(A,L),A.return=z,A)}function U(z,A,L,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==L.containerInfo||A.stateNode.implementation!==L.implementation?(A=_u(L,z.mode,Z),A.return=z,A):(A=o(A,L.children||[]),A.return=z,A)}function Y(z,A,L,Z,de){return A===null||A.tag!==7?(A=ds(L,z.mode,Z,de),A.return=z,A):(A=o(A,L),A.return=z,A)}function I(z,A,L){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Nu(""+A,z.mode,L),A.return=z,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return L=ao(A.type,A.key,A.props,null,z.mode,L),Or(L,A),L.return=z,L;case w:return A=_u(A,z.mode,L),A.return=z,A;case q:return A=gs(A),I(z,A,L)}if(ie(A)||ne(A))return A=ds(A,z.mode,L,null),A.return=z,A;if(typeof A.then=="function")return I(z,uo(A),L);if(A.$$typeof===P)return I(z,ro(z,A),L);fo(z,A)}return null}function B(z,A,L,Z){var de=A!==null?A.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return de!==null?null:S(z,A,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case j:return L.key===de?R(z,A,L,Z):null;case w:return L.key===de?U(z,A,L,Z):null;case q:return L=gs(L),B(z,A,L,Z)}if(ie(L)||ne(L))return de!==null?null:Y(z,A,L,Z,null);if(typeof L.then=="function")return B(z,A,uo(L),Z);if(L.$$typeof===P)return B(z,A,ro(z,L),Z);fo(z,L)}return null}function G(z,A,L,Z,de){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(L)||null,S(A,z,""+Z,de);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case j:return z=z.get(Z.key===null?L:Z.key)||null,R(A,z,Z,de);case w:return z=z.get(Z.key===null?L:Z.key)||null,U(A,z,Z,de);case q:return Z=gs(Z),G(z,A,L,Z,de)}if(ie(Z)||ne(Z))return z=z.get(L)||null,Y(A,z,Z,de,null);if(typeof Z.then=="function")return G(z,A,L,uo(Z),de);if(Z.$$typeof===P)return G(z,A,L,ro(A,Z),de);fo(A,Z)}return null}function se(z,A,L,Z){for(var de=null,Oe=null,oe=A,je=A=0,Re=null;oe!==null&&je<L.length;je++){oe.index>je?(Re=oe,oe=null):Re=oe.sibling;var ke=B(z,oe,L[je],Z);if(ke===null){oe===null&&(oe=Re);break}e&&oe&&ke.alternate===null&&t(z,oe),A=d(ke,A,je),Oe===null?de=ke:Oe.sibling=ke,Oe=ke,oe=Re}if(je===L.length)return a(z,oe),Me&&Hn(z,je),de;if(oe===null){for(;je<L.length;je++)oe=I(z,L[je],Z),oe!==null&&(A=d(oe,A,je),Oe===null?de=oe:Oe.sibling=oe,Oe=oe);return Me&&Hn(z,je),de}for(oe=r(oe);je<L.length;je++)Re=G(oe,z,je,L[je],Z),Re!==null&&(e&&Re.alternate!==null&&oe.delete(Re.key===null?je:Re.key),A=d(Re,A,je),Oe===null?de=Re:Oe.sibling=Re,Oe=Re);return e&&oe.forEach(function(Ha){return t(z,Ha)}),Me&&Hn(z,je),de}function pe(z,A,L,Z){if(L==null)throw Error(i(151));for(var de=null,Oe=null,oe=A,je=A=0,Re=null,ke=L.next();oe!==null&&!ke.done;je++,ke=L.next()){oe.index>je?(Re=oe,oe=null):Re=oe.sibling;var Ha=B(z,oe,ke.value,Z);if(Ha===null){oe===null&&(oe=Re);break}e&&oe&&Ha.alternate===null&&t(z,oe),A=d(Ha,A,je),Oe===null?de=Ha:Oe.sibling=Ha,Oe=Ha,oe=Re}if(ke.done)return a(z,oe),Me&&Hn(z,je),de;if(oe===null){for(;!ke.done;je++,ke=L.next())ke=I(z,ke.value,Z),ke!==null&&(A=d(ke,A,je),Oe===null?de=ke:Oe.sibling=ke,Oe=ke);return Me&&Hn(z,je),de}for(oe=r(oe);!ke.done;je++,ke=L.next())ke=G(oe,z,je,ke.value,Z),ke!==null&&(e&&ke.alternate!==null&&oe.delete(ke.key===null?je:ke.key),A=d(ke,A,je),Oe===null?de=ke:Oe.sibling=ke,Oe=ke);return e&&oe.forEach(function(GS){return t(z,GS)}),Me&&Hn(z,je),de}function Qe(z,A,L,Z){if(typeof L=="object"&&L!==null&&L.type===N&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case j:e:{for(var de=L.key;A!==null;){if(A.key===de){if(de=L.type,de===N){if(A.tag===7){a(z,A.sibling),Z=o(A,L.props.children),Z.return=z,z=Z;break e}}else if(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===q&&gs(de)===A.type){a(z,A.sibling),Z=o(A,L.props),Or(Z,L),Z.return=z,z=Z;break e}a(z,A);break}else t(z,A);A=A.sibling}L.type===N?(Z=ds(L.props.children,z.mode,Z,L.key),Z.return=z,z=Z):(Z=ao(L.type,L.key,L.props,null,z.mode,Z),Or(Z,L),Z.return=z,z=Z)}return y(z);case w:e:{for(de=L.key;A!==null;){if(A.key===de)if(A.tag===4&&A.stateNode.containerInfo===L.containerInfo&&A.stateNode.implementation===L.implementation){a(z,A.sibling),Z=o(A,L.children||[]),Z.return=z,z=Z;break e}else{a(z,A);break}else t(z,A);A=A.sibling}Z=_u(L,z.mode,Z),Z.return=z,z=Z}return y(z);case q:return L=gs(L),Qe(z,A,L,Z)}if(ie(L))return se(z,A,L,Z);if(ne(L)){if(de=ne(L),typeof de!="function")throw Error(i(150));return L=de.call(L),pe(z,A,L,Z)}if(typeof L.then=="function")return Qe(z,A,uo(L),Z);if(L.$$typeof===P)return Qe(z,A,ro(z,L),Z);fo(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,A!==null&&A.tag===6?(a(z,A.sibling),Z=o(A,L),Z.return=z,z=Z):(a(z,A),Z=Nu(L,z.mode,Z),Z.return=z,z=Z),y(z)):a(z,A)}return function(z,A,L,Z){try{Ar=0;var de=Qe(z,A,L,Z);return pl=null,de}catch(oe){if(oe===ml||oe===oo)throw oe;var Oe=Gt(29,oe,null,z.mode);return Oe.lanes=Z,Oe.return=z,Oe}finally{}}}var bs=Im(!0),$m=Im(!1),Na=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uu(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 _a(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wa(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(De&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=no(e),Dm(e,null,a),t}return to(e,r,t,a),no(e)}function kr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qh(e,a)}}function Bu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?o=d=y:d=d.next=y,a=a.next}while(a!==null);d===null?o=d=t:d=d.next=t}else o=d=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var qu=!1;function zr(){if(qu){var e=hl;if(e!==null)throw e}}function Dr(e,t,a,r){qu=!1;var o=e.updateQueue;Na=!1;var d=o.firstBaseUpdate,y=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var R=S,U=R.next;R.next=null,y===null?d=U:y.next=U,y=R;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,S=Y.lastBaseUpdate,S!==y&&(S===null?Y.firstBaseUpdate=U:S.next=U,Y.lastBaseUpdate=R))}if(d!==null){var I=o.baseState;y=0,Y=U=R=null,S=d;do{var B=S.lane&-536870913,G=B!==S.lane;if(G?(Ce&B)===B:(r&B)===B){B!==0&&B===fl&&(qu=!0),Y!==null&&(Y=Y.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var se=e,pe=S;B=t;var Qe=a;switch(pe.tag){case 1:if(se=pe.payload,typeof se=="function"){I=se.call(Qe,I,B);break e}I=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=pe.payload,B=typeof se=="function"?se.call(Qe,I,B):se,B==null)break e;I=b({},I,B);break e;case 2:Na=!0}}B=S.callback,B!==null&&(e.flags|=64,G&&(e.flags|=8192),G=o.callbacks,G===null?o.callbacks=[B]:G.push(B))}else G={lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Y===null?(U=Y=G,R=I):Y=Y.next=G,y|=B;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;G=S,S=G.next,G.next=null,o.lastBaseUpdate=G,o.shared.pending=null}}while(!0);Y===null&&(R=I),o.baseState=R,o.firstBaseUpdate=U,o.lastBaseUpdate=Y,d===null&&(o.shared.lanes=0),Ma|=y,e.lanes=y,e.memoizedState=I}}function Wm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function ep(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Wm(a[e],t)}var gl=M(null),ho=M(0);function tp(e,t){e=In,ee(ho,e),ee(gl,t),In=e|t.baseLanes}function Hu(){ee(ho,In),ee(gl,gl.current)}function Pu(){In=ho.current,J(gl),J(ho)}var Yt=M(null),rn=null;function Ea(e){var t=e.alternate;ee(tt,tt.current&1),ee(Yt,e),rn===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(rn=e)}function Vu(e){ee(tt,tt.current),ee(Yt,e),rn===null&&(rn=e)}function np(e){e.tag===22?(ee(tt,tt.current),ee(Yt,e),rn===null&&(rn=e)):Ca()}function Ca(){ee(tt,tt.current),ee(Yt,Yt.current)}function Kt(e){J(Yt),rn===e&&(rn=null),J(tt)}var tt=M(0);function mo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Xd(a)||Zd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var Qn=0,xe=null,Pe=null,lt=null,po=!1,yl=!1,vs=!1,go=0,Lr=0,bl=null,z1=0;function $e(){throw Error(i(321))}function Qu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Qt(e[a],t[a]))return!1;return!0}function Gu(e,t,a,r,o,d){return Qn=d,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?qp:ld,vs=!1,d=a(r,o),vs=!1,yl&&(d=sp(t,a,r,o)),ap(e),d}function ap(e){k.H=qr;var t=Pe!==null&&Pe.next!==null;if(Qn=0,lt=Pe=xe=null,po=!1,Lr=0,bl=null,t)throw Error(i(300));e===null||rt||(e=e.dependencies,e!==null&&lo(e)&&(rt=!0))}function sp(e,t,a,r){xe=e;var o=0;do{if(yl&&(bl=null),Lr=0,yl=!1,25<=o)throw Error(i(301));if(o+=1,lt=Pe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}k.H=Hp,d=t(a,r)}while(yl);return d}function D1(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Ur(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(xe.flags|=1024),t}function Yu(){var e=go!==0;return go=0,e}function Ku(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Fu(e){if(po){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}po=!1}Qn=0,lt=Pe=xe=null,yl=!1,Lr=go=0,bl=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?xe.memoizedState=lt=e:lt=lt.next=e,lt}function nt(){if(Pe===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=lt===null?xe.memoizedState:lt.next;if(t!==null)lt=t,Pe=e;else{if(e===null)throw xe.alternate===null?Error(i(467)):Error(i(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},lt===null?xe.memoizedState=lt=e:lt=lt.next=e}return lt}function yo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ur(e){var t=Lr;return Lr+=1,bl===null&&(bl=[]),e=Xm(bl,e,t),t=xe,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?qp:ld),e}function bo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ur(e);if(e.$$typeof===P)return yt(e)}throw Error(i(438,String(e)))}function Xu(e){var t=null,a=xe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=xe.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=yo(),xe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=Q;return t.index++,a}function Gn(e,t){return typeof t=="function"?t(e):t}function vo(e){var t=nt();return Zu(t,Pe,e)}function Zu(e,t,a){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=a;var o=e.baseQueue,d=r.pending;if(d!==null){if(o!==null){var y=o.next;o.next=d.next,d.next=y}t.baseQueue=o=d,r.pending=null}if(d=e.baseState,o===null)e.memoizedState=d;else{t=o.next;var S=y=null,R=null,U=t,Y=!1;do{var I=U.lane&-536870913;if(I!==U.lane?(Ce&I)===I:(Qn&I)===I){var B=U.revertLane;if(B===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),I===fl&&(Y=!0);else if((Qn&B)===B){U=U.next,B===fl&&(Y=!0);continue}else I={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=I,y=d):R=R.next=I,xe.lanes|=B,Ma|=B;I=U.action,vs&&a(d,I),d=U.hasEagerState?U.eagerState:a(d,I)}else B={lane:I,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=B,y=d):R=R.next=B,xe.lanes|=I,Ma|=I;U=U.next}while(U!==null&&U!==t);if(R===null?y=d:R.next=S,!Qt(d,e.memoizedState)&&(rt=!0,Y&&(a=hl,a!==null)))throw a;e.memoizedState=d,e.baseState=y,e.baseQueue=R,r.lastRenderedState=d}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ju(e){var t=nt(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,d=t.memoizedState;if(o!==null){a.pending=null;var y=o=o.next;do d=e(d,y.action),y=y.next;while(y!==o);Qt(d,t.memoizedState)||(rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,r]}function lp(e,t,a){var r=xe,o=nt(),d=Me;if(d){if(a===void 0)throw Error(i(407));a=a()}else a=t();var y=!Qt((Pe||o).memoizedState,a);if(y&&(o.memoizedState=a,rt=!0),o=o.queue,Wu(op.bind(null,r,o,e),[e]),o.getSnapshot!==t||y||lt!==null&<.memoizedState.tag&1){if(r.flags|=2048,vl(9,{destroy:void 0},ip.bind(null,r,o,a,t),null),Ye===null)throw Error(i(349));d||(Qn&127)!==0||rp(r,t,a)}return a}function rp(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=xe.updateQueue,t===null?(t=yo(),xe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function ip(e,t,a,r){t.value=a,t.getSnapshot=r,cp(t)&&up(e)}function op(e,t,a){return a(function(){cp(t)&&up(e)})}function cp(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Qt(e,a)}catch{return!0}}function up(e){var t=us(e,2);t!==null&&Dt(t,e,2)}function Iu(e){var t=wt();if(typeof e=="function"){var a=e;if(e=a(),vs){ga(!0);try{a()}finally{ga(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function dp(e,t,a,r){return e.baseState=a,Zu(e,Pe,typeof r=="function"?r:Gn)}function L1(e,t,a,r,o){if(jo(e))throw Error(i(485));if(e=t.action,e!==null){var d={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};k.T!==null?a(!0):d.isTransition=!1,r(d),a=t.pending,a===null?(d.next=t.pending=d,fp(t,d)):(d.next=a.next,t.pending=a.next=d)}}function fp(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var d=k.T,y={};k.T=y;try{var S=a(o,r),R=k.S;R!==null&&R(y,S),hp(e,t,S)}catch(U){$u(e,t,U)}finally{d!==null&&y.types!==null&&(d.types=y.types),k.T=d}}else try{d=a(o,r),hp(e,t,d)}catch(U){$u(e,t,U)}}function hp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){mp(e,t,r)},function(r){return $u(e,t,r)}):mp(e,t,a)}function mp(e,t,a){t.status="fulfilled",t.value=a,pp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fp(e,a)))}function $u(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,pp(t),t=t.next;while(t!==r)}e.action=null}function pp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gp(e,t){return t}function yp(e,t){if(Me){var a=Ye.formState;if(a!==null){e:{var r=xe;if(Me){if(Fe){t:{for(var o=Fe,d=ln;o.nodeType!==8;){if(!d){o=null;break t}if(o=on(o.nextSibling),o===null){o=null;break t}}d=o.data,o=d==="F!"||d==="F"?o:null}if(o){Fe=on(o.nextSibling),r=o.data==="F!";break e}}Sa(r)}r=!1}r&&(t=a[0])}}return a=wt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gp,lastRenderedState:t},a.queue=r,a=Lp.bind(null,xe,r),r.dispatch=a,r=Iu(!1),d=sd.bind(null,xe,!1,r.queue),r=wt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=L1.bind(null,xe,o,d,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function bp(e){var t=nt();return vp(t,Pe,e)}function vp(e,t,a){if(t=Zu(e,t,gp)[0],e=vo(Gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ur(t)}catch(y){throw y===ml?oo:y}else r=t;t=nt();var o=t.queue,d=o.dispatch;return a!==t.memoizedState&&(xe.flags|=2048,vl(9,{destroy:void 0},U1.bind(null,o,a),null)),[r,d,e]}function U1(e,t){e.action=t}function xp(e){var t=nt(),a=Pe;if(a!==null)return vp(t,a,e);nt(),t=t.memoizedState,a=nt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function vl(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=xe.updateQueue,t===null&&(t=yo(),xe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Sp(){return nt().memoizedState}function xo(e,t,a,r){var o=wt();xe.flags|=e,o.memoizedState=vl(1|t,{destroy:void 0},a,r===void 0?null:r)}function So(e,t,a,r){var o=nt();r=r===void 0?null:r;var d=o.memoizedState.inst;Pe!==null&&r!==null&&Qu(r,Pe.memoizedState.deps)?o.memoizedState=vl(t,d,a,r):(xe.flags|=e,o.memoizedState=vl(1|t,d,a,r))}function jp(e,t){xo(8390656,8,e,t)}function Wu(e,t){So(2048,8,e,t)}function B1(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=yo(),xe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Np(e){var t=nt().memoizedState;return B1({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function _p(e,t){return So(4,2,e,t)}function wp(e,t){return So(4,4,e,t)}function Ep(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cp(e,t,a){a=a!=null?a.concat([e]):null,So(4,4,Ep.bind(null,t,e),a)}function ed(){}function Rp(e,t){var a=nt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Qu(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Tp(e,t){var a=nt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Qu(t,r[1]))return r[0];if(r=e(),vs){ga(!0);try{e()}finally{ga(!1)}}return a.memoizedState=[r,t],r}function td(e,t,a){return a===void 0||(Qn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Mg(),xe.lanes|=e,Ma|=e,a)}function Mp(e,t,a,r){return Qt(a,t)?a:gl.current!==null?(e=td(e,a,r),Qt(e,t)||(rt=!0),e):(Qn&42)===0||(Qn&1073741824)!==0&&(Ce&261930)===0?(rt=!0,e.memoizedState=a):(e=Mg(),xe.lanes|=e,Ma|=e,t)}function Ap(e,t,a,r,o){var d=V.p;V.p=d!==0&&8>d?d:8;var y=k.T,S={};k.T=S,sd(e,!1,t,a);try{var R=o(),U=k.S;if(U!==null&&U(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Y=k1(R,r);Br(e,t,Y,Zt(e))}else Br(e,t,r,Zt(e))}catch(I){Br(e,t,{then:function(){},status:"rejected",reason:I},Zt())}finally{V.p=d,y!==null&&S.types!==null&&(y.types=S.types),k.T=y}}function q1(){}function nd(e,t,a,r){if(e.tag!==5)throw Error(i(476));var o=Op(e).queue;Ap(e,o,t,K,a===null?q1:function(){return kp(e),a(r)})}function Op(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kp(e){var t=Op(e);t.next===null&&(t=e.alternate.memoizedState),Br(e,t.next.queue,{},Zt())}function ad(){return yt(ti)}function zp(){return nt().memoizedState}function Dp(){return nt().memoizedState}function H1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Zt();e=_a(a);var r=wa(t,e,a);r!==null&&(Dt(r,t,a),kr(r,t,a)),t={cache:Ou()},e.payload=t;return}t=t.return}}function P1(e,t,a){var r=Zt();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},jo(e)?Up(t,a):(a=Su(e,t,a,r),a!==null&&(Dt(a,e,r),Bp(a,t,r)))}function Lp(e,t,a){var r=Zt();Br(e,t,a,r)}function Br(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(jo(e))Up(t,o);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,S=d(y,a);if(o.hasEagerState=!0,o.eagerState=S,Qt(S,y))return to(e,t,o,0),Ye===null&&eo(),!1}catch{}finally{}if(a=Su(e,t,o,r),a!==null)return Dt(a,e,r),Bp(a,t,r),!0}return!1}function sd(e,t,a,r){if(r={lane:2,revertLane:Ld(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},jo(e)){if(t)throw Error(i(479))}else t=Su(e,a,r,2),t!==null&&Dt(t,e,2)}function jo(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Up(e,t){yl=po=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Bp(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qh(e,a)}}var qr={readContext:yt,use:bo,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};qr.useEffectEvent=$e;var qp={readContext:yt,use:bo,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:jp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,xo(4194308,4,Ep.bind(null,t,e),a)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){xo(4,2,e,t)},useMemo:function(e,t){var a=wt();t=t===void 0?null:t;var r=e();if(vs){ga(!0);try{e()}finally{ga(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=wt();if(a!==void 0){var o=a(t);if(vs){ga(!0);try{a(t)}finally{ga(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=P1.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=Iu(e);var t=e.queue,a=Lp.bind(null,xe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ed,useDeferredValue:function(e,t){var a=wt();return td(a,e,t)},useTransition:function(){var e=Iu(!1);return e=Ap.bind(null,xe,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=xe,o=wt();if(Me){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ye===null)throw Error(i(349));(Ce&127)!==0||rp(r,t,a)}o.memoizedState=a;var d={value:a,getSnapshot:t};return o.queue=d,jp(op.bind(null,r,d,e),[e]),r.flags|=2048,vl(9,{destroy:void 0},ip.bind(null,r,d,a,t),null),a},useId:function(){var e=wt(),t=Ye.identifierPrefix;if(Me){var a=Cn,r=En;a=(r&~(1<<32-Vt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=go++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=z1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ad,useFormState:yp,useActionState:yp,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=sd.bind(null,xe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Xu,useCacheRefresh:function(){return wt().memoizedState=H1.bind(null,xe)},useEffectEvent:function(e){var t=wt(),a={impl:e};return t.memoizedState=a,function(){if((De&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},ld={readContext:yt,use:bo,useCallback:Rp,useContext:yt,useEffect:Wu,useImperativeHandle:Cp,useInsertionEffect:_p,useLayoutEffect:wp,useMemo:Tp,useReducer:vo,useRef:Sp,useState:function(){return vo(Gn)},useDebugValue:ed,useDeferredValue:function(e,t){var a=nt();return Mp(a,Pe.memoizedState,e,t)},useTransition:function(){var e=vo(Gn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:lp,useId:zp,useHostTransitionStatus:ad,useFormState:bp,useActionState:bp,useOptimistic:function(e,t){var a=nt();return dp(a,Pe,e,t)},useMemoCache:Xu,useCacheRefresh:Dp};ld.useEffectEvent=Np;var Hp={readContext:yt,use:bo,useCallback:Rp,useContext:yt,useEffect:Wu,useImperativeHandle:Cp,useInsertionEffect:_p,useLayoutEffect:wp,useMemo:Tp,useReducer:Ju,useRef:Sp,useState:function(){return Ju(Gn)},useDebugValue:ed,useDeferredValue:function(e,t){var a=nt();return Pe===null?td(a,e,t):Mp(a,Pe.memoizedState,e,t)},useTransition:function(){var e=Ju(Gn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:lp,useId:zp,useHostTransitionStatus:ad,useFormState:xp,useActionState:xp,useOptimistic:function(e,t){var a=nt();return Pe!==null?dp(a,Pe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Xu,useCacheRefresh:Dp};Hp.useEffectEvent=Np;function rd(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var id={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Zt(),o=_a(r);o.payload=t,a!=null&&(o.callback=a),t=wa(e,o,r),t!==null&&(Dt(t,e,r),kr(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Zt(),o=_a(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=wa(e,o,r),t!==null&&(Dt(t,e,r),kr(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Zt(),r=_a(a);r.tag=2,t!=null&&(r.callback=t),t=wa(e,r,a),t!==null&&(Dt(t,e,a),kr(t,e,a))}};function Pp(e,t,a,r,o,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,y):t.prototype&&t.prototype.isPureReactComponent?!wr(a,r)||!wr(o,d):!0}function Vp(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&id.enqueueReplaceState(t,t.state,null)}function xs(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Qp(e){Wi(e)}function Gp(e){console.error(e)}function Yp(e){Wi(e)}function No(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Kp(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function od(e,t,a){return a=_a(a),a.tag=3,a.payload={element:null},a.callback=function(){No(e,t)},a}function Fp(e){return e=_a(e),e.tag=3,e}function Xp(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var d=r.value;e.payload=function(){return o(d)},e.callback=function(){Kp(t,a,r)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Kp(t,a,r),typeof o!="function"&&(Aa===null?Aa=new Set([this]):Aa.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function V1(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&dl(t,a,o,!0),a=Yt.current,a!==null){switch(a.tag){case 31:case 13:return rn===null?Do():a.alternate===null&&We===0&&(We=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===co?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),kd(e,r,o)),!1;case 22:return a.flags|=65536,r===co?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),kd(e,r,o)),!1}throw Error(i(435,a.tag))}return kd(e,r,o),Do(),!1}if(Me)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Cu&&(e=Error(i(422),{cause:r}),Rr(nn(e,a)))):(r!==Cu&&(t=Error(i(423),{cause:r}),Rr(nn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=nn(r,a),o=od(e.stateNode,r,o),Bu(e,o),We!==4&&(We=2)),!1;var d=Error(i(520),{cause:r});if(d=nn(d,a),Fr===null?Fr=[d]:Fr.push(d),We!==4&&(We=2),t===null)return!0;r=nn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=od(a.stateNode,r,e),Bu(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Aa===null||!Aa.has(d))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Fp(o),Xp(o,e,a,r),Bu(a,o),!1}a=a.return}while(a!==null);return!1}var cd=Error(i(461)),rt=!1;function bt(e,t,a,r){t.child=e===null?$m(t,null,a,r):bs(t,e.child,a,r)}function Zp(e,t,a,r,o){a=a.render;var d=t.ref;if("ref"in r){var y={};for(var S in r)S!=="ref"&&(y[S]=r[S])}else y=r;return ms(t),r=Gu(e,t,a,y,d,o),S=Yu(),e!==null&&!rt?(Ku(e,t,o),Yn(e,t,o)):(Me&&S&&wu(t),t.flags|=1,bt(e,t,r,o),t.child)}function Jp(e,t,a,r,o){if(e===null){var d=a.type;return typeof d=="function"&&!ju(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,Ip(e,t,d,r,o)):(e=ao(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!yd(e,o)){var y=d.memoizedProps;if(a=a.compare,a=a!==null?a:wr,a(y,r)&&e.ref===t.ref)return Yn(e,t,o)}return t.flags|=1,e=qn(d,r),e.ref=t.ref,e.return=t,t.child=e}function Ip(e,t,a,r,o){if(e!==null){var d=e.memoizedProps;if(wr(d,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=d,yd(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Yn(e,t,o)}return ud(e,t,a,r,o)}function $p(e,t,a,r){var o=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~d}else r=0,t.child=null;return Wp(e,t,d,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&io(t,d!==null?d.cachePool:null),d!==null?tp(t,d):Hu(),np(t);else return r=t.lanes=536870912,Wp(e,t,d!==null?d.baseLanes|a:a,a,r)}else d!==null?(io(t,d.cachePool),tp(t,d),Ca(),t.memoizedState=null):(e!==null&&io(t,null),Hu(),Ca());return bt(e,t,o,a),t.child}function Hr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wp(e,t,a,r,o){var d=zu();return d=d===null?null:{parent:st._currentValue,pool:d},t.memoizedState={baseLanes:a,cachePool:d},e!==null&&io(t,null),Hu(),np(t),e!==null&&dl(e,t,r,!0),t.childLanes=o,null}function _o(e,t){return t=Eo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function eg(e,t,a){return bs(t,e.child,null,a),e=_o(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function Q1(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(r.mode==="hidden")return e=_o(t,r),t.lanes=536870912,Hr(null,e);if(Vu(t),(e=Fe)?(e=fy(e,ln),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=Um(e),a.return=t,t.child=a,gt=t,Fe=null)):e=null,e===null)throw Sa(t);return t.lanes=536870912,null}return _o(t,r)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Vu(t),o)if(t.flags&256)t.flags&=-257,t=eg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(rt||dl(e,t,a,!1),o=(a&e.childLanes)!==0,rt||o){if(r=Ye,r!==null&&(y=Gh(r,a),y!==0&&y!==d.retryLane))throw d.retryLane=y,us(e,y),Dt(r,e,y),cd;Do(),t=eg(e,t,a)}else e=d.treeContext,Fe=on(y.nextSibling),gt=t,Me=!0,xa=null,ln=!1,e!==null&&Hm(t,e),t=_o(t,r),t.flags|=4096;return t}return e=qn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ud(e,t,a,r,o){return ms(t),a=Gu(e,t,a,r,void 0,o),r=Yu(),e!==null&&!rt?(Ku(e,t,o),Yn(e,t,o)):(Me&&r&&wu(t),t.flags|=1,bt(e,t,a,o),t.child)}function tg(e,t,a,r,o,d){return ms(t),t.updateQueue=null,a=sp(t,r,a,o),ap(e),r=Yu(),e!==null&&!rt?(Ku(e,t,d),Yn(e,t,d)):(Me&&r&&wu(t),t.flags|=1,bt(e,t,a,d),t.child)}function ng(e,t,a,r,o){if(ms(t),t.stateNode===null){var d=il,y=a.contextType;typeof y=="object"&&y!==null&&(d=yt(y)),d=new a(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=id,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},Lu(t),y=a.contextType,d.context=typeof y=="object"&&y!==null?yt(y):il,d.state=t.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(rd(t,a,y,r),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&id.enqueueReplaceState(d,d.state,null),Dr(t,r,d,o),zr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,R=xs(a,S);d.props=R;var U=d.context,Y=a.contextType;y=il,typeof Y=="object"&&Y!==null&&(y=yt(Y));var I=a.getDerivedStateFromProps;Y=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Y||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||U!==y)&&Vp(t,d,r,y),Na=!1;var B=t.memoizedState;d.state=B,Dr(t,r,d,o),zr(),U=t.memoizedState,S||B!==U||Na?(typeof I=="function"&&(rd(t,a,I,r),U=t.memoizedState),(R=Na||Pp(t,a,R,r,B,U,y))?(Y||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=U),d.props=r,d.state=U,d.context=y,r=R):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,Uu(e,t),y=t.memoizedProps,Y=xs(a,y),d.props=Y,I=t.pendingProps,B=d.context,U=a.contextType,R=il,typeof U=="object"&&U!==null&&(R=yt(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==I||B!==R)&&Vp(t,d,r,R),Na=!1,B=t.memoizedState,d.state=B,Dr(t,r,d,o),zr();var G=t.memoizedState;y!==I||B!==G||Na||e!==null&&e.dependencies!==null&&lo(e.dependencies)?(typeof S=="function"&&(rd(t,a,S,r),G=t.memoizedState),(Y=Na||Pp(t,a,Y,r,B,G,R)||e!==null&&e.dependencies!==null&&lo(e.dependencies))?(U||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,G,R),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,G,R)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=G),d.props=r,d.state=G,d.context=R,r=Y):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,wo(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=bs(t,e.child,null,o),t.child=bs(t,null,a,o)):bt(e,t,a,o),t.memoizedState=d.state,e=t.child):e=Yn(e,t,o),e}function ag(e,t,a,r){return fs(),t.flags|=256,bt(e,t,a,r),t.child}var dd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fd(e){return{baseLanes:e,cachePool:Km()}}function hd(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Xt),e}function sg(e,t,a){var r=t.pendingProps,o=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(o?Ea(t):Ca(),(e=Fe)?(e=fy(e,ln),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=Um(e),a.return=t,t.child=a,gt=t,Fe=null)):e=null,e===null)throw Sa(t);return Zd(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,o?(Ca(),o=t.mode,S=Eo({mode:"hidden",children:S},o),r=ds(r,o,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=fd(a),r.childLanes=hd(e,y,a),t.memoizedState=dd,Hr(null,r)):(Ea(t),md(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(d)t.flags&256?(Ea(t),t.flags&=-257,t=pd(e,t,a)):t.memoizedState!==null?(Ca(),t.child=e.child,t.flags|=128,t=null):(Ca(),S=r.fallback,o=t.mode,r=Eo({mode:"visible",children:r.children},o),S=ds(S,o,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,bs(t,e.child,null,a),r=t.child,r.memoizedState=fd(a),r.childLanes=hd(e,y,a),t.memoizedState=dd,t=Hr(null,r));else if(Ea(t),Zd(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var U=y.dgst;y=U,r=Error(i(419)),r.stack="",r.digest=y,Rr({value:r,source:null,stack:null}),t=pd(e,t,a)}else if(rt||dl(e,t,a,!1),y=(a&e.childLanes)!==0,rt||y){if(y=Ye,y!==null&&(r=Gh(y,a),r!==0&&r!==R.retryLane))throw R.retryLane=r,us(e,r),Dt(y,e,r),cd;Xd(S)||Do(),t=pd(e,t,a)}else Xd(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Fe=on(S.nextSibling),gt=t,Me=!0,xa=null,ln=!1,e!==null&&Hm(t,e),t=md(t,r.children),t.flags|=4096);return t}return o?(Ca(),S=r.fallback,o=t.mode,R=e.child,U=R.sibling,r=qn(R,{mode:"hidden",children:r.children}),r.subtreeFlags=R.subtreeFlags&65011712,U!==null?S=qn(U,S):(S=ds(S,o,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,Hr(null,r),r=t.child,S=e.child.memoizedState,S===null?S=fd(a):(o=S.cachePool,o!==null?(R=st._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Km(),S={baseLanes:S.baseLanes|a,cachePool:o}),r.memoizedState=S,r.childLanes=hd(e,y,a),t.memoizedState=dd,Hr(e.child,r)):(Ea(t),a=e.child,e=a.sibling,a=qn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=a,t.memoizedState=null,a)}function md(e,t){return t=Eo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eo(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function pd(e,t,a){return bs(t,e.child,null,a),e=md(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mu(e.return,t,a)}function gd(e,t,a,r,o,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=a,y.tailMode=o,y.treeForkCount=d)}function rg(e,t,a){var r=t.pendingProps,o=r.revealOrder,d=r.tail;r=r.children;var y=tt.current,S=(y&2)!==0;if(S?(y=y&1|2,t.flags|=128):y&=1,ee(tt,y),bt(e,t,r,a),r=Me?Cr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lg(e,a,t);else if(e.tag===19)lg(e,a,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}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&mo(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),gd(t,!1,o,a,d,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&mo(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}gd(t,!0,a,null,d,r);break;case"together":gd(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Yn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ma|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(dl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=qn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=qn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function yd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lo(e)))}function G1(e,t,a){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),ja(t,st,e.memoizedState.cache),fs();break;case 27:case 5:Nt(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:ja(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ea(t),t.flags|=128,null):(a&t.child.childLanes)!==0?sg(e,t,a):(Ea(t),e=Yn(e,t,a),e!==null?e.sibling:null);Ea(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(dl(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return rg(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ee(tt,tt.current),r)break;return null;case 22:return t.lanes=0,$p(e,t,a,t.pendingProps);case 24:ja(t,st,e.memoizedState.cache)}return Yn(e,t,a)}function ig(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!yd(e,a)&&(t.flags&128)===0)return rt=!1,G1(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Me&&(t.flags&1048576)!==0&&qm(t,Cr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=gs(t.elementType),t.type=e,typeof e=="function")ju(e)?(r=xs(e,r),t.tag=1,t=ng(null,t,e,r,a)):(t.tag=0,t=ud(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===O){t.tag=11,t=Zp(null,t,e,r,a);break e}else if(o===H){t.tag=14,t=Jp(null,t,e,r,a);break e}}throw t=he(e)||e,Error(i(306,t,""))}}return t;case 0:return ud(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=xs(r,t.pendingProps),ng(e,t,r,o,a);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var d=t.memoizedState;o=d.element,Uu(e,t),Dr(t,r,null,a);var y=t.memoizedState;if(r=y.cache,ja(t,st,r),r!==d.cache&&Au(t,[st],a,!0),zr(),r=y.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=ag(e,t,r,a);break e}else if(r!==o){o=nn(Error(i(424)),t),Rr(o),t=ag(e,t,r,a);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(Fe=on(e.firstChild),gt=t,Me=!0,xa=null,ln=!0,a=$m(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(fs(),r===o){t=Yn(e,t,a);break e}bt(e,t,r,a)}t=t.child}return t;case 26:return wo(e,t),e===null?(a=by(t.type,null,t.pendingProps,null))?t.memoizedState=a:Me||(a=t.type,e=t.pendingProps,r=Vo(ve.current).createElement(a),r[pt]=t,r[Tt]=e,vt(r,a,e),dt(r),t.stateNode=r):t.memoizedState=by(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Nt(t),e===null&&Me&&(r=t.stateNode=py(t.type,t.pendingProps,ve.current),gt=t,ln=!0,o=Fe,Da(t.type)?(Jd=o,Fe=on(r.firstChild)):Fe=o),bt(e,t,t.pendingProps.children,a),wo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((o=r=Fe)&&(r=xS(r,t.type,t.pendingProps,ln),r!==null?(t.stateNode=r,gt=t,Fe=on(r.firstChild),ln=!1,o=!0):o=!1),o||Sa(t)),Nt(t),o=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,r=d.children,Yd(o,d)?r=null:y!==null&&Yd(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=Gu(e,t,D1,null,null,a),ti._currentValue=o),wo(e,t),bt(e,t,r,a),t.child;case 6:return e===null&&Me&&((e=a=Fe)&&(a=SS(a,t.pendingProps,ln),a!==null?(t.stateNode=a,gt=t,Fe=null,e=!0):e=!1),e||Sa(t)),null;case 13:return sg(e,t,a);case 4:return Ie(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bs(t,null,r,a):bt(e,t,r,a),t.child;case 11:return Zp(e,t,t.type,t.pendingProps,a);case 7:return bt(e,t,t.pendingProps,a),t.child;case 8:return bt(e,t,t.pendingProps.children,a),t.child;case 12:return bt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,ja(t,t.type,r.value),bt(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,ms(t),o=yt(o),r=r(o),t.flags|=1,bt(e,t,r,a),t.child;case 14:return Jp(e,t,t.type,t.pendingProps,a);case 15:return Ip(e,t,t.type,t.pendingProps,a);case 19:return rg(e,t,a);case 31:return Q1(e,t,a);case 22:return $p(e,t,a,t.pendingProps);case 24:return ms(t),r=yt(st),e===null?(o=zu(),o===null&&(o=Ye,d=Ou(),o.pooledCache=d,d.refCount++,d!==null&&(o.pooledCacheLanes|=a),o=d),t.memoizedState={parent:r,cache:o},Lu(t),ja(t,st,o)):((e.lanes&a)!==0&&(Uu(e,t),Dr(t,null,null,a),zr()),o=e.memoizedState,d=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ja(t,st,r)):(r=d.cache,ja(t,st,r),r!==o.cache&&Au(t,[st],a,!0))),bt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Kn(e){e.flags|=4}function bd(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(zg())e.flags|=8192;else throw ys=co,Du}else e.flags&=-16777217}function og(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ny(t))if(zg())e.flags|=8192;else throw ys=co,Du}function Co(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ph():536870912,e.lanes|=t,Nl|=t)}function Pr(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function Y1(e,t,a){var r=t.pendingProps;switch(Eu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Vn(st),Le(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ul(t)?Kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ru())),Xe(t),null;case 26:var o=t.type,d=t.memoizedState;return e===null?(Kn(t),d!==null?(Xe(t),og(t,d)):(Xe(t),bd(t,o,null,r,a))):d?d!==e.memoizedState?(Kn(t),Xe(t),og(t,d)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Kn(t),Xe(t),bd(t,o,e,r,a)),null;case 27:if(Ht(t),a=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Kn(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Xe(t),null}e=te.current,ul(t)?Pm(t):(e=py(o,r,a),t.stateNode=e,Kn(t))}return Xe(t),null;case 5:if(Ht(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Kn(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Xe(t),null}if(d=te.current,ul(t))Pm(t);else{var y=Vo(ve.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?y.createElement(o,{is:r.is}):y.createElement(o)}}d[pt]=t,d[Tt]=r;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(vt(d,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Kn(t)}}return Xe(t),bd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Kn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=ve.current,ul(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=gt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[pt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||sy(e.nodeValue,a)),e||Sa(t,!0)}else e=Vo(e).createTextNode(r),e[pt]=t,t.stateNode=e}return Xe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=ul(t),a!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[pt]=t}else fs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else a=Ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Xe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ul(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));o[pt]=t}else fs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),o=!1}else o=Ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Co(t,t.updateQueue),Xe(t),null);case 4:return Le(),e===null&&Hd(t.stateNode.containerInfo),Xe(t),null;case 10:return Vn(t.type),Xe(t),null;case 19:if(J(tt),r=t.memoizedState,r===null)return Xe(t),null;if(o=(t.flags&128)!==0,d=r.rendering,d===null)if(o)Pr(r,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=mo(e),d!==null){for(t.flags|=128,Pr(r,!1),e=d.updateQueue,t.updateQueue=e,Co(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Lm(a,e),a=a.sibling;return ee(tt,tt.current&1|2),Me&&Hn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_t()>Oo&&(t.flags|=128,o=!0,Pr(r,!1),t.lanes=4194304)}else{if(!o)if(e=mo(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Co(t,e),Pr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Me)return Xe(t),null}else 2*_t()-r.renderingStartTime>Oo&&a!==536870912&&(t.flags|=128,o=!0,Pr(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_t(),e.sibling=null,a=tt.current,ee(tt,o?a&1|2:a&1),Me&&Hn(t,r.treeForkCount),e):(Xe(t),null);case 22:case 23:return Kt(t),Pu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),a=t.updateQueue,a!==null&&Co(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&J(ps),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vn(st),Xe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function K1(e,t){switch(Eu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(st),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ht(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(i(340));fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(tt),null;case 4:return Le(),null;case 10:return Vn(t.type),null;case 22:case 23:return Kt(t),Pu(),e!==null&&J(ps),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vn(st),null;case 25:return null;default:return null}}function cg(e,t){switch(Eu(t),t.tag){case 3:Vn(st),Le();break;case 26:case 27:case 5:Ht(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:J(tt);break;case 10:Vn(t.type);break;case 22:case 23:Kt(t),Pu(),e!==null&&J(ps);break;case 24:Vn(st)}}function Vr(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var d=a.create,y=a.inst;r=d(),y.destroy=r}a=a.next}while(a!==o)}}catch(S){He(t,t.return,S)}}function Ra(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var d=o.next;r=d;do{if((r.tag&e)===e){var y=r.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,o=t;var R=a,U=S;try{U()}catch(Y){He(o,R,Y)}}}r=r.next}while(r!==d)}}catch(Y){He(t,t.return,Y)}}function ug(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ep(t,a)}catch(r){He(e,e.return,r)}}}function dg(e,t,a){a.props=xs(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){He(e,t,r)}}function Qr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){He(e,t,o)}}function Rn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){He(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){He(e,t,o)}else a.current=null}function fg(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){He(e,e.return,o)}}function vd(e,t,a){try{var r=e.stateNode;mS(r,e.type,a,t),r[Tt]=t}catch(o){He(e,e.return,o)}}function hg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function xd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hg(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&&Da(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 Sd(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Un));else if(r!==4&&(r===27&&Da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Sd(e,t,a),e=e.sibling;e!==null;)Sd(e,t,a),e=e.sibling}function Ro(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ro(e,t,a),e=e.sibling;e!==null;)Ro(e,t,a),e=e.sibling}function mg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);vt(t,r,a),t[pt]=e,t[Tt]=a}catch(d){He(e,e.return,d)}}var Fn=!1,it=!1,jd=!1,pg=typeof WeakSet=="function"?WeakSet:Set,ft=null;function F1(e,t){if(e=e.containerInfo,Qd=Zo,e=Cm(e),pu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var y=0,S=-1,R=-1,U=0,Y=0,I=e,B=null;t:for(;;){for(var G;I!==a||o!==0&&I.nodeType!==3||(S=y+o),I!==d||r!==0&&I.nodeType!==3||(R=y+r),I.nodeType===3&&(y+=I.nodeValue.length),(G=I.firstChild)!==null;)B=I,I=G;for(;;){if(I===e)break t;if(B===a&&++U===o&&(S=y),B===d&&++Y===r&&(R=y),(G=I.nextSibling)!==null)break;I=B,B=I.parentNode}I=G}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Gd={focusedElem:e,selectionRange:a},Zo=!1,ft=t;ft!==null;)if(t=ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ft=e;else for(;ft!==null;){switch(t=ft,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=t,o=d.memoizedProps,d=d.memoizedState,r=a.stateNode;try{var se=xs(a.type,o);e=r.getSnapshotBeforeUpdate(se,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(pe){He(a,a.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Fd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ft=e;break}ft=t.return}}function gg(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Zn(e,a),r&4&&Vr(5,a);break;case 1:if(Zn(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(y){He(a,a.return,y)}else{var o=xs(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){He(a,a.return,y)}}r&64&&ug(a),r&512&&Qr(a,a.return);break;case 3:if(Zn(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ep(e,t)}catch(y){He(a,a.return,y)}}break;case 27:t===null&&r&4&&mg(a);case 26:case 5:Zn(e,a),t===null&&r&4&&fg(a),r&512&&Qr(a,a.return);break;case 12:Zn(e,a);break;case 31:Zn(e,a),r&4&&vg(e,a);break;case 13:Zn(e,a),r&4&&xg(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=nS.bind(null,a),jS(e,a))));break;case 22:if(r=a.memoizedState!==null||Fn,!r){t=t!==null&&t.memoizedState!==null||it,o=Fn;var d=it;Fn=r,(it=t)&&!d?Jn(e,a,(a.subtreeFlags&8772)!==0):Zn(e,a),Fn=o,it=d}break;case 30:break;default:Zn(e,a)}}function yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$c(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ze=null,At=!1;function Xn(e,t,a){for(a=a.child;a!==null;)bg(e,t,a),a=a.sibling}function bg(e,t,a){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(hr,a)}catch{}switch(a.tag){case 26:it||Rn(a,t),Xn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:it||Rn(a,t);var r=Ze,o=At;Da(a.type)&&(Ze=a.stateNode,At=!1),Xn(e,t,a),$r(a.stateNode),Ze=r,At=o;break;case 5:it||Rn(a,t);case 6:if(r=Ze,o=At,Ze=null,Xn(e,t,a),Ze=r,At=o,Ze!==null)if(At)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(a.stateNode)}catch(d){He(a,t,d)}else try{Ze.removeChild(a.stateNode)}catch(d){He(a,t,d)}break;case 18:Ze!==null&&(At?(e=Ze,uy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Al(e)):uy(Ze,a.stateNode));break;case 4:r=Ze,o=At,Ze=a.stateNode.containerInfo,At=!0,Xn(e,t,a),Ze=r,At=o;break;case 0:case 11:case 14:case 15:Ra(2,a,t),it||Ra(4,a,t),Xn(e,t,a);break;case 1:it||(Rn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&dg(a,t,r)),Xn(e,t,a);break;case 21:Xn(e,t,a);break;case 22:it=(r=it)||a.memoizedState!==null,Xn(e,t,a),it=r;break;default:Xn(e,t,a)}}function vg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Al(e)}catch(a){He(t,t.return,a)}}}function xg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Al(e)}catch(a){He(t,t.return,a)}}function X1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pg),t;default:throw Error(i(435,e.tag))}}function To(e,t){var a=X1(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=aS.bind(null,e,r);r.then(o,o)}})}function Ot(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],d=e,y=t,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Da(S.type)){Ze=S.stateNode,At=!1;break e}break;case 5:Ze=S.stateNode,At=!1;break e;case 3:case 4:Ze=S.stateNode.containerInfo,At=!0;break e}S=S.return}if(Ze===null)throw Error(i(160));bg(d,y,o),Ze=null,At=!1,d=o.alternate,d!==null&&(d.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sg(t,e),t=t.sibling}var vn=null;function Sg(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),kt(e),r&4&&(Ra(3,e,e.return),Vr(3,e),Ra(5,e,e.return));break;case 1:Ot(t,e),kt(e),r&512&&(it||a===null||Rn(a,a.return)),r&64&&Fn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=vn;if(Ot(t,e),kt(e),r&512&&(it||a===null||Rn(a,a.return)),r&4){var d=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":d=o.getElementsByTagName("title")[0],(!d||d[gr]||d[pt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=o.createElement(r),o.head.insertBefore(d,o.querySelector("head > title"))),vt(d,r,a),d[pt]=e,dt(d),r=d;break e;case"link":var y=Sy("link","href",o).get(r+(a.href||""));if(y){for(var S=0;S<y.length;S++)if(d=y[S],d.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&d.getAttribute("rel")===(a.rel==null?null:a.rel)&&d.getAttribute("title")===(a.title==null?null:a.title)&&d.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(S,1);break t}}d=o.createElement(r),vt(d,r,a),o.head.appendChild(d);break;case"meta":if(y=Sy("meta","content",o).get(r+(a.content||""))){for(S=0;S<y.length;S++)if(d=y[S],d.getAttribute("content")===(a.content==null?null:""+a.content)&&d.getAttribute("name")===(a.name==null?null:a.name)&&d.getAttribute("property")===(a.property==null?null:a.property)&&d.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&d.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(S,1);break t}}d=o.createElement(r),vt(d,r,a),o.head.appendChild(d);break;default:throw Error(i(468,r))}d[pt]=e,dt(d),r=d}e.stateNode=r}else jy(o,e.type,e.stateNode);else e.stateNode=xy(o,r,e.memoizedProps);else d!==r?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,r===null?jy(o,e.type,e.stateNode):xy(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&vd(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ot(t,e),kt(e),r&512&&(it||a===null||Rn(a,a.return)),a!==null&&r&4&&vd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ot(t,e),kt(e),r&512&&(it||a===null||Rn(a,a.return)),e.flags&32){o=e.stateNode;try{el(o,"")}catch(se){He(e,e.return,se)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,vd(e,o,a!==null?a.memoizedProps:o)),r&1024&&(jd=!0);break;case 6:if(Ot(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(se){He(e,e.return,se)}}break;case 3:if(Yo=null,o=vn,vn=Qo(t.containerInfo),Ot(t,e),vn=o,kt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Al(t.containerInfo)}catch(se){He(e,e.return,se)}jd&&(jd=!1,jg(e));break;case 4:r=vn,vn=Qo(e.stateNode.containerInfo),Ot(t,e),kt(e),vn=r;break;case 12:Ot(t,e),kt(e);break;case 31:Ot(t,e),kt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,To(e,r)));break;case 13:Ot(t,e),kt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ao=_t()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,To(e,r)));break;case 22:o=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,U=Fn,Y=it;if(Fn=U||o,it=Y||R,Ot(t,e),it=Y,Fn=U,kt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||R||Fn||it||Ss(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(d=R.stateNode,o)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=R.stateNode;var I=R.memoizedProps.style,B=I!=null&&I.hasOwnProperty("display")?I.display:null;S.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(se){He(R,R.return,se)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(se){He(R,R.return,se)}}}else if(t.tag===18){if(a===null){R=t;try{var G=R.stateNode;o?dy(G,!0):dy(R.stateNode,!1)}catch(se){He(R,R.return,se)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,To(e,a))));break;case 19:Ot(t,e),kt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,To(e,r)));break;case 30:break;case 21:break;default:Ot(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(hg(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var o=a.stateNode,d=xd(e);Ro(e,d,o);break;case 5:var y=a.stateNode;a.flags&32&&(el(y,""),a.flags&=-33);var S=xd(e);Ro(e,S,y);break;case 3:case 4:var R=a.stateNode.containerInfo,U=xd(e);Sd(e,U,R);break;default:throw Error(i(161))}}catch(Y){He(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Zn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gg(e,t.alternate,t),t=t.sibling}function Ss(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ra(4,t,t.return),Ss(t);break;case 1:Rn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&dg(t,t.return,a),Ss(t);break;case 27:$r(t.stateNode);case 26:case 5:Rn(t,t.return),Ss(t);break;case 22:t.memoizedState===null&&Ss(t);break;case 30:Ss(t);break;default:Ss(t)}e=e.sibling}}function Jn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Jn(o,d,a),Vr(4,d);break;case 1:if(Jn(o,d,a),r=d,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(U){He(r,r.return,U)}if(r=d,o=r.updateQueue,o!==null){var S=r.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Wm(R[o],S)}catch(U){He(r,r.return,U)}}a&&y&64&&ug(d),Qr(d,d.return);break;case 27:mg(d);case 26:case 5:Jn(o,d,a),a&&r===null&&y&4&&fg(d),Qr(d,d.return);break;case 12:Jn(o,d,a);break;case 31:Jn(o,d,a),a&&y&4&&vg(o,d);break;case 13:Jn(o,d,a),a&&y&4&&xg(o,d);break;case 22:d.memoizedState===null&&Jn(o,d,a),Qr(d,d.return);break;case 30:break;default:Jn(o,d,a)}t=t.sibling}}function Nd(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Tr(a))}function _d(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tr(e))}function xn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ng(e,t,a,r),t=t.sibling}function Ng(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,a,r),o&2048&&Vr(9,t);break;case 1:xn(e,t,a,r);break;case 3:xn(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tr(e)));break;case 12:if(o&2048){xn(e,t,a,r),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,S=d.onPostCommit;typeof S=="function"&&S(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){He(t,t.return,R)}}else xn(e,t,a,r);break;case 31:xn(e,t,a,r);break;case 13:xn(e,t,a,r);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?xn(e,t,a,r):Gr(e,t):d._visibility&2?xn(e,t,a,r):(d._visibility|=2,xl(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Nd(y,t);break;case 24:xn(e,t,a,r),o&2048&&_d(t.alternate,t);break;default:xn(e,t,a,r)}}function xl(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,S=a,R=r,U=y.flags;switch(y.tag){case 0:case 11:case 15:xl(d,y,S,R,o),Vr(8,y);break;case 23:break;case 22:var Y=y.stateNode;y.memoizedState!==null?Y._visibility&2?xl(d,y,S,R,o):Gr(d,y):(Y._visibility|=2,xl(d,y,S,R,o)),o&&U&2048&&Nd(y.alternate,y);break;case 24:xl(d,y,S,R,o),o&&U&2048&&_d(y.alternate,y);break;default:xl(d,y,S,R,o)}t=t.sibling}}function Gr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:Gr(a,r),o&2048&&Nd(r.alternate,r);break;case 24:Gr(a,r),o&2048&&_d(r.alternate,r);break;default:Gr(a,r)}t=t.sibling}}var Yr=8192;function Sl(e,t,a){if(e.subtreeFlags&Yr)for(e=e.child;e!==null;)_g(e,t,a),e=e.sibling}function _g(e,t,a){switch(e.tag){case 26:Sl(e,t,a),e.flags&Yr&&e.memoizedState!==null&&zS(a,vn,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,a);break;case 3:case 4:var r=vn;vn=Qo(e.stateNode.containerInfo),Sl(e,t,a),vn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Yr,Yr=16777216,Sl(e,t,a),Yr=r):Sl(e,t,a));break;default:Sl(e,t,a)}}function wg(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 Kr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];ft=r,Cg(r,e)}wg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Eg(e),e=e.sibling}function Eg(e){switch(e.tag){case 0:case 11:case 15:Kr(e),e.flags&2048&&Ra(9,e,e.return);break;case 3:Kr(e);break;case 12:Kr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mo(e)):Kr(e);break;default:Kr(e)}}function Mo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];ft=r,Cg(r,e)}wg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ra(8,t,t.return),Mo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Mo(t));break;default:Mo(t)}e=e.sibling}}function Cg(e,t){for(;ft!==null;){var a=ft;switch(a.tag){case 0:case 11:case 15:Ra(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Tr(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,ft=r;else e:for(a=e;ft!==null;){r=ft;var o=r.sibling,d=r.return;if(yg(r),r===a){ft=null;break e}if(o!==null){o.return=d,ft=o;break e}ft=d}}}var Z1={getCacheForType:function(e){var t=yt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return yt(st).controller.signal}},J1=typeof WeakMap=="function"?WeakMap:Map,De=0,Ye=null,we=null,Ce=0,qe=0,Ft=null,Ta=!1,jl=!1,wd=!1,In=0,We=0,Ma=0,js=0,Ed=0,Xt=0,Nl=0,Fr=null,zt=null,Cd=!1,Ao=0,Rg=0,Oo=1/0,ko=null,Aa=null,ot=0,Oa=null,_l=null,$n=0,Rd=0,Td=null,Tg=null,Xr=0,Md=null;function Zt(){return(De&2)!==0&&Ce!==0?Ce&-Ce:k.T!==null?Ld():Yh()}function Mg(){if(Xt===0)if((Ce&536870912)===0||Me){var e=Hi;Hi<<=1,(Hi&3932160)===0&&(Hi=262144),Xt=e}else Xt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Xt}function Dt(e,t,a){(e===Ye&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(wl(e,0),ka(e,Ce,Xt,!1)),pr(e,a),((De&2)===0||e!==Ye)&&(e===Ye&&((De&2)===0&&(js|=a),We===4&&ka(e,Ce,Xt,!1)),Tn(e))}function Ag(e,t,a){if((De&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||mr(e,t),o=r?W1(e,t):Od(e,t,!0),d=r;do{if(o===0){jl&&!r&&ka(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!I1(a)){o=Od(e,t,!1),d=!1;continue}if(o===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var S=e;o=Fr;var R=S.current.memoizedState.isDehydrated;if(R&&(wl(S,y).flags|=256),y=Od(S,y,!1),y!==2){if(wd&&!R){S.errorRecoveryDisabledLanes|=d,js|=d,o=4;break e}d=zt,zt=o,d!==null&&(zt===null?zt=d:zt.push.apply(zt,d))}o=y}if(d=!1,o!==2)continue}}if(o===1){wl(e,0),ka(e,t,0,!0);break}e:{switch(r=e,d=o,d){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ka(r,t,Xt,!Ta);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(o=Ao+300-_t(),10<o)){if(ka(r,t,Xt,!Ta),Vi(r,0,!0)!==0)break e;$n=t,r.timeoutHandle=oy(Og.bind(null,r,a,zt,ko,Cd,t,Xt,js,Nl,Ta,d,"Throttled",-0,0),o);break e}Og(r,a,zt,ko,Cd,t,Xt,js,Nl,Ta,d,null,-0,0)}}break}while(!0);Tn(e)}function Og(e,t,a,r,o,d,y,S,R,U,Y,I,B,G){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},_g(t,d,I);var se=(d&62914560)===d?Ao-_t():(d&4194048)===d?Rg-_t():0;if(se=DS(I,se),se!==null){$n=d,e.cancelPendingCommit=se(Hg.bind(null,e,t,d,a,r,o,y,S,R,Y,I,null,B,G)),ka(e,d,y,!U);return}}Hg(e,t,d,a,r,o,y,S,R)}function I1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var o=a[r],d=o.getSnapshot;o=o.value;try{if(!Qt(d(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ka(e,t,a,r){t&=~Ed,t&=~js,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var d=31-Vt(o),y=1<<d;r[d]=-1,o&=~y}a!==0&&Vh(e,a,t)}function zo(){return(De&6)===0?(Zr(0),!1):!0}function Ad(){if(we!==null){if(qe===0)var e=we.return;else e=we,Pn=hs=null,Fu(e),pl=null,Ar=0,e=we;for(;e!==null;)cg(e.alternate,e),e=e.return;we=null}}function wl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,yS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),$n=0,Ad(),Ye=e,we=a=qn(e.current,null),Ce=t,qe=0,Ft=null,Ta=!1,jl=mr(e,t),wd=!1,Nl=Xt=Ed=js=Ma=We=0,zt=Fr=null,Cd=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-Vt(r),d=1<<o;t|=e[o],r&=~d}return In=t,eo(),a}function kg(e,t){xe=null,k.H=qr,t===ml||t===oo?(t=Zm(),qe=3):t===Du?(t=Zm(),qe=4):qe=t===cd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,we===null&&(We=1,No(e,nn(t,e.current)))}function zg(){var e=Yt.current;return e===null?!0:(Ce&4194048)===Ce?rn===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===rn:!1}function Dg(){var e=k.H;return k.H=qr,e===null?qr:e}function Lg(){var e=k.A;return k.A=Z1,e}function Do(){We=4,Ta||(Ce&4194048)!==Ce&&Yt.current!==null||(jl=!0),(Ma&134217727)===0&&(js&134217727)===0||Ye===null||ka(Ye,Ce,Xt,!1)}function Od(e,t,a){var r=De;De|=2;var o=Dg(),d=Lg();(Ye!==e||Ce!==t)&&(ko=null,wl(e,t)),t=!1;var y=We;e:do try{if(qe!==0&&we!==null){var S=we,R=Ft;switch(qe){case 8:Ad(),y=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var U=qe;if(qe=0,Ft=null,El(e,S,R,U),a&&jl){y=0;break e}break;default:U=qe,qe=0,Ft=null,El(e,S,R,U)}}$1(),y=We;break}catch(Y){kg(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Pn=hs=null,De=r,k.H=o,k.A=d,we===null&&(Ye=null,Ce=0,eo()),y}function $1(){for(;we!==null;)Ug(we)}function W1(e,t){var a=De;De|=2;var r=Dg(),o=Lg();Ye!==e||Ce!==t?(ko=null,Oo=_t()+500,wl(e,t)):jl=mr(e,t);e:do try{if(qe!==0&&we!==null){t=we;var d=Ft;t:switch(qe){case 1:qe=0,Ft=null,El(e,t,d,1);break;case 2:case 9:if(Fm(d)){qe=0,Ft=null,Bg(t);break}t=function(){qe!==2&&qe!==9||Ye!==e||(qe=7),Tn(e)},d.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Fm(d)?(qe=0,Ft=null,Bg(t)):(qe=0,Ft=null,El(e,t,d,7));break;case 5:var y=null;switch(we.tag){case 26:y=we.memoizedState;case 5:case 27:var S=we;if(y?Ny(y):S.stateNode.complete){qe=0,Ft=null;var R=S.sibling;if(R!==null)we=R;else{var U=S.return;U!==null?(we=U,Lo(U)):we=null}break t}}qe=0,Ft=null,El(e,t,d,5);break;case 6:qe=0,Ft=null,El(e,t,d,6);break;case 8:Ad(),We=6;break e;default:throw Error(i(462))}}eS();break}catch(Y){kg(e,Y)}while(!0);return Pn=hs=null,k.H=r,k.A=o,De=a,we!==null?0:(Ye=null,Ce=0,eo(),We)}function eS(){for(;we!==null&&!Ui();)Ug(we)}function Ug(e){var t=ig(e.alternate,e,In);e.memoizedProps=e.pendingProps,t===null?Lo(e):we=t}function Bg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=tg(a,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=tg(a,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:Fu(t);default:cg(a,t),t=we=Lm(t,In),t=ig(a,t,In)}e.memoizedProps=e.pendingProps,t===null?Lo(e):we=t}function El(e,t,a,r){Pn=hs=null,Fu(t),pl=null,Ar=0;var o=t.return;try{if(V1(e,o,t,a,Ce)){We=1,No(e,nn(a,e.current)),we=null;return}}catch(d){if(o!==null)throw we=o,d;We=1,No(e,nn(a,e.current)),we=null;return}t.flags&32768?(Me||r===1?e=!0:jl||(Ce&536870912)!==0?e=!1:(Ta=e=!0,(r===2||r===9||r===3||r===6)&&(r=Yt.current,r!==null&&r.tag===13&&(r.flags|=16384))),qg(t,e)):Lo(t)}function Lo(e){var t=e;do{if((t.flags&32768)!==0){qg(t,Ta);return}e=t.return;var a=Y1(t.alternate,t,In);if(a!==null){we=a;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);We===0&&(We=5)}function qg(e,t){do{var a=K1(e.alternate,e);if(a!==null){a.flags&=32767,we=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=a}while(e!==null);We=6,we=null}function Hg(e,t,a,r,o,d,y,S,R){e.cancelPendingCommit=null;do Uo();while(ot!==0);if((De&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(d=t.lanes|t.childLanes,d|=xu,k0(e,a,d,y,S,R),e===Ye&&(we=Ye=null,Ce=0),_l=t,Oa=e,$n=a,Rd=d,Td=o,Tg=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,sS(xt,function(){return Yg(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=k.T,k.T=null,o=V.p,V.p=2,y=De,De|=4;try{F1(e,t,a)}finally{De=y,V.p=o,k.T=r}}ot=1,Pg(),Vg(),Qg()}}function Pg(){if(ot===1){ot=0;var e=Oa,t=_l,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var r=V.p;V.p=2;var o=De;De|=4;try{Sg(t,e);var d=Gd,y=Cm(e.containerInfo),S=d.focusedElem,R=d.selectionRange;if(y!==S&&S&&S.ownerDocument&&Em(S.ownerDocument.documentElement,S)){if(R!==null&&pu(S)){var U=R.start,Y=R.end;if(Y===void 0&&(Y=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(Y,S.value.length);else{var I=S.ownerDocument||document,B=I&&I.defaultView||window;if(B.getSelection){var G=B.getSelection(),se=S.textContent.length,pe=Math.min(R.start,se),Qe=R.end===void 0?pe:Math.min(R.end,se);!G.extend&&pe>Qe&&(y=Qe,Qe=pe,pe=y);var z=wm(S,pe),A=wm(S,Qe);if(z&&A&&(G.rangeCount!==1||G.anchorNode!==z.node||G.anchorOffset!==z.offset||G.focusNode!==A.node||G.focusOffset!==A.offset)){var L=I.createRange();L.setStart(z.node,z.offset),G.removeAllRanges(),pe>Qe?(G.addRange(L),G.extend(A.node,A.offset)):(L.setEnd(A.node,A.offset),G.addRange(L))}}}}for(I=[],G=S;G=G.parentNode;)G.nodeType===1&&I.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<I.length;S++){var Z=I[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Zo=!!Qd,Gd=Qd=null}finally{De=o,V.p=r,k.T=a}}e.current=t,ot=2}}function Vg(){if(ot===2){ot=0;var e=Oa,t=_l,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var r=V.p;V.p=2;var o=De;De|=4;try{gg(e,t.alternate,t)}finally{De=o,V.p=r,k.T=a}}ot=3}}function Qg(){if(ot===4||ot===3){ot=0,Kc();var e=Oa,t=_l,a=$n,r=Tg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,_l=Oa=null,Gg(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Aa=null),Jc(a),t=t.stateNode,Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(hr,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=k.T,o=V.p,V.p=2,k.T=null;try{for(var d=e.onRecoverableError,y=0;y<r.length;y++){var S=r[y];d(S.value,{componentStack:S.stack})}}finally{k.T=t,V.p=o}}($n&3)!==0&&Uo(),Tn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Md?Xr++:(Xr=0,Md=e):Xr=0,Zr(0)}}function Gg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tr(t)))}function Uo(){return Pg(),Vg(),Qg(),Yg()}function Yg(){if(ot!==5)return!1;var e=Oa,t=Rd;Rd=0;var a=Jc($n),r=k.T,o=V.p;try{V.p=32>a?32:a,k.T=null,a=Td,Td=null;var d=Oa,y=$n;if(ot=0,_l=Oa=null,$n=0,(De&6)!==0)throw Error(i(331));var S=De;if(De|=4,Eg(d.current),Ng(d,d.current,y,a),De=S,Zr(0,!1),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(hr,d)}catch{}return!0}finally{V.p=o,k.T=r,Gg(e,t)}}function Kg(e,t,a){t=nn(a,t),t=od(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(pr(e,2),Tn(e))}function He(e,t,a){if(e.tag===3)Kg(e,e,a);else for(;t!==null;){if(t.tag===3){Kg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Aa===null||!Aa.has(r))){e=nn(a,e),a=Fp(2),r=wa(t,a,2),r!==null&&(Xp(a,r,t,e),pr(r,2),Tn(r));break}}t=t.return}}function kd(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new J1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(wd=!0,o.add(a),e=tS.bind(null,e,t,a),t.then(e,e))}function tS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ye===e&&(Ce&a)===a&&(We===4||We===3&&(Ce&62914560)===Ce&&300>_t()-Ao?(De&2)===0&&wl(e,0):Ed|=a,Nl===Ce&&(Nl=0)),Tn(e)}function Fg(e,t){t===0&&(t=Ph()),e=us(e,t),e!==null&&(pr(e,t),Tn(e))}function nS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fg(e,a)}function aS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Fg(e,a)}function sS(e,t){return dr(e,t)}var Bo=null,Cl=null,zd=!1,qo=!1,Dd=!1,za=0;function Tn(e){e!==Cl&&e.next===null&&(Cl===null?Bo=Cl=e:Cl=Cl.next=e),qo=!0,zd||(zd=!0,rS())}function Zr(e,t){if(!Dd&&qo){Dd=!0;do for(var a=!1,r=Bo;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var d=0;else{var y=r.suspendedLanes,S=r.pingedLanes;d=(1<<31-Vt(42|e)+1)-1,d&=o&~(y&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,Ig(r,d))}else d=Ce,d=Vi(r,r===Ye?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||mr(r,d)||(a=!0,Ig(r,d));r=r.next}while(a);Dd=!1}}function lS(){Xg()}function Xg(){qo=zd=!1;var e=0;za!==0&&gS()&&(e=za);for(var t=_t(),a=null,r=Bo;r!==null;){var o=r.next,d=Zg(r,t);d===0?(r.next=null,a===null?Bo=o:a.next=o,o===null&&(Cl=a)):(a=r,(e!==0||(d&3)!==0)&&(qo=!0)),r=o}ot!==0&&ot!==5||Zr(e),za!==0&&(za=0)}function Zg(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-Vt(d),S=1<<y,R=o[y];R===-1?((S&a)===0||(S&r)!==0)&&(o[y]=O0(S,t)):R<=t&&(e.expiredLanes|=S),d&=~S}if(t=Ye,a=Ce,a=Vi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&fr(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||mr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&fr(r),Jc(a)){case 2:case 8:a=mt;break;case 32:a=xt;break;case 268435456:a=Hh;break;default:a=xt}return r=Jg.bind(null,e),a=dr(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&fr(r),e.callbackPriority=2,e.callbackNode=null,2}function Jg(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Uo()&&e.callbackNode!==a)return null;var r=Ce;return r=Vi(e,e===Ye?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ag(e,r,t),Zg(e,_t()),e.callbackNode!=null&&e.callbackNode===a?Jg.bind(null,e):null)}function Ig(e,t){if(Uo())return null;Ag(e,t,!0)}function rS(){bS(function(){(De&6)!==0?dr(Ge,lS):Xg()})}function Ld(){if(za===0){var e=fl;e===0&&(e=qi,qi<<=1,(qi&261888)===0&&(qi=256)),za=e}return za}function $g(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ki(""+e)}function Wg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function iS(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var d=$g((o[Tt]||null).action),y=r.submitter;y&&(t=(t=y[Tt]||null)?$g(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var S=new Ji("action","action",null,r,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(za!==0){var R=y?Wg(o,y):new FormData(o);nd(a,{pending:!0,data:R,method:o.method,action:d},null,R)}}else typeof d=="function"&&(S.preventDefault(),R=y?Wg(o,y):new FormData(o),nd(a,{pending:!0,data:R,method:o.method,action:d},d,R))},currentTarget:o}]})}}for(var Ud=0;Ud<vu.length;Ud++){var Bd=vu[Ud],oS=Bd.toLowerCase(),cS=Bd[0].toUpperCase()+Bd.slice(1);bn(oS,"on"+cS)}bn(Mm,"onAnimationEnd"),bn(Am,"onAnimationIteration"),bn(Om,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(w1,"onTransitionRun"),bn(E1,"onTransitionStart"),bn(C1,"onTransitionCancel"),bn(km,"onTransitionEnd"),$s("onMouseEnter",["mouseout","mouseover"]),$s("onMouseLeave",["mouseout","mouseover"]),$s("onPointerEnter",["pointerout","pointerover"]),$s("onPointerLeave",["pointerout","pointerover"]),rs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rs("onBeforeInput",["compositionend","keypress","textInput","paste"]),rs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="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(" "),uS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jr));function ey(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var y=r.length-1;0<=y;y--){var S=r[y],R=S.instance,U=S.currentTarget;if(S=S.listener,R!==d&&o.isPropagationStopped())break e;d=S,o.currentTarget=U;try{d(o)}catch(Y){Wi(Y)}o.currentTarget=null,d=R}else for(y=0;y<r.length;y++){if(S=r[y],R=S.instance,U=S.currentTarget,S=S.listener,R!==d&&o.isPropagationStopped())break e;d=S,o.currentTarget=U;try{d(o)}catch(Y){Wi(Y)}o.currentTarget=null,d=R}}}}function Ee(e,t){var a=t[Ic];a===void 0&&(a=t[Ic]=new Set);var r=e+"__bubble";a.has(r)||(ty(t,e,2,!1),a.add(r))}function qd(e,t,a){var r=0;t&&(r|=4),ty(a,e,r,t)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function Hd(e){if(!e[Ho]){e[Ho]=!0,Xh.forEach(function(a){a!=="selectionchange"&&(uS.has(a)||qd(a,!1,e),qd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ho]||(t[Ho]=!0,qd("selectionchange",!1,t))}}function ty(e,t,a,r){switch(My(t)){case 2:var o=BS;break;case 8:o=qS;break;default:o=tf}a=o.bind(null,t,a,e),o=void 0,!ru||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Pd(e,t,a,r,o){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var S=r.stateNode.containerInfo;if(S===o)break;if(y===4)for(y=r.return;y!==null;){var R=y.tag;if((R===3||R===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;S!==null;){if(y=Zs(S),y===null)return;if(R=y.tag,R===5||R===6||R===26||R===27){r=d=y;continue e}S=S.parentNode}}r=r.return}rm(function(){var U=d,Y=su(a),I=[];e:{var B=zm.get(e);if(B!==void 0){var G=Ji,se=e;switch(e){case"keypress":if(Xi(a)===0)break e;case"keydown":case"keyup":G=a1;break;case"focusin":se="focus",G=uu;break;case"focusout":se="blur",G=uu;break;case"beforeblur":case"afterblur":G=uu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Y0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=r1;break;case Mm:case Am:case Om:G=X0;break;case km:G=o1;break;case"scroll":case"scrollend":G=Q0;break;case"wheel":G=u1;break;case"copy":case"cut":case"paste":G=J0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=dm;break;case"toggle":case"beforetoggle":G=f1}var pe=(t&4)!==0,Qe=!pe&&(e==="scroll"||e==="scrollend"),z=pe?B!==null?B+"Capture":null:B;pe=[];for(var A=U,L;A!==null;){var Z=A;if(L=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||L===null||z===null||(Z=br(A,z),Z!=null&&pe.push(Ir(A,Z,L))),Qe)break;A=A.return}0<pe.length&&(B=new G(B,se,null,a,Y),I.push({event:B,listeners:pe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",B&&a!==au&&(se=a.relatedTarget||a.fromElement)&&(Zs(se)||se[Xs]))break e;if((G||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,G?(se=a.relatedTarget||a.toElement,G=U,se=se?Zs(se):null,se!==null&&(Qe=f(se),pe=se.tag,se!==Qe||pe!==5&&pe!==27&&pe!==6)&&(se=null)):(G=null,se=U),G!==se)){if(pe=cm,Z="onMouseLeave",z="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(pe=dm,Z="onPointerLeave",z="onPointerEnter",A="pointer"),Qe=G==null?B:yr(G),L=se==null?B:yr(se),B=new pe(Z,A+"leave",G,a,Y),B.target=Qe,B.relatedTarget=L,Z=null,Zs(Y)===U&&(pe=new pe(z,A+"enter",se,a,Y),pe.target=L,pe.relatedTarget=Qe,Z=pe),Qe=Z,G&&se)t:{for(pe=dS,z=G,A=se,L=0,Z=z;Z;Z=pe(Z))L++;Z=0;for(var de=A;de;de=pe(de))Z++;for(;0<L-Z;)z=pe(z),L--;for(;0<Z-L;)A=pe(A),Z--;for(;L--;){if(z===A||A!==null&&z===A.alternate){pe=z;break t}z=pe(z),A=pe(A)}pe=null}else pe=null;G!==null&&ny(I,B,G,pe,!1),se!==null&&Qe!==null&&ny(I,Qe,se,pe,!0)}}e:{if(B=U?yr(U):window,G=B.nodeName&&B.nodeName.toLowerCase(),G==="select"||G==="input"&&B.type==="file")var Oe=vm;else if(ym(B))if(xm)Oe=j1;else{Oe=x1;var oe=v1}else G=B.nodeName,!G||G.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?U&&nu(U.elementType)&&(Oe=vm):Oe=S1;if(Oe&&(Oe=Oe(e,U))){bm(I,Oe,a,Y);break e}oe&&oe(e,B,U),e==="focusout"&&U&&B.type==="number"&&U.memoizedProps.value!=null&&tu(B,"number",B.value)}switch(oe=U?yr(U):window,e){case"focusin":(ym(oe)||oe.contentEditable==="true")&&(sl=oe,gu=U,Er=null);break;case"focusout":Er=gu=sl=null;break;case"mousedown":yu=!0;break;case"contextmenu":case"mouseup":case"dragend":yu=!1,Rm(I,a,Y);break;case"selectionchange":if(_1)break;case"keydown":case"keyup":Rm(I,a,Y)}var je;if(fu)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else al?pm(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(fm&&a.locale!=="ko"&&(al||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&al&&(je=im()):(ba=Y,iu="value"in ba?ba.value:ba.textContent,al=!0)),oe=Po(U,Re),0<oe.length&&(Re=new um(Re,e,null,a,Y),I.push({event:Re,listeners:oe}),je?Re.data=je:(je=gm(a),je!==null&&(Re.data=je)))),(je=m1?p1(e,a):g1(e,a))&&(Re=Po(U,"onBeforeInput"),0<Re.length&&(oe=new um("onBeforeInput","beforeinput",null,a,Y),I.push({event:oe,listeners:Re}),oe.data=je)),iS(I,e,U,a,Y)}ey(I,t)})}function Ir(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Po(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,d=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||d===null||(o=br(e,a),o!=null&&r.unshift(Ir(e,o,d)),o=br(e,t),o!=null&&r.push(Ir(e,o,d))),e.tag===3)return r;e=e.return}return[]}function dS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ny(e,t,a,r,o){for(var d=t._reactName,y=[];a!==null&&a!==r;){var S=a,R=S.alternate,U=S.stateNode;if(S=S.tag,R!==null&&R===r)break;S!==5&&S!==26&&S!==27||U===null||(R=U,o?(U=br(a,d),U!=null&&y.unshift(Ir(a,U,R))):o||(U=br(a,d),U!=null&&y.push(Ir(a,U,R)))),a=a.return}y.length!==0&&e.push({event:t,listeners:y})}var fS=/\r\n?/g,hS=/\u0000|\uFFFD/g;function ay(e){return(typeof e=="string"?e:""+e).replace(fS,`
|
|
49
|
+
`).replace(hS,"")}function sy(e,t){return t=ay(t),ay(e)===t}function Ve(e,t,a,r,o,d){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||el(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&el(e,""+r);break;case"className":Gi(e,"class",r);break;case"tabIndex":Gi(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Gi(e,a,r);break;case"style":sm(e,r,d);break;case"data":if(t!=="object"){Gi(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Ki(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"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 d=="function"&&(a==="formAction"?(t!=="input"&&Ve(e,t,"name",o.name,o,null),Ve(e,t,"formEncType",o.formEncType,o,null),Ve(e,t,"formMethod",o.formMethod,o,null),Ve(e,t,"formTarget",o.formTarget,o,null)):(Ve(e,t,"encType",o.encType,o,null),Ve(e,t,"method",o.method,o,null),Ve(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Ki(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Un);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Ki(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Qi(e,"popover",r);break;case"xlinkActuate":Ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Ln(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Ln(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Ln(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Ln(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Qi(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=P0.get(a)||a,Qi(e,a,r))}}function Vd(e,t,a,r,o,d){switch(a){case"style":sm(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof r=="string"?el(e,r):(typeof r=="number"||typeof r=="bigint")&&el(e,""+r);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),d=e[Tt]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,o),typeof r=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Qi(e,a,r)}}}function vt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var r=!1,o=!1,d;for(d in a)if(a.hasOwnProperty(d)){var y=a[d];if(y!=null)switch(d){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ve(e,t,d,y,a,null)}}o&&Ve(e,t,"srcSet",a.srcSet,a,null),r&&Ve(e,t,"src",a.src,a,null);return;case"input":Ee("invalid",e);var S=d=y=o=null,R=null,U=null;for(r in a)if(a.hasOwnProperty(r)){var Y=a[r];if(Y!=null)switch(r){case"name":o=Y;break;case"type":y=Y;break;case"checked":R=Y;break;case"defaultChecked":U=Y;break;case"value":d=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Ve(e,t,r,Y,a,null)}}em(e,d,S,R,U,y,o,!1);return;case"select":Ee("invalid",e),r=y=d=null;for(o in a)if(a.hasOwnProperty(o)&&(S=a[o],S!=null))switch(o){case"value":d=S;break;case"defaultValue":y=S;break;case"multiple":r=S;default:Ve(e,t,o,S,a,null)}t=d,a=y,e.multiple=!!r,t!=null?Ws(e,!!r,t,!1):a!=null&&Ws(e,!!r,a,!0);return;case"textarea":Ee("invalid",e),d=o=r=null;for(y in a)if(a.hasOwnProperty(y)&&(S=a[y],S!=null))switch(y){case"value":r=S;break;case"defaultValue":o=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Ve(e,t,y,S,a,null)}nm(e,r,o,d);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(r=a[R],r!=null))switch(R){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ve(e,t,R,r,a,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(r=0;r<Jr.length;r++)Ee(Jr[r],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(U in a)if(a.hasOwnProperty(U)&&(r=a[U],r!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ve(e,t,U,r,a,null)}return;default:if(nu(t)){for(Y in a)a.hasOwnProperty(Y)&&(r=a[Y],r!==void 0&&Vd(e,t,Y,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Ve(e,t,S,r,a,null))}function mS(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,d=null,y=null,S=null,R=null,U=null,Y=null;for(G in a){var I=a[G];if(a.hasOwnProperty(G)&&I!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":R=I;default:r.hasOwnProperty(G)||Ve(e,t,G,null,r,I)}}for(var B in r){var G=r[B];if(I=a[B],r.hasOwnProperty(B)&&(G!=null||I!=null))switch(B){case"type":d=G;break;case"name":o=G;break;case"checked":U=G;break;case"defaultChecked":Y=G;break;case"value":y=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,t));break;default:G!==I&&Ve(e,t,B,G,r,I)}}eu(e,y,S,R,U,Y,d,o);return;case"select":G=y=S=B=null;for(d in a)if(R=a[d],a.hasOwnProperty(d)&&R!=null)switch(d){case"value":break;case"multiple":G=R;default:r.hasOwnProperty(d)||Ve(e,t,d,null,r,R)}for(o in r)if(d=r[o],R=a[o],r.hasOwnProperty(o)&&(d!=null||R!=null))switch(o){case"value":B=d;break;case"defaultValue":S=d;break;case"multiple":y=d;default:d!==R&&Ve(e,t,o,d,r,R)}t=S,a=y,r=G,B!=null?Ws(e,!!a,B,!1):!!r!=!!a&&(t!=null?Ws(e,!!a,t,!0):Ws(e,!!a,a?[]:"",!1));return;case"textarea":G=B=null;for(S in a)if(o=a[S],a.hasOwnProperty(S)&&o!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ve(e,t,S,null,r,o)}for(y in r)if(o=r[y],d=a[y],r.hasOwnProperty(y)&&(o!=null||d!=null))switch(y){case"value":B=o;break;case"defaultValue":G=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(i(91));break;default:o!==d&&Ve(e,t,y,o,r,d)}tm(e,B,G);return;case"option":for(var se in a)if(B=a[se],a.hasOwnProperty(se)&&B!=null&&!r.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Ve(e,t,se,null,r,B)}for(R in r)if(B=r[R],G=a[R],r.hasOwnProperty(R)&&B!==G&&(B!=null||G!=null))switch(R){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ve(e,t,R,B,r,G)}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 pe in a)B=a[pe],a.hasOwnProperty(pe)&&B!=null&&!r.hasOwnProperty(pe)&&Ve(e,t,pe,null,r,B);for(U in r)if(B=r[U],G=a[U],r.hasOwnProperty(U)&&B!==G&&(B!=null||G!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,t));break;default:Ve(e,t,U,B,r,G)}return;default:if(nu(t)){for(var Qe in a)B=a[Qe],a.hasOwnProperty(Qe)&&B!==void 0&&!r.hasOwnProperty(Qe)&&Vd(e,t,Qe,void 0,r,B);for(Y in r)B=r[Y],G=a[Y],!r.hasOwnProperty(Y)||B===G||B===void 0&&G===void 0||Vd(e,t,Y,B,r,G);return}}for(var z in a)B=a[z],a.hasOwnProperty(z)&&B!=null&&!r.hasOwnProperty(z)&&Ve(e,t,z,null,r,B);for(I in r)B=r[I],G=a[I],!r.hasOwnProperty(I)||B===G||B==null&&G==null||Ve(e,t,I,B,r,G)}function ly(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],d=o.transferSize,y=o.initiatorType,S=o.duration;if(d&&S&&ly(y)){for(y=0,S=o.responseEnd,r+=1;r<a.length;r++){var R=a[r],U=R.startTime;if(U>S)break;var Y=R.transferSize,I=R.initiatorType;Y&&ly(I)&&(R=R.responseEnd,y+=Y*(R<S?1:(S-U)/(R-U)))}if(--r,t+=8*(d+y)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qd=null,Gd=null;function Vo(e){return e.nodeType===9?e:e.ownerDocument}function ry(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function iy(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Yd(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}var Kd=null;function gS(){var e=window.event;return e&&e.type==="popstate"?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var oy=typeof setTimeout=="function"?setTimeout:void 0,yS=typeof clearTimeout=="function"?clearTimeout:void 0,cy=typeof Promise=="function"?Promise:void 0,bS=typeof queueMicrotask=="function"?queueMicrotask:typeof cy<"u"?function(e){return cy.resolve(null).then(e).catch(vS)}:oy;function vS(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function uy(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Al(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")$r(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$r(a);for(var d=a.firstChild;d;){var y=d.nextSibling,S=d.nodeName;d[gr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=y}}else a==="body"&&$r(e.ownerDocument.body);a=o}while(a);Al(t)}function dy(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Fd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Fd(a),$c(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function xS(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[gr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=on(e.nextSibling),e===null)break}return null}function SS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=on(e.nextSibling),e===null))return null;return e}function fy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=on(e.nextSibling),e===null))return null;return e}function Xd(e){return e.data==="$?"||e.data==="$~"}function Zd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function on(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==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jd=null;function hy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return on(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function my(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function py(e,t,a){switch(t=Vo(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function $r(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$c(e)}var cn=new Map,gy=new Set;function Qo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Wn=V.d;V.d={f:NS,r:_S,D:wS,C:ES,L:CS,m:RS,X:MS,S:TS,M:AS};function NS(){var e=Wn.f(),t=zo();return e||t}function _S(e){var t=Js(e);t!==null&&t.tag===5&&t.type==="form"?kp(t):Wn.r(e)}var Rl=typeof document>"u"?null:document;function yy(e,t,a){var r=Rl;if(r&&typeof t=="string"&&t){var o=en(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),gy.has(o)||(gy.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),vt(t,"link",e),dt(t),r.head.appendChild(t)))}}function wS(e){Wn.D(e),yy("dns-prefetch",e,null)}function ES(e,t){Wn.C(e,t),yy("preconnect",e,t)}function CS(e,t,a){Wn.L(e,t,a);var r=Rl;if(r&&e&&t){var o='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+en(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+en(a.imageSizes)+'"]')):o+='[href="'+en(e)+'"]';var d=o;switch(t){case"style":d=Tl(e);break;case"script":d=Ml(e)}cn.has(d)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),cn.set(d,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Wr(d))||t==="script"&&r.querySelector(ei(d))||(t=r.createElement("link"),vt(t,"link",e),dt(t),r.head.appendChild(t)))}}function RS(e,t){Wn.m(e,t);var a=Rl;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+en(r)+'"][href="'+en(e)+'"]',d=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ml(e)}if(!cn.has(d)&&(e=b({rel:"modulepreload",href:e},t),cn.set(d,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ei(d)))return}r=a.createElement("link"),vt(r,"link",e),dt(r),a.head.appendChild(r)}}}function TS(e,t,a){Wn.S(e,t,a);var r=Rl;if(r&&e){var o=Is(r).hoistableStyles,d=Tl(e);t=t||"default";var y=o.get(d);if(!y){var S={loading:0,preload:null};if(y=r.querySelector(Wr(d)))S.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=cn.get(d))&&Id(e,a);var R=y=r.createElement("link");dt(R),vt(R,"link",e),R._p=new Promise(function(U,Y){R.onload=U,R.onerror=Y}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Go(y,t,r)}y={type:"stylesheet",instance:y,count:1,state:S},o.set(d,y)}}}function MS(e,t){Wn.X(e,t);var a=Rl;if(a&&e){var r=Is(a).hoistableScripts,o=Ml(e),d=r.get(o);d||(d=a.querySelector(ei(o)),d||(e=b({src:e,async:!0},t),(t=cn.get(o))&&$d(e,t),d=a.createElement("script"),dt(d),vt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(o,d))}}function AS(e,t){Wn.M(e,t);var a=Rl;if(a&&e){var r=Is(a).hoistableScripts,o=Ml(e),d=r.get(o);d||(d=a.querySelector(ei(o)),d||(e=b({src:e,async:!0,type:"module"},t),(t=cn.get(o))&&$d(e,t),d=a.createElement("script"),dt(d),vt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(o,d))}}function by(e,t,a,r){var o=(o=ve.current)?Qo(o):null;if(!o)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Tl(a.href),a=Is(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Tl(a.href);var d=Is(o).hoistableStyles,y=d.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=o.querySelector(Wr(e)))&&!d._p&&(y.instance=d,y.state.loading=5),cn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},cn.set(e,a),d||OS(o,e,a,y.state))),t&&r===null)throw Error(i(528,""));return y}if(t&&r!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ml(a),a=Is(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Tl(e){return'href="'+en(e)+'"'}function Wr(e){return'link[rel="stylesheet"]['+e+"]"}function vy(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function OS(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),vt(t,"link",a),dt(t),e.head.appendChild(t))}function Ml(e){return'[src="'+en(e)+'"]'}function ei(e){return"script[async]"+e}function xy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+en(a.href)+'"]');if(r)return t.instance=r,dt(r),r;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),vt(r,"style",o),Go(r,a.precedence,e),t.instance=r;case"stylesheet":o=Tl(a.href);var d=e.querySelector(Wr(o));if(d)return t.state.loading|=4,t.instance=d,dt(d),d;r=vy(a),(o=cn.get(o))&&Id(r,o),d=(e.ownerDocument||e).createElement("link"),dt(d);var y=d;return y._p=new Promise(function(S,R){y.onload=S,y.onerror=R}),vt(d,"link",r),t.state.loading|=4,Go(d,a.precedence,e),t.instance=d;case"script":return d=Ml(a.src),(o=e.querySelector(ei(d)))?(t.instance=o,dt(o),o):(r=a,(o=cn.get(d))&&(r=b({},a),$d(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),vt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Go(r,a.precedence,e));return t.instance}function Go(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,d=o,y=0;y<r.length;y++){var S=r[y];if(S.dataset.precedence===t)d=S;else if(d!==o)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $d(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yo=null;function Sy(e,t,a){if(Yo===null){var r=new Map,o=Yo=new Map;o.set(a,r)}else o=Yo,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var d=a[o];if(!(d[gr]||d[pt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var S=r.get(y);S?S.push(d):r.set(y,[d])}}return r}function jy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function kS(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ny(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function zS(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Tl(r.href),d=t.querySelector(Wr(o));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ko.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,dt(d);return}d=t.ownerDocument||t,r=vy(r),(o=cn.get(o))&&Id(r,o),d=d.createElement("link"),dt(d);var y=d;y._p=new Promise(function(S,R){y.onload=S,y.onerror=R}),vt(d,"link",r),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ko.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Wd=0;function DS(e,t){return e.stylesheets&&e.count===0&&Xo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Xo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Wd===0&&(Wd=62500*pS());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Wd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Ko(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fo=null;function Xo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fo=new Map,t.forEach(LS,e),Fo=null,Ko.call(e))}function LS(e,t){if(!(t.state.loading&4)){var a=Fo.get(e);if(a)var r=a.get(null);else{a=new Map,Fo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<o.length;d++){var y=o[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),r=y)}r&&a.set(null,r)}o=t.instance,y=o.getAttribute("data-precedence"),d=a.get(y)||r,d===r&&a.set(null,o),a.set(y,o),this.count++,r=Ko.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),d?d.parentNode.insertBefore(o,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ti={$$typeof:P,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function US(e,t,a,r,o,d,y,S,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xc(0),this.hiddenUpdates=Xc(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function _y(e,t,a,r,o,d,y,S,R,U,Y,I){return e=new US(e,t,a,y,R,U,Y,I,S),t=1,d===!0&&(t|=24),d=Gt(3,null,null,t),e.current=d,d.stateNode=e,t=Ou(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:a,cache:t},Lu(d),e}function wy(e){return e?(e=il,e):il}function Ey(e,t,a,r,o,d){o=wy(o),r.context===null?r.context=o:r.pendingContext=o,r=_a(t),r.payload={element:a},d=d===void 0?null:d,d!==null&&(r.callback=d),a=wa(e,r,t),a!==null&&(Dt(a,e,t),kr(a,e,t))}function Cy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ef(e,t){Cy(e,t),(e=e.alternate)&&Cy(e,t)}function Ry(e){if(e.tag===13||e.tag===31){var t=us(e,67108864);t!==null&&Dt(t,e,67108864),ef(e,67108864)}}function Ty(e){if(e.tag===13||e.tag===31){var t=Zt();t=Zc(t);var a=us(e,t);a!==null&&Dt(a,e,t),ef(e,t)}}var Zo=!0;function BS(e,t,a,r){var o=k.T;k.T=null;var d=V.p;try{V.p=2,tf(e,t,a,r)}finally{V.p=d,k.T=o}}function qS(e,t,a,r){var o=k.T;k.T=null;var d=V.p;try{V.p=8,tf(e,t,a,r)}finally{V.p=d,k.T=o}}function tf(e,t,a,r){if(Zo){var o=nf(r);if(o===null)Pd(e,t,r,Jo,a),Ay(e,r);else if(PS(o,e,t,a,r))r.stopPropagation();else if(Ay(e,r),t&4&&-1<HS.indexOf(e)){for(;o!==null;){var d=Js(o);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=ls(d.pendingLanes);if(y!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var R=1<<31-Vt(y);S.entanglements[1]|=R,y&=~R}Tn(d),(De&6)===0&&(Oo=_t()+500,Zr(0))}}break;case 31:case 13:S=us(d,2),S!==null&&Dt(S,d,2),zo(),ef(d,2)}if(d=nf(r),d===null&&Pd(e,t,r,Jo,a),d===o)break;o=d}o!==null&&r.stopPropagation()}else Pd(e,t,r,null,a)}}function nf(e){return e=su(e),af(e)}var Jo=null;function af(e){if(Jo=null,e=Zs(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Jo=e,null}function My(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 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fc()){case Ge:return 2;case mt:return 8;case xt:case Bi:return 32;case Hh:return 268435456;default:return 32}default:return 32}}var sf=!1,La=null,Ua=null,Ba=null,ni=new Map,ai=new Map,qa=[],HS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ay(e,t){switch(e){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function si(e,t,a,r,o,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:d,targetContainers:[o]},t!==null&&(t=Js(t),t!==null&&Ry(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function PS(e,t,a,r,o){switch(t){case"focusin":return La=si(La,e,t,a,r,o),!0;case"dragenter":return Ua=si(Ua,e,t,a,r,o),!0;case"mouseover":return Ba=si(Ba,e,t,a,r,o),!0;case"pointerover":var d=o.pointerId;return ni.set(d,si(ni.get(d)||null,e,t,a,r,o)),!0;case"gotpointercapture":return d=o.pointerId,ai.set(d,si(ai.get(d)||null,e,t,a,r,o)),!0}return!1}function Oy(e){var t=Zs(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Kh(e.priority,function(){Ty(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Kh(e.priority,function(){Ty(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Io(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=nf(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);au=r,a.target.dispatchEvent(r),au=null}else return t=Js(a),t!==null&&Ry(t),e.blockedOn=a,!1;t.shift()}return!0}function ky(e,t,a){Io(e)&&a.delete(t)}function VS(){sf=!1,La!==null&&Io(La)&&(La=null),Ua!==null&&Io(Ua)&&(Ua=null),Ba!==null&&Io(Ba)&&(Ba=null),ni.forEach(ky),ai.forEach(ky)}function $o(e,t){e.blockedOn===t&&(e.blockedOn=null,sf||(sf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,VS)))}var Wo=null;function zy(e){Wo!==e&&(Wo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Wo===e&&(Wo=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(af(r||a)===null)continue;break}var d=Js(a);d!==null&&(e.splice(t,3),t-=3,nd(d,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Al(e){function t(R){return $o(R,e)}La!==null&&$o(La,e),Ua!==null&&$o(Ua,e),Ba!==null&&$o(Ba,e),ni.forEach(t),ai.forEach(t);for(var a=0;a<qa.length;a++){var r=qa[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<qa.length&&(a=qa[0],a.blockedOn===null);)Oy(a),a.blockedOn===null&&qa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],d=a[r+1],y=o[Tt]||null;if(typeof d=="function")y||zy(a);else if(y){var S=null;if(d&&d.hasAttribute("formAction")){if(o=d,y=d[Tt]||null)S=y.formAction;else if(af(o)!==null)continue}else S=y.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),zy(a)}}}function Dy(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function lf(e){this._internalRoot=e}ec.prototype.render=lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=Zt();Ey(a,r,e,t,null,null)},ec.prototype.unmount=lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ey(e.current,2,null,e,null,null),zo(),t[Xs]=null}};function ec(e){this._internalRoot=e}ec.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yh();e={blockedOn:null,target:e,priority:t};for(var a=0;a<qa.length&&t!==0&&t<qa[a].priority;a++);qa.splice(a,0,e),a===0&&Oy(e)}};var Ly=s.version;if(Ly!=="19.2.4")throw Error(i(527,Ly,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var QS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{hr=tc.inject(QS),Pt=tc}catch{}}return ri.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,r="",o=Qp,d=Gp,y=Yp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=_y(e,1,!1,null,null,a,r,null,o,d,y,Dy),e[Xs]=t.current,Hd(e),new lf(t)},ri.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var r=!1,o="",d=Qp,y=Gp,S=Yp,R=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=_y(e,1,!0,t,a??null,r,o,R,d,y,S,Dy),t.context=wy(null),a=t.current,r=Zt(),r=Zc(r),o=_a(r),o.callback=null,wa(a,o,r),a=r,t.current.lanes=a,pr(t,a),Tn(t),e[Xs]=t.current,Hd(e),new ec(t)},ri.version="19.2.4",ri}var Fy;function WS(){if(Fy)return uf.exports;Fy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),uf.exports=$S(),uf.exports}var e2=WS(),ir=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},t2={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},Ya,uh,cv,n2=(cv=class{constructor(){ue(this,Ya,t2);ue(this,uh,!1)}setTimeoutProvider(n){ae(this,Ya,n)}setTimeout(n,s){return T(this,Ya).setTimeout(n,s)}clearTimeout(n){T(this,Ya).clearTimeout(n)}setInterval(n,s){return T(this,Ya).setInterval(n,s)}clearInterval(n){T(this,Ya).clearInterval(n)}},Ya=new WeakMap,uh=new WeakMap,cv),ws=new n2;function a2(n){setTimeout(n,0)}var Hs=typeof window>"u"||"Deno"in globalThis;function Rt(){}function s2(n,s){return typeof n=="function"?n(s):n}function qf(n){return typeof n=="number"&&n>=0&&n!==1/0}function Nv(n,s){return Math.max(n+(s||0)-Date.now(),0)}function ns(n,s){return typeof n=="function"?n(s):n}function dn(n,s){return typeof n=="function"?n(s):n}function Xy(n,s){const{type:l="all",exact:i,fetchStatus:u,predicate:f,queryKey:h,stale:m}=n;if(h){if(i){if(s.queryHash!==dh(h,s.options))return!1}else if(!ji(s.queryKey,h))return!1}if(l!=="all"){const p=s.isActive();if(l==="active"&&!p||l==="inactive"&&p)return!1}return!(typeof m=="boolean"&&s.isStale()!==m||u&&u!==s.state.fetchStatus||f&&!f(s))}function Zy(n,s){const{exact:l,status:i,predicate:u,mutationKey:f}=n;if(f){if(!s.options.mutationKey)return!1;if(l){if(Ps(s.options.mutationKey)!==Ps(f))return!1}else if(!ji(s.options.mutationKey,f))return!1}return!(i&&s.state.status!==i||u&&!u(s))}function dh(n,s){return((s==null?void 0:s.queryKeyHashFn)||Ps)(n)}function Ps(n){return JSON.stringify(n,(s,l)=>Hf(l)?Object.keys(l).sort().reduce((i,u)=>(i[u]=l[u],i),{}):l)}function ji(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(l=>ji(n[l],s[l])):!1}var l2=Object.prototype.hasOwnProperty;function _v(n,s,l=0){if(n===s)return n;if(l>500)return s;const i=Jy(n)&&Jy(s);if(!i&&!(Hf(n)&&Hf(s)))return s;const f=(i?n:Object.keys(n)).length,h=i?s:Object.keys(s),m=h.length,p=i?new Array(m):{};let g=0;for(let v=0;v<m;v++){const b=i?v:h[v],x=n[b],j=s[b];if(x===j){p[b]=x,(i?v<f:l2.call(n,b))&&g++;continue}if(x===null||j===null||typeof x!="object"||typeof j!="object"){p[b]=j;continue}const w=_v(x,j,l+1);p[b]=w,w===x&&g++}return f===m&&g===f?n:p}function _c(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const l in n)if(n[l]!==s[l])return!1;return!0}function Jy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Hf(n){if(!Iy(n))return!1;const s=n.constructor;if(s===void 0)return!0;const l=s.prototype;return!(!Iy(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Iy(n){return Object.prototype.toString.call(n)==="[object Object]"}function r2(n){return new Promise(s=>{ws.setTimeout(s,n)})}function Pf(n,s,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,s):l.structuralSharing!==!1?_v(n,s):s}function Bt(n){return n}function i2(n,s,l=0){const i=[...n,s];return l&&i.length>l?i.slice(1):i}function o2(n,s,l=0){const i=[s,...n];return l&&i.length>l?i.slice(0,-1):i}var fh=Symbol();function wv(n,s){return!n.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!n.queryFn||n.queryFn===fh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function hh(n,s){return typeof n=="function"?n(...s):!!n}function c2(n,s,l){let i=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??(u=s()),i||(i=!0,u.aborted?l():u.addEventListener("abort",l,{once:!0})),u)}),n}var Rs,Ka,Gl,uv,u2=(uv=class extends ir{constructor(){super();ue(this,Rs);ue(this,Ka);ue(this,Gl);ae(this,Gl,s=>{if(!Hs&&window.addEventListener){const l=()=>s();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}})}onSubscribe(){T(this,Ka)||this.setEventListener(T(this,Gl))}onUnsubscribe(){var s;this.hasListeners()||((s=T(this,Ka))==null||s.call(this),ae(this,Ka,void 0))}setEventListener(s){var l;ae(this,Gl,s),(l=T(this,Ka))==null||l.call(this),ae(this,Ka,s(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(s){T(this,Rs)!==s&&(ae(this,Rs,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(l=>{l(s)})}isFocused(){var s;return typeof T(this,Rs)=="boolean"?T(this,Rs):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Rs=new WeakMap,Ka=new WeakMap,Gl=new WeakMap,uv),mh=new u2;function Vf(){let n,s;const l=new Promise((u,f)=>{n=u,s=f});l.status="pending",l.catch(()=>{});function i(u){Object.assign(l,u),delete l.resolve,delete l.reject}return l.resolve=u=>{i({status:"fulfilled",value:u}),n(u)},l.reject=u=>{i({status:"rejected",reason:u}),s(u)},l}var d2=a2;function f2(){let n=[],s=0,l=m=>{m()},i=m=>{m()},u=d2;const f=m=>{s?n.push(m):u(()=>{l(m)})},h=()=>{const m=n;n=[],m.length&&u(()=>{i(()=>{m.forEach(p=>{l(p)})})})};return{batch:m=>{let p;s++;try{p=m()}finally{s--,s||h()}return p},batchCalls:m=>(...p)=>{f(()=>{m(...p)})},schedule:f,setNotifyFunction:m=>{l=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{u=m}}}var ut=f2(),Yl,Fa,Kl,dv,h2=(dv=class extends ir{constructor(){super();ue(this,Yl,!0);ue(this,Fa);ue(this,Kl);ae(this,Kl,s=>{if(!Hs&&window.addEventListener){const l=()=>s(!0),i=()=>s(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",i)}}})}onSubscribe(){T(this,Fa)||this.setEventListener(T(this,Kl))}onUnsubscribe(){var s;this.hasListeners()||((s=T(this,Fa))==null||s.call(this),ae(this,Fa,void 0))}setEventListener(s){var l;ae(this,Kl,s),(l=T(this,Fa))==null||l.call(this),ae(this,Fa,s(this.setOnline.bind(this)))}setOnline(s){T(this,Yl)!==s&&(ae(this,Yl,s),this.listeners.forEach(i=>{i(s)}))}isOnline(){return T(this,Yl)}},Yl=new WeakMap,Fa=new WeakMap,Kl=new WeakMap,dv),wc=new h2;function m2(n){return Math.min(1e3*2**n,3e4)}function Ev(n){return(n??"online")==="online"?wc.isOnline():!0}var Qf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Cv(n){let s=!1,l=0,i;const u=Vf(),f=()=>u.status!=="pending",h=N=>{var E;if(!f()){const C=new Qf(N);x(C),(E=n.onCancel)==null||E.call(n,C)}},m=()=>{s=!0},p=()=>{s=!1},g=()=>mh.isFocused()&&(n.networkMode==="always"||wc.isOnline())&&n.canRun(),v=()=>Ev(n.networkMode)&&n.canRun(),b=N=>{f()||(i==null||i(),u.resolve(N))},x=N=>{f()||(i==null||i(),u.reject(N))},j=()=>new Promise(N=>{var E;i=C=>{(f()||g())&&N(C)},(E=n.onPause)==null||E.call(n)}).then(()=>{var N;i=void 0,f()||(N=n.onContinue)==null||N.call(n)}),w=()=>{if(f())return;let N;const E=l===0?n.initialPromise:void 0;try{N=E??n.fn()}catch(C){N=Promise.reject(C)}Promise.resolve(N).then(b).catch(C=>{var W;if(f())return;const D=n.retry??(Hs?0:3),P=n.retryDelay??m2,O=typeof P=="function"?P(l,C):P,F=D===!0||typeof D=="number"&&l<D||typeof D=="function"&&D(l,C);if(s||!F){x(C);return}l++,(W=n.onFail)==null||W.call(n,l,C),r2(O).then(()=>g()?void 0:j()).then(()=>{s?x(C):w()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(i==null||i(),u),cancelRetry:m,continueRetry:p,canStart:v,start:()=>(v()?w():j().then(w),u)}}var Ts,fv,Rv=(fv=class{constructor(){ue(this,Ts)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qf(this.gcTime)&&ae(this,Ts,ws.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Hs?1/0:300*1e3))}clearGcTimeout(){T(this,Ts)&&(ws.clearTimeout(T(this,Ts)),ae(this,Ts,void 0))}},Ts=new WeakMap,fv),Ms,Fl,un,As,ht,Ti,Os,Sn,na,hv,p2=(hv=class extends Rv{constructor(s){super();ue(this,Sn);ue(this,Ms);ue(this,Fl);ue(this,un);ue(this,As);ue(this,ht);ue(this,Ti);ue(this,Os);ae(this,Os,!1),ae(this,Ti,s.defaultOptions),this.setOptions(s.options),this.observers=[],ae(this,As,s.client),ae(this,un,T(this,As).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,ae(this,Ms,Wy(this.options)),this.state=s.state??T(this,Ms),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=T(this,ht))==null?void 0:s.promise}setOptions(s){if(this.options={...T(this,Ti),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=Wy(this.options);l.data!==void 0&&(this.setState($y(l.data,l.dataUpdatedAt)),ae(this,Ms,l))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,un).remove(this)}setData(s,l){const i=Pf(this.state.data,s,this.options);return Ne(this,Sn,na).call(this,{data:i,type:"success",dataUpdatedAt:l==null?void 0:l.updatedAt,manual:l==null?void 0:l.manual}),i}setState(s,l){Ne(this,Sn,na).call(this,{type:"setState",state:s,setStateOptions:l})}cancel(s){var i,u;const l=(i=T(this,ht))==null?void 0:i.promise;return(u=T(this,ht))==null||u.cancel(s),l?l.then(Rt).catch(Rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Ms))}isActive(){return this.observers.some(s=>dn(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>ns(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!Nv(this.state.dataUpdatedAt,s)}onFocus(){var l;const s=this.observers.find(i=>i.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(l=T(this,ht))==null||l.continue()}onOnline(){var l;const s=this.observers.find(i=>i.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(l=T(this,ht))==null||l.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),T(this,un).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(l=>l!==s),this.observers.length||(T(this,ht)&&(T(this,Os)?T(this,ht).cancel({revert:!0}):T(this,ht).cancelRetry()),this.scheduleGc()),T(this,un).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,Sn,na).call(this,{type:"invalidate"})}async fetch(s,l){var p,g,v,b,x,j,w,N,E,C,D,P;if(this.state.fetchStatus!=="idle"&&((p=T(this,ht))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(l!=null&&l.cancelRefetch))this.cancel({silent:!0});else if(T(this,ht))return T(this,ht).continueRetry(),T(this,ht).promise}if(s&&this.setOptions(s),!this.options.queryFn){const O=this.observers.find(F=>F.options.queryFn);O&&this.setOptions(O.options)}const i=new AbortController,u=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(ae(this,Os,!0),i.signal)})},f=()=>{const O=wv(this.options,l),W=(()=>{const H={client:T(this,As),queryKey:this.queryKey,meta:this.meta};return u(H),H})();return ae(this,Os,!1),this.options.persister?this.options.persister(O,W,this):O(W)},m=(()=>{const O={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:T(this,As),state:this.state,fetchFn:f};return u(O),O})();(g=this.options.behavior)==null||g.onFetch(m,this),ae(this,Fl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=m.fetchOptions)==null?void 0:v.meta))&&Ne(this,Sn,na).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta}),ae(this,ht,Cv({initialPromise:l==null?void 0:l.initialPromise,fn:m.fetchFn,onCancel:O=>{O instanceof Qf&&O.revert&&this.setState({...T(this,Fl),fetchStatus:"idle"}),i.abort()},onFail:(O,F)=>{Ne(this,Sn,na).call(this,{type:"failed",failureCount:O,error:F})},onPause:()=>{Ne(this,Sn,na).call(this,{type:"pause"})},onContinue:()=>{Ne(this,Sn,na).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const O=await T(this,ht).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(j=(x=T(this,un).config).onSuccess)==null||j.call(x,O,this),(N=(w=T(this,un).config).onSettled)==null||N.call(w,O,this.state.error,this),O}catch(O){if(O instanceof Qf){if(O.silent)return T(this,ht).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw Ne(this,Sn,na).call(this,{type:"error",error:O}),(C=(E=T(this,un).config).onError)==null||C.call(E,O,this),(P=(D=T(this,un).config).onSettled)==null||P.call(D,this.state.data,O,this),O}finally{this.scheduleGc()}}},Ms=new WeakMap,Fl=new WeakMap,un=new WeakMap,As=new WeakMap,ht=new WeakMap,Ti=new WeakMap,Os=new WeakMap,Sn=new WeakSet,na=function(s){const l=i=>{switch(s.type){case"failed":return{...i,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Tv(i.data,this.options),fetchMeta:s.meta??null};case"success":const u={...i,...$y(s.data,s.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ae(this,Fl,s.manual?u:void 0),u;case"error":const f=s.error;return{...i,error:f,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...s.state}}};this.state=l(this.state),ut.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),T(this,un).notify({query:this,type:"updated",action:s})})},hv);function Tv(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ev(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $y(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wy(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,l=s!==void 0,i=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:l?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var Lt,Ae,Mi,Et,ks,Xl,aa,Xa,Ai,Zl,Jl,zs,Ds,Za,Il,Be,mi,Gf,Yf,Kf,Ff,Xf,Zf,Jf,Mv,mv,g2=(mv=class extends ir{constructor(s,l){super();ue(this,Be);ue(this,Lt);ue(this,Ae);ue(this,Mi);ue(this,Et);ue(this,ks);ue(this,Xl);ue(this,aa);ue(this,Xa);ue(this,Ai);ue(this,Zl);ue(this,Jl);ue(this,zs);ue(this,Ds);ue(this,Za);ue(this,Il,new Set);this.options=l,ae(this,Lt,s),ae(this,Xa,null),ae(this,aa,Vf()),this.bindMethods(),this.setOptions(l)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Ae).addObserver(this),eb(T(this,Ae),this.options)?Ne(this,Be,mi).call(this):this.updateResult(),Ne(this,Be,Ff).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return If(T(this,Ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return If(T(this,Ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ne(this,Be,Xf).call(this),Ne(this,Be,Zf).call(this),T(this,Ae).removeObserver(this)}setOptions(s){const l=this.options,i=T(this,Ae);if(this.options=T(this,Lt).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof dn(this.options.enabled,T(this,Ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ne(this,Be,Jf).call(this),T(this,Ae).setOptions(this.options),l._defaulted&&!_c(this.options,l)&&T(this,Lt).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Ae),observer:this});const u=this.hasListeners();u&&tb(T(this,Ae),i,this.options,l)&&Ne(this,Be,mi).call(this),this.updateResult(),u&&(T(this,Ae)!==i||dn(this.options.enabled,T(this,Ae))!==dn(l.enabled,T(this,Ae))||ns(this.options.staleTime,T(this,Ae))!==ns(l.staleTime,T(this,Ae)))&&Ne(this,Be,Gf).call(this);const f=Ne(this,Be,Yf).call(this);u&&(T(this,Ae)!==i||dn(this.options.enabled,T(this,Ae))!==dn(l.enabled,T(this,Ae))||f!==T(this,Za))&&Ne(this,Be,Kf).call(this,f)}getOptimisticResult(s){const l=T(this,Lt).getQueryCache().build(T(this,Lt),s),i=this.createResult(l,s);return b2(this,i)&&(ae(this,Et,i),ae(this,Xl,this.options),ae(this,ks,T(this,Ae).state)),i}getCurrentResult(){return T(this,Et)}trackResult(s,l){return new Proxy(s,{get:(i,u)=>(this.trackProp(u),l==null||l(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,aa).status==="pending"&&T(this,aa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,u))})}trackProp(s){T(this,Il).add(s)}getCurrentQuery(){return T(this,Ae)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const l=T(this,Lt).defaultQueryOptions(s),i=T(this,Lt).getQueryCache().build(T(this,Lt),l);return i.fetch().then(()=>this.createResult(i,l))}fetch(s){return Ne(this,Be,mi).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Et)))}createResult(s,l){var X;const i=T(this,Ae),u=this.options,f=T(this,Et),h=T(this,ks),m=T(this,Xl),g=s!==i?s.state:T(this,Mi),{state:v}=s;let b={...v},x=!1,j;if(l._optimisticResults){const Q=this.hasListeners(),$=!Q&&eb(s,l),ne=Q&&tb(s,i,l,u);($||ne)&&(b={...b,...Tv(v.data,s.options)}),l._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:w,errorUpdatedAt:N,status:E}=b;j=b.data;let C=!1;if(l.placeholderData!==void 0&&j===void 0&&E==="pending"){let Q;f!=null&&f.isPlaceholderData&&l.placeholderData===(m==null?void 0:m.placeholderData)?(Q=f.data,C=!0):Q=typeof l.placeholderData=="function"?l.placeholderData((X=T(this,Jl))==null?void 0:X.state.data,T(this,Jl)):l.placeholderData,Q!==void 0&&(E="success",j=Pf(f==null?void 0:f.data,Q,l),x=!0)}if(l.select&&j!==void 0&&!C)if(f&&j===(h==null?void 0:h.data)&&l.select===T(this,Ai))j=T(this,Zl);else try{ae(this,Ai,l.select),j=l.select(j),j=Pf(f==null?void 0:f.data,j,l),ae(this,Zl,j),ae(this,Xa,null)}catch(Q){ae(this,Xa,Q)}T(this,Xa)&&(w=T(this,Xa),j=T(this,Zl),N=Date.now(),E="error");const D=b.fetchStatus==="fetching",P=E==="pending",O=E==="error",F=P&&D,W=j!==void 0,q={status:E,fetchStatus:b.fetchStatus,isPending:P,isSuccess:E==="success",isError:O,isInitialLoading:F,isLoading:F,data:j,dataUpdatedAt:b.dataUpdatedAt,error:w,errorUpdatedAt:N,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:D,isRefetching:D&&!P,isLoadingError:O&&!W,isPaused:b.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:O&&W,isStale:ph(s,l),refetch:this.refetch,promise:T(this,aa),isEnabled:dn(l.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const Q=q.data!==void 0,$=q.status==="error"&&!Q,ne=ie=>{$?ie.reject(q.error):Q&&ie.resolve(q.data)},fe=()=>{const ie=ae(this,aa,q.promise=Vf());ne(ie)},he=T(this,aa);switch(he.status){case"pending":s.queryHash===i.queryHash&&ne(he);break;case"fulfilled":($||q.data!==he.value)&&fe();break;case"rejected":(!$||q.error!==he.reason)&&fe();break}}return q}updateResult(){const s=T(this,Et),l=this.createResult(T(this,Ae),this.options);if(ae(this,ks,T(this,Ae).state),ae(this,Xl,this.options),T(this,ks).data!==void 0&&ae(this,Jl,T(this,Ae)),_c(l,s))return;ae(this,Et,l);const i=()=>{if(!s)return!0;const{notifyOnChangeProps:u}=this.options,f=typeof u=="function"?u():u;if(f==="all"||!f&&!T(this,Il).size)return!0;const h=new Set(f??T(this,Il));return this.options.throwOnError&&h.add("error"),Object.keys(T(this,Et)).some(m=>{const p=m;return T(this,Et)[p]!==s[p]&&h.has(p)})};Ne(this,Be,Mv).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ne(this,Be,Ff).call(this)}},Lt=new WeakMap,Ae=new WeakMap,Mi=new WeakMap,Et=new WeakMap,ks=new WeakMap,Xl=new WeakMap,aa=new WeakMap,Xa=new WeakMap,Ai=new WeakMap,Zl=new WeakMap,Jl=new WeakMap,zs=new WeakMap,Ds=new WeakMap,Za=new WeakMap,Il=new WeakMap,Be=new WeakSet,mi=function(s){Ne(this,Be,Jf).call(this);let l=T(this,Ae).fetch(this.options,s);return s!=null&&s.throwOnError||(l=l.catch(Rt)),l},Gf=function(){Ne(this,Be,Xf).call(this);const s=ns(this.options.staleTime,T(this,Ae));if(Hs||T(this,Et).isStale||!qf(s))return;const i=Nv(T(this,Et).dataUpdatedAt,s)+1;ae(this,zs,ws.setTimeout(()=>{T(this,Et).isStale||this.updateResult()},i))},Yf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Ae)):this.options.refetchInterval)??!1},Kf=function(s){Ne(this,Be,Zf).call(this),ae(this,Za,s),!(Hs||dn(this.options.enabled,T(this,Ae))===!1||!qf(T(this,Za))||T(this,Za)===0)&&ae(this,Ds,ws.setInterval(()=>{(this.options.refetchIntervalInBackground||mh.isFocused())&&Ne(this,Be,mi).call(this)},T(this,Za)))},Ff=function(){Ne(this,Be,Gf).call(this),Ne(this,Be,Kf).call(this,Ne(this,Be,Yf).call(this))},Xf=function(){T(this,zs)&&(ws.clearTimeout(T(this,zs)),ae(this,zs,void 0))},Zf=function(){T(this,Ds)&&(ws.clearInterval(T(this,Ds)),ae(this,Ds,void 0))},Jf=function(){const s=T(this,Lt).getQueryCache().build(T(this,Lt),this.options);if(s===T(this,Ae))return;const l=T(this,Ae);ae(this,Ae,s),ae(this,Mi,s.state),this.hasListeners()&&(l==null||l.removeObserver(this),s.addObserver(this))},Mv=function(s){ut.batch(()=>{s.listeners&&this.listeners.forEach(l=>{l(T(this,Et))}),T(this,Lt).getQueryCache().notify({query:T(this,Ae),type:"observerResultsUpdated"})})},mv);function y2(n,s){return dn(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function eb(n,s){return y2(n,s)||n.state.data!==void 0&&If(n,s,s.refetchOnMount)}function If(n,s,l){if(dn(s.enabled,n)!==!1&&ns(s.staleTime,n)!=="static"){const i=typeof l=="function"?l(n):l;return i==="always"||i!==!1&&ph(n,s)}return!1}function tb(n,s,l,i){return(n!==s||dn(i.enabled,n)===!1)&&(!l.suspense||n.state.status!=="error")&&ph(n,l)}function ph(n,s){return dn(s.enabled,n)!==!1&&n.isStaleByTime(ns(s.staleTime,n))}function b2(n,s){return!_c(n.getCurrentResult(),s)}function nb(n){return{onFetch:(s,l)=>{var v,b,x,j,w;const i=s.options,u=(x=(b=(v=s.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:x.direction,f=((j=s.state.data)==null?void 0:j.pages)||[],h=((w=s.state.data)==null?void 0:w.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let N=!1;const E=P=>{c2(P,()=>s.signal,()=>N=!0)},C=wv(s.options,s.fetchOptions),D=async(P,O,F)=>{if(N)return Promise.reject();if(O==null&&P.pages.length)return Promise.resolve(P);const H=(()=>{const $={client:s.client,queryKey:s.queryKey,pageParam:O,direction:F?"backward":"forward",meta:s.options.meta};return E($),$})(),q=await C(H),{maxPages:X}=s.options,Q=F?o2:i2;return{pages:Q(P.pages,q,X),pageParams:Q(P.pageParams,O,X)}};if(u&&f.length){const P=u==="backward",O=P?v2:ab,F={pages:f,pageParams:h},W=O(i,F);m=await D(F,W,P)}else{const P=n??f.length;do{const O=p===0?h[0]??i.initialPageParam:ab(i,m);if(p>0&&O==null)break;m=await D(m,O),p++}while(p<P)}return m};s.options.persister?s.fetchFn=()=>{var N,E;return(E=(N=s.options).persister)==null?void 0:E.call(N,g,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},l)}:s.fetchFn=g}}}function ab(n,{pages:s,pageParams:l}){const i=s.length-1;return s.length>0?n.getNextPageParam(s[i],s,l[i],l):void 0}function v2(n,{pages:s,pageParams:l}){var i;return s.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,s[0],s,l[0],l):void 0}var Oi,Mn,jt,Ls,An,Va,pv,x2=(pv=class extends Rv{constructor(s){super();ue(this,An);ue(this,Oi);ue(this,Mn);ue(this,jt);ue(this,Ls);ae(this,Oi,s.client),this.mutationId=s.mutationId,ae(this,jt,s.mutationCache),ae(this,Mn,[]),this.state=s.state||Av(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){T(this,Mn).includes(s)||(T(this,Mn).push(s),this.clearGcTimeout(),T(this,jt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){ae(this,Mn,T(this,Mn).filter(l=>l!==s)),this.scheduleGc(),T(this,jt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){T(this,Mn).length||(this.state.status==="pending"?this.scheduleGc():T(this,jt).remove(this))}continue(){var s;return((s=T(this,Ls))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var h,m,p,g,v,b,x,j,w,N,E,C,D,P,O,F,W,H;const l=()=>{Ne(this,An,Va).call(this,{type:"continue"})},i={client:T(this,Oi),meta:this.options.meta,mutationKey:this.options.mutationKey};ae(this,Ls,Cv({fn:()=>this.options.mutationFn?this.options.mutationFn(s,i):Promise.reject(new Error("No mutationFn found")),onFail:(q,X)=>{Ne(this,An,Va).call(this,{type:"failed",failureCount:q,error:X})},onPause:()=>{Ne(this,An,Va).call(this,{type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,jt).canRun(this)}));const u=this.state.status==="pending",f=!T(this,Ls).canStart();try{if(u)l();else{Ne(this,An,Va).call(this,{type:"pending",variables:s,isPaused:f}),T(this,jt).config.onMutate&&await T(this,jt).config.onMutate(s,this,i);const X=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,s,i));X!==this.state.context&&Ne(this,An,Va).call(this,{type:"pending",context:X,variables:s,isPaused:f})}const q=await T(this,Ls).start();return await((g=(p=T(this,jt).config).onSuccess)==null?void 0:g.call(p,q,s,this.state.context,this,i)),await((b=(v=this.options).onSuccess)==null?void 0:b.call(v,q,s,this.state.context,i)),await((j=(x=T(this,jt).config).onSettled)==null?void 0:j.call(x,q,null,this.state.variables,this.state.context,this,i)),await((N=(w=this.options).onSettled)==null?void 0:N.call(w,q,null,s,this.state.context,i)),Ne(this,An,Va).call(this,{type:"success",data:q}),q}catch(q){try{await((C=(E=T(this,jt).config).onError)==null?void 0:C.call(E,q,s,this.state.context,this,i))}catch(X){Promise.reject(X)}try{await((P=(D=this.options).onError)==null?void 0:P.call(D,q,s,this.state.context,i))}catch(X){Promise.reject(X)}try{await((F=(O=T(this,jt).config).onSettled)==null?void 0:F.call(O,void 0,q,this.state.variables,this.state.context,this,i))}catch(X){Promise.reject(X)}try{await((H=(W=this.options).onSettled)==null?void 0:H.call(W,void 0,q,s,this.state.context,i))}catch(X){Promise.reject(X)}throw Ne(this,An,Va).call(this,{type:"error",error:q}),q}finally{T(this,jt).runNext(this)}}},Oi=new WeakMap,Mn=new WeakMap,jt=new WeakMap,Ls=new WeakMap,An=new WeakSet,Va=function(s){const l=i=>{switch(s.type){case"failed":return{...i,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...i,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:s.error,failureCount:i.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=l(this.state),ut.batch(()=>{T(this,Mn).forEach(i=>{i.onMutationUpdate(s)}),T(this,jt).notify({mutation:this,type:"updated",action:s})})},pv);function Av(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sa,jn,ki,gv,S2=(gv=class extends ir{constructor(s={}){super();ue(this,sa);ue(this,jn);ue(this,ki);this.config=s,ae(this,sa,new Set),ae(this,jn,new Map),ae(this,ki,0)}build(s,l,i){const u=new x2({client:s,mutationCache:this,mutationId:++nc(this,ki)._,options:s.defaultMutationOptions(l),state:i});return this.add(u),u}add(s){T(this,sa).add(s);const l=ac(s);if(typeof l=="string"){const i=T(this,jn).get(l);i?i.push(s):T(this,jn).set(l,[s])}this.notify({type:"added",mutation:s})}remove(s){if(T(this,sa).delete(s)){const l=ac(s);if(typeof l=="string"){const i=T(this,jn).get(l);if(i)if(i.length>1){const u=i.indexOf(s);u!==-1&&i.splice(u,1)}else i[0]===s&&T(this,jn).delete(l)}}this.notify({type:"removed",mutation:s})}canRun(s){const l=ac(s);if(typeof l=="string"){const i=T(this,jn).get(l),u=i==null?void 0:i.find(f=>f.state.status==="pending");return!u||u===s}else return!0}runNext(s){var i;const l=ac(s);if(typeof l=="string"){const u=(i=T(this,jn).get(l))==null?void 0:i.find(f=>f!==s&&f.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ut.batch(()=>{T(this,sa).forEach(s=>{this.notify({type:"removed",mutation:s})}),T(this,sa).clear(),T(this,jn).clear()})}getAll(){return Array.from(T(this,sa))}find(s){const l={exact:!0,...s};return this.getAll().find(i=>Zy(l,i))}findAll(s={}){return this.getAll().filter(l=>Zy(s,l))}notify(s){ut.batch(()=>{this.listeners.forEach(l=>{l(s)})})}resumePausedMutations(){const s=this.getAll().filter(l=>l.state.isPaused);return ut.batch(()=>Promise.all(s.map(l=>l.continue().catch(Rt))))}},sa=new WeakMap,jn=new WeakMap,ki=new WeakMap,gv);function ac(n){var s;return(s=n.options.scope)==null?void 0:s.id}var la,Ja,Ut,ra,ca,bc,$f,yv,j2=(yv=class extends ir{constructor(l,i){super();ue(this,ca);ue(this,la);ue(this,Ja);ue(this,Ut);ue(this,ra);ae(this,la,l),this.setOptions(i),this.bindMethods(),Ne(this,ca,bc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){var u;const i=this.options;this.options=T(this,la).defaultMutationOptions(l),_c(this.options,i)||T(this,la).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,Ut),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Ps(i.mutationKey)!==Ps(this.options.mutationKey)?this.reset():((u=T(this,Ut))==null?void 0:u.state.status)==="pending"&&T(this,Ut).setOptions(this.options)}onUnsubscribe(){var l;this.hasListeners()||(l=T(this,Ut))==null||l.removeObserver(this)}onMutationUpdate(l){Ne(this,ca,bc).call(this),Ne(this,ca,$f).call(this,l)}getCurrentResult(){return T(this,Ja)}reset(){var l;(l=T(this,Ut))==null||l.removeObserver(this),ae(this,Ut,void 0),Ne(this,ca,bc).call(this),Ne(this,ca,$f).call(this)}mutate(l,i){var u;return ae(this,ra,i),(u=T(this,Ut))==null||u.removeObserver(this),ae(this,Ut,T(this,la).getMutationCache().build(T(this,la),this.options)),T(this,Ut).addObserver(this),T(this,Ut).execute(l)}},la=new WeakMap,Ja=new WeakMap,Ut=new WeakMap,ra=new WeakMap,ca=new WeakSet,bc=function(){var i;const l=((i=T(this,Ut))==null?void 0:i.state)??Av();ae(this,Ja,{...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset})},$f=function(l){ut.batch(()=>{var i,u,f,h,m,p,g,v;if(T(this,ra)&&this.hasListeners()){const b=T(this,Ja).variables,x=T(this,Ja).context,j={client:T(this,la),meta:this.options.meta,mutationKey:this.options.mutationKey};if((l==null?void 0:l.type)==="success"){try{(u=(i=T(this,ra)).onSuccess)==null||u.call(i,l.data,b,x,j)}catch(w){Promise.reject(w)}try{(h=(f=T(this,ra)).onSettled)==null||h.call(f,l.data,null,b,x,j)}catch(w){Promise.reject(w)}}else if((l==null?void 0:l.type)==="error"){try{(p=(m=T(this,ra)).onError)==null||p.call(m,l.error,b,x,j)}catch(w){Promise.reject(w)}try{(v=(g=T(this,ra)).onSettled)==null||v.call(g,void 0,l.error,b,x,j)}catch(w){Promise.reject(w)}}}this.listeners.forEach(b=>{b(T(this,Ja))})})},yv),On,bv,N2=(bv=class extends ir{constructor(s={}){super();ue(this,On);this.config=s,ae(this,On,new Map)}build(s,l,i){const u=l.queryKey,f=l.queryHash??dh(u,l);let h=this.get(f);return h||(h=new p2({client:s,queryKey:u,queryHash:f,options:s.defaultQueryOptions(l),state:i,defaultOptions:s.getQueryDefaults(u)}),this.add(h)),h}add(s){T(this,On).has(s.queryHash)||(T(this,On).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const l=T(this,On).get(s.queryHash);l&&(s.destroy(),l===s&&T(this,On).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){ut.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return T(this,On).get(s)}getAll(){return[...T(this,On).values()]}find(s){const l={exact:!0,...s};return this.getAll().find(i=>Xy(l,i))}findAll(s={}){const l=this.getAll();return Object.keys(s).length>0?l.filter(i=>Xy(s,i)):l}notify(s){ut.batch(()=>{this.listeners.forEach(l=>{l(s)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},On=new WeakMap,bv),et,Ia,$a,$l,Wl,Wa,er,tr,vv,_2=(vv=class{constructor(n={}){ue(this,et);ue(this,Ia);ue(this,$a);ue(this,$l);ue(this,Wl);ue(this,Wa);ue(this,er);ue(this,tr);ae(this,et,n.queryCache||new N2),ae(this,Ia,n.mutationCache||new S2),ae(this,$a,n.defaultOptions||{}),ae(this,$l,new Map),ae(this,Wl,new Map),ae(this,Wa,0)}mount(){nc(this,Wa)._++,T(this,Wa)===1&&(ae(this,er,mh.subscribe(async n=>{n&&(await this.resumePausedMutations(),T(this,et).onFocus())})),ae(this,tr,wc.subscribe(async n=>{n&&(await this.resumePausedMutations(),T(this,et).onOnline())})))}unmount(){var n,s;nc(this,Wa)._--,T(this,Wa)===0&&((n=T(this,er))==null||n.call(this),ae(this,er,void 0),(s=T(this,tr))==null||s.call(this),ae(this,tr,void 0))}isFetching(n){return T(this,et).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return T(this,Ia).findAll({...n,status:"pending"}).length}getQueryData(n){var l;const s=this.defaultQueryOptions({queryKey:n});return(l=T(this,et).get(s.queryHash))==null?void 0:l.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),l=T(this,et).build(this,s),i=l.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(ns(s.staleTime,l))&&this.prefetchQuery(s),Promise.resolve(i))}getQueriesData(n){return T(this,et).findAll(n).map(({queryKey:s,state:l})=>{const i=l.data;return[s,i]})}setQueryData(n,s,l){const i=this.defaultQueryOptions({queryKey:n}),u=T(this,et).get(i.queryHash),f=u==null?void 0:u.state.data,h=s2(s,f);if(h!==void 0)return T(this,et).build(this,i).setData(h,{...l,manual:!0})}setQueriesData(n,s,l){return ut.batch(()=>T(this,et).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,s,l)]))}getQueryState(n){var l;const s=this.defaultQueryOptions({queryKey:n});return(l=T(this,et).get(s.queryHash))==null?void 0:l.state}removeQueries(n){const s=T(this,et);ut.batch(()=>{s.findAll(n).forEach(l=>{s.remove(l)})})}resetQueries(n,s){const l=T(this,et);return ut.batch(()=>(l.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const l={revert:!0,...s},i=ut.batch(()=>T(this,et).findAll(n).map(u=>u.cancel(l)));return Promise.all(i).then(Rt).catch(Rt)}invalidateQueries(n,s={}){return ut.batch(()=>(T(this,et).findAll(n).forEach(l=>{l.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},s)))}refetchQueries(n,s={}){const l={...s,cancelRefetch:s.cancelRefetch??!0},i=ut.batch(()=>T(this,et).findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,l);return l.throwOnError||(f=f.catch(Rt)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(i).then(Rt)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const l=T(this,et).build(this,s);return l.isStaleByTime(ns(s.staleTime,l))?l.fetch(s):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Rt).catch(Rt)}fetchInfiniteQuery(n){return n.behavior=nb(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Rt).catch(Rt)}ensureInfiniteQueryData(n){return n.behavior=nb(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return wc.isOnline()?T(this,Ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,et)}getMutationCache(){return T(this,Ia)}getDefaultOptions(){return T(this,$a)}setDefaultOptions(n){ae(this,$a,n)}setQueryDefaults(n,s){T(this,$l).set(Ps(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...T(this,$l).values()],l={};return s.forEach(i=>{ji(n,i.queryKey)&&Object.assign(l,i.defaultOptions)}),l}setMutationDefaults(n,s){T(this,Wl).set(Ps(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...T(this,Wl).values()],l={};return s.forEach(i=>{ji(n,i.mutationKey)&&Object.assign(l,i.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const s={...T(this,$a).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=dh(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===fh&&(s.enabled=!1),s}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...T(this,$a).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){T(this,et).clear(),T(this,Ia).clear()}},et=new WeakMap,Ia=new WeakMap,$a=new WeakMap,$l=new WeakMap,Wl=new WeakMap,Wa=new WeakMap,er=new WeakMap,tr=new WeakMap,vv),Ov=_.createContext(void 0),fa=n=>{const s=_.useContext(Ov);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},w2=({client:n,children:s})=>(_.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),c.jsx(Ov.Provider,{value:n,children:s})),kv=_.createContext(!1),E2=()=>_.useContext(kv);kv.Provider;function C2(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var R2=_.createContext(C2()),T2=()=>_.useContext(R2),M2=(n,s,l)=>{const i=l!=null&&l.state.error&&typeof n.throwOnError=="function"?hh(n.throwOnError,[l.state.error,l]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||i)&&(s.isReset()||(n.retryOnMount=!1))},A2=n=>{_.useEffect(()=>{n.clearReset()},[n])},O2=({result:n,errorResetBoundary:s,throwOnError:l,query:i,suspense:u})=>n.isError&&!s.isReset()&&!n.isFetching&&i&&(u&&n.data===void 0||hh(l,[n.error,i])),k2=n=>{if(n.suspense){const l=u=>u==="static"?u:Math.max(u??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...u)=>l(i(...u)):l(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},z2=(n,s)=>n.isLoading&&n.isFetching&&!s,D2=(n,s)=>(n==null?void 0:n.suspense)&&s.isPending,sb=(n,s,l)=>s.fetchOptimistic(n).catch(()=>{l.clearReset()});function L2(n,s,l){var x,j,w,N;const i=E2(),u=T2(),f=fa(),h=f.defaultQueryOptions(n);(j=(x=f.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||j.call(x,h);const m=f.getQueryCache().get(h.queryHash);h._optimisticResults=i?"isRestoring":"optimistic",k2(h),M2(h,u,m),A2(u);const p=!f.getQueryCache().get(h.queryHash),[g]=_.useState(()=>new s(f,h)),v=g.getOptimisticResult(h),b=!i&&n.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(E=>{const C=b?g.subscribe(ut.batchCalls(E)):Rt;return g.updateResult(),C},[g,b]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),_.useEffect(()=>{g.setOptions(h)},[h,g]),D2(h,v))throw sb(h,g,u);if(O2({result:v,errorResetBoundary:u,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw v.error;if((N=(w=f.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||N.call(w,h,v),h.experimental_prefetchInRender&&!Hs&&z2(v,i)){const E=p?sb(h,g,u):m==null?void 0:m.promise;E==null||E.catch(Rt).finally(()=>{g.updateResult()})}return h.notifyOnChangeProps?v:g.trackResult(v)}function at(n,s){return L2(n,g2)}function hn(n,s){const l=fa(),[i]=_.useState(()=>new j2(l,n));_.useEffect(()=>{i.setOptions(n)},[i,n]);const u=_.useSyncExternalStore(_.useCallback(h=>i.subscribe(ut.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),f=_.useCallback((h,m)=>{i.mutate(h,m).catch(Rt)},[i]);if(u.error&&hh(i.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}const Wf=new WeakMap,U2=new WeakMap,Ec={current:[]};let mf=!1,gi=0;const pi=new Set,sc=new Map;function zv(n){for(const s of n){if(Ec.current.includes(s))continue;Ec.current.push(s),s.recompute();const l=U2.get(s);if(l)for(const i of l){const u=Wf.get(i);u!=null&&u.length&&zv(u)}}}function B2(n){const s={prevVal:n.prevState,currentVal:n.state};for(const l of n.listeners)l(s)}function q2(n){const s={prevVal:n.prevState,currentVal:n.state};for(const l of n.listeners)l(s)}function Dv(n){if(gi>0&&!sc.has(n)&&sc.set(n,n.prevState),pi.add(n),!(gi>0)&&!mf)try{for(mf=!0;pi.size>0;){const s=Array.from(pi);pi.clear();for(const l of s){const i=sc.get(l)??l.prevState;l.prevState=i,B2(l)}for(const l of s){const i=Wf.get(l);i&&(Ec.current.push(l),zv(i))}for(const l of s){const i=Wf.get(l);if(i)for(const u of i)q2(u)}}}finally{mf=!1,Ec.current=[],sc.clear()}}function H2(n){gi++;try{n()}finally{if(gi--,gi===0){const s=pi.values().next().value;s&&Dv(s)}}}function P2(n){return typeof n=="function"}class V2{constructor(s,l){this.listeners=new Set,this.subscribe=i=>{var u,f;this.listeners.add(i);const h=(f=(u=this.options)==null?void 0:u.onSubscribe)==null?void 0:f.call(u,i,this);return()=>{this.listeners.delete(i),h==null||h()}},this.prevState=s,this.state=s,this.options=l}setState(s){var l,i,u;this.prevState=this.state,(l=this.options)!=null&&l.updateFn?this.state=this.options.updateFn(this.prevState)(s):P2(s)?this.state=s(this.prevState):this.state=s,(u=(i=this.options)==null?void 0:i.onUpdate)==null||u.call(i),Dv(this)}}const as="__TSR_index",lb="popstate",rb="beforeunload";function Q2(n){let s=n.getLocation();const l=new Set,i=h=>{s=n.getLocation(),l.forEach(m=>m({location:s,action:h}))},u=h=>{n.notifyOnIndexChange??!0?i(h):s=n.getLocation()},f=async({task:h,navigateOpts:m,...p})=>{var x,j;if((m==null?void 0:m.ignoreBlocker)??!1){h();return}const v=((x=n.getBlockers)==null?void 0:x.call(n))??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&v.length&&b)for(const w of v){const N=Cc(p.path,p.state);if(await w.blockerFn({currentLocation:s,nextLocation:N,action:p.type})){(j=n.onBlocked)==null||j.call(n);return}}h()};return{get location(){return s},get length(){return n.getLength()},subscribers:l,subscribe:h=>(l.add(h),()=>{l.delete(h)}),push:(h,m,p)=>{const g=s.state[as];m=ib(g+1,m),f({task:()=>{n.pushState(h,m),i({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:m})},replace:(h,m,p)=>{const g=s.state[as];m=ib(g,m),f({task:()=>{n.replaceState(h,m),i({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:m})},go:(h,m)=>{f({task:()=>{n.go(h),u({type:"GO",index:h})},navigateOpts:m,type:"GO"})},back:h=>{f({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),u({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),u({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>s.state[as]!==0,createHref:h=>n.createHref(h),block:h=>{var p;if(!n.setBlockers)return()=>{};const m=((p=n.getBlockers)==null?void 0:p.call(n))??[];return n.setBlockers([...m,h]),()=>{var v,b;const g=((v=n.getBlockers)==null?void 0:v.call(n))??[];(b=n.setBlockers)==null||b.call(n,g.filter(x=>x!==h))}},flush:()=>{var h;return(h=n.flush)==null?void 0:h.call(n)},destroy:()=>{var h;return(h=n.destroy)==null?void 0:h.call(n)},notify:i}}function ib(n,s){s||(s={});const l=gh();return{...s,key:l,__TSR_key:l,[as]:n}}function G2(n){var q,X;const s=typeof document<"u"?window:void 0,l=s.history.pushState,i=s.history.replaceState;let u=[];const f=()=>u,h=Q=>u=Q,m=(Q=>Q),p=(()=>Cc(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((q=s.history.state)!=null&&q.__TSR_key)&&!((X=s.history.state)!=null&&X.key)){const Q=gh();s.history.replaceState({[as]:0,key:Q,__TSR_key:Q},"")}let g=p(),v,b=!1,x=!1,j=!1,w=!1;const N=()=>g;let E,C;const D=()=>{E&&(H._ignoreSubscribers=!0,(E.isPush?s.history.pushState:s.history.replaceState)(E.state,"",E.href),H._ignoreSubscribers=!1,E=void 0,C=void 0,v=void 0)},P=(Q,$,ne)=>{const fe=m($);C||(v=g),g=Cc($,ne),E={href:fe,state:ne,isPush:(E==null?void 0:E.isPush)||Q==="push"},C||(C=Promise.resolve().then(()=>D()))},O=Q=>{g=p(),H.notify({type:Q})},F=async()=>{if(x){x=!1;return}const Q=p(),$=Q.state[as]-g.state[as],ne=$===1,fe=$===-1,he=!ne&&!fe||b;b=!1;const ie=he?"GO":fe?"BACK":"FORWARD",k=he?{type:"GO",index:$}:{type:fe?"BACK":"FORWARD"};if(j)j=!1;else{const V=f();if(typeof document<"u"&&V.length){for(const K of V)if(await K.blockerFn({currentLocation:g,nextLocation:Q,action:ie})){x=!0,s.history.go(1),H.notify(k);return}}}g=p(),H.notify(k)},W=Q=>{if(w){w=!1;return}let $=!1;const ne=f();if(typeof document<"u"&&ne.length)for(const fe of ne){const he=fe.enableBeforeUnload??!0;if(he===!0){$=!0;break}if(typeof he=="function"&&he()===!0){$=!0;break}}if($)return Q.preventDefault(),Q.returnValue=""},H=Q2({getLocation:N,getLength:()=>s.history.length,pushState:(Q,$)=>P("push",Q,$),replaceState:(Q,$)=>P("replace",Q,$),back:Q=>(Q&&(j=!0),w=!0,s.history.back()),forward:Q=>{Q&&(j=!0),w=!0,s.history.forward()},go:Q=>{b=!0,s.history.go(Q)},createHref:Q=>m(Q),flush:D,destroy:()=>{s.history.pushState=l,s.history.replaceState=i,s.removeEventListener(rb,W,{capture:!0}),s.removeEventListener(lb,F)},onBlocked:()=>{v&&g!==v&&(g=v)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return s.addEventListener(rb,W,{capture:!0}),s.addEventListener(lb,F),s.history.pushState=function(...Q){const $=l.apply(s.history,Q);return H._ignoreSubscribers||O("PUSH"),$},s.history.replaceState=function(...Q){const $=i.apply(s.history,Q);return H._ignoreSubscribers||O("REPLACE"),$},H}function Y2(n){let s=n.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function Cc(n,s){const l=Y2(n),i=l.indexOf("#"),u=l.indexOf("?"),f=gh();return{href:l,pathname:l.substring(0,i>0?u>0?Math.min(i,u):i:u>0?u:l.length),hash:i>-1?l.substring(i):"",search:u>-1?l.slice(u,i===-1?void 0:i):"",state:s||{[as]:0,key:f,__TSR_key:f}}}function gh(){return(Math.random()+1).toString(36).substring(7)}const K2=!1;function yi(n){let s;return H2(()=>{s=n()}),s}function Ni(n){return n[n.length-1]}function F2(n){return typeof n=="function"}function es(n,s){return F2(n)?n(s):n}const X2=Object.prototype.hasOwnProperty,ob=Object.prototype.propertyIsEnumerable;function Jt(n,s,l=0){if(n===s)return n;if(l>500)return s;const i=s,u=db(n)&&db(i);if(!u&&!(Rc(n)&&Rc(i)))return i;const f=u?n:cb(n);if(!f)return i;const h=u?i:cb(i);if(!h)return i;const m=f.length,p=h.length,g=u?new Array(p):{};let v=0;for(let b=0;b<p;b++){const x=u?b:h[b],j=n[x],w=i[x];if(j===w){g[x]=j,(u?b<m:X2.call(n,x))&&v++;continue}if(j===null||w===null||typeof j!="object"||typeof w!="object"){g[x]=w;continue}const N=Jt(j,w,l+1);g[x]=N,N===j&&v++}return m===p&&v===m?n:g}function cb(n){const s=Object.getOwnPropertyNames(n);for(const u of s)if(!ob.call(n,u))return!1;const l=Object.getOwnPropertySymbols(n);if(l.length===0)return s;const i=s;for(const u of l){if(!ob.call(n,u))return!1;i.push(u)}return i}function Rc(n){if(!ub(n))return!1;const s=n.constructor;if(typeof s>"u")return!0;const l=s.prototype;return!(!ub(l)||!l.hasOwnProperty("isPrototypeOf"))}function ub(n){return Object.prototype.toString.call(n)==="[object Object]"}function db(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Us(n,s,l){if(n===s)return!0;if(typeof n!=typeof s)return!1;if(Array.isArray(n)&&Array.isArray(s)){if(n.length!==s.length)return!1;for(let i=0,u=n.length;i<u;i++)if(!Us(n[i],s[i],l))return!1;return!0}if(Rc(n)&&Rc(s)){const i=(l==null?void 0:l.ignoreUndefined)??!0;if(l!=null&&l.partial){for(const h in s)if((!i||s[h]!==void 0)&&!Us(n[h],s[h],l))return!1;return!0}let u=0;if(!i)u=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&u++;let f=0;for(const h in s)if((!i||s[h]!==void 0)&&(f++,f>u||!Us(n[h],s[h],l)))return!1;return u===f}return!1}function ar(n){let s,l;const i=new Promise((u,f)=>{s=u,l=f});return i.status="pending",i.resolve=u=>{i.status="resolved",i.value=u,s(u),n==null||n(u)},i.reject=u=>{i.status="rejected",l(u)},i}function Hl(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function Z2(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function fb(n){let s;try{s=decodeURI(n)}catch{s=n.replaceAll(/%[0-9A-F]{2}/gi,l=>{try{return decodeURI(l)}catch{return l}})}return Z2(s)}const Lv=["http:","https:","mailto:","tel:"];function Tc(n){if(!n)return!1;try{const s=new URL(n);return!Lv.includes(s.protocol)}catch{return!1}}function ii(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let l=0,i="",u;for(;(u=s.exec(n))!==null;)i+=fb(n.slice(l,u.index))+u[0],l=s.lastIndex;i=i+fb(l?n.slice(l):n);let f=!1;return i.startsWith("//")&&(f=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:f}}function J2(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}var I2="Invariant failed";function ua(n,s){if(!n)throw new Error(I2)}function Mc(n){const s=new Map;let l,i;const u=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,i&&(i.next=f,f.prev=i)):(f.next.prev=void 0,l=f.next,f.next=void 0,i&&(f.prev=i,i.next=f)),i=f)};return{get(f){const h=s.get(f);if(h)return u(h),h.value},set(f,h){if(s.size>=n&&l){const p=l;s.delete(p.key),p.next&&(l=p.next,p.next.prev=void 0),p===i&&(i=void 0)}const m=s.get(f);if(m)m.value=h,u(m);else{const p={key:f,value:h,prev:i};i&&(i.next=p),i=p,l||(l=p),s.set(f,p)}},clear(){s.clear(),l=void 0,i=void 0}}}const sr=0,Vs=1,Qs=2,_i=3,Es=4,Uv=5;function $2(n){const s=n.indexOf("{");if(s===-1)return null;const l=n.indexOf("}",s);return l===-1||s+1>=n.length?null:[s,l]}function yh(n,s,l=new Uint16Array(6)){const i=n.indexOf("/",s),u=i===-1?n.length:i,f=n.substring(s,u);if(!f||!f.includes("$"))return l[0]=sr,l[1]=s,l[2]=s,l[3]=u,l[4]=u,l[5]=u,l;if(f==="$"){const m=n.length;return l[0]=Qs,l[1]=s,l[2]=s,l[3]=m,l[4]=m,l[5]=m,l}if(f.charCodeAt(0)===36)return l[0]=Vs,l[1]=s,l[2]=s+1,l[3]=u,l[4]=u,l[5]=u,l;const h=$2(f);if(h){const[m,p]=h,g=f.charCodeAt(m+1);if(g===45){if(m+2<f.length&&f.charCodeAt(m+2)===36){const v=m+3,b=p;if(v<b)return l[0]=_i,l[1]=s+m,l[2]=s+v,l[3]=s+b,l[4]=s+p+1,l[5]=u,l}}else if(g===36){const v=m+1,b=m+2;return b===p?(l[0]=Qs,l[1]=s+m,l[2]=s+v,l[3]=s+b,l[4]=s+p+1,l[5]=n.length,l):(l[0]=Vs,l[1]=s+m,l[2]=s+b,l[3]=s+p,l[4]=s+p+1,l[5]=u,l)}}return l[0]=sr,l[1]=s,l[2]=s,l[3]=u,l[4]=u,l[5]=u,l}function Bc(n,s,l,i,u,f,h){var p,g,v,b,x,j,w,N,E,C,D,P,O;h==null||h(l);let m=i;{const F=l.fullPath??l.from,W=F.length,H=((p=l.options)==null?void 0:p.caseSensitive)??n,q=!!((v=(g=l.options)==null?void 0:g.params)!=null&&v.parse&&((x=(b=l.options)==null?void 0:b.skipRouteOnParseError)!=null&&x.params));for(;m<W;){const Q=yh(F,m,s);let $;const ne=m,fe=Q[5];switch(m=fe+1,f++,Q[0]){case sr:{const ie=F.substring(Q[2],Q[3]);if(H){const k=(j=u.static)==null?void 0:j.get(ie);if(k)$=k;else{u.static??(u.static=new Map);const V=Cs(l.fullPath??l.from);V.parent=u,V.depth=f,$=V,u.static.set(ie,V)}}else{const k=ie.toLowerCase(),V=(w=u.staticInsensitive)==null?void 0:w.get(k);if(V)$=V;else{u.staticInsensitive??(u.staticInsensitive=new Map);const K=Cs(l.fullPath??l.from);K.parent=u,K.depth=f,$=K,u.staticInsensitive.set(k,K)}}break}case Vs:{const ie=F.substring(ne,Q[1]),k=F.substring(Q[4],fe),V=H&&!!(ie||k),K=ie?V?ie:ie.toLowerCase():void 0,me=k?V?k:k.toLowerCase():void 0,ye=!q&&((N=u.dynamic)==null?void 0:N.find(M=>!M.skipOnParamError&&M.caseSensitive===V&&M.prefix===K&&M.suffix===me));if(ye)$=ye;else{const M=gf(Vs,l.fullPath??l.from,V,K,me);$=M,M.depth=f,M.parent=u,u.dynamic??(u.dynamic=[]),u.dynamic.push(M)}break}case _i:{const ie=F.substring(ne,Q[1]),k=F.substring(Q[4],fe),V=H&&!!(ie||k),K=ie?V?ie:ie.toLowerCase():void 0,me=k?V?k:k.toLowerCase():void 0,ye=!q&&((E=u.optional)==null?void 0:E.find(M=>!M.skipOnParamError&&M.caseSensitive===V&&M.prefix===K&&M.suffix===me));if(ye)$=ye;else{const M=gf(_i,l.fullPath??l.from,V,K,me);$=M,M.parent=u,M.depth=f,u.optional??(u.optional=[]),u.optional.push(M)}break}case Qs:{const ie=F.substring(ne,Q[1]),k=F.substring(Q[4],fe),V=H&&!!(ie||k),K=ie?V?ie:ie.toLowerCase():void 0,me=k?V?k:k.toLowerCase():void 0,ye=gf(Qs,l.fullPath??l.from,V,K,me);$=ye,ye.parent=u,ye.depth=f,u.wildcard??(u.wildcard=[]),u.wildcard.push(ye)}}u=$}if(q&&l.children&&!l.isRoot&&l.id&&l.id.charCodeAt(l.id.lastIndexOf("/")+1)===95){const Q=Cs(l.fullPath??l.from);Q.kind=Uv,Q.parent=u,f++,Q.depth=f,u.pathless??(u.pathless=[]),u.pathless.push(Q),u=Q}const X=(l.path||!l.children)&&!l.isRoot;if(X&&F.endsWith("/")){const Q=Cs(l.fullPath??l.from);Q.kind=Es,Q.parent=u,f++,Q.depth=f,u.index=Q,u=Q}u.parse=((D=(C=l.options)==null?void 0:C.params)==null?void 0:D.parse)??null,u.skipOnParamError=q,u.parsingPriority=((O=(P=l.options)==null?void 0:P.skipRouteOnParseError)==null?void 0:O.priority)??0,X&&!u.route&&(u.route=l,u.fullPath=l.fullPath??l.from)}if(l.children)for(const F of l.children)Bc(n,s,F,m,u,f,h)}function pf(n,s){if(n.skipOnParamError&&!s.skipOnParamError)return-1;if(!n.skipOnParamError&&s.skipOnParamError)return 1;if(n.skipOnParamError&&s.skipOnParamError&&(n.parsingPriority||s.parsingPriority))return s.parsingPriority-n.parsingPriority;if(n.prefix&&s.prefix&&n.prefix!==s.prefix){if(n.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(n.prefix))return 1}if(n.suffix&&s.suffix&&n.suffix!==s.suffix){if(n.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(n.suffix))return 1}return n.prefix&&!s.prefix?-1:!n.prefix&&s.prefix?1:n.suffix&&!s.suffix?-1:!n.suffix&&s.suffix?1:n.caseSensitive&&!s.caseSensitive?-1:!n.caseSensitive&&s.caseSensitive?1:0}function Ga(n){var s,l,i;if(n.pathless)for(const u of n.pathless)Ga(u);if(n.static)for(const u of n.static.values())Ga(u);if(n.staticInsensitive)for(const u of n.staticInsensitive.values())Ga(u);if((s=n.dynamic)!=null&&s.length){n.dynamic.sort(pf);for(const u of n.dynamic)Ga(u)}if((l=n.optional)!=null&&l.length){n.optional.sort(pf);for(const u of n.optional)Ga(u)}if((i=n.wildcard)!=null&&i.length){n.wildcard.sort(pf);for(const u of n.wildcard)Ga(u)}}function Cs(n){return{kind:sr,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function gf(n,s,l,i,u){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:l,prefix:i,suffix:u}}function W2(n,s){const l=Cs("/"),i=new Uint16Array(6);for(const u of n)Bc(!1,i,u,1,l,0);Ga(l),s.masksTree=l,s.flatCache=Mc(1e3)}function ej(n,s){n||(n="/");const l=s.flatCache.get(n);if(l)return l;const i=bh(n,s.masksTree);return s.flatCache.set(n,i),i}function tj(n,s,l,i,u){n||(n="/"),i||(i="/");const f=s?`case\0${n}`:n;let h=u.singleCache.get(f);if(!h){h=Cs("/");const m=new Uint16Array(6);Bc(s,m,{from:n},1,h,0),u.singleCache.set(f,h)}return bh(i,h,l)}function nj(n,s,l=!1){const i=l?n:`nofuzz\0${n}`,u=s.matchCache.get(i);if(u!==void 0)return u;n||(n="/");let f;try{f=bh(n,s.segmentTree,l)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=lj(f.route)),s.matchCache.set(i,f),f}function aj(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function sj(n,s=!1,l){const i=Cs(n.fullPath),u=new Uint16Array(6),f={},h={};let m=0;return Bc(s,u,n,1,i,0,g=>{if(l==null||l(g,m),ua(!(g.id in f),`Duplicate routes found with id: ${String(g.id)}`),f[g.id]=g,m!==0&&g.path){const v=aj(g.fullPath);(!h[v]||g.fullPath.endsWith("/"))&&(h[v]=g)}m++}),Ga(i),{processedTree:{segmentTree:i,singleCache:Mc(1e3),matchCache:Mc(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function bh(n,s,l=!1){const i=n.split("/"),u=ij(n,i,s,l);if(!u)return null;const[f]=Bv(n,i,u);return{route:u.node.route,rawParams:f,parsedParams:u.parsedParams}}function Bv(n,s,l){var v,b,x,j,w,N,E,C,D,P;const i=rj(l.node);let u=null;const f={};let h=((v=l.extract)==null?void 0:v.part)??0,m=((b=l.extract)==null?void 0:b.node)??0,p=((x=l.extract)==null?void 0:x.path)??0,g=((j=l.extract)==null?void 0:j.segment)??0;for(;m<i.length;h++,m++,p++,g++){const O=i[m];if(O.kind===Es)break;if(O.kind===Uv){g--,h--,p--;continue}const F=s[h],W=p;if(F&&(p+=F.length),O.kind===Vs){u??(u=l.node.fullPath.split("/"));const H=u[g],q=((w=O.prefix)==null?void 0:w.length)??0;if(H.charCodeAt(q)===123){const Q=((N=O.suffix)==null?void 0:N.length)??0,$=H.substring(q+2,H.length-Q-1),ne=F.substring(q,F.length-Q);f[$]=decodeURIComponent(ne)}else{const Q=H.substring(1);f[Q]=decodeURIComponent(F)}}else if(O.kind===_i){if(l.skipped&1<<m){h--,p=W-1;continue}u??(u=l.node.fullPath.split("/"));const H=u[g],q=((E=O.prefix)==null?void 0:E.length)??0,X=((C=O.suffix)==null?void 0:C.length)??0,Q=H.substring(q+3,H.length-X-1),$=O.suffix||O.prefix?F.substring(q,F.length-X):F;$&&(f[Q]=decodeURIComponent($))}else if(O.kind===Qs){const H=O,q=n.substring(W+(((D=H.prefix)==null?void 0:D.length)??0),n.length-(((P=H.suffix)==null?void 0:P.length)??0)),X=decodeURIComponent(q);f["*"]=X,f._splat=X;break}}return l.rawParams&&Object.assign(f,l.rawParams),[f,{part:h,node:m,path:p,segment:g}]}function lj(n){const s=[n];for(;n.parentRoute;)n=n.parentRoute,s.push(n);return s.reverse(),s}function rj(n){const s=Array(n.depth+1);do s[n.depth]=n,n=n.parent;while(n);return s}function ij(n,s,l,i){if(n==="/"&&l.index)return{node:l.index,skipped:0};const u=!Ni(s),f=u&&n!=="/",h=s.length-(u?1:0),m=[{node:l,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,g=null,v=null;for(;m.length;){const b=m.pop(),{node:x,index:j,skipped:w,depth:N,statics:E,dynamics:C,optionals:D}=b;let{extract:P,rawParams:O,parsedParams:F}=b;if(x.skipOnParamError){if(!yf(n,s,b))continue;O=b.rawParams,P=b.extract,F=b.parsedParams}i&&x.route&&x.kind!==Es&&oi(g,b)&&(g=b);const W=j===h;if(W&&(x.route&&!f&&oi(v,b)&&(v=b),!x.optional&&!x.wildcard&&!x.index&&!x.pathless))continue;const H=W?void 0:s[j];let q;if(W&&x.index){const X={node:x.index,index:j,skipped:w,depth:N+1,statics:E,dynamics:C,optionals:D,extract:P,rawParams:O,parsedParams:F};let Q=!0;if(x.index.skipOnParamError&&(yf(n,s,X)||(Q=!1)),Q){if(E===h&&!C&&!D&&!w)return X;oi(v,X)&&(v=X)}}if(x.wildcard&&oi(p,b))for(const X of x.wildcard){const{prefix:Q,suffix:$}=X;if(Q&&(W||!(X.caseSensitive?H:q??(q=H.toLowerCase())).startsWith(Q)))continue;if($){if(W)continue;const fe=s.slice(j).join("/").slice(-$.length);if((X.caseSensitive?fe:fe.toLowerCase())!==$)continue}const ne={node:X,index:h,skipped:w,depth:N,statics:E,dynamics:C,optionals:D,extract:P,rawParams:O,parsedParams:F};if(!(X.skipOnParamError&&!yf(n,s,ne))){p=ne;break}}if(x.optional){const X=w|1<<N,Q=N+1;for(let $=x.optional.length-1;$>=0;$--){const ne=x.optional[$];m.push({node:ne,index:j,skipped:X,depth:Q,statics:E,dynamics:C,optionals:D,extract:P,rawParams:O,parsedParams:F})}if(!W)for(let $=x.optional.length-1;$>=0;$--){const ne=x.optional[$],{prefix:fe,suffix:he}=ne;if(fe||he){const ie=ne.caseSensitive?H:q??(q=H.toLowerCase());if(fe&&!ie.startsWith(fe)||he&&!ie.endsWith(he))continue}m.push({node:ne,index:j+1,skipped:w,depth:Q,statics:E,dynamics:C,optionals:D+1,extract:P,rawParams:O,parsedParams:F})}}if(!W&&x.dynamic&&H)for(let X=x.dynamic.length-1;X>=0;X--){const Q=x.dynamic[X],{prefix:$,suffix:ne}=Q;if($||ne){const fe=Q.caseSensitive?H:q??(q=H.toLowerCase());if($&&!fe.startsWith($)||ne&&!fe.endsWith(ne))continue}m.push({node:Q,index:j+1,skipped:w,depth:N+1,statics:E,dynamics:C+1,optionals:D,extract:P,rawParams:O,parsedParams:F})}if(!W&&x.staticInsensitive){const X=x.staticInsensitive.get(q??(q=H.toLowerCase()));X&&m.push({node:X,index:j+1,skipped:w,depth:N+1,statics:E+1,dynamics:C,optionals:D,extract:P,rawParams:O,parsedParams:F})}if(!W&&x.static){const X=x.static.get(H);X&&m.push({node:X,index:j+1,skipped:w,depth:N+1,statics:E+1,dynamics:C,optionals:D,extract:P,rawParams:O,parsedParams:F})}if(x.pathless){const X=N+1;for(let Q=x.pathless.length-1;Q>=0;Q--){const $=x.pathless[Q];m.push({node:$,index:j,skipped:w,depth:X,statics:E,dynamics:C,optionals:D,extract:P,rawParams:O,parsedParams:F})}}}if(v&&p)return oi(p,v)?v:p;if(v)return v;if(p)return p;if(i&&g){let b=g.index;for(let j=0;j<g.index;j++)b+=s[j].length;const x=b===n.length?"/":n.slice(b);return g.rawParams??(g.rawParams={}),g.rawParams["**"]=decodeURIComponent(x),g}return null}function yf(n,s,l){try{const[i,u]=Bv(n,s,l);l.rawParams=i,l.extract=u;const f=l.node.parse(i);return l.parsedParams=Object.assign({},l.parsedParams,f),!0}catch{return null}}function oi(n,s){return n?s.statics>n.statics||s.statics===n.statics&&(s.dynamics>n.dynamics||s.dynamics===n.dynamics&&(s.optionals>n.optionals||s.optionals===n.optionals&&((s.node.kind===Es)>(n.node.kind===Es)||s.node.kind===Es==(n.node.kind===Es)&&s.depth>n.depth))):!0}function vc(n){return vh(n.filter(s=>s!==void 0).join("/"))}function vh(n){return n.replace(/\/{2,}/g,"/")}function qv(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function ia(n){const s=n.length;return s>1&&n[s-1]==="/"?n.replace(/\/{1,}$/,""):n}function Hv(n){return ia(qv(n))}function Ac(n,s){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${s}/`?n.slice(0,-1):n}function oj(n,s,l){return Ac(n,l)===Ac(s,l)}function cj({base:n,to:s,trailingSlash:l="never",cache:i}){const u=s.startsWith("/"),f=!u&&s===".";let h;if(i){h=u?s:f?n:n+"\0"+s;const b=i.get(h);if(b)return b}let m;if(f)m=n.split("/");else if(u)m=s.split("/");else{for(m=n.split("/");m.length>1&&Ni(m)==="";)m.pop();const b=s.split("/");for(let x=0,j=b.length;x<j;x++){const w=b[x];w===""?x?x===j-1&&m.push(w):m=[w]:w===".."?m.pop():w==="."||m.push(w)}}m.length>1&&(Ni(m)===""?l==="never"&&m.pop():l==="always"&&m.push(""));let p,g="";for(let b=0;b<m.length;b++){b>0&&(g+="/");const x=m[b];if(!x)continue;p=yh(x,0,p);const j=p[0];if(j===sr){g+=x;continue}const w=p[5],N=x.substring(0,p[1]),E=x.substring(p[4],w),C=x.substring(p[2],p[3]);j===Vs?g+=N||E?`${N}{$${C}}${E}`:`$${C}`:j===Qs?g+=N||E?`${N}{$}${E}`:"$":g+=`${N}{-$${C}}${E}`}g=vh(g);const v=g||"/";return h&&i&&i.set(h,v),v}function uj(n){const s=new Map(n.map(u=>[encodeURIComponent(u),u])),l=Array.from(s.keys()).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(l,"g");return u=>u.replace(i,f=>s.get(f)??f)}function bf(n,s,l){const i=s[n];return typeof i!="string"?i:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(u=>hb(u,l)).join("/"):hb(i,l)}function vf({path:n,params:s,decoder:l,...i}){let u=!1;const f={};if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:u};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:u};const h=n.length;let m=0,p,g="";for(;m<h;){const b=m;p=yh(n,b,p);const x=p[5];if(m=x+1,b===x)continue;const j=p[0];if(j===sr){g+="/"+n.substring(b,x);continue}if(j===Qs){const w=s._splat;f._splat=w,f["*"]=w;const N=n.substring(b,p[1]),E=n.substring(p[4],x);if(!w){u=!0,(N||E)&&(g+="/"+N+E);continue}const C=bf("_splat",s,l);g+="/"+N+C+E;continue}if(j===Vs){const w=n.substring(p[2],p[3]);!u&&!(w in s)&&(u=!0),f[w]=s[w];const N=n.substring(b,p[1]),E=n.substring(p[4],x),C=bf(w,s,l)??"undefined";g+="/"+N+C+E;continue}if(j===_i){const w=n.substring(p[2],p[3]),N=s[w];if(N==null)continue;f[w]=N;const E=n.substring(b,p[1]),C=n.substring(p[4],x),D=bf(w,s,l)??"";g+="/"+E+D+C;continue}}return n.endsWith("/")&&(g+="/"),{usedParams:f,interpolatedPath:g||"/",isMissingParams:u}}function hb(n,s){const l=encodeURIComponent(n);return(s==null?void 0:s(l))??l}function It(n){return!!(n!=null&&n.isNotFound)}function dj(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const eh="tsr-scroll-restoration-v1_3",fj=(n,s)=>{let l;return(...i)=>{l||(l=setTimeout(()=>{n(...i),l=null},s))}};function hj(){const n=dj();if(!n)return null;const s=n.getItem(eh);let l=s?JSON.parse(s):{};return{state:l,set:i=>{l=es(i,l)||l;try{n.setItem(eh,JSON.stringify(l))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const lc=hj(),mj=n=>n.state.__TSR_key||n.href;function pj(n){const s=[];let l;for(;l=n.parentNode;)s.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(l.children,n)+1})`),n=l;return`${s.reverse().join(" > ")}`.toLowerCase()}let Oc=!1;function gj({storageKey:n,key:s,behavior:l,shouldScrollRestoration:i,scrollToTopSelectors:u,location:f}){var g,v;let h;try{h=JSON.parse(sessionStorage.getItem(n)||"{}")}catch(b){console.error(b);return}const m=s||((g=window.history.state)==null?void 0:g.__TSR_key),p=h[m];Oc=!0;e:{if(i&&p&&Object.keys(p).length>0){for(const j in p){const w=p[j];if(j==="window")window.scrollTo({top:w.scrollY,left:w.scrollX,behavior:l});else if(j){const N=document.querySelector(j);N&&(N.scrollLeft=w.scrollX,N.scrollTop=w.scrollY)}}break e}const b=(f??window.location).hash.split("#",2)[1];if(b){const j=((v=window.history.state)==null?void 0:v.__hashScrollIntoViewOptions)??!0;if(j){const w=document.getElementById(b);w&&w.scrollIntoView(j)}break e}const x={top:0,left:0,behavior:l};if(window.scrollTo(x),u)for(const j of u){if(j==="window")continue;const w=typeof j=="function"?j():document.querySelector(j);w&&w.scrollTo(x)}}Oc=!1}function yj(n,s){if(!lc||((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!lc))return;n.isScrollRestorationSetup=!0,Oc=!1;const i=n.options.getScrollRestorationKey||mj;window.history.scrollRestoration="manual";const u=f=>{if(Oc||!n.isScrollRestoring)return;let h="";if(f.target===document||f.target===window)h="window";else{const p=f.target.getAttribute("data-scroll-restoration-id");p?h=`[data-scroll-restoration-id="${p}"]`:h=pj(f.target)}const m=i(n.state.location);lc.set(p=>{const g=p[m]||(p[m]={}),v=g[h]||(g[h]={});if(h==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(h){const b=document.querySelector(h);b&&(v.scrollX=b.scrollLeft||0,v.scrollY=b.scrollTop||0)}return p})};typeof document<"u"&&document.addEventListener("scroll",fj(u,100),!0),n.subscribe("onRendered",f=>{const h=i(f.toLocation);if(!n.resetNextScroll){n.resetNextScroll=!0;return}typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation})||(gj({storageKey:eh,key:h,behavior:n.options.scrollRestorationBehavior,shouldScrollRestoration:n.isScrollRestoring,scrollToTopSelectors:n.options.scrollToTopSelectors,location:n.history.location}),n.isScrollRestoring&&lc.set(m=>(m[h]||(m[h]={}),m)))})}function bj(n){if(typeof document<"u"&&document.querySelector){const s=n.state.location.state.__hashScrollIntoViewOptions??!0;if(s&&n.state.location.hash!==""){const l=document.getElementById(n.state.location.hash);l&&l.scrollIntoView(s)}}}function vj(n,s=String){const l=new URLSearchParams;for(const i in n){const u=n[i];u!==void 0&&l.set(i,s(u))}return l.toString()}function xf(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function xj(n){const s=new URLSearchParams(n),l={};for(const[i,u]of s.entries()){const f=l[i];f==null?l[i]=xf(u):Array.isArray(f)?f.push(xf(u)):l[i]=[f,xf(u)]}return l}const Sj=Nj(JSON.parse),jj=_j(JSON.stringify,JSON.parse);function Nj(n){return s=>{s[0]==="?"&&(s=s.substring(1));const l=xj(s);for(const i in l){const u=l[i];if(typeof u=="string")try{l[i]=n(u)}catch{}}return l}}function _j(n,s){const l=typeof s=="function";function i(u){if(typeof u=="object"&&u!==null)try{return n(u)}catch{}else if(l&&typeof u=="string")try{return s(u),n(u)}catch{}return u}return u=>{const f=vj(u,i);return f?`?${f}`:""}}const fn="__root__";function wj(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&typeof n.href=="string"&&Tc(n.href))throw new Error(`Redirect blocked: unsafe protocol in href "${n.href}". Only ${Lv.join(", ")} protocols are allowed.`);if(!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const s=new Headers(n.headers);n.href&&s.get("Location")===null&&s.set("Location",n.href);const l=new Response(null,{status:n.statusCode,headers:s});if(l.options=n,n.throw)throw l;return l}function mn(n){return n instanceof Response&&!!n.options}const xc=n=>{var s;if(!n.rendered)return n.rendered=!0,(s=n.onReady)==null?void 0:s.call(n)},qc=(n,s)=>!!(n.preload&&!n.router.state.matches.some(l=>l.id===s)),Pl=(n,s,l=!0)=>{const i={...n.router.options.context??{}},u=l?s:s-1;for(let f=0;f<=u;f++){const h=n.matches[f];if(!h)continue;const m=n.router.getMatch(h.id);m&&Object.assign(i,m.__routeContext,m.__beforeLoadContext)}return i},Pv=(n,s)=>{var u;const l=n.router.routesById[s.routeId??""]??n.router.routeTree;!l.options.notFoundComponent&&((u=n.router.options)!=null&&u.defaultNotFoundComponent)&&(l.options.notFoundComponent=n.router.options.defaultNotFoundComponent),ua(l.options.notFoundComponent);const i=n.matches.find(f=>f.routeId===l.id);ua(i,"Could not find match for route: "+l.id),n.updateMatch(i.id,f=>({...f,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&l.parentRoute&&(s.routeId=l.parentRoute.id,Pv(n,s))},ts=(n,s,l)=>{var i,u,f;if(!(!mn(l)&&!It(l))){if(mn(l)&&l.redirectHandled&&!l.options.reloadDocument)throw l;if(s){(i=s._nonReactive.beforeLoadPromise)==null||i.resolve(),(u=s._nonReactive.loaderPromise)==null||u.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0;const h=mn(l)?"redirected":"notFound";s._nonReactive.error=l,n.updateMatch(s.id,m=>({...m,status:h,context:Pl(n,s.index),isFetching:!1,error:l})),It(l)&&!l.routeId&&(l.routeId=s.routeId),(f=s._nonReactive.loadPromise)==null||f.resolve()}throw mn(l)?(n.rendered=!0,l.options._fromLocation=n.location,l.redirectHandled=!0,l=n.router.resolveRedirect(l),l):(Pv(n,l),l)}},Vv=(n,s)=>!!n.router.getMatch(s)._nonReactive.dehydrated,ci=(n,s,l,i)=>{var m,p;const{id:u,routeId:f}=n.matches[s],h=n.router.looseRoutesById[f];if(l instanceof Promise)throw l;l.routerCode=i,n.firstBadMatchIndex??(n.firstBadMatchIndex=s),ts(n,n.router.getMatch(u),l);try{(p=(m=h.options).onError)==null||p.call(m,l)}catch(g){l=g,ts(n,n.router.getMatch(u),l)}n.updateMatch(u,g=>{var v,b;return(v=g._nonReactive.beforeLoadPromise)==null||v.resolve(),g._nonReactive.beforeLoadPromise=void 0,(b=g._nonReactive.loadPromise)==null||b.resolve(),{...g,error:l,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Qv=(n,s,l,i)=>{var h;if(i._nonReactive.pendingTimeout!==void 0)return;const u=l.options.pendingMs??n.router.options.defaultPendingMs;if(!!(n.onReady&&!qc(n,s)&&(l.options.loader||l.options.beforeLoad||Kv(l))&&typeof u=="number"&&u!==1/0&&(l.options.pendingComponent??((h=n.router.options)==null?void 0:h.defaultPendingComponent)))){const m=setTimeout(()=>{xc(n)},u);i._nonReactive.pendingTimeout=m}},Ej=(n,s,l)=>{const i=n.router.getMatch(s);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;Qv(n,s,l,i);const u=()=>{const f=n.router.getMatch(s);f.preload&&(f.status==="redirected"||f.status==="notFound")&&ts(n,f,f.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(u):u()},Cj=(n,s,l,i)=>{const u=n.router.getMatch(s),f=u._nonReactive.loadPromise;u._nonReactive.loadPromise=ar(()=>{f==null||f.resolve()});const{paramsError:h,searchError:m}=u;h&&ci(n,l,h,"PARSE_PARAMS"),m&&ci(n,l,m,"VALIDATE_SEARCH"),Qv(n,s,i,u);const p=new AbortController;let g=!1;const v=()=>{g||(g=!0,n.updateMatch(s,O=>({...O,isFetching:"beforeLoad",fetchCount:O.fetchCount+1,abortController:p})))},b=()=>{var O;(O=u._nonReactive.beforeLoadPromise)==null||O.resolve(),u._nonReactive.beforeLoadPromise=void 0,n.updateMatch(s,F=>({...F,isFetching:!1}))};if(!i.options.beforeLoad){yi(()=>{v(),b()});return}u._nonReactive.beforeLoadPromise=ar();const x={...Pl(n,l,!1),...u.__routeContext},{search:j,params:w,cause:N}=u,E=qc(n,s),C={search:j,abortController:p,params:w,preload:E,context:x,location:n.location,navigate:O=>n.router.navigate({...O,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:E?"preload":N,matches:n.matches,routeId:i.id,...n.router.options.additionalContext},D=O=>{if(O===void 0){yi(()=>{v(),b()});return}(mn(O)||It(O))&&(v(),ci(n,l,O,"BEFORE_LOAD")),yi(()=>{v(),n.updateMatch(s,F=>({...F,__beforeLoadContext:O})),b()})};let P;try{if(P=i.options.beforeLoad(C),Hl(P))return v(),P.catch(O=>{ci(n,l,O,"BEFORE_LOAD")}).then(D)}catch(O){v(),ci(n,l,O,"BEFORE_LOAD")}D(P)},Rj=(n,s)=>{const{id:l,routeId:i}=n.matches[s],u=n.router.looseRoutesById[i],f=()=>m(),h=()=>Cj(n,l,s,u),m=()=>{if(Vv(n,l))return;const p=Ej(n,l,u);return Hl(p)?p.then(h):h()};return f()},Tj=(n,s,l)=>{var f,h,m,p,g,v;const i=n.router.getMatch(s);if(!i||!l.options.head&&!l.options.scripts&&!l.options.headers)return;const u={ssr:n.router.options.ssr,matches:n.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(h=(f=l.options).head)==null?void 0:h.call(f,u),(p=(m=l.options).scripts)==null?void 0:p.call(m,u),(v=(g=l.options).headers)==null?void 0:v.call(g,u)]).then(([b,x,j])=>{const w=b==null?void 0:b.meta,N=b==null?void 0:b.links,E=b==null?void 0:b.scripts,C=b==null?void 0:b.styles;return{meta:w,links:N,headScripts:E,headers:j,scripts:x,styles:C}})},Gv=(n,s,l,i)=>{const u=n.matchPromises[l-1],{params:f,loaderDeps:h,abortController:m,cause:p}=n.router.getMatch(s),g=Pl(n,l),v=qc(n,s);return{params:f,deps:h,preload:!!v,parentMatchPromise:u,abortController:m,context:g,location:n.location,navigate:b=>n.router.navigate({...b,_fromLocation:n.location}),cause:v?"preload":p,route:i,...n.router.options.additionalContext}},mb=async(n,s,l,i)=>{var u,f,h,m,p,g,v;try{const b=n.router.getMatch(s);try{(!(K2??n.router.isServer)||b.ssr===!0)&&Yv(i);const x=(f=(u=i.options).loader)==null?void 0:f.call(u,Gv(n,s,l,i)),j=i.options.loader&&Hl(x);if(!!(j||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||b._nonReactive.minPendingPromise)&&n.updateMatch(s,E=>({...E,isFetching:"loader"})),i.options.loader){const E=j?await x:x;ts(n,n.router.getMatch(s),E),E!==void 0&&n.updateMatch(s,C=>({...C,loaderData:E}))}i._lazyPromise&&await i._lazyPromise;const N=b._nonReactive.minPendingPromise;N&&await N,i._componentsPromise&&await i._componentsPromise,n.updateMatch(s,E=>({...E,error:void 0,context:Pl(n,l),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(x){let j=x;if((j==null?void 0:j.name)==="AbortError"){if(b.abortController.signal.aborted){(h=b._nonReactive.loaderPromise)==null||h.resolve(),b._nonReactive.loaderPromise=void 0;return}n.updateMatch(s,N=>({...N,status:N.status==="pending"?"success":N.status,isFetching:!1,context:Pl(n,l)}));return}const w=b._nonReactive.minPendingPromise;w&&await w,It(x)&&await((p=(m=i.options.notFoundComponent)==null?void 0:m.preload)==null?void 0:p.call(m)),ts(n,n.router.getMatch(s),x);try{(v=(g=i.options).onError)==null||v.call(g,x)}catch(N){j=N,ts(n,n.router.getMatch(s),N)}n.updateMatch(s,N=>({...N,error:j,context:Pl(n,l),status:"error",isFetching:!1}))}}catch(b){const x=n.router.getMatch(s);x&&(x._nonReactive.loaderPromise=void 0),ts(n,x,b)}},Mj=async(n,s)=>{var v,b;async function l(x,j,w,N){const E=Date.now()-j.updatedAt,C=x?N.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:N.options.staleTime??n.router.options.defaultStaleTime??0,D=N.options.shouldReload,P=typeof D=="function"?D(Gv(n,i,s,N)):D,{status:O,invalid:F}=w;f=O==="success"&&(F||(P??E>C)),x&&N.options.preload===!1||(f&&!n.sync?(h=!0,(async()=>{var W,H;try{await mb(n,i,s,N);const q=n.router.getMatch(i);(W=q._nonReactive.loaderPromise)==null||W.resolve(),(H=q._nonReactive.loadPromise)==null||H.resolve(),q._nonReactive.loaderPromise=void 0}catch(q){mn(q)&&await n.router.navigate(q.options)}})()):(O!=="success"||f&&n.sync)&&await mb(n,i,s,N))}const{id:i,routeId:u}=n.matches[s];let f=!1,h=!1;const m=n.router.looseRoutesById[u];if(!Vv(n,i)){const x=n.router.getMatch(i),j=qc(n,i);if(x._nonReactive.loaderPromise){if(x.status==="success"&&!n.sync&&!x.preload)return x;await x._nonReactive.loaderPromise;const w=n.router.getMatch(i),N=w._nonReactive.error||w.error;N&&ts(n,w,N),w.status==="pending"&&await l(j,x,w,m)}else{const w=j&&!n.router.state.matches.some(E=>E.id===i),N=n.router.getMatch(i);N._nonReactive.loaderPromise=ar(),w!==N.preload&&n.updateMatch(i,E=>({...E,preload:w})),await l(j,x,N,m)}}const p=n.router.getMatch(i);h||((v=p._nonReactive.loaderPromise)==null||v.resolve(),(b=p._nonReactive.loadPromise)==null||b.resolve()),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,h||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const g=h?p.isFetching:!1;return g!==p.isFetching||p.invalid!==!1?(n.updateMatch(i,x=>({...x,isFetching:g,invalid:!1})),n.router.getMatch(i)):p};async function pb(n){const s=Object.assign(n,{matchPromises:[]});s.router.state.matches.some(l=>l._forcePending)&&xc(s);try{for(let m=0;m<s.matches.length;m++){const p=Rj(s,m);Hl(p)&&await p}const l=s.firstBadMatchIndex??s.matches.length;for(let m=0;m<l;m++)s.matchPromises.push(Mj(s,m));const u=(await Promise.allSettled(s.matchPromises)).filter(m=>m.status==="rejected").map(m=>m.reason);let f;for(const m of u){if(mn(m))throw m;!f&&It(m)&&(f=m)}for(const m of s.matches){const{id:p,routeId:g}=m,v=s.router.looseRoutesById[g];try{const b=Tj(s,p,v);if(b){const x=await b;s.updateMatch(p,j=>({...j,...x}))}}catch(b){console.error(`Error executing head for route ${g}:`,b)}}if(f)throw f;const h=xc(s);Hl(h)&&await h}catch(l){if(It(l)&&!s.preload){const i=xc(s);throw Hl(i)&&await i,l}if(mn(l))throw l}return s.matches}async function Yv(n){if(!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(s=>{const{id:l,...i}=s.options;Object.assign(n.options,i),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0),!n._componentsLoaded&&n._componentsPromise===void 0){const s=()=>{var i;const l=[];for(const u of Fv){const f=(i=n.options[u])==null?void 0:i.preload;f&&l.push(f())}if(l.length)return Promise.all(l).then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0});n._componentsLoaded=!0,n._componentsPromise=void 0};n._componentsPromise=n._lazyPromise?n._lazyPromise.then(s):s()}return n._componentsPromise}function Kv(n){var s;for(const l of Fv)if((s=n.options[l])!=null&&s.preload)return!0;return!1}const Fv=["component","errorComponent","pendingComponent","notFoundComponent"];function Aj(n){return{input:({url:s})=>{for(const l of n)s=th(l,s);return s},output:({url:s})=>{for(let l=n.length-1;l>=0;l--)s=Xv(n[l],s);return s}}}function Oj(n){const s=Hv(n.basepath),l=`/${s}`,i=`${l}/`,u=n.caseSensitive?l:l.toLowerCase(),f=n.caseSensitive?i:i.toLowerCase();return{input:({url:h})=>{const m=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return m===u?h.pathname="/":m.startsWith(f)&&(h.pathname=h.pathname.slice(l.length)),h},output:({url:h})=>(h.pathname=vc(["/",s,h.pathname]),h)}}function th(n,s){var i;const l=(i=n==null?void 0:n.input)==null?void 0:i.call(n,{url:s});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return s}function Xv(n,s){var i;const l=(i=n==null?void 0:n.output)==null?void 0:i.call(n,{url:s});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return s}function Bs(n){const s=n.resolvedLocation,l=n.location,i=(s==null?void 0:s.pathname)!==l.pathname,u=(s==null?void 0:s.href)!==l.href,f=(s==null?void 0:s.hash)!==l.hash;return{fromLocation:s,toLocation:l,pathChanged:i,hrefChanged:u,hashChanged:f}}class kj{constructor(s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=l=>l(),this.update=l=>{var x;l.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,u=this.basepath??(i==null?void 0:i.basepath)??"/",f=this.basepath===void 0,h=i==null?void 0:i.rewrite;if(this.options={...i,...l},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=uj(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=G2()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let j;this.resolvePathCache=Mc(1e3),j=this.buildRouteTree(),this.setRoutes(j)}!this.__store&&this.latestLocation&&(this.__store=new V2(Dj(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(j=>!["redirected"].includes(j.status))}}}),yj(this));let m=!1;const p=this.options.basepath??"/",g=this.options.rewrite;if(f||u!==p||h!==g){this.basepath=p;const j=[],w=Hv(p);w&&w!=="/"&&j.push(Oj({basepath:p})),g&&j.push(g),this.rewrite=j.length===0?void 0:j.length===1?j[0]:Aj(j),this.history&&this.updateLatestLocation(),m=!0}m&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((x=window.CSS)==null?void 0:x.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const l=sj(this.routeTree,this.options.caseSensitive,(i,u)=>{i.init({originalIndex:u})});return this.options.routeMasks&&W2(this.options.routeMasks,l.processedTree),l},this.subscribe=(l,i)=>{const u={eventType:l,fn:i};return this.subscribers.add(u),()=>{this.subscribers.delete(u)}},this.emit=l=>{this.subscribers.forEach(i=>{i.eventType===l.type&&i.fn(l)})},this.parseLocation=(l,i)=>{const u=({pathname:p,search:g,hash:v,href:b,state:x})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const D=this.options.parseSearch(g),P=this.options.stringifySearch(D);return{href:p+P+v,publicHref:b,pathname:ii(p).path,external:!1,searchStr:P,search:Jt(i==null?void 0:i.search,D),hash:ii(v.slice(1)).path,state:Jt(i==null?void 0:i.state,x)}}const j=new URL(b,this.origin),w=th(this.rewrite,j),N=this.options.parseSearch(w.search),E=this.options.stringifySearch(N);return w.search=E,{href:w.href.replace(w.origin,""),publicHref:b,pathname:ii(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:E,search:Jt(i==null?void 0:i.search,N),hash:ii(w.hash.slice(1)).path,state:Jt(i==null?void 0:i.state,x)}},f=u(l),{__tempLocation:h,__tempKey:m}=f.state;if(h&&(!m||m===this.tempLocationKey)){const p=u(h);return p.state.key=f.state.key,p.state.__TSR_key=f.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:f}}return f},this.resolvePathWithBase=(l,i)=>cj({base:l,to:vh(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(l,i,u)=>typeof l=="string"?this.matchRoutesInternal({pathname:l,search:i},u):this.matchRoutesInternal(l,i),this.getMatchedRoutes=l=>Lj({pathname:l,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=l=>{const i=this.getMatch(l);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const l=this.state.matches.filter(f=>f.status==="pending"),i=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...l,...i]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=l=>{const i=(f={})=>{var fe,he;const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(h);f.from;const p=f.unsafeRelative==="path"?h.pathname:f.from??m.fullPath,g=this.resolvePathWithBase(p,"."),v=m.search,b={...m.params},x=f.to?this.resolvePathWithBase(g,`${f.to}`):this.resolvePathWithBase(g,"."),j=f.params===!1||f.params===null?{}:(f.params??!0)===!0?b:Object.assign(b,es(f.params,b)),w=vf({path:x,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,N=this.getMatchedRoutes(w);let E=N.matchedRoutes;(N.foundRoute?N.foundRoute.path!=="/"&&N.routeParams["**"]:ia(w))&&this.options.notFoundRoute&&(E=[...E,this.options.notFoundRoute]);let D=!1;if(Object.keys(j).length>0)for(const ie of E){const k=((fe=ie.options.params)==null?void 0:fe.stringify)??ie.options.stringifyParams;k&&(D=!0,Object.assign(j,k(j)))}const P=l.leaveParams?x:ii(D?vf({path:x,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:w).path;let O=v;if(l._includeValidateSearch&&((he=this.options.search)!=null&&he.strict)){const ie={};E.forEach(k=>{if(k.options.validateSearch)try{Object.assign(ie,Sc(k.options.validateSearch,{...ie,...O}))}catch{}}),O=ie}O=Uj({search:O,dest:f,destRoutes:E,_includeValidateSearch:l._includeValidateSearch}),O=Jt(v,O);const F=this.options.stringifySearch(O),W=f.hash===!0?h.hash:f.hash?es(f.hash,h.hash):void 0,H=W?`#${W}`:"";let q=f.state===!0?h.state:f.state?es(f.state,h.state):{};q=Jt(h.state,q);const X=`${P}${F}${H}`;let Q,$,ne=!1;if(this.rewrite){const ie=new URL(X,this.origin),k=Xv(this.rewrite,ie);Q=ie.href.replace(ie.origin,""),k.origin!==this.origin?($=k.href,ne=!0):$=k.pathname+k.search+k.hash}else Q=J2(X),$=Q;return{publicHref:$,href:Q,pathname:P,search:O,searchStr:F,state:q,hash:W??"",external:ne,unmaskOnReload:f.unmaskOnReload}},u=(f={},h)=>{const m=i(f);let p=h?i(h):void 0;if(!p){const g={};if(this.options.routeMasks){const v=ej(m.pathname,this.processedTree);if(v){Object.assign(g,v.rawParams);const{from:b,params:x,...j}=v.route,w=x===!1||x===null?{}:(x??!0)===!0?g:Object.assign(g,es(x,g));h={from:l.from,...j,params:w},p=i(h)}}}return p&&(m.maskedLocation=p),m};return l.mask?u(l,{from:l.from,...l.mask}):u(l)},this.commitLocation=async({viewTransition:l,ignoreBlocker:i,...u})=>{const f=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(v=>{u.state[v]=this.latestLocation.state[v]});const g=Us(u.state,this.latestLocation.state);return p.forEach(v=>{delete u.state[v]}),g},h=ia(this.latestLocation.href)===ia(u.href),m=this.commitLocationPromise;if(this.commitLocationPromise=ar(()=>{m==null||m.resolve()}),h&&f())this.load();else{let{maskedLocation:p,hashScrollIntoView:g,...v}=u;p&&(v={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=l,this.history[u.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:i})}return this.resetNextScroll=u.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:l,resetScroll:i,hashScrollIntoView:u,viewTransition:f,ignoreBlocker:h,href:m,...p}={})=>{if(m){const b=this.history.location.state.__TSR_index,x=Cc(m,{__TSR_index:l?b:b+1}),j=new URL(x.pathname,this.origin),w=th(this.rewrite,j);p.to=w.pathname,p.search=this.options.parseSearch(x.search),p.hash=x.hash.slice(1)}const g=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const v=this.commitLocation({...g,viewTransition:f,replace:l,resetScroll:i,hashScrollIntoView:u,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===g&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:l,reloadDocument:i,href:u,publicHref:f,...h})=>{var p;let m=!1;if(u)try{new URL(`${u}`),m=!0}catch{}if(m&&!i&&(i=!0),i){if(l!==void 0||!u){const v=this.buildLocation({to:l,...h});u=u??v.publicHref,f=f??v.publicHref}const g=!m&&f?f:u;if(Tc(g))return Promise.resolve();if(!h.ignoreBlocker){const v=this.history,b=((p=v.getBlockers)==null?void 0:p.call(v))??[];for(const x of b)if(x!=null&&x.blockerFn&&await x.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(g):window.location.href=g,Promise.resolve()}return this.buildAndCommitLocation({...h,href:u,to:l,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const l=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:l,cachedMatches:i.cachedMatches.filter(u=>!l.some(f=>f.id===u.id))}))},this.load=async l=>{let i,u,f;for(f=new Promise(m=>{this.startTransition(async()=>{var p;try{this.beforeLoad();const g=this.latestLocation,v=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Bs({resolvedLocation:v,location:g})}),this.emit({type:"onBeforeLoad",...Bs({resolvedLocation:v,location:g})}),await pb({router:this,sync:l==null?void 0:l.sync,matches:this.state.pendingMatches,location:g,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],x=[],j=[];yi(()=>{this.__store.setState(w=>{const N=w.matches,E=w.pendingMatches||w.matches;return b=N.filter(C=>!E.some(D=>D.id===C.id)),x=E.filter(C=>!N.some(D=>D.id===C.id)),j=E.filter(C=>N.some(D=>D.id===C.id)),{...w,isLoading:!1,loadedAt:Date.now(),matches:E,pendingMatches:void 0,cachedMatches:[...w.cachedMatches,...b.filter(C=>C.status!=="error"&&C.status!=="notFound")]}}),this.clearExpiredCache()}),[[b,"onLeave"],[x,"onEnter"],[j,"onStay"]].forEach(([w,N])=>{w.forEach(E=>{var C,D;(D=(C=this.looseRoutesById[E.routeId].options)[N])==null||D.call(C,E)})})})})}})}catch(g){mn(g)?(i=g,this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):It(g)&&(u=g),this.__store.setState(v=>({...v,statusCode:i?i.status:u?404:v.matches.some(b=>b.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===f&&((p=this.commitLocationPromise)==null||p.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let h;this.hasNotFoundMatch()?h=404:this.__store.state.matches.some(m=>m.status==="error")&&(h=500),h!==void 0&&this.__store.setState(m=>({...m,statusCode:h}))},this.startViewTransition=l=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let u;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.state.resolvedLocation,m=typeof i.types=="function"?i.types(Bs({resolvedLocation:h,location:f})):i.types;if(m===!1){l();return}u={update:l,types:m}}else u=l;document.startViewTransition(u)}else l()},this.updateMatch=(l,i)=>{this.startTransition(()=>{var f;const u=(f=this.state.pendingMatches)!=null&&f.some(h=>h.id===l)?"pendingMatches":this.state.matches.some(h=>h.id===l)?"matches":this.state.cachedMatches.some(h=>h.id===l)?"cachedMatches":"";u&&this.__store.setState(h=>{var m;return{...h,[u]:(m=h[u])==null?void 0:m.map(p=>p.id===l?i(p):p)}})})},this.getMatch=l=>{var u;const i=f=>f.id===l;return this.state.cachedMatches.find(i)??((u=this.state.pendingMatches)==null?void 0:u.find(i))??this.state.matches.find(i)},this.invalidate=l=>{const i=u=>{var f;return((f=l==null?void 0:l.filter)==null?void 0:f.call(l,u))??!0?{...u,invalid:!0,...l!=null&&l.forcePending||u.status==="error"||u.status==="notFound"?{status:"pending",error:void 0}:void 0}:u};return this.__store.setState(u=>{var f;return{...u,matches:u.matches.map(i),cachedMatches:u.cachedMatches.map(i),pendingMatches:(f=u.pendingMatches)==null?void 0:f.map(i)}}),this.shouldViewTransition=!1,this.load({sync:l==null?void 0:l.sync})},this.getParsedLocationHref=l=>l.publicHref||"/",this.resolveRedirect=l=>{const i=l.headers.get("Location");if(!l.options.href||l.options._builtLocation){const u=l.options._builtLocation??this.buildLocation(l.options),f=this.getParsedLocationHref(u);l.options.href=f,l.headers.set("Location",f)}else if(i)try{const u=new URL(i);if(this.origin&&u.origin===this.origin){const f=u.pathname+u.search+u.hash;l.options.href=f,l.headers.set("Location",f)}}catch{}return l.headers.get("Location")||l.headers.set("Location",l.options.href),l},this.clearCache=l=>{const i=l==null?void 0:l.filter;i!==void 0?this.__store.setState(u=>({...u,cachedMatches:u.cachedMatches.filter(f=>!i(f))})):this.__store.setState(u=>({...u,cachedMatches:[]}))},this.clearExpiredCache=()=>{const l=i=>{const u=this.looseRoutesById[i.routeId];if(!u.options.loader)return!0;const f=(i.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=f};this.clearCache({filter:l})},this.loadRouteChunk=Yv,this.preloadRoute=async l=>{const i=this.buildLocation(l);let u=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:l});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(m=>m.id)),h=new Set([...f,...this.state.cachedMatches.map(m=>m.id)]);yi(()=>{u.forEach(m=>{h.has(m.id)||this.__store.setState(p=>({...p,cachedMatches:[...p.cachedMatches,m]}))})});try{return u=await pb({router:this,matches:u,location:i,preload:!0,updateMatch:(m,p)=>{f.has(m)?u=u.map(g=>g.id===m?p(g):g):this.updateMatch(m,p)}}),u}catch(m){if(mn(m))return m.options.reloadDocument?void 0:await this.preloadRoute({...m.options,_fromLocation:i});It(m)||console.error(m);return}},this.matchRoute=(l,i)=>{const u={...l,to:l.to?this.resolvePathWithBase(l.from||"",l.to):void 0,params:l.params||{},leaveParams:!0},f=this.buildLocation(u);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const m=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,p=tj(f.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,m.pathname,this.processedTree);return!p||l.params&&!Us(p.rawParams,l.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?Us(m.search,f.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(l=>l.status==="notFound"||l.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...s,caseSensitive:s.caseSensitive??!1,notFoundMode:s.notFoundMode??"fuzzy",stringifySearch:s.stringifySearch??jj,parseSearch:s.parseSearch??Sj}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:s,routesByPath:l,processedTree:i}){this.routesById=s,this.routesByPath=l,this.processedTree=i;const u=this.options.notFoundRoute;u&&(u.init({originalIndex:99999999999}),this.routesById[u.id]=u)}get looseRoutesById(){return this.routesById}getParentContext(s){return(s==null?void 0:s.id)?s.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(s,l){var x,j;const i=this.getMatchedRoutes(s.pathname),{foundRoute:u,routeParams:f,parsedParams:h}=i;let{matchedRoutes:m}=i,p=!1;(u?u.path!=="/"&&f["**"]:ia(s.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:p=!0);const g=p?qj(this.options.notFoundMode,m):void 0,v=new Array(m.length),b=new Map(this.state.matches.map(w=>[w.routeId,w]));for(let w=0;w<m.length;w++){const N=m[w],E=v[w-1];let C,D,P;{const k=(E==null?void 0:E.search)??s.search,V=(E==null?void 0:E._strictSearch)??void 0;try{const K=Sc(N.options.validateSearch,{...k})??void 0;C={...k,...K},D={...V,...K},P=void 0}catch(K){let me=K;if(K instanceof kc||(me=new kc(K.message,{cause:K})),l!=null&&l.throwOnError)throw me;C=k,D={},P=me}}const O=((j=(x=N.options).loaderDeps)==null?void 0:j.call(x,{search:C}))??"",F=O?JSON.stringify(O):"",{interpolatedPath:W,usedParams:H}=vf({path:N.fullPath,params:f,decoder:this.pathParamsDecoder,server:this.isServer}),q=N.id+W+F,X=this.getMatch(q),Q=b.get(N.id),$=(X==null?void 0:X._strictParams)??H;let ne;if(!X)try{gb(N,H,h,$)}catch(k){if(It(k)||mn(k)?ne=k:ne=new zj(k.message,{cause:k}),l!=null&&l.throwOnError)throw ne}Object.assign(f,$);const fe=Q?"stay":"enter";let he;if(X)he={...X,cause:fe,params:(Q==null?void 0:Q.params)??f,_strictParams:$,search:Jt(Q?Q.search:X.search,C),_strictSearch:D};else{const k=N.options.loader||N.options.beforeLoad||N.lazyFn||Kv(N)?"pending":"success";he={id:q,ssr:N.options.ssr,index:w,routeId:N.id,params:(Q==null?void 0:Q.params)??f,_strictParams:$,pathname:W,updatedAt:Date.now(),search:Q?Jt(Q.search,C):C,_strictSearch:D,searchError:void 0,status:k,isFetching:!1,error:void 0,paramsError:ne,__routeContext:void 0,_nonReactive:{loadPromise:ar()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:fe,loaderDeps:Q?Jt(Q.loaderDeps,O):O,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:N.options.staticData||{},fullPath:N.fullPath}}l!=null&&l.preload||(he.globalNotFound=g===N.id),he.searchError=P;const ie=this.getParentContext(E);he.context={...ie,...he.__routeContext,...he.__beforeLoadContext},v[w]=he}for(let w=0;w<v.length;w++){const N=v[w],E=this.looseRoutesById[N.routeId],C=this.getMatch(N.id),D=b.get(N.routeId);if(N.params=D?Jt(D.params,f):f,!C){const P=v[w-1],O=this.getParentContext(P);if(E.options.context){const F={deps:N.loaderDeps,params:N.params,context:O??{},location:s,navigate:W=>this.navigate({...W,_fromLocation:s}),buildLocation:this.buildLocation,cause:N.cause,abortController:N.abortController,preload:!!N.preload,matches:v,routeId:E.id};N.__routeContext=E.options.context(F)??void 0}N.context={...O,...N.__routeContext,...N.__beforeLoadContext}}}return v}matchRoutesLightweight(s){const{matchedRoutes:l,routeParams:i,parsedParams:u}=this.getMatchedRoutes(s.pathname),f=Ni(l),h={...s.search};for(const v of l)try{Object.assign(h,Sc(v.options.validateSearch,h))}catch{}const m=Ni(this.state.matches),p=m&&m.routeId===f.id&&s.pathname===this.state.location.pathname;let g;if(p)g=m.params;else{const v={...i};for(const b of l)try{gb(b,i,u??{},v)}catch{}g=v}return{matchedRoutes:l,fullPath:f.fullPath,search:h,params:g}}}class kc extends Error{}class zj extends Error{}function Dj(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Sc(n,s){if(n==null)return{};if("~standard"in n){const l=n["~standard"].validate(s);if(l instanceof Promise)throw new kc("Async validation not supported");if(l.issues)throw new kc(JSON.stringify(l.issues,void 0,2),{cause:l});return l.value}return"parse"in n?n.parse(s):typeof n=="function"?n(s):{}}function Lj({pathname:n,routesById:s,processedTree:l}){const i={},u=ia(n);let f,h;const m=nj(u,l,!0);return m&&(f=m.route,Object.assign(i,m.rawParams),h=Object.assign({},m.parsedParams)),{matchedRoutes:(m==null?void 0:m.branch)||[s[fn]],routeParams:i,foundRoute:f,parsedParams:h}}function Uj({search:n,dest:s,destRoutes:l,_includeValidateSearch:i}){return Bj(l)(n,s,i??!1)}function Bj(n){var u;const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of n){if("search"in f.options)(u=f.options.search)!=null&&u.middlewares&&s.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:m,next:p})=>{let g=m;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(g=f.options.preSearchFilters.reduce((b,x)=>x(b),m));const v=p(g);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((b,x)=>x(b),v):v};s.middlewares.push(h)}if(f.options.validateSearch){const h=({search:m,next:p})=>{const g=p(m);if(!s._includeValidateSearch)return g;try{return{...g,...Sc(f.options.validateSearch,g)??void 0}}catch{return g}};s.middlewares.push(h)}}const l=({search:f})=>{const h=s.dest;return h.search?h.search===!0?f:es(h.search,f):{}};s.middlewares.push(l);const i=(f,h,m)=>{if(f>=m.length)return h;const p=m[f];return p({search:h,next:v=>i(f+1,v,m)})};return function(h,m,p){return s.dest=m,s._includeValidateSearch=p,i(0,h,s.middlewares)}}function qj(n,s){if(n!=="root")for(let l=s.length-1;l>=0;l--){const i=s[l];if(i.children)return i.id}return fn}function gb(n,s,l,i){var f;const u=((f=n.options.params)==null?void 0:f.parse)??n.options.parseParams;if(u)if(n.options.skipRouteOnParseError)for(const h in s)h in l&&(i[h]=l[h]);else{const h=u(i);Object.assign(i,h)}}const Hj="Error preloading route! ☝️";class Zv{constructor(s){if(this.init=l=>{var g,v;this.originalIndex=l.originalIndex;const i=this.options,u=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(v=(g=this.options).getParentRoute)==null?void 0:v.call(g),u?this._path=fn:this.parentRoute||ua(!1);let f=u?fn:i==null?void 0:i.path;f&&f!=="/"&&(f=qv(f));const h=(i==null?void 0:i.id)||f;let m=u?fn:vc([this.parentRoute.id===fn?"":this.parentRoute.id,h]);f===fn&&(f="/"),m!==fn&&(m=vc(["/",m]));const p=m===fn?"/":vc([this.parentRoute.fullPath,f]);this._path=f,this._id=m,this._fullPath=p,this._to=ia(p)},this.addChildren=l=>this._addFileChildren(l),this._addFileChildren=l=>(Array.isArray(l)&&(this.children=l),typeof l=="object"&&l!==null&&(this.children=Object.values(l)),this),this._addFileTypes=()=>this,this.updateLoader=l=>(Object.assign(this.options,l),this),this.update=l=>(Object.assign(this.options,l),this),this.lazy=l=>(this.lazyFn=l,this),this.redirect=l=>wj({from:this.fullPath,...l}),this.options=s||{},this.isRoot=!(s!=null&&s.getParentRoute),s!=null&&s.id&&(s!=null&&s.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class Pj extends Zv{constructor(s){super(s)}}const rc=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Sf(n){const s=_.useRef({value:n,prev:null}),l=s.current.value;return n!==l&&(s.current={value:n,prev:l}),s.current.prev}function Vj(n,s,l={},i={}){_.useEffect(()=>{if(!n.current||i.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([f])=>{s(f)},l);return u.observe(n.current),()=>{u.disconnect()}},[s,l,i.disabled,n])}function Qj(n){const s=_.useRef(null);return _.useImperativeHandle(n,()=>s.current,[]),s}function xh(n){const s=n.errorComponent??Sh;return c.jsx(Gj,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:l,reset:i})=>l?_.createElement(s,{error:l,reset:i}):n.children})}class Gj extends _.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(s){return{resetKey:s.getResetKey()}}static getDerivedStateFromError(s){return{error:s}}reset(){this.setState({error:null})}componentDidUpdate(s,l){l.error&&l.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(s,l){this.props.onCatch&&this.props.onCatch(s,l)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Sh({error:n}){const[s,l]=_.useState(!1);return c.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[c.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),c.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>l(i=>!i),children:s?"Hide Error":"Show Error"})]}),c.jsx("div",{style:{height:".25rem"}}),s?c.jsx("div",{children:c.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?c.jsx("code",{children:n.message}):null})}):null]})}function Yj({children:n,fallback:s=null}){return Jv()?c.jsx(nr.Fragment,{children:n}):c.jsx(nr.Fragment,{children:s})}function Jv(){return nr.useSyncExternalStore(Kj,()=>!0,()=>!1)}function Kj(){return()=>{}}var jf={exports:{}},Nf={},_f={exports:{}},wf={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* use-sync-external-store-shim.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var yb;function Fj(){if(yb)return wf;yb=1;var n=zi();function s(b,x){return b===x&&(b!==0||1/b===1/x)||b!==b&&x!==x}var l=typeof Object.is=="function"?Object.is:s,i=n.useState,u=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function m(b,x){var j=x(),w=i({inst:{value:j,getSnapshot:x}}),N=w[0].inst,E=w[1];return f(function(){N.value=j,N.getSnapshot=x,p(N)&&E({inst:N})},[b,j,x]),u(function(){return p(N)&&E({inst:N}),b(function(){p(N)&&E({inst:N})})},[b]),h(j),j}function p(b){var x=b.getSnapshot;b=b.value;try{var j=x();return!l(b,j)}catch{return!0}}function g(b,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return wf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,wf}var bb;function Xj(){return bb||(bb=1,_f.exports=Fj()),_f.exports}/**
|
|
58
|
+
* @license React
|
|
59
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var vb;function Zj(){if(vb)return Nf;vb=1;var n=zi(),s=Xj();function l(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var i=typeof Object.is=="function"?Object.is:l,u=s.useSyncExternalStore,f=n.useRef,h=n.useEffect,m=n.useMemo,p=n.useDebugValue;return Nf.useSyncExternalStoreWithSelector=function(g,v,b,x,j){var w=f(null);if(w.current===null){var N={hasValue:!1,value:null};w.current=N}else N=w.current;w=m(function(){function C(W){if(!D){if(D=!0,P=W,W=x(W),j!==void 0&&N.hasValue){var H=N.value;if(j(H,W))return O=H}return O=W}if(H=O,i(P,W))return H;var q=x(W);return j!==void 0&&j(H,q)?(P=W,H):(P=W,O=q)}var D=!1,P,O,F=b===void 0?null:b;return[function(){return C(v())},F===null?void 0:function(){return C(F())}]},[v,b,x,j]);var E=u(g,w[0],w[1]);return h(function(){N.hasValue=!0,N.value=E},[E]),p(E),E},Nf}var xb;function Jj(){return xb||(xb=1,jf.exports=Zj()),jf.exports}var Ij=Jj();function $j(n,s=i=>i,l={}){const i=l.equal??Wj;return Ij.useSyncExternalStoreWithSelector(n.subscribe,()=>n.state,()=>n.state,s,i)}function Wj(n,s){if(Object.is(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;if(n instanceof Map&&s instanceof Map){if(n.size!==s.size)return!1;for(const[i,u]of n)if(!s.has(i)||!Object.is(u,s.get(i)))return!1;return!0}if(n instanceof Set&&s instanceof Set){if(n.size!==s.size)return!1;for(const i of n)if(!s.has(i))return!1;return!0}if(n instanceof Date&&s instanceof Date)return n.getTime()===s.getTime();const l=Sb(n);if(l.length!==Sb(s).length)return!1;for(let i=0;i<l.length;i++)if(!Object.prototype.hasOwnProperty.call(s,l[i])||!Object.is(n[l[i]],s[l[i]]))return!1;return!0}function Sb(n){return Object.keys(n).concat(Object.getOwnPropertySymbols(n))}const Ef=_.createContext(null);function Iv(){return typeof document>"u"?Ef:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Ef,Ef)}function pn(n){const s=_.useContext(Iv());return n==null||n.warn,s}function $t(n){const s=pn({warn:(n==null?void 0:n.router)===void 0}),l=(n==null?void 0:n.router)||s,i=_.useRef(void 0);return $j(l.__store,u=>{if(n!=null&&n.select){if(n.structuralSharing??l.options.defaultStructuralSharing){const f=Jt(i.current,n.select(u));return i.current=f,f}return n.select(u)}return u})}const Hc=_.createContext(void 0),eN=_.createContext(void 0);function zn(n){const s=_.useContext(n.from?eN:Hc);return $t({select:i=>{const u=i.matches.find(f=>n.from?n.from===f.routeId:f.id===s);if(ua(!((n.shouldThrow??!0)&&!u),`Could not find ${n.from?`an active match from "${n.from}"`:"a nearest match!"}`),u!==void 0)return n.select?n.select(u):u},structuralSharing:n.structuralSharing})}function jh(n){return zn({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.loaderData):s.loaderData})}function Nh(n){const{select:s,...l}=n;return zn({...l,select:i=>s?s(i.loaderDeps):i.loaderDeps})}function Pc(n){return zn({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:s=>{const l=n.strict===!1?s.params:s._strictParams;return n.select?n.select(l):l}})}function _h(n){return zn({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.search):s.search})}function Di(n){const s=pn();return _.useCallback(l=>s.navigate({...l,from:l.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,s])}var wh=jv();const tN=xv(wh);function nN(n,s){const l=pn(),i=Qj(s),{activeProps:u,inactiveProps:f,activeOptions:h,to:m,preload:p,preloadDelay:g,hashScrollIntoView:v,replace:b,startTransition:x,resetScroll:j,viewTransition:w,children:N,target:E,disabled:C,style:D,className:P,onClick:O,onFocus:F,onMouseEnter:W,onMouseLeave:H,onTouchStart:q,ignoreBlocker:X,params:Q,search:$,hash:ne,state:fe,mask:he,reloadDocument:ie,unsafeRelative:k,from:V,_fromLocation:K,...me}=n,ye=Jv(),M=$t({select:Ge=>Ge.location.search,structuralSharing:!0}),J=n.from,ee=_.useMemo(()=>({...n,from:J}),[l,M,J,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),te=_.useMemo(()=>l.buildLocation({...ee}),[l,ee]),ge=te.maskedLocation?te.maskedLocation.publicHref:te.publicHref,ve=te.maskedLocation?te.maskedLocation.external:te.external,ce=_.useMemo(()=>oN(ge,ve,l.history,C),[C,ve,ge,l.history]),Ie=_.useMemo(()=>{if(ce!=null&&ce.external)return Tc(ce.href)?void 0:ce.href;if(!cN(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),Tc(m)?void 0:m}catch{}},[m,ce]),Le=$t({select:Ge=>{if(Ie)return!1;if(h!=null&&h.exact){if(!oj(Ge.location.pathname,te.pathname,l.basepath))return!1}else{const mt=Ac(Ge.location.pathname,l.basepath),xt=Ac(te.pathname,l.basepath);if(!(mt.startsWith(xt)&&(mt.length===xt.length||mt[xt.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!Us(Ge.location.search,te.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?ye&&Ge.location.hash===te.hash:!0}}),Nt=Le?es(u,{})??aN:Cf,Ht=Le?Cf:es(f,{})??Cf,gn=[P,Nt.className,Ht.className].filter(Boolean).join(" "),ur=(D||Nt.style||Ht.style)&&{...D,...Nt.style,...Ht.style},[Dn,Ys]=_.useState(!1),Ks=_.useRef(!1),pa=n.reloadDocument||Ie?!1:p??l.options.defaultPreload,Fs=g??l.options.defaultPreloadDelay??0,yn=_.useCallback(()=>{l.preloadRoute({...ee}).catch(Ge=>{console.warn(Ge),console.warn(Hj)})},[l,ee]),dr=_.useCallback(Ge=>{Ge!=null&&Ge.isIntersecting&&yn()},[yn]);Vj(i,dr,iN,{disabled:!!C||pa!=="viewport"}),_.useEffect(()=>{Ks.current||!C&&pa==="render"&&(yn(),Ks.current=!0)},[C,yn,pa]);const fr=Ge=>{const mt=Ge.currentTarget.getAttribute("target"),xt=E!==void 0?E:mt;if(!C&&!uN(Ge)&&!Ge.defaultPrevented&&(!xt||xt==="_self")&&Ge.button===0){Ge.preventDefault(),wh.flushSync(()=>{Ys(!0)});const Bi=l.subscribe("onResolved",()=>{Bi(),Ys(!1)});l.navigate({...ee,replace:b,resetScroll:j,hashScrollIntoView:v,startTransition:x,viewTransition:w,ignoreBlocker:X})}};if(Ie)return{...me,ref:i,href:Ie,...N&&{children:N},...E&&{target:E},...C&&{disabled:C},...D&&{style:D},...P&&{className:P},...O&&{onClick:O},...F&&{onFocus:F},...W&&{onMouseEnter:W},...H&&{onMouseLeave:H},...q&&{onTouchStart:q}};const Ui=Ge=>{C||pa&&yn()},Kc=Ui,_t=Ge=>{if(!(C||!pa))if(!Fs)yn();else{const mt=Ge.target;if(ui.has(mt))return;const xt=setTimeout(()=>{ui.delete(mt),yn()},Fs);ui.set(mt,xt)}},Fc=Ge=>{if(C||!pa||!Fs)return;const mt=Ge.target,xt=ui.get(mt);xt&&(clearTimeout(xt),ui.delete(mt))};return{...me,...Nt,...Ht,href:ce==null?void 0:ce.href,ref:i,onClick:di([O,fr]),onFocus:di([F,Ui]),onMouseEnter:di([W,_t]),onMouseLeave:di([H,Fc]),onTouchStart:di([q,Kc]),disabled:!!C,target:E,...ur&&{style:ur},...gn&&{className:gn},...C&&sN,...Le&&lN,...ye&&Dn&&rN}}const Cf={},aN={className:"active"},sN={role:"link","aria-disabled":!0},lN={"data-status":"active","aria-current":"page"},rN={"data-transitioning":"transitioning"},ui=new WeakMap,iN={rootMargin:"100px"},di=n=>s=>{for(const l of n)if(l){if(s.defaultPrevented)return;l(s)}};function oN(n,s,l,i){if(!i)return s?{href:n,external:!0}:{href:l.createHref(n)||"/",external:!1}}function cN(n){if(typeof n!="string")return!1;const s=n.charCodeAt(0);return s===47?n.charCodeAt(1)!==47:s===46}const lr=_.forwardRef((n,s)=>{const{_asChild:l,...i}=n,{type:u,...f}=nN(i,s),h=typeof i.children=="function"?i.children({isActive:f["data-status"]==="active"}):i.children;if(!l){const{disabled:m,...p}=f;return _.createElement("a",p,h)}return _.createElement(l,f,h)});function uN(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}class dN extends Zv{constructor(s){super(s),this.useMatch=l=>zn({select:l==null?void 0:l.select,from:this.id,structuralSharing:l==null?void 0:l.structuralSharing}),this.useRouteContext=l=>zn({...l,from:this.id,select:i=>l!=null&&l.select?l.select(i.context):i.context}),this.useSearch=l=>_h({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useParams=l=>Pc({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useLoaderDeps=l=>Nh({...l,from:this.id}),this.useLoaderData=l=>jh({...l,from:this.id}),this.useNavigate=()=>Di({from:this.fullPath}),this.Link=nr.forwardRef((l,i)=>c.jsx(lr,{ref:i,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}}function ha(n){return new dN(n)}class fN extends Pj{constructor(s){super(s),this.useMatch=l=>zn({select:l==null?void 0:l.select,from:this.id,structuralSharing:l==null?void 0:l.structuralSharing}),this.useRouteContext=l=>zn({...l,from:this.id,select:i=>l!=null&&l.select?l.select(i.context):i.context}),this.useSearch=l=>_h({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useParams=l=>Pc({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useLoaderDeps=l=>Nh({...l,from:this.id}),this.useLoaderData=l=>jh({...l,from:this.id}),this.useNavigate=()=>Di({from:this.fullPath}),this.Link=nr.forwardRef((l,i)=>c.jsx(lr,{ref:i,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}}function hN(n){return new fN(n)}function jb(n){return typeof n=="object"?new Nb(n,{silent:!0}).createRoute(n):new Nb(n,{silent:!0}).createRoute}class Nb{constructor(s,l){this.path=s,this.createRoute=i=>{this.silent;const u=ha(i);return u.isRoot=!1,u},this.silent=l==null?void 0:l.silent}}class _b{constructor(s){this.useMatch=l=>zn({select:l==null?void 0:l.select,from:this.options.id,structuralSharing:l==null?void 0:l.structuralSharing}),this.useRouteContext=l=>zn({from:this.options.id,select:i=>l!=null&&l.select?l.select(i.context):i.context}),this.useSearch=l=>_h({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.options.id}),this.useParams=l=>Pc({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.options.id}),this.useLoaderDeps=l=>Nh({...l,from:this.options.id}),this.useLoaderData=l=>jh({...l,from:this.options.id}),this.useNavigate=()=>{const l=pn();return Di({from:l.routesById[this.options.id].fullPath})},this.options=s,this.$$typeof=Symbol.for("react.memo")}}function wb(n){return typeof n=="object"?new _b(n):s=>new _b({id:n,...s})}function mN(){const n=pn(),s=_.useRef({router:n,mounted:!1}),[l,i]=_.useState(!1),{hasPendingMatches:u,isLoading:f}=$t({select:b=>({isLoading:b.isLoading,hasPendingMatches:b.matches.some(x=>x.status==="pending")}),structuralSharing:!0}),h=Sf(f),m=f||l||u,p=Sf(m),g=f||u,v=Sf(g);return n.startTransition=b=>{i(!0),_.startTransition(()=>{b(),i(!1)})},_.useEffect(()=>{const b=n.history.subscribe(n.load),x=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ia(n.latestLocation.publicHref)!==ia(x.publicHref)&&n.commitLocation({...x,replace:!0}),()=>{b()}},[n,n.history]),rc(()=>{if(typeof window<"u"&&n.ssr||s.current.router===n&&s.current.mounted)return;s.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(x){console.error(x)}})()},[n]),rc(()=>{h&&!f&&n.emit({type:"onLoad",...Bs(n.state)})},[h,n,f]),rc(()=>{v&&!g&&n.emit({type:"onBeforeRouteMount",...Bs(n.state)})},[g,v,n]),rc(()=>{if(p&&!m){const b=Bs(n.state);n.emit({type:"onResolved",...b}),n.__store.setState(x=>({...x,status:"idle",resolvedLocation:x.location})),b.hrefChanged&&bj(n)}},[m,p,n]),null}function pN(n){const s=$t({select:l=>`not-found-${l.location.pathname}-${l.status}`});return c.jsx(xh,{getResetKey:()=>s,onCatch:(l,i)=>{var u;if(It(l))(u=n.onCatch)==null||u.call(n,l,i);else throw l},errorComponent:({error:l})=>{var i;if(It(l))return(i=n.fallback)==null?void 0:i.call(n,l);throw l},children:n.children})}function gN(){return c.jsx("p",{children:"Not Found"})}function Ll(n){return c.jsx(c.Fragment,{children:n.children})}function $v(n,s,l){return s.options.notFoundComponent?c.jsx(s.options.notFoundComponent,{...l}):n.options.defaultNotFoundComponent?c.jsx(n.options.defaultNotFoundComponent,{...l}):c.jsx(gN,{})}function yN(){return pn().isScrollRestoring,null}const Wv=_.memo(function({matchId:s}){var N,E;const l=pn(),i=$t({select:C=>{var O;const D=C.matches.findIndex(F=>F.id===s),P=C.matches[D];return ua(P),{routeId:P.routeId,ssr:P.ssr,_displayPending:P._displayPending,resetKey:C.loadedAt,parentRouteId:(O=C.matches[D-1])==null?void 0:O.routeId}},structuralSharing:!0}),u=l.routesById[i.routeId],f=u.options.pendingComponent??l.options.defaultPendingComponent,h=f?c.jsx(f,{}):null,m=u.options.errorComponent??l.options.defaultErrorComponent,p=u.options.onCatch??l.options.defaultOnCatch,g=u.isRoot?u.options.notFoundComponent??((N=l.options.notFoundRoute)==null?void 0:N.options.component):u.options.notFoundComponent,v=i.ssr===!1||i.ssr==="data-only",b=(!u.isRoot||u.options.wrapInSuspense||v)&&(u.options.wrapInSuspense??f??(((E=u.options.errorComponent)==null?void 0:E.preload)||v))?_.Suspense:Ll,x=m?xh:Ll,j=g?pN:Ll,w=u.isRoot?u.options.shellComponent??Ll:Ll;return c.jsxs(w,{children:[c.jsx(Hc.Provider,{value:s,children:c.jsx(b,{fallback:h,children:c.jsx(x,{getResetKey:()=>i.resetKey,errorComponent:m||Sh,onCatch:(C,D)=>{if(It(C))throw C;p==null||p(C,D)},children:c.jsx(j,{fallback:C=>{if(!g||C.routeId&&C.routeId!==i.routeId||!C.routeId&&!u.isRoot)throw C;return _.createElement(g,C)},children:v||i._displayPending?c.jsx(Yj,{fallback:h,children:c.jsx(Eb,{matchId:s})}):c.jsx(Eb,{matchId:s})})})})}),i.parentRouteId===fn&&l.options.scrollRestoration?c.jsxs(c.Fragment,{children:[c.jsx(bN,{}),c.jsx(yN,{})]}):null]})});function bN(){const n=pn(),s=_.useRef(void 0);return c.jsx("script",{suppressHydrationWarning:!0,ref:l=>{l&&(s.current===void 0||s.current.href!==n.latestLocation.href)&&(n.emit({type:"onRendered",...Bs(n.state)}),s.current=n.latestLocation)}},n.latestLocation.state.__TSR_key)}const Eb=_.memo(function({matchId:s}){var p,g,v,b;const l=pn(),{match:i,key:u,routeId:f}=$t({select:x=>{const j=x.matches.find(D=>D.id===s),w=j.routeId,N=l.routesById[w].options.remountDeps??l.options.defaultRemountDeps,E=N==null?void 0:N({routeId:w,loaderDeps:j.loaderDeps,params:j._strictParams,search:j._strictSearch});return{key:E?JSON.stringify(E):void 0,routeId:w,match:{id:j.id,status:j.status,error:j.error,invalid:j.invalid,_forcePending:j._forcePending,_displayPending:j._displayPending}}},structuralSharing:!0}),h=l.routesById[f],m=_.useMemo(()=>{const x=h.options.component??l.options.defaultComponent;return x?c.jsx(x,{},u):c.jsx(ex,{})},[u,h.options.component,l.options.defaultComponent]);if(i._displayPending)throw(p=l.getMatch(i.id))==null?void 0:p._nonReactive.displayPendingPromise;if(i._forcePending)throw(g=l.getMatch(i.id))==null?void 0:g._nonReactive.minPendingPromise;if(i.status==="pending"){const x=h.options.pendingMinMs??l.options.defaultPendingMinMs;if(x){const j=l.getMatch(i.id);if(j&&!j._nonReactive.minPendingPromise){const w=ar();j._nonReactive.minPendingPromise=w,setTimeout(()=>{w.resolve(),j._nonReactive.minPendingPromise=void 0},x)}}throw(v=l.getMatch(i.id))==null?void 0:v._nonReactive.loadPromise}if(i.status==="notFound")return ua(It(i.error)),$v(l,h,i.error);if(i.status==="redirected")throw ua(mn(i.error)),(b=l.getMatch(i.id))==null?void 0:b._nonReactive.loadPromise;if(i.status==="error")throw i.error;return m}),ex=_.memo(function(){const s=pn(),l=_.useContext(Hc),i=$t({select:g=>{var v;return(v=g.matches.find(b=>b.id===l))==null?void 0:v.routeId}}),u=s.routesById[i],f=$t({select:g=>{const b=g.matches.find(x=>x.id===l);return ua(b),b.globalNotFound}}),h=$t({select:g=>{var x;const v=g.matches,b=v.findIndex(j=>j.id===l);return(x=v[b+1])==null?void 0:x.id}}),m=s.options.defaultPendingComponent?c.jsx(s.options.defaultPendingComponent,{}):null;if(f)return $v(s,u,void 0);if(!h)return null;const p=c.jsx(Wv,{matchId:h});return i===fn?c.jsx(_.Suspense,{fallback:m,children:p}):p});function vN(){const n=pn(),l=n.routesById[fn].options.pendingComponent??n.options.defaultPendingComponent,i=l?c.jsx(l,{}):null,u=typeof document<"u"&&n.ssr?Ll:_.Suspense,f=c.jsxs(u,{fallback:i,children:[c.jsx(mN,{}),c.jsx(xN,{})]});return n.options.InnerWrap?c.jsx(n.options.InnerWrap,{children:f}):f}function xN(){const n=pn(),s=$t({select:u=>{var f;return(f=u.matches[0])==null?void 0:f.id}}),l=$t({select:u=>u.loadedAt}),i=s?c.jsx(Wv,{matchId:s}):null;return c.jsx(Hc.Provider,{value:s,children:n.options.disableGlobalCatchBoundary?i:c.jsx(xh,{getResetKey:()=>l,errorComponent:Sh,onCatch:u=>{u.message||u.toString()},children:i})})}const SN=n=>new jN(n);class jN extends kj{constructor(s){super(s)}}typeof globalThis<"u"?(globalThis.createFileRoute=jb,globalThis.createLazyFileRoute=wb):typeof window<"u"&&(window.createFileRoute=jb,window.createLazyFileRoute=wb);function NN({router:n,children:s,...l}){Object.keys(l).length>0&&n.update({...n.options,...l,context:{...n.options.context,...l.context}});const i=Iv(),u=c.jsx(i.Provider,{value:n,children:s});return n.options.Wrap?c.jsx(n.options.Wrap,{children:u}):u}function _N({router:n,...s}){return c.jsx(NN,{router:n,...s,children:c.jsx(vN,{})})}/**
|
|
66
|
+
* @license lucide-react v0.513.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const wN=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),EN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,i)=>i?i.toUpperCase():l.toLowerCase()),Cb=n=>{const s=EN(n);return s.charAt(0).toUpperCase()+s.slice(1)},tx=(...n)=>n.filter((s,l,i)=>!!s&&s.trim()!==""&&i.indexOf(s)===l).join(" ").trim(),CN=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/**
|
|
71
|
+
* @license lucide-react v0.513.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/var RN={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"};/**
|
|
76
|
+
* @license lucide-react v0.513.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const TN=_.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:u="",children:f,iconNode:h,...m},p)=>_.createElement("svg",{ref:p,...RN,width:s,height:s,stroke:n,strokeWidth:i?Number(l)*24/Number(s):l,className:tx("lucide",u),...!f&&!CN(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,v])=>_.createElement(g,v)),...Array.isArray(f)?f:[f]]));/**
|
|
81
|
+
* @license lucide-react v0.513.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const Se=(n,s)=>{const l=_.forwardRef(({className:i,...u},f)=>_.createElement(TN,{ref:f,iconNode:s,className:tx(`lucide-${wN(Cb(n))}`,`lucide-${n}`,i),...u}));return l.displayName=Cb(n),l};/**
|
|
86
|
+
* @license lucide-react v0.513.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const MN=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],nx=Se("activity",MN);/**
|
|
91
|
+
* @license lucide-react v0.513.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const AN=[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]],ON=Se("arrow-down-left",AN);/**
|
|
96
|
+
* @license lucide-react v0.513.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const kN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Rb=Se("arrow-left",kN);/**
|
|
101
|
+
* @license lucide-react v0.513.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const zN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ax=Se("arrow-right",zN);/**
|
|
106
|
+
* @license lucide-react v0.513.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const DN=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],LN=Se("arrow-up-right",DN);/**
|
|
111
|
+
* @license lucide-react v0.513.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const UN=[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]],BN=Se("blocks",UN);/**
|
|
116
|
+
* @license lucide-react v0.513.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const qN=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],sx=Se("book-text",qN);/**
|
|
121
|
+
* @license lucide-react v0.513.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const HN=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],PN=Se("chart-column",HN);/**
|
|
126
|
+
* @license lucide-react v0.513.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const VN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vl=Se("check",VN);/**
|
|
131
|
+
* @license lucide-react v0.513.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const QN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],lx=Se("chevron-left",QN);/**
|
|
136
|
+
* @license lucide-react v0.513.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const GN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rx=Se("chevron-right",GN);/**
|
|
141
|
+
* @license lucide-react v0.513.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const YN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],KN=Se("circle-user",YN);/**
|
|
146
|
+
* @license lucide-react v0.513.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const FN=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],XN=Se("cloud",FN);/**
|
|
151
|
+
* @license lucide-react v0.513.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const ZN=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],JN=Se("cpu",ZN);/**
|
|
156
|
+
* @license lucide-react v0.513.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const IN=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],$N=Se("credit-card",IN);/**
|
|
161
|
+
* @license lucide-react v0.513.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const WN=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],wi=Se("database",WN);/**
|
|
166
|
+
* @license lucide-react v0.513.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const e_=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],t_=Se("ellipsis-vertical",e_);/**
|
|
171
|
+
* @license lucide-react v0.513.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const n_=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ix=Se("eye-off",n_);/**
|
|
176
|
+
* @license lucide-react v0.513.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const a_=[["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"}]],Eh=Se("eye",a_);/**
|
|
181
|
+
* @license lucide-react v0.513.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const s_=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],l_=Se("file-code",s_);/**
|
|
186
|
+
* @license lucide-react v0.513.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const r_=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],i_=Se("files",r_);/**
|
|
191
|
+
* @license lucide-react v0.513.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const o_=[["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],Ch=Se("folder-git-2",o_);/**
|
|
196
|
+
* @license lucide-react v0.513.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const c_=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],u_=Se("folder-plus",c_);/**
|
|
201
|
+
* @license lucide-react v0.513.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const d_=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],f_=Se("funnel",d_);/**
|
|
206
|
+
* @license lucide-react v0.513.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const h_=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],m_=Se("git-commit-horizontal",h_);/**
|
|
211
|
+
* @license lucide-react v0.513.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const p_=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],g_=Se("hash",p_);/**
|
|
216
|
+
* @license lucide-react v0.513.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const y_=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],ox=Se("layout-dashboard",y_);/**
|
|
221
|
+
* @license lucide-react v0.513.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const b_=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],v_=Se("log-out",b_);/**
|
|
226
|
+
* @license lucide-react v0.513.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const x_=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],S_=Se("mail",x_);/**
|
|
231
|
+
* @license lucide-react v0.513.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const j_=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],N_=Se("monitor",j_);/**
|
|
236
|
+
* @license lucide-react v0.513.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const __=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Tb=Se("moon",__);/**
|
|
241
|
+
* @license lucide-react v0.513.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const w_=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],cx=Se("network",w_);/**
|
|
246
|
+
* @license lucide-react v0.513.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const E_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],C_=Se("panel-left",E_);/**
|
|
251
|
+
* @license lucide-react v0.513.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const R_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],T_=Se("plus",R_);/**
|
|
256
|
+
* @license lucide-react v0.513.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const M_=[["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"}]],ux=Se("refresh-cw",M_);/**
|
|
261
|
+
* @license lucide-react v0.513.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const A_=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nh=Se("search",A_);/**
|
|
266
|
+
* @license lucide-react v0.513.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const O_=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ah=Se("send",O_);/**
|
|
271
|
+
* @license lucide-react v0.513.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const k_=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],z_=Se("shapes",k_);/**
|
|
276
|
+
* @license lucide-react v0.513.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const D_=[["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"}]],Ei=Se("sparkles",D_);/**
|
|
281
|
+
* @license lucide-react v0.513.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const L_=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Mb=Se("sun",L_);/**
|
|
286
|
+
* @license lucide-react v0.513.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const U_=[["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"}]],B_=Se("trash-2",U_);/**
|
|
291
|
+
* @license lucide-react v0.513.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const q_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],H_=Se("x",q_);function dx(n){var s,l,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(s=0;s<u;s++)n[s]&&(l=dx(n[s]))&&(i&&(i+=" "),i+=l)}else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function fx(){for(var n,s,l=0,i="",u=arguments.length;l<u;l++)(n=arguments[l])&&(s=dx(n))&&(i&&(i+=" "),i+=s);return i}const P_=(n,s)=>{const l=new Array(n.length+s.length);for(let i=0;i<n.length;i++)l[i]=n[i];for(let i=0;i<s.length;i++)l[n.length+i]=s[i];return l},V_=(n,s)=>({classGroupId:n,validator:s}),hx=(n=new Map,s=null,l)=>({nextPart:n,validators:s,classGroupId:l}),zc="-",Ab=[],Q_="arbitrary..",G_=n=>{const s=K_(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return Y_(h);const m=h.split(zc),p=m[0]===""&&m.length>1?1:0;return mx(m,p,s)},getConflictingClassGroupIds:(h,m)=>{if(m){const p=i[h],g=l[h];return p?g?P_(g,p):p:g||Ab}return l[h]||Ab}}},mx=(n,s,l)=>{if(n.length-s===0)return l.classGroupId;const u=n[s],f=l.nextPart.get(u);if(f){const g=mx(n,s+1,f);if(g)return g}const h=l.validators;if(h===null)return;const m=s===0?n.join(zc):n.slice(s).join(zc),p=h.length;for(let g=0;g<p;g++){const v=h[g];if(v.validator(m))return v.classGroupId}},Y_=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=n.slice(1,-1),l=s.indexOf(":"),i=s.slice(0,l);return i?Q_+i:void 0})(),K_=n=>{const{theme:s,classGroups:l}=n;return F_(l,s)},F_=(n,s)=>{const l=hx();for(const i in n){const u=n[i];Rh(u,l,i,s)}return l},Rh=(n,s,l,i)=>{const u=n.length;for(let f=0;f<u;f++){const h=n[f];X_(h,s,l,i)}},X_=(n,s,l,i)=>{if(typeof n=="string"){Z_(n,s,l);return}if(typeof n=="function"){J_(n,s,l,i);return}I_(n,s,l,i)},Z_=(n,s,l)=>{const i=n===""?s:px(s,n);i.classGroupId=l},J_=(n,s,l,i)=>{if($_(n)){Rh(n(i),s,l,i);return}s.validators===null&&(s.validators=[]),s.validators.push(V_(l,n))},I_=(n,s,l,i)=>{const u=Object.entries(n),f=u.length;for(let h=0;h<f;h++){const[m,p]=u[h];Rh(p,px(s,m),l,i)}},px=(n,s)=>{let l=n;const i=s.split(zc),u=i.length;for(let f=0;f<u;f++){const h=i[f];let m=l.nextPart.get(h);m||(m=hx(),l.nextPart.set(h,m)),l=m}return l},$_=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,W_=n=>{if(n<1)return{get:()=>{},set:()=>{}};let s=0,l=Object.create(null),i=Object.create(null);const u=(f,h)=>{l[f]=h,s++,s>n&&(s=0,i=l,l=Object.create(null))};return{get(f){let h=l[f];if(h!==void 0)return h;if((h=i[f])!==void 0)return u(f,h),h},set(f,h){f in l?l[f]=h:u(f,h)}}},sh="!",Ob=":",ew=[],kb=(n,s,l,i,u)=>({modifiers:n,hasImportantModifier:s,baseClassName:l,maybePostfixModifierPosition:i,isExternal:u}),tw=n=>{const{prefix:s,experimentalParseClassName:l}=n;let i=u=>{const f=[];let h=0,m=0,p=0,g;const v=u.length;for(let N=0;N<v;N++){const E=u[N];if(h===0&&m===0){if(E===Ob){f.push(u.slice(p,N)),p=N+1;continue}if(E==="/"){g=N;continue}}E==="["?h++:E==="]"?h--:E==="("?m++:E===")"&&m--}const b=f.length===0?u:u.slice(p);let x=b,j=!1;b.endsWith(sh)?(x=b.slice(0,-1),j=!0):b.startsWith(sh)&&(x=b.slice(1),j=!0);const w=g&&g>p?g-p:void 0;return kb(f,j,x,w)};if(s){const u=s+Ob,f=i;i=h=>h.startsWith(u)?f(h.slice(u.length)):kb(ew,!1,h,void 0,!0)}if(l){const u=i;i=f=>l({className:f,parseClassName:u})}return i},nw=n=>{const s=new Map;return n.orderSensitiveModifiers.forEach((l,i)=>{s.set(l,1e6+i)}),l=>{const i=[];let u=[];for(let f=0;f<l.length;f++){const h=l[f],m=h[0]==="[",p=s.has(h);m||p?(u.length>0&&(u.sort(),i.push(...u),u=[]),i.push(h)):u.push(h)}return u.length>0&&(u.sort(),i.push(...u)),i}},aw=n=>({cache:W_(n.cacheSize),parseClassName:tw(n),sortModifiers:nw(n),...G_(n)}),sw=/\s+/,lw=(n,s)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:f}=s,h=[],m=n.trim().split(sw);let p="";for(let g=m.length-1;g>=0;g-=1){const v=m[g],{isExternal:b,modifiers:x,hasImportantModifier:j,baseClassName:w,maybePostfixModifierPosition:N}=l(v);if(b){p=v+(p.length>0?" "+p:p);continue}let E=!!N,C=i(E?w.substring(0,N):w);if(!C){if(!E){p=v+(p.length>0?" "+p:p);continue}if(C=i(w),!C){p=v+(p.length>0?" "+p:p);continue}E=!1}const D=x.length===0?"":x.length===1?x[0]:f(x).join(":"),P=j?D+sh:D,O=P+C;if(h.indexOf(O)>-1)continue;h.push(O);const F=u(C,E);for(let W=0;W<F.length;++W){const H=F[W];h.push(P+H)}p=v+(p.length>0?" "+p:p)}return p},rw=(...n)=>{let s=0,l,i,u="";for(;s<n.length;)(l=n[s++])&&(i=gx(l))&&(u&&(u+=" "),u+=i);return u},gx=n=>{if(typeof n=="string")return n;let s,l="";for(let i=0;i<n.length;i++)n[i]&&(s=gx(n[i]))&&(l&&(l+=" "),l+=s);return l},iw=(n,...s)=>{let l,i,u,f;const h=p=>{const g=s.reduce((v,b)=>b(v),n());return l=aw(g),i=l.cache.get,u=l.cache.set,f=m,m(p)},m=p=>{const g=i(p);if(g)return g;const v=lw(p,l);return u(p,v),v};return f=h,(...p)=>f(rw(...p))},ow=[],ct=n=>{const s=l=>l[n]||ow;return s.isThemeGetter=!0,s},yx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cw=/^\d+\/\d+$/,uw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dw=/\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$/,fw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ol=n=>cw.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Pa=n=>!!n&&Number.isInteger(Number(n)),Rf=n=>n.endsWith("%")&&_e(n.slice(0,-1)),ea=n=>uw.test(n),pw=()=>!0,gw=n=>dw.test(n)&&!fw.test(n),vx=()=>!1,yw=n=>hw.test(n),bw=n=>mw.test(n),vw=n=>!le(n)&&!re(n),xw=n=>or(n,jx,vx),le=n=>yx.test(n),Ns=n=>or(n,Nx,gw),Tf=n=>or(n,ww,_e),zb=n=>or(n,xx,vx),Sw=n=>or(n,Sx,bw),ic=n=>or(n,_x,yw),re=n=>bx.test(n),fi=n=>cr(n,Nx),jw=n=>cr(n,Ew),Db=n=>cr(n,xx),Nw=n=>cr(n,jx),_w=n=>cr(n,Sx),oc=n=>cr(n,_x,!0),or=(n,s,l)=>{const i=yx.exec(n);return i?i[1]?s(i[1]):l(i[2]):!1},cr=(n,s,l=!1)=>{const i=bx.exec(n);return i?i[1]?s(i[1]):l:!1},xx=n=>n==="position"||n==="percentage",Sx=n=>n==="image"||n==="url",jx=n=>n==="length"||n==="size"||n==="bg-size",Nx=n=>n==="length",ww=n=>n==="number",Ew=n=>n==="family-name",_x=n=>n==="shadow",Cw=()=>{const n=ct("color"),s=ct("font"),l=ct("text"),i=ct("font-weight"),u=ct("tracking"),f=ct("leading"),h=ct("breakpoint"),m=ct("container"),p=ct("spacing"),g=ct("radius"),v=ct("shadow"),b=ct("inset-shadow"),x=ct("text-shadow"),j=ct("drop-shadow"),w=ct("blur"),N=ct("perspective"),E=ct("aspect"),C=ct("ease"),D=ct("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...O(),re,le],W=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],q=()=>[re,le,p],X=()=>[Ol,"full","auto",...q()],Q=()=>[Pa,"none","subgrid",re,le],$=()=>["auto",{span:["full",Pa,re,le]},Pa,re,le],ne=()=>[Pa,"auto",re,le],fe=()=>["auto","min","max","fr",re,le],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...q()],V=()=>[Ol,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],K=()=>[n,re,le],me=()=>[...O(),Db,zb,{position:[re,le]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",Nw,xw,{size:[re,le]}],J=()=>[Rf,fi,Ns],ee=()=>["","none","full",g,re,le],te=()=>["",_e,fi,Ns],ge=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[_e,Rf,Db,zb],Ie=()=>["","none",w,re,le],Le=()=>["none",_e,re,le],Nt=()=>["none",_e,re,le],Ht=()=>[_e,re,le],gn=()=>[Ol,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ea],breakpoint:[ea],color:[pw],container:[ea],"drop-shadow":[ea],ease:["in","out","in-out"],font:[vw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ea],shadow:[ea],spacing:["px",_e],text:[ea],"text-shadow":[ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ol,le,re,E]}],container:["container"],columns:[{columns:[_e,le,re,m]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:F()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{start:X()}],end:[{end:X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[Pa,"auto",re,le]}],basis:[{basis:[Ol,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Ol,"auto","initial","none",le]}],grow:[{grow:["",_e,re,le]}],shrink:[{shrink:["",_e,re,le]}],order:[{order:[Pa,"first","last","none",re,le]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[m,"screen",...V()]}],"min-w":[{"min-w":[m,"screen","none",...V()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",l,fi,Ns]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,re,Tf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rf,le]}],"font-family":[{font:[jw,le,s]}],"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:[u,re,le]}],"line-clamp":[{"line-clamp":[_e,"none",re,Tf]}],leading:[{leading:[f,...q()]}],"list-image":[{"list-image":["none",re,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",re,Ns]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[_e,"auto",re,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,le]}],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",re,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pa,re,le],radial:["",re,le],conic:[Pa,re,le]},_w,Sw]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,re,le]}],"outline-w":[{outline:["",_e,fi,Ns]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",v,oc,ic]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",b,oc,ic]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[_e,Ns]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",x,oc,ic]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[_e,re,le]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[re,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,le]}],filter:[{filter:["","none",re,le]}],blur:[{blur:Ie()}],brightness:[{brightness:[_e,re,le]}],contrast:[{contrast:[_e,re,le]}],"drop-shadow":[{"drop-shadow":["","none",j,oc,ic]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",_e,re,le]}],"hue-rotate":[{"hue-rotate":[_e,re,le]}],invert:[{invert:["",_e,re,le]}],saturate:[{saturate:[_e,re,le]}],sepia:[{sepia:["",_e,re,le]}],"backdrop-filter":[{"backdrop-filter":["","none",re,le]}],"backdrop-blur":[{"backdrop-blur":Ie()}],"backdrop-brightness":[{"backdrop-brightness":[_e,re,le]}],"backdrop-contrast":[{"backdrop-contrast":[_e,re,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,re,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,re,le]}],"backdrop-invert":[{"backdrop-invert":["",_e,re,le]}],"backdrop-opacity":[{"backdrop-opacity":[_e,re,le]}],"backdrop-saturate":[{"backdrop-saturate":[_e,re,le]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,re,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",re,le]}],ease:[{ease:["linear","initial",C,re,le]}],delay:[{delay:[_e,re,le]}],animate:[{animate:["none",D,re,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,re,le]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:Nt()}],"scale-x":[{"scale-x":Nt()}],"scale-y":[{"scale-y":Nt()}],"scale-z":[{"scale-z":Nt()}],"scale-3d":["scale-3d"],skew:[{skew:Ht()}],"skew-x":[{"skew-x":Ht()}],"skew-y":[{"skew-y":Ht()}],transform:[{transform:[re,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:gn()}],"translate-x":[{"translate-x":gn()}],"translate-y":[{"translate-y":gn()}],"translate-z":[{"translate-z":gn()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",re,le]}],"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":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",re,le]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[_e,fi,Ns,Tf]}],stroke:[{stroke:["none",...K()]}],"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"]}},Rw=iw(Cw);function ze(...n){return Rw(fx(n))}function Tw({healthy:n,title:s="LENS",subtitle:l="Workspace"}){return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:ze("flex size-8! shrink-0 items-center justify-center rounded-lg text-xs font-semibold text-primary-foreground",n===!1?"bg-destructive":"bg-primary"),children:"L"}),c.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[c.jsx("span",{className:"truncate font-semibold",children:s}),c.jsx("span",{className:"truncate text-xs text-muted-foreground",children:l})]})]})}const Lb=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Ub=fx,Th=(n,s)=>l=>{var i;if((s==null?void 0:s.variants)==null)return Ub(n,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:u,defaultVariants:f}=s,h=Object.keys(u).map(g=>{const v=l==null?void 0:l[g],b=f==null?void 0:f[g];if(v===null)return null;const x=Lb(v)||Lb(b);return u[g][x]}),m=l&&Object.entries(l).reduce((g,v)=>{let[b,x]=v;return x===void 0||(g[b]=x),g},{}),p=s==null||(i=s.compoundVariants)===null||i===void 0?void 0:i.reduce((g,v)=>{let{class:b,className:x,...j}=v;return Object.entries(j).every(w=>{let[N,E]=w;return Array.isArray(E)?E.includes({...f,...m}[N]):{...f,...m}[N]===E})?[...g,b,x]:g},[]);return Ub(n,h,p,l==null?void 0:l.class,l==null?void 0:l.className)},Mw=Th("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]",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Je({className:n,variant:s="default",size:l="default",...i}){return c.jsx("button",{"data-slot":"button","data-variant":s,"data-size":l,className:ze(Mw({variant:s,size:l,className:n})),...i})}function Ct({className:n,orientation:s="horizontal",...l}){return c.jsx("div",{"data-slot":"separator","data-orientation":s,role:"separator",className:ze("bg-border shrink-0",s==="horizontal"?"h-px w-full":"h-full w-px",n),...l})}const Aw="16rem",Ow="3rem",kw="b",wx=_.createContext(null);function Ex(){const n=_.useContext(wx);if(!n)throw new Error("useSidebar must be used within SidebarProvider.");return n}function zw({defaultOpen:n=!0,className:s,style:l,children:i,...u}){const[f,h]=_.useState(n),m=_.useCallback(()=>h(v=>!v),[]);_.useEffect(()=>{const v=b=>{b.key===kw&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),m())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[m]);const p=f?"expanded":"collapsed",g=_.useMemo(()=>({state:p,open:f,setOpen:h,toggleSidebar:m}),[p,f,m]);return c.jsx(wx.Provider,{value:g,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Aw,"--sidebar-width-icon":Ow,...l},className:ze("group/sidebar-wrapper flex min-h-svh w-full",s),...u,children:i})})}function Dw({side:n="left",collapsible:s="icon",variant:l="default",className:i,children:u,...f}){const{state:h}=Ex();return s==="none"?c.jsx("div",{"data-slot":"sidebar",className:ze("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),...f,children:u}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":h,"data-collapsible":h==="collapsed"?s:"","data-side":n,"data-variant":l,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:ze("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:ze("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",n==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",l==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)",i),...f,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-transparent flex h-full w-full flex-col py-2",children:u})})]})}function Lw({className:n,onClick:s,...l}){const{toggleSidebar:i}=Ex();return c.jsxs(Je,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:ze("size-7",n),onClick:u=>{s==null||s(u),i()},...l,children:[c.jsx(C_,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Uw({className:n,...s}){return c.jsx("main",{"data-slot":"sidebar-inset",className:ze("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",n),...s})}function Bw({className:n,...s}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:ze("flex flex-col gap-2 p-2",n),...s})}function qw({className:n,...s}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:ze("flex flex-col gap-2 p-2",n),...s})}function Hw({className:n,...s}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:ze("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),...s})}function cc({className:n,...s}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:ze("relative flex w-full min-w-0 flex-col p-2",n),...s})}function Pw({className:n,...s}){return c.jsx("div",{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:ze("text-sidebar-foreground/70 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",n),...s})}function uc({className:n,...s}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:ze("w-full text-sm",n),...s})}function Ul({className:n,...s}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:ze("flex w-full min-w-0 flex-col gap-1",n),...s})}function Bl({className:n,...s}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:ze("group/menu-item relative",n),...s})}function ql({as:n="button",isActive:s=!1,size:l="default",className:i,children:u,...f}){return c.jsx(n,{...n==="button"?{type:"button"}:{},"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":l,"data-active":s,className:ze("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden transition-[width,height,padding] duration-200 ease-linear","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","disabled:pointer-events-none disabled:opacity-50","data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground","group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2","[&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",l==="sm"&&"h-7 text-xs",l==="default"&&"h-8 text-sm",l==="lg"&&"h-12 text-sm group-data-[collapsible=icon]:!p-0",i),...f,children:u})}function Vw(){const[n,s]=_.useState(()=>{if(typeof window>"u")return!1;const l=localStorage.getItem("theme");return l==="dark"?!0:l==="light"?!1:document.documentElement.classList.contains("dark")});return _.useEffect(()=>{document.documentElement.classList.toggle("dark",n),localStorage.setItem("theme",n?"dark":"light")},[n]),[n,()=>s(l=>!l)]}function Qw({variant:n="sidebar"}){const[s,l]=Vw();return n==="button"?c.jsxs(Je,{variant:"ghost",size:"icon",className:"size-7",onClick:l,children:[s?c.jsx(Mb,{}):c.jsx(Tb,{}),c.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):c.jsxs(ql,{onClick:l,children:[s?c.jsx(Mb,{}):c.jsx(Tb,{}),c.jsx("span",{children:s?"Light mode":"Dark mode"})]})}const Gw=Th("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-white dark:bg-destructive/60",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function oa({className:n,variant:s="default",...l}){return c.jsx("span",{"data-slot":"badge","data-variant":s,className:ze(Gw({variant:s}),n),...l})}function Yw({navItems:n,navGroups:s,primaryAction:l,currentPath:i,renderLink:u,brand:f={title:"LENS",subtitle:"Workspace"},healthy:h,connectionLabel:m,footer:p,...g}){return c.jsxs(Dw,{collapsible:"icon",className:"shadow-none",...g,children:[c.jsx(Bw,{children:c.jsx(Ul,{children:c.jsx(Bl,{children:c.jsx(ql,{size:"lg",className:"hover:bg-transparent",children:c.jsx(Tw,{healthy:h,title:f.title,subtitle:f.subtitle})})})})}),c.jsxs(Hw,{children:[l&&c.jsx(cc,{children:c.jsx(uc,{children:c.jsx(Ul,{children:c.jsxs(Bl,{className:"flex flex-row items-center gap-1.5",children:[c.jsx("div",{className:"flex-1 min-w-0",children:u({href:l.href,children:c.jsxs(ql,{className:"border border-border bg-muted/40 hover:bg-muted h-9 font-medium",children:[c.jsx(l.icon,{}),c.jsx("span",{children:l.label})]})})}),c.jsx("div",{className:"shrink-0 group-data-[collapsible=icon]:hidden",children:u({href:l.href,children:c.jsx("button",{className:"flex size-9 items-center justify-center rounded-md border border-border bg-background hover:bg-muted transition-colors",children:c.jsx(ax,{className:"size-4 text-muted-foreground"})})})})]})})})}),c.jsx(cc,{children:c.jsx(uc,{children:c.jsx(Ul,{children:n.map(({href:v,icon:b,label:x})=>{const j=v==="/"||v==="/dashboard"?i===v:i.startsWith(v);return c.jsx(Bl,{children:u({href:v,children:c.jsxs(ql,{isActive:j,children:[c.jsx(b,{}),c.jsx("span",{children:x})]})})},v)})})})}),s==null?void 0:s.map(v=>c.jsxs(cc,{children:[c.jsx(Pw,{children:v.label}),c.jsx(uc,{children:c.jsx(Ul,{children:v.items.map(({href:b,icon:x,label:j})=>{const w=i.startsWith(b);return c.jsx(Bl,{children:u({href:b,children:c.jsxs(ql,{isActive:w,children:[c.jsx(x,{}),c.jsx("span",{children:j})]})})},b)})})})]},v.label)),c.jsx(cc,{className:"mt-auto group-data-[collapsible=icon]:hidden",children:c.jsx(uc,{children:c.jsx(Ul,{children:c.jsx(Bl,{children:c.jsxs("div",{className:"flex items-center justify-between px-2 py-1",children:[m&&c.jsxs(oa,{variant:"outline",children:[m==="Cloud"?c.jsx(XN,{}):c.jsx(N_,{}),m]}),c.jsx(Qw,{variant:"button"})]})})})})})]}),p&&c.jsx(qw,{children:p})]})}function Kw({user:n,onSignOut:s}){return c.jsx(Ul,{children:c.jsx(Bl,{children:c.jsxs(ql,{as:"div",size:"lg",children:[c.jsx(KN,{className:"!size-8 text-muted-foreground"}),c.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[c.jsx("span",{className:"truncate font-medium",children:n.name}),c.jsx("span",{className:"text-muted-foreground truncate text-xs",children:n.email})]}),s?c.jsx("button",{type:"button",onClick:s,className:"ml-auto rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-sidebar-accent",children:c.jsx(v_,{className:"size-4"})}):c.jsx(t_,{className:"ml-auto"})]})})})}function da({children:n}){return c.jsx("header",{className:"flex h-12 shrink-0 items-center border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/70",children:c.jsxs("div",{className:"flex w-full items-center gap-2 px-3",children:[c.jsx(Lw,{}),c.jsx(Ct,{orientation:"vertical",className:"data-[orientation=vertical]:h-4"}),c.jsx("div",{className:"flex flex-1 items-center gap-2 min-w-0",children:n})]})})}function bi({className:n,...s}){return c.jsx("div",{"data-slot":"card",className:ze("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...s})}function vi({className:n,...s}){return c.jsx("div",{"data-slot":"card-header",className:ze("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...s})}function xi({className:n,...s}){return c.jsx("div",{"data-slot":"card-title",className:ze("leading-none font-semibold",n),...s})}function Si({className:n,...s}){return c.jsx("div",{"data-slot":"card-content",className:ze("px-6",n),...s})}function Bb(n,s){if(typeof n=="function")return n(s);n!=null&&(n.current=s)}function Cx(...n){return s=>{let l=!1;const i=n.map(u=>{const f=Bb(u,s);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let u=0;u<i.length;u++){const f=i[u];typeof f=="function"?f():Bb(n[u],null)}}}}function _n(...n){return _.useCallback(Cx(...n),n)}function Fw(n,s){const l=_.createContext(s),i=f=>{const{children:h,...m}=f,p=_.useMemo(()=>m,Object.values(m));return c.jsx(l.Provider,{value:p,children:h})};i.displayName=n+"Provider";function u(f){const h=_.useContext(l);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[i,u]}function Mh(n,s=[]){let l=[];function i(f,h){const m=_.createContext(h),p=l.length;l=[...l,h];const g=b=>{var C;const{scope:x,children:j,...w}=b,N=((C=x==null?void 0:x[n])==null?void 0:C[p])||m,E=_.useMemo(()=>w,Object.values(w));return c.jsx(N.Provider,{value:E,children:j})};g.displayName=f+"Provider";function v(b,x){var N;const j=((N=x==null?void 0:x[n])==null?void 0:N[p])||m,w=_.useContext(j);if(w)return w;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[g,v]}const u=()=>{const f=l.map(h=>_.createContext(h));return function(m){const p=(m==null?void 0:m[n])||f;return _.useMemo(()=>({[`__scope${n}`]:{...m,[n]:p}}),[m,p])}};return u.scopeName=n,[i,Xw(u,...s)]}function Xw(...n){const s=n[0];if(n.length===1)return s;const l=()=>{const i=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const h=i.reduce((m,{useScope:p,scopeName:g})=>{const b=p(f)[`__scope${g}`];return{...m,...b}},{});return _.useMemo(()=>({[`__scope${s.scopeName}`]:h}),[h])}};return l.scopeName=s.scopeName,l}function Nn(n,s,{checkForDefaultPrevented:l=!0}={}){return function(u){if(n==null||n(u),l===!1||!u.defaultPrevented)return s==null?void 0:s(u)}}var rr=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},Zw=Sv[" useInsertionEffect ".trim().toString()]||rr;function Ah({prop:n,defaultProp:s,onChange:l=()=>{},caller:i}){const[u,f,h]=Jw({defaultProp:s,onChange:l}),m=n!==void 0,p=m?n:u;{const v=_.useRef(n!==void 0);_.useEffect(()=>{const b=v.current;b!==m&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${m?"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.`),v.current=m},[m,i])}const g=_.useCallback(v=>{var b;if(m){const x=Iw(v)?v(n):v;x!==n&&((b=h.current)==null||b.call(h,x))}else f(v)},[m,n,f,h]);return[p,g]}function Jw({defaultProp:n,onChange:s}){const[l,i]=_.useState(n),u=_.useRef(l),f=_.useRef(s);return Zw(()=>{f.current=s},[s]),_.useEffect(()=>{var h;u.current!==l&&((h=f.current)==null||h.call(f,l),u.current=l)},[l,u]),[l,i,f]}function Iw(n){return typeof n=="function"}function Rx(n){const s=_.useRef({value:n,previous:n});return _.useMemo(()=>(s.current.value!==n&&(s.current.previous=s.current.value,s.current.value=n),s.current.previous),[n])}function Tx(n){const[s,l]=_.useState(void 0);return rr(()=>{if(n){l({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let h,m;if("borderBoxSize"in f){const p=f.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;l({width:h,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else l(void 0)},[n]),s}function $w(n,s){return _.useReducer((l,i)=>s[l][i]??l,n)}var Li=n=>{const{present:s,children:l}=n,i=Ww(s),u=typeof l=="function"?l({present:i.isPresent}):_.Children.only(l),f=_n(i.ref,eE(u));return typeof l=="function"||i.isPresent?_.cloneElement(u,{ref:f}):null};Li.displayName="Presence";function Ww(n){const[s,l]=_.useState(),i=_.useRef(null),u=_.useRef(n),f=_.useRef("none"),h=n?"mounted":"unmounted",[m,p]=$w(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const g=dc(i.current);f.current=m==="mounted"?g:"none"},[m]),rr(()=>{const g=i.current,v=u.current;if(v!==n){const x=f.current,j=dc(g);n?p("MOUNT"):j==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(v&&x!==j?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,p]),rr(()=>{if(s){let g;const v=s.ownerDocument.defaultView??window,b=j=>{const N=dc(i.current).includes(CSS.escape(j.animationName));if(j.target===s&&N&&(p("ANIMATION_END"),!u.current)){const E=s.style.animationFillMode;s.style.animationFillMode="forwards",g=v.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=E)})}},x=j=>{j.target===s&&(f.current=dc(i.current))};return s.addEventListener("animationstart",x),s.addEventListener("animationcancel",b),s.addEventListener("animationend",b),()=>{v.clearTimeout(g),s.removeEventListener("animationstart",x),s.removeEventListener("animationcancel",b),s.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[s,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:_.useCallback(g=>{i.current=g?getComputedStyle(g):null,l(g)},[])}}function dc(n){return(n==null?void 0:n.animationName)||"none"}function eE(n){var i,u;let s=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,l=s&&"isReactWarning"in s&&s.isReactWarning;return l?n.ref:(s=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,l=s&&"isReactWarning"in s&&s.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}function Mx(n){const s=tE(n),l=_.forwardRef((i,u)=>{const{children:f,...h}=i,m=_.Children.toArray(f),p=m.find(aE);if(p){const g=p.props.children,v=m.map(b=>b===p?_.Children.count(g)>1?_.Children.only(null):_.isValidElement(g)?g.props.children:null:b);return c.jsx(s,{...h,ref:u,children:_.isValidElement(g)?_.cloneElement(g,void 0,v):null})}return c.jsx(s,{...h,ref:u,children:f})});return l.displayName=`${n}.Slot`,l}function tE(n){const s=_.forwardRef((l,i)=>{const{children:u,...f}=l;if(_.isValidElement(u)){const h=lE(u),m=sE(f,u.props);return u.type!==_.Fragment&&(m.ref=i?Cx(i,h):h),_.cloneElement(u,m)}return _.Children.count(u)>1?_.Children.only(null):null});return s.displayName=`${n}.SlotClone`,s}var nE=Symbol("radix.slottable");function aE(n){return _.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===nE}function sE(n,s){const l={...s};for(const i in s){const u=n[i],f=s[i];/^on[A-Z]/.test(i)?u&&f?l[i]=(...m)=>{const p=f(...m);return u(...m),p}:u&&(l[i]=u):i==="style"?l[i]={...u,...f}:i==="className"&&(l[i]=[u,f].filter(Boolean).join(" "))}return{...n,...l}}function lE(n){var i,u;let s=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,l=s&&"isReactWarning"in s&&s.isReactWarning;return l?n.ref:(s=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,l=s&&"isReactWarning"in s&&s.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var rE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qt=rE.reduce((n,s)=>{const l=Mx(`Primitive.${s}`),i=_.forwardRef((u,f)=>{const{asChild:h,...m}=u,p=h?l:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(p,{...m,ref:f})});return i.displayName=`Primitive.${s}`,{...n,[s]:i}},{});function iE(n,s){n&&wh.flushSync(()=>n.dispatchEvent(s))}var Vc="Checkbox",[oE]=Mh(Vc),[cE,Oh]=oE(Vc);function uE(n){const{__scopeCheckbox:s,checked:l,children:i,defaultChecked:u,disabled:f,form:h,name:m,onCheckedChange:p,required:g,value:v="on",internal_do_not_use_render:b}=n,[x,j]=Ah({prop:l,defaultProp:u??!1,onChange:p,caller:Vc}),[w,N]=_.useState(null),[E,C]=_.useState(null),D=_.useRef(!1),P=w?!!h||!!w.closest("form"):!0,O={checked:x,disabled:f,setChecked:j,control:w,setControl:N,name:m,form:h,value:v,hasConsumerStoppedPropagationRef:D,required:g,defaultChecked:ss(u)?!1:u,isFormControl:P,bubbleInput:E,setBubbleInput:C};return c.jsx(cE,{scope:s,...O,children:dE(b)?b(O):i})}var Ax="CheckboxTrigger",Ox=_.forwardRef(({__scopeCheckbox:n,onKeyDown:s,onClick:l,...i},u)=>{const{control:f,value:h,disabled:m,checked:p,required:g,setControl:v,setChecked:b,hasConsumerStoppedPropagationRef:x,isFormControl:j,bubbleInput:w}=Oh(Ax,n),N=_n(u,v),E=_.useRef(p);return _.useEffect(()=>{const C=f==null?void 0:f.form;if(C){const D=()=>b(E.current);return C.addEventListener("reset",D),()=>C.removeEventListener("reset",D)}},[f,b]),c.jsx(qt.button,{type:"button",role:"checkbox","aria-checked":ss(p)?"mixed":p,"aria-required":g,"data-state":Ux(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:N,onKeyDown:Nn(s,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:Nn(l,C=>{b(D=>ss(D)?!0:!D),w&&j&&(x.current=C.isPropagationStopped(),x.current||C.stopPropagation())})})});Ox.displayName=Ax;var kh=_.forwardRef((n,s)=>{const{__scopeCheckbox:l,name:i,checked:u,defaultChecked:f,required:h,disabled:m,value:p,onCheckedChange:g,form:v,...b}=n;return c.jsx(uE,{__scopeCheckbox:l,checked:u,defaultChecked:f,disabled:m,required:h,onCheckedChange:g,name:i,form:v,value:p,internal_do_not_use_render:({isFormControl:x})=>c.jsxs(c.Fragment,{children:[c.jsx(Ox,{...b,ref:s,__scopeCheckbox:l}),x&&c.jsx(Lx,{__scopeCheckbox:l})]})})});kh.displayName=Vc;var kx="CheckboxIndicator",zx=_.forwardRef((n,s)=>{const{__scopeCheckbox:l,forceMount:i,...u}=n,f=Oh(kx,l);return c.jsx(Li,{present:i||ss(f.checked)||f.checked===!0,children:c.jsx(qt.span,{"data-state":Ux(f.checked),"data-disabled":f.disabled?"":void 0,...u,ref:s,style:{pointerEvents:"none",...n.style}})})});zx.displayName=kx;var Dx="CheckboxBubbleInput",Lx=_.forwardRef(({__scopeCheckbox:n,...s},l)=>{const{control:i,hasConsumerStoppedPropagationRef:u,checked:f,defaultChecked:h,required:m,disabled:p,name:g,value:v,form:b,bubbleInput:x,setBubbleInput:j}=Oh(Dx,n),w=_n(l,j),N=Rx(f),E=Tx(i);_.useEffect(()=>{const D=x;if(!D)return;const P=window.HTMLInputElement.prototype,F=Object.getOwnPropertyDescriptor(P,"checked").set,W=!u.current;if(N!==f&&F){const H=new Event("click",{bubbles:W});D.indeterminate=ss(f),F.call(D,ss(f)?!1:f),D.dispatchEvent(H)}},[x,N,f,u]);const C=_.useRef(ss(f)?!1:f);return c.jsx(qt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??C.current,required:m,disabled:p,name:g,value:v,form:b,...s,tabIndex:-1,ref:w,style:{...s.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Lx.displayName=Dx;function dE(n){return typeof n=="function"}function ss(n){return n==="indeterminate"}function Ux(n){return ss(n)?"indeterminate":n?"checked":"unchecked"}const fE=_.forwardRef(({className:n,...s},l)=>c.jsx(kh,{ref:l,"data-slot":"checkbox",className:ze("peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary size-4 shrink-0 rounded-[4px] border shadow-xs cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),...s,children:c.jsx(zx,{className:"flex items-center justify-center text-current",children:c.jsx(Vl,{className:"h-3.5 w-3.5"})})}));fE.displayName=kh.displayName;var Qc="Switch",[hE]=Mh(Qc),[mE,pE]=hE(Qc),Bx=_.forwardRef((n,s)=>{const{__scopeSwitch:l,name:i,checked:u,defaultChecked:f,required:h,disabled:m,value:p="on",onCheckedChange:g,form:v,...b}=n,[x,j]=_.useState(null),w=_n(s,P=>j(P)),N=_.useRef(!1),E=x?v||!!x.closest("form"):!0,[C,D]=Ah({prop:u,defaultProp:f??!1,onChange:g,caller:Qc});return c.jsxs(mE,{scope:l,checked:C,disabled:m,children:[c.jsx(qt.button,{type:"button",role:"switch","aria-checked":C,"aria-required":h,"data-state":Vx(C),"data-disabled":m?"":void 0,disabled:m,value:p,...b,ref:w,onClick:Nn(n.onClick,P=>{D(O=>!O),E&&(N.current=P.isPropagationStopped(),N.current||P.stopPropagation())})}),E&&c.jsx(Px,{control:x,bubbles:!N.current,name:i,value:p,checked:C,required:h,disabled:m,form:v,style:{transform:"translateX(-100%)"}})]})});Bx.displayName=Qc;var qx="SwitchThumb",Hx=_.forwardRef((n,s)=>{const{__scopeSwitch:l,...i}=n,u=pE(qx,l);return c.jsx(qt.span,{"data-state":Vx(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:s})});Hx.displayName=qx;var gE="SwitchBubbleInput",Px=_.forwardRef(({__scopeSwitch:n,control:s,checked:l,bubbles:i=!0,...u},f)=>{const h=_.useRef(null),m=_n(h,f),p=Rx(l),g=Tx(s);return _.useEffect(()=>{const v=h.current;if(!v)return;const b=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==l&&j){const w=new Event("click",{bubbles:i});j.call(v,l),v.dispatchEvent(w)}},[p,l,i]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...u,tabIndex:-1,ref:m,style:{...u.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Px.displayName=gE;function Vx(n){return n?"checked":"unchecked"}var Qx=Bx,yE=Hx;const qs=_.forwardRef(({className:n,...s},l)=>c.jsx(Qx,{ref:l,className:ze("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n),...s,children:c.jsx(yE,{className:ze("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));qs.displayName=Qx.displayName;var bE=Sv[" useId ".trim().toString()]||(()=>{}),vE=0;function Mf(n){const[s,l]=_.useState(bE());return rr(()=>{l(i=>i??String(vE++))},[n]),n||(s?`radix-${s}`:"")}function Ci(n){const s=_.useRef(n);return _.useEffect(()=>{s.current=n}),_.useMemo(()=>(...l)=>{var i;return(i=s.current)==null?void 0:i.call(s,...l)},[])}function xE(n,s=globalThis==null?void 0:globalThis.document){const l=Ci(n);_.useEffect(()=>{const i=u=>{u.key==="Escape"&&l(u)};return s.addEventListener("keydown",i,{capture:!0}),()=>s.removeEventListener("keydown",i,{capture:!0})},[l,s])}var SE="DismissableLayer",lh="dismissableLayer.update",jE="dismissableLayer.pointerDownOutside",NE="dismissableLayer.focusOutside",qb,Gx=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yx=_.forwardRef((n,s)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...p}=n,g=_.useContext(Gx),[v,b]=_.useState(null),x=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=_.useState({}),w=_n(s,H=>b(H)),N=Array.from(g.layers),[E]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),C=N.indexOf(E),D=v?N.indexOf(v):-1,P=g.layersWithOutsidePointerEventsDisabled.size>0,O=D>=C,F=EE(H=>{const q=H.target,X=[...g.branches].some(Q=>Q.contains(q));!O||X||(u==null||u(H),h==null||h(H),H.defaultPrevented||m==null||m())},x),W=CE(H=>{const q=H.target;[...g.branches].some(Q=>Q.contains(q))||(f==null||f(H),h==null||h(H),H.defaultPrevented||m==null||m())},x);return xE(H=>{D===g.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},x),_.useEffect(()=>{if(v)return l&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(qb=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),Hb(),()=>{l&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=qb)}},[v,x,l,g]),_.useEffect(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),Hb())},[v,g]),_.useEffect(()=>{const H=()=>j({});return document.addEventListener(lh,H),()=>document.removeEventListener(lh,H)},[]),c.jsx(qt.div,{...p,ref:w,style:{pointerEvents:P?O?"auto":"none":void 0,...n.style},onFocusCapture:Nn(n.onFocusCapture,W.onFocusCapture),onBlurCapture:Nn(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Nn(n.onPointerDownCapture,F.onPointerDownCapture)})});Yx.displayName=SE;var _E="DismissableLayerBranch",wE=_.forwardRef((n,s)=>{const l=_.useContext(Gx),i=_.useRef(null),u=_n(s,i);return _.useEffect(()=>{const f=i.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),c.jsx(qt.div,{...n,ref:u})});wE.displayName=_E;function EE(n,s=globalThis==null?void 0:globalThis.document){const l=Ci(n),i=_.useRef(!1),u=_.useRef(()=>{});return _.useEffect(()=>{const f=m=>{if(m.target&&!i.current){let p=function(){Kx(jE,l,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(s.removeEventListener("click",u.current),u.current=p,s.addEventListener("click",u.current,{once:!0})):p()}else s.removeEventListener("click",u.current);i.current=!1},h=window.setTimeout(()=>{s.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),s.removeEventListener("pointerdown",f),s.removeEventListener("click",u.current)}},[s,l]),{onPointerDownCapture:()=>i.current=!0}}function CE(n,s=globalThis==null?void 0:globalThis.document){const l=Ci(n),i=_.useRef(!1);return _.useEffect(()=>{const u=f=>{f.target&&!i.current&&Kx(NE,l,{originalEvent:f},{discrete:!1})};return s.addEventListener("focusin",u),()=>s.removeEventListener("focusin",u)},[s,l]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Hb(){const n=new CustomEvent(lh);document.dispatchEvent(n)}function Kx(n,s,l,{discrete:i}){const u=l.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});s&&u.addEventListener(n,s,{once:!0}),i?iE(u,f):u.dispatchEvent(f)}var Af="focusScope.autoFocusOnMount",Of="focusScope.autoFocusOnUnmount",Pb={bubbles:!1,cancelable:!0},RE="FocusScope",Fx=_.forwardRef((n,s)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...h}=n,[m,p]=_.useState(null),g=Ci(u),v=Ci(f),b=_.useRef(null),x=_n(s,N=>p(N)),j=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(i){let N=function(P){if(j.paused||!m)return;const O=P.target;m.contains(O)?b.current=O:Qa(b.current,{select:!0})},E=function(P){if(j.paused||!m)return;const O=P.relatedTarget;O!==null&&(m.contains(O)||Qa(b.current,{select:!0}))},C=function(P){if(document.activeElement===document.body)for(const F of P)F.removedNodes.length>0&&Qa(m)};document.addEventListener("focusin",N),document.addEventListener("focusout",E);const D=new MutationObserver(C);return m&&D.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",E),D.disconnect()}}},[i,m,j.paused]),_.useEffect(()=>{if(m){Qb.add(j);const N=document.activeElement;if(!m.contains(N)){const C=new CustomEvent(Af,Pb);m.addEventListener(Af,g),m.dispatchEvent(C),C.defaultPrevented||(TE(zE(Xx(m)),{select:!0}),document.activeElement===N&&Qa(m))}return()=>{m.removeEventListener(Af,g),setTimeout(()=>{const C=new CustomEvent(Of,Pb);m.addEventListener(Of,v),m.dispatchEvent(C),C.defaultPrevented||Qa(N??document.body,{select:!0}),m.removeEventListener(Of,v),Qb.remove(j)},0)}}},[m,g,v,j]);const w=_.useCallback(N=>{if(!l&&!i||j.paused)return;const E=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,C=document.activeElement;if(E&&C){const D=N.currentTarget,[P,O]=ME(D);P&&O?!N.shiftKey&&C===O?(N.preventDefault(),l&&Qa(P,{select:!0})):N.shiftKey&&C===P&&(N.preventDefault(),l&&Qa(O,{select:!0})):C===D&&N.preventDefault()}},[l,i,j.paused]);return c.jsx(qt.div,{tabIndex:-1,...h,ref:x,onKeyDown:w})});Fx.displayName=RE;function TE(n,{select:s=!1}={}){const l=document.activeElement;for(const i of n)if(Qa(i,{select:s}),document.activeElement!==l)return}function ME(n){const s=Xx(n),l=Vb(s,n),i=Vb(s.reverse(),n);return[l,i]}function Xx(n){const s=[],l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)s.push(l.currentNode);return s}function Vb(n,s){for(const l of n)if(!AE(l,{upTo:s}))return l}function AE(n,{upTo:s}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(s!==void 0&&n===s)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function OE(n){return n instanceof HTMLInputElement&&"select"in n}function Qa(n,{select:s=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&OE(n)&&s&&n.select()}}var Qb=kE();function kE(){let n=[];return{add(s){const l=n[0];s!==l&&(l==null||l.pause()),n=Gb(n,s),n.unshift(s)},remove(s){var l;n=Gb(n,s),(l=n[0])==null||l.resume()}}}function Gb(n,s){const l=[...n],i=l.indexOf(s);return i!==-1&&l.splice(i,1),l}function zE(n){return n.filter(s=>s.tagName!=="A")}var DE="Portal",Zx=_.forwardRef((n,s)=>{var m;const{container:l,...i}=n,[u,f]=_.useState(!1);rr(()=>f(!0),[]);const h=l||u&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?tN.createPortal(c.jsx(qt.div,{...i,ref:s}),h):null});Zx.displayName=DE;var kf=0;function LE(){_.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Yb()),document.body.insertAdjacentElement("beforeend",n[1]??Yb()),kf++,()=>{kf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),kf--}},[])}function Yb(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var kn=function(){return kn=Object.assign||function(s){for(var l,i=1,u=arguments.length;i<u;i++){l=arguments[i];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(s[f]=l[f])}return s},kn.apply(this,arguments)};function Jx(n,s){var l={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&s.indexOf(i)<0&&(l[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(n);u<i.length;u++)s.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(n,i[u])&&(l[i[u]]=n[i[u]]);return l}function UE(n,s,l){if(l||arguments.length===2)for(var i=0,u=s.length,f;i<u;i++)(f||!(i in s))&&(f||(f=Array.prototype.slice.call(s,0,i)),f[i]=s[i]);return n.concat(f||Array.prototype.slice.call(s))}var jc="right-scroll-bar-position",Nc="width-before-scroll-bar",BE="with-scroll-bars-hidden",qE="--removed-body-scroll-bar-size";function zf(n,s){return typeof n=="function"?n(s):n&&(n.current=s),n}function HE(n,s){var l=_.useState(function(){return{value:n,callback:s,facade:{get current(){return l.value},set current(i){var u=l.value;u!==i&&(l.value=i,l.callback(i,u))}}}})[0];return l.callback=s,l.facade}var PE=typeof window<"u"?_.useLayoutEffect:_.useEffect,Kb=new WeakMap;function VE(n,s){var l=HE(null,function(i){return n.forEach(function(u){return zf(u,i)})});return PE(function(){var i=Kb.get(l);if(i){var u=new Set(i),f=new Set(n),h=l.current;u.forEach(function(m){f.has(m)||zf(m,null)}),f.forEach(function(m){u.has(m)||zf(m,h)})}Kb.set(l,n)},[n]),l}function QE(n){return n}function GE(n,s){s===void 0&&(s=QE);var l=[],i=!1,u={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:n},useMedium:function(f){var h=s(f,i);return l.push(h),function(){l=l.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(i=!0;l.length;){var h=l;l=[],h.forEach(f)}l={push:function(m){return f(m)},filter:function(){return l}}},assignMedium:function(f){i=!0;var h=[];if(l.length){var m=l;l=[],m.forEach(f),h=l}var p=function(){var v=h;h=[],v.forEach(f)},g=function(){return Promise.resolve().then(p)};g(),l={push:function(v){h.push(v),g()},filter:function(v){return h=h.filter(v),l}}}};return u}function YE(n){n===void 0&&(n={});var s=GE(null);return s.options=kn({async:!0,ssr:!1},n),s}var Ix=function(n){var s=n.sideCar,l=Jx(n,["sideCar"]);if(!s)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=s.read();if(!i)throw new Error("Sidecar medium not found");return _.createElement(i,kn({},l))};Ix.isSideCarExport=!0;function KE(n,s){return n.useMedium(s),Ix}var $x=YE(),Df=function(){},Gc=_.forwardRef(function(n,s){var l=_.useRef(null),i=_.useState({onScrollCapture:Df,onWheelCapture:Df,onTouchMoveCapture:Df}),u=i[0],f=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,v=n.enabled,b=n.shards,x=n.sideCar,j=n.noRelative,w=n.noIsolation,N=n.inert,E=n.allowPinchZoom,C=n.as,D=C===void 0?"div":C,P=n.gapMode,O=Jx(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=x,W=VE([l,s]),H=kn(kn({},O),u);return _.createElement(_.Fragment,null,v&&_.createElement(F,{sideCar:$x,removeScrollBar:g,shards:b,noRelative:j,noIsolation:w,inert:N,setCallbacks:f,allowPinchZoom:!!E,lockRef:l,gapMode:P}),h?_.cloneElement(_.Children.only(m),kn(kn({},H),{ref:W})):_.createElement(D,kn({},H,{className:p,ref:W}),m))});Gc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gc.classNames={fullWidth:Nc,zeroRight:jc};var FE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var s=FE();return s&&n.setAttribute("nonce",s),n}function ZE(n,s){n.styleSheet?n.styleSheet.cssText=s:n.appendChild(document.createTextNode(s))}function JE(n){var s=document.head||document.getElementsByTagName("head")[0];s.appendChild(n)}var IE=function(){var n=0,s=null;return{add:function(l){n==0&&(s=XE())&&(ZE(s,l),JE(s)),n++},remove:function(){n--,!n&&s&&(s.parentNode&&s.parentNode.removeChild(s),s=null)}}},$E=function(){var n=IE();return function(s,l){_.useEffect(function(){return n.add(s),function(){n.remove()}},[s&&l])}},Wx=function(){var n=$E(),s=function(l){var i=l.styles,u=l.dynamic;return n(i,u),null};return s},WE={left:0,top:0,right:0,gap:0},Lf=function(n){return parseInt(n||"",10)||0},eC=function(n){var s=window.getComputedStyle(document.body),l=s[n==="padding"?"paddingLeft":"marginLeft"],i=s[n==="padding"?"paddingTop":"marginTop"],u=s[n==="padding"?"paddingRight":"marginRight"];return[Lf(l),Lf(i),Lf(u)]},tC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return WE;var s=eC(n),l=document.documentElement.clientWidth,i=window.innerWidth;return{left:s[0],top:s[1],right:s[2],gap:Math.max(0,i-l+s[2]-s[0])}},nC=Wx(),Ql="data-scroll-locked",aC=function(n,s,l,i){var u=n.left,f=n.top,h=n.right,m=n.gap;return l===void 0&&(l="margin"),`
|
|
296
|
+
.`.concat(BE,` {
|
|
297
|
+
overflow: hidden `).concat(i,`;
|
|
298
|
+
padding-right: `).concat(m,"px ").concat(i,`;
|
|
299
|
+
}
|
|
300
|
+
body[`).concat(Ql,`] {
|
|
301
|
+
overflow: hidden `).concat(i,`;
|
|
302
|
+
overscroll-behavior: contain;
|
|
303
|
+
`).concat([s&&"position: relative ".concat(i,";"),l==="margin"&&`
|
|
304
|
+
padding-left: `.concat(u,`px;
|
|
305
|
+
padding-top: `).concat(f,`px;
|
|
306
|
+
padding-right: `).concat(h,`px;
|
|
307
|
+
margin-left:0;
|
|
308
|
+
margin-top:0;
|
|
309
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
310
|
+
`),l==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.`).concat(jc,` {
|
|
314
|
+
right: `).concat(m,"px ").concat(i,`;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.`).concat(Nc,` {
|
|
318
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.`).concat(jc," .").concat(jc,` {
|
|
322
|
+
right: 0 `).concat(i,`;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.`).concat(Nc," .").concat(Nc,` {
|
|
326
|
+
margin-right: 0 `).concat(i,`;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
body[`).concat(Ql,`] {
|
|
330
|
+
`).concat(qE,": ").concat(m,`px;
|
|
331
|
+
}
|
|
332
|
+
`)},Fb=function(){var n=parseInt(document.body.getAttribute(Ql)||"0",10);return isFinite(n)?n:0},sC=function(){_.useEffect(function(){return document.body.setAttribute(Ql,(Fb()+1).toString()),function(){var n=Fb()-1;n<=0?document.body.removeAttribute(Ql):document.body.setAttribute(Ql,n.toString())}},[])},lC=function(n){var s=n.noRelative,l=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;sC();var f=_.useMemo(function(){return tC(u)},[u]);return _.createElement(nC,{styles:aC(f,!s,u,l?"":"!important")})},rh=!1;if(typeof window<"u")try{var fc=Object.defineProperty({},"passive",{get:function(){return rh=!0,!0}});window.addEventListener("test",fc,fc),window.removeEventListener("test",fc,fc)}catch{rh=!1}var kl=rh?{passive:!1}:!1,rC=function(n){return n.tagName==="TEXTAREA"},e0=function(n,s){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[s]!=="hidden"&&!(l.overflowY===l.overflowX&&!rC(n)&&l[s]==="visible")},iC=function(n){return e0(n,"overflowY")},oC=function(n){return e0(n,"overflowX")},Xb=function(n,s){var l=s.ownerDocument,i=s;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=t0(n,i);if(u){var f=n0(n,i),h=f[1],m=f[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},cC=function(n){var s=n.scrollTop,l=n.scrollHeight,i=n.clientHeight;return[s,l,i]},uC=function(n){var s=n.scrollLeft,l=n.scrollWidth,i=n.clientWidth;return[s,l,i]},t0=function(n,s){return n==="v"?iC(s):oC(s)},n0=function(n,s){return n==="v"?cC(s):uC(s)},dC=function(n,s){return n==="h"&&s==="rtl"?-1:1},fC=function(n,s,l,i,u){var f=dC(n,window.getComputedStyle(s).direction),h=f*i,m=l.target,p=s.contains(m),g=!1,v=h>0,b=0,x=0;do{if(!m)break;var j=n0(n,m),w=j[0],N=j[1],E=j[2],C=N-E-f*w;(w||C)&&t0(n,m)&&(b+=C,x+=w);var D=m.parentNode;m=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!p&&m!==document.body||p&&(s.contains(m)||s===m));return(v&&Math.abs(b)<1||!v&&Math.abs(x)<1)&&(g=!0),g},hc=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Zb=function(n){return[n.deltaX,n.deltaY]},Jb=function(n){return n&&"current"in n?n.current:n},hC=function(n,s){return n[0]===s[0]&&n[1]===s[1]},mC=function(n){return`
|
|
333
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
334
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
335
|
+
`)},pC=0,zl=[];function gC(n){var s=_.useRef([]),l=_.useRef([0,0]),i=_.useRef(),u=_.useState(pC++)[0],f=_.useState(Wx)[0],h=_.useRef(n);_.useEffect(function(){h.current=n},[n]),_.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var N=UE([n.lockRef.current],(n.shards||[]).map(Jb),!0).filter(Boolean);return N.forEach(function(E){return E.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),N.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var m=_.useCallback(function(N,E){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!h.current.allowPinchZoom;var C=hc(N),D=l.current,P="deltaX"in N?N.deltaX:D[0]-C[0],O="deltaY"in N?N.deltaY:D[1]-C[1],F,W=N.target,H=Math.abs(P)>Math.abs(O)?"h":"v";if("touches"in N&&H==="h"&&W.type==="range")return!1;var q=window.getSelection(),X=q&&q.anchorNode,Q=X?X===W||X.contains(W):!1;if(Q)return!1;var $=Xb(H,W);if(!$)return!0;if($?F=H:(F=H==="v"?"h":"v",$=Xb(H,W)),!$)return!1;if(!i.current&&"changedTouches"in N&&(P||O)&&(i.current=F),!F)return!0;var ne=i.current||F;return fC(ne,E,N,ne==="h"?P:O)},[]),p=_.useCallback(function(N){var E=N;if(!(!zl.length||zl[zl.length-1]!==f)){var C="deltaY"in E?Zb(E):hc(E),D=s.current.filter(function(F){return F.name===E.type&&(F.target===E.target||E.target===F.shadowParent)&&hC(F.delta,C)})[0];if(D&&D.should){E.cancelable&&E.preventDefault();return}if(!D){var P=(h.current.shards||[]).map(Jb).filter(Boolean).filter(function(F){return F.contains(E.target)}),O=P.length>0?m(E,P[0]):!h.current.noIsolation;O&&E.cancelable&&E.preventDefault()}}},[]),g=_.useCallback(function(N,E,C,D){var P={name:N,delta:E,target:C,should:D,shadowParent:yC(C)};s.current.push(P),setTimeout(function(){s.current=s.current.filter(function(O){return O!==P})},1)},[]),v=_.useCallback(function(N){l.current=hc(N),i.current=void 0},[]),b=_.useCallback(function(N){g(N.type,Zb(N),N.target,m(N,n.lockRef.current))},[]),x=_.useCallback(function(N){g(N.type,hc(N),N.target,m(N,n.lockRef.current))},[]);_.useEffect(function(){return zl.push(f),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:x}),document.addEventListener("wheel",p,kl),document.addEventListener("touchmove",p,kl),document.addEventListener("touchstart",v,kl),function(){zl=zl.filter(function(N){return N!==f}),document.removeEventListener("wheel",p,kl),document.removeEventListener("touchmove",p,kl),document.removeEventListener("touchstart",v,kl)}},[]);var j=n.removeScrollBar,w=n.inert;return _.createElement(_.Fragment,null,w?_.createElement(f,{styles:mC(u)}):null,j?_.createElement(lC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function yC(n){for(var s=null;n!==null;)n instanceof ShadowRoot&&(s=n.host,n=n.host),n=n.parentNode;return s}const bC=KE($x,gC);var a0=_.forwardRef(function(n,s){return _.createElement(Gc,kn({},n,{ref:s,sideCar:bC}))});a0.classNames=Gc.classNames;var vC=function(n){if(typeof document>"u")return null;var s=Array.isArray(n)?n[0]:n;return s.ownerDocument.body},Dl=new WeakMap,mc=new WeakMap,pc={},Uf=0,s0=function(n){return n&&(n.host||s0(n.parentNode))},xC=function(n,s){return s.map(function(l){if(n.contains(l))return l;var i=s0(l);return i&&n.contains(i)?i:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},SC=function(n,s,l,i){var u=xC(s,Array.isArray(n)?n:[n]);pc[l]||(pc[l]=new WeakMap);var f=pc[l],h=[],m=new Set,p=new Set(u),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};u.forEach(g);var v=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(x){if(m.has(x))v(x);else try{var j=x.getAttribute(i),w=j!==null&&j!=="false",N=(Dl.get(x)||0)+1,E=(f.get(x)||0)+1;Dl.set(x,N),f.set(x,E),h.push(x),N===1&&w&&mc.set(x,!0),E===1&&x.setAttribute(l,"true"),w||x.setAttribute(i,"true")}catch(C){console.error("aria-hidden: cannot operate on ",x,C)}})};return v(s),m.clear(),Uf++,function(){h.forEach(function(b){var x=Dl.get(b)-1,j=f.get(b)-1;Dl.set(b,x),f.set(b,j),x||(mc.has(b)||b.removeAttribute(i),mc.delete(b)),j||b.removeAttribute(l)}),Uf--,Uf||(Dl=new WeakMap,Dl=new WeakMap,mc=new WeakMap,pc={})}},jC=function(n,s,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=vC(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),SC(i,u,l,"aria-hidden")):function(){return null}},Yc="Dialog",[l0]=Mh(Yc),[NC,wn]=l0(Yc),r0=n=>{const{__scopeDialog:s,children:l,open:i,defaultOpen:u,onOpenChange:f,modal:h=!0}=n,m=_.useRef(null),p=_.useRef(null),[g,v]=Ah({prop:i,defaultProp:u??!1,onChange:f,caller:Yc});return c.jsx(NC,{scope:s,triggerRef:m,contentRef:p,contentId:Mf(),titleId:Mf(),descriptionId:Mf(),open:g,onOpenChange:v,onOpenToggle:_.useCallback(()=>v(b=>!b),[v]),modal:h,children:l})};r0.displayName=Yc;var i0="DialogTrigger",_C=_.forwardRef((n,s)=>{const{__scopeDialog:l,...i}=n,u=wn(i0,l),f=_n(s,u.triggerRef);return c.jsx(qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Lh(u.open),...i,ref:f,onClick:Nn(n.onClick,u.onOpenToggle)})});_C.displayName=i0;var zh="DialogPortal",[wC,o0]=l0(zh,{forceMount:void 0}),c0=n=>{const{__scopeDialog:s,forceMount:l,children:i,container:u}=n,f=wn(zh,s);return c.jsx(wC,{scope:s,forceMount:l,children:_.Children.map(i,h=>c.jsx(Li,{present:l||f.open,children:c.jsx(Zx,{asChild:!0,container:u,children:h})}))})};c0.displayName=zh;var Dc="DialogOverlay",u0=_.forwardRef((n,s)=>{const l=o0(Dc,n.__scopeDialog),{forceMount:i=l.forceMount,...u}=n,f=wn(Dc,n.__scopeDialog);return f.modal?c.jsx(Li,{present:i||f.open,children:c.jsx(CC,{...u,ref:s})}):null});u0.displayName=Dc;var EC=Mx("DialogOverlay.RemoveScroll"),CC=_.forwardRef((n,s)=>{const{__scopeDialog:l,...i}=n,u=wn(Dc,l);return c.jsx(a0,{as:EC,allowPinchZoom:!0,shards:[u.contentRef],children:c.jsx(qt.div,{"data-state":Lh(u.open),...i,ref:s,style:{pointerEvents:"auto",...i.style}})})}),Gs="DialogContent",d0=_.forwardRef((n,s)=>{const l=o0(Gs,n.__scopeDialog),{forceMount:i=l.forceMount,...u}=n,f=wn(Gs,n.__scopeDialog);return c.jsx(Li,{present:i||f.open,children:f.modal?c.jsx(RC,{...u,ref:s}):c.jsx(TC,{...u,ref:s})})});d0.displayName=Gs;var RC=_.forwardRef((n,s)=>{const l=wn(Gs,n.__scopeDialog),i=_.useRef(null),u=_n(s,l.contentRef,i);return _.useEffect(()=>{const f=i.current;if(f)return jC(f)},[]),c.jsx(f0,{...n,ref:u,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nn(n.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=l.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Nn(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:Nn(n.onFocusOutside,f=>f.preventDefault())})}),TC=_.forwardRef((n,s)=>{const l=wn(Gs,n.__scopeDialog),i=_.useRef(!1),u=_.useRef(!1);return c.jsx(f0,{...n,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,f),f.defaultPrevented||(i.current||(m=l.triggerRef.current)==null||m.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{var p,g;(p=n.onInteractOutside)==null||p.call(n,f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const h=f.target;((g=l.triggerRef.current)==null?void 0:g.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),f0=_.forwardRef((n,s)=>{const{__scopeDialog:l,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...h}=n,m=wn(Gs,l),p=_.useRef(null),g=_n(s,p);return LE(),c.jsxs(c.Fragment,{children:[c.jsx(Fx,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:f,children:c.jsx(Yx,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Lh(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(MC,{titleId:m.titleId}),c.jsx(OC,{contentRef:p,descriptionId:m.descriptionId})]})]})}),Dh="DialogTitle",h0=_.forwardRef((n,s)=>{const{__scopeDialog:l,...i}=n,u=wn(Dh,l);return c.jsx(qt.h2,{id:u.titleId,...i,ref:s})});h0.displayName=Dh;var m0="DialogDescription",p0=_.forwardRef((n,s)=>{const{__scopeDialog:l,...i}=n,u=wn(m0,l);return c.jsx(qt.p,{id:u.descriptionId,...i,ref:s})});p0.displayName=m0;var g0="DialogClose",y0=_.forwardRef((n,s)=>{const{__scopeDialog:l,...i}=n,u=wn(g0,l);return c.jsx(qt.button,{type:"button",...i,ref:s,onClick:Nn(n.onClick,()=>u.onOpenChange(!1))})});y0.displayName=g0;function Lh(n){return n?"open":"closed"}var b0="DialogTitleWarning",[VR,v0]=Fw(b0,{contentName:Gs,titleName:Dh,docsSlug:"dialog"}),MC=({titleId:n})=>{const s=v0(b0),l=`\`${s.contentName}\` requires a \`${s.titleName}\` for the component to be accessible for screen reader users.
|
|
336
|
+
|
|
337
|
+
If you want to hide the \`${s.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
338
|
+
|
|
339
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return _.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},AC="DialogDescriptionWarning",OC=({contentRef:n,descriptionId:s})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${v0(AC).contentName}}.`;return _.useEffect(()=>{var f;const u=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");s&&u&&(document.getElementById(s)||console.warn(i))},[i,n,s]),null},kC=r0,zC=c0,DC=u0,LC=d0,UC=h0,BC=p0,qC=y0;function ih({...n}){return c.jsx(kC,{"data-slot":"sheet",...n})}function HC({...n}){return c.jsx(zC,{"data-slot":"sheet-portal",...n})}function PC({className:n,...s}){return c.jsx(DC,{"data-slot":"sheet-overlay",className:ze("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),...s})}const VC=Th("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-md",right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-md"}},defaultVariants:{side:"right"}});function oh({side:n="right",className:s,children:l,...i}){return c.jsxs(HC,{children:[c.jsx(PC,{}),c.jsxs(LC,{"data-slot":"sheet-content",className:ze(VC({side:n}),s),...i,children:[l,c.jsxs(qC,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[c.jsx(H_,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Uh({className:n,...s}){return c.jsx("div",{"data-slot":"sheet-header",className:ze("flex flex-col gap-1.5 p-4",n),...s})}function Bh({className:n,...s}){return c.jsx(UC,{"data-slot":"sheet-title",className:ze("text-foreground font-semibold",n),...s})}function qh({className:n,...s}){return c.jsx(BC,{"data-slot":"sheet-description",className:ze("text-muted-foreground text-sm",n),...s})}_.createContext({value:"",onChange:()=>{}});const QC="";async function Ke(n,s){const l=await fetch(`${QC}${n}`,s);if(!l.ok)throw new Error(`${l.status} ${l.statusText}`);return l.json()}const Te={health:()=>Ke("/health"),stats:()=>Ke("/api/dashboard/stats"),repos:()=>Ke("/api/dashboard/repos"),repo:n=>Ke(`/api/dashboard/repos/${n}`),repoFiles:(n,s)=>{const l=new URLSearchParams;s!=null&&s.limit&&l.set("limit",String(s.limit)),s!=null&&s.offset&&l.set("offset",String(s.offset)),s!=null&&s.search&&l.set("search",s.search);const i=l.toString();return Ke(`/api/dashboard/repos/${n}/files${i?`?${i}`:""}`)},repoFileDetail:(n,s)=>Ke(`/api/dashboard/repos/${n}/files/${encodeURIComponent(s)}`),repoChunks:(n,s)=>{const l=new URLSearchParams;s!=null&&s.limit&&l.set("limit",String(s.limit)),s!=null&&s.offset&&l.set("offset",String(s.offset)),s!=null&&s.path&&l.set("path",s.path);const i=l.toString();return Ke(`/api/dashboard/repos/${n}/chunks${i?`?${i}`:""}`)},repoChunkDetail:(n,s)=>Ke(`/api/dashboard/repos/${n}/chunks/${s}`),repoVocabClusters:n=>Ke(`/api/dashboard/repos/${n}/vocab-clusters`),logs:n=>{const s=new URLSearchParams;n!=null&&n.limit&&s.set("limit",String(n.limit)),n!=null&&n.offset&&s.set("offset",String(n.offset)),n!=null&&n.method&&s.set("method",n.method),n!=null&&n.path&&s.set("path",n.path),n!=null&&n.status&&s.set("status",String(n.status)),n!=null&&n.source&&s.set("source",n.source);const l=s.toString();return Ke(`/api/dashboard/logs${l?`?${l}`:""}`)},tables:()=>Ke("/api/dashboard/tables"),tableRows:(n,s=50,l=0)=>Ke(`/api/dashboard/tables/${encodeURIComponent(n)}?limit=${s}&offset=${l}`),updateRepoSettings:(n,s)=>Ke(`/api/dashboard/repos/${n}/settings`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),routes:()=>Ke("/api/dashboard/routes"),reindex:n=>Ke("/index/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:n,force:!0})}),startWatcher:n=>Ke("/index/watch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:n})}),stopWatcher:n=>Ke("/index/unwatch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:n})}),buildContext:(n,s)=>Ke("/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:n,goal:s})}),registerRepo:(n,s)=>Ke("/repo/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({root_path:n,name:s})}),removeRepo:n=>Ke(`/repo/${n}`,{method:"DELETE"}),localUsage:()=>Ke("/api/dashboard/usage"),authStatus:()=>Ke("/api/auth/status"),cloudUsageRange:(n,s)=>Ke(`/api/cloud/usage?start=${n}&end=${s}`),cloudSubscription:()=>Ke("/api/cloud/subscription"),cloudCheckout:(n="monthly")=>Ke("/api/cloud/billing/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interval:n,return_url:window.location.href})}),cloudPortal:()=>Ke(`/api/cloud/billing/portal?return_url=${encodeURIComponent(window.location.href)}`),refreshPlan:()=>Ke("/api/dashboard/refresh-plan",{method:"POST"})},GC={href:"/context",icon:ah,label:"Context"},YC=[{href:"/",icon:ox,label:"Overview"},{href:"/repos",icon:Ch,label:"Repos"},{href:"/requests",icon:nx,label:"Requests"},{href:"/data",icon:wi,label:"Data"}],KC=[{label:"Cloud",items:[{href:"/usage",icon:PN,label:"Usage"},{href:"/billing",icon:$N,label:"Billing"}]}];function FC(){var g,v,b;const s=$t().location.pathname,l=at({queryKey:["health"],queryFn:Te.health,refetchInterval:1e4,placeholderData:Bt}),i=((g=l.data)==null?void 0:g.status)==="ok",u=((v=l.data)==null?void 0:v.cloud_url)??"",f=u&&!/localhost|127\.0\.0\.1/.test(u)?"Cloud":"Local",h=fa(),m=at({queryKey:["auth-status"],queryFn:Te.authStatus,placeholderData:Bt});_.useEffect(()=>{const x=new EventSource("/api/auth/events");return x.onmessage=()=>{h.invalidateQueries({queryKey:["auth-status"]}),h.invalidateQueries({queryKey:["dashboard-usage"]}),h.invalidateQueries({queryKey:["cloud-subscription"]})},()=>x.close()},[h]),_.useEffect(()=>{const x=new EventSource("/api/repo/events");let j;return x.onmessage=()=>{clearTimeout(j),j=setTimeout(()=>{h.invalidateQueries({queryKey:["dashboard-repos"]}),h.invalidateQueries({queryKey:["dashboard-stats"]})},300)},()=>{clearTimeout(j),x.close()}},[h]);const p=(b=m.data)!=null&&b.authenticated?{name:m.data.email??"User",email:m.data.email??""}:{name:"Guest",email:"Run: lens login"};return c.jsxs(zw,{className:"bg-muted h-svh",children:[c.jsx(Yw,{primaryAction:GC,navItems:YC,navGroups:KC,currentPath:s,renderLink:({href:x,children:j})=>c.jsx(lr,{to:x,children:j}),healthy:i,connectionLabel:f,footer:c.jsx(Kw,{user:p})}),c.jsx(Uw,{className:"bg-background rounded-xl overflow-hidden md:my-2 md:mr-2 md:border",children:c.jsx("div",{className:"@container/main flex min-h-0 flex-1 flex-col",children:c.jsx(ex,{})})})]})}const Ib={ready:"bg-success/15 text-success border-success/25",indexed:"bg-success/15 text-success border-success/25",indexing:"bg-warning/15 text-warning border-warning/25",pending:"bg-muted text-muted-foreground border-border",error:"bg-destructive/15 text-destructive border-destructive/25",active:"bg-success/15 text-success border-success/25",inactive:"bg-muted text-muted-foreground border-border"};function Lc({status:n,className:s}){const l=n==="indexing",i=Ib[n]??Ib.pending;return c.jsxs(oa,{variant:"outline",className:ze("rounded-md px-2 py-0.5 text-[11px] tabular-nums",i,s),children:[l&&c.jsx("span",{className:"mr-1 inline-block h-2 w-2 animate-spin rounded-full border border-current border-t-transparent"}),n]})}function $b(n){return n<1?"<1ms":n<1e3?`${Math.round(n)}ms`:`${(n/1e3).toFixed(2)}s`}function Ri(n){if(!n)return"never";const s=Date.now()-new Date(n.endsWith("Z")?n:n+"Z").getTime(),l=Math.floor(s/1e3);if(l<60)return`${l}s ago`;const i=Math.floor(l/60);if(i<60)return`${i}m ago`;const u=Math.floor(i/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}function x0(){const n=Di(),{data:s,isLoading:l}=at({queryKey:["dashboard-stats"],queryFn:Te.stats,refetchInterval:3e4,placeholderData:Bt}),{data:i}=at({queryKey:["dashboard-repos"],queryFn:Te.repos,refetchInterval:3e4,placeholderData:Bt}),{data:u}=at({queryKey:["dashboard-usage"],queryFn:Te.localUsage,refetchInterval:3e4}),f=((u==null?void 0:u.plan)??"free")==="pro";if(!s&&l)return c.jsx(XC,{});const h=(s==null?void 0:s.uptime_seconds)??0,m=h<60?`${h}s`:h<3600?`${Math.floor(h/60)}m`:`${Math.floor(h/3600)}h ${Math.floor(h%3600/60)}m`,p="border-border/80 bg-muted/35 text-foreground/80",g=[{label:"Repos",value:(s==null?void 0:s.repos_count)??0,description:"Registered repositories",icon:Ch,iconClassName:p},{label:"Chunks",value:((s==null?void 0:s.total_chunks)??0).toLocaleString(),description:"Code segments across all repos",icon:z_,iconClassName:p},{label:"Embeddings",value:((s==null?void 0:s.total_embeddings)??0).toLocaleString(),description:"Chunks with vector embeddings stored locally",icon:JN,iconClassName:p,pro:!0},{label:"Summaries",value:((s==null?void 0:s.total_summaries)??0).toLocaleString(),description:"Files with a purpose summary in local DB",icon:sx,iconClassName:p,pro:!0},{label:"Vocab",value:((s==null?void 0:s.total_vocab_clusters)??0).toLocaleString(),description:"Term clusters for concept expansion",icon:cx,iconClassName:p,pro:!0},{label:"DB Size",value:`${(s==null?void 0:s.db_size_mb)??0} MB`,description:"Database",icon:wi,iconClassName:p},{label:"Uptime",value:m,description:"Daemon process",icon:nx,iconClassName:p}];return c.jsxs(c.Fragment,{children:[c.jsx(da,{children:c.jsx("span",{className:"text-sm font-medium",children:"Overview"})}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-auto py-4 md:gap-6 md:py-6",children:[c.jsx("section",{className:"px-4 lg:px-6",children:c.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[c.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"System snapshot"}),c.jsx("p",{className:"mt-1 text-sm",children:"Live operational metrics for repositories and indexing throughput."})]})}),c.jsx("section",{className:"grid grid-cols-1 gap-4 px-4 lg:px-6 @xl/main:grid-cols-2 @3xl/main:grid-cols-4",children:g.map(v=>{const b=v.icon,x=v.pro&&!f;return c.jsxs(bi,{className:`border-border bg-background py-4 shadow-none ${x?"opacity-60":""}`,children:[c.jsx(vi,{className:"pb-1",children:c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:v.label}),x&&c.jsx("span",{className:"rounded bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-medium text-amber-600 dark:text-amber-400",children:"Pro"})]}),c.jsx(xi,{className:"mt-1 text-2xl font-semibold tabular-nums",children:x?"—":v.value})]}),c.jsx("span",{className:`rounded-md border p-1.5 ${v.iconClassName}`,children:c.jsx(b,{className:"h-4 w-4"})})]})}),c.jsx(Si,{className:"pt-0",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:v.description})})]},v.label)})}),!f&&c.jsx("section",{className:"px-4 lg:px-6",children:c.jsxs("button",{type:"button",onClick:()=>n({to:"/billing"}),className:"flex w-full items-center gap-3 rounded-xl border border-amber-500/30 bg-amber-500/5 p-4 text-left transition-colors hover:bg-amber-500/10",children:[c.jsx(Ei,{className:"h-4 w-4 text-amber-500 shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium",children:"Unlock enrichment"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Semantic search, purpose summaries, and vocab clustering with Pro."})]}),c.jsx(ax,{className:"h-4 w-4 text-amber-500 shrink-0"})]})}),(i==null?void 0:i.repos)&&i.repos.length>0&&c.jsxs("section",{className:"space-y-3 px-4 lg:px-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-sm font-semibold",children:"Repositories"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Tracked codebases and index status"})]}),c.jsx(Je,{variant:"outline",size:"sm",onClick:()=>n({to:"/repos"}),children:"View all"})]}),c.jsx("div",{className:"grid gap-3 @xl/main:grid-cols-2 @5xl/main:grid-cols-3",children:i.repos.map(v=>c.jsxs(bi,{className:"border-border bg-background py-4 shadow-none cursor-pointer hover:bg-accent/30 transition-colors",onClick:()=>n({to:"/repos/$repoId",params:{repoId:v.id}}),children:[c.jsx(vi,{className:"pb-2",children:c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx(xi,{className:"truncate text-sm",children:v.name}),c.jsx("p",{className:"truncate text-xs text-muted-foreground",children:v.root_path})]}),c.jsx(Lc,{status:v.index_status,className:"border-border bg-muted text-foreground"})]})}),c.jsxs(Si,{className:"space-y-2",children:[c.jsxs("div",{className:"grid grid-cols-5 gap-2 text-xs",children:[c.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5",children:[c.jsx("p",{className:"text-muted-foreground",children:"Files"}),c.jsx("p",{className:"font-mono font-medium tabular-nums",children:v.files_indexed})]}),c.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5",children:[c.jsx("p",{className:"text-muted-foreground",children:"Chunks"}),c.jsx("p",{className:"font-mono font-medium tabular-nums",children:v.chunk_count})]}),c.jsxs("div",{className:`rounded-md border border-border bg-background px-2 py-1.5 ${f?"":"opacity-40"}`,children:[c.jsx("p",{className:"text-muted-foreground",children:"Embed"}),c.jsx("p",{className:"font-mono font-medium tabular-nums",children:f?`${v.embedded_pct}%`:"—"})]}),c.jsxs("div",{className:`rounded-md border border-border bg-background px-2 py-1.5 ${f?"":"opacity-40"}`,children:[c.jsx("p",{className:"text-muted-foreground",children:"Summaries"}),c.jsx("p",{className:"font-mono font-medium tabular-nums",children:f?`${v.purpose_count}/${v.purpose_total}`:"—"})]}),c.jsxs("div",{className:`rounded-md border border-border bg-background px-2 py-1.5 ${f?"":"opacity-40"}`,children:[c.jsx("p",{className:"text-muted-foreground",children:"Vocab"}),c.jsx("p",{className:"font-mono font-medium tabular-nums",children:f?v.vocab_cluster_count:"—"})]})]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Indexed ",Ri(v.last_indexed_at)]})]})]},v.id))})]})]})]})}function XC(){return c.jsx("div",{className:"flex items-center justify-center py-20",children:c.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}function ZC(){const[n,s]=_.useState(!1),[l,i]=_.useState(""),u=fa(),{data:f}=at({queryKey:["dashboard-usage"],queryFn:Te.localUsage,refetchInterval:3e4}),h=((f==null?void 0:f.plan)??"free")==="pro",{data:m}=at({queryKey:["dashboard-repos"],queryFn:Te.repos,refetchInterval:3e4,placeholderData:Bt}),p=hn({mutationFn:v=>Te.registerRepo(v),onSuccess:()=>{u.invalidateQueries({queryKey:["dashboard-repos"]}),s(!1),i("")}}),g=(m==null?void 0:m.repos)??[];return c.jsxs(c.Fragment,{children:[c.jsx(da,{children:n?c.jsxs("form",{onSubmit:v=>{v.preventDefault(),l.trim()&&p.mutate(l.trim())},className:"flex flex-1 items-center gap-2",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(u_,{className:"pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),c.jsx("input",{type:"text",value:l,onChange:v=>i(v.target.value),placeholder:"/absolute/path/to/repo",className:"h-7 w-full rounded-md border border-border bg-background pl-7 pr-2 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",autoFocus:!0})]}),c.jsx(Je,{type:"submit",size:"sm",className:"h-7 text-xs",disabled:!l.trim()||p.isPending,children:p.isPending?"Registering...":"Register"}),c.jsx(Je,{type:"button",variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>{s(!1),i("")},children:"Cancel"}),p.isError&&c.jsx("span",{className:"text-xs text-destructive",children:p.error.message})]}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-sm font-medium",children:"Repositories"}),c.jsxs("span",{className:"text-xs text-muted-foreground",children:[g.length," total"]}),c.jsx("div",{className:"ml-auto",children:c.jsxs(Je,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:()=>s(!0),children:[c.jsx(T_,{className:"h-3.5 w-3.5"}),"Register"]})})]})}),c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:g.length===0?c.jsxs("p",{className:"text-sm text-muted-foreground py-12 text-center",children:["No repos registered. Run: ",c.jsx("code",{className:"text-xs",children:"lens repo register"})]}):c.jsx("div",{className:"grid gap-3 p-3 @xl/main:grid-cols-2",children:g.map(v=>c.jsx(JC,{repo:v,isPro:h},v.id))})})]})}function JC({repo:n,isPro:s}){var g;const l=fa(),i=hn({mutationFn:Te.reindex,onMutate:v=>{l.setQueryData(["dashboard-repos"],b=>b&&{...b,repos:b.repos.map(x=>x.id===v?{...x,index_status:"indexing"}:x)})},onSettled:()=>l.invalidateQueries({queryKey:["dashboard-repos"]})}),u=hn({mutationFn:Te.startWatcher,onSuccess:()=>l.invalidateQueries({queryKey:["dashboard-repos"]})}),f=hn({mutationFn:Te.stopWatcher,onSuccess:()=>l.invalidateQueries({queryKey:["dashboard-repos"]})}),h=hn({mutationFn:v=>Te.updateRepoSettings(n.id,v),onSuccess:()=>l.invalidateQueries({queryKey:["dashboard-repos"]})}),m=n.embeddable_count>0?Math.round(n.embedded_count/n.embeddable_count*100):0,p=n.purpose_total>0?Math.round(n.purpose_count/n.purpose_total*100):0;return c.jsxs("div",{className:"rounded-lg border bg-card",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2 p-3 pb-2",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(lr,{to:"/repos/$repoId",params:{repoId:n.id},className:"text-sm font-medium text-primary hover:underline truncate",children:n.name}),c.jsx(Lc,{status:n.index_status})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground truncate mt-0.5",children:n.root_path})]}),c.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[c.jsx(Je,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>i.mutate(n.id),disabled:i.isPending,title:"Re-index",children:c.jsx(ux,{className:`h-3.5 w-3.5 ${i.isPending?"animate-spin":""}`})}),c.jsx(Je,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>(n.watcher.active?f:u).mutate(n.id),title:n.watcher.active?"Stop watcher":"Start watcher",children:n.watcher.active?c.jsx(ix,{className:"h-3.5 w-3.5"}):c.jsx(Eh,{className:"h-3.5 w-3.5"})})]})]}),c.jsxs("div",{className:"grid grid-cols-4 gap-2 px-3 pb-2 text-xs",children:[c.jsx(gc,{label:"Files",value:n.files_indexed}),c.jsx(gc,{label:"Chunks",value:n.chunk_count.toLocaleString()}),c.jsx(gc,{label:"Commit",value:((g=n.last_indexed_commit)==null?void 0:g.slice(0,7))??"—",mono:!0}),c.jsx(gc,{label:"Indexed",value:Ri(n.last_indexed_at)})]}),c.jsxs("div",{className:"border-t px-3 py-2 space-y-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(Ei,{className:"h-3 w-3 text-muted-foreground"}),c.jsx("span",{className:"text-[10px] font-medium text-muted-foreground",children:"Enrichment"}),!s&&c.jsx(oa,{variant:"outline",className:"text-[9px] px-1 py-0 text-amber-500 border-amber-500/40",children:"Pro"})]}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx(Wb,{label:"Embeddings",value:n.embedded_count,max:n.embeddable_count,pct:m,enabled:!!n.enable_embeddings,onToggle:v=>h.mutate({enable_embeddings:v}),disabled:!s}),c.jsx(Wb,{label:"Summaries",value:n.purpose_count,max:n.purpose_total,pct:p,enabled:!!n.enable_summaries,onToggle:v=>h.mutate({enable_summaries:v}),disabled:!s}),c.jsx(IC,{label:"Vocab clusters",count:n.vocab_cluster_count,enabled:!!n.enable_vocab_clusters,onToggle:v=>h.mutate({enable_vocab_clusters:v}),disabled:!s}),!s&&c.jsxs(lr,{to:"/billing",className:"inline-flex items-center gap-1.5 rounded-md border border-amber-500/40 px-3 py-1.5 text-[11px] font-medium text-amber-500 hover:bg-amber-500/10 mt-1",children:[c.jsx(Ei,{className:"h-3 w-3"}),"Upgrade to Pro"]})]})]})]})}function Wb({label:n,value:s,max:l,pct:i,enabled:u,onToggle:f,disabled:h}){return c.jsxs("div",{className:`flex items-center gap-2 ${u&&!h?"":"opacity-50"}`,children:[c.jsx(qs,{checked:u,onCheckedChange:f,disabled:h,className:"scale-75 origin-left shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-baseline justify-between mb-0.5",children:[c.jsx("span",{className:"text-[10px] text-muted-foreground",children:n}),c.jsxs("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:[s,"/",l]})]}),c.jsx("div",{className:"h-1 w-full rounded-full bg-muted overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full bg-primary transition-all",style:{width:`${i}%`}})})]})]})}function IC({label:n,count:s,enabled:l,onToggle:i,disabled:u}){return c.jsxs("div",{className:`flex items-center gap-2 ${l&&!u?"":"opacity-50"}`,children:[c.jsx(qs,{checked:l,onCheckedChange:i,disabled:u,className:"scale-75 origin-left shrink-0"}),c.jsxs("div",{className:"flex items-baseline justify-between flex-1",children:[c.jsx("span",{className:"text-[10px] text-muted-foreground",children:n}),c.jsx("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:s})]})]})}function gc({label:n,value:s,mono:l}){return c.jsxs("div",{children:[c.jsx("span",{className:"text-[10px] text-muted-foreground block",children:n}),c.jsx("span",{className:`text-xs font-medium tabular-nums ${l?"font-mono":""}`,children:s})]})}function $C(){const{repoId:n}=Pc({strict:!1}),s=Di(),l=fa(),[i,u]=_.useState(!1),[f,h]=_.useState(0),[m,p]=_.useState(""),[g,v]=_.useState(0),[b,x]=_.useState(),[j,w]=_.useState("overview"),[N,E]=_.useState(null),[C,D]=_.useState(null),{data:P}=at({queryKey:["dashboard-repos"],queryFn:Te.repos,refetchInterval:3e4,placeholderData:Bt}),{data:O}=at({queryKey:["dashboard-usage"],queryFn:Te.localUsage,refetchInterval:3e4}),F=((O==null?void 0:O.plan)??"free")==="pro",W=P==null?void 0:P.repos.find(V=>V.id===n),{data:H}=at({queryKey:["repo-files",n,f,m],queryFn:()=>Te.repoFiles(n,{limit:100,offset:f*100,search:m||void 0}),enabled:j==="files",placeholderData:Bt}),{data:q}=at({queryKey:["repo-chunks",n,g,b],queryFn:()=>Te.repoChunks(n,{limit:100,offset:g*100,path:b}),enabled:j==="chunks",placeholderData:Bt}),{data:X,isLoading:Q}=at({queryKey:["repo-file-detail",n,N],queryFn:()=>Te.repoFileDetail(n,N),enabled:!!N}),{data:$}=at({queryKey:["repo-chunk-detail",n,C],queryFn:()=>Te.repoChunkDetail(n,C),enabled:!!C}),{data:ne}=at({queryKey:["repo-vocab",n],queryFn:()=>Te.repoVocabClusters(n),enabled:j==="vocab"}),fe=hn({mutationFn:Te.reindex,onMutate:V=>{l.setQueryData(["dashboard-repos"],K=>K&&{...K,repos:K.repos.map(me=>me.id===V?{...me,index_status:"indexing"}:me)})},onSettled:()=>l.invalidateQueries({queryKey:["dashboard-repos"]})}),he=hn({mutationFn:Te.startWatcher,onSuccess:()=>l.invalidateQueries({queryKey:["dashboard-repos"]})}),ie=hn({mutationFn:Te.stopWatcher,onSuccess:()=>l.invalidateQueries({queryKey:["dashboard-repos"]})}),k=hn({mutationFn:Te.removeRepo,onSuccess:()=>{l.invalidateQueries({queryKey:["dashboard-repos"]}),s({to:"/repos"})}});return W?c.jsxs(c.Fragment,{children:[c.jsxs(da,{children:[c.jsxs(Je,{variant:"ghost",size:"sm",onClick:()=>s({to:"/repos"}),className:"gap-1 -ml-2",children:[c.jsx(Rb,{className:"h-3.5 w-3.5"})," Back"]}),c.jsx("span",{className:"text-sm font-medium",children:W.name}),c.jsxs("div",{className:"ml-auto flex gap-2",children:[c.jsx(yc,{onClick:()=>fe.mutate(W.id),icon:ux,label:"Re-index",loading:fe.isPending}),W.watcher.active?c.jsx(yc,{onClick:()=>ie.mutate(W.id),icon:ix,label:"Stop watcher"}):c.jsx(yc,{onClick:()=>he.mutate(W.id),icon:Eh,label:"Start watcher"}),i?c.jsxs(c.Fragment,{children:[c.jsx(Je,{variant:"destructive",size:"sm",onClick:()=>k.mutate(W.id),disabled:k.isPending,children:k.isPending?"Removing...":"Confirm"}),c.jsx(Je,{variant:"outline",size:"sm",onClick:()=>u(!1),children:"Cancel"})]}):c.jsx(yc,{onClick:()=>u(!0),icon:B_,label:"Remove"})]})]}),c.jsxs("div",{className:"flex flex-1 min-h-0",children:[c.jsx("div",{className:"hidden w-48 shrink-0 flex-col border-r border-border bg-muted/30 md:flex",children:c.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:ev.map(V=>c.jsxs("button",{type:"button",onClick:()=>w(V.value),className:`flex w-full items-center gap-2 px-3 py-2 text-xs transition-colors ${j===V.value?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,children:[c.jsx(V.icon,{className:"h-3.5 w-3.5 shrink-0 opacity-60"}),c.jsx("span",{className:"truncate",children:V.label}),V.value==="files"&&H&&c.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] tabular-nums opacity-60",children:H.total}),V.value==="chunks"&&q&&c.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] tabular-nums opacity-60",children:q.total}),V.value==="vocab"&&ne&&c.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] tabular-nums opacity-60",children:ne.clusters.length})]},V.value))})}),c.jsx("select",{value:j,onChange:V=>w(V.target.value),className:"h-8 w-full border-b border-border bg-background px-3 text-xs md:hidden",children:ev.map(V=>c.jsx("option",{value:V.value,children:V.label},V.value))}),c.jsxs("div",{className:"flex min-w-0 min-h-0 flex-1 flex-col",children:[j==="overview"&&c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:c.jsx(eR,{repo:W,isPro:F,repoId:n})}),j==="files"&&c.jsx("div",{className:"flex min-w-0 min-h-0 flex-1 flex-col",children:c.jsx(tR,{files:(H==null?void 0:H.files)??[],total:(H==null?void 0:H.total)??0,page:f,onPageChange:h,search:m,onSearchChange:V=>{p(V),h(0)},isPro:F,onSelectFile:V=>E(V),onFilterChunks:V=>{x(V),v(0),w("chunks")}})}),j==="chunks"&&c.jsx("div",{className:"flex min-w-0 min-h-0 flex-1 flex-col",children:c.jsx(nR,{chunks:(q==null?void 0:q.chunks)??[],total:(q==null?void 0:q.total)??0,page:g,onPageChange:v,pathFilter:b,onClearFilter:()=>{x(void 0),v(0)},onSelectChunk:V=>D(V)})}),j==="vocab"&&c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:c.jsx(aR,{clusters:(ne==null?void 0:ne.clusters)??[]})})]})]}),c.jsx(ih,{open:!!N,onOpenChange:V=>!V&&E(null),children:c.jsx(oh,{side:"right",className:"overflow-y-auto sm:max-w-xl",children:X?c.jsx(WC,{detail:X,onViewChunks:()=>{E(null),x(X.path),v(0),w("chunks")},onNavigateFile:V=>E(V)}):Q&&N?c.jsx(nv,{}):null})}),c.jsx(ih,{open:!!C,onOpenChange:V=>!V&&D(null),children:c.jsx(oh,{side:"right",className:"overflow-y-auto sm:max-w-2xl",children:$?c.jsxs(c.Fragment,{children:[c.jsxs(Uh,{children:[c.jsxs(Bh,{className:"font-mono text-sm break-all select-all pr-6",children:[c.jsx(l_,{className:"inline h-3.5 w-3.5 mr-1.5 align-text-bottom"}),$.path]}),c.jsxs(qh,{children:["Chunk #",$.chunk_index," · ","L",$.start_line,"–",$.end_line," · ",$.language??"unknown",$.has_embedding&&" · embedded"]})]}),c.jsxs("div",{className:"flex flex-col gap-4 px-4 pb-4",children:[c.jsx(Ct,{}),c.jsxs("section",{children:[c.jsx("h4",{className:"mb-2 text-xs font-medium text-muted-foreground",children:"Content"}),c.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-md border bg-muted/30 p-3",children:c.jsx("pre",{className:"font-mono text-xs leading-relaxed whitespace-pre-wrap break-all",children:$.content})})]}),c.jsx(Ct,{}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 text-xs",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Hash"}),c.jsx("p",{className:"font-mono text-[10px] mt-0.5 break-all",children:$.chunk_hash})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Embedding"}),c.jsx("p",{className:"mt-0.5",children:$.has_embedding?"Yes":"No"})]})]})]})]}):C?c.jsx(nv,{}):null})})]}):c.jsx(c.Fragment,{children:c.jsxs(da,{children:[c.jsxs(Je,{variant:"ghost",size:"sm",onClick:()=>s({to:"/repos"}),className:"gap-1 -ml-2",children:[c.jsx(Rb,{className:"h-3.5 w-3.5"})," Back"]}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"Repo not found"})]})})}const ev=[{value:"overview",label:"Overview",icon:ox},{value:"files",label:"Files",icon:i_},{value:"chunks",label:"Chunks",icon:BN},{value:"vocab",label:"Vocab Clusters",icon:sx}];function WC({detail:n,onViewChunks:s,onNavigateFile:l}){return c.jsxs(c.Fragment,{children:[c.jsxs(Uh,{children:[c.jsx(Bh,{className:"font-mono text-sm break-all select-all pr-6",children:n.path}),c.jsxs(qh,{children:[n.language??"unknown"," · ",n.chunk_count," chunks",n.embedded_count>0&&` · ${n.embedded_count} embedded`]})]}),c.jsxs("div",{className:"flex flex-col gap-4 px-4 pb-4",children:[n.purpose&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:"Purpose",children:c.jsx("p",{className:"text-sm",children:n.purpose})})]}),n.docstring&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:"Docstring",children:c.jsx("p",{className:"text-xs text-muted-foreground italic",children:n.docstring})})]}),n.exports.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:`Exports (${n.exports.length})`,children:c.jsx("div",{className:"flex flex-wrap gap-1",children:n.exports.map(i=>c.jsx(oa,{variant:"secondary",className:"font-mono text-[10px]",children:i},i))})})]}),n.sections.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:`Sections (${n.sections.length})`,children:c.jsx("div",{className:"flex flex-wrap gap-1",children:n.sections.map(i=>c.jsx(oa,{variant:"outline",className:"text-[10px]",children:i},i))})})]}),n.internals.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:`Internal identifiers (${n.internals.length})`,children:c.jsx("div",{className:"flex flex-wrap gap-1",children:n.internals.map(i=>c.jsx(oa,{variant:"secondary",className:"font-mono text-[10px] bg-muted/50",children:i},i))})})]}),n.imports.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:`Imports (${n.imports.length})`,icon:c.jsx(LN,{className:"h-3 w-3"}),children:c.jsx("div",{className:"space-y-0.5",children:n.imports.map(i=>c.jsx("button",{type:"button",onClick:()=>l(i),className:"block text-xs font-mono text-primary hover:underline truncate max-w-full",children:i},i))})})]}),n.imported_by.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:`Imported by (${n.imported_by.length})`,icon:c.jsx(ON,{className:"h-3 w-3"}),children:c.jsx("div",{className:"space-y-0.5",children:n.imported_by.map(i=>c.jsx("button",{type:"button",onClick:()=>l(i),className:"block text-xs font-mono text-primary hover:underline truncate max-w-full",children:i},i))})})]}),n.git&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:"Git activity",icon:c.jsx(m_,{className:"h-3 w-3"}),children:c.jsxs("div",{className:"grid grid-cols-3 gap-3 text-xs",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Commits"}),c.jsx("p",{className:"font-mono font-medium tabular-nums",children:n.git.commit_count})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Recent (90d)"}),c.jsx("p",{className:"font-mono font-medium tabular-nums",children:n.git.recent_count})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Last modified"}),c.jsx("p",{className:"font-mono tabular-nums",children:n.git.last_modified?Ri(n.git.last_modified):"—"})]})]})})]}),n.cochanges.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(ta,{title:`Co-changes (${n.cochanges.length})`,icon:c.jsx(g_,{className:"h-3 w-3"}),children:c.jsx("div",{className:"space-y-1",children:n.cochanges.map(i=>c.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs",children:[c.jsx("button",{type:"button",onClick:()=>l(i.path),className:"font-mono text-primary hover:underline truncate text-left min-w-0",children:i.path}),c.jsxs("span",{className:"font-mono tabular-nums text-muted-foreground shrink-0",children:[i.count,"x"]})]},i.path))})})]}),c.jsx(Ct,{}),c.jsx("div",{className:"flex gap-2",children:c.jsxs(Je,{variant:"outline",size:"sm",className:"gap-1.5 text-xs",onClick:s,children:[c.jsx(f_,{className:"h-3 w-3"}),"View chunks"]})})]})]})}function ta({title:n,icon:s,children:l}){return c.jsxs("section",{children:[c.jsxs("h4",{className:"mb-2 text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[s,n]}),l]})}function eR({repo:n,isPro:s,repoId:l}){var m;const i=fa(),u=hn({mutationFn:p=>Te.updateRepoSettings(l,p),onSuccess:()=>i.invalidateQueries({queryKey:["dashboard-repos"]})}),f=n.embeddable_count>0?Math.round(n.embedded_count/n.embeddable_count*100):0,h=n.purpose_total>0?Math.round(n.purpose_count/n.purpose_total*100):0;return c.jsxs("div",{className:"space-y-2 p-2",children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:"Overview"}),c.jsxs("div",{className:"grid gap-2 @xl/main:grid-cols-2 @3xl/main:grid-cols-3",children:[c.jsxs("div",{className:"rounded-lg border bg-card p-3",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(wi,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"text-xs font-medium",children:"Index"}),c.jsx(Lc,{status:n.index_status})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs",children:[c.jsx(_s,{label:"Files",value:n.files_indexed}),c.jsx(_s,{label:"Chunks",value:n.chunk_count.toLocaleString()}),c.jsx(_s,{label:"Import depth",value:n.max_import_depth}),c.jsx(_s,{label:"Indexed",value:Ri(n.last_indexed_at)}),c.jsx(_s,{label:"Commit",value:((m=n.last_indexed_commit)==null?void 0:m.slice(0,8))??"—",mono:!0})]})]}),c.jsxs("div",{className:"rounded-lg border bg-card p-3",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(Ei,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"text-xs font-medium",children:"Enrichment"}),!s&&c.jsx(oa,{variant:"outline",className:"text-[10px] text-amber-500 border-amber-500/40",children:"Pro"})]}),c.jsxs("div",{className:"space-y-2 text-xs",children:[c.jsxs("div",{className:`flex items-center gap-2 ${!s||!n.enable_embeddings?"opacity-50":""}`,children:[c.jsx(qs,{checked:!!n.enable_embeddings,onCheckedChange:p=>u.mutate({enable_embeddings:p}),disabled:!s,className:"scale-75 origin-left shrink-0"}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx(tv,{label:"Embeddings",value:n.embedded_count,max:n.embeddable_count,pct:f,disabled:!s||!n.enable_embeddings})})]}),c.jsxs("div",{className:`flex items-center gap-2 ${!s||!n.enable_summaries?"opacity-50":""}`,children:[c.jsx(qs,{checked:!!n.enable_summaries,onCheckedChange:p=>u.mutate({enable_summaries:p}),disabled:!s,className:"scale-75 origin-left shrink-0"}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx(tv,{label:"Summaries",value:n.purpose_count,max:n.purpose_total,pct:h,disabled:!s||!n.enable_summaries})})]}),c.jsxs("div",{className:`flex items-center gap-2 ${!s||!n.enable_vocab_clusters?"opacity-50":""}`,children:[c.jsx(qs,{checked:!!n.enable_vocab_clusters,onCheckedChange:p=>u.mutate({enable_vocab_clusters:p}),disabled:!s,className:"scale-75 origin-left shrink-0"}),c.jsxs("div",{className:"flex items-baseline justify-between flex-1",children:[c.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Vocab clusters"}),c.jsx("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:n.vocab_cluster_count})]})]}),!s&&c.jsxs(lr,{to:"/billing",className:"inline-flex items-center gap-1.5 rounded-md border border-amber-500/40 px-3 py-1.5 text-[11px] font-medium text-amber-500 hover:bg-amber-500/10 mt-1",children:[c.jsx(Ei,{className:"h-3 w-3"}),"Upgrade to Pro"]})]})]}),c.jsxs("div",{className:"rounded-lg border bg-card p-3",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(Eh,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"text-xs font-medium",children:"Watcher"}),c.jsx(Lc,{status:n.watcher.active?"active":"inactive"})]}),c.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs",children:n.watcher.active?c.jsxs(c.Fragment,{children:[c.jsx(_s,{label:"Changed files",value:n.watcher.changed_files}),c.jsx(_s,{label:"Started",value:Ri(n.watcher.started_at)})]}):c.jsx("p",{className:"text-[10px] text-muted-foreground col-span-2",children:"Not watching. Use the sidebar button to start."})})]}),c.jsxs("div",{className:"rounded-lg border bg-card p-3 @xl/main:col-span-2 @3xl/main:col-span-3",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(Ch,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"text-xs font-medium",children:"Repository"})]}),c.jsx("p",{className:"font-mono text-xs break-all text-muted-foreground",children:n.root_path})]})]})]})}function _s({label:n,value:s,mono:l}){return c.jsxs("div",{className:"flex items-baseline justify-between",children:[c.jsx("span",{className:"text-[10px] text-muted-foreground",children:n}),c.jsx("span",{className:`text-xs font-medium tabular-nums ${l?"font-mono":""}`,children:s})]})}function tv({label:n,value:s,max:l,pct:i,disabled:u}){return c.jsxs("div",{className:u?"opacity-50":"",children:[c.jsxs("div",{className:"flex items-baseline justify-between mb-0.5",children:[c.jsx("span",{className:"text-[10px] text-muted-foreground",children:n}),c.jsxs("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:[s,"/",l]})]}),c.jsx("div",{className:"h-1 w-full rounded-full bg-muted overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full bg-primary transition-all",style:{width:`${i}%`}})})]})}function tR({files:n,total:s,page:l,onPageChange:i,search:u,onSearchChange:f,isPro:h,onSelectFile:m,onFilterChunks:p}){const v=Math.max(1,Math.ceil(s/100));return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2",children:[c.jsxs("div",{className:"relative",children:[c.jsx(nh,{className:"pointer-events-none absolute left-2 top-1/2 h-3 w-3 -translate-y-1/2 text-muted-foreground"}),c.jsx("input",{type:"search",value:u,onChange:b=>f(b.target.value),placeholder:"Filter files...",className:"h-7 w-52 rounded-md border border-border bg-background pl-7 pr-2 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]}),c.jsxs("span",{className:"text-[10px] text-muted-foreground tabular-nums",children:[s," files"]})]}),c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:c.jsxs("table",{className:"w-full border-collapse text-xs",children:[c.jsx("thead",{className:"sticky top-0 z-10",children:c.jsxs("tr",{className:"bg-muted/60 text-left",children:[c.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Path"}),c.jsx("th",{className:"w-16 border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Lang"}),c.jsx("th",{className:"w-16 border-b border-r border-border bg-muted/60 px-3 py-2 text-right font-medium text-muted-foreground",children:"Exports"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground max-w-[200px]",children:"Purpose"}),c.jsx("th",{className:"w-16 border-b border-r border-border bg-muted/60 px-3 py-2 text-right font-medium text-muted-foreground",children:"Chunks"}),c.jsx("th",{className:"w-14 border-b border-border bg-muted/60 px-3 py-2 text-center font-medium text-muted-foreground",children:"Embed"})]})}),c.jsx("tbody",{children:n.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"py-12 text-center text-muted-foreground",children:u?"No matching files":"No files indexed yet"})}):n.map((b,x)=>c.jsxs("tr",{className:"group hover:bg-accent/30",children:[c.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-1.5 text-center font-mono text-[10px] text-muted-foreground tabular-nums",children:l*100+x+1}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5",children:c.jsx("button",{type:"button",onClick:()=>m(b.path),className:"text-primary hover:underline font-mono text-left",children:b.path})}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:b.language??"—"}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 text-right font-mono tabular-nums",children:b.exports.length}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 max-w-[200px]",children:b.purpose?c.jsx("span",{className:"truncate block max-w-[200px]",title:b.purpose,children:b.purpose}):c.jsx("span",{className:"text-muted-foreground/50",children:"—"})}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 text-right",children:c.jsx("button",{type:"button",onClick:j=>{j.stopPropagation(),p(b.path)},className:"font-mono tabular-nums text-primary hover:underline",children:b.chunk_count})}),c.jsx("td",{className:"border-b border-border px-3 py-1.5 text-center",children:h?b.has_embedding?c.jsx(Vl,{className:"h-3.5 w-3.5 text-green-500 mx-auto"}):c.jsx("span",{className:"text-muted-foreground/50",children:"—"}):c.jsx("span",{className:"text-muted-foreground/40",children:"—"})})]},b.path))})]})}),s>100&&c.jsxs("div",{className:"flex items-center justify-between border-t bg-muted/20 px-3 py-1.5 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"tabular-nums",children:[l*100+1,"–",Math.min((l+1)*100,s)," of"," ",s.toLocaleString()]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(Je,{variant:"ghost",size:"sm",className:"h-6 px-2",onClick:()=>i(l-1),disabled:l===0,children:"Prev"}),c.jsxs("span",{className:"px-1.5 tabular-nums",children:[l+1," / ",v]}),c.jsx(Je,{variant:"ghost",size:"sm",className:"h-6 px-2",onClick:()=>i(l+1),disabled:l>=v-1,children:"Next"})]})]})]})}function nR({chunks:n,total:s,page:l,onPageChange:i,pathFilter:u,onClearFilter:f,onSelectChunk:h}){const p=Math.max(1,Math.ceil(s/100));return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2",children:[c.jsxs("span",{className:"text-[10px] text-muted-foreground tabular-nums",children:[s," chunks",u?` in ${u}`:""]}),u&&c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(oa,{variant:"secondary",className:"font-mono text-[10px]",children:u}),c.jsx(Je,{variant:"ghost",size:"sm",className:"h-5 text-[10px] px-1.5",onClick:f,children:"Clear"})]})]}),c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:c.jsxs("table",{className:"w-full border-collapse text-xs",children:[c.jsx("thead",{className:"sticky top-0 z-10",children:c.jsxs("tr",{className:"bg-muted/60 text-left",children:[c.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Path"}),c.jsx("th",{className:"w-14 border-b border-r border-border bg-muted/60 px-3 py-2 text-right font-medium text-muted-foreground",children:"Idx"}),c.jsx("th",{className:"w-24 border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Lines"}),c.jsx("th",{className:"w-16 border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Lang"}),c.jsx("th",{className:"w-14 border-b border-border bg-muted/60 px-3 py-2 text-center font-medium text-muted-foreground",children:"Embed"})]})}),c.jsx("tbody",{children:n.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:6,className:"py-12 text-center text-muted-foreground",children:"No chunks found"})}):n.map((g,v)=>c.jsxs("tr",{className:"group hover:bg-accent/30",children:[c.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-1.5 text-center font-mono text-[10px] text-muted-foreground tabular-nums",children:l*100+v+1}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5",children:c.jsx("button",{type:"button",onClick:()=>h(g.id),className:"text-primary hover:underline font-mono text-left",children:g.path})}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 text-right font-mono tabular-nums",children:g.chunk_index}),c.jsxs("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono tabular-nums",children:[g.start_line,"–",g.end_line]}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:g.language??"—"}),c.jsx("td",{className:"border-b border-border px-3 py-1.5 text-center",children:g.has_embedding?c.jsx(Vl,{className:"h-3.5 w-3.5 text-green-500 mx-auto"}):c.jsx("span",{className:"text-muted-foreground/50",children:"—"})})]},g.id))})]})}),s>100&&c.jsxs("div",{className:"flex items-center justify-between border-t bg-muted/20 px-3 py-1.5 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"tabular-nums",children:[l*100+1,"–",Math.min((l+1)*100,s)," of"," ",s.toLocaleString()]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(Je,{variant:"ghost",size:"sm",className:"h-6 px-2",onClick:()=>i(l-1),disabled:l===0,children:"Prev"}),c.jsxs("span",{className:"px-1.5 tabular-nums",children:[l+1," / ",p]}),c.jsx(Je,{variant:"ghost",size:"sm",className:"h-6 px-2",onClick:()=>i(l+1),disabled:l>=p-1,children:"Next"})]})]})]})}function aR({clusters:n}){const[s,l]=_.useState(null);return n.length===0?c.jsx("div",{className:"rounded-lg border bg-card py-10 m-2 text-center text-sm text-muted-foreground",children:"No vocab clusters. Pro plan required for semantic term clustering."}):c.jsxs("div",{className:"space-y-2 p-2",children:[c.jsxs("p",{className:"text-xs text-muted-foreground",children:[n.length," clusters"]}),c.jsx("div",{className:"grid gap-2 @xl/main:grid-cols-2 @3xl/main:grid-cols-3",children:n.map((i,u)=>c.jsxs("button",{type:"button",onClick:()=>l(s===u?null:u),className:"rounded-lg border bg-card p-3 text-left hover:bg-accent/30 transition-colors",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(cx,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{className:"text-xs font-medium",children:["Cluster ",u+1]}),c.jsxs("span",{className:"text-[10px] text-muted-foreground",children:[i.terms.length," terms"]})]}),c.jsxs("div",{className:"flex flex-wrap gap-1",children:[(s===u?i.terms:i.terms.slice(0,8)).map(f=>c.jsx(oa,{variant:"secondary",className:"text-[10px] font-mono",children:f},f)),s!==u&&i.terms.length>8&&c.jsxs("span",{className:"text-[10px] text-muted-foreground self-center",children:["+",i.terms.length-8]})]})]},u))})]})}function yc({onClick:n,icon:s,label:l,loading:i}){return c.jsxs(Je,{variant:"outline",size:"sm",onClick:n,disabled:i,className:"gap-1.5",children:[c.jsx(s,{className:`h-3.5 w-3.5 ${i?"animate-spin":""}`}),l]})}function nv(){return c.jsx("div",{className:"flex items-center justify-center py-20",children:c.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}const sR=n=>typeof n=="boolean"||n instanceof Boolean,lR=n=>typeof n=="number"||n instanceof Number,rR=n=>typeof n=="bigint"||n instanceof BigInt,S0=n=>!!n&&n instanceof Date,iR=n=>typeof n=="string"||n instanceof String,oR=n=>Array.isArray(n),j0=n=>typeof n=="object"&&n!==null,N0=n=>!!n&&n instanceof Object&&typeof n=="function";function Uc(n,s){return s===void 0&&(s=!1),!n||s?`"${n}"`:n}function cR(n,s,l){return l?JSON.stringify(n):s?`"${n}"`:n}function _0(n){let{field:s,value:l,data:i,lastElement:u,openBracket:f,closeBracket:h,level:m,style:p,shouldExpandNode:g,clickToExpandNode:v,outerRef:b,beforeExpandChange:x}=n;const j=_.useRef(!1),[w,N]=_.useState(()=>g(m,l,s)),E=_.useRef(null);_.useEffect(()=>{j.current?N(g(m,l,s)):j.current=!0},[g]);const C=_.useId();if(i.length===0)return uR({field:s,openBracket:f,closeBracket:h,lastElement:u,style:p});const D=w?p.collapseIcon:p.expandIcon,P=w?p.ariaLables.collapseJson:p.ariaLables.expandJson,O=m+1,F=i.length-1,W=X=>{w!==X&&(!x||x({level:m,value:l,field:s,newExpandValue:X}))&&N(X)},H=X=>{if(X.key==="ArrowRight"||X.key==="ArrowLeft")X.preventDefault(),W(X.key==="ArrowRight");else if(X.key==="ArrowUp"||X.key==="ArrowDown"){X.preventDefault();const Q=X.key==="ArrowUp"?-1:1;if(!b.current)return;const $=b.current.querySelectorAll("[role=button]");let ne=-1;for(let he=0;he<$.length;he++)if($[he].tabIndex===0){ne=he;break}if(ne<0)return;const fe=(ne+Q+$.length)%$.length;$[ne].tabIndex=-1,$[fe].tabIndex=0,$[fe].focus()}},q=()=>{var X;W(!w);const Q=E.current;if(!Q)return;const $=(X=b.current)===null||X===void 0?void 0:X.querySelector('[role=button][tabindex="0"]');$&&($.tabIndex=-1),Q.tabIndex=0,Q.focus()};return _.createElement("div",{className:p.basicChildStyle,role:"treeitem","aria-expanded":w,"aria-selected":void 0},_.createElement("span",{className:D,onClick:q,onKeyDown:H,role:"button","aria-label":P,"aria-expanded":w,"aria-controls":w?C:void 0,ref:E,tabIndex:m===0?0:-1}),(s||s==="")&&(v?_.createElement("span",{className:p.clickableLabel,onClick:q,onKeyDown:H},Uc(s,p.quotesForFieldNames),":"):_.createElement("span",{className:p.label},Uc(s,p.quotesForFieldNames),":")),_.createElement("span",{className:p.punctuation},f),w?_.createElement("ul",{id:C,role:"group",className:p.childFieldsContainer},i.map((X,Q)=>_.createElement(ch,{key:X[0]||Q,field:X[0],value:X[1],style:p,lastElement:Q===F,level:O,shouldExpandNode:g,clickToExpandNode:v,beforeExpandChange:x,outerRef:b}))):_.createElement("span",{className:p.collapsedContent,onClick:q,onKeyDown:H}),_.createElement("span",{className:p.punctuation},h),!u&&_.createElement("span",{className:p.punctuation},","))}function uR(n){let{field:s,openBracket:l,closeBracket:i,lastElement:u,style:f}=n;return _.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-selected":void 0},(s||s==="")&&_.createElement("span",{className:f.label},Uc(s,f.quotesForFieldNames),":"),_.createElement("span",{className:f.punctuation},l),_.createElement("span",{className:f.punctuation},i),!u&&_.createElement("span",{className:f.punctuation},","))}function dR(n){let{field:s,value:l,style:i,lastElement:u,shouldExpandNode:f,clickToExpandNode:h,level:m,outerRef:p,beforeExpandChange:g}=n;return _0({field:s,value:l,lastElement:u||!1,level:m,openBracket:"{",closeBracket:"}",style:i,shouldExpandNode:f,clickToExpandNode:h,data:Object.keys(l).map(v=>[v,l[v]]),outerRef:p,beforeExpandChange:g})}function fR(n){let{field:s,value:l,style:i,lastElement:u,level:f,shouldExpandNode:h,clickToExpandNode:m,outerRef:p,beforeExpandChange:g}=n;return _0({field:s,value:l,lastElement:u||!1,level:f,openBracket:"[",closeBracket:"]",style:i,shouldExpandNode:h,clickToExpandNode:m,data:l.map(v=>[void 0,v]),outerRef:p,beforeExpandChange:g})}function hR(n){let{field:s,value:l,style:i,lastElement:u}=n,f,h=i.otherValue;return l===null?(f="null",h=i.nullValue):l===void 0?(f="undefined",h=i.undefinedValue):iR(l)?(f=cR(l,!i.noQuotesForStringValues,i.stringifyStringValues),h=i.stringValue):sR(l)?(f=l?"true":"false",h=i.booleanValue):lR(l)?(f=l.toString(),h=i.numberValue):rR(l)?(f=`${l.toString()}n`,h=i.numberValue):S0(l)?f=l.toISOString():N0(l)?f="function() { }":f=l.toString(),_.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(s||s==="")&&_.createElement("span",{className:i.label},Uc(s,i.quotesForFieldNames),":"),_.createElement("span",{className:h},f),!u&&_.createElement("span",{className:i.punctuation},","))}function ch(n){const s=n.value;return oR(s)?_.createElement(fR,Object.assign({},n)):j0(s)&&!S0(s)&&!N0(s)?_.createElement(dR,Object.assign({},n)):_.createElement(hR,Object.assign({},n))}var Ue={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const w0={collapseJson:"collapse JSON",expandJson:"expand JSON"},Bf={container:Ue["container-light"],basicChildStyle:Ue["basic-element-style"],childFieldsContainer:Ue["child-fields-container"],label:Ue["label-light"],clickableLabel:Ue["clickable-label-light"],nullValue:Ue["value-null-light"],undefinedValue:Ue["value-undefined-light"],stringValue:Ue["value-string-light"],booleanValue:Ue["value-boolean-light"],numberValue:Ue["value-number-light"],otherValue:Ue["value-other-light"],punctuation:Ue["punctuation-light"],collapseIcon:Ue["collapse-icon-light"],expandIcon:Ue["expand-icon-light"],collapsedContent:Ue["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:w0,stringifyStringValues:!1},mR={container:Ue["container-dark"],basicChildStyle:Ue["basic-element-style"],childFieldsContainer:Ue["child-fields-container"],label:Ue["label-dark"],clickableLabel:Ue["clickable-label-dark"],nullValue:Ue["value-null-dark"],undefinedValue:Ue["value-undefined-dark"],stringValue:Ue["value-string-dark"],booleanValue:Ue["value-boolean-dark"],numberValue:Ue["value-number-dark"],otherValue:Ue["value-other-dark"],punctuation:Ue["punctuation-dark"],collapseIcon:Ue["collapse-icon-dark"],expandIcon:Ue["expand-icon-dark"],collapsedContent:Ue["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:w0,stringifyStringValues:!1},pR=()=>!0,gR=n=>{let{data:s,style:l=Bf,shouldExpandNode:i=pR,clickToExpandNode:u=!1,beforeExpandChange:f,compactTopLevel:h,...m}=n;const p=_.useRef(null);return _.createElement("div",Object.assign({"aria-label":"JSON view"},m,{className:l.container,ref:p,role:"tree"}),h&&j0(s)?Object.entries(s).map(g=>{let[v,b]=g;return _.createElement(ch,{key:v,field:v,value:b,style:{...Bf,...l},lastElement:!0,level:1,shouldExpandNode:i,clickToExpandNode:u,beforeExpandChange:f,outerRef:p})}):_.createElement(ch,{value:s,style:{...Bf,...l},lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:u,outerRef:p,beforeExpandChange:f}))},av={2:"text-success",3:"text-warning",4:"text-warning",5:"text-destructive"},sv={cli:"bg-blue-500/15 text-blue-400",mcp:"bg-purple-500/15 text-purple-400",api:"bg-emerald-500/15 text-emerald-400",dashboard:"bg-amber-500/15 text-amber-400",cloud:"bg-cyan-500/15 text-cyan-400",system:"bg-rose-500/15 text-rose-400"};function yR(n){return n==null?"-":n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}function E0(n){if(!n)return null;try{return JSON.parse(n)}catch{return null}}const bR={...mR,container:"font-mono text-xs leading-relaxed",basicChildStyle:"pl-4",label:"text-blue-400 mr-1",nullValue:"text-muted-foreground",undefinedValue:"text-muted-foreground",numberValue:"text-amber-400",stringValue:"text-emerald-400",booleanValue:"text-purple-400",punctuation:"text-muted-foreground",collapseIcon:"text-muted-foreground cursor-pointer select-none",expandIcon:"text-muted-foreground cursor-pointer select-none"};function lv({label:n,raw:s}){const l=_.useMemo(()=>E0(s),[s]);return c.jsxs("section",{children:[c.jsx("h4",{className:"mb-2 text-xs font-medium text-muted-foreground",children:n}),s?c.jsx("div",{className:"max-h-80 overflow-auto rounded-md border bg-muted/30 p-3",children:l!==null?c.jsx(gR,{data:l,shouldExpandNode:i=>i<2,style:bR}):c.jsx("pre",{className:"font-mono text-xs whitespace-pre-wrap break-all",children:s})}):c.jsx("p",{className:"text-xs text-muted-foreground/60 italic",children:"empty"})]})}const rv=["bg-blue-500","bg-emerald-500","bg-amber-500","bg-purple-500","bg-rose-500","bg-cyan-500","bg-orange-500"];function vR({steps:n}){const s=Math.max(...n.map(l=>l.duration_ms),1);return c.jsxs("section",{children:[c.jsx("h4",{className:"mb-2 text-xs font-medium text-muted-foreground",children:"Trace"}),c.jsx("div",{className:"space-y-1 rounded-md border bg-muted/30 p-3",children:n.map((l,i)=>{const u=Math.max(l.duration_ms/s*100,2);return c.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[c.jsx("span",{className:"w-28 shrink-0 truncate font-mono text-muted-foreground",children:l.step}),c.jsx("div",{className:"flex-1 h-4 rounded-sm bg-muted/50 overflow-hidden",children:c.jsx("div",{className:`h-full rounded-sm ${rv[i%rv.length]} opacity-80`,style:{width:`${u}%`}})}),c.jsxs("span",{className:"w-14 shrink-0 text-right font-mono tabular-nums text-muted-foreground",children:[l.duration_ms,"ms"]}),l.detail&&c.jsx("span",{className:"w-24 shrink-0 truncate text-right text-[10px] text-muted-foreground/70",children:l.detail})]},i)})})]})}function xR(){const[n,s]=_.useState(0),[l,i]=_.useState(""),[u,f]=_.useState(null),h=100,{data:m,isLoading:p}=at({queryKey:["dashboard-logs",n,l],queryFn:()=>Te.logs({limit:h,offset:n*h,source:l||void 0}),refetchInterval:15e3,placeholderData:Bt}),g=(m==null?void 0:m.total)??0,v=Math.max(1,Math.ceil(g/h)),b=(m==null?void 0:m.rows)??[],x=_.useMemo(()=>{if(!(u!=null&&u.trace))return null;const j=E0(u.trace);return Array.isArray(j)?j:null},[u==null?void 0:u.trace]);return c.jsxs(c.Fragment,{children:[c.jsxs(da,{children:[c.jsx("span",{className:"text-sm font-medium",children:"Requests"}),c.jsx("div",{className:"ml-auto",children:c.jsxs("select",{value:l,onChange:j=>{i(j.target.value),s(0)},className:"h-7 rounded-md border border-border bg-background px-2 text-xs focus:outline-none focus:ring-1 focus:ring-ring",children:[c.jsx("option",{value:"",children:"All sources"}),c.jsx("option",{value:"cli",children:"CLI"}),c.jsx("option",{value:"mcp",children:"MCP"}),c.jsx("option",{value:"api",children:"API"}),c.jsx("option",{value:"cloud",children:"Cloud"}),c.jsx("option",{value:"system",children:"System"}),c.jsx("option",{value:"dashboard",children:"Dashboard"})]})})]}),c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:p&&!m?c.jsx(SR,{}):c.jsxs("table",{className:"w-full border-collapse text-xs",children:[c.jsx("thead",{className:"sticky top-0 z-10",children:c.jsxs("tr",{className:"bg-muted/60 text-left",children:[c.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Time"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Source"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Method"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Path"}),c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Status"}),c.jsx("th",{className:"border-b border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground text-right",children:"Duration"})]})}),c.jsx("tbody",{children:b.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"py-12 text-center text-muted-foreground",children:"No requests logged yet"})}):b.map((j,w)=>{const N=new Date(j.created_at+"Z"),E=av[String(j.status)[0]]??"",C=sv[j.source]??"";return c.jsxs("tr",{className:"group cursor-pointer hover:bg-accent/30",onClick:()=>f(j),children:[c.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-1.5 text-center font-mono text-[10px] text-muted-foreground tabular-nums",children:n*h+w+1}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono text-muted-foreground tabular-nums",children:N.toLocaleTimeString()}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5",children:c.jsx("span",{className:`inline-block rounded px-1.5 py-0.5 font-medium ${C}`,children:j.source})}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:j.method}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono max-w-xs truncate",children:j.path}),c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:c.jsx("span",{className:`font-medium ${E}`,children:j.status})}),c.jsx("td",{className:"border-b border-border px-3 py-1.5 font-mono text-right text-muted-foreground tabular-nums",children:$b(j.duration_ms)})]},j.id)})})]})}),g>h&&c.jsxs("div",{className:"flex items-center justify-between border-t bg-muted/20 px-3 py-1.5 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"tabular-nums",children:[n*h+1,"–",Math.min((n+1)*h,g)," of"," ",g.toLocaleString()]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(Je,{variant:"ghost",size:"icon-xs",onClick:()=>s(n-1),disabled:n===0,children:c.jsx(lx,{className:"h-3.5 w-3.5"})}),c.jsxs("span",{className:"px-1.5 tabular-nums",children:[n+1," / ",v]}),c.jsx(Je,{variant:"ghost",size:"icon-xs",onClick:()=>s(n+1),disabled:n>=v-1,children:c.jsx(rx,{className:"h-3.5 w-3.5"})})]})]}),c.jsx(ih,{open:!!u,onOpenChange:j=>!j&&f(null),children:c.jsx(oh,{side:"right",className:"overflow-y-auto sm:max-w-lg",children:u&&c.jsxs(c.Fragment,{children:[c.jsxs(Uh,{children:[c.jsxs(Bh,{className:"font-mono text-sm",children:[u.method," ",u.path]}),c.jsxs(qh,{children:[c.jsx("span",{className:av[String(u.status)[0]]??"",children:u.status})," · ",$b(u.duration_ms)," · ",yR(u.response_size)," · ",c.jsx("span",{className:`inline-block rounded px-1 py-0.5 text-[10px] font-medium ${sv[u.source]??""}`,children:u.source})]})]}),c.jsxs("div",{className:"flex flex-col gap-4 px-4 pb-4",children:[x&&x.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Ct,{}),c.jsx(vR,{steps:x})]}),c.jsx(Ct,{}),c.jsx(lv,{label:"Request Body",raw:u.request_body}),c.jsx(lv,{label:"Response Body",raw:u.response_body})]})]})})})]})}function SR(){return c.jsx("div",{className:"flex flex-1 items-center justify-center py-20",children:c.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}function jR(){const[n,s]=_.useState(null),[l,i]=_.useState(0),[u,f]=_.useState(""),[h,m]=_.useState(""),p=100,{data:g,isLoading:v}=at({queryKey:["dashboard-tables"],queryFn:Te.tables,placeholderData:Bt}),{data:b,isLoading:x}=at({queryKey:["dashboard-table-rows",n,l],queryFn:()=>Te.tableRows(n,p,l*p),enabled:!!n,placeholderData:Bt}),j=_.useMemo(()=>{const D=(g==null?void 0:g.tables)??[];if(!h)return D;const P=h.toLowerCase();return D.filter(O=>O.name.toLowerCase().includes(P))},[g,h]),w=_.useMemo(()=>{const D=(b==null?void 0:b.rows)??[];if(!u)return D;const P=u.toLowerCase();return D.filter(O=>Object.values(O).some(F=>F!=null&&String(F).toLowerCase().includes(P)))},[b,u]),N=u?w.length:(b==null?void 0:b.total)??0,E=Math.max(1,Math.ceil(N/p)),C=(b==null?void 0:b.columns)??[];return!g&&v?c.jsx(iv,{}):c.jsxs(c.Fragment,{children:[c.jsxs(da,{children:[c.jsx("span",{className:"text-sm font-medium",children:"Data"}),n&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-xs text-muted-foreground",children:n}),c.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[N.toLocaleString()," row",N!==1?"s":""]})]}),c.jsxs("select",{value:n??"",onChange:D=>{s(D.target.value||null),i(0),f("")},className:"h-7 rounded-md border border-border bg-background px-2 text-xs md:hidden",children:[c.jsx("option",{value:"",children:"Select table..."}),((g==null?void 0:g.tables)??[]).map(D=>c.jsxs("option",{value:D.name,children:[D.name," (",D.count,")"]},D.name))]}),n&&c.jsxs("div",{className:"ml-auto relative",children:[c.jsx(nh,{className:"pointer-events-none absolute left-2 top-1/2 h-3 w-3 -translate-y-1/2 text-muted-foreground"}),c.jsx("input",{type:"search",value:u,onChange:D=>f(D.target.value),placeholder:"Filter rows...",className:"h-7 w-40 rounded-md border border-border bg-background pl-7 pr-2 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]})]}),c.jsxs("div",{className:"flex flex-1 min-h-0",children:[c.jsxs("div",{className:"hidden w-56 shrink-0 flex-col border-r border-border bg-muted/30 md:flex",children:[c.jsx("div",{className:"border-b px-3 py-2.5",children:c.jsxs("div",{className:"relative",children:[c.jsx(nh,{className:"pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),c.jsx("input",{type:"search",value:h,onChange:D=>m(D.target.value),placeholder:"Search tables...",className:"h-7 w-full rounded-md border border-border bg-background pl-7 pr-2 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]})}),c.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:j.map(D=>c.jsxs("button",{type:"button",onClick:()=>{s(D.name),i(0),f("")},className:`flex w-full items-center justify-between px-3 py-1.5 text-xs transition-colors ${n===D.name?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,children:[c.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[c.jsx(wi,{className:"h-3 w-3 shrink-0 opacity-50"}),c.jsx("span",{className:"truncate",children:D.name})]}),c.jsx("span",{className:"ml-2 shrink-0 font-mono text-[10px] tabular-nums opacity-60",children:D.count})]},D.name))})]}),c.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:n?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:x&&!b?c.jsx(iv,{}):c.jsxs("table",{className:"w-full border-collapse text-xs",children:[c.jsx("thead",{className:"sticky top-0 z-10",children:c.jsxs("tr",{className:"bg-muted/60 text-left",children:[c.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),C.map(D=>c.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:D},D))]})}),c.jsx("tbody",{children:w.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:C.length+1,className:"py-12 text-center text-muted-foreground",children:u?"No matching rows":"Empty table"})}):w.map((D,P)=>c.jsxs("tr",{className:"group hover:bg-accent/30",children:[c.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-1.5 text-center font-mono text-[10px] text-muted-foreground tabular-nums",children:l*p+P+1}),C.map(O=>c.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:c.jsx(NR,{value:D[O]})},O))]},P))})]})}),N>p&&c.jsxs("div",{className:"flex items-center justify-between border-t bg-muted/20 px-3 py-1.5 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"tabular-nums",children:[l*p+1,"–",Math.min((l+1)*p,N)," of"," ",N.toLocaleString()]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(Je,{variant:"ghost",size:"icon-xs",onClick:()=>i(l-1),disabled:l===0,children:c.jsx(lx,{className:"h-3.5 w-3.5"})}),c.jsxs("span",{className:"px-1.5 tabular-nums",children:[l+1," / ",E]}),c.jsx(Je,{variant:"ghost",size:"icon-xs",onClick:()=>i(l+1),disabled:l>=E-1,children:c.jsx(rx,{className:"h-3.5 w-3.5"})})]})]})]}):c.jsx("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:c.jsxs("div",{className:"text-center",children:[c.jsx(wi,{className:"mx-auto mb-2 h-8 w-8 opacity-30"}),c.jsx("p",{children:"Select a table to browse rows"})]})})})]})]})}function NR({value:n}){if(n==null)return c.jsx("span",{className:"italic text-muted-foreground/40",children:"NULL"});const s=String(n);if(typeof n=="string"&&(s.startsWith("{")||s.startsWith("[")))try{const l=JSON.parse(s),i=Array.isArray(l)?`[${l.length}]`:`{${Object.keys(l).length}}`;return c.jsxs("details",{className:"cursor-pointer",children:[c.jsx("summary",{className:"text-muted-foreground hover:text-foreground",children:i}),c.jsx("pre",{className:"mt-1 max-h-48 overflow-auto rounded bg-muted p-2 text-[10px] leading-relaxed",children:JSON.stringify(l,null,2)})]})}catch{}return s.startsWith("<blob ")?c.jsx("span",{className:"italic text-muted-foreground/50",children:s}):s.length>120?c.jsxs("span",{className:"cursor-help",title:s,children:[s.slice(0,120),c.jsx("span",{className:"text-muted-foreground",children:"..."})]}):c.jsx(c.Fragment,{children:s})}function iv(){return c.jsx("div",{className:"flex flex-1 items-center justify-center py-20",children:c.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}function _R(){var j;const[n,s]=_.useState(""),[l,i]=_.useState(""),u=fa(),{data:f}=at({queryKey:["dashboard-repos"],queryFn:Te.repos,placeholderData:Bt}),h=((f==null?void 0:f.repos)??[]).find(w=>w.id===n),m=(h==null?void 0:h.enable_embeddings)===1,p=hn({mutationFn:w=>Te.updateRepoSettings(n,{enable_embeddings:w}),onMutate:async w=>{await u.cancelQueries({queryKey:["dashboard-repos"]});const N=u.getQueryData(["dashboard-repos"]);return N&&u.setQueryData(["dashboard-repos"],{repos:N.repos.map(E=>E.id===n?{...E,enable_embeddings:w?1:0}:E)}),{prev:N}},onError:(w,N,E)=>{E!=null&&E.prev&&u.setQueryData(["dashboard-repos"],E.prev)},onSettled:()=>u.invalidateQueries({queryKey:["dashboard-repos"]})}),g=hn({mutationFn:()=>Te.buildContext(n,l)}),v=(f==null?void 0:f.repos)??[];_.useEffect(()=>{!n&&v.length>0&&s(v[0].id)},[n,v]);const b=w=>{w.preventDefault(),!(!n||!l.trim())&&g.mutate()},x=(j=g.data)==null?void 0:j.stats;return c.jsxs(c.Fragment,{children:[c.jsxs(da,{children:[c.jsx("span",{className:"text-sm font-medium",children:"Context"}),c.jsx("div",{className:"ml-auto flex items-center gap-1.5",children:c.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer select-none",children:[c.jsx("span",{className:"text-xs text-muted-foreground",children:"Embeddings"}),c.jsx(qs,{checked:m,onCheckedChange:w=>p.mutate(!!w),disabled:!n||p.isPending})]})})]}),c.jsxs("div",{className:"flex flex-1 min-h-0 flex-col gap-3 py-3",children:[c.jsxs("form",{onSubmit:b,className:"shrink-0 flex flex-col gap-2 px-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("select",{value:n,onChange:w=>s(w.target.value),className:"h-8 rounded-md border border-border bg-background px-2 text-xs focus:outline-none focus:ring-1 focus:ring-ring",children:[c.jsx("option",{value:"",children:"Select repo..."}),v.map(w=>c.jsx("option",{value:w.id,children:w.name},w.id))]}),c.jsx("input",{type:"text",value:l,onChange:w=>i(w.target.value),placeholder:"Describe your goal...",className:"h-8 flex-1 rounded-md border border-border bg-background px-3 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),c.jsxs(Je,{type:"submit",size:"sm",className:"h-8 gap-1.5 text-xs",disabled:!n||!l.trim()||g.isPending,children:[g.isPending?c.jsx("div",{className:"h-3 w-3 animate-spin rounded-full border-2 border-current border-t-transparent"}):c.jsx(ah,{className:"h-3 w-3"}),"Query"]})]}),x&&c.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-muted-foreground",children:[c.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5 tabular-nums",children:[x.files_in_context," files"]}),c.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5 tabular-nums",children:[x.duration_ms,"ms"]}),c.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5",children:x.cached?"cached":"fresh"}),!x.index_fresh&&c.jsx("span",{className:"rounded bg-destructive/15 px-1.5 py-0.5 text-destructive",children:"stale"})]})]}),g.isError&&c.jsx("div",{className:"shrink-0 mx-3 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-xs text-destructive",children:g.error.message}),g.isPending?c.jsx("div",{className:"flex items-center justify-center py-20",children:c.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):g.data?c.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:c.jsxs("table",{className:"w-full border-collapse text-xs",children:[c.jsx("thead",{className:"sticky top-0 z-10",children:c.jsxs("tr",{className:"bg-muted/60 text-left",children:[c.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),c.jsxs("th",{className:"border-b border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:["Context Pack",c.jsxs("span",{className:"ml-2 font-normal text-muted-foreground/60",children:[g.data.context_pack.split(`
|
|
340
|
+
`).length," lines"]})]})]})}),c.jsx("tbody",{children:g.data.context_pack.split(`
|
|
341
|
+
`).map((w,N)=>c.jsxs("tr",{className:"group hover:bg-accent/30",children:[c.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-0 text-center font-mono text-[10px] text-muted-foreground/50 tabular-nums select-none align-top leading-5",children:N+1}),c.jsx("td",{className:"border-b border-border px-3 py-0 font-mono leading-5 whitespace-pre-wrap break-all",children:w||" "})]},N))})]})}):c.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-muted-foreground",children:[c.jsx(ah,{className:"mb-2 h-6 w-6 opacity-30"}),c.jsx("p",{className:"text-xs",children:"Select a repo and describe your goal"})]})]})]})}function hi({label:n,used:s,limit:l,locked:i,description:u}){if(i)return c.jsxs(bi,{className:"border-border bg-background py-4 shadow-none opacity-60",children:[c.jsxs(vi,{className:"pb-1",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:n}),c.jsx("span",{className:"rounded bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-medium text-amber-600 dark:text-amber-400",children:"Pro"})]}),c.jsx(xi,{className:"mt-1 text-2xl font-semibold tabular-nums",children:"—"})]}),c.jsx(Si,{className:"pt-0",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"Upgrade to Pro"})})]});if(!l||l<=0)return c.jsxs(bi,{className:"border-border bg-background py-4 shadow-none",children:[c.jsxs(vi,{className:"pb-1",children:[c.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:n}),c.jsx(xi,{className:"mt-1 text-2xl font-semibold tabular-nums",children:s.toLocaleString()})]}),c.jsx(Si,{className:"pt-0",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"No quota (local only)"})})]});const f=Math.min(s/l*100,100),h=f>90?"bg-destructive":f>70?"bg-yellow-500":"bg-primary";return c.jsxs(bi,{className:"border-border bg-background py-4 shadow-none",children:[c.jsxs(vi,{className:"pb-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:n}),c.jsxs("p",{className:"text-xs text-muted-foreground/70 tabular-nums",children:[s.toLocaleString()," / ",l.toLocaleString()]})]}),c.jsx(xi,{className:"mt-1 text-2xl font-semibold tabular-nums",children:s.toLocaleString()})]}),c.jsxs(Si,{className:"pt-0",children:[c.jsx("div",{className:"mt-1 h-1.5 overflow-hidden rounded-full bg-muted",children:c.jsx("div",{className:`h-full rounded-full ${h}`,style:{width:`${f}%`}})}),u&&c.jsx("p",{className:"mt-1.5 text-[10px] text-muted-foreground/60",children:u})]})]})}function wR(){const{data:n,isLoading:s}=at({queryKey:["dashboard-usage"],queryFn:Te.localUsage,refetchInterval:1e4,placeholderData:Bt}),i=((n==null?void 0:n.plan)??"free")==="pro",u=n==null?void 0:n.quota,f=n==null?void 0:n.today;return c.jsxs(c.Fragment,{children:[c.jsx(da,{children:c.jsx("span",{className:"text-sm font-medium",children:"Usage"})}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-auto py-4 md:gap-6 md:py-6",children:[c.jsx("section",{className:"px-4 lg:px-6",children:c.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[c.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Today's usage"}),c.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Local counters",n!=null&&n.synced_at?` · last synced ${new Date(n.synced_at).toLocaleTimeString()}`:" · not synced"]})]})}),s||!f?c.jsx("div",{className:"flex items-center justify-center py-16",children:c.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):c.jsxs("section",{className:"grid grid-cols-1 gap-4 px-4 lg:px-6 @xl/main:grid-cols-2 @3xl/main:grid-cols-3",children:[c.jsx(hi,{label:"Context Queries",used:f.context_queries}),c.jsx(hi,{label:"Repos Indexed",used:f.repos_indexed}),c.jsx(hi,{label:"Embedding Requests",used:f.embedding_requests,limit:u==null?void 0:u.embeddingRequests,locked:!i,description:"API calls to Voyage. Each batch = 1 request."}),c.jsx(hi,{label:"Embedding Chunks",used:f.embedding_chunks,limit:u==null?void 0:u.embeddingChunks,locked:!i,description:"Code chunks sent for vector embedding."}),c.jsx(hi,{label:"Purpose Summaries",used:f.purpose_requests,limit:u==null?void 0:u.purposeRequests,locked:!i,description:"API calls to generate file summaries. Re-indexing re-counts."})]})]})]})}function ER({children:n}){var l;const s=at({queryKey:["auth-status"],queryFn:Te.authStatus,placeholderData:Bt});return!s.isLoading&&!((l=s.data)!=null&&l.authenticated)?c.jsx("div",{className:"flex flex-col items-center justify-center py-16 gap-4",children:c.jsxs("div",{className:"rounded-xl border bg-card p-8 text-center max-w-sm",children:[c.jsx("h2",{className:"text-lg font-semibold text-card-foreground",children:"Cloud Not Connected"}),c.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Authenticate with the LENS cloud to manage API keys, usage, and billing."}),c.jsx("code",{className:"mt-4 block rounded-lg bg-muted px-4 py-2 text-sm font-mono",children:"lens login"})]})}):c.jsx(c.Fragment,{children:n})}const ov=["Everything in Free","Voyage embeddings","Purpose summaries","Vocab clusters"];function CR(){const[n,s]=_.useState(null),l=fa();_.useEffect(()=>{(new URLSearchParams(window.location.search).get("success")==="true"||document.referrer.includes("stripe.com")||document.referrer.includes("billing.stripe"))&&(Te.refreshPlan().then(()=>{l.invalidateQueries({queryKey:["cloud-subscription"]}),l.invalidateQueries({queryKey:["dashboard-usage"]})}).catch(()=>{}),window.history.replaceState({},"",window.location.pathname))},[l]);const{data:i,isLoading:u}=at({queryKey:["cloud-subscription"],queryFn:Te.cloudSubscription});if(u)return c.jsxs("div",{className:"space-y-8 animate-pulse",children:[c.jsxs("div",{children:[c.jsx("div",{className:"h-7 w-32 rounded bg-muted"}),c.jsx("div",{className:"mt-2 h-4 w-64 rounded bg-muted"})]}),c.jsx("div",{className:"rounded-xl border bg-card p-6",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"h-4 w-24 rounded bg-muted"}),c.jsx("div",{className:"mt-2 h-6 w-20 rounded bg-muted"})]}),c.jsx("div",{className:"h-7 w-16 rounded-full bg-muted"})]})}),c.jsxs("div",{children:[c.jsx("div",{className:"mb-4 h-4 w-28 rounded bg-muted"}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[0,1,2].map(C=>c.jsxs("div",{className:"rounded-xl border border-border bg-card p-6",children:[c.jsx("div",{className:"h-5 w-20 rounded bg-muted"}),c.jsx("div",{className:"mt-3 h-8 w-16 rounded bg-muted"}),c.jsx("div",{className:"mt-4 space-y-2",children:[0,1,2].map(D=>c.jsx("div",{className:"h-4 w-3/4 rounded bg-muted"},D))})]},C))})]})]});const f=i==null?void 0:i.subscription,h=(f==null?void 0:f.plan)??"free",m=(f==null?void 0:f.status)==="active",p=f!=null&&f.currentPeriodEnd?new Date(f.currentPeriodEnd).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):null;async function g(C){s(C);try{const D=await Te.cloudCheckout(C);D.url&&(window.location.href=D.url)}finally{s(null)}}async function v(){s("portal");try{const C=await Te.cloudPortal();C.url&&(window.location.href=C.url)}finally{s(null)}}const b=h==="free",x=h==="pro",j=x&&(f==null?void 0:f.cancelAtPeriodEnd),w=j?"Canceling":f!=null&&f.status?f.status.charAt(0).toUpperCase()+f.status.slice(1):"Active",N=j?"border-amber-500/30 bg-amber-500/10":m?"border-success/30 bg-success/10":"border-border bg-muted",E=j?"text-amber-600 dark:text-amber-400":m?"text-success":"text-muted-foreground";return c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Billing"}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Manage your subscription and payment method."})]}),c.jsxs("div",{className:"rounded-xl border bg-card p-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Current Plan"}),c.jsxs("p",{className:"mt-1 text-xl font-bold capitalize",children:[h," ",x&&!j&&c.jsx("span",{className:"text-sm font-normal text-muted-foreground",children:"— $9/mo"})]})]}),c.jsx("div",{className:`inline-flex items-center rounded-full border px-3 py-1 ${N}`,children:c.jsx("span",{className:`text-xs font-medium ${E}`,children:w})})]}),j&&p&&c.jsxs("div",{className:"mt-4 rounded-lg border border-amber-500/20 bg-amber-500/5 p-4",children:[c.jsxs("p",{className:"text-sm font-medium text-foreground",children:["Your Pro access ends ",p]}),c.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"You'll lose Voyage embeddings, purpose summaries, and vocab clusters. Resubscribe anytime to keep your Pro features."}),c.jsx("div",{className:"mt-3 flex gap-3",children:c.jsx("button",{onClick:v,disabled:n!==null,className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50",children:n==="portal"?"Loading...":"Resubscribe"})})]}),!j&&p&&c.jsx("div",{className:"mt-4 flex items-center gap-4 border-t pt-4",children:c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Next billing date:"," ",c.jsx("span",{className:"text-foreground",children:p})]})}),x&&!j&&(f==null?void 0:f.stripeCustomerId)&&c.jsx("div",{className:"mt-4 flex gap-3",children:c.jsx("button",{onClick:v,disabled:n!==null,className:"rounded-lg bg-secondary px-4 py-2 text-sm hover:bg-accent disabled:opacity-50",children:n==="portal"?"Loading...":"Manage Subscription"})})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"mb-4 text-sm font-semibold",children:"Available Plans"}),c.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[c.jsxs("div",{className:`rounded-xl border p-6 ${b?"border-primary/50 ring-1 ring-primary/20":"border-border"} bg-card`,children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h4",{className:"font-semibold",children:"Free"}),b&&c.jsx("span",{className:"rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary",children:"Current"})]}),c.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[c.jsx("span",{className:"text-3xl font-bold",children:"$0"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"forever"})]}),c.jsx("ul",{className:"mt-4 space-y-2",children:["Unlimited local context queries","TF-IDF + Import graph","MCP integration"].map(C=>c.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(Vl,{className:"size-4 text-success"})," ",C]},C))}),x&&c.jsx("button",{onClick:v,disabled:n!==null,className:"mt-6 w-full rounded-lg bg-secondary py-2.5 text-sm font-medium hover:bg-accent disabled:opacity-50",children:n==="portal"?"Loading...":"Downgrade to Free"})]}),c.jsxs("div",{className:`rounded-xl border p-6 ${x?"border-primary/50 ring-1 ring-primary/20":"border-border"} bg-card`,children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h4",{className:"font-semibold",children:"Pro"}),x&&c.jsx("span",{className:"rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary",children:"Current"})]}),c.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[c.jsx("span",{className:"text-3xl font-bold",children:"$9"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"/mo"})]}),c.jsx("ul",{className:"mt-4 space-y-2",children:ov.map(C=>c.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(Vl,{className:"size-4 text-success"})," ",C]},C))}),(b||j)&&c.jsx("button",{onClick:()=>g("monthly"),disabled:n!==null,className:"mt-6 w-full rounded-lg bg-primary py-2.5 text-sm font-semibold text-primary-foreground hover:bg-primary/90 disabled:opacity-50",children:n==="monthly"?"Loading...":j?"Resubscribe Monthly":"Go Monthly"})]}),c.jsxs("div",{className:"rounded-xl border border-border bg-card p-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h4",{className:"font-semibold",children:"Pro Yearly"}),c.jsx("span",{className:"rounded-full bg-success/15 px-2.5 py-0.5 text-xs font-semibold text-success",children:"Save 17%"})]}),c.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[c.jsx("span",{className:"text-3xl font-bold",children:"$90"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"/yr"})]}),c.jsx("ul",{className:"mt-4 space-y-2",children:ov.map(C=>c.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(Vl,{className:"size-4 text-success"})," ",C]},C))}),(b||j)&&c.jsx("button",{onClick:()=>g("yearly"),disabled:n!==null,className:"mt-6 w-full rounded-lg bg-primary py-2.5 text-sm font-semibold text-primary-foreground hover:bg-primary/90 disabled:opacity-50",children:n==="yearly"?"Loading...":j?"Switch to Yearly":"Go Yearly"})]})]})]}),c.jsxs("a",{href:"mailto:support@lens-engine.com?subject=LENS Enterprise Inquiry",className:"flex items-center justify-between rounded-xl border border-border bg-card p-5 transition-colors hover:bg-accent",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-semibold",children:"Enterprise"}),c.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:"Dedicated support, custom integrations, SLA guarantee"})]}),c.jsxs("span",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[c.jsx(S_,{className:"size-4"})," Contact Sales"]})]})]})}function RR(){return c.jsxs(c.Fragment,{children:[c.jsx(da,{children:c.jsx("h1",{className:"text-sm font-semibold",children:"Billing"})}),c.jsx("main",{className:"flex-1 overflow-auto p-4 lg:p-6",children:c.jsx(ER,{children:c.jsx(CR,{})})})]})}const ma=hN({component:FC}),TR=ha({getParentRoute:()=>ma,path:"/",component:x0}),MR=ha({getParentRoute:()=>ma,path:"/repos",component:ZC}),AR=ha({getParentRoute:()=>ma,path:"/repos/$repoId",component:$C}),OR=ha({getParentRoute:()=>ma,path:"/requests",component:xR}),kR=ha({getParentRoute:()=>ma,path:"/data",component:jR}),zR=ha({getParentRoute:()=>ma,path:"/context",component:_R}),DR=ha({getParentRoute:()=>ma,path:"/usage",component:wR}),LR=ha({getParentRoute:()=>ma,path:"/billing",component:RR}),UR=ma.addChildren([TR,MR,AR,OR,kR,zR,DR,LR]),BR=SN({routeTree:UR,basepath:"/dashboard",defaultNotFoundComponent:()=>c.jsx(x0,{})}),qR=new _2({defaultOptions:{queries:{refetchOnWindowFocus:!0,staleTime:5e3,retry:1}}});e2.createRoot(document.getElementById("root")).render(c.jsx(_.StrictMode,{children:c.jsx(w2,{client:qR,children:c.jsx(_N,{router:BR})})}));
|