const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-ZuErKIvO.js","assets/time-CuFqSW_4.js","assets/quotes.belo-DgMgr906.js"])))=>i.map(i=>d[i]); var sg=a=>{throw TypeError(a)};var lf=(a,i,s)=>i.has(a)||sg("Cannot "+s);var R=(a,i,s)=>(lf(a,i,"read from private field"),s?s.call(a):i.get(a)),dt=(a,i,s)=>i.has(a)?sg("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,s),lt=(a,i,s,o)=>(lf(a,i,"write to private field"),o?o.call(a,s):i.set(a,s),s),xt=(a,i,s)=>(lf(a,i,"access private method"),s);var po=(a,i,s,o)=>({set _(c){lt(a,i,c,s)},get _(){return R(a,i,o)}});function Wb(a,i){for(var s=0;so[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();var BR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var sf={exports:{}},Cs={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ug;function $b(){if(ug)return Cs;ug=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var y in c)y!=="key"&&(f[y]=c[y])}else f=c;return c=f.ref,{$$typeof:a,type:o,key:h,ref:c!==void 0?c:null,props:f}}return Cs.Fragment=i,Cs.jsx=s,Cs.jsxs=s,Cs}var og;function tS(){return og||(og=1,sf.exports=$b()),sf.exports}var tt=tS(),uf={exports:{}},vt={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var rg;function eS(){if(rg)return vt;rg=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),S=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function q(T,k,$){this.props=T,this.context=k,this.refs=A,this.updater=$||E}q.prototype.isReactComponent={},q.prototype.setState=function(T,k){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,k,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function B(){}B.prototype=q.prototype;function Z(T,k,$){this.props=T,this.context=k,this.refs=A,this.updater=$||E}var w=Z.prototype=new B;w.constructor=Z,C(w,q.prototype),w.isPureReactComponent=!0;var X=Array.isArray;function P(){}var N={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function K(T,k,$){var nt=$.ref;return{$$typeof:a,type:T,key:k,ref:nt!==void 0?nt:null,props:$}}function J(T,k){return K(T.type,k,T.props)}function I(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function et(T){var k={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function($){return k[$]})}var it=/\/+/g;function st(T,k){return typeof T=="object"&&T!==null&&T.key!=null?et(""+T.key):k.toString(36)}function gt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(P,P):(T.status="pending",T.then(function(k){T.status==="pending"&&(T.status="fulfilled",T.value=k)},function(k){T.status==="pending"&&(T.status="rejected",T.reason=k)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function D(T,k,$,nt,at){var ht=typeof T;(ht==="undefined"||ht==="boolean")&&(T=null);var Rt=!1;if(T===null)Rt=!0;else switch(ht){case"bigint":case"string":case"number":Rt=!0;break;case"object":switch(T.$$typeof){case a:case i:Rt=!0;break;case b:return Rt=T._init,D(Rt(T._payload),k,$,nt,at)}}if(Rt)return at=at(T),Rt=nt===""?"."+st(T,0):nt,X(at)?($="",Rt!=null&&($=Rt.replace(it,"$&/")+"/"),D(at,k,$,"",function(Ke){return Ke})):at!=null&&(I(at)&&(at=J(at,$+(at.key==null||T&&T.key===at.key?"":(""+at.key).replace(it,"$&/")+"/")+Rt)),k.push(at)),1;Rt=0;var Bt=nt===""?".":nt+":";if(X(T))for(var pt=0;pt>>1,W=D[At];if(0>>1;Atc($,ct))ntc(at,$)?(D[At]=at,D[nt]=ct,At=nt):(D[At]=$,D[k]=ct,At=k);else if(ntc(at,ct))D[At]=at,D[nt]=ct,At=nt;else break t}}return G}function c(D,G){var ct=D.sortIndex-G.sortIndex;return ct!==0?ct:D.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();a.unstable_now=function(){return h.now()-y}}var g=[],m=[],b=1,p=null,S=3,x=!1,E=!1,C=!1,A=!1,q=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function w(D){for(var G=s(m);G!==null;){if(G.callback===null)o(m);else if(G.startTime<=D)o(m),G.sortIndex=G.expirationTime,i(g,G);else break;G=s(m)}}function X(D){if(C=!1,w(D),!E)if(s(g)!==null)E=!0,P||(P=!0,et());else{var G=s(m);G!==null&>(X,G.startTime-D)}}var P=!1,N=-1,z=5,K=-1;function J(){return A?!0:!(a.unstable_now()-KD&&J());){var At=p.callback;if(typeof At=="function"){p.callback=null,S=p.priorityLevel;var W=At(p.expirationTime<=D);if(D=a.unstable_now(),typeof W=="function"){p.callback=W,w(D),G=!0;break e}p===s(g)&&o(g),w(D)}else o(g);p=s(g)}if(p!==null)G=!0;else{var T=s(m);T!==null&>(X,T.startTime-D),G=!1}}break t}finally{p=null,S=ct,x=!1}G=void 0}}finally{G?et():P=!1}}}var et;if(typeof Z=="function")et=function(){Z(I)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,st=it.port2;it.port1.onmessage=I,et=function(){st.postMessage(null)}}else et=function(){q(I,0)};function gt(D,G){N=q(function(){D(a.unstable_now())},G)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.unstable_forceFrameRate=function(D){0>D||125At?(D.sortIndex=ct,i(m,D),s(g)===null&&D===s(m)&&(C?(B(N),N=-1):C=!0,gt(X,ct-At))):(D.sortIndex=W,i(g,D),E||x||(E=!0,P||(P=!0,et()))),D},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(D){var G=S;return function(){var ct=S;S=G;try{return D.apply(this,arguments)}finally{S=ct}}}})(cf)),cf}var dg;function aS(){return dg||(dg=1,rf.exports=nS()),rf.exports}var ff={exports:{}},ye={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var hg;function lS(){if(hg)return ye;hg=1;var a=Ks();function i(g){var m="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ff.exports=lS(),ff.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yg;function iS(){if(yg)return As;yg=1;var a=aS(),i=Ks(),s=Ep();function o(t){var e="https://react.dev/errors/"+t;if(1W||(t.current=At[W],At[W]=null,W--)}function $(t,e){W++,At[W]=t.current,t.current=e}var nt=T(null),at=T(null),ht=T(null),Rt=T(null);function Bt(t,e){switch($(ht,e),$(at,t),$(nt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?zy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=zy(e),t=Oy(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}k(nt),$(nt,t)}function pt(){k(nt),k(at),k(ht)}function Ke(t){t.memoizedState!==null&&$(Rt,t);var e=nt.current,n=Oy(e,t.type);e!==n&&($(at,t),$(nt,n))}function _e(t){at.current===t&&(k(nt),k(at)),Rt.current===t&&(k(Rt),Rs._currentValue=ct)}var Le,xn;function ve(t){if(Le===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Le=e&&e[1]||"",xn=-1)":-1u||_[l]!==U[u]){var Q=` `+_[l].replace(" at new "," at ");return t.displayName&&Q.includes("")&&(Q=Q.replace("",t.displayName)),Q}while(1<=l&&0<=u);break}}}finally{Li=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ve(n):""}function Ws(t,e){switch(t.tag){case 26:case 27:case 5:return ve(t.type);case 16:return ve("Lazy");case 13:return t.child!==e&&e!==null?ve("Suspense Fallback"):ve("Suspense");case 19:return ve("SuspenseList");case 0:case 15:return Tl(t.type,!1);case 11:return Tl(t.type.render,!1);case 1:return Tl(t.type,!0);case 31:return ve("Activity");default:return""}}function _n(t){try{var e="",n=null;do e+=Ws(t,n),n=t,t=t.return;while(t);return e}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var qa=Object.prototype.hasOwnProperty,sn=a.unstable_scheduleCallback,Ui=a.unstable_cancelCallback,$s=a.unstable_shouldYield,Xo=a.unstable_requestPaint,me=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,oe=a.unstable_ImmediatePriority,fn=a.unstable_UserBlockingPriority,Ml=a.unstable_NormalPriority,Lv=a.unstable_LowPriority,rd=a.unstable_IdlePriority,Uv=a.log,Nv=a.unstable_setDisableYieldValue,Ni=null,Ue=null;function Fn(t){if(typeof Uv=="function"&&Nv(t),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(Ni,t)}catch{}}var Ne=Math.clz32?Math.clz32:Hv,jv=Math.log,Bv=Math.LN2;function Hv(t){return t>>>=0,t===0?32:31-(jv(t)/Bv|0)|0}var tu=256,eu=262144,nu=4194304;function Qa(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function au(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,r=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~r,l!==0?u=Qa(l):(d&=v,d!==0?u=Qa(d):n||(n=v&~t,n!==0&&(u=Qa(n))))):(v=l&~r,v!==0?u=Qa(v):d!==0?u=Qa(d):n||(n=l&~t,n!==0&&(u=Qa(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function ji(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 cd(){var t=nu;return nu<<=1,(nu&62914560)===0&&(nu=4194304),t}function Ko(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Bi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Qv(t,e,n,l,u,r){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,_=t.expirationTimes,U=t.hiddenUpdates;for(n=d&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Kv=/[\n"\\]/g;function Je(t){return t.replace(Kv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Wo(t,e,n,l,u,r,d,v){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ze(e)):t.value!==""+Ze(e)&&(t.value=""+Ze(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?$o(t,d,Ze(e)):n!=null?$o(t,d,Ze(n)):l!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Ze(v):t.removeAttribute("name")}function Rd(t,e,n,l,u,r,d,v){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Io(t);return}n=n!=null?""+Ze(n):"",e=e!=null?""+Ze(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=v?t.checked:!!l,t.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Io(t)}function $o(t,e,n){e==="number"&&su(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Dl(t,e,n,l){if(t=t.options,e){e={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lr=!1;if(Tn)try{var Gi={};Object.defineProperty(Gi,"passive",{get:function(){lr=!0}}),window.addEventListener("test",Gi,Gi),window.removeEventListener("test",Gi,Gi)}catch{lr=!1}var Wn=null,ir=null,ou=null;function Od(){if(ou)return ou;var t,e=ir,n=e.length,l,u="value"in Wn?Wn.value:Wn.textContent,r=u.length;for(t=0;t=Vi),jd=" ",Bd=!1;function Hd(t,e){switch(t){case"keyup":return S0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var jl=!1;function _0(t,e){switch(t){case"compositionend":return qd(e);case"keypress":return e.which!==32?null:(Bd=!0,jd);case"textInput":return t=e.data,t===jd&&Bd?null:t;default:return null}}function R0(t,e){if(jl)return t==="compositionend"||!cr&&Hd(t,e)?(t=Od(),ou=ir=Wn=null,jl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Zd(n)}}function Pd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Pd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Fd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=su(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=su(t.document)}return e}function hr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var w0=Tn&&"documentMode"in document&&11>=document.documentMode,Bl=null,mr=null,Ji=null,yr=!1;function Id(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yr||Bl==null||Bl!==su(l)||(l=Bl,"selectionStart"in l&&hr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ji&&Zi(Ji,l)||(Ji=l,l=eo(mr,"onSelect"),0>=d,u-=d,dn=1<<32-Ne(e)+u|n<St?(Ct=ft,ft=null):Ct=ft.sibling;var Dt=j(O,ft,L[St],Y);if(Dt===null){ft===null&&(ft=Ct);break}t&&ft&&Dt.alternate===null&&e(O,ft),M=r(Dt,M,St),wt===null?mt=Dt:wt.sibling=Dt,wt=Dt,ft=Ct}if(St===L.length)return n(O,ft),zt&&Cn(O,St),mt;if(ft===null){for(;StSt?(Ct=ft,ft=null):Ct=ft.sibling;var Sa=j(O,ft,Dt.value,Y);if(Sa===null){ft===null&&(ft=Ct);break}t&&ft&&Sa.alternate===null&&e(O,ft),M=r(Sa,M,St),wt===null?mt=Sa:wt.sibling=Sa,wt=Sa,ft=Ct}if(Dt.done)return n(O,ft),zt&&Cn(O,St),mt;if(ft===null){for(;!Dt.done;St++,Dt=L.next())Dt=V(O,Dt.value,Y),Dt!==null&&(M=r(Dt,M,St),wt===null?mt=Dt:wt.sibling=Dt,wt=Dt);return zt&&Cn(O,St),mt}for(ft=l(ft);!Dt.done;St++,Dt=L.next())Dt=H(ft,O,St,Dt.value,Y),Dt!==null&&(t&&Dt.alternate!==null&&ft.delete(Dt.key===null?St:Dt.key),M=r(Dt,M,St),wt===null?mt=Dt:wt.sibling=Dt,wt=Dt);return t&&ft.forEach(function(Ib){return e(O,Ib)}),zt&&Cn(O,St),mt}function Gt(O,M,L,Y){if(typeof L=="object"&&L!==null&&L.type===C&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case x:t:{for(var mt=L.key;M!==null;){if(M.key===mt){if(mt=L.type,mt===C){if(M.tag===7){n(O,M.sibling),Y=u(M,L.props.children),Y.return=O,O=Y;break t}}else if(M.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===z&&Ia(mt)===M.type){n(O,M.sibling),Y=u(M,L.props),ts(Y,L),Y.return=O,O=Y;break t}n(O,M);break}else e(O,M);M=M.sibling}L.type===C?(Y=Ka(L.props.children,O.mode,Y,L.key),Y.return=O,O=Y):(Y=vu(L.type,L.key,L.props,null,O.mode,Y),ts(Y,L),Y.return=O,O=Y)}return d(O);case E:t:{for(mt=L.key;M!==null;){if(M.key===mt)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){n(O,M.sibling),Y=u(M,L.children||[]),Y.return=O,O=Y;break t}else{n(O,M);break}else e(O,M);M=M.sibling}Y=_r(L,O.mode,Y),Y.return=O,O=Y}return d(O);case z:return L=Ia(L),Gt(O,M,L,Y)}if(gt(L))return rt(O,M,L,Y);if(et(L)){if(mt=et(L),typeof mt!="function")throw Error(o(150));return L=mt.call(L),yt(O,M,L,Y)}if(typeof L.then=="function")return Gt(O,M,Tu(L),Y);if(L.$$typeof===Z)return Gt(O,M,xu(O,L),Y);Mu(O,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(n(O,M.sibling),Y=u(M,L),Y.return=O,O=Y):(n(O,M),Y=xr(L,O.mode,Y),Y.return=O,O=Y),d(O)):n(O,M)}return function(O,M,L,Y){try{$i=0;var mt=Gt(O,M,L,Y);return Jl=null,mt}catch(ft){if(ft===Zl||ft===Ru)throw ft;var wt=Be(29,ft,null,O.mode);return wt.lanes=Y,wt.return=O,wt}finally{}}}var $a=Sh(!0),xh=Sh(!1),aa=!1;function Ur(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function la(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ia(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Lt&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=pu(t),lh(t,null,n),e}return gu(t,l,e,n),pu(t)}function es(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,dd(t,n)}}function jr(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=d:r=r.next=d,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Br=!1;function ns(){if(Br){var t=Kl;if(t!==null)throw t}}function as(t,e,n,l){Br=!1;var u=t.updateQueue;aa=!1;var r=u.firstBaseUpdate,d=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var _=v,U=_.next;_.next=null,d===null?r=U:d.next=U,d=_;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,v=Q.lastBaseUpdate,v!==d&&(v===null?Q.firstBaseUpdate=U:v.next=U,Q.lastBaseUpdate=_))}if(r!==null){var V=u.baseState;d=0,Q=U=_=null,v=r;do{var j=v.lane&-536870913,H=j!==v.lane;if(H?(Mt&j)===j:(l&j)===j){j!==0&&j===Xl&&(Br=!0),Q!==null&&(Q=Q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var rt=t,yt=v;j=e;var Gt=n;switch(yt.tag){case 1:if(rt=yt.payload,typeof rt=="function"){V=rt.call(Gt,V,j);break t}V=rt;break t;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=yt.payload,j=typeof rt=="function"?rt.call(Gt,V,j):rt,j==null)break t;V=p({},V,j);break t;case 2:aa=!0}}j=v.callback,j!==null&&(t.flags|=64,H&&(t.flags|=8192),H=u.callbacks,H===null?u.callbacks=[j]:H.push(j))}else H={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Q===null?(U=Q=H,_=V):Q=Q.next=H,d|=j;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;H=v,v=H.next,H.next=null,u.lastBaseUpdate=H,u.shared.pending=null}}while(!0);Q===null&&(_=V),u.baseState=_,u.firstBaseUpdate=U,u.lastBaseUpdate=Q,r===null&&(u.shared.lanes=0),ca|=d,t.lanes=d,t.memoizedState=V}}function _h(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Rh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;tr?r:8;var d=D.T,v={};D.T=v,nc(t,!1,e,n);try{var _=u(),U=D.S;if(U!==null&&U(v,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var Q=Q0(_,l);ss(t,e,Q,Ye(t))}else ss(t,e,l,Ye(t))}catch(V){ss(t,e,{then:function(){},status:"rejected",reason:V},Ye())}finally{G.p=r,d!==null&&v.types!==null&&(d.types=v.types),D.T=d}}function K0(){}function tc(t,e,n,l){if(t.tag!==5)throw Error(o(476));var u=em(t).queue;tm(t,u,e,ct,n===null?K0:function(){return nm(t),n(l)})}function em(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ct,baseState:ct,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:ct},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function nm(t){var e=em(t);e.next===null&&(e=t.alternate.memoizedState),ss(t,e.next.queue,{},Ye())}function ec(){return fe(Rs)}function am(){return It().memoizedState}function lm(){return It().memoizedState}function Z0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ye();t=la(n);var l=ia(e,t,n);l!==null&&(ze(l,e,n),es(l,e,n)),e={cache:Or()},t.payload=e;return}e=e.return}}function J0(t,e,n){var l=Ye();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ju(t)?sm(e,n):(n=br(t,e,n,l),n!==null&&(ze(n,t,l),um(n,e,l)))}function im(t,e,n){var l=Ye();ss(t,e,n,l)}function ss(t,e,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ju(t))sm(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var d=e.lastRenderedState,v=r(d,n);if(u.hasEagerState=!0,u.eagerState=v,je(v,d))return gu(t,e,u,0),Yt===null&&yu(),!1}catch{}finally{}if(n=br(t,e,u,l),n!==null)return ze(n,t,l),um(n,e,l),!0}return!1}function nc(t,e,n,l){if(l={lane:2,revertLane:Uc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ju(t)){if(e)throw Error(o(479))}else e=br(t,n,l,2),e!==null&&ze(e,t,2)}function ju(t){var e=t.alternate;return t===bt||e!==null&&e===bt}function sm(t,e){Fl=zu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function um(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,dd(t,n)}}var us={readContext:fe,use:Du,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt};us.useEffectEvent=Zt;var om={readContext:fe,use:Du,useCallback:function(t,e){return be().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Xh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Uu(4194308,4,Ph.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Uu(4194308,4,t,e)},useInsertionEffect:function(t,e){Uu(4,2,t,e)},useMemo:function(t,e){var n=be();e=e===void 0?null:e;var l=t();if(tl){Fn(!0);try{t()}finally{Fn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=be();if(n!==void 0){var u=n(e);if(tl){Fn(!0);try{n(e)}finally{Fn(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=J0.bind(null,bt,t),[l.memoizedState,t]},useRef:function(t){var e=be();return t={current:t},e.memoizedState=t},useState:function(t){t=Pr(t);var e=t.queue,n=im.bind(null,bt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Wr,useDeferredValue:function(t,e){var n=be();return $r(n,t,e)},useTransition:function(){var t=Pr(!1);return t=tm.bind(null,bt,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=bt,u=be();if(zt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Yt===null)throw Error(o(349));(Mt&127)!==0||zh(l,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,Xh(wh.bind(null,l,r,t),[t]),l.flags|=2048,Wl(9,{destroy:void 0},Oh.bind(null,l,r,n,e),null),n},useId:function(){var t=be(),e=Yt.identifierPrefix;if(zt){var n=hn,l=dn;n=(l&~(1<<32-Ne(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ou++,0<\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?d.createElement(u,{is:l.is}):d.createElement(u)}}r[re]=e,r[Re]=l;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=r;t:switch(he(r,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Ln(e)}}return Vt(e),gc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Ln(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=ht.current,kl(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,u=ce,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[re]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Cy(t.nodeValue,n)),t||ea(e,!0)}else t=no(t).createTextNode(l),t[re]=e,e.stateNode=t}return Vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=kl(e),n!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[re]=e}else Za(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else n=Mr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(qe(e),e):(qe(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Vt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=kl(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[re]=e}else Za(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),u=!1}else u=Mr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(qe(e),e):(qe(e),null)}return qe(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Gu(e,e.updateQueue),Vt(e),null);case 4:return pt(),t===null&&Hc(e.stateNode.containerInfo),Vt(e),null;case 10:return zn(e.type),Vt(e),null;case 19:if(k(Ft),l=e.memoizedState,l===null)return Vt(e),null;if(u=(e.flags&128)!==0,r=l.rendering,r===null)if(u)rs(l,!1);else{if(Jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Au(t),r!==null){for(e.flags|=128,rs(l,!1),t=r.updateQueue,e.updateQueue=t,Gu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)ih(n,t),n=n.sibling;return $(Ft,Ft.current&1|2),zt&&Cn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&me()>Ku&&(e.flags|=128,u=!0,rs(l,!1),e.lanes=4194304)}else{if(!u)if(t=Au(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Gu(e,t),rs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!zt)return Vt(e),null}else 2*me()-l.renderingStartTime>Ku&&n!==536870912&&(e.flags|=128,u=!0,rs(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(t=l.last,t!==null?t.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=me(),t.sibling=null,n=Ft.current,$(Ft,u?n&1|2:n&1),zt&&Cn(e,l.treeForkCount),t):(Vt(e),null);case 22:case 23:return qe(e),qr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),n=e.updateQueue,n!==null&&Gu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&k(Fa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),zn(Wt),Vt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function $0(t,e){switch(Er(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return zn(Wt),pt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return _e(e),null;case 31:if(e.memoizedState!==null){if(qe(e),e.alternate===null)throw Error(o(340));Za()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(qe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Za()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return k(Ft),null;case 4:return pt(),null;case 10:return zn(e.type),null;case 22:case 23:return qe(e),qr(),t!==null&&k(Fa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return zn(Wt),null;case 25:return null;default:return null}}function Dm(t,e){switch(Er(e),e.tag){case 3:zn(Wt),pt();break;case 26:case 27:case 5:_e(e);break;case 4:pt();break;case 31:e.memoizedState!==null&&qe(e);break;case 13:qe(e);break;case 19:k(Ft);break;case 10:zn(e.type);break;case 22:case 23:qe(e),qr(),t!==null&&k(Fa);break;case 24:zn(Wt)}}function cs(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){l=void 0;var r=n.create,d=n.inst;l=r(),d.destroy=l}n=n.next}while(n!==u)}}catch(v){jt(e,e.return,v)}}function oa(t,e,n){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&t)===t){var d=l.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,u=e;var _=n,U=v;try{U()}catch(Q){jt(u,_,Q)}}}l=l.next}while(l!==r)}}catch(Q){jt(e,e.return,Q)}}function Lm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Rh(e,n)}catch(l){jt(t,t.return,l)}}}function Um(t,e,n){n.props=el(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){jt(t,e,l)}}function fs(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(u){jt(t,e,u)}}function mn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){jt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){jt(t,e,u)}else n.current=null}function Nm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(u){jt(t,t.return,u)}}function pc(t,e,n){try{var l=t.stateNode;xb(l,t.type,n,e),l[Re]=e}catch(u){jt(t,t.return,u)}}function jm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ya(t.type)||t.tag===4}function vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||jm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ya(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=En));else if(l!==4&&(l===27&&ya(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(bc(t,e,n),t=t.sibling;t!==null;)bc(t,e,n),t=t.sibling}function Yu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&ya(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Yu(t,e,n),t=t.sibling;t!==null;)Yu(t,e,n),t=t.sibling}function Bm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);he(e,l,n),e[re]=t,e[Re]=n}catch(r){jt(t,t.return,r)}}var Un=!1,ee=!1,Sc=!1,Hm=typeof WeakSet=="function"?WeakSet:Set,se=null;function tb(t,e){if(t=t.containerInfo,Gc=ro,t=Fd(t),hr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var d=0,v=-1,_=-1,U=0,Q=0,V=t,j=null;e:for(;;){for(var H;V!==n||u!==0&&V.nodeType!==3||(v=d+u),V!==r||l!==0&&V.nodeType!==3||(_=d+l),V.nodeType===3&&(d+=V.nodeValue.length),(H=V.firstChild)!==null;)j=V,V=H;for(;;){if(V===t)break e;if(j===n&&++U===u&&(v=d),j===r&&++Q===l&&(_=d),(H=V.nextSibling)!==null)break;V=j,j=V.parentNode}V=H}n=v===-1||_===-1?null:{start:v,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yc={focusedElem:t,selectionRange:n},ro=!1,se=e;se!==null;)if(e=se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,se=t;else for(;se!==null;){switch(e=se,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),he(r,l,n),r[re]=t,ie(r),l=r;break t;case"link":var d=Vy("link","href",u).get(l+(n.href||""));if(d){for(var v=0;vGt&&(d=Gt,Gt=yt,yt=d);var O=Jd(v,yt),M=Jd(v,Gt);if(O&&M&&(H.rangeCount!==1||H.anchorNode!==O.node||H.anchorOffset!==O.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var L=V.createRange();L.setStart(O.node,O.offset),H.removeAllRanges(),yt>Gt?(H.addRange(L),H.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),H.addRange(L))}}}}for(V=[],H=v;H=H.parentNode;)H.nodeType===1&&V.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;vn?32:n,D.T=null,n=Cc,Cc=null;var r=da,d=qn;if(ne=0,ai=da=null,qn=0,(Lt&6)!==0)throw Error(o(331));var v=Lt;if(Lt|=4,Pm(r.current),Km(r,r.current,d,n),Lt=v,ps(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(Ni,r)}catch{}return!0}finally{G.p=u,D.T=l,hy(t,e)}}function yy(t,e,n){e=Fe(n,e),e=sc(t.stateNode,e,2),t=ia(t,e,2),t!==null&&(Bi(t,2),yn(t))}function jt(t,e,n){if(t.tag===3)yy(t,t,n);else for(;e!==null;){if(e.tag===3){yy(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(fa===null||!fa.has(l))){t=Fe(n,t),n=gm(2),l=ia(e,n,2),l!==null&&(pm(n,l,e,t),Bi(l,2),yn(l));break}}e=e.return}}function wc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new ab;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(n)||(Rc=!0,u.add(n),t=ob.bind(null,t,e,n),e.then(t,t))}function ob(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Yt===t&&(Mt&n)===n&&(Jt===4||Jt===3&&(Mt&62914560)===Mt&&300>me()-Xu?(Lt&2)===0&&li(t,0):Ec|=n,ni===Mt&&(ni=0)),yn(t)}function gy(t,e){e===0&&(e=cd()),t=Xa(t,e),t!==null&&(Bi(t,e),yn(t))}function rb(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),gy(t,n)}function cb(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),gy(t,n)}function fb(t,e){return sn(t,e)}var Wu=null,si=null,Dc=!1,$u=!1,Lc=!1,ma=0;function yn(t){t!==si&&t.next===null&&(si===null?Wu=si=t:si=si.next=t),$u=!0,Dc||(Dc=!0,hb())}function ps(t,e){if(!Lc&&$u){Lc=!0;do for(var n=!1,l=Wu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var d=l.suspendedLanes,v=l.pingedLanes;r=(1<<31-Ne(42|t)+1)-1,r&=u&~(d&~v),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Sy(l,r))}else r=Mt,r=au(l,l===Yt?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||ji(l,r)||(n=!0,Sy(l,r));l=l.next}while(n);Lc=!1}}function db(){py()}function py(){$u=Dc=!1;var t=0;ma!==0&&Rb()&&(t=ma);for(var e=me(),n=null,l=Wu;l!==null;){var u=l.next,r=vy(l,e);r===0?(l.next=null,n===null?Wu=u:n.next=u,u===null&&(si=n)):(n=l,(t!==0||(r&3)!==0)&&($u=!0)),l=u}ne!==0&&ne!==5||ps(t),ma!==0&&(ma=0)}function vy(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0v)break;var Q=_.transferSize,V=_.initiatorType;Q&&Ay(V)&&(_=_.responseEnd,d+=Q*(_"u"?null:document;function Qy(t,e,n){var l=ui;if(l&&typeof e=="string"&&e){var u=Je(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),qy.has(u)||(qy.add(u),t={rel:t,crossOrigin:n,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),he(e,"link",t),ie(e),l.head.appendChild(e)))}}function Db(t){Qn.D(t),Qy("dns-prefetch",t,null)}function Lb(t,e){Qn.C(t,e),Qy("preconnect",t,e)}function Ub(t,e,n){Qn.L(t,e,n);var l=ui;if(l&&t&&e){var u='link[rel="preload"][as="'+Je(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Je(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Je(n.imageSizes)+'"]')):u+='[href="'+Je(t)+'"]';var r=u;switch(e){case"style":r=oi(t);break;case"script":r=ri(t)}nn.has(r)||(t=p({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),nn.set(r,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(xs(r))||e==="script"&&l.querySelector(_s(r))||(e=l.createElement("link"),he(e,"link",t),ie(e),l.head.appendChild(e)))}}function Nb(t,e){Qn.m(t,e);var n=ui;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Je(l)+'"][href="'+Je(t)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=ri(t)}if(!nn.has(r)&&(t=p({rel:"modulepreload",href:t},e),nn.set(r,t),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_s(r)))return}l=n.createElement("link"),he(l,"link",t),ie(l),n.head.appendChild(l)}}}function jb(t,e,n){Qn.S(t,e,n);var l=ui;if(l&&t){var u=Ol(l).hoistableStyles,r=oi(t);e=e||"default";var d=u.get(r);if(!d){var v={loading:0,preload:null};if(d=l.querySelector(xs(r)))v.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},n),(n=nn.get(r))&&Pc(t,n);var _=d=l.createElement("link");ie(_),he(_,"link",t),_._p=new Promise(function(U,Q){_.onload=U,_.onerror=Q}),_.addEventListener("load",function(){v.loading|=1}),_.addEventListener("error",function(){v.loading|=2}),v.loading|=4,lo(d,e,l)}d={type:"stylesheet",instance:d,count:1,state:v},u.set(r,d)}}}function Bb(t,e){Qn.X(t,e);var n=ui;if(n&&t){var l=Ol(n).hoistableScripts,u=ri(t),r=l.get(u);r||(r=n.querySelector(_s(u)),r||(t=p({src:t,async:!0},e),(e=nn.get(u))&&Fc(t,e),r=n.createElement("script"),ie(r),he(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Hb(t,e){Qn.M(t,e);var n=ui;if(n&&t){var l=Ol(n).hoistableScripts,u=ri(t),r=l.get(u);r||(r=n.querySelector(_s(u)),r||(t=p({src:t,async:!0,type:"module"},e),(e=nn.get(u))&&Fc(t,e),r=n.createElement("script"),ie(r),he(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Gy(t,e,n,l){var u=(u=ht.current)?ao(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=oi(n.href),n=Ol(u).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=oi(n.href);var r=Ol(u).hoistableStyles,d=r.get(t);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,d),(r=u.querySelector(xs(t)))&&!r._p&&(d.instance=r,d.state.loading=5),nn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},nn.set(t,n),r||qb(u,t,n,d.state))),e&&l===null)throw Error(o(528,""));return d}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ri(n),n=Ol(u).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function oi(t){return'href="'+Je(t)+'"'}function xs(t){return'link[rel="stylesheet"]['+t+"]"}function Yy(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function qb(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),he(e,"link",n),ie(e),t.head.appendChild(e))}function ri(t){return'[src="'+Je(t)+'"]'}function _s(t){return"script[async]"+t}function ky(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Je(n.href)+'"]');if(l)return e.instance=l,ie(l),l;var u=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ie(l),he(l,"style",u),lo(l,n.precedence,t),e.instance=l;case"stylesheet":u=oi(n.href);var r=t.querySelector(xs(u));if(r)return e.state.loading|=4,e.instance=r,ie(r),r;l=Yy(n),(u=nn.get(u))&&Pc(l,u),r=(t.ownerDocument||t).createElement("link"),ie(r);var d=r;return d._p=new Promise(function(v,_){d.onload=v,d.onerror=_}),he(r,"link",l),e.state.loading|=4,lo(r,n.precedence,t),e.instance=r;case"script":return r=ri(n.src),(u=t.querySelector(_s(r)))?(e.instance=u,ie(u),u):(l=n,(u=nn.get(r))&&(l=p({},n),Fc(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),ie(u),he(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,lo(l,n.precedence,t));return e.instance}function lo(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,r=u,d=0;d title"):null)}function Qb(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ky(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Gb(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=oi(l.href),r=e.querySelector(xs(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=so.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,ie(r);return}r=e.ownerDocument||e,l=Yy(l),(u=nn.get(u))&&Pc(l,u),r=r.createElement("link"),ie(r);var d=r;d._p=new Promise(function(v,_){d.onload=v,d.onerror=_}),he(r,"link",l),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=so.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ic=0;function Yb(t,e){return t.stylesheets&&t.count===0&&oo(t,t.stylesheets),0Ic?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function so(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)oo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var uo=null;function oo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,uo=new Map,e.forEach(kb,t),uo=null,so.call(t))}function kb(t,e){if(!(e.state.loading&4)){var n=uo.get(t);if(n)var l=n.get(null);else{n=new Map,uo.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),of.exports=iS(),of.exports}var uS=sS(),wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cl,Ta,gi,dp,oS=(dp=class extends wi{constructor(){super();dt(this,cl);dt(this,Ta);dt(this,gi);lt(this,gi,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){R(this,Ta)||this.setEventListener(R(this,gi))}onUnsubscribe(){var i;this.hasListeners()||((i=R(this,Ta))==null||i.call(this),lt(this,Ta,void 0))}setEventListener(i){var s;lt(this,gi,i),(s=R(this,Ta))==null||s.call(this),lt(this,Ta,i(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(i){R(this,cl)!==i&&(lt(this,cl,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(s=>{s(i)})}isFocused(){var i;return typeof R(this,cl)=="boolean"?R(this,cl):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},cl=new WeakMap,Ta=new WeakMap,gi=new WeakMap,dp),Pf=new oS,rS={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},Ma,Jf,hp,cS=(hp=class{constructor(){dt(this,Ma,rS);dt(this,Jf,!1)}setTimeoutProvider(a){lt(this,Ma,a)}setTimeout(a,i){return R(this,Ma).setTimeout(a,i)}clearTimeout(a){R(this,Ma).clearTimeout(a)}setInterval(a,i){return R(this,Ma).setInterval(a,i)}clearInterval(a){R(this,Ma).clearInterval(a)}},Ma=new WeakMap,Jf=new WeakMap,hp),sl=new cS;function fS(a){setTimeout(a,0)}var dS=typeof window>"u"||"Deno"in globalThis;function xe(){}function hS(a,i){return typeof a=="function"?a(i):a}function Mf(a){return typeof a=="number"&&a>=0&&a!==1/0}function Tp(a,i){return Math.max(a+(i||0)-Date.now(),0)}function ja(a,i){return typeof a=="function"?a(i):a}function Ve(a,i){return typeof a=="function"?a(i):a}function pg(a,i){const{type:s="all",exact:o,fetchStatus:c,predicate:f,queryKey:h,stale:y}=a;if(h){if(o){if(i.queryHash!==Ff(h,i.options))return!1}else if(!Ns(i.queryKey,h))return!1}if(s!=="all"){const g=i.isActive();if(s==="active"&&!g||s==="inactive"&&g)return!1}return!(typeof y=="boolean"&&i.isStale()!==y||c&&c!==i.state.fetchStatus||f&&!f(i))}function vg(a,i){const{exact:s,status:o,predicate:c,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(s){if(_l(i.options.mutationKey)!==_l(f))return!1}else if(!Ns(i.options.mutationKey,f))return!1}return!(o&&i.state.status!==o||c&&!c(i))}function Ff(a,i){return((i==null?void 0:i.queryKeyHashFn)||_l)(a)}function _l(a){return JSON.stringify(a,(i,s)=>Cf(s)?Object.keys(s).sort().reduce((o,c)=>(o[c]=s[c],o),{}):s)}function Ns(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(s=>Ns(a[s],i[s])):!1}var mS=Object.prototype.hasOwnProperty;function Mp(a,i,s=0){if(a===i)return a;if(s>500)return i;const o=bg(a)&&bg(i);if(!o&&!(Cf(a)&&Cf(i)))return i;const f=(o?a:Object.keys(a)).length,h=o?i:Object.keys(i),y=h.length,g=o?new Array(y):{};let m=0;for(let b=0;b{sl.setTimeout(i,a)})}function Af(a,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,i):s.structuralSharing!==!1?Mp(a,i):i}function gS(a,i,s=0){const o=[...a,i];return s&&o.length>s?o.slice(1):o}function pS(a,i,s=0){const o=[i,...a];return s&&o.length>s?o.slice(0,-1):o}var If=Symbol();function Cp(a,i){return!a.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!a.queryFn||a.queryFn===If?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function Wf(a,i){return typeof a=="function"?a(...i):!!a}function vS(a,i,s){let o=!1,c;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(c??(c=i()),o||(o=!0,c.aborted?s():c.addEventListener("abort",s,{once:!0})),c)}),a}var js=(()=>{let a=()=>dS;return{isServer(){return a()},setIsServer(i){a=i}}})();function zf(){let a,i;const s=new Promise((c,f)=>{a=c,i=f});s.status="pending",s.catch(()=>{});function o(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{o({status:"fulfilled",value:c}),a(c)},s.reject=c=>{o({status:"rejected",reason:c}),i(c)},s}var bS=fS;function SS(){let a=[],i=0,s=y=>{y()},o=y=>{y()},c=bS;const f=y=>{i?a.push(y):c(()=>{s(y)})},h=()=>{const y=a;a=[],y.length&&c(()=>{o(()=>{y.forEach(g=>{s(g)})})})};return{batch:y=>{let g;i++;try{g=y()}finally{i--,i||h()}return g},batchCalls:y=>(...g)=>{f(()=>{y(...g)})},schedule:f,setNotifyFunction:y=>{s=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{c=y}}}var le=SS(),pi,Ca,vi,mp,xS=(mp=class extends wi{constructor(){super();dt(this,pi,!0);dt(this,Ca);dt(this,vi);lt(this,vi,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i(!0),o=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",o)}}})}onSubscribe(){R(this,Ca)||this.setEventListener(R(this,vi))}onUnsubscribe(){var i;this.hasListeners()||((i=R(this,Ca))==null||i.call(this),lt(this,Ca,void 0))}setEventListener(i){var s;lt(this,vi,i),(s=R(this,Ca))==null||s.call(this),lt(this,Ca,i(this.setOnline.bind(this)))}setOnline(i){R(this,pi)!==i&&(lt(this,pi,i),this.listeners.forEach(o=>{o(i)}))}isOnline(){return R(this,pi)}},pi=new WeakMap,Ca=new WeakMap,vi=new WeakMap,mp),wo=new xS;function _S(a){return Math.min(1e3*2**a,3e4)}function Ap(a){return(a??"online")==="online"?wo.isOnline():!0}var Of=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function zp(a){let i=!1,s=0,o;const c=zf(),f=()=>c.status!=="pending",h=C=>{var A;if(!f()){const q=new Of(C);S(q),(A=a.onCancel)==null||A.call(a,q)}},y=()=>{i=!0},g=()=>{i=!1},m=()=>Pf.isFocused()&&(a.networkMode==="always"||wo.isOnline())&&a.canRun(),b=()=>Ap(a.networkMode)&&a.canRun(),p=C=>{f()||(o==null||o(),c.resolve(C))},S=C=>{f()||(o==null||o(),c.reject(C))},x=()=>new Promise(C=>{var A;o=q=>{(f()||m())&&C(q)},(A=a.onPause)==null||A.call(a)}).then(()=>{var C;o=void 0,f()||(C=a.onContinue)==null||C.call(a)}),E=()=>{if(f())return;let C;const A=s===0?a.initialPromise:void 0;try{C=A??a.fn()}catch(q){C=Promise.reject(q)}Promise.resolve(C).then(p).catch(q=>{var P;if(f())return;const B=a.retry??(js.isServer()?0:3),Z=a.retryDelay??_S,w=typeof Z=="function"?Z(s,q):Z,X=B===!0||typeof B=="number"&&sm()?void 0:x()).then(()=>{i?S(q):E()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(o==null||o(),c),cancelRetry:y,continueRetry:g,canStart:b,start:()=>(b()?E():x().then(E),c)}}var fl,yp,Op=(yp=class{constructor(){dt(this,fl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mf(this.gcTime)&<(this,fl,sl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(js.isServer()?1/0:300*1e3))}clearGcTimeout(){R(this,fl)!==void 0&&(sl.clearTimeout(R(this,fl)),lt(this,fl,void 0))}},fl=new WeakMap,yp);function RS(a){return{onFetch:(i,s)=>{var b,p,S,x,E;const o=i.options,c=(S=(p=(b=i.fetchOptions)==null?void 0:b.meta)==null?void 0:p.fetchMore)==null?void 0:S.direction,f=((x=i.state.data)==null?void 0:x.pages)||[],h=((E=i.state.data)==null?void 0:E.pageParams)||[];let y={pages:[],pageParams:[]},g=0;const m=async()=>{let C=!1;const A=Z=>{vS(Z,()=>i.signal,()=>C=!0)},q=Cp(i.options,i.fetchOptions),B=async(Z,w,X)=>{if(C)return Promise.reject(i.signal.reason);if(w==null&&Z.pages.length)return Promise.resolve(Z);const N=(()=>{const I={client:i.client,queryKey:i.queryKey,pageParam:w,direction:X?"backward":"forward",meta:i.options.meta};return A(I),I})(),z=await q(N),{maxPages:K}=i.options,J=X?pS:gS;return{pages:J(Z.pages,z,K),pageParams:J(Z.pageParams,w,K)}};if(c&&f.length){const Z=c==="backward",w=Z?ES:xg,X={pages:f,pageParams:h},P=w(o,X);y=await B(X,P,Z)}else{const Z=a??f.length;do{const w=g===0?h[0]??o.initialPageParam:xg(o,y);if(g>0&&w==null)break;y=await B(y,w),g++}while(g{var C,A;return(A=(C=i.options).persister)==null?void 0:A.call(C,m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s)}:i.fetchFn=m}}}function xg(a,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?a.getNextPageParam(i[o],i,s[o],s):void 0}function ES(a,{pages:i,pageParams:s}){var o;return i.length>0?(o=a.getPreviousPageParam)==null?void 0:o.call(a,i[0],i,s[0],s):void 0}var bi,dl,Si,an,hl,ue,Gs,ml,ke,wp,Yn,gp,TS=(gp=class extends Op{constructor(i){super();dt(this,ke);dt(this,bi);dt(this,dl);dt(this,Si);dt(this,an);dt(this,hl);dt(this,ue);dt(this,Gs);dt(this,ml);lt(this,ml,!1),lt(this,Gs,i.defaultOptions),this.setOptions(i.options),this.observers=[],lt(this,hl,i.client),lt(this,an,R(this,hl).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,lt(this,dl,Rg(this.options)),this.state=i.state??R(this,dl),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return R(this,bi)}get promise(){var i;return(i=R(this,ue))==null?void 0:i.promise}setOptions(i){if(this.options={...R(this,Gs),...i},i!=null&&i._type&<(this,bi,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Rg(this.options);s.data!==void 0&&(this.setState(_g(s.data,s.dataUpdatedAt)),lt(this,dl,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,an).remove(this)}setData(i,s){const o=Af(this.state.data,i,this.options);return xt(this,ke,Yn).call(this,{data:o,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),o}setState(i){xt(this,ke,Yn).call(this,{type:"setState",state:i})}cancel(i){var o,c;const s=(o=R(this,ue))==null?void 0:o.promise;return(c=R(this,ue))==null||c.cancel(i),s?s.then(xe).catch(xe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return R(this,dl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Ve(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===If||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>ja(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Tp(this.state.dataUpdatedAt,i)}onFocus(){var s;const i=this.observers.find(o=>o.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(s=R(this,ue))==null||s.continue()}onOnline(){var s;const i=this.observers.find(o=>o.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(s=R(this,ue))==null||s.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),R(this,an).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(R(this,ue)&&(R(this,ml)||xt(this,ke,wp).call(this)?R(this,ue).cancel({revert:!0}):R(this,ue).cancelRetry()),this.scheduleGc()),R(this,an).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||xt(this,ke,Yn).call(this,{type:"invalidate"})}async fetch(i,s){var m,b,p,S,x,E,C,A,q,B,Z;if(this.state.fetchStatus!=="idle"&&((m=R(this,ue))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(R(this,ue))return R(this,ue).continueRetry(),R(this,ue).promise}if(i&&this.setOptions(i),!this.options.queryFn){const w=this.observers.find(X=>X.options.queryFn);w&&this.setOptions(w.options)}const o=new AbortController,c=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(lt(this,ml,!0),o.signal)})},f=()=>{const w=Cp(this.options,s),P=(()=>{const N={client:R(this,hl),queryKey:this.queryKey,meta:this.meta};return c(N),N})();return lt(this,ml,!1),this.options.persister?this.options.persister(w,P,this):w(P)},y=(()=>{const w={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:R(this,hl),state:this.state,fetchFn:f};return c(w),w})(),g=R(this,bi)==="infinite"?RS(this.options.pages):this.options.behavior;g==null||g.onFetch(y,this),lt(this,Si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=y.fetchOptions)==null?void 0:b.meta))&&xt(this,ke,Yn).call(this,{type:"fetch",meta:(p=y.fetchOptions)==null?void 0:p.meta}),lt(this,ue,zp({initialPromise:s==null?void 0:s.initialPromise,fn:y.fetchFn,onCancel:w=>{w instanceof Of&&w.revert&&this.setState({...R(this,Si),fetchStatus:"idle"}),o.abort()},onFail:(w,X)=>{xt(this,ke,Yn).call(this,{type:"failed",failureCount:w,error:X})},onPause:()=>{xt(this,ke,Yn).call(this,{type:"pause"})},onContinue:()=>{xt(this,ke,Yn).call(this,{type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0}));try{const w=await R(this,ue).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(x=(S=R(this,an).config).onSuccess)==null||x.call(S,w,this),(C=(E=R(this,an).config).onSettled)==null||C.call(E,w,this.state.error,this),w}catch(w){if(w instanceof Of){if(w.silent)return R(this,ue).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw xt(this,ke,Yn).call(this,{type:"error",error:w}),(q=(A=R(this,an).config).onError)==null||q.call(A,w,this),(Z=(B=R(this,an).config).onSettled)==null||Z.call(B,this.state.data,w,this),w}finally{this.scheduleGc()}}},bi=new WeakMap,dl=new WeakMap,Si=new WeakMap,an=new WeakMap,hl=new WeakMap,ue=new WeakMap,Gs=new WeakMap,ml=new WeakMap,ke=new WeakSet,wp=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Yn=function(i){const s=o=>{switch(i.type){case"failed":return{...o,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...Dp(o.data,this.options),fetchMeta:i.meta??null};case"success":const c={...o,..._g(i.data,i.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return lt(this,Si,i.manual?c:void 0),c;case"error":const f=i.error;return{...o,error:f,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...i.state}}};this.state=s(this.state),le.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),R(this,an).notify({query:this,type:"updated",action:i})})},gp);function Dp(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ap(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function _g(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Rg(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,s=i!==void 0,o=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Oe,Ot,Ys,Se,yl,xi,kn,Aa,ks,_i,Ri,gl,pl,za,Ei,Ut,Ls,wf,Df,Lf,Uf,Nf,jf,Bf,Lp,pp,MS=(pp=class extends wi{constructor(i,s){super();dt(this,Ut);dt(this,Oe);dt(this,Ot);dt(this,Ys);dt(this,Se);dt(this,yl);dt(this,xi);dt(this,kn);dt(this,Aa);dt(this,ks);dt(this,_i);dt(this,Ri);dt(this,gl);dt(this,pl);dt(this,za);dt(this,Ei,new Set);this.options=s,lt(this,Oe,i),lt(this,Aa,null),lt(this,kn,zf()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Ot).addObserver(this),Eg(R(this,Ot),this.options)?xt(this,Ut,Ls).call(this):this.updateResult(),xt(this,Ut,Uf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hf(R(this,Ot),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hf(R(this,Ot),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,xt(this,Ut,Nf).call(this),xt(this,Ut,jf).call(this),R(this,Ot).removeObserver(this)}setOptions(i){const s=this.options,o=R(this,Ot);if(this.options=R(this,Oe).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ve(this.options.enabled,R(this,Ot))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");xt(this,Ut,Bf).call(this),R(this,Ot).setOptions(this.options),s._defaulted&&!Oo(this.options,s)&&R(this,Oe).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Ot),observer:this});const c=this.hasListeners();c&&Tg(R(this,Ot),o,this.options,s)&&xt(this,Ut,Ls).call(this),this.updateResult(),c&&(R(this,Ot)!==o||Ve(this.options.enabled,R(this,Ot))!==Ve(s.enabled,R(this,Ot))||ja(this.options.staleTime,R(this,Ot))!==ja(s.staleTime,R(this,Ot)))&&xt(this,Ut,wf).call(this);const f=xt(this,Ut,Df).call(this);c&&(R(this,Ot)!==o||Ve(this.options.enabled,R(this,Ot))!==Ve(s.enabled,R(this,Ot))||f!==R(this,za))&&xt(this,Ut,Lf).call(this,f)}getOptimisticResult(i){const s=R(this,Oe).getQueryCache().build(R(this,Oe),i),o=this.createResult(s,i);return AS(this,o)&&(lt(this,Se,o),lt(this,xi,this.options),lt(this,yl,R(this,Ot).state)),o}getCurrentResult(){return R(this,Se)}trackResult(i,s){return new Proxy(i,{get:(o,c)=>(this.trackProp(c),s==null||s(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,kn).status==="pending"&&R(this,kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,c))})}trackProp(i){R(this,Ei).add(i)}getCurrentQuery(){return R(this,Ot)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const s=R(this,Oe).defaultQueryOptions(i),o=R(this,Oe).getQueryCache().build(R(this,Oe),s);return o.fetch().then(()=>this.createResult(o,s))}fetch(i){return xt(this,Ut,Ls).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Se)))}createResult(i,s){var K;const o=R(this,Ot),c=this.options,f=R(this,Se),h=R(this,yl),y=R(this,xi),m=i!==o?i.state:R(this,Ys),{state:b}=i;let p={...b},S=!1,x;if(s._optimisticResults){const J=this.hasListeners(),I=!J&&Eg(i,s),et=J&&Tg(i,o,s,c);(I||et)&&(p={...p,...Dp(b.data,i.options)}),s._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:E,errorUpdatedAt:C,status:A}=p;x=p.data;let q=!1;if(s.placeholderData!==void 0&&x===void 0&&A==="pending"){let J;f!=null&&f.isPlaceholderData&&s.placeholderData===(y==null?void 0:y.placeholderData)?(J=f.data,q=!0):J=typeof s.placeholderData=="function"?s.placeholderData((K=R(this,Ri))==null?void 0:K.state.data,R(this,Ri)):s.placeholderData,J!==void 0&&(A="success",x=Af(f==null?void 0:f.data,J,s),S=!0)}if(s.select&&x!==void 0&&!q)if(f&&x===(h==null?void 0:h.data)&&s.select===R(this,ks))x=R(this,_i);else try{lt(this,ks,s.select),x=s.select(x),x=Af(f==null?void 0:f.data,x,s),lt(this,_i,x),lt(this,Aa,null)}catch(J){lt(this,Aa,J)}R(this,Aa)&&(E=R(this,Aa),x=R(this,_i),C=Date.now(),A="error");const B=p.fetchStatus==="fetching",Z=A==="pending",w=A==="error",X=Z&&B,P=x!==void 0,z={status:A,fetchStatus:p.fetchStatus,isPending:Z,isSuccess:A==="success",isError:w,isInitialLoading:X,isLoading:X,data:x,dataUpdatedAt:p.dataUpdatedAt,error:E,errorUpdatedAt:C,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:p.dataUpdateCount>m.dataUpdateCount||p.errorUpdateCount>m.errorUpdateCount,isFetching:B,isRefetching:B&&!Z,isLoadingError:w&&!P,isPaused:p.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:w&&P,isStale:$f(i,s),refetch:this.refetch,promise:R(this,kn),isEnabled:Ve(s.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const J=z.data!==void 0,I=z.status==="error"&&!J,et=gt=>{I?gt.reject(z.error):J&>.resolve(z.data)},it=()=>{const gt=lt(this,kn,z.promise=zf());et(gt)},st=R(this,kn);switch(st.status){case"pending":i.queryHash===o.queryHash&&et(st);break;case"fulfilled":(I||z.data!==st.value)&&it();break;case"rejected":(!I||z.error!==st.reason)&&it();break}}return z}updateResult(){const i=R(this,Se),s=this.createResult(R(this,Ot),this.options);if(lt(this,yl,R(this,Ot).state),lt(this,xi,this.options),R(this,yl).data!==void 0&<(this,Ri,R(this,Ot)),Oo(s,i))return;lt(this,Se,s);const o=()=>{if(!i)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!R(this,Ei).size)return!0;const h=new Set(f??R(this,Ei));return this.options.throwOnError&&h.add("error"),Object.keys(R(this,Se)).some(y=>{const g=y;return R(this,Se)[g]!==i[g]&&h.has(g)})};xt(this,Ut,Lp).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&xt(this,Ut,Uf).call(this)}},Oe=new WeakMap,Ot=new WeakMap,Ys=new WeakMap,Se=new WeakMap,yl=new WeakMap,xi=new WeakMap,kn=new WeakMap,Aa=new WeakMap,ks=new WeakMap,_i=new WeakMap,Ri=new WeakMap,gl=new WeakMap,pl=new WeakMap,za=new WeakMap,Ei=new WeakMap,Ut=new WeakSet,Ls=function(i){xt(this,Ut,Bf).call(this);let s=R(this,Ot).fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(xe)),s},wf=function(){xt(this,Ut,Nf).call(this);const i=ja(this.options.staleTime,R(this,Ot));if(js.isServer()||R(this,Se).isStale||!Mf(i))return;const o=Tp(R(this,Se).dataUpdatedAt,i)+1;lt(this,gl,sl.setTimeout(()=>{R(this,Se).isStale||this.updateResult()},o))},Df=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Ot)):this.options.refetchInterval)??!1},Lf=function(i){xt(this,Ut,jf).call(this),lt(this,za,i),!(js.isServer()||Ve(this.options.enabled,R(this,Ot))===!1||!Mf(R(this,za))||R(this,za)===0)&<(this,pl,sl.setInterval(()=>{(this.options.refetchIntervalInBackground||Pf.isFocused())&&xt(this,Ut,Ls).call(this)},R(this,za)))},Uf=function(){xt(this,Ut,wf).call(this),xt(this,Ut,Lf).call(this,xt(this,Ut,Df).call(this))},Nf=function(){R(this,gl)!==void 0&&(sl.clearTimeout(R(this,gl)),lt(this,gl,void 0))},jf=function(){R(this,pl)!==void 0&&(sl.clearInterval(R(this,pl)),lt(this,pl,void 0))},Bf=function(){const i=R(this,Oe).getQueryCache().build(R(this,Oe),this.options);if(i===R(this,Ot))return;const s=R(this,Ot);lt(this,Ot,i),lt(this,Ys,i.state),this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))},Lp=function(i){le.batch(()=>{i.listeners&&this.listeners.forEach(s=>{s(R(this,Se))}),R(this,Oe).getQueryCache().notify({query:R(this,Ot),type:"observerResultsUpdated"})})},pp);function CS(a,i){return Ve(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Ve(i.retryOnMount,a)===!1)}function Eg(a,i){return CS(a,i)||a.state.data!==void 0&&Hf(a,i,i.refetchOnMount)}function Hf(a,i,s){if(Ve(i.enabled,a)!==!1&&ja(i.staleTime,a)!=="static"){const o=typeof s=="function"?s(a):s;return o==="always"||o!==!1&&$f(a,i)}return!1}function Tg(a,i,s,o){return(a!==i||Ve(o.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&$f(a,s)}function $f(a,i){return Ve(i.enabled,a)!==!1&&a.isStaleByTime(ja(i.staleTime,a))}function AS(a,i){return!Oo(a.getCurrentResult(),i)}var Vs,vn,ge,vl,bn,_a,vp,zS=(vp=class extends Op{constructor(i){super();dt(this,bn);dt(this,Vs);dt(this,vn);dt(this,ge);dt(this,vl);lt(this,Vs,i.client),this.mutationId=i.mutationId,lt(this,ge,i.mutationCache),lt(this,vn,[]),this.state=i.state||Up(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){R(this,vn).includes(i)||(R(this,vn).push(i),this.clearGcTimeout(),R(this,ge).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){lt(this,vn,R(this,vn).filter(s=>s!==i)),this.scheduleGc(),R(this,ge).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){R(this,vn).length||(this.state.status==="pending"?this.scheduleGc():R(this,ge).remove(this))}continue(){var i;return((i=R(this,vl))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var h,y,g,m,b,p,S,x,E,C,A,q,B,Z,w,X,P,N;const s=()=>{xt(this,bn,_a).call(this,{type:"continue"})},o={client:R(this,Vs),meta:this.options.meta,mutationKey:this.options.mutationKey};lt(this,vl,zp({fn:()=>this.options.mutationFn?this.options.mutationFn(i,o):Promise.reject(new Error("No mutationFn found")),onFail:(z,K)=>{xt(this,bn,_a).call(this,{type:"failed",failureCount:z,error:K})},onPause:()=>{xt(this,bn,_a).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,ge).canRun(this)}));const c=this.state.status==="pending",f=!R(this,vl).canStart();try{if(c)s();else{xt(this,bn,_a).call(this,{type:"pending",variables:i,isPaused:f}),R(this,ge).config.onMutate&&await R(this,ge).config.onMutate(i,this,o);const K=await((y=(h=this.options).onMutate)==null?void 0:y.call(h,i,o));K!==this.state.context&&xt(this,bn,_a).call(this,{type:"pending",context:K,variables:i,isPaused:f})}const z=await R(this,vl).start();return await((m=(g=R(this,ge).config).onSuccess)==null?void 0:m.call(g,z,i,this.state.context,this,o)),await((p=(b=this.options).onSuccess)==null?void 0:p.call(b,z,i,this.state.context,o)),await((x=(S=R(this,ge).config).onSettled)==null?void 0:x.call(S,z,null,this.state.variables,this.state.context,this,o)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,z,null,i,this.state.context,o)),xt(this,bn,_a).call(this,{type:"success",data:z}),z}catch(z){try{await((q=(A=R(this,ge).config).onError)==null?void 0:q.call(A,z,i,this.state.context,this,o))}catch(K){Promise.reject(K)}try{await((Z=(B=this.options).onError)==null?void 0:Z.call(B,z,i,this.state.context,o))}catch(K){Promise.reject(K)}try{await((X=(w=R(this,ge).config).onSettled)==null?void 0:X.call(w,void 0,z,this.state.variables,this.state.context,this,o))}catch(K){Promise.reject(K)}try{await((N=(P=this.options).onSettled)==null?void 0:N.call(P,void 0,z,i,this.state.context,o))}catch(K){Promise.reject(K)}throw xt(this,bn,_a).call(this,{type:"error",error:z}),z}finally{R(this,ge).runNext(this)}}},Vs=new WeakMap,vn=new WeakMap,ge=new WeakMap,vl=new WeakMap,bn=new WeakSet,_a=function(i){const s=o=>{switch(i.type){case"failed":return{...o,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...o,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:i.error,failureCount:o.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),le.batch(()=>{R(this,vn).forEach(o=>{o.onMutationUpdate(i)}),R(this,ge).notify({mutation:this,type:"updated",action:i})})},vp);function Up(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,cn,Xs,bp,OS=(bp=class extends wi{constructor(i={}){super();dt(this,Vn);dt(this,cn);dt(this,Xs);this.config=i,lt(this,Vn,new Set),lt(this,cn,new Map),lt(this,Xs,0)}build(i,s,o){const c=new zS({client:i,mutationCache:this,mutationId:++po(this,Xs)._,options:i.defaultMutationOptions(s),state:o});return this.add(c),c}add(i){R(this,Vn).add(i);const s=vo(i);if(typeof s=="string"){const o=R(this,cn).get(s);o?o.push(i):R(this,cn).set(s,[i])}this.notify({type:"added",mutation:i})}remove(i){if(R(this,Vn).delete(i)){const s=vo(i);if(typeof s=="string"){const o=R(this,cn).get(s);if(o)if(o.length>1){const c=o.indexOf(i);c!==-1&&o.splice(c,1)}else o[0]===i&&R(this,cn).delete(s)}}this.notify({type:"removed",mutation:i})}canRun(i){const s=vo(i);if(typeof s=="string"){const o=R(this,cn).get(s),c=o==null?void 0:o.find(f=>f.state.status==="pending");return!c||c===i}else return!0}runNext(i){var o;const s=vo(i);if(typeof s=="string"){const c=(o=R(this,cn).get(s))==null?void 0:o.find(f=>f!==i&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){le.batch(()=>{R(this,Vn).forEach(i=>{this.notify({type:"removed",mutation:i})}),R(this,Vn).clear(),R(this,cn).clear()})}getAll(){return Array.from(R(this,Vn))}find(i){const s={exact:!0,...i};return this.getAll().find(o=>vg(s,o))}findAll(i={}){return this.getAll().filter(s=>vg(i,s))}notify(i){le.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){const i=this.getAll().filter(s=>s.state.isPaused);return le.batch(()=>Promise.all(i.map(s=>s.continue().catch(xe))))}},Vn=new WeakMap,cn=new WeakMap,Xs=new WeakMap,bp);function vo(a){var i;return(i=a.options.scope)==null?void 0:i.id}var Xn,Oa,we,Kn,Pn,To,qf,Sp,wS=(Sp=class extends wi{constructor(s,o){super();dt(this,Pn);dt(this,Xn);dt(this,Oa);dt(this,we);dt(this,Kn);lt(this,Xn,s),this.setOptions(o),this.bindMethods(),xt(this,Pn,To).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var c;const o=this.options;this.options=R(this,Xn).defaultMutationOptions(s),Oo(this.options,o)||R(this,Xn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,we),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&_l(o.mutationKey)!==_l(this.options.mutationKey)?this.reset():((c=R(this,we))==null?void 0:c.state.status)==="pending"&&R(this,we).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=R(this,we))==null||s.removeObserver(this)}onMutationUpdate(s){xt(this,Pn,To).call(this),xt(this,Pn,qf).call(this,s)}getCurrentResult(){return R(this,Oa)}reset(){var s;(s=R(this,we))==null||s.removeObserver(this),lt(this,we,void 0),xt(this,Pn,To).call(this),xt(this,Pn,qf).call(this)}mutate(s,o){var c;return lt(this,Kn,o),(c=R(this,we))==null||c.removeObserver(this),lt(this,we,R(this,Xn).getMutationCache().build(R(this,Xn),this.options)),R(this,we).addObserver(this),R(this,we).execute(s)}},Xn=new WeakMap,Oa=new WeakMap,we=new WeakMap,Kn=new WeakMap,Pn=new WeakSet,To=function(){var o;const s=((o=R(this,we))==null?void 0:o.state)??Up();lt(this,Oa,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},qf=function(s){le.batch(()=>{var o,c,f,h,y,g,m,b;if(R(this,Kn)&&this.hasListeners()){const p=R(this,Oa).variables,S=R(this,Oa).context,x={client:R(this,Xn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(c=(o=R(this,Kn)).onSuccess)==null||c.call(o,s.data,p,S,x)}catch(E){Promise.reject(E)}try{(h=(f=R(this,Kn)).onSettled)==null||h.call(f,s.data,null,p,S,x)}catch(E){Promise.reject(E)}}else if((s==null?void 0:s.type)==="error"){try{(g=(y=R(this,Kn)).onError)==null||g.call(y,s.error,p,S,x)}catch(E){Promise.reject(E)}try{(b=(m=R(this,Kn)).onSettled)==null||b.call(m,void 0,s.error,p,S,x)}catch(E){Promise.reject(E)}}}this.listeners.forEach(p=>{p(R(this,Oa))})})},Sp),Sn,xp,DS=(xp=class extends wi{constructor(i={}){super();dt(this,Sn);this.config=i,lt(this,Sn,new Map)}build(i,s,o){const c=s.queryKey,f=s.queryHash??Ff(c,s);let h=this.get(f);return h||(h=new TS({client:i,queryKey:c,queryHash:f,options:i.defaultQueryOptions(s),state:o,defaultOptions:i.getQueryDefaults(c)}),this.add(h)),h}add(i){R(this,Sn).has(i.queryHash)||(R(this,Sn).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=R(this,Sn).get(i.queryHash);s&&(i.destroy(),s===i&&R(this,Sn).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){le.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return R(this,Sn).get(i)}getAll(){return[...R(this,Sn).values()]}find(i){const s={exact:!0,...i};return this.getAll().find(o=>pg(s,o))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(o=>pg(i,o)):s}notify(i){le.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){le.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){le.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},Sn=new WeakMap,xp),Pt,wa,Da,Ti,Mi,La,Ci,Ai,_p,LS=(_p=class{constructor(a={}){dt(this,Pt);dt(this,wa);dt(this,Da);dt(this,Ti);dt(this,Mi);dt(this,La);dt(this,Ci);dt(this,Ai);lt(this,Pt,a.queryCache||new DS),lt(this,wa,a.mutationCache||new OS),lt(this,Da,a.defaultOptions||{}),lt(this,Ti,new Map),lt(this,Mi,new Map),lt(this,La,0)}mount(){po(this,La)._++,R(this,La)===1&&(lt(this,Ci,Pf.subscribe(async a=>{a&&(await this.resumePausedMutations(),R(this,Pt).onFocus())})),lt(this,Ai,wo.subscribe(async a=>{a&&(await this.resumePausedMutations(),R(this,Pt).onOnline())})))}unmount(){var a,i;po(this,La)._--,R(this,La)===0&&((a=R(this,Ci))==null||a.call(this),lt(this,Ci,void 0),(i=R(this,Ai))==null||i.call(this),lt(this,Ai,void 0))}isFetching(a){return R(this,Pt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return R(this,wa).findAll({...a,status:"pending"}).length}getQueryData(a){var s;const i=this.defaultQueryOptions({queryKey:a});return(s=R(this,Pt).get(i.queryHash))==null?void 0:s.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),s=R(this,Pt).build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(ja(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(a){return R(this,Pt).findAll(a).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(a,i,s){const o=this.defaultQueryOptions({queryKey:a}),c=R(this,Pt).get(o.queryHash),f=c==null?void 0:c.state.data,h=hS(i,f);if(h!==void 0)return R(this,Pt).build(this,o).setData(h,{...s,manual:!0})}setQueriesData(a,i,s){return le.batch(()=>R(this,Pt).findAll(a).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(a){var s;const i=this.defaultQueryOptions({queryKey:a});return(s=R(this,Pt).get(i.queryHash))==null?void 0:s.state}removeQueries(a){const i=R(this,Pt);le.batch(()=>{i.findAll(a).forEach(s=>{i.remove(s)})})}resetQueries(a,i){const s=R(this,Pt);return le.batch(()=>(s.findAll(a).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const s={revert:!0,...i},o=le.batch(()=>R(this,Pt).findAll(a).map(c=>c.cancel(s)));return Promise.all(o).then(xe).catch(xe)}invalidateQueries(a,i={}){return le.batch(()=>(R(this,Pt).findAll(a).forEach(s=>{s.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},i)))}refetchQueries(a,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=le.batch(()=>R(this,Pt).findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,s);return s.throwOnError||(f=f.catch(xe)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(o).then(xe)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const s=R(this,Pt).build(this,i);return s.isStaleByTime(ja(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(xe).catch(xe)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(xe).catch(xe)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return wo.isOnline()?R(this,wa).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Pt)}getMutationCache(){return R(this,wa)}getDefaultOptions(){return R(this,Da)}setDefaultOptions(a){lt(this,Da,a)}setQueryDefaults(a,i){R(this,Ti).set(_l(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...R(this,Ti).values()],s={};return i.forEach(o=>{Ns(a,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(a,i){R(this,Mi).set(_l(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...R(this,Mi).values()],s={};return i.forEach(o=>{Ns(a,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const i={...R(this,Da).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Ff(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===If&&(i.enabled=!1),i}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...R(this,Da).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){R(this,Pt).clear(),R(this,wa).clear()}},Pt=new WeakMap,wa=new WeakMap,Da=new WeakMap,Ti=new WeakMap,Mi=new WeakMap,La=new WeakMap,Ci=new WeakMap,Ai=new WeakMap,_p),Np=F.createContext(void 0),qo=a=>{const i=F.useContext(Np);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},US=({client:a,children:i})=>(F.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),tt.jsx(Np.Provider,{value:a,children:i})),jp=F.createContext(!1),NS=()=>F.useContext(jp);jp.Provider;function jS(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var BS=F.createContext(jS()),HS=()=>F.useContext(BS),qS=(a,i,s)=>{const o=s!=null&&s.state.error&&typeof a.throwOnError=="function"?Wf(a.throwOnError,[s.state.error,s]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||o)&&(i.isReset()||(a.retryOnMount=!1))},QS=a=>{F.useEffect(()=>{a.clearReset()},[a])},GS=({result:a,errorResetBoundary:i,throwOnError:s,query:o,suspense:c})=>a.isError&&!i.isReset()&&!a.isFetching&&o&&(c&&a.data===void 0||Wf(s,[a.error,o])),YS=a=>{if(a.suspense){const s=c=>c==="static"?c:Math.max(c??1e3,1e3),o=a.staleTime;a.staleTime=typeof o=="function"?(...c)=>s(o(...c)):s(o),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},kS=(a,i)=>a.isLoading&&a.isFetching&&!i,VS=(a,i)=>(a==null?void 0:a.suspense)&&i.isPending,Mg=(a,i,s)=>i.fetchOptimistic(a).catch(()=>{s.clearReset()});function XS(a,i,s){var S,x,E,C;const o=NS(),c=HS(),f=qo(),h=f.defaultQueryOptions(a);(x=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||x.call(S,h);const y=f.getQueryCache().get(h.queryHash);h._optimisticResults=o?"isRestoring":"optimistic",YS(h),qS(h,c,y),QS(c);const g=!f.getQueryCache().get(h.queryHash),[m]=F.useState(()=>new i(f,h)),b=m.getOptimisticResult(h),p=!o&&a.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(A=>{const q=p?m.subscribe(le.batchCalls(A)):xe;return m.updateResult(),q},[m,p]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),F.useEffect(()=>{m.setOptions(h)},[h,m]),VS(h,b))throw Mg(h,m,c);if(GS({result:b,errorResetBoundary:c,throwOnError:h.throwOnError,query:y,suspense:h.suspense}))throw b.error;if((C=(E=f.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||C.call(E,h,b),h.experimental_prefetchInRender&&!js.isServer()&&kS(b,o)){const A=g?Mg(h,m,c):y==null?void 0:y.promise;A==null||A.catch(xe).finally(()=>{m.updateResult()})}return h.notifyOnChangeProps?b:m.trackResult(b)}function Qo(a,i){return XS(a,MS)}function KS(a,i){const s=qo(),[o]=F.useState(()=>new wS(s,a));F.useEffect(()=>{o.setOptions(a)},[o,a]);const c=F.useSyncExternalStore(F.useCallback(h=>o.subscribe(le.batchCalls(h)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),f=F.useCallback((h,y)=>{o.mutate(h,y).catch(xe)},[o]);if(c.error&&Wf(o.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}const ZS="modulepreload",JS=function(a){return"/"+a},Cg={},Zs=function(i,s,o){let c=Promise.resolve();if(s&&s.length>0){let h=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),g=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));c=h(s.map(m=>{if(m=JS(m),m in Cg)return;Cg[m]=!0;const b=m.endsWith(".css"),p=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${p}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":ZS,b||(S.as="script"),S.crossOrigin="",S.href=m,g&&S.setAttribute("nonce",g),document.head.appendChild(S),b)return new Promise((x,E)=>{S.addEventListener("load",x),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return c.then(h=>{for(const y of h||[])y.status==="rejected"&&f(y.reason);return i().catch(f)})};var PS=function(){return null},Ag=F.use,Us=typeof window<"u"?F.useLayoutEffect:F.useEffect;function df(a){const i=F.useRef({value:a,prev:null}),s=i.current.value;return a!==s&&(i.current={value:a,prev:s}),i.current.prev}function FS(a,i,s={},o={}){F.useEffect(()=>{if(!a.current||o.disabled||typeof IntersectionObserver!="function")return;const c=new IntersectionObserver(([f])=>{i(f)},s);return c.observe(a.current),()=>{c.disconnect()}},[i,s,o.disabled,a])}function IS(a){const i=F.useRef(null);return F.useImperativeHandle(a,()=>i.current,[]),i}const Bp=!1;function Bs(a){return a[a.length-1]}function WS(a){return typeof a=="function"}function ul(a,i){return WS(a)?a(i):a}const Hp=Object.prototype.hasOwnProperty,zg=Object.prototype.propertyIsEnumerable;function qp(a){for(const i in a)if(Hp.call(a,i))return!0;return!1}const $S=()=>Object.create(null),ll=(a,i)=>ol(a,i,$S);function ol(a,i,s=()=>({}),o=0){if(a===i)return a;if(o>500)return i;const c=i,f=Dg(a)&&Dg(c);if(!f&&!(Do(a)&&Do(c)))return c;const h=f?a:Og(a);if(!h)return c;const y=f?c:Og(c);if(!y)return c;const g=h.length,m=y.length,b=f?new Array(m):s();let p=0;for(let S=0;S"u")return!0;const s=i.prototype;return!(!wg(s)||!s.hasOwnProperty("isPrototypeOf"))}function wg(a){return Object.prototype.toString.call(a)==="[object Object]"}function Dg(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function bl(a,i,s){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return!1;for(let o=0,c=a.length;oc||!bl(a[h],i[h],s)))return!1;return c===f}return!1}function Oi(a){let i,s;const o=new Promise((c,f)=>{i=c,s=f});return o.status="pending",o.resolve=c=>{o.status="resolved",o.value=c,i(c),a==null||a(c)},o.reject=c=>{o.status="rejected",s(c)},o}function t1(a){return typeof(a==null?void 0:a.message)!="string"?!1:a.message.startsWith("Failed to fetch dynamically imported module")||a.message.startsWith("error loading dynamically imported module")||a.message.startsWith("Importing a module script failed")}function Hs(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function e1(a){return a.replace(/[\x00-\x1f\x7f]/g,"")}function Lg(a){let i;try{i=decodeURI(a)}catch{i=a.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return e1(i)}const n1=["http:","https:","mailto:","tel:"];function Lo(a,i){if(!a)return!1;try{const s=new URL(a);return!i.has(s.protocol)}catch{return!1}}function zs(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let s=0,o="",c;for(;(c=i.exec(a))!==null;)o+=Lg(a.slice(s,c.index))+c[0],s=i.lastIndex;o=o+Lg(s?a.slice(s):a);let f=!1;return o.startsWith("//")&&(f=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:f}}function a1(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function l1(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let s=0;s{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,o&&(o.next=f,f.prev=o)):(f.next.prev=void 0,s=f.next,f.next=void 0,o&&(f.prev=o,o.next=f)),o=f)};return{get(f){const h=i.get(f);if(h)return c(h),h.value},set(f,h){if(i.size>=a&&s){const g=s;i.delete(g.key),g.next&&(s=g.next,g.next.prev=void 0),g===o&&(o=void 0)}const y=i.get(f);if(y)y.value=h,c(y);else{const g={key:f,value:h,prev:o};o&&(o.next=g),o=g,s||(s=g),i.set(f,g)}},clear(){i.clear(),s=void 0,o=void 0}}}const Ua=4,Qp=5;function i1(a){const i=a.indexOf("{");if(i===-1)return null;const s=a.indexOf("}",i);return s===-1||i+1>=a.length?null:[i,s]}function Gp(a,i,s=new Uint16Array(6)){const o=a.indexOf("/",i),c=o===-1?a.length:o,f=a.substring(i,c);if(!f||!f.includes("$"))return s[0]=0,s[1]=i,s[2]=i,s[3]=c,s[4]=c,s[5]=c,s;if(f==="$"){const y=a.length;return s[0]=2,s[1]=i,s[2]=i,s[3]=y,s[4]=y,s[5]=y,s}if(f.charCodeAt(0)===36)return s[0]=1,s[1]=i,s[2]=i+1,s[3]=c,s[4]=c,s[5]=c,s;const h=i1(f);if(h){const[y,g]=h,m=f.charCodeAt(y+1);if(m===45){if(y+2!G.parse&&G.caseSensitive===it&&G.prefix===st&&G.suffix===gt));if(D)z=D;else{const G=mf(1,s.fullPath??s.from,it,st,gt);z=G,G.depth=f,G.parent=c,c.dynamic??(c.dynamic=[]),c.dynamic.push(G)}break}case 3:{const I=B.substring(K,N[1]),et=B.substring(N[4],J),it=w&&!!(I||et),st=I?it?I:I.toLowerCase():void 0,gt=et?it?et:et.toLowerCase():void 0,D=!X&&((C=c.optional)==null?void 0:C.find(G=>!G.parse&&G.caseSensitive===it&&G.prefix===st&&G.suffix===gt));if(D)z=D;else{const G=mf(3,s.fullPath??s.from,it,st,gt);z=G,G.parent=c,G.depth=f,c.optional??(c.optional=[]),c.optional.push(G)}break}case 2:{const I=B.substring(K,N[1]),et=B.substring(N[4],J),it=w&&!!(I||et),st=I?it?I:I.toLowerCase():void 0,gt=et?it?et:et.toLowerCase():void 0,D=mf(2,s.fullPath??s.from,it,st,gt);z=D,D.parent=c,D.depth=f,c.wildcard??(c.wildcard=[]),c.wildcard.push(D)}}c=z}if(X&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const N=rl(s.fullPath??s.from);N.kind=Qp,N.parent=c,f++,N.depth=f,c.pathless??(c.pathless=[]),c.pathless.push(N),c=N}const P=(s.path||!s.children)&&!s.isRoot;if(P&&B.endsWith("/")){const N=rl(s.fullPath??s.from);N.kind=Ua,N.parent=c,f++,N.depth=f,c.index=N,c=N}c.parse=X??null,c.priority=((q=(A=s.options)==null?void 0:A.params)==null?void 0:q.priority)??0,P&&!c.route&&(c.route=s,c.fullPath=s.fullPath??s.from)}if(s.children)for(const B of s.children)Go(a,i,B,y,c,f,h)}function hf(a,i){if(a.parse&&!i.parse)return-1;if(!a.parse&&i.parse)return 1;if(a.parse&&i.parse&&(a.priority||i.priority))return i.priority-a.priority;if(a.prefix&&i.prefix&&a.prefix!==i.prefix){if(a.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(a.prefix))return 1}if(a.suffix&&i.suffix&&a.suffix!==i.suffix){if(a.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(a.suffix))return 1}return a.prefix&&!i.prefix?-1:!a.prefix&&i.prefix?1:a.suffix&&!i.suffix?-1:!a.suffix&&i.suffix?1:a.caseSensitive&&!i.caseSensitive?-1:!a.caseSensitive&&i.caseSensitive?1:0}function Ea(a){var i,s,o;if(a.pathless)for(const c of a.pathless)Ea(c);if(a.static)for(const c of a.static.values())Ea(c);if(a.staticInsensitive)for(const c of a.staticInsensitive.values())Ea(c);if((i=a.dynamic)!=null&&i.length){a.dynamic.sort(hf);for(const c of a.dynamic)Ea(c)}if((s=a.optional)!=null&&s.length){a.optional.sort(hf);for(const c of a.optional)Ea(c)}if((o=a.wildcard)!=null&&o.length){a.wildcard.sort(hf);for(const c of a.wildcard)Ea(c)}}function rl(a){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0}}function mf(a,i,s,o,c){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,priority:0,caseSensitive:s,prefix:o,suffix:c}}function s1(a,i){const s=rl("/"),o=new Uint16Array(6);for(const c of a)Go(!1,o,c,1,s,0);Ea(s),i.masksTree=s,i.flatCache=qs(1e3)}function u1(a,i){a||(a="/");const s=i.flatCache.get(a);if(s)return s;const o=td(a,i.masksTree);return i.flatCache.set(a,o),o}function o1(a,i,s,o,c){a||(a="/"),o||(o="/");const f=i?`case\0${a}`:a;let h=c.singleCache.get(f);return h||(h=rl("/"),Go(i,new Uint16Array(6),{from:a},1,h,0),c.singleCache.set(f,h)),td(o,h,s)}function r1(a,i,s=!1){const o=s?a:`nofuzz\0${a}`,c=i.matchCache.get(o);if(c!==void 0)return c;a||(a="/");let f;try{f=td(a,i.segmentTree,s)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=kp(f.route)),i.matchCache.set(o,f),f}function c1(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function f1(a,i=!1,s){const o=rl(a.fullPath),c=new Uint16Array(6),f={},h={};let y=0;return Go(i,c,a,1,o,0,g=>{if(s==null||s(g,y),g.id in f&&Jn(),f[g.id]=g,y!==0&&g.path){const m=c1(g.fullPath);(!h[m]||g.fullPath.endsWith("/"))&&(h[m]=g)}y++}),Ea(o),{processedTree:{segmentTree:o,singleCache:qs(1e3),matchCache:qs(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function td(a,i,s=!1){const o=a.split("/"),c=h1(a,o,i,s);if(!c)return null;const[f]=Yp(a,o,c);return{route:c.node.route,rawParams:f}}function Yp(a,i,s){var b,p,S,x,E,C,A,q,B,Z;const o=d1(s.node);let c=null;const f=Object.create(null);let h=((b=s.extract)==null?void 0:b.part)??0,y=((p=s.extract)==null?void 0:p.node)??0,g=((S=s.extract)==null?void 0:S.path)??0,m=((x=s.extract)==null?void 0:x.segment)??0;for(;y=0;N--){const z=p.wildcard[N],{prefix:K,suffix:J}=z;if(!(K&&(w||!(z.caseSensitive?X:P??(P=X.toLowerCase())).startsWith(K)))){if(J){if(w)continue;const I=i.slice(S).join("/").slice(-J.length);if((z.caseSensitive?I:I.toLowerCase())!==J)continue}y.push({node:z,index:h,skipped:x,depth:E+1,statics:C,dynamics:A,optionals:q,extract:B,rawParams:Z})}}if(p.optional){const N=x|1<=0;K--){const J=p.optional[K];y.push({node:J,index:S,skipped:N,depth:z,statics:C,dynamics:A,optionals:q,extract:B,rawParams:Z})}if(!w)for(let K=p.optional.length-1;K>=0;K--){const J=p.optional[K],{prefix:I,suffix:et}=J;if(I||et){const it=J.caseSensitive?X:P??(P=X.toLowerCase());if(I&&!it.startsWith(I)||et&&!it.endsWith(et))continue}y.push({node:J,index:S+1,skipped:x,depth:z,statics:C,dynamics:A,optionals:q+bo(h,S),extract:B,rawParams:Z})}}if(!w&&p.dynamic&&X)for(let N=p.dynamic.length-1;N>=0;N--){const z=p.dynamic[N],{prefix:K,suffix:J}=z;if(K||J){const I=z.caseSensitive?X:P??(P=X.toLowerCase());if(K&&!I.startsWith(K)||J&&!I.endsWith(J))continue}y.push({node:z,index:S+1,skipped:x,depth:E+1,statics:C,dynamics:A+bo(h,S),optionals:q,extract:B,rawParams:Z})}if(!w&&p.staticInsensitive){const N=p.staticInsensitive.get(P??(P=X.toLowerCase()));N&&y.push({node:N,index:S+1,skipped:x,depth:E+1,statics:C+bo(h,S),dynamics:A,optionals:q,extract:B,rawParams:Z})}if(!w&&p.static){const N=p.static.get(X);N&&y.push({node:N,index:S+1,skipped:x,depth:E+1,statics:C+bo(h,S),dynamics:A,optionals:q,extract:B,rawParams:Z})}if(p.pathless){const N=E+1;for(let z=p.pathless.length-1;z>=0;z--){const K=p.pathless[z];y.push({node:K,index:S,skipped:x,depth:N,statics:C,dynamics:A,optionals:q,extract:B,rawParams:Z})}}}if(m)return m;if(o&&g){let b=g.index;for(let S=0;Sa.statics||i.statics===a.statics&&(i.dynamics>a.dynamics||i.dynamics===a.dynamics&&(i.optionals>a.optionals||i.optionals===a.optionals&&((i.node.kind===Ua)>(a.node.kind===Ua)||i.node.kind===Ua==(a.node.kind===Ua)&&i.depth>a.depth))):!0}function Mo(a){return ed(a.filter(i=>i!==void 0).join("/"))}function ed(a){return a.replace(/\/{2,}/g,"/")}function Vp(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function Zn(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/{1,}$/,""):a}function Xp(a){return Zn(Vp(a))}function Uo(a,i){return a!=null&&a.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function y1(a,i,s){return Uo(a,s)===Uo(i,s)}function g1({base:a,to:i,trailingSlash:s="never",cache:o}){const c=i.startsWith("/"),f=!c&&i===".";let h;if(o){h=c?i:f?a:a+"\0"+i;const m=o.get(h);if(m)return m}let y;if(f)y=a.split("/");else if(c)y=i.split("/");else{for(y=a.split("/");y.length>1&&Bs(y)==="";)y.pop();const m=i.split("/");for(let b=0,p=m.length;b1&&(Bs(y)===""?s==="never"&&y.pop():s==="always"&&y.push(""));const g=ed(y.join("/"))||"/";return h&&o&&o.set(h,g),g}function p1(a){const i=new Map(a.map(c=>[encodeURIComponent(c),c])),s=Array.from(i.keys()).map(c=>c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return c=>c.replace(o,f=>i.get(f)??f)}function yf(a,i,s){const o=i[a];return typeof o!="string"?o:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(c=>jg(c,s)).join("/"):jg(o,s)}function Ng({path:a,params:i,decoder:s,...o}){let c=!1;const f=Object.create(null);if(!a||a==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:c};if(!a.includes("$"))return{interpolatedPath:a,usedParams:f,isMissingParams:c};const h=a.length;let y=0,g,m="";for(;y{i[0]==="?"&&(i=i.substring(1));const s=b1(i);for(const o in s){const c=s[o];if(typeof c=="string")try{s[o]=a(c)}catch{}}return s}}function R1(a,i){const s=typeof i=="function";function o(c){if(typeof c=="object"&&c!==null)try{return a(c)}catch{}else if(s&&typeof c=="string")try{return i(c),a(c)}catch{}return c}return c=>{const f=v1(c,o);return f?`?${f}`:""}}const Sl="__root__";function E1(a){if(a.statusCode=a.statusCode||a.code||307,!a._builtLocation&&!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const i=new Headers(a.headers);a.href&&i.get("Location")===null&&i.set("Location",a.href);const s=new Response(null,{status:a.statusCode,headers:i});if(s.options=a,a.throw)throw s;return s}function De(a){return a instanceof Response&&!!a.options}const Qf=a=>{var i;if(!a.rendered)return a.rendered=!0,(i=a.onReady)==null?void 0:i.call(a)},T1=a=>a.stores.matchesId.get().some(i=>{var s;return(s=a.stores.matchStores.get(i))==null?void 0:s.get()._forcePending}),Yo=(a,i)=>!!(a.preload&&!a.router.stores.matchStores.has(i)),xl=(a,i,s=!0)=>{const o={...a.router.options.context??{}},c=s?i:i-1;for(let f=0;f<=c;f++){const h=a.matches[f];if(!h)continue;const y=a.router.getMatch(h.id);y&&Object.assign(o,y.__routeContext,y.__beforeLoadContext)}return o},Bg=(a,i)=>{if(!a.matches.length)return;const s=i.routeId,o=a.matches.findIndex(h=>h.routeId===a.router.routeTree.id),c=o>=0?o:0;let f=s?a.matches.findIndex(h=>h.routeId===s):a.firstBadMatchIndex??a.matches.length-1;f<0&&(f=c);for(let h=f;h>=0;h--){const y=a.matches[h];if(a.router.looseRoutesById[y.routeId].options.notFoundComponent)return h}return s?f:c},Na=(a,i,s)=>{var o,c,f;if(!(!De(s)&&!pe(s)))throw De(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&((o=i._nonReactive.beforeLoadPromise)==null||o.resolve(),(c=i._nonReactive.loaderPromise)==null||c.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,a.updateMatch(i.id,h=>({...h,status:De(s)?"redirected":pe(s)?"notFound":h.status==="pending"?"success":h.status,context:xl(a,i.index),isFetching:!1,error:s})),pe(s)&&!s.routeId&&(s.routeId=i.routeId),(f=i._nonReactive.loadPromise)==null||f.resolve()),De(s)&&(a.rendered=!0,s.options._fromLocation=a.location,s.redirectHandled=!0,s=a.router.resolveRedirect(s))),s},Kp=(a,i)=>{const s=a.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},Hg=(a,i,s)=>{const o=xl(a,s);a.updateMatch(i,c=>({...c,context:o}))},Os=(a,i,s,o)=>{var y,g;const{id:c,routeId:f}=a.matches[i],h=a.router.looseRoutesById[f];if(s instanceof Promise)throw s;s.routerCode=o,a.firstBadMatchIndex??(a.firstBadMatchIndex=i),Na(a,a.router.getMatch(c),s);try{(g=(y=h.options).onError)==null||g.call(y,s)}catch(m){s=m,Na(a,a.router.getMatch(c),s)}a.updateMatch(c,m=>{var b,p;return(b=m._nonReactive.beforeLoadPromise)==null||b.resolve(),m._nonReactive.beforeLoadPromise=void 0,(p=m._nonReactive.loadPromise)==null||p.resolve(),{...m,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!a.preload&&!De(s)&&!pe(s)&&(a.serialError??(a.serialError=s))},Zp=(a,i,s,o)=>{var f;if(o._nonReactive.pendingTimeout!==void 0)return;const c=s.options.pendingMs??a.router.options.defaultPendingMs;if(a.onReady&&!Yo(a,i)&&(s.options.loader||s.options.beforeLoad||Pp(s))&&typeof c=="number"&&c!==1/0&&(s.options.pendingComponent??((f=a.router.options)==null?void 0:f.defaultPendingComponent))){const h=setTimeout(()=>{Qf(a)},c);o._nonReactive.pendingTimeout=h}},M1=(a,i,s)=>{const o=a.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Zp(a,i,s,o);const c=()=>{const f=a.router.getMatch(i);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Na(a,f,f.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(c):c()},C1=(a,i,s,o)=>{const c=a.router.getMatch(i);let f=c._nonReactive.loadPromise;c._nonReactive.loadPromise=Oi(()=>{f==null||f.resolve(),f=void 0});const{paramsError:h,searchError:y}=c;h&&Os(a,s,h,"PARSE_PARAMS"),y&&Os(a,s,y,"VALIDATE_SEARCH"),Zp(a,i,o,c);const g=new AbortController;let m=!1;const b=()=>{m||(m=!0,a.updateMatch(i,w=>({...w,isFetching:"beforeLoad",fetchCount:w.fetchCount+1,abortController:g})))},p=()=>{var w;(w=c._nonReactive.beforeLoadPromise)==null||w.resolve(),c._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,X=>({...X,isFetching:!1}))};if(!o.options.beforeLoad){a.router.batch(()=>{b(),p()});return}c._nonReactive.beforeLoadPromise=Oi();const S={...xl(a,s,!1),...c.__routeContext},{search:x,params:E,cause:C}=c,A=Yo(a,i),q={search:x,abortController:g,params:E,preload:A,context:S,location:a.location,navigate:w=>a.router.navigate({...w,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:A?"preload":C,matches:a.matches,routeId:o.id,...a.router.options.additionalContext},B=w=>{if(w===void 0){a.router.batch(()=>{b(),p()});return}(De(w)||pe(w))&&(b(),Os(a,s,w,"BEFORE_LOAD")),a.router.batch(()=>{b(),a.updateMatch(i,X=>({...X,__beforeLoadContext:w})),p()})};let Z;try{if(Z=o.options.beforeLoad(q),Hs(Z))return b(),Z.catch(w=>{Os(a,s,w,"BEFORE_LOAD")}).then(B)}catch(w){b(),Os(a,s,w,"BEFORE_LOAD")}B(Z)},A1=(a,i)=>{const{id:s,routeId:o}=a.matches[i],c=a.router.looseRoutesById[o],f=()=>y(),h=()=>C1(a,s,i,c),y=()=>{if(Kp(a,s))return;const g=M1(a,s,c);return Hs(g)?g.then(h):h()};return f()},z1=(a,i,s)=>{var f,h,y,g,m,b;const o=a.router.getMatch(i);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const c={ssr:a.router.options.ssr,matches:a.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([(h=(f=s.options).head)==null?void 0:h.call(f,c),(g=(y=s.options).scripts)==null?void 0:g.call(y,c),(b=(m=s.options).headers)==null?void 0:b.call(m,c)]).then(([p,S,x])=>({meta:p==null?void 0:p.meta,links:p==null?void 0:p.links,headScripts:p==null?void 0:p.scripts,headers:x,scripts:S,styles:p==null?void 0:p.styles}))},Jp=(a,i,s,o,c)=>{const f=i[o-1],{params:h,loaderDeps:y,abortController:g,cause:m}=a.router.getMatch(s),b=xl(a,o),p=Yo(a,s);return{params:h,deps:y,preload:!!p,parentMatchPromise:f,abortController:g,context:b,location:a.location,navigate:S=>a.router.navigate({...S,_fromLocation:a.location}),cause:p?"preload":m,route:c,...a.router.options.additionalContext}},qg=async(a,i,s,o,c)=>{var f,h,y,g,m;try{const b=a.router.getMatch(s);try{(!(Bp??a.router.isServer)||b.ssr===!0)&&Qs(c);const p=c.options.loader,S=typeof p=="function"?p:p==null?void 0:p.handler,x=S==null?void 0:S(Jp(a,i,s,o,c)),E=!!S&&Hs(x);if((E||c._lazyPromise||c._componentsPromise||c.options.head||c.options.scripts||c.options.headers||b._nonReactive.minPendingPromise)&&a.updateMatch(s,A=>({...A,isFetching:"loader"})),S){const A=E?await x:x;Na(a,a.router.getMatch(s),A),A!==void 0&&a.updateMatch(s,q=>({...q,loaderData:A}))}c._lazyPromise&&await c._lazyPromise;const C=b._nonReactive.minPendingPromise;C&&await C,c._componentsPromise&&await c._componentsPromise,a.updateMatch(s,A=>({...A,error:void 0,context:xl(a,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(p){let S=p;if((S==null?void 0:S.name)==="AbortError"){if(b.abortController.signal.aborted){(f=b._nonReactive.loaderPromise)==null||f.resolve(),b._nonReactive.loaderPromise=void 0;return}a.updateMatch(s,E=>({...E,status:E.status==="pending"?"success":E.status,isFetching:!1,context:xl(a,o)}));return}const x=b._nonReactive.minPendingPromise;x&&await x,pe(p)&&await((y=(h=c.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:y.call(h)),Na(a,a.router.getMatch(s),p);try{(m=(g=c.options).onError)==null||m.call(g,p)}catch(E){S=E,Na(a,a.router.getMatch(s),E)}!De(S)&&!pe(S)&&await Qs(c,["errorComponent"]),a.updateMatch(s,E=>({...E,error:S,context:xl(a,o),status:"error",isFetching:!1}))}}catch(b){const p=a.router.getMatch(s);p&&(p._nonReactive.loaderPromise=void 0),Na(a,p,b)}},O1=async(a,i,s)=>{var x,E,C,A;async function o(q,B,Z,w,X){const P=Date.now()-B.updatedAt,N=q?X.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:X.options.staleTime??a.router.options.defaultStaleTime??0,z=X.options.shouldReload,K=typeof z=="function"?z(Jp(a,i,c,s,X)):z,{status:J,invalid:I}=w,et=P>=N&&(!!a.forceStaleReload||w.cause==="enter"||Z!==void 0&&Z!==w.id);h=J==="success"&&(I||(K??et)),q&&X.options.preload===!1||(h&&!a.sync&&b?(y=!0,(async()=>{var it,st;try{await qg(a,i,c,s,X);const gt=a.router.getMatch(c);(it=gt._nonReactive.loaderPromise)==null||it.resolve(),(st=gt._nonReactive.loadPromise)==null||st.resolve(),gt._nonReactive.loaderPromise=void 0,gt._nonReactive.loadPromise=void 0}catch(gt){De(gt)&&await a.router.navigate(gt.options)}})()):J!=="success"||h?await qg(a,i,c,s,X):Hg(a,c,s))}const{id:c,routeId:f}=a.matches[s];let h=!1,y=!1;const g=a.router.looseRoutesById[f],m=g.options.loader,b=((typeof m=="function"||m==null?void 0:m.staleReloadMode)??a.router.options.defaultStaleReloadMode)!=="blocking";if(Kp(a,c)){if(!a.router.getMatch(c))return a.matches[s];Hg(a,c,s)}else{const q=a.router.getMatch(c),B=a.router.stores.matchesId.get()[s],Z=((x=B&&a.router.stores.matchStores.get(B)||null)==null?void 0:x.routeId)===f?B:(E=a.router.stores.matches.get().find(X=>X.routeId===f))==null?void 0:E.id,w=Yo(a,c);if(q._nonReactive.loaderPromise){if(q.status==="success"&&!a.sync&&!q.preload&&b)return q;await q._nonReactive.loaderPromise;const X=a.router.getMatch(c),P=X._nonReactive.error||X.error;P&&Na(a,X,P),X.status==="pending"&&await o(w,q,Z,X,g)}else{const X=w&&!a.router.stores.matchStores.has(c),P=a.router.getMatch(c);P._nonReactive.loaderPromise=Oi(),X!==P.preload&&a.updateMatch(c,N=>({...N,preload:X})),await o(w,q,Z,P,g)}}const p=a.router.getMatch(c);y||((C=p._nonReactive.loaderPromise)==null||C.resolve(),(A=p._nonReactive.loadPromise)==null||A.resolve(),p._nonReactive.loadPromise=void 0),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,y||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const S=y?p.isFetching:!1;return S!==p.isFetching||p.invalid!==!1?(a.updateMatch(c,q=>({...q,isFetching:S,invalid:!1})),a.router.getMatch(c)):p};async function Qg(a){var S,x;const i=a,s=[];T1(i.router)&&Qf(i);let o;for(let E=0;E({...Z,...B?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),b=E,await Qs(A,["notFoundComponent"])}else if(!i.preload){const E=i.matches[0];E.globalNotFound||(x=i.router.getMatch(E.id))!=null&&x.globalNotFound&&i.updateMatch(E.id,C=>({...C,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const E=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Qs(E,["errorComponent"])}for(let E=0;E<=b;E++){const{id:C,routeId:A}=i.matches[E],q=i.router.looseRoutesById[A];try{const B=z1(i,C,q);if(B){const Z=await B;i.updateMatch(C,w=>({...w,...Z}))}}catch(B){console.error(`Error executing head for route ${A}:`,B)}}const p=Qf(i);if(Hs(p)&&await p,m)throw m;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Gg(a,i){const s=i.map(o=>{var c,f;return(f=(c=a.options[o])==null?void 0:c.preload)==null?void 0:f.call(c)}).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Qs(a,i=Co){!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(o=>{const{id:c,...f}=o.options;Object.assign(a.options,f),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0);const s=()=>a._componentsLoaded?void 0:i===Co?(()=>{if(a._componentsPromise===void 0){const o=Gg(a,Co);o?a._componentsPromise=o.then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0}):a._componentsLoaded=!0}return a._componentsPromise})():Gg(a,i);return a._lazyPromise?a._lazyPromise.then(s):s()}function Pp(a){var i;for(const s of Co)if((i=a.options[s])!=null&&i.preload)return!0;return!1}const Co=["component","errorComponent","pendingComponent","notFoundComponent"];function w1(a){return{input:({url:i})=>{for(const s of a)i=Gf(s,i);return i},output:({url:i})=>{for(let s=a.length-1;s>=0;s--)i=Fp(a[s],i);return i}}}function D1(a){const i=Xp(a.basepath),s=`/${i}`,o=a.caseSensitive?s:s.toLowerCase(),c=`${o}/`;return{input:({url:f})=>{const h=a.caseSensitive?f.pathname:f.pathname.toLowerCase();return h===o?f.pathname="/":h.startsWith(c)&&(f.pathname=f.pathname.slice(s.length)),f},output:({url:f})=>(f.pathname=Mo(["/",i,f.pathname]),f)}}function Gf(a,i){var o;const s=(o=a==null?void 0:a.input)==null?void 0:o.call(a,{url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Fp(a,i){var o;const s=(o=a==null?void 0:a.output)==null?void 0:o.call(a,{url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function L1(a,i){const{createMutableStore:s,createReadonlyStore:o,batch:c,init:f}=i,h=new Map,y=new Map,g=new Map,m=s(a.status),b=s(a.loadedAt),p=s(a.isLoading),S=s(a.isTransitioning),x=s(a.location),E=s(a.resolvedLocation),C=s(a.statusCode),A=s(a.redirect),q=s([]),B=s([]),Z=s([]),w=o(()=>pf(h,q.get())),X=o(()=>pf(y,B.get())),P=o(()=>pf(g,Z.get())),N=o(()=>q.get()[0]),z=o(()=>q.get().some(G=>{var ct;return((ct=h.get(G))==null?void 0:ct.get().status)==="pending"})),K=o(()=>{var G;return{locationHref:x.get().href,resolvedLocationHref:(G=E.get())==null?void 0:G.href,status:m.get()}}),J=o(()=>({status:m.get(),loadedAt:b.get(),isLoading:p.get(),isTransitioning:S.get(),matches:w.get(),location:x.get(),resolvedLocation:E.get(),statusCode:C.get(),redirect:A.get()})),I=qs(64);function et(G){let ct=I.get(G);return ct||(ct=o(()=>{const At=q.get();for(const W of At){const T=h.get(W);if(T&&T.routeId===G)return T.get()}}),I.set(G,ct)),ct}const it={status:m,loadedAt:b,isLoading:p,isTransitioning:S,location:x,resolvedLocation:E,statusCode:C,redirect:A,matchesId:q,pendingIds:B,cachedIds:Z,matches:w,pendingMatches:X,cachedMatches:P,firstId:N,hasPending:z,matchRouteDeps:K,matchStores:h,pendingMatchStores:y,cachedMatchStores:g,__store:J,getRouteMatchStore:et,setMatches:st,setPending:gt,setCached:D};st(a.matches),f==null||f(it);function st(G){vf(G,h,q,s,c)}function gt(G){vf(G,y,B,s,c)}function D(G){vf(G,g,Z,s,c)}return it}function pf(a,i){const s=[];for(const o of i){const c=a.get(o);c&&s.push(c.get())}return s}function vf(a,i,s,o,c){const f=a.map(y=>y.id),h=new Set(f);c(()=>{for(const y of i.keys())h.has(y)||i.delete(y);for(const y of a){const g=i.get(y.id);if(!g){const m=o(y);m.routeId=y.routeId,i.set(y.id,m);continue}g.routeId=y.routeId,g.get()!==y&&g.set(y)}l1(s.get(),f)||s.set(f)})}var Ba="__TSR_index",Yg="popstate",kg="beforeunload";function U1(a){let i=a.getLocation();const s=new Set,o=h=>{i=a.getLocation(),s.forEach(y=>y({location:i,action:h}))},c=h=>{a.notifyOnIndexChange??!0?o(h):i=a.getLocation()},f=async({task:h,navigateOpts:y,...g})=>{var p,S;if((y==null?void 0:y.ignoreBlocker)??!1){h();return}const m=((p=a.getBlockers)==null?void 0:p.call(a))??[],b=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&m.length&&b)for(const x of m){const E=No(g.path,g.state);if(await x.blockerFn({currentLocation:i,nextLocation:E,action:g.type})){(S=a.onBlocked)==null||S.call(a);return}}h()};return{get location(){return i},get length(){return a.getLength()},subscribers:s,subscribe:h=>(s.add(h),()=>{s.delete(h)}),push:(h,y,g)=>{const m=i.state[Ba];y=Vg(m+1,y),f({task:()=>{a.pushState(h,y),o({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:h,state:y})},replace:(h,y,g)=>{const m=i.state[Ba];y=Vg(m,y),f({task:()=>{a.replaceState(h,y),o({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:h,state:y})},go:(h,y)=>{f({task:()=>{a.go(h),c({type:"GO",index:h})},navigateOpts:y,type:"GO"})},back:h=>{f({task:()=>{a.back((h==null?void 0:h.ignoreBlocker)??!1),c({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{a.forward((h==null?void 0:h.ignoreBlocker)??!1),c({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>i.state[Ba]!==0,createHref:h=>a.createHref(h),block:h=>{var g;if(!a.setBlockers)return()=>{};const y=((g=a.getBlockers)==null?void 0:g.call(a))??[];return a.setBlockers([...y,h]),()=>{var b,p;const m=((b=a.getBlockers)==null?void 0:b.call(a))??[];(p=a.setBlockers)==null||p.call(a,m.filter(S=>S!==h))}},flush:()=>{var h;return(h=a.flush)==null?void 0:h.call(a)},destroy:()=>{var h;return(h=a.destroy)==null?void 0:h.call(a)},notify:o}}function Vg(a,i){i||(i={});const s=nd();return{...i,key:s,__TSR_key:s,[Ba]:a}}function N1(a){var z,K;const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let c=[];const f=()=>c,h=J=>c=J,y=(J=>J),g=(()=>No(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!((z=i.history.state)!=null&&z.__TSR_key)&&!((K=i.history.state)!=null&&K.key)){const J=nd();i.history.replaceState({[Ba]:0,key:J,__TSR_key:J},"")}let m=g(),b,p=!1,S=!1,x=!1,E=!1;const C=()=>m;let A,q;const B=()=>{A&&(N._ignoreSubscribers=!0,(A.isPush?i.history.pushState:i.history.replaceState)(A.state,"",A.href),N._ignoreSubscribers=!1,A=void 0,q=void 0,b=void 0)},Z=(J,I,et)=>{const it=y(I);q||(b=m),m=No(I,et),A={href:it,state:et,isPush:(A==null?void 0:A.isPush)||J==="push"},q||(q=Promise.resolve().then(()=>B()))},w=J=>{m=g(),N.notify({type:J})},X=async()=>{if(S){S=!1;return}const J=g(),I=J.state[Ba]-m.state[Ba],et=I===1,it=I===-1,st=!et&&!it||p;p=!1;const gt=st?"GO":it?"BACK":"FORWARD",D=st?{type:"GO",index:I}:{type:it?"BACK":"FORWARD"};if(x)x=!1;else{const G=f();if(typeof document<"u"&&G.length){for(const ct of G)if(await ct.blockerFn({currentLocation:m,nextLocation:J,action:gt})){S=!0,i.history.go(1),N.notify(D);return}}}m=g(),N.notify(D)},P=J=>{if(E){E=!1;return}let I=!1;const et=f();if(typeof document<"u"&&et.length)for(const it of et){const st=it.enableBeforeUnload??!0;if(st===!0){I=!0;break}if(typeof st=="function"&&st()===!0){I=!0;break}}if(I)return J.preventDefault(),J.returnValue=""},N=U1({getLocation:C,getLength:()=>i.history.length,pushState:(J,I)=>Z("push",J,I),replaceState:(J,I)=>Z("replace",J,I),back:J=>(J&&(x=!0),E=!0,i.history.back()),forward:J=>{J&&(x=!0),E=!0,i.history.forward()},go:J=>{p=!0,i.history.go(J)},createHref:J=>y(J),flush:B,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(kg,P,{capture:!0}),i.removeEventListener(Yg,X)},onBlocked:()=>{b&&m!==b&&(m=b)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return i.addEventListener(kg,P,{capture:!0}),i.addEventListener(Yg,X),i.history.pushState=function(...J){const I=s.apply(i.history,J);return N._ignoreSubscribers||w("PUSH"),I},i.history.replaceState=function(...J){const I=o.apply(i.history,J);return N._ignoreSubscribers||w("REPLACE"),I},N}function j1(a){let i=a.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function No(a,i){const s=j1(a),o=s.indexOf("#"),c=s.indexOf("?"),f=nd();return{href:s,pathname:s.substring(0,o>0?c>0?Math.min(o,c):o:c>0?c:s.length),hash:o>-1?s.substring(o):"",search:c>-1?s.slice(c,o===-1?void 0:o):"",state:i||{[Ba]:0,key:f,__TSR_key:f}}}function nd(){return(Math.random()+1).toString(36).substring(7)}function mi(a,i){const s=i,o=a;return{fromLocation:s,toLocation:o,pathChanged:(s==null?void 0:s.pathname)!==o.pathname,hrefChanged:(s==null?void 0:s.href)!==o.href,hashChanged:(s==null?void 0:s.hash)!==o.hash}}const Yf=new WeakMap;var B1=class{constructor(a,i){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.routeBranchCache=new WeakMap,this.startTransition=s=>s(),this.update=s=>{var b;const o=this.options,c=this.basepath??(o==null?void 0:o.basepath)??"/",f=this.basepath===void 0,h=o==null?void 0:o.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=p1(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=N1()),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 p;this.resolvePathCache=qs(1e3),p=this.buildRouteTree(),this.setRoutes(p)}if(!this.stores&&this.latestLocation){const p=this.getStoreConfig(this);this.batch=p.batch,this.stores=L1(q1(this.latestLocation),p),F1(this)}let y=!1;const g=this.options.basepath??"/",m=this.options.rewrite;if(f||c!==g||h!==m){this.basepath=g;const p=[],S=Xp(g);S&&S!=="/"&&p.push(D1({basepath:g})),m&&p.push(m),this.rewrite=p.length===0?void 0:p.length===1?p[0]:w1(p),this.history&&this.updateLatestLocation(),y=!0}y&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((b=window.CSS)==null?void 0:b.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 s=f1(this.routeTree,this.options.caseSensitive,(o,c)=>{o.init({originalIndex:c})});return this.options.routeMasks&&s1(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const c={eventType:s,fn:o};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const c=({pathname:g,search:m,hash:b,href:p,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const q=this.options.parseSearch(m),B=this.options.stringifySearch(q);return{href:g+B+b,publicHref:g+B+b,pathname:zs(g).path,external:!1,searchStr:B,search:ll(o==null?void 0:o.search,q),hash:zs(b.slice(1)).path,state:ol(o==null?void 0:o.state,S)}}const x=new URL(p,this.origin),E=Gf(this.rewrite,x),C=this.options.parseSearch(E.search),A=this.options.stringifySearch(C);return E.search=A,{href:E.href.replace(E.origin,""),publicHref:p,pathname:zs(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:A,search:ll(o==null?void 0:o.search,C),hash:zs(E.hash.slice(1)).path,state:ol(o==null?void 0:o.state,S)}},f=c(s),{__tempLocation:h,__tempKey:y}=f.state;if(h&&(!y||y===this.tempLocationKey)){const g=c(h);return g.state.key=f.state.key,g.state.__TSR_key=f.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:f}}return f},this.resolvePathWithBase=(s,o)=>g1({base:s,to:o.includes("//")?ed(o):o,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,c)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},c):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>Q1({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(s=>{this.cancelMatch(s)}),this.stores.matchesId.get().forEach(s=>{var c;if(this.stores.pendingMatchStores.has(s))return;const o=(c=this.stores.matchStores.get(s))==null?void 0:c.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const o=(f={})=>{var I,et;const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,y=this.matchRoutesLightweight(h);f.from;const g=f.unsafeRelative==="path"?h.pathname:f.from??y.fullPath,m=f.to?`${f.to}`:void 0,b=y.search,p=Object.assign(Object.create(null),y.params),S=(m==null?void 0:m.charCodeAt(0))===47?"/":this.resolvePathWithBase(g,"."),x=m?this.resolvePathWithBase(S,m):S,E=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?p:Object.assign(p,ul(f.params,p)),C=this.routesByPath[Zn(x)];let A;if(C)A=this.getRouteBranch(C);else if(x.includes("$"))A=[];else{const it=this.getMatchedRoutes(x);A=it.matchedRoutes,this.options.notFoundRoute&&(!it.foundRoute||it.foundRoute.path!=="/"&&it.routeParams["**"])&&(A=[...A,this.options.notFoundRoute])}if(A.length&&qp(E))for(const it of A){const st=((I=it.options.params)==null?void 0:I.stringify)??it.options.stringifyParams;if(st)try{Object.assign(E,st(E))}catch{}}const q=s.leaveParams?x:zs(Ng({path:x,params:E,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let B=b;if(s._includeValidateSearch&&((et=this.options.search)!=null&&et.strict)){const it={};A.forEach(st=>{if(st.options.validateSearch)try{Object.assign(it,Ao(st.options.validateSearch,{...it,...B}))}catch{}}),B=it}B=G1({search:B,dest:f,destRoutes:A,_includeValidateSearch:s._includeValidateSearch}),B=ll(b,B);const Z=this.options.stringifySearch(B),w=f.hash===!0?h.hash:f.hash?ul(f.hash,h.hash):void 0,X=w?`#${w}`:"";let P=f.state===!0?h.state:f.state?ul(f.state,h.state):{};P=ol(h.state,P);const N=`${q}${Z}${X}`;let z,K,J=!1;if(this.rewrite){const it=new URL(N,this.origin),st=Fp(this.rewrite,it);z=it.href.replace(it.origin,""),st.origin!==this.origin?(K=st.href,J=!0):K=st.pathname+st.search+st.hash}else z=a1(N),K=z;return{publicHref:K,href:z,pathname:q,search:B,searchStr:Z,state:P,hash:w??"",external:J,unmaskOnReload:f.unmaskOnReload}},c=(f={},h)=>{const y=o(f);let g=h?o(h):void 0;if(!g){const m=Object.create(null);if(this.options.routeMasks){const b=u1(y.pathname,this.processedTree);if(b){Object.assign(m,b.rawParams);const{from:p,params:S,...x}=b.route,E=S===!1||S===null?Object.create(null):(S??!0)===!0?m:Object.assign(m,ul(S,m));h={from:s.from,...x,params:E},g=o(h)}}}return g&&(y.maskedLocation=g),y};return s.mask?c(s,{from:s.from,...s.mask}):c(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...c})=>{let f;const h=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(p=>{c.state[p]=this.latestLocation.state[p]});const b=bl(c.state,this.latestLocation.state);return m.forEach(p=>{delete c.state[p]}),b},y=Zn(this.latestLocation.href)===Zn(c.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=Oi(()=>{g==null||g.resolve(),g=void 0}),y&&h())this.load();else{let{maskedLocation:m,hashScrollIntoView:b,...p}=c;m&&(p={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=b??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,f=c.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:o})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(f?{action:{type:f}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:c,viewTransition:f,ignoreBlocker:h,href:y,...g}={})=>{if(y){const p=this.history.location.state.__TSR_index,S=No(y,{__TSR_index:s?p:p+1}),x=new URL(S.pathname,this.origin);g.to=Gf(this.rewrite,x).pathname,g.search=this.options.parseSearch(S.search),g.hash=S.hash.slice(1)}const m=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const b=this.commitLocation({...m,viewTransition:f,replace:s,resetScroll:o,hashScrollIntoView:c,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:s,reloadDocument:o,href:c,publicHref:f,...h})=>{var g,m;let y=!1;if(c)try{new URL(`${c}`),y=!0}catch{}if(y&&!o&&(o=!0),o){if(s!==void 0||!c){const p=this.buildLocation({to:s,...h});c=c??p.publicHref,f=f??p.publicHref}const b=!y&&f?f:c;if(Lo(b,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const p=((m=(g=this.history).getBlockers)==null?void 0:m.call(g))??[];for(const S of p)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(b):window.location.href=b,Promise.resolve()}return this.buildAndCommitLocation({...h,href:c,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(c=>!s.some(f=>f.id===c.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(s),this.stores.setCached(o)})},this.load=async s=>{var m;const o=(m=s==null?void 0:s.action)==null?void 0:m.type;let c,f,h;const y=this.stores.resolvedLocation.get()??this.stores.location.get();for(h=new Promise(b=>{this.startTransition(async()=>{var p;try{this.beforeLoad(),o?Yf.set(this.latestLocation,o):Yf.delete(this.latestLocation);const S=this.latestLocation,x=mi(S,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...x}),this.emit({type:"onBeforeLoad",...x}),await Qg({router:this,sync:s==null?void 0:s.sync,forceStaleReload:y.href===S.href,matches:this.stores.pendingMatches.get(),location:S,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var B,Z;let E=null,C=null,A=null,q=null;this.batch(()=>{const w=this.stores.pendingMatches.get(),X=w.length,P=this.stores.matches.get();E=X?P.filter(K=>!this.stores.pendingMatchStores.has(K.id)):null;const N=new Set;for(const K of this.stores.pendingMatchStores.values())K.routeId&&N.add(K.routeId);const z=new Set;for(const K of this.stores.matchStores.values())K.routeId&&z.add(K.routeId);C=X?P.filter(K=>!N.has(K.routeId)):null,A=X?w.filter(K=>!z.has(K.routeId)):null,q=X?w.filter(K=>z.has(K.routeId)):P,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),X&&(this.stores.setMatches(w),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...E.filter(K=>K.status!=="error"&&K.status!=="notFound"&&K.status!=="redirected")]),this.clearExpiredCache())});for(const[w,X]of[[C,"onLeave"],[A,"onEnter"],[q,"onStay"]])if(w)for(const P of w)(Z=(B=this.looseRoutesById[P.routeId].options)[X])==null||Z.call(B,P)})})}})}catch(S){De(S)?(c=S,this.navigate({...c.options,replace:!0,ignoreBlocker:!0})):pe(S)&&(f=S);const x=c?c.status:f?404:this.stores.matches.get().some(E=>E.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(x),this.stores.redirect.set(c)})}this.latestLoadPromise===h&&((p=this.commitLocationPromise)==null||p.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),b()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.matches.get().some(b=>b.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.set(g)},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.stores.resolvedLocation.get(),y=typeof o.types=="function"?o.types(mi(f,h)):o.types;if(y===!1){s();return}c={update:s,types:y}}else c=s;document.startViewTransition(c)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const c=this.stores.pendingMatchStores.get(s);if(c){c.set(o);return}const f=this.stores.matchStores.get(s);if(f){f.set(o);return}const h=this.stores.cachedMatchStores.get(s);if(h){const y=o(h.get());y.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(g=>g.filter(m=>m!==s)):h.set(y)}})},this.getMatch=s=>{var o,c,f;return((o=this.stores.cachedMatchStores.get(s))==null?void 0:o.get())??((c=this.stores.pendingMatchStores.get(s))==null?void 0:c.get())??((f=this.stores.matchStores.get(s))==null?void 0:f.get())},this.invalidate=s=>{const o=c=>{var f;return((f=s==null?void 0:s.filter)==null?void 0:f.call(s,c))??!0?{...c,invalid:!0,...s!=null&&s.forcePending||c.status==="error"||c.status==="notFound"?{status:"pending",error:void 0}:void 0}:c};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().map(o))}),this.shouldViewTransition=!1,this.load({sync:s==null?void 0:s.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const c=s.options._builtLocation??this.buildLocation(s.options),f=this.getParsedLocationHref(c);s.options.href=f,s.headers.set("Location",f)}else if(o)try{const c=new URL(o);if(this.origin&&c.origin===this.origin){const f=c.pathname+c.search+c.hash;s.options.href=f,s.headers.set("Location",f)}}catch{}if(s.options.href&&!s.options._builtLocation&&Lo(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s==null?void 0:s.filter;o!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(c=>!o(c))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),o=c=>{const f=this.looseRoutesById[c.routeId];if(!f.options.loader)return!0;const h=(c.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return c.status==="error"?!0:s-c.updatedAt>=h};this.clearCache({filter:o})},this.loadRouteChunk=Qs,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let c=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const f=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),h=new Set([...f,...this.stores.cachedIds.get()]),y=c.filter(g=>!h.has(g.id));if(y.length){const g=this.stores.cachedMatches.get();this.stores.setCached([...g,...y])}try{return c=await Qg({router:this,matches:c,location:o,preload:!0,updateMatch:(g,m)=>{f.has(g)?c=c.map(b=>b.id===g?m(b):b):this.updateMatch(g,m)}}),c}catch(g){if(De(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:o});pe(g)||console.error(g);return}},this.matchRoute=(s,o)=>{const c={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(c);if(o!=null&&o.pending&&this.stores.status.get()!=="pending")return!1;const h=((o==null?void 0:o.pending)===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),y=o1(f.pathname,(o==null?void 0:o.caseSensitive)??!1,(o==null?void 0:o.fuzzy)??!1,h.pathname,this.processedTree);return!y||s.params&&!bl(y.rawParams,s.params,{partial:!0})?!1:(o==null?void 0:o.includeSearch)??!0?bl(h.search,f.search,{partial:!0})?y.rawParams:!1:y.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??x1,parseSearch:a.parseSearch??S1,protocolAllowlist:a.protocolAllowlist??n1}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:a,routesByPath:i,processedTree:s}){this.routesById=a,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}getRouteBranch(a){let i=this.routeBranchCache.get(a);return i||(i=kp(a),this.routeBranchCache.set(a,i)),i}get looseRoutesById(){return this.routesById}getParentContext(a){return a!=null&&a.id?a.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(a,i){var b,p;const s=this.getMatchedRoutes(a.pathname),{foundRoute:o,routeParams:c}=s;let{matchedRoutes:f}=s,h=!1;(o?o.path!=="/"&&c["**"]:Zn(a.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:h=!0);const y=h?k1(this.options.notFoundMode,f):void 0,g=new Array(f.length),m=new Map;for(const S of this.stores.matchStores.values())S.routeId&&m.set(S.routeId,S.get());for(let S=0;Sthis.navigate({...w,_fromLocation:a}),buildLocation:this.buildLocation,cause:x.cause,abortController:x.abortController,preload:!!x.preload,matches:g,routeId:E.id};x.__routeContext=E.options.context(Z)??void 0}x.context={...B,...x.__routeContext,...x.__beforeLoadContext}}}return g}matchRoutesLightweight(a){var m;const{matchedRoutes:i,routeParams:s}=this.getMatchedRoutes(a.pathname),o=Bs(i),c={...a.search};for(const b of i)try{Object.assign(c,Ao(b.options.validateSearch,c))}catch{}const f=Bs(this.stores.matchesId.get()),h=f&&((m=this.stores.matchStores.get(f))==null?void 0:m.get()),y=h&&h.routeId===o.id&&h.pathname===a.pathname;let g;if(y)g=h.params;else{const b=Object.assign(Object.create(null),s);for(const p of i)try{Xg(p,b)}catch{}g=b}return{matchedRoutes:i,fullPath:o.fullPath,search:c,params:g}}},jo=class extends Error{},H1=class extends Error{};function q1(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],statusCode:200}}function Ao(a,i){if(a==null)return{};if("~standard"in a){const s=a["~standard"].validate(i);if(s instanceof Promise)throw new jo("Async validation not supported");if(s.issues)throw new jo(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function Q1({pathname:a,routesById:i,processedTree:s}){const o=Object.create(null),c=Zn(a);let f;const h=r1(c,s,!0);return h&&(f=h.route,Object.assign(o,h.rawParams)),{matchedRoutes:(h==null?void 0:h.branch)||[i.__root__],routeParams:o,foundRoute:f}}function G1({search:a,dest:i,destRoutes:s,_includeValidateSearch:o}){return Y1(s)(a,i,o??!1)}function Y1(a){var c;const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of a){if("search"in f.options)(c=f.options.search)!=null&&c.middlewares&&i.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:y,next:g})=>{let m=y;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(m=f.options.preSearchFilters.reduce((p,S)=>S(p),y));const b=g(m);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((p,S)=>S(p),b):b};i.middlewares.push(h)}if(f.options.validateSearch){const h=({search:y,next:g})=>{const m=g(y);if(!i._includeValidateSearch)return m;try{return{...m,...Ao(f.options.validateSearch,m)??void 0}}catch{return m}};i.middlewares.push(h)}}const s=({search:f})=>{const h=i.dest;return h.search?h.search===!0?f:ul(h.search,f):{}};i.middlewares.push(s);const o=(f,h,y)=>{if(f>=y.length)return h;const g=y[f];return g({search:h,next:b=>o(f+1,b,y)})};return function(h,y,g){return i.dest=y,i._includeValidateSearch=g,o(0,h,i.middlewares)}}function k1(a,i){if(a!=="root")for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.children)return o.id}return Sl}function Xg(a,i){var o;const s=((o=a.options.params)==null?void 0:o.parse)??a.options.parseParams;if(s){const c=s(i);if(c===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,c)}}function V1(){try{return sessionStorage}catch{return}}const X1="tsr-scroll-restoration-v1_3",yi=V1();function K1(){try{return JSON.parse((yi==null?void 0:yi.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function Z1(){try{yi==null||yi.setItem(X1,JSON.stringify(Ra))}catch{}}const Ra=K1(),Kg="data-scroll-restoration-id",J1=a=>a.state.__TSR_key||a.href;function P1(a){const i=a.getAttribute(Kg);if(i)return`[${Kg}="${i}"]`;let s="",o=a,c;for(;c=o.parentNode;){let f=1,h=o;for(;h=h.previousElementSibling;)f++;const y=`${o.localName}:nth-child(${f})`;s=s?`${y} > ${s}`:y,o=c}return s}let xo=!1;const di="window";function kf(a){try{return typeof a=="function"?a():document.querySelector(a)}catch{}}function Zg(a){const i=[];for(const s of a){if(s===di)continue;const o=kf(s);o&&i.push(o)}return i}function F1(a,i){if(a.options.scrollRestoration&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup)return;a.isScrollRestorationSetup=!0,xo=!1;const s=a.options.getScrollRestorationKey||J1,o=new Map,c=(y,g,m)=>{const b=o.get(y)||{};b.scrollX=g,b.scrollY=m,o.set(y,b)};history.scrollRestoration="manual";const f=y=>{if(!(xo||!a.isScrollRestoring))if(y.target===document)c(di,scrollX,scrollY);else{const g=y.target;c(g,g.scrollLeft,g.scrollTop)}},h=y=>{if(!a.isScrollRestoring)return;const g=Ra[y]||(Ra[y]={});for(const[m,b]of o)m===di?g[di]=b:m.isConnected&&(g[P1(m)]=b)};document.addEventListener("scroll",f,!0),a.subscribe("onBeforeLoad",y=>{y.fromLocation&&h(s(y.fromLocation)),o.clear()}),addEventListener("pagehide",()=>{h(s(a.stores.resolvedLocation.get()??a.stores.location.get())),Z1()}),a.subscribe("onRendered",y=>{var E;const g=a.options.scrollRestorationBehavior,m=a.options.scrollToTopSelectors,b=a.resetNextScroll;let p;if(o.clear(),b||(a.resetNextScroll=!0),typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return;const S=s(y.toLocation),x=y.fromLocation&&s(y.fromLocation);if(a.isScrollRestoring&&x&&x!==S){const C=Ra[x];if(C){let A=Ra[S];for(const q in C){if(q===di){if(b)continue}else{const B=kf(q);if(!B||b&&m&&(p??(p=Zg(m)),p.includes(B)))continue}A||(A=Ra[S]={}),A[q]??(A[q]=C[q])}}}xo=!0;try{const C=y.toLocation.hash,A=y.toLocation.state.__hashScrollIntoViewOptions??!0;let q=!1;if(b){const B=Yf.get(y.toLocation),Z=C&&A&&(B==="PUSH"||B==="REPLACE"),w=a.isScrollRestoring?Ra[S]:void 0;if(w)for(const X in w){const{scrollX:P,scrollY:N}=w[X];if(X===di){if(Z)continue;scrollTo({top:N,left:P,behavior:g}),q=!0}else{const z=kf(X);z&&(z.scrollLeft=P,z.scrollTop=N)}}if(!q&&!C){const X={top:0,left:0,behavior:g};if(scrollTo(X),m){p??(p=Zg(m));for(const P of p)P.scrollTo(X)}}}!q&&C&&A&&((E=document.getElementById(C))==null||E.scrollIntoView(A))}finally{xo=!1}})}const I1="Error preloading route! ☝️";var Ip=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(a){if(this.init=i=>{var g,m;this.originalIndex=i.originalIndex;const s=this.options,o=!(s!=null&&s.path)&&!(s!=null&&s.id);this.parentRoute=(m=(g=this.options).getParentRoute)==null?void 0:m.call(g),o?this._path=Sl:this.parentRoute||Jn();let c=o?Sl:s==null?void 0:s.path;c&&c!=="/"&&(c=Vp(c));const f=(s==null?void 0:s.id)||c;let h=o?Sl:Mo([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);c==="__root__"&&(c="/"),h!=="__root__"&&(h=Mo(["/",h]));const y=h==="__root__"?"/":Mo([this.parentRoute.fullPath,c]);this._path=c,this._id=h,this._fullPath=y,this._to=Zn(y)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>E1({from:this.fullPath,...i}),this.options=a||{},this.isRoot=!(a!=null&&a.getParentRoute),a!=null&&a.id&&(a!=null&&a.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},W1=class extends Ip{constructor(a){super(a)}};function ad(a){const i=a.errorComponent??ld;return tt.jsx($1,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:s,reset:o})=>s?F.createElement(i,{error:s,reset:o}):a.children})}var $1=class extends F.Component{constructor(...a){super(...a),this.state={error:null}}static getDerivedStateFromProps(a,i){const s=a.getResetKey();return i.error&&i.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(a){return{error:a}}reset(){this.setState({error:null})}componentDidCatch(a,i){this.props.onCatch&&this.props.onCatch(a,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function ld({error:a}){const[i,s]=F.useState(!1);return tt.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[tt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[tt.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),tt.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:i?"Hide Error":"Show Error"})]}),tt.jsx("div",{style:{height:".25rem"}}),i?tt.jsx("div",{children:tt.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?tt.jsx("code",{children:a.message}):null})}):null]})}function tx({children:a,fallback:i=null}){return Wp()?tt.jsx(zi.Fragment,{children:a}):tt.jsx(zi.Fragment,{children:i})}function Wp(){return zi.useSyncExternalStore(ex,()=>!0,()=>!1)}function ex(){return()=>{}}var $p=F.createContext(null);function ln(a){return F.useContext($p)}var ko=F.createContext(void 0),nx=F.createContext(void 0),Kt=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(Kt||{});function ax({update:a,notify:i,unwatched:s}){return{link:o,unlink:c,propagate:f,checkDirty:h,shallowPropagate:y};function o(m,b,p){const S=b.depsTail;if(S!==void 0&&S.dep===m)return;const x=S!==void 0?S.nextDep:b.deps;if(x!==void 0&&x.dep===m){x.version=p,b.depsTail=x;return}const E=m.subsTail;if(E!==void 0&&E.version===p&&E.sub===b)return;const C=b.depsTail=m.subsTail={version:p,dep:m,sub:b,prevDep:S,nextDep:x,prevSub:E,nextSub:void 0};x!==void 0&&(x.prevDep=C),S!==void 0?S.nextDep=C:b.deps=C,E!==void 0?E.nextSub=C:m.subs=C}function c(m,b=m.sub){const p=m.dep,S=m.prevDep,x=m.nextDep,E=m.nextSub,C=m.prevSub;return x!==void 0?x.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=x:b.deps=x,E!==void 0?E.prevSub=C:p.subsTail=C,C!==void 0?C.nextSub=E:(p.subs=E)===void 0&&s(p),x}function f(m){let b=m.nextSub,p;t:do{const S=m.sub;let x=S.flags;if(x&60?x&12?x&4?!(x&48)&&g(m,S)?(S.flags=x|40,x&=1):x=0:S.flags=x&-9|32:x=0:S.flags=x|32,x&2&&i(S),x&1){const E=S.subs;if(E!==void 0){const C=(m=E).nextSub;C!==void 0&&(p={value:b,prev:p},b=C);continue}}if((m=b)!==void 0){b=m.nextSub;continue}for(;p!==void 0;)if(m=p.value,p=p.prev,m!==void 0){b=m.nextSub;continue t}break}while(!0)}function h(m,b){let p,S=0,x=!1;t:do{const E=m.dep,C=E.flags;if(b.flags&16)x=!0;else if((C&17)===17){if(a(E)){const A=E.subs;A.nextSub!==void 0&&y(A),x=!0}}else if((C&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(p={value:m,prev:p}),m=E.deps,b=E,++S;continue}if(!x){const A=m.nextDep;if(A!==void 0){m=A;continue}}for(;S--;){const A=b.subs,q=A.nextSub!==void 0;if(q?(m=p.value,p=p.prev):m=A,x){if(a(b)){q&&y(A),b=m.sub;continue}x=!1}else b.flags&=-33;b=m.sub;const B=m.nextDep;if(B!==void 0){m=B;continue t}}return x}while(!0)}function y(m){do{const b=m.sub,p=b.flags;(p&48)===32&&(b.flags=p|16,(p&6)===2&&i(b))}while((m=m.nextSub)!==void 0)}function g(m,b){let p=b.depsTail;for(;p!==void 0;){if(p===m)return!0;p=p.prevDep}return!1}}function lx(a,i,s){var f,h,y;const o=typeof a=="object",c=o?a:void 0;return{next:(f=o?a.next:a)==null?void 0:f.bind(c),error:(h=o?a.error:i)==null?void 0:h.bind(c),complete:(y=o?a.complete:s)==null?void 0:y.bind(c)}}const Vf=[];let zo=0;const{link:Jg,unlink:ix,propagate:sx,checkDirty:tv,shallowPropagate:Pg}=ax({update(a){return a._update()},notify(a){Vf[Xf++]=a,a.flags&=~Kt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=Kt.Mutable|Kt.Dirty,Bo(a))}});let _o=0,Xf=0,pn,Kf=0;function ev(a){try{++Kf,a()}finally{--Kf||nv()}}function Bo(a){const i=a.depsTail;let s=i!==void 0?i.nextDep:a.deps;for(;s!==void 0;)s=ix(s,a)}function nv(){if(!(Kf>0)){for(;_o{var m;c.get(),y.current?(m=h.next)==null||m.call(h,c._snapshot):y.current=!0});return{unsubscribe:()=>{g.stop()}}},_update(f){const h=pn,y=(i==null?void 0:i.compare)??Object.is;if(s)pn=c,++zo,c.depsTail=void 0;else if(f===void 0)return!1;s&&(c.flags=Kt.Mutable|Kt.RecursedCheck);try{const g=c._snapshot,m=typeof f=="function"?f(g):f===void 0&&s?o(g):f;return g===void 0||!y(g,m)?(c._snapshot=m,!0):!1}finally{pn=h,s&&(c.flags&=~Kt.RecursedCheck),Bo(c)}}};return s?(c.flags=Kt.Mutable|Kt.Dirty,c.get=function(){const f=c.flags;if(f&Kt.Dirty||f&Kt.Pending&&tv(c.deps,c)){if(c._update()){const h=c.subs;h!==void 0&&Pg(h)}}else f&Kt.Pending&&(c.flags=f&~Kt.Pending);return pn!==void 0&&Jg(c,pn,zo),c._snapshot}):c.set=function(f){if(c._update(f)){const h=c.subs;h!==void 0&&(sx(h),Pg(h),nv())}},c}function ux(a){const i=()=>{const o=pn;pn=s,++zo,s.depsTail=void 0,s.flags=Kt.Watching|Kt.RecursedCheck;try{return a()}finally{pn=o,s.flags&=~Kt.RecursedCheck,Bo(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Kt.Watching|Kt.RecursedCheck,notify(){const o=this.flags;o&Kt.Dirty||o&Kt.Pending&&tv(this.deps,this)?i():this.flags=Kt.Watching},stop(){this.flags=Kt.None,this.depsTail=void 0,Bo(this)}};return i(),s}var bf={exports:{}},Sf={},xf={exports:{}},_f={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ig;function ox(){if(Ig)return _f;Ig=1;var a=Ks();function i(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var s=typeof Object.is=="function"?Object.is:i,o=a.useState,c=a.useEffect,f=a.useLayoutEffect,h=a.useDebugValue;function y(p,S){var x=S(),E=o({inst:{value:x,getSnapshot:S}}),C=E[0].inst,A=E[1];return f(function(){C.value=x,C.getSnapshot=S,g(C)&&A({inst:C})},[p,x,S]),c(function(){return g(C)&&A({inst:C}),p(function(){g(C)&&A({inst:C})})},[p]),h(x),x}function g(p){var S=p.getSnapshot;p=p.value;try{var x=S();return!s(p,x)}catch{return!0}}function m(p,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:y;return _f.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,_f}var Wg;function rx(){return Wg||(Wg=1,xf.exports=ox()),xf.exports}/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $g;function cx(){if($g)return Sf;$g=1;var a=Ks(),i=rx();function s(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var o=typeof Object.is=="function"?Object.is:s,c=i.useSyncExternalStore,f=a.useRef,h=a.useEffect,y=a.useMemo,g=a.useDebugValue;return Sf.useSyncExternalStoreWithSelector=function(m,b,p,S,x){var E=f(null);if(E.current===null){var C={hasValue:!1,value:null};E.current=C}else C=E.current;E=y(function(){function q(P){if(!B){if(B=!0,Z=P,P=S(P),x!==void 0&&C.hasValue){var N=C.value;if(x(N,P))return w=N}return w=P}if(N=w,o(Z,P))return N;var z=S(P);return x!==void 0&&x(N,z)?(Z=P,N):(Z=P,w=z)}var B=!1,Z,w,X=p===void 0?null:p;return[function(){return q(b())},X===null?void 0:function(){return q(X())}]},[b,p,S,x]);var A=c(m,E[0],E[1]);return h(function(){C.hasValue=!0,C.value=A},[A]),g(A),A},Sf}var tp;function fx(){return tp||(tp=1,bf.exports=cx()),bf.exports}var dx=fx();function hx(a,i){return a===i}function Xe(a,i,s=hx){const o=F.useCallback(h=>{if(!a)return()=>{};const{unsubscribe:y}=a.subscribe(h);return y},[a]),c=F.useCallback(()=>a==null?void 0:a.get(),[a]);return dx.useSyncExternalStoreWithSelector(o,c,c,i,s)}var mx={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Rl(a){const i=ln(),s=F.useContext(a.from?nx:ko),o=a.from??s,c=o?a.from?i.stores.getRouteMatchStore(o):i.stores.matchStores.get(o):void 0,f=F.useRef(void 0);return Xe(c??mx,h=>{if((a.shouldThrow??!0)&&!h&&Jn(),h===void 0)return;const y=a.select?a.select(h):h;if(a.structuralSharing??i.options.defaultStructuralSharing){const g=ol(f.current,y);return f.current=g,g}return y})}function av(a){return Rl({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function lv(a){const{select:i,...s}=a;return Rl({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function iv(a){return Rl({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const s=a.strict===!1?i.params:i._strictParams;return a.select?a.select(s):s}})}function sv(a){return Rl({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.search):i.search})}function uv(a){const i=ln();return F.useCallback(s=>i.navigate({...s,from:s.from??(a==null?void 0:a.from)}),[a==null?void 0:a.from,i])}function ov(a){return Rl({...a,select:i=>a.select?a.select(i.context):i.context})}var rv=Ep();const QR=Rp(rv);function yx(a,i){const s=ln(),o=IS(i),{activeProps:c,inactiveProps:f,activeOptions:h,to:y,preload:g,preloadDelay:m,preloadIntentProximity:b,hashScrollIntoView:p,replace:S,startTransition:x,resetScroll:E,viewTransition:C,children:A,target:q,disabled:B,style:Z,className:w,onClick:X,onBlur:P,onFocus:N,onMouseEnter:z,onMouseLeave:K,onTouchStart:J,ignoreBlocker:I,params:et,search:it,hash:st,state:gt,mask:D,reloadDocument:G,unsafeRelative:ct,from:At,_fromLocation:W,...T}=a,k=Wp(),$=F.useMemo(()=>a,[s,a.from,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),nt=Xe(s.stores.location,Ht=>Ht,(Ht,oe)=>Ht.href===oe.href),at=F.useMemo(()=>{const Ht={_fromLocation:nt,...$};return s.buildLocation(Ht)},[s,nt,$]),ht=at.maskedLocation?at.maskedLocation.publicHref:at.publicHref,Rt=at.maskedLocation?at.maskedLocation.external:at.external,Bt=F.useMemo(()=>xx(ht,Rt,s.history,B),[B,Rt,ht,s.history]),pt=F.useMemo(()=>{if(Bt!=null&&Bt.external)return Lo(Bt.href,s.protocolAllowlist)?void 0:Bt.href;if(!_x(y)&&!(typeof y!="string"||y.indexOf(":")===-1))try{return new URL(y),Lo(y,s.protocolAllowlist)?void 0:y}catch{}},[y,Bt,s.protocolAllowlist]),Ke=F.useMemo(()=>{if(pt)return!1;if(h!=null&&h.exact){if(!y1(nt.pathname,at.pathname,s.basepath))return!1}else{const Ht=Uo(nt.pathname,s.basepath),oe=Uo(at.pathname,s.basepath);if(!(Ht.startsWith(oe)&&(Ht.length===oe.length||Ht[oe.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!bl(nt.search,at.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?k&&nt.hash===at.hash:!0},[h==null?void 0:h.exact,h==null?void 0:h.explicitUndefined,h==null?void 0:h.includeHash,h==null?void 0:h.includeSearch,nt,pt,k,at.hash,at.pathname,at.search,s.basepath]),_e=Ke?ul(c,{})??gx:Rf,Le=Ke?Rf:ul(f,{})??Rf,xn=[w,_e.className,Le.className].filter(Boolean).join(" "),ve=(Z||_e.style||Le.style)&&{...Z,..._e.style,...Le.style},[Li,Tl]=F.useState(!1),Ws=F.useRef(!1),_n=a.reloadDocument||pt?!1:g??s.options.defaultPreload,qa=m??s.options.defaultPreloadDelay??0,sn=F.useCallback(()=>{s.preloadRoute({...$,_builtLocation:at}).catch(Ht=>{console.warn(Ht),console.warn(I1)})},[s,$,at]);FS(o,F.useCallback(Ht=>{Ht!=null&&Ht.isIntersecting&&sn()},[sn]),Sx,{disabled:!!B||_n!=="viewport"}),F.useEffect(()=>{Ws.current||!B&&_n==="render"&&(sn(),Ws.current=!0)},[B,sn,_n]);const Ui=Ht=>{const oe=Ht.currentTarget.getAttribute("target"),fn=q!==void 0?q:oe;if(!B&&!Rx(Ht)&&!Ht.defaultPrevented&&(!fn||fn==="_self")&&Ht.button===0){Ht.preventDefault(),rv.flushSync(()=>{Tl(!0)});const Ml=s.subscribe("onResolved",()=>{Ml(),Tl(!1)});s.navigate({...$,replace:S,resetScroll:E,hashScrollIntoView:p,startTransition:x,viewTransition:C,ignoreBlocker:I})}};if(pt)return{...T,ref:o,href:pt,...A&&{children:A},...q&&{target:q},...B&&{disabled:B},...Z&&{style:Z},...w&&{className:w},...X&&{onClick:X},...P&&{onBlur:P},...N&&{onFocus:N},...z&&{onMouseEnter:z},...K&&{onMouseLeave:K},...J&&{onTouchStart:J}};const $s=Ht=>{if(B||_n!=="intent")return;if(!qa){sn();return}const oe=Ht.currentTarget;if(ws.has(oe))return;const fn=setTimeout(()=>{ws.delete(oe),sn()},qa);ws.set(oe,fn)},Xo=Ht=>{B||_n!=="intent"||sn()},me=Ht=>{if(B||!_n||!qa)return;const oe=Ht.currentTarget,fn=ws.get(oe);fn&&(clearTimeout(fn),ws.delete(oe))};return{...T,..._e,...Le,href:Bt==null?void 0:Bt.href,ref:o,onClick:fi([X,Ui]),onBlur:fi([P,me]),onFocus:fi([N,$s]),onMouseEnter:fi([z,$s]),onMouseLeave:fi([K,me]),onTouchStart:fi([J,Xo]),disabled:!!B,target:q,...ve&&{style:ve},...xn&&{className:xn},...B&&px,...Ke&&vx,...k&&Li&&bx}}var Rf={},gx={className:"active"},px={role:"link","aria-disabled":!0},vx={"data-status":"active","aria-current":"page"},bx={"data-transitioning":"transitioning"},ws=new WeakMap,Sx={rootMargin:"100px"},fi=a=>i=>{for(const s of a)if(s){if(i.defaultPrevented)return;s(i)}};function xx(a,i,s,o){if(!o)return i?{href:a,external:!0}:{href:s.createHref(a)||"/",external:!1}}function _x(a){if(typeof a!="string")return!1;const i=a.charCodeAt(0);return i===47?a.charCodeAt(1)!==47:i===46}var id=F.forwardRef((a,i)=>{const{_asChild:s,...o}=a,{type:c,...f}=yx(o,i),h=typeof o.children=="function"?o.children({isActive:f["data-status"]==="active"}):o.children;if(!s){const{disabled:y,...g}=f;return F.createElement("a",g,h)}return F.createElement(s,f,h)});function Rx(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var Ex=class extends Ip{constructor(i){super(i),this.useMatch=s=>Rl({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>ov({...s,from:this.id}),this.useSearch=s=>sv({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>iv({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>lv({...s,from:this.id}),this.useLoaderData=s=>av({...s,from:this.id}),this.useNavigate=()=>uv({from:this.fullPath}),this.Link=zi.forwardRef((s,o)=>tt.jsx(id,{ref:o,from:this.fullPath,...s}))}};function Tx(a){return new Ex(a)}var Mx=class extends W1{constructor(a){super(a),this.useMatch=i=>Rl({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>ov({...i,from:this.id}),this.useSearch=i=>sv({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>iv({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>lv({...i,from:this.id}),this.useLoaderData=i=>av({...i,from:this.id}),this.useNavigate=()=>uv({from:this.fullPath}),this.Link=zi.forwardRef((i,s)=>tt.jsx(id,{ref:s,from:this.fullPath,...i}))}};function Cx(a){return new Mx(a)}function Js(a){return new Ax(a,{silent:!0}).createRoute}var Ax=class{constructor(a,i){this.path=a,this.createRoute=s=>{const o=Tx(s);return o.isRoot=!1,o},this.silent=i==null?void 0:i.silent}};function Ps(a,i){let s,o,c,f;const h=()=>(s||(s=a().then(g=>{s=void 0,o=g[i]}).catch(g=>{if(c=g,t1(c)&&c instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${c.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),f=!0)}})),s),y=function(m){if(f)throw window.location.reload(),new Promise(()=>{});if(c)throw c;if(!o)if(Ag)Ag(h());else throw h();return F.createElement(o,m)};return y.preload=h,y}function zx(a){const i=ln(),s=`not-found-${Xe(i.stores.location,o=>o.pathname)}-${Xe(i.stores.status,o=>o)}`;return tt.jsx(ad,{getResetKey:()=>s,onCatch:(o,c)=>{var f;if(pe(o))(f=a.onCatch)==null||f.call(a,o,c);else throw o},errorComponent:({error:o})=>{var c;if(pe(o))return(c=a.fallback)==null?void 0:c.call(a,o);throw o},children:a.children})}function Ox(){return tt.jsx("p",{children:"Not Found"})}function hi(a){return tt.jsx(tt.Fragment,{children:a.children})}function cv(a,i,s){return i.options.notFoundComponent?tt.jsx(i.options.notFoundComponent,{...s}):a.options.defaultNotFoundComponent?tt.jsx(a.options.defaultNotFoundComponent,{...s}):tt.jsx(Ox,{})}function wx(a){return null}function Dx(){return wx(ln()),null}var fv=F.memo(function({matchId:i}){const s=ln(),o=s.stores.matchStores.get(i);o||Jn();const c=Xe(s.stores.loadedAt,h=>h),f=Xe(o,h=>h);return tt.jsx(Lx,{router:s,matchId:i,resetKey:c,matchState:F.useMemo(()=>{var g;const h=f.routeId,y=(g=s.routesById[h].parentRoute)==null?void 0:g.id;return{routeId:h,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:y}},[f._displayPending,f.routeId,f.ssr,s.routesById])})});function Lx({router:a,matchId:i,resetKey:s,matchState:o}){var E,C;const c=a.routesById[o.routeId],f=c.options.pendingComponent??a.options.defaultPendingComponent,h=f?tt.jsx(f,{}):null,y=c.options.errorComponent??a.options.defaultErrorComponent,g=c.options.onCatch??a.options.defaultOnCatch,m=c.isRoot?c.options.notFoundComponent??((E=a.options.notFoundRoute)==null?void 0:E.options.component):c.options.notFoundComponent,b=o.ssr===!1||o.ssr==="data-only",p=(!c.isRoot||c.options.wrapInSuspense||b)&&(c.options.wrapInSuspense??f??(((C=c.options.errorComponent)==null?void 0:C.preload)||b))?F.Suspense:hi,S=y?ad:hi,x=m?zx:hi;return tt.jsxs(c.isRoot?c.options.shellComponent??hi:hi,{children:[tt.jsx(ko.Provider,{value:i,children:tt.jsx(p,{fallback:h,children:tt.jsx(S,{getResetKey:()=>s,errorComponent:y||ld,onCatch:(A,q)=>{if(pe(A))throw A.routeId??(A.routeId=o.routeId),A;g==null||g(A,q)},children:tt.jsx(x,{fallback:A=>{if(A.routeId??(A.routeId=o.routeId),!m||A.routeId&&A.routeId!==o.routeId||!A.routeId&&!c.isRoot)throw A;return F.createElement(m,A)},children:b||o._displayPending?tt.jsx(tx,{fallback:h,children:tt.jsx(ep,{matchId:i})}):tt.jsx(ep,{matchId:i})})})})}),o.parentRouteId===Sl?tt.jsxs(tt.Fragment,{children:[tt.jsx(Ux,{resetKey:s}),a.options.scrollRestoration&&Bp?tt.jsx(Dx,{}):null]}):null]})}function Ux({resetKey:a}){const i=ln(),s=F.useRef(void 0);return Us(()=>{const o=i.latestLocation.href;(s.current===void 0||s.current!==o)&&(i.emit({type:"onRendered",...mi(i.stores.location.get(),i.stores.resolvedLocation.get())}),s.current=o)},[i.latestLocation.state.__TSR_key,a,i]),null}var ep=F.memo(function({matchId:i}){const s=ln(),o=(b,p)=>{var S;return((S=s.getMatch(b.id))==null?void 0:S._nonReactive[p])??b._nonReactive[p]},c=s.stores.matchStores.get(i);c||Jn();const f=Xe(c,b=>b),h=f.routeId,y=s.routesById[h],g=F.useMemo(()=>{var p;const b=(p=s.routesById[h].options.remountDeps??s.options.defaultRemountDeps)==null?void 0:p({routeId:h,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return b?JSON.stringify(b):void 0},[h,f.loaderDeps,f._strictParams,f._strictSearch,s.options.defaultRemountDeps,s.routesById]),m=F.useMemo(()=>{const b=y.options.component??s.options.defaultComponent;return b?tt.jsx(b,{},g):tt.jsx(dv,{})},[g,y.options.component,s.options.defaultComponent]);if(f._displayPending)throw o(f,"displayPendingPromise");if(f._forcePending)throw o(f,"minPendingPromise");if(f.status==="pending"){const b=y.options.pendingMinMs??s.options.defaultPendingMinMs;if(b){const p=s.getMatch(f.id);if(p&&!p._nonReactive.minPendingPromise){const S=Oi();p._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),p._nonReactive.minPendingPromise=void 0},b)}}throw o(f,"loadPromise")}if(f.status==="notFound")return pe(f.error)||Jn(),cv(s,y,f.error);if(f.status==="redirected")throw De(f.error)||Jn(),o(f,"loadPromise");if(f.status==="error")throw f.error;return m}),dv=F.memo(function(){const i=ln(),s=F.useContext(ko);let o,c=!1,f;{const m=s?i.stores.matchStores.get(s):void 0;[o,c]=Xe(m,b=>[b==null?void 0:b.routeId,(b==null?void 0:b.globalNotFound)??!1]),f=Xe(i.stores.matchesId,b=>b[b.findIndex(p=>p===s)+1])}const h=o?i.routesById[o]:void 0,y=i.options.defaultPendingComponent?tt.jsx(i.options.defaultPendingComponent,{}):null;if(c)return h||Jn(),cv(i,h,void 0);if(!f)return null;const g=tt.jsx(fv,{matchId:f});return o===Sl?tt.jsx(F.Suspense,{fallback:y,children:g}):g});function Nx(){const a=ln(),i=F.useRef({router:a,mounted:!1}),[s,o]=F.useState(!1),c=Xe(a.stores.isLoading,p=>p),f=Xe(a.stores.hasPending,p=>p),h=df(c),y=c||s||f,g=df(y),m=c||f,b=df(m);return a.startTransition=p=>{o(!0),F.startTransition(()=>{p(),o(!1)})},F.useEffect(()=>{const p=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Zn(a.latestLocation.publicHref)!==Zn(S.publicHref)&&a.commitLocation({...S,replace:!0}),()=>{p()}},[a,a.history]),Us(()=>{if(typeof window<"u"&&a.ssr||i.current.router===a&&i.current.mounted)return;i.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),Us(()=>{h&&!c&&a.emit({type:"onLoad",...mi(a.stores.location.get(),a.stores.resolvedLocation.get())})},[h,a,c]),Us(()=>{b&&!m&&a.emit({type:"onBeforeRouteMount",...mi(a.stores.location.get(),a.stores.resolvedLocation.get())})},[m,b,a]),Us(()=>{if(g&&!y){const p=mi(a.stores.location.get(),a.stores.resolvedLocation.get());a.emit({type:"onResolved",...p}),ev(()=>{a.stores.status.set("idle"),a.stores.resolvedLocation.set(a.stores.location.get())})}},[y,g,a]),null}function jx(){const a=ln(),i=a.routesById[Sl].options.pendingComponent??a.options.defaultPendingComponent,s=i?tt.jsx(i,{}):null,o=tt.jsxs(typeof document<"u"&&a.ssr?hi:F.Suspense,{fallback:s,children:[tt.jsx(Nx,{}),tt.jsx(Bx,{})]});return a.options.InnerWrap?tt.jsx(a.options.InnerWrap,{children:o}):o}function Bx(){const a=ln(),i=Xe(a.stores.firstId,c=>c),s=Xe(a.stores.loadedAt,c=>c),o=i?tt.jsx(fv,{matchId:i}):null;return tt.jsx(ko.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?o:tt.jsx(ad,{getResetKey:()=>s,errorComponent:ld,onCatch:void 0,children:o})})}var Hx=a=>({createMutableStore:Fg,createReadonlyStore:Fg,batch:ev}),qx=a=>new Qx(a),Qx=class extends B1{constructor(a){super(a,Hx)}};function Gx({router:a,children:i,...s}){qp(s)&&a.update({...a.options,...s,context:{...a.options.context,...s.context}});const o=tt.jsx($p.Provider,{value:a,children:i});return a.options.Wrap?tt.jsx(a.options.Wrap,{children:o}):o}function Yx({router:a,...i}){return tt.jsx(Gx,{router:a,...i,children:tt.jsx(jx,{})})}/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hv=(...a)=>a.filter((i,s,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===s).join(" ").trim();/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kx=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vx=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,o)=>o?o.toUpperCase():s.toLowerCase());/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const np=a=>{const i=Vx(a);return i.charAt(0).toUpperCase()+i.slice(1)};/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Ef={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"};/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xx=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Kx=F.createContext({}),Zx=()=>F.useContext(Kx),Jx=F.forwardRef(({color:a,size:i,strokeWidth:s,absoluteStrokeWidth:o,className:c="",children:f,iconNode:h,...y},g)=>{const{size:m=24,strokeWidth:b=2,absoluteStrokeWidth:p=!1,color:S="currentColor",className:x=""}=Zx()??{},E=o??p?Number(s??b)*24/Number(i??m):s??b;return F.createElement("svg",{ref:g,...Ef,width:i??m??Ef.width,height:i??m??Ef.height,stroke:a??S,strokeWidth:E,className:hv("lucide",x,c),...!f&&!Xx(y)&&{"aria-hidden":"true"},...y},[...h.map(([C,A])=>F.createElement(C,A)),...Array.isArray(f)?f:[f]])});/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fs=(a,i)=>{const s=F.forwardRef(({className:o,...c},f)=>F.createElement(Jx,{ref:f,iconNode:i,className:hv(`lucide-${kx(np(a))}`,`lucide-${a}`,o),...c}));return s.displayName=np(a),s};/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Px=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Fx=Fs("file-text",Px);/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ix=[["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"}]],Wx=Fs("layout-dashboard",Ix);/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $x=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],t_=Fs("menu",$x);/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e_=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],n_=Fs("trending-up",e_);/** * @license lucide-react v1.16.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a_=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],l_=Fs("wallet",a_);function mv(a){var i,s,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(i=0;itypeof a=="boolean"?`${a}`:a===0?"0":a,lp=yv,i_=(a,i)=>s=>{var o;if((i==null?void 0:i.variants)==null)return lp(a,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:c,defaultVariants:f}=i,h=Object.keys(c).map(m=>{const b=s==null?void 0:s[m],p=f==null?void 0:f[m];if(b===null)return null;const S=ap(b)||ap(p);return c[m][S]}),y=s&&Object.entries(s).reduce((m,b)=>{let[p,S]=b;return S===void 0||(m[p]=S),m},{}),g=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((m,b)=>{let{class:p,className:S,...x}=b;return Object.entries(x).every(E=>{let[C,A]=E;return Array.isArray(A)?A.includes({...f,...y}[C]):{...f,...y}[C]===A})?[...m,p,S]:m},[]);return lp(a,h,g,s==null?void 0:s.class,s==null?void 0:s.className)};function ip(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function gv(...a){return i=>{let s=!1;const o=a.map(c=>{const f=ip(c,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c{const{children:f,...h}=o,y=F.Children.toArray(f),g=y.find(r_);if(g){const m=g.props.children,b=y.map(p=>p===g?F.Children.count(m)>1?F.Children.only(null):F.isValidElement(m)?m.props.children:null:p);return tt.jsx(i,{...h,ref:c,children:F.isValidElement(m)?F.cloneElement(m,void 0,b):null})}return tt.jsx(i,{...h,ref:c,children:f})});return s.displayName=`${a}.Slot`,s}var u_=s_("Slot");function o_(a){const i=F.forwardRef((s,o)=>{const{children:c,...f}=s;if(F.isValidElement(c)){const h=f_(c),y=c_(f,c.props);return c.type!==F.Fragment&&(y.ref=o?gv(o,h):h),F.cloneElement(c,y)}return F.Children.count(c)>1?F.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var pv=Symbol("radix.slottable");function kR(a){const i=({children:s})=>tt.jsx(tt.Fragment,{children:s});return i.displayName=`${a}.Slottable`,i.__radixId=pv,i}function r_(a){return F.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===pv}function c_(a,i){const s={...i};for(const o in i){const c=a[o],f=i[o];/^on[A-Z]/.test(o)?c&&f?s[o]=(...y)=>{const g=f(...y);return c(...y),g}:c&&(s[o]=c):o==="style"?s[o]={...c,...f}:o==="className"&&(s[o]=[c,f].filter(Boolean).join(" "))}return{...a,...s}}function f_(a){var o,c;let i=(o=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:o.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=(c=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}const d_=(a,i)=>{const s=new Array(a.length+i.length);for(let o=0;o({classGroupId:a,validator:i}),vv=(a=new Map,i=null,s)=>({nextPart:a,validators:i,classGroupId:s}),Ho="-",sp=[],m_="arbitrary..",y_=a=>{const i=p_(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return g_(h);const y=h.split(Ho),g=y[0]===""&&y.length>1?1:0;return bv(y,g,i)},getConflictingClassGroupIds:(h,y)=>{if(y){const g=o[h],m=s[h];return g?m?d_(m,g):g:m||sp}return s[h]||sp}}},bv=(a,i,s)=>{if(a.length-i===0)return s.classGroupId;const c=a[i],f=s.nextPart.get(c);if(f){const m=bv(a,i+1,f);if(m)return m}const h=s.validators;if(h===null)return;const y=i===0?a.join(Ho):a.slice(i).join(Ho),g=h.length;for(let m=0;ma.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),s=i.indexOf(":"),o=i.slice(0,s);return o?m_+o:void 0})(),p_=a=>{const{theme:i,classGroups:s}=a;return v_(s,i)},v_=(a,i)=>{const s=vv();for(const o in a){const c=a[o];sd(c,s,o,i)}return s},sd=(a,i,s,o)=>{const c=a.length;for(let f=0;f{if(typeof a=="string"){S_(a,i,s);return}if(typeof a=="function"){x_(a,i,s,o);return}__(a,i,s,o)},S_=(a,i,s)=>{const o=a===""?i:Sv(i,a);o.classGroupId=s},x_=(a,i,s,o)=>{if(R_(a)){sd(a(o),i,s,o);return}i.validators===null&&(i.validators=[]),i.validators.push(h_(s,a))},__=(a,i,s,o)=>{const c=Object.entries(a),f=c.length;for(let h=0;h{let s=a;const o=i.split(Ho),c=o.length;for(let f=0;f"isThemeGetter"in a&&a.isThemeGetter===!0,E_=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),o=Object.create(null);const c=(f,h)=>{s[f]=h,i++,i>a&&(i=0,o=s,s=Object.create(null))};return{get(f){let h=s[f];if(h!==void 0)return h;if((h=o[f])!==void 0)return c(f,h),h},set(f,h){f in s?s[f]=h:c(f,h)}}},Zf="!",up=":",T_=[],op=(a,i,s,o,c)=>({modifiers:a,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:o,isExternal:c}),M_=a=>{const{prefix:i,experimentalParseClassName:s}=a;let o=c=>{const f=[];let h=0,y=0,g=0,m;const b=c.length;for(let C=0;Cg?m-g:void 0;return op(f,x,S,E)};if(i){const c=i+up,f=o;o=h=>h.startsWith(c)?f(h.slice(c.length)):op(T_,!1,h,void 0,!0)}if(s){const c=o;o=f=>s({className:f,parseClassName:c})}return o},C_=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((s,o)=>{i.set(s,1e6+o)}),s=>{const o=[];let c=[];for(let f=0;f0&&(c.sort(),o.push(...c),c=[]),o.push(h)):c.push(h)}return c.length>0&&(c.sort(),o.push(...c)),o}},A_=a=>({cache:E_(a.cacheSize),parseClassName:M_(a),sortModifiers:C_(a),postfixLookupClassGroupIds:z_(a),...y_(a)}),z_=a=>{const i=Object.create(null),s=a.postfixLookupClassGroups;if(s)for(let o=0;o{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:f,postfixLookupClassGroupIds:h}=i,y=[],g=a.trim().split(O_);let m="";for(let b=g.length-1;b>=0;b-=1){const p=g[b],{isExternal:S,modifiers:x,hasImportantModifier:E,baseClassName:C,maybePostfixModifierPosition:A}=s(p);if(S){m=p+(m.length>0?" "+m:m);continue}let q=!!A,B;if(q){const N=C.substring(0,A);B=o(N);const z=B&&h[B]?o(C):void 0;z&&z!==B&&(B=z,q=!1)}else B=o(C);if(!B){if(!q){m=p+(m.length>0?" "+m:m);continue}if(B=o(C),!B){m=p+(m.length>0?" "+m:m);continue}q=!1}const Z=x.length===0?"":x.length===1?x[0]:f(x).join(":"),w=E?Z+Zf:Z,X=w+B;if(y.indexOf(X)>-1)continue;y.push(X);const P=c(B,q);for(let N=0;N0?" "+m:m)}return m},D_=(...a)=>{let i=0,s,o,c="";for(;i{if(typeof a=="string")return a;let i,s="";for(let o=0;o{let s,o,c,f;const h=g=>{const m=i.reduce((b,p)=>p(b),a());return s=A_(m),o=s.cache.get,c=s.cache.set,f=y,y(g)},y=g=>{const m=o(g);if(m)return m;const b=w_(g,s);return c(g,b),b};return f=h,(...g)=>f(D_(...g))},U_=[],ae=a=>{const i=s=>s[a]||U_;return i.isThemeGetter=!0,i},_v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,N_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,j_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B_=/\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$/,H_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,q_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Q_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xa=a=>N_.test(a),_t=a=>!!a&&!Number.isNaN(Number(a)),gn=a=>!!a&&Number.isInteger(Number(a)),Tf=a=>a.endsWith("%")&&_t(a.slice(0,-1)),Gn=a=>j_.test(a),Ev=()=>!0,G_=a=>B_.test(a)&&!H_.test(a),ud=()=>!1,Y_=a=>q_.test(a),k_=a=>Q_.test(a),V_=a=>!ut(a)&&!ot(a),X_=a=>a.startsWith("@container")&&(a[10]==="/"&&a[11]!==void 0||a[11]==="s"&&a[16]!==void 0&&a.startsWith("-size/",10)||a[11]==="n"&&a[18]!==void 0&&a.startsWith("-normal/",10)),K_=a=>Ha(a,Cv,ud),ut=a=>_v.test(a),il=a=>Ha(a,Av,G_),rp=a=>Ha(a,tR,_t),Z_=a=>Ha(a,Ov,Ev),J_=a=>Ha(a,zv,ud),cp=a=>Ha(a,Tv,ud),P_=a=>Ha(a,Mv,k_),Ro=a=>Ha(a,wv,Y_),ot=a=>Rv.test(a),Ds=a=>El(a,Av),F_=a=>El(a,zv),fp=a=>El(a,Tv),I_=a=>El(a,Cv),W_=a=>El(a,Mv),Eo=a=>El(a,wv,!0),$_=a=>El(a,Ov,!0),Ha=(a,i,s)=>{const o=_v.exec(a);return o?o[1]?i(o[1]):s(o[2]):!1},El=(a,i,s=!1)=>{const o=Rv.exec(a);return o?o[1]?i(o[1]):s:!1},Tv=a=>a==="position"||a==="percentage",Mv=a=>a==="image"||a==="url",Cv=a=>a==="length"||a==="size"||a==="bg-size",Av=a=>a==="length",tR=a=>a==="number",zv=a=>a==="family-name",Ov=a=>a==="number"||a==="weight",wv=a=>a==="shadow",eR=()=>{const a=ae("color"),i=ae("font"),s=ae("text"),o=ae("font-weight"),c=ae("tracking"),f=ae("leading"),h=ae("breakpoint"),y=ae("container"),g=ae("spacing"),m=ae("radius"),b=ae("shadow"),p=ae("inset-shadow"),S=ae("text-shadow"),x=ae("drop-shadow"),E=ae("blur"),C=ae("perspective"),A=ae("aspect"),q=ae("ease"),B=ae("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...w(),ot,ut],P=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],z=()=>[ot,ut,g],K=()=>[xa,"full","auto",...z()],J=()=>[gn,"none","subgrid",ot,ut],I=()=>["auto",{span:["full",gn,ot,ut]},gn,ot,ut],et=()=>[gn,"auto",ot,ut],it=()=>["auto","min","max","fr",ot,ut],st=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],gt=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...z()],G=()=>[xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],ct=()=>[xa,"screen","full","dvw","lvw","svw","min","max","fit",...z()],At=()=>[xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],W=()=>[a,ot,ut],T=()=>[...w(),fp,cp,{position:[ot,ut]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",I_,K_,{size:[ot,ut]}],nt=()=>[Tf,Ds,il],at=()=>["","none","full",m,ot,ut],ht=()=>["",_t,Ds,il],Rt=()=>["solid","dashed","dotted","double"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pt=()=>[_t,Tf,fp,cp],Ke=()=>["","none",E,ot,ut],_e=()=>["none",_t,ot,ut],Le=()=>["none",_t,ot,ut],xn=()=>[_t,ot,ut],ve=()=>[xa,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gn],breakpoint:[Gn],color:[Ev],container:[Gn],"drop-shadow":[Gn],ease:["in","out","in-out"],font:[V_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gn],shadow:[Gn],spacing:["px",_t],text:[Gn],"text-shadow":[Gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xa,ut,ot,A]}],container:["container"],"container-type":[{"@container":["","normal","size",ot,ut]}],"container-named":[X_],columns:[{columns:[_t,ut,ot,y]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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:X()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[gn,"auto",ot,ut]}],basis:[{basis:[xa,"full","auto",y,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_t,xa,"auto","initial","none",ut]}],grow:[{grow:["",_t,ot,ut]}],shrink:[{shrink:["",_t,ot,ut]}],order:[{order:[gn,"first","last","none",ot,ut]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":et()}],"col-end":[{"col-end":et()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":et()}],"row-end":[{"row-end":et()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":it()}],"auto-rows":[{"auto-rows":it()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...st(),"normal"]}],"justify-items":[{"justify-items":[...gt(),"normal"]}],"justify-self":[{"justify-self":["auto",...gt()]}],"align-content":[{content:["normal",...st()]}],"align-items":[{items:[...gt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...gt(),{baseline:["","last"]}]}],"place-content":[{"place-content":st()}],"place-items":[{"place-items":[...gt(),"baseline"]}],"place-self":[{"place-self":["auto",...gt()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...ct()]}],"min-inline-size":[{"min-inline":["auto",...ct()]}],"max-inline-size":[{"max-inline":["none",...ct()]}],"block-size":[{block:["auto",...At()]}],"min-block-size":[{"min-block":["auto",...At()]}],"max-block-size":[{"max-block":["none",...At()]}],w:[{w:[y,"screen",...G()]}],"min-w":[{"min-w":[y,"screen","none",...G()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[h]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",s,Ds,il]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,$_,Z_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tf,ut]}],"font-family":[{font:[F_,J_,i]}],"font-features":[{"font-features":[ut]}],"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:[c,ot,ut]}],"line-clamp":[{"line-clamp":[_t,"none",ot,rp]}],leading:[{leading:[f,...z()]}],"list-image":[{"list-image":["none",ot,ut]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ot,ut]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Rt(),"wavy"]}],"text-decoration-thickness":[{decoration:[_t,"from-font","auto",ot,il]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[_t,"auto",ot,ut]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"tab-size":[{tab:[gn,ot,ut]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ot,ut]}],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",ot,ut]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gn,ot,ut],radial:["",ot,ut],conic:[gn,ot,ut]},W_,P_]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:nt()}],"gradient-via-pos":[{via:nt()}],"gradient-to-pos":[{to:nt()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:at()}],"rounded-s":[{"rounded-s":at()}],"rounded-e":[{"rounded-e":at()}],"rounded-t":[{"rounded-t":at()}],"rounded-r":[{"rounded-r":at()}],"rounded-b":[{"rounded-b":at()}],"rounded-l":[{"rounded-l":at()}],"rounded-ss":[{"rounded-ss":at()}],"rounded-se":[{"rounded-se":at()}],"rounded-ee":[{"rounded-ee":at()}],"rounded-es":[{"rounded-es":at()}],"rounded-tl":[{"rounded-tl":at()}],"rounded-tr":[{"rounded-tr":at()}],"rounded-br":[{"rounded-br":at()}],"rounded-bl":[{"rounded-bl":at()}],"border-w":[{border:ht()}],"border-w-x":[{"border-x":ht()}],"border-w-y":[{"border-y":ht()}],"border-w-s":[{"border-s":ht()}],"border-w-e":[{"border-e":ht()}],"border-w-bs":[{"border-bs":ht()}],"border-w-be":[{"border-be":ht()}],"border-w-t":[{"border-t":ht()}],"border-w-r":[{"border-r":ht()}],"border-w-b":[{"border-b":ht()}],"border-w-l":[{"border-l":ht()}],"divide-x":[{"divide-x":ht()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ht()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Rt(),"hidden","none"]}],"divide-style":[{divide:[...Rt(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...Rt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_t,ot,ut]}],"outline-w":[{outline:["",_t,Ds,il]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",b,Eo,Ro]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",p,Eo,Ro]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:ht()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[_t,il]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":ht()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",S,Eo,Ro]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[_t,ot,ut]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Bt()}],"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":[_t]}],"mask-image-linear-from-pos":[{"mask-linear-from":pt()}],"mask-image-linear-to-pos":[{"mask-linear-to":pt()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":pt()}],"mask-image-t-to-pos":[{"mask-t-to":pt()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":pt()}],"mask-image-r-to-pos":[{"mask-r-to":pt()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":pt()}],"mask-image-b-to-pos":[{"mask-b-to":pt()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":pt()}],"mask-image-l-to-pos":[{"mask-l-to":pt()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":pt()}],"mask-image-x-to-pos":[{"mask-x-to":pt()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":pt()}],"mask-image-y-to-pos":[{"mask-y-to":pt()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[ot,ut]}],"mask-image-radial-from-pos":[{"mask-radial-from":pt()}],"mask-image-radial-to-pos":[{"mask-radial-to":pt()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[_t]}],"mask-image-conic-from-pos":[{"mask-conic-from":pt()}],"mask-image-conic-to-pos":[{"mask-conic-to":pt()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ot,ut]}],filter:[{filter:["","none",ot,ut]}],blur:[{blur:Ke()}],brightness:[{brightness:[_t,ot,ut]}],contrast:[{contrast:[_t,ot,ut]}],"drop-shadow":[{"drop-shadow":["","none",x,Eo,Ro]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",_t,ot,ut]}],"hue-rotate":[{"hue-rotate":[_t,ot,ut]}],invert:[{invert:["",_t,ot,ut]}],saturate:[{saturate:[_t,ot,ut]}],sepia:[{sepia:["",_t,ot,ut]}],"backdrop-filter":[{"backdrop-filter":["","none",ot,ut]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[_t,ot,ut]}],"backdrop-contrast":[{"backdrop-contrast":[_t,ot,ut]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_t,ot,ut]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_t,ot,ut]}],"backdrop-invert":[{"backdrop-invert":["",_t,ot,ut]}],"backdrop-opacity":[{"backdrop-opacity":[_t,ot,ut]}],"backdrop-saturate":[{"backdrop-saturate":[_t,ot,ut]}],"backdrop-sepia":[{"backdrop-sepia":["",_t,ot,ut]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ot,ut]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_t,"initial",ot,ut]}],ease:[{ease:["linear","initial",q,ot,ut]}],delay:[{delay:[_t,ot,ut]}],animate:[{animate:["none",B,ot,ut]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ot,ut]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Le()}],"scale-x":[{"scale-x":Le()}],"scale-y":[{"scale-y":Le()}],"scale-z":[{"scale-z":Le()}],"scale-3d":["scale-3d"],skew:[{skew:xn()}],"skew-x":[{"skew-x":xn()}],"skew-y":[{"skew-y":xn()}],transform:[{transform:[ot,ut,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],zoom:[{zoom:[gn,ot,ut]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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",ot,ut]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",ot,ut]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[_t,Ds,il,rp]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},nR=L_(eR);function Dv(...a){return nR(yv(a))}const aR=i_("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function lR({className:a,variant:i="default",size:s="default",asChild:o=!1,...c}){const f=o?u_:"button";return tt.jsx(f,{"data-slot":"button","data-variant":i,"data-size":s,className:Dv(aR({variant:i,size:s,className:a})),...c})}function iR({onMenuClick:a}){return tt.jsxs("header",{className:"flex h-14 items-center gap-4 border-b px-4",children:[tt.jsx(lR,{variant:"ghost",size:"icon",className:"md:hidden",onClick:a,children:tt.jsx(t_,{className:"size-5"})}),tt.jsx("div",{className:"flex-1"})]})}const sR=[{to:"/",label:"Panel",icon:Wx},{to:"/expenses",label:"Gastos",icon:l_},{to:"/quotes",label:"Cotizaciones",icon:Fx},{to:"/quotes/belo",label:"BELO",icon:n_}];function uR({open:a,onClose:i}){return tt.jsxs(tt.Fragment,{children:[a&&tt.jsx("div",{className:"fixed inset-0 z-40 bg-black/20 md:hidden",onClick:i}),tt.jsxs("aside",{className:Dv("fixed inset-y-0 left-0 z-50 flex w-60 flex-col border-r bg-sidebar transition-transform duration-200 md:relative md:translate-x-0",a?"translate-x-0":"-translate-x-full"),children:[tt.jsx("div",{className:"flex h-14 items-center border-b px-4",children:tt.jsx("span",{className:"text-lg font-semibold text-sidebar-foreground",children:"Personal Admin"})}),tt.jsx("nav",{className:"flex-1 space-y-1 p-3",children:sR.map(s=>tt.jsxs(id,{to:s.to,activeProps:{className:"bg-sidebar-accent text-sidebar-accent-foreground font-medium"},className:"flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-sidebar-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",onClick:i,children:[tt.jsx(s.icon,{className:"size-4"}),s.label]},s.to))})]})]})}function oR(){const[a,i]=F.useState(!1);return tt.jsxs("div",{className:"flex min-h-screen",children:[tt.jsx(uR,{open:a,onClose:()=>i(!1)}),tt.jsxs("div",{className:"flex flex-1 flex-col",children:[tt.jsx(iR,{onMenuClick:()=>i(!0)}),tt.jsx("main",{className:"flex-1 p-6",children:tt.jsx(dv,{})})]})]})}const Vo=Cx({component:oR}),rR=()=>Zs(()=>import("./quotes-CmUZ4ywE.js"),[]),cR=Js("/quotes")({component:Ps(rR,"component")}),fR=()=>Zs(()=>import("./expenses-BTJsEbe0.js"),[]),dR=Js("/expenses")({component:Ps(fR,"component")}),hR=()=>Zs(()=>import("./index-ZuErKIvO.js"),__vite__mapDeps([0,1])),mR=Js("/")({component:Ps(hR,"component")}),yR=()=>Zs(()=>import("./quotes.index-DS5U9qrs.js"),[]),gR=Js("/quotes/")({component:Ps(yR,"component")}),pR=()=>Zs(()=>import("./quotes.belo-DgMgr906.js"),__vite__mapDeps([2,1])),vR=Js("/quotes/belo")({component:Ps(pR,"component")}),od=cR.update({id:"/quotes",path:"/quotes",getParentRoute:()=>Vo}),bR=dR.update({id:"/expenses",path:"/expenses",getParentRoute:()=>Vo}),SR=mR.update({id:"/",path:"/",getParentRoute:()=>Vo}),xR=gR.update({id:"/",path:"/",getParentRoute:()=>od}),_R=vR.update({id:"/belo",path:"/belo",getParentRoute:()=>od}),RR={QuotesBeloRoute:_R,QuotesIndexRoute:xR},ER=od._addFileChildren(RR),TR={IndexRoute:SR,ExpensesRoute:bR,QuotesRoute:ER},MR=Vo._addFileChildren(TR)._addFileTypes(),CR=qx({routeTree:MR});async function Is(a){const i=await fetch(a);if(!i.ok)throw new Error(`API error: ${i.status} ${i.statusText}`);return i.json()}function AR(){return Is("/api/quotes")}function zR(){return Is("/api/quotes/fetch")}function OR(a,i,s){const o=new URLSearchParams({startDate:i,endDate:s});return Is(`/api/quotes/${a}/history?${o}`)}function wR(a,i,s){const o=new URLSearchParams({startDate:i,endDate:s});return Is(`/api/quotes/${a}/min-max?${o}`)}function DR(a,i,s){const o=new URLSearchParams({startDate:i,endDate:s});return Is(`/api/quotes/${a}/daily?${o}`)}const Di={all:["quotes"],history:(a,i,s)=>["quotes",a,"history",i,s],minMax:(a,i,s)=>["quotes",a,"minMax",i,s],daily:(a,i,s)=>["quotes",a,"daily",i,s]};function VR(){return Qo({queryKey:Di.all,queryFn:AR,staleTime:3e4,refetchInterval:6e4})}function XR(){const a=qo();return KS({mutationFn:zR,onSuccess:()=>{a.invalidateQueries({queryKey:Di.all})}})}function KR(a,i,s){return Qo({queryKey:Di.history(a,i,s),queryFn:()=>OR(a,i,s),staleTime:3e4,refetchInterval:6e4})}function ZR(a,i,s){return Qo({queryKey:Di.minMax(a,i,s),queryFn:()=>wR(a,i,s),staleTime:3e4,refetchInterval:6e4})}function JR(a,i,s){return Qo({queryKey:Di.daily(a,i,s),queryFn:()=>DR(a,i,s),staleTime:3e4,refetchInterval:6e4})}function LR(){const a=qo();F.useEffect(()=>{const i=new EventSource("/api/quotes/events");return i.addEventListener("quotes-updated",()=>{a.invalidateQueries({queryKey:Di.all})}),()=>i.close()},[a])}function UR(){return LR(),tt.jsx(Yx,{router:CR})}const NR=new LS({defaultOptions:{queries:{staleTime:3e4,retry:2,refetchOnWindowFocus:!0}}});uS.createRoot(document.getElementById("root")).render(tt.jsx(F.StrictMode,{children:tt.jsxs(US,{client:NR,children:[tt.jsx(UR,{}),tt.jsx(PS,{initialIsOpen:!1})]})}));export{dv as O,HR as R,u_ as S,n_ as T,QR as a,Dv as b,yv as c,BR as d,Fs as e,s_ as f,kR as g,Rp as h,F as i,tt as j,Ks as k,ZR as l,JR as m,XR as n,KR as o,VR as p,rv as r,YR as u,dx as w};