const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_layout-De5ZKK5G.js","assets/sidebar-toggle-D8wRPeaZ.js","assets/index-C5pqq8p4.js","assets/index-CLxOGfT0.js","assets/chat-header-KHbMuBui.js","assets/_sessionId-DnCQsqNc.js","assets/chat-CdJpwiky.js","assets/_agentId-CERAas0y.js"])))=>i.map(i=>d[i]);
var Wm=s=>{throw TypeError(s)};var Ac=(s,u,i)=>u.has(s)||Wm("Cannot "+i);var R=(s,u,i)=>(Ac(s,u,"read from private field"),i?i.call(s):u.get(s)),vt=(s,u,i)=>u.has(s)?Wm("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(s):u.set(s,i),nt=(s,u,i,r)=>(Ac(s,u,"write to private field"),r?r.call(s,i):u.set(s,i),i),Et=(s,u,i)=>(Ac(s,u,"access private method"),i);var Ju=(s,u,i,r)=>({set _(c){nt(s,u,c,i)},get _(){return R(s,u,r)}});function Lp(s,u){for(var i=0;i<u.length;i++){const r=u[i];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in s)){const h=Object.getOwnPropertyDescriptor(r,c);h&&Object.defineProperty(s,c,h.get?h:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(c){if(c.ep)return;c.ep=!0;const h=i(c);fetch(c.href,h)}})();var K1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vy(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Dc={exports:{}},Ms={};/**
 * @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 Im;function Bp(){if(Im)return Ms;Im=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(r,c,h){var m=null;if(h!==void 0&&(m=""+h),c.key!==void 0&&(m=""+c.key),"key"in c){h={};for(var p in c)p!=="key"&&(h[p]=c[p])}else h=c;return c=h.ref,{$$typeof:s,type:r,key:m,ref:c!==void 0?c:null,props:h}}return Ms.Fragment=u,Ms.jsx=i,Ms.jsxs=i,Ms}var ty;function jp(){return ty||(ty=1,Dc.exports=Bp()),Dc.exports}var it=jp(),Cc={exports:{}},St={};/**
 * @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 ey;function qp(){if(ey)return St;ey=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),d=Symbol.iterator;function E(_){return _===null||typeof _!="object"?null:(_=d&&_[d]||_["@@iterator"],typeof _=="function"?_:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,H={};function L(_,z,Z){this.props=_,this.context=z,this.refs=H,this.updater=Z||x}L.prototype.isReactComponent={},L.prototype.setState=function(_,z){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,z,"setState")},L.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function Y(){}Y.prototype=L.prototype;function F(_,z,Z){this.props=_,this.context=z,this.refs=H,this.updater=Z||x}var I=F.prototype=new Y;I.constructor=F,N(I,L.prototype),I.isPureReactComponent=!0;var ot=Array.isArray,j={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function lt(_,z,Z,X,k,ht){return Z=ht.ref,{$$typeof:s,type:_,key:z,ref:Z!==void 0?Z:null,props:ht}}function U(_,z){return lt(_.type,z,void 0,void 0,void 0,_.props)}function M(_){return typeof _=="object"&&_!==null&&_.$$typeof===s}function V(_){var z={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Z){return z[Z]})}var W=/\/+/g;function J(_,z){return typeof _=="object"&&_!==null&&_.key!=null?V(""+_.key):z.toString(36)}function at(){}function ct(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(at,at):(_.status="pending",_.then(function(z){_.status==="pending"&&(_.status="fulfilled",_.value=z)},function(z){_.status==="pending"&&(_.status="rejected",_.reason=z)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function st(_,z,Z,X,k){var ht=typeof _;(ht==="undefined"||ht==="boolean")&&(_=null);var P=!1;if(_===null)P=!0;else switch(ht){case"bigint":case"string":case"number":P=!0;break;case"object":switch(_.$$typeof){case s:case u:P=!0;break;case b:return P=_._init,st(P(_._payload),z,Z,X,k)}}if(P)return k=k(_),P=X===""?"."+J(_,0):X,ot(k)?(Z="",P!=null&&(Z=P.replace(W,"$&/")+"/"),st(k,z,Z,"",function(_t){return _t})):k!=null&&(M(k)&&(k=U(k,Z+(k.key==null||_&&_.key===k.key?"":(""+k.key).replace(W,"$&/")+"/")+P)),z.push(k)),1;P=0;var Dt=X===""?".":X+":";if(ot(_))for(var ft=0;ft<_.length;ft++)X=_[ft],ht=Dt+J(X,ft),P+=st(X,z,Z,ht,k);else if(ft=E(_),typeof ft=="function")for(_=ft.call(_),ft=0;!(X=_.next()).done;)X=X.value,ht=Dt+J(X,ft++),P+=st(X,z,Z,ht,k);else if(ht==="object"){if(typeof _.then=="function")return st(ct(_),z,Z,X,k);throw z=String(_),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return P}function C(_,z,Z){if(_==null)return _;var X=[],k=0;return st(_,X,"","",function(ht){return z.call(Z,ht,k++)}),X}function K(_){if(_._status===-1){var z=_._result;z=z(),z.then(function(Z){(_._status===0||_._status===-1)&&(_._status=1,_._result=Z)},function(Z){(_._status===0||_._status===-1)&&(_._status=2,_._result=Z)}),_._status===-1&&(_._status=0,_._result=z)}if(_._status===1)return _._result.default;throw _._result}var tt=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function dt(){}return St.Children={map:C,forEach:function(_,z,Z){C(_,function(){z.apply(this,arguments)},Z)},count:function(_){var z=0;return C(_,function(){z++}),z},toArray:function(_){return C(_,function(z){return z})||[]},only:function(_){if(!M(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},St.Component=L,St.Fragment=i,St.Profiler=c,St.PureComponent=F,St.StrictMode=r,St.Suspense=g,St.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,St.act=function(){throw Error("act(...) is not supported in production builds of React.")},St.cache=function(_){return function(){return _.apply(null,arguments)}},St.cloneElement=function(_,z,Z){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var X=N({},_.props),k=_.key,ht=void 0;if(z!=null)for(P in z.ref!==void 0&&(ht=void 0),z.key!==void 0&&(k=""+z.key),z)!$.call(z,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&z.ref===void 0||(X[P]=z[P]);var P=arguments.length-2;if(P===1)X.children=Z;else if(1<P){for(var Dt=Array(P),ft=0;ft<P;ft++)Dt[ft]=arguments[ft+2];X.children=Dt}return lt(_.type,k,void 0,void 0,ht,X)},St.createContext=function(_){return _={$$typeof:m,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:h,_context:_},_},St.createElement=function(_,z,Z){var X,k={},ht=null;if(z!=null)for(X in z.key!==void 0&&(ht=""+z.key),z)$.call(z,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(k[X]=z[X]);var P=arguments.length-2;if(P===1)k.children=Z;else if(1<P){for(var Dt=Array(P),ft=0;ft<P;ft++)Dt[ft]=arguments[ft+2];k.children=Dt}if(_&&_.defaultProps)for(X in P=_.defaultProps,P)k[X]===void 0&&(k[X]=P[X]);return lt(_,ht,void 0,void 0,null,k)},St.createRef=function(){return{current:null}},St.forwardRef=function(_){return{$$typeof:p,render:_}},St.isValidElement=M,St.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:K}},St.memo=function(_,z){return{$$typeof:y,type:_,compare:z===void 0?null:z}},St.startTransition=function(_){var z=j.T,Z={};j.T=Z;try{var X=_(),k=j.S;k!==null&&k(Z,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(dt,tt)}catch(ht){tt(ht)}finally{j.T=z}},St.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},St.use=function(_){return j.H.use(_)},St.useActionState=function(_,z,Z){return j.H.useActionState(_,z,Z)},St.useCallback=function(_,z){return j.H.useCallback(_,z)},St.useContext=function(_){return j.H.useContext(_)},St.useDebugValue=function(){},St.useDeferredValue=function(_,z){return j.H.useDeferredValue(_,z)},St.useEffect=function(_,z){return j.H.useEffect(_,z)},St.useId=function(){return j.H.useId()},St.useImperativeHandle=function(_,z,Z){return j.H.useImperativeHandle(_,z,Z)},St.useInsertionEffect=function(_,z){return j.H.useInsertionEffect(_,z)},St.useLayoutEffect=function(_,z){return j.H.useLayoutEffect(_,z)},St.useMemo=function(_,z){return j.H.useMemo(_,z)},St.useOptimistic=function(_,z){return j.H.useOptimistic(_,z)},St.useReducer=function(_,z,Z){return j.H.useReducer(_,z,Z)},St.useRef=function(_){return j.H.useRef(_)},St.useState=function(_){return j.H.useState(_)},St.useSyncExternalStore=function(_,z,Z){return j.H.useSyncExternalStore(_,z,Z)},St.useTransition=function(){return j.H.useTransition()},St.version="19.0.0",St}var ny;function js(){return ny||(ny=1,Cc.exports=qp()),Cc.exports}var rt=js();const et=Vy(rt),Z1=Lp({__proto__:null,default:et},[rt]);var zc={exports:{}},Os={},Uc={exports:{}},Nc={};/**
 * @license React
 * scheduler.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 ay;function Qp(){return ay||(ay=1,function(s){function u(C,K){var tt=C.length;C.push(K);t:for(;0<tt;){var dt=tt-1>>>1,_=C[dt];if(0<c(_,K))C[dt]=K,C[tt]=_,tt=dt;else break t}}function i(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var K=C[0],tt=C.pop();if(tt!==K){C[0]=tt;t:for(var dt=0,_=C.length,z=_>>>1;dt<z;){var Z=2*(dt+1)-1,X=C[Z],k=Z+1,ht=C[k];if(0>c(X,tt))k<_&&0>c(ht,X)?(C[dt]=ht,C[k]=tt,dt=k):(C[dt]=X,C[Z]=tt,dt=Z);else if(k<_&&0>c(ht,tt))C[dt]=ht,C[k]=tt,dt=k;else break t}}return K}function c(C,K){var tt=C.sortIndex-K.sortIndex;return tt!==0?tt:C.id-K.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var m=Date,p=m.now();s.unstable_now=function(){return m.now()-p}}var g=[],y=[],b=1,d=null,E=3,x=!1,N=!1,H=!1,L=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function I(C){for(var K=i(y);K!==null;){if(K.callback===null)r(y);else if(K.startTime<=C)r(y),K.sortIndex=K.expirationTime,u(g,K);else break;K=i(y)}}function ot(C){if(H=!1,I(C),!N)if(i(g)!==null)N=!0,ct();else{var K=i(y);K!==null&&st(ot,K.startTime-C)}}var j=!1,$=-1,lt=5,U=-1;function M(){return!(s.unstable_now()-U<lt)}function V(){if(j){var C=s.unstable_now();U=C;var K=!0;try{t:{N=!1,H&&(H=!1,Y($),$=-1),x=!0;var tt=E;try{e:{for(I(C),d=i(g);d!==null&&!(d.expirationTime>C&&M());){var dt=d.callback;if(typeof dt=="function"){d.callback=null,E=d.priorityLevel;var _=dt(d.expirationTime<=C);if(C=s.unstable_now(),typeof _=="function"){d.callback=_,I(C),K=!0;break e}d===i(g)&&r(g),I(C)}else r(g);d=i(g)}if(d!==null)K=!0;else{var z=i(y);z!==null&&st(ot,z.startTime-C),K=!1}}break t}finally{d=null,E=tt,x=!1}K=void 0}}finally{K?W():j=!1}}}var W;if(typeof F=="function")W=function(){F(V)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,at=J.port2;J.port1.onmessage=V,W=function(){at.postMessage(null)}}else W=function(){L(V,0)};function ct(){j||(j=!0,W())}function st(C,K){$=L(function(){C(s.unstable_now())},K)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(C){C.callback=null},s.unstable_continueExecution=function(){N||x||(N=!0,ct())},s.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):lt=0<C?Math.floor(1e3/C):5},s.unstable_getCurrentPriorityLevel=function(){return E},s.unstable_getFirstCallbackNode=function(){return i(g)},s.unstable_next=function(C){switch(E){case 1:case 2:case 3:var K=3;break;default:K=E}var tt=E;E=K;try{return C()}finally{E=tt}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=function(){},s.unstable_runWithPriority=function(C,K){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var tt=E;E=C;try{return K()}finally{E=tt}},s.unstable_scheduleCallback=function(C,K,tt){var dt=s.unstable_now();switch(typeof tt=="object"&&tt!==null?(tt=tt.delay,tt=typeof tt=="number"&&0<tt?dt+tt:dt):tt=dt,C){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=tt+_,C={id:b++,callback:K,priorityLevel:C,startTime:tt,expirationTime:_,sortIndex:-1},tt>dt?(C.sortIndex=tt,u(y,C),i(g)===null&&C===i(y)&&(H?(Y($),$=-1):H=!0,st(ot,tt-dt))):(C.sortIndex=_,u(g,C),N||x||(N=!0,ct())),C},s.unstable_shouldYield=M,s.unstable_wrapCallback=function(C){var K=E;return function(){var tt=E;E=K;try{return C.apply(this,arguments)}finally{E=tt}}}}(Nc)),Nc}var ly;function Yp(){return ly||(ly=1,Uc.exports=Qp()),Uc.exports}var Hc={exports:{}},ve={};/**
 * @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 iy;function Gp(){if(iy)return ve;iy=1;var s=js();function u(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(u(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(g,y,b){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:d==null?null:""+d,children:g,containerInfo:y,implementation:b}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ve.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ve.createPortal=function(g,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return h(g,y,null,b)},ve.flushSync=function(g){var y=m.T,b=r.p;try{if(m.T=null,r.p=2,g)return g()}finally{m.T=y,r.p=b,r.d.f()}},ve.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(g,y))},ve.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},ve.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var b=y.as,d=p(b,y.crossOrigin),E=typeof y.integrity=="string"?y.integrity:void 0,x=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?r.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:d,integrity:E,fetchPriority:x}):b==="script"&&r.d.X(g,{crossOrigin:d,integrity:E,fetchPriority:x,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ve.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=p(y.as,y.crossOrigin);r.d.M(g,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(g)},ve.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,d=p(b,y.crossOrigin);r.d.L(g,b,{crossOrigin:d,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ve.preloadModule=function(g,y){if(typeof g=="string")if(y){var b=p(y.as,y.crossOrigin);r.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(g)},ve.requestFormReset=function(g){r.d.r(g)},ve.unstable_batchedUpdates=function(g,y){return g(y)},ve.useFormState=function(g,y,b){return m.H.useFormState(g,y,b)},ve.useFormStatus=function(){return m.H.useHostTransitionStatus()},ve.version="19.0.0",ve}var sy;function Xy(){if(sy)return Hc.exports;sy=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),Hc.exports=Gp(),Hc.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 uy;function Vp(){if(uy)return Os;uy=1;var s=Yp(),u=js(),i=Xy();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var h=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),x=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),ot=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function $(t){return t===null||typeof t!="object"?null:(t=j&&t[j]||t["@@iterator"],typeof t=="function"?t:null)}var lt=Symbol.for("react.client.reference");function U(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===lt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case g:return"Fragment";case p:return"Portal";case b:return"Profiler";case y:return"StrictMode";case H:return"Suspense";case L:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case x:return(t.displayName||"Context")+".Provider";case E:return(t._context.displayName||"Context")+".Consumer";case N:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y:return e=t.displayName||null,e!==null?e:U(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return U(t(e))}catch{}}return null}var M=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.assign,W,J;function at(t){if(W===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);W=e&&e[1]||"",J=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+W+t+J}var ct=!1;function st(t,e){if(!t||ct)return"";ct=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(B){var D=B}Reflect.construct(t,[],G)}else{try{G.call()}catch(B){D=B}t.call(G.prototype)}}else{try{throw Error()}catch(B){D=B}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&D&&typeof B.stack=="string")return[B.stack,D.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),f=o[0],v=o[1];if(f&&v){var S=f.split(`
`),O=v.split(`
`);for(l=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;if(a===S.length||l===O.length)for(a=S.length-1,l=O.length-1;1<=a&&0<=l&&S[a]!==O[l];)l--;for(;1<=a&&0<=l;a--,l--)if(S[a]!==O[l]){if(a!==1||l!==1)do if(a--,l--,0>l||S[a]!==O[l]){var q=`
`+S[a].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=a&&0<=l);break}}}finally{ct=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?at(n):""}function C(t){switch(t.tag){case 26:case 27:case 5:return at(t.type);case 16:return at("Lazy");case 13:return at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return t=st(t.type,!1),t;case 11:return t=st(t.type.render,!1),t;case 1:return t=st(t.type,!0),t;default:return""}}function K(t){try{var e="";do e+=C(t),t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function tt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function dt(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function _(t){if(tt(t)!==t)throw Error(r(188))}function z(t){var e=t.alternate;if(!e){if(e=tt(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,a=e;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return _(l),t;if(o===a)return _(l),e;o=o.sibling}throw Error(r(188))}if(n.return!==a.return)n=l,a=o;else{for(var f=!1,v=l.child;v;){if(v===n){f=!0,n=l,a=o;break}if(v===a){f=!0,a=l,n=o;break}v=v.sibling}if(!f){for(v=o.child;v;){if(v===n){f=!0,n=o,a=l;break}if(v===a){f=!0,a=o,n=l;break}v=v.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function Z(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Z(t),e!==null)return e;t=t.sibling}return null}var X=Array.isArray,k=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ht={pending:!1,data:null,method:null,action:null},P=[],Dt=-1;function ft(t){return{current:t}}function _t(t){0>Dt||(t.current=P[Dt],P[Dt]=null,Dt--)}function Ot(t,e){Dt++,P[Dt]=t.current,t.current=e}var $t=ft(null),Le=ft(null),oe=ft(null),Bt=ft(null);function ge(t,e){switch(Ot(oe,e),Ot(Le,t),Ot($t,null),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)&&(e=e.namespaceURI)?xm(e):0;break;default:if(t=t===8?e.parentNode:e,e=t.tagName,t=t.namespaceURI)t=xm(t),e=wm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_t($t),Ot($t,e)}function Qt(){_t($t),_t(Le),_t(oe)}function Be(t){t.memoizedState!==null&&Ot(Bt,t);var e=$t.current,n=wm(e,t.type);e!==n&&(Ot(Le,t),Ot($t,n))}function pn(t){Le.current===t&&(_t($t),_t(Le)),Bt.current===t&&(_t(Bt),Ss._currentValue=ht)}var be=Object.prototype.hasOwnProperty,La=s.unstable_scheduleCallback,Ba=s.unstable_cancelCallback,le=s.unstable_shouldYield,ea=s.unstable_requestPaint,Xe=s.unstable_now,_r=s.unstable_getCurrentPriorityLevel,ja=s.unstable_ImmediatePriority,qs=s.unstable_UserBlockingPriority,qa=s.unstable_NormalPriority,Ai=s.unstable_LowPriority,Cn=s.unstable_IdlePriority,Qs=s.log,na=s.unstable_setDisableYieldValue,Qa=null,Se=null;function Ys(t){if(Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(Qa,t,void 0,(t.current.flags&128)===128)}catch{}}function rn(t){if(typeof Qs=="function"&&na(t),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(Qa,t)}catch{}}var _e=Math.clz32?Math.clz32:Er,Di=Math.log,gn=Math.LN2;function Er(t){return t>>>=0,t===0?32:31-(Di(t)/gn|0)|0}var Ya=128,Ga=4194304;function gt(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:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;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 Yt(t,e){var n=t.pendingLanes;if(n===0)return 0;var a=0,l=t.suspendedLanes,o=t.pingedLanes,f=t.warmLanes;t=t.finishedLanes!==0;var v=n&134217727;return v!==0?(n=v&~l,n!==0?a=gt(n):(o&=v,o!==0?a=gt(o):t||(f=v&~f,f!==0&&(a=gt(f))))):(v=n&~l,v!==0?a=gt(v):o!==0?a=gt(o):t||(f=n&~f,f!==0&&(a=gt(f)))),a===0?0:e!==0&&e!==a&&(e&l)===0&&(l=a&-a,f=e&-e,l>=f||l===32&&(f&4194176)!==0)?e:a}function Xt(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ee(t,e){switch(t){case 1:case 2:case 4:case 8:return e+250;case 16:case 32:case 64: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 Va(){var t=Ya;return Ya<<=1,(Ya&4194176)===0&&(Ya=128),t}function Pt(){var t=Ga;return Ga<<=1,(Ga&62914560)===0&&(Ga=4194304),t}function he(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function bn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function je(t,e,n,a,l,o){var f=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,S=t.expirationTimes,O=t.hiddenUpdates;for(n=f&~n;0<n;){var q=31-_e(n),G=1<<q;v[q]=0,S[q]=-1;var D=O[q];if(D!==null)for(O[q]=null,q=0;q<D.length;q++){var B=D[q];B!==null&&(B.lane&=-536870913)}n&=~G}a!==0&&xe(t,a,0),o!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=o&~(f&~e))}function xe(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-_e(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&4194218}function Ci(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-_e(n),l=1<<a;l&e|t[a]&e&&(t[a]|=e),n&=~l}}function Sn(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Rr(){var t=k.p;return t!==0?t:(t=window.event,t===void 0?32:Zm(t.type))}function Ov(t,e){var n=k.p;try{return k.p=t,e()}finally{k.p=n}}var aa=Math.random().toString(36).slice(2),me="__reactFiber$"+aa,we="__reactProps$"+aa,Ml="__reactContainer$"+aa,Tr="__reactEvents$"+aa,xv="__reactListeners$"+aa,wv="__reactHandles$"+aa,Mf="__reactResources$"+aa,zi="__reactMarker$"+aa;function Mr(t){delete t[me],delete t[we],delete t[Tr],delete t[xv],delete t[wv]}function Xa(t){var e=t[me];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ml]||n[me]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Cm(t);t!==null;){if(n=t[me])return n;t=Cm(t)}return e}t=n,n=t.parentNode}return null}function Ol(t){if(t=t[me]||t[Ml]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Ui(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function xl(t){var e=t[Mf];return e||(e=t[Mf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ie(t){t[zi]=!0}var Of=new Set,xf={};function Ka(t,e){wl(t,e),wl(t+"Capture",e)}function wl(t,e){for(xf[t]=e,t=0;t<e.length;t++)Of.add(e[t])}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Av=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wf={},Af={};function Dv(t){return be.call(Af,t)?!0:be.call(wf,t)?!1:Av.test(t)?Af[t]=!0:(wf[t]=!0,!1)}function Gs(t,e,n){if(Dv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Vs(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Un(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Ke(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Df(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Cv(t){var e=Df(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(f){a=""+f,o.call(this,f)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Xs(t){t._valueTracker||(t._valueTracker=Cv(t))}function Cf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Df(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Ks(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var zv=/[\n"\\]/g;function Ze(t){return t.replace(zv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Or(t,e,n,a,l,o,f,v){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ke(e)):t.value!==""+Ke(e)&&(t.value=""+Ke(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?xr(t,f,Ke(e)):n!=null?xr(t,f,Ke(n)):a!=null&&t.removeAttribute("value"),l==null&&o!=null&&(t.defaultChecked=!!o),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Ke(v):t.removeAttribute("name")}function zf(t,e,n,a,l,o,f,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null))return;n=n!=null?""+Ke(n):"",e=e!=null?""+Ke(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=v?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f)}function xr(t,e,n){e==="number"&&Ks(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Al(t,e,n,a){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Ke(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,a&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function Uf(t,e,n){if(e!=null&&(e=""+Ke(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ke(n):""}function Nf(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(r(92));if(X(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Ke(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a)}function Dl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Uv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Hf(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||Uv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Lf(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var l in e)a=e[l],e.hasOwnProperty(l)&&n[l]!==a&&Hf(t,l,a)}else for(var o in e)e.hasOwnProperty(o)&&Hf(t,o,e[o])}function wr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Hv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zs(t){return Hv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Ar=null;function Dr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Cl=null,zl=null;function Bf(t){var e=Ol(t);if(e&&(t=e.stateNode)){var n=t[we]||null;t:switch(t=e.stateNode,e.type){case"input":if(Or(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ze(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var l=a[we]||null;if(!l)throw Error(r(90));Or(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Cf(a)}break t;case"textarea":Uf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Al(t,!!n.multiple,e,!1)}}}var Cr=!1;function jf(t,e,n){if(Cr)return t(e,n);Cr=!0;try{var a=t(e);return a}finally{if(Cr=!1,(Cl!==null||zl!==null)&&(Au(),Cl&&(e=Cl,t=zl,zl=Cl=null,Bf(e),t)))for(e=0;e<t.length;e++)Bf(t[e])}}function Ni(t,e){var n=t.stateNode;if(n===null)return null;var a=n[we]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var zr=!1;if(zn)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){zr=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{zr=!1}var la=null,Ur=null,ks=null;function qf(){if(ks)return ks;var t,e=Ur,n=e.length,a,l="value"in la?la.value:la.textContent,o=l.length;for(t=0;t<n&&e[t]===l[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===l[o-a];a++);return ks=l.slice(t,1<a?1-a:void 0)}function Fs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Js(){return!0}function Qf(){return!1}function Ae(t){function e(n,a,l,o,f){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=o,this.target=f,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Js:Qf,this.isPropagationStopped=Qf,this}return V(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Js)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Js)},persist:function(){},isPersistent:Js}),e}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$s=Ae(Za),Li=V({},Za,{view:0,detail:0}),Lv=Ae(Li),Nr,Hr,Bi,Ps=V({},Li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Br,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Bi&&(Bi&&t.type==="mousemove"?(Nr=t.screenX-Bi.screenX,Hr=t.screenY-Bi.screenY):Hr=Nr=0,Bi=t),Nr)},movementY:function(t){return"movementY"in t?t.movementY:Hr}}),Yf=Ae(Ps),Bv=V({},Ps,{dataTransfer:0}),jv=Ae(Bv),qv=V({},Li,{relatedTarget:0}),Lr=Ae(qv),Qv=V({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),Yv=Ae(Qv),Gv=V({},Za,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Vv=Ae(Gv),Xv=V({},Za,{data:0}),Gf=Ae(Xv),Kv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=kv[t])?!!e[t]:!1}function Br(){return Fv}var Jv=V({},Li,{key:function(t){if(t.key){var e=Kv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Fs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Zv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Br,charCode:function(t){return t.type==="keypress"?Fs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),$v=Ae(Jv),Pv=V({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vf=Ae(Pv),Wv=V({},Li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Br}),Iv=Ae(Wv),t0=V({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),e0=Ae(t0),n0=V({},Ps,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),a0=Ae(n0),l0=V({},Za,{newState:0,oldState:0}),i0=Ae(l0),s0=[9,13,27,32],jr=zn&&"CompositionEvent"in window,ji=null;zn&&"documentMode"in document&&(ji=document.documentMode);var u0=zn&&"TextEvent"in window&&!ji,Xf=zn&&(!jr||ji&&8<ji&&11>=ji),Kf=" ",Zf=!1;function kf(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 Ff(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ul=!1;function r0(t,e){switch(t){case"compositionend":return Ff(e);case"keypress":return e.which!==32?null:(Zf=!0,Kf);case"textInput":return t=e.data,t===Kf&&Zf?null:t;default:return null}}function o0(t,e){if(Ul)return t==="compositionend"||!jr&&kf(t,e)?(t=qf(),ks=Ur=la=null,Ul=!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.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Xf&&e.locale!=="ko"?null:e.data;default:return null}}var c0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Jf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!c0[t.type]:e==="textarea"}function $f(t,e,n,a){Cl?zl?zl.push(a):zl=[a]:Cl=a,e=Nu(e,"onChange"),0<e.length&&(n=new $s("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var qi=null,Qi=null;function f0(t){Em(t,0)}function Ws(t){var e=Ui(t);if(Cf(e))return t}function Pf(t,e){if(t==="change")return e}var Wf=!1;if(zn){var qr;if(zn){var Qr="oninput"in document;if(!Qr){var If=document.createElement("div");If.setAttribute("oninput","return;"),Qr=typeof If.oninput=="function"}qr=Qr}else qr=!1;Wf=qr&&(!document.documentMode||9<document.documentMode)}function td(){qi&&(qi.detachEvent("onpropertychange",ed),Qi=qi=null)}function ed(t){if(t.propertyName==="value"&&Ws(Qi)){var e=[];$f(e,Qi,t,Dr(t)),jf(f0,e)}}function d0(t,e,n){t==="focusin"?(td(),qi=e,Qi=n,qi.attachEvent("onpropertychange",ed)):t==="focusout"&&td()}function h0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ws(Qi)}function m0(t,e){if(t==="click")return Ws(e)}function y0(t,e){if(t==="input"||t==="change")return Ws(e)}function v0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var qe=typeof Object.is=="function"?Object.is:v0;function Yi(t,e){if(qe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!be.call(e,l)||!qe(t[l],e[l]))return!1}return!0}function nd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ad(t,e){var n=nd(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=nd(n)}}function ld(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ld(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function id(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ks(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=Ks(t.document)}return e}function Yr(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")}function p0(t,e){var n=id(e);e=t.focusedElem;var a=t.selectionRange;if(n!==e&&e&&e.ownerDocument&&ld(e.ownerDocument.documentElement,e)){if(a!==null&&Yr(e)){if(t=a.start,n=a.end,n===void 0&&(n=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(n,e.value.length);else if(n=(t=e.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var l=e.textContent.length,o=Math.min(a.start,l);a=a.end===void 0?o:Math.min(a.end,l),!n.extend&&o>a&&(l=a,a=o,o=l),l=ad(e,o);var f=ad(e,a);l&&f&&(n.rangeCount!==1||n.anchorNode!==l.node||n.anchorOffset!==l.offset||n.focusNode!==f.node||n.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),n.removeAllRanges(),o>a?(n.addRange(t),n.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),n.addRange(t)))}}for(t=[],n=e;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e<t.length;e++)n=t[e],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var g0=zn&&"documentMode"in document&&11>=document.documentMode,Nl=null,Gr=null,Gi=null,Vr=!1;function sd(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||Nl==null||Nl!==Ks(a)||(a=Nl,"selectionStart"in a&&Yr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Gi&&Yi(Gi,a)||(Gi=a,a=Nu(Gr,"onSelect"),0<a.length&&(e=new $s("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Nl)))}function ka(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Hl={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionrun:ka("Transition","TransitionRun"),transitionstart:ka("Transition","TransitionStart"),transitioncancel:ka("Transition","TransitionCancel"),transitionend:ka("Transition","TransitionEnd")},Xr={},ud={};zn&&(ud=document.createElement("div").style,"AnimationEvent"in window||(delete Hl.animationend.animation,delete Hl.animationiteration.animation,delete Hl.animationstart.animation),"TransitionEvent"in window||delete Hl.transitionend.transition);function Fa(t){if(Xr[t])return Xr[t];if(!Hl[t])return t;var e=Hl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ud)return Xr[t]=e[n];return t}var rd=Fa("animationend"),od=Fa("animationiteration"),cd=Fa("animationstart"),b0=Fa("transitionrun"),S0=Fa("transitionstart"),_0=Fa("transitioncancel"),fd=Fa("transitionend"),dd=new Map,hd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function on(t,e){dd.set(t,e),Ka(e,[t])}var ke=[],Ll=0,Kr=0;function Is(){for(var t=Ll,e=Kr=Ll=0;e<t;){var n=ke[e];ke[e++]=null;var a=ke[e];ke[e++]=null;var l=ke[e];ke[e++]=null;var o=ke[e];if(ke[e++]=null,a!==null&&l!==null){var f=a.pending;f===null?l.next=l:(l.next=f.next,f.next=l),a.pending=l}o!==0&&md(n,l,o)}}function tu(t,e,n,a){ke[Ll++]=t,ke[Ll++]=e,ke[Ll++]=n,ke[Ll++]=a,Kr|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Zr(t,e,n,a){return tu(t,e,n,a),eu(t)}function ia(t,e){return tu(t,null,null,e),eu(t)}function md(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var l=!1,o=t.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(l=!0)),t=o,o=o.return;l&&e!==null&&t.tag===3&&(o=t.stateNode,l=31-_e(n),o=o.hiddenUpdates,t=o[l],t===null?o[l]=[e]:t.push(e),e.lane=n|536870912)}function eu(t){if(50<hs)throw hs=0,Io=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Bl={},yd=new WeakMap;function Fe(t,e){if(typeof t=="object"&&t!==null){var n=yd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:K(e)},yd.set(t,e),e)}return{value:t,source:e,stack:K(e)}}var jl=[],ql=0,nu=null,au=0,Je=[],$e=0,Ja=null,Nn=1,Hn="";function $a(t,e){jl[ql++]=au,jl[ql++]=nu,nu=t,au=e}function vd(t,e,n){Je[$e++]=Nn,Je[$e++]=Hn,Je[$e++]=Ja,Ja=t;var a=Nn;t=Hn;var l=32-_e(a)-1;a&=~(1<<l),n+=1;var o=32-_e(e)+l;if(30<o){var f=l-l%5;o=(a&(1<<f)-1).toString(32),a>>=f,l-=f,Nn=1<<32-_e(e)+l|n<<l|a,Hn=o+t}else Nn=1<<o|n<<l|a,Hn=t}function kr(t){t.return!==null&&($a(t,1),vd(t,1,0))}function Fr(t){for(;t===nu;)nu=jl[--ql],jl[ql]=null,au=jl[--ql],jl[ql]=null;for(;t===Ja;)Ja=Je[--$e],Je[$e]=null,Hn=Je[--$e],Je[$e]=null,Nn=Je[--$e],Je[$e]=null}var Re=null,ce=null,Ct=!1,cn=null,_n=!1,Jr=Error(r(519));function Pa(t){var e=Error(r(418,""));throw Ki(Fe(e,t)),Jr}function pd(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[me]=t,e[we]=a,n){case"dialog":xt("cancel",e),xt("close",e);break;case"iframe":case"object":case"embed":xt("load",e);break;case"video":case"audio":for(n=0;n<ys.length;n++)xt(ys[n],e);break;case"source":xt("error",e);break;case"img":case"image":case"link":xt("error",e),xt("load",e);break;case"details":xt("toggle",e);break;case"input":xt("invalid",e),zf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Xs(e);break;case"select":xt("invalid",e);break;case"textarea":xt("invalid",e),Nf(e,a.value,a.defaultValue,a.children),Xs(e)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Om(e.textContent,n)?(a.popover!=null&&(xt("beforetoggle",e),xt("toggle",e)),a.onScroll!=null&&xt("scroll",e),a.onScrollEnd!=null&&xt("scrollend",e),a.onClick!=null&&(e.onclick=Hu),e=!0):e=!1,e||Pa(t)}function gd(t){for(Re=t.return;Re;)switch(Re.tag){case 3:case 27:_n=!0;return;case 5:case 13:_n=!1;return;default:Re=Re.return}}function Vi(t){if(t!==Re)return!1;if(!Ct)return gd(t),Ct=!0,!1;var e=!1,n;if((n=t.tag!==3&&t.tag!==27)&&((n=t.tag===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||vc(t.type,t.memoizedProps)),n=!n),n&&(e=!0),e&&ce&&Pa(t),gd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){ce=dn(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}ce=null}}else ce=Re?dn(t.stateNode.nextSibling):null;return!0}function Xi(){ce=Re=null,Ct=!1}function Ki(t){cn===null?cn=[t]:cn.push(t)}var Zi=Error(r(460)),bd=Error(r(474)),$r={then:function(){}};function Sd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function lu(){}function _d(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(lu,lu),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,t===Zi?Error(r(483)):t;default:if(typeof e.status=="string")e.then(lu,lu);else{if(t=jt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=a}},function(a){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,t===Zi?Error(r(483)):t}throw ki=e,Zi}}var ki=null;function Ed(){if(ki===null)throw Error(r(459));var t=ki;return ki=null,t}var Ql=null,Fi=0;function iu(t){var e=Fi;return Fi+=1,Ql===null&&(Ql=[]),_d(Ql,t,e)}function Ji(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function su(t,e){throw e.$$typeof===h?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Rd(t){var e=t._init;return e(t._payload)}function Td(t){function e(w,T){if(t){var A=w.deletions;A===null?(w.deletions=[T],w.flags|=16):A.push(T)}}function n(w,T){if(!t)return null;for(;T!==null;)e(w,T),T=T.sibling;return null}function a(w){for(var T=new Map;w!==null;)w.key!==null?T.set(w.key,w):T.set(w.index,w),w=w.sibling;return T}function l(w,T){return w=pa(w,T),w.index=0,w.sibling=null,w}function o(w,T,A){return w.index=A,t?(A=w.alternate,A!==null?(A=A.index,A<T?(w.flags|=33554434,T):A):(w.flags|=33554434,T)):(w.flags|=1048576,T)}function f(w){return t&&w.alternate===null&&(w.flags|=33554434),w}function v(w,T,A,Q){return T===null||T.tag!==6?(T=Ko(A,w.mode,Q),T.return=w,T):(T=l(T,A),T.return=w,T)}function S(w,T,A,Q){var ut=A.type;return ut===g?q(w,T,A.props.children,Q,A.key):T!==null&&(T.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===F&&Rd(ut)===T.type)?(T=l(T,A.props),Ji(T,A),T.return=w,T):(T=Tu(A.type,A.key,A.props,null,w.mode,Q),Ji(T,A),T.return=w,T)}function O(w,T,A,Q){return T===null||T.tag!==4||T.stateNode.containerInfo!==A.containerInfo||T.stateNode.implementation!==A.implementation?(T=Zo(A,w.mode,Q),T.return=w,T):(T=l(T,A.children||[]),T.return=w,T)}function q(w,T,A,Q,ut){return T===null||T.tag!==7?(T=ul(A,w.mode,Q,ut),T.return=w,T):(T=l(T,A),T.return=w,T)}function G(w,T,A){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Ko(""+T,w.mode,A),T.return=w,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case m:return A=Tu(T.type,T.key,T.props,null,w.mode,A),Ji(A,T),A.return=w,A;case p:return T=Zo(T,w.mode,A),T.return=w,T;case F:var Q=T._init;return T=Q(T._payload),G(w,T,A)}if(X(T)||$(T))return T=ul(T,w.mode,A,null),T.return=w,T;if(typeof T.then=="function")return G(w,iu(T),A);if(T.$$typeof===x)return G(w,_u(w,T),A);su(w,T)}return null}function D(w,T,A,Q){var ut=T!==null?T.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return ut!==null?null:v(w,T,""+A,Q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case m:return A.key===ut?S(w,T,A,Q):null;case p:return A.key===ut?O(w,T,A,Q):null;case F:return ut=A._init,A=ut(A._payload),D(w,T,A,Q)}if(X(A)||$(A))return ut!==null?null:q(w,T,A,Q,null);if(typeof A.then=="function")return D(w,T,iu(A),Q);if(A.$$typeof===x)return D(w,T,_u(w,A),Q);su(w,A)}return null}function B(w,T,A,Q,ut){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return w=w.get(A)||null,v(T,w,""+Q,ut);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case m:return w=w.get(Q.key===null?A:Q.key)||null,S(T,w,Q,ut);case p:return w=w.get(Q.key===null?A:Q.key)||null,O(T,w,Q,ut);case F:var Tt=Q._init;return Q=Tt(Q._payload),B(w,T,A,Q,ut)}if(X(Q)||$(Q))return w=w.get(A)||null,q(T,w,Q,ut,null);if(typeof Q.then=="function")return B(w,T,A,iu(Q),ut);if(Q.$$typeof===x)return B(w,T,A,_u(T,Q),ut);su(T,Q)}return null}function mt(w,T,A,Q){for(var ut=null,Tt=null,yt=T,pt=T=0,re=null;yt!==null&&pt<A.length;pt++){yt.index>pt?(re=yt,yt=null):re=yt.sibling;var zt=D(w,yt,A[pt],Q);if(zt===null){yt===null&&(yt=re);break}t&&yt&&zt.alternate===null&&e(w,yt),T=o(zt,T,pt),Tt===null?ut=zt:Tt.sibling=zt,Tt=zt,yt=re}if(pt===A.length)return n(w,yt),Ct&&$a(w,pt),ut;if(yt===null){for(;pt<A.length;pt++)yt=G(w,A[pt],Q),yt!==null&&(T=o(yt,T,pt),Tt===null?ut=yt:Tt.sibling=yt,Tt=yt);return Ct&&$a(w,pt),ut}for(yt=a(yt);pt<A.length;pt++)re=B(yt,w,pt,A[pt],Q),re!==null&&(t&&re.alternate!==null&&yt.delete(re.key===null?pt:re.key),T=o(re,T,pt),Tt===null?ut=re:Tt.sibling=re,Tt=re);return t&&yt.forEach(function(Ta){return e(w,Ta)}),Ct&&$a(w,pt),ut}function bt(w,T,A,Q){if(A==null)throw Error(r(151));for(var ut=null,Tt=null,yt=T,pt=T=0,re=null,zt=A.next();yt!==null&&!zt.done;pt++,zt=A.next()){yt.index>pt?(re=yt,yt=null):re=yt.sibling;var Ta=D(w,yt,zt.value,Q);if(Ta===null){yt===null&&(yt=re);break}t&&yt&&Ta.alternate===null&&e(w,yt),T=o(Ta,T,pt),Tt===null?ut=Ta:Tt.sibling=Ta,Tt=Ta,yt=re}if(zt.done)return n(w,yt),Ct&&$a(w,pt),ut;if(yt===null){for(;!zt.done;pt++,zt=A.next())zt=G(w,zt.value,Q),zt!==null&&(T=o(zt,T,pt),Tt===null?ut=zt:Tt.sibling=zt,Tt=zt);return Ct&&$a(w,pt),ut}for(yt=a(yt);!zt.done;pt++,zt=A.next())zt=B(yt,w,pt,zt.value,Q),zt!==null&&(t&&zt.alternate!==null&&yt.delete(zt.key===null?pt:zt.key),T=o(zt,T,pt),Tt===null?ut=zt:Tt.sibling=zt,Tt=zt);return t&&yt.forEach(function(Hp){return e(w,Hp)}),Ct&&$a(w,pt),ut}function kt(w,T,A,Q){if(typeof A=="object"&&A!==null&&A.type===g&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case m:t:{for(var ut=A.key;T!==null;){if(T.key===ut){if(ut=A.type,ut===g){if(T.tag===7){n(w,T.sibling),Q=l(T,A.props.children),Q.return=w,w=Q;break t}}else if(T.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===F&&Rd(ut)===T.type){n(w,T.sibling),Q=l(T,A.props),Ji(Q,A),Q.return=w,w=Q;break t}n(w,T);break}else e(w,T);T=T.sibling}A.type===g?(Q=ul(A.props.children,w.mode,Q,A.key),Q.return=w,w=Q):(Q=Tu(A.type,A.key,A.props,null,w.mode,Q),Ji(Q,A),Q.return=w,w=Q)}return f(w);case p:t:{for(ut=A.key;T!==null;){if(T.key===ut)if(T.tag===4&&T.stateNode.containerInfo===A.containerInfo&&T.stateNode.implementation===A.implementation){n(w,T.sibling),Q=l(T,A.children||[]),Q.return=w,w=Q;break t}else{n(w,T);break}else e(w,T);T=T.sibling}Q=Zo(A,w.mode,Q),Q.return=w,w=Q}return f(w);case F:return ut=A._init,A=ut(A._payload),kt(w,T,A,Q)}if(X(A))return mt(w,T,A,Q);if($(A)){if(ut=$(A),typeof ut!="function")throw Error(r(150));return A=ut.call(A),bt(w,T,A,Q)}if(typeof A.then=="function")return kt(w,T,iu(A),Q);if(A.$$typeof===x)return kt(w,T,_u(w,A),Q);su(w,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,T!==null&&T.tag===6?(n(w,T.sibling),Q=l(T,A),Q.return=w,w=Q):(n(w,T),Q=Ko(A,w.mode,Q),Q.return=w,w=Q),f(w)):n(w,T)}return function(w,T,A,Q){try{Fi=0;var ut=kt(w,T,A,Q);return Ql=null,ut}catch(yt){if(yt===Zi)throw yt;var Tt=tn(29,yt,null,w.mode);return Tt.lanes=Q,Tt.return=w,Tt}finally{}}}var Wa=Td(!0),Md=Td(!1),Yl=ft(null),uu=ft(0);function Od(t,e){t=Zn,Ot(uu,t),Ot(Yl,e),Zn=t|e.baseLanes}function Pr(){Ot(uu,Zn),Ot(Yl,Yl.current)}function Wr(){Zn=uu.current,_t(Yl),_t(uu)}var Pe=ft(null),En=null;function sa(t){var e=t.alternate;Ot(ee,ee.current&1),Ot(Pe,t),En===null&&(e===null||Yl.current!==null||e.memoizedState!==null)&&(En=t)}function xd(t){if(t.tag===22){if(Ot(ee,ee.current),Ot(Pe,t),En===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(En=t)}}else ua()}function ua(){Ot(ee,ee.current),Ot(Pe,Pe.current)}function Ln(t){_t(Pe),En===t&&(En=null),_t(ee)}var ee=ft(0);function ru(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var E0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},R0=s.unstable_scheduleCallback,T0=s.unstable_NormalPriority,ne={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ir(){return{controller:new E0,data:new Map,refCount:0}}function $i(t){t.refCount--,t.refCount===0&&R0(T0,function(){t.controller.abort()})}var Pi=null,to=0,Gl=0,Vl=null;function M0(t,e){if(Pi===null){var n=Pi=[];to=0,Gl=uc(),Vl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return to++,e.then(wd,wd),e}function wd(){if(--to===0&&Pi!==null){Vl!==null&&(Vl.status="fulfilled");var t=Pi;Pi=null,Gl=0,Vl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function O0(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Ad=M.S;M.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&M0(t,e),Ad!==null&&Ad(t,e)};var Ia=ft(null);function eo(){var t=Ia.current;return t!==null?t:jt.pooledCache}function ou(t,e){e===null?Ot(Ia,Ia.current):Ot(Ia,e.pool)}function Dd(){var t=eo();return t===null?null:{parent:ne._currentValue,pool:t}}var ra=0,Rt=null,Nt=null,Wt=null,cu=!1,Xl=!1,tl=!1,fu=0,Wi=0,Kl=null,x0=0;function Jt(){throw Error(r(321))}function no(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!qe(t[n],e[n]))return!1;return!0}function ao(t,e,n,a,l,o){return ra=o,Rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?el:oa,tl=!1,o=n(a,l),tl=!1,Xl&&(o=zd(e,n,a,l)),Cd(t),o}function Cd(t){M.H=Rn;var e=Nt!==null&&Nt.next!==null;if(ra=0,Wt=Nt=Rt=null,cu=!1,Wi=0,Kl=null,e)throw Error(r(300));t===null||se||(t=t.dependencies,t!==null&&Su(t)&&(se=!0))}function zd(t,e,n,a){Rt=t;var l=0;do{if(Xl&&(Kl=null),Wi=0,Xl=!1,25<=l)throw Error(r(301));if(l+=1,Wt=Nt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}M.H=nl,o=e(n,a)}while(Xl);return o}function w0(){var t=M.H,e=t.useState()[0];return e=typeof e.then=="function"?Ii(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(Rt.flags|=1024),e}function lo(){var t=fu!==0;return fu=0,t}function io(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function so(t){if(cu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}cu=!1}ra=0,Wt=Nt=Rt=null,Xl=!1,Wi=fu=0,Kl=null}function De(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?Rt.memoizedState=Wt=t:Wt=Wt.next=t,Wt}function It(){if(Nt===null){var t=Rt.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=Wt===null?Rt.memoizedState:Wt.next;if(e!==null)Wt=e,Nt=t;else{if(t===null)throw Rt.alternate===null?Error(r(467)):Error(r(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Wt===null?Rt.memoizedState=Wt=t:Wt=Wt.next=t}return Wt}var du;du=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Ii(t){var e=Wi;return Wi+=1,Kl===null&&(Kl=[]),t=_d(Kl,t,e),e=Rt,(Wt===null?e.memoizedState:Wt.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?el:oa),t}function hu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ii(t);if(t.$$typeof===x)return ye(t)}throw Error(r(438,String(t)))}function uo(t){var e=null,n=Rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=Rt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=du(),Rt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=ot;return e.index++,n}function Bn(t,e){return typeof e=="function"?e(t):e}function mu(t){var e=It();return ro(e,Nt,t)}function ro(t,e,n){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var l=t.baseQueue,o=a.pending;if(o!==null){if(l!==null){var f=l.next;l.next=o.next,o.next=f}e.baseQueue=l=o,a.pending=null}if(o=t.baseState,l===null)t.memoizedState=o;else{e=l.next;var v=f=null,S=null,O=e,q=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(At&G)===G:(ra&G)===G){var D=O.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Gl&&(q=!0);else if((ra&D)===D){O=O.next,D===Gl&&(q=!0);continue}else G={lane:0,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(v=S=G,f=o):S=S.next=G,Rt.lanes|=D,ga|=D;G=O.action,tl&&n(o,G),o=O.hasEagerState?O.eagerState:n(o,G)}else D={lane:G,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(v=S=D,f=o):S=S.next=D,Rt.lanes|=G,ga|=G;O=O.next}while(O!==null&&O!==e);if(S===null?f=o:S.next=v,!qe(o,t.memoizedState)&&(se=!0,q&&(n=Vl,n!==null)))throw n;t.memoizedState=o,t.baseState=f,t.baseQueue=S,a.lastRenderedState=o}return l===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function oo(t){var e=It(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var a=n.dispatch,l=n.pending,o=e.memoizedState;if(l!==null){n.pending=null;var f=l=l.next;do o=t(o,f.action),f=f.next;while(f!==l);qe(o,e.memoizedState)||(se=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,a]}function Ud(t,e,n){var a=Rt,l=It(),o=Ct;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=e();var f=!qe((Nt||l).memoizedState,n);if(f&&(l.memoizedState=n,se=!0),l=l.queue,ho(Ld.bind(null,a,l,t),[t]),l.getSnapshot!==e||f||Wt!==null&&Wt.memoizedState.tag&1){if(a.flags|=2048,Zl(9,Hd.bind(null,a,l,n,e),{destroy:void 0},null),jt===null)throw Error(r(349));o||(ra&60)!==0||Nd(a,e,n)}return n}function Nd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Rt.updateQueue,e===null?(e=du(),Rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Hd(t,e,n,a){e.value=n,e.getSnapshot=a,Bd(e)&&jd(t)}function Ld(t,e,n){return n(function(){Bd(e)&&jd(t)})}function Bd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!qe(t,n)}catch{return!0}}function jd(t){var e=ia(t,2);e!==null&&Te(e,t,2)}function co(t){var e=De();if(typeof t=="function"){var n=t;if(t=n(),tl){rn(!0);try{n()}finally{rn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:t},e}function qd(t,e,n,a){return t.baseState=n,ro(t,Nt,typeof a=="function"?a:Bn)}function A0(t,e,n,a,l){if(pu(t))throw Error(r(485));if(t=e.action,t!==null){var o={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){o.listeners.push(f)}};M.T!==null?n(!0):o.isTransition=!1,a(o),n=e.pending,n===null?(o.next=e.pending=o,Qd(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Qd(t,e){var n=e.action,a=e.payload,l=t.state;if(e.isTransition){var o=M.T,f={};M.T=f;try{var v=n(l,a),S=M.S;S!==null&&S(f,v),Yd(t,e,v)}catch(O){fo(t,e,O)}finally{M.T=o}}else try{o=n(l,a),Yd(t,e,o)}catch(O){fo(t,e,O)}}function Yd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Gd(t,e,a)},function(a){return fo(t,e,a)}):Gd(t,e,n)}function Gd(t,e,n){e.status="fulfilled",e.value=n,Vd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Qd(t,n)))}function fo(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Vd(e),e=e.next;while(e!==a)}t.action=null}function Vd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Xd(t,e){return e}function Kd(t,e){if(Ct){var n=jt.formState;if(n!==null){t:{var a=Rt;if(Ct){if(ce){e:{for(var l=ce,o=_n;l.nodeType!==8;){if(!o){l=null;break e}if(l=dn(l.nextSibling),l===null){l=null;break e}}o=l.data,l=o==="F!"||o==="F"?l:null}if(l){ce=dn(l.nextSibling),a=l.data==="F!";break t}}Pa(a)}a=!1}a&&(e=n[0])}}return n=De(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xd,lastRenderedState:e},n.queue=a,n=oh.bind(null,Rt,a),a.dispatch=n,a=co(!1),o=go.bind(null,Rt,!1,a.queue),a=De(),l={state:e,dispatch:null,action:t,pending:null},a.queue=l,n=A0.bind(null,Rt,l,o,n),l.dispatch=n,a.memoizedState=t,[e,n,!1]}function Zd(t){var e=It();return kd(e,Nt,t)}function kd(t,e,n){e=ro(t,e,Xd)[0],t=mu(Bn)[0],e=typeof e=="object"&&e!==null&&typeof e.then=="function"?Ii(e):e;var a=It(),l=a.queue,o=l.dispatch;return n!==a.memoizedState&&(Rt.flags|=2048,Zl(9,D0.bind(null,l,n),{destroy:void 0},null)),[e,o,t]}function D0(t,e){t.action=e}function Fd(t){var e=It(),n=Nt;if(n!==null)return kd(e,n,t);It(),e=e.memoizedState,n=It();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Zl(t,e,n,a){return t={tag:t,create:e,inst:n,deps:a,next:null},e=Rt.updateQueue,e===null&&(e=du(),Rt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function Jd(){return It().memoizedState}function yu(t,e,n,a){var l=De();Rt.flags|=t,l.memoizedState=Zl(1|e,n,{destroy:void 0},a===void 0?null:a)}function vu(t,e,n,a){var l=It();a=a===void 0?null:a;var o=l.memoizedState.inst;Nt!==null&&a!==null&&no(a,Nt.memoizedState.deps)?l.memoizedState=Zl(e,n,o,a):(Rt.flags|=t,l.memoizedState=Zl(1|e,n,o,a))}function $d(t,e){yu(8390656,8,t,e)}function ho(t,e){vu(2048,8,t,e)}function Pd(t,e){return vu(4,2,t,e)}function Wd(t,e){return vu(4,4,t,e)}function Id(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function th(t,e,n){n=n!=null?n.concat([t]):null,vu(4,4,Id.bind(null,e,t),n)}function mo(){}function eh(t,e){var n=It();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&no(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function nh(t,e){var n=It();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&no(e,a[1]))return a[0];if(a=t(),tl){rn(!0);try{t()}finally{rn(!1)}}return n.memoizedState=[a,e],a}function yo(t,e,n){return n===void 0||(ra&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=lm(),Rt.lanes|=t,ga|=t,n)}function ah(t,e,n,a){return qe(n,e)?n:Yl.current!==null?(t=yo(t,n,a),qe(t,e)||(se=!0),t):(ra&42)===0?(se=!0,t.memoizedState=n):(t=lm(),Rt.lanes|=t,ga|=t,e)}function lh(t,e,n,a,l){var o=k.p;k.p=o!==0&&8>o?o:8;var f=M.T,v={};M.T=v,go(t,!1,e,n);try{var S=l(),O=M.S;if(O!==null&&O(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var q=O0(S,a);ts(t,e,q,Ve(t))}else ts(t,e,a,Ve(t))}catch(G){ts(t,e,{then:function(){},status:"rejected",reason:G},Ve())}finally{k.p=o,M.T=f}}function C0(){}function vo(t,e,n,a){if(t.tag!==5)throw Error(r(476));var l=ih(t).queue;lh(t,l,e,ht,n===null?C0:function(){return sh(t),n(a)})}function ih(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ht,baseState:ht,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:ht},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function sh(t){var e=ih(t).next.queue;ts(t,e,{},Ve())}function po(){return ye(Ss)}function uh(){return It().memoizedState}function rh(){return It().memoizedState}function z0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ve();t=da(n);var a=ha(e,t,n);a!==null&&(Te(a,e,n),as(a,e,n)),e={cache:Ir()},t.payload=e;return}e=e.return}}function U0(t,e,n){var a=Ve();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},pu(t)?ch(e,n):(n=Zr(t,e,n,a),n!==null&&(Te(n,t,a),fh(n,e,a)))}function oh(t,e,n){var a=Ve();ts(t,e,n,a)}function ts(t,e,n,a){var l={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(pu(t))ch(e,l);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var f=e.lastRenderedState,v=o(f,n);if(l.hasEagerState=!0,l.eagerState=v,qe(v,f))return tu(t,e,l,0),jt===null&&Is(),!1}catch{}finally{}if(n=Zr(t,e,l,a),n!==null)return Te(n,t,a),fh(n,e,a),!0}return!1}function go(t,e,n,a){if(a={lane:2,revertLane:uc(),action:a,hasEagerState:!1,eagerState:null,next:null},pu(t)){if(e)throw Error(r(479))}else e=Zr(t,n,a,2),e!==null&&Te(e,t,2)}function pu(t){var e=t.alternate;return t===Rt||e!==null&&e===Rt}function ch(t,e){Xl=cu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function fh(t,e,n){if((n&4194176)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Ci(t,n)}}var Rn={readContext:ye,use:hu,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt};Rn.useCacheRefresh=Jt,Rn.useMemoCache=Jt,Rn.useHostTransitionStatus=Jt,Rn.useFormState=Jt,Rn.useActionState=Jt,Rn.useOptimistic=Jt;var el={readContext:ye,use:hu,useCallback:function(t,e){return De().memoizedState=[t,e===void 0?null:e],t},useContext:ye,useEffect:$d,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,yu(4194308,4,Id.bind(null,e,t),n)},useLayoutEffect:function(t,e){return yu(4194308,4,t,e)},useInsertionEffect:function(t,e){yu(4,2,t,e)},useMemo:function(t,e){var n=De();e=e===void 0?null:e;var a=t();if(tl){rn(!0);try{t()}finally{rn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=De();if(n!==void 0){var l=n(e);if(tl){rn(!0);try{n(e)}finally{rn(!1)}}}else l=e;return a.memoizedState=a.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},a.queue=t,t=t.dispatch=U0.bind(null,Rt,t),[a.memoizedState,t]},useRef:function(t){var e=De();return t={current:t},e.memoizedState=t},useState:function(t){t=co(t);var e=t.queue,n=oh.bind(null,Rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:mo,useDeferredValue:function(t,e){var n=De();return yo(n,t,e)},useTransition:function(){var t=co(!1);return t=lh.bind(null,Rt,t.queue,!0,!1),De().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=Rt,l=De();if(Ct){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),jt===null)throw Error(r(349));(At&60)!==0||Nd(a,e,n)}l.memoizedState=n;var o={value:n,getSnapshot:e};return l.queue=o,$d(Ld.bind(null,a,o,t),[t]),a.flags|=2048,Zl(9,Hd.bind(null,a,o,n,e),{destroy:void 0},null),n},useId:function(){var t=De(),e=jt.identifierPrefix;if(Ct){var n=Hn,a=Nn;n=(a&~(1<<32-_e(a)-1)).toString(32)+n,e=":"+e+"R"+n,n=fu++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=x0++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},useCacheRefresh:function(){return De().memoizedState=z0.bind(null,Rt)}};el.useMemoCache=uo,el.useHostTransitionStatus=po,el.useFormState=Kd,el.useActionState=Kd,el.useOptimistic=function(t){var e=De();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=go.bind(null,Rt,!0,n),n.dispatch=e,[t,e]};var oa={readContext:ye,use:hu,useCallback:eh,useContext:ye,useEffect:ho,useImperativeHandle:th,useInsertionEffect:Pd,useLayoutEffect:Wd,useMemo:nh,useReducer:mu,useRef:Jd,useState:function(){return mu(Bn)},useDebugValue:mo,useDeferredValue:function(t,e){var n=It();return ah(n,Nt.memoizedState,t,e)},useTransition:function(){var t=mu(Bn)[0],e=It().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:Ud,useId:uh};oa.useCacheRefresh=rh,oa.useMemoCache=uo,oa.useHostTransitionStatus=po,oa.useFormState=Zd,oa.useActionState=Zd,oa.useOptimistic=function(t,e){var n=It();return qd(n,Nt,t,e)};var nl={readContext:ye,use:hu,useCallback:eh,useContext:ye,useEffect:ho,useImperativeHandle:th,useInsertionEffect:Pd,useLayoutEffect:Wd,useMemo:nh,useReducer:oo,useRef:Jd,useState:function(){return oo(Bn)},useDebugValue:mo,useDeferredValue:function(t,e){var n=It();return Nt===null?yo(n,t,e):ah(n,Nt.memoizedState,t,e)},useTransition:function(){var t=oo(Bn)[0],e=It().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:Ud,useId:uh};nl.useCacheRefresh=rh,nl.useMemoCache=uo,nl.useHostTransitionStatus=po,nl.useFormState=Fd,nl.useActionState=Fd,nl.useOptimistic=function(t,e){var n=It();return Nt!==null?qd(n,Nt,t,e):(n.baseState=t,[t,n.queue.dispatch])};function bo(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:V({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var So={isMounted:function(t){return(t=t._reactInternals)?tt(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ve(),l=da(a);l.payload=e,n!=null&&(l.callback=n),e=ha(t,l,a),e!==null&&(Te(e,t,a),as(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ve(),l=da(a);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=ha(t,l,a),e!==null&&(Te(e,t,a),as(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ve(),a=da(n);a.tag=2,e!=null&&(a.callback=e),e=ha(t,a,n),e!==null&&(Te(e,t,n),as(e,t,n))}};function dh(t,e,n,a,l,o,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,o,f):e.prototype&&e.prototype.isPureReactComponent?!Yi(n,a)||!Yi(l,o):!0}function hh(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&So.enqueueReplaceState(e,e.state,null)}function al(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=V({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}var gu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function mh(t){gu(t)}function yh(t){console.error(t)}function vh(t){gu(t)}function bu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function ph(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function _o(t,e,n){return n=da(n),n.tag=3,n.payload={element:null},n.callback=function(){bu(t,e)},n}function gh(t){return t=da(t),t.tag=3,t}function bh(t,e,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var o=a.value;t.payload=function(){return l(o)},t.callback=function(){ph(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){ph(e,n,a),typeof l!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function N0(t,e,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&ns(e,n,l,!0),n=Pe.current,n!==null){switch(n.tag){case 13:return En===null?nc():n.alternate===null&&Zt===0&&(Zt=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===$r?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),lc(t,a,l)),!1;case 22:return n.flags|=65536,a===$r?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),lc(t,a,l)),!1}throw Error(r(435,n.tag))}return lc(t,a,l),nc(),!1}if(Ct)return e=Pe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,a!==Jr&&(t=Error(r(422),{cause:a}),Ki(Fe(t,n)))):(a!==Jr&&(e=Error(r(423),{cause:a}),Ki(Fe(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,a=Fe(a,n),l=_o(t.stateNode,a,l),Lo(t,l),Zt!==4&&(Zt=2)),!1;var o=Error(r(520),{cause:a});if(o=Fe(o,n),fs===null?fs=[o]:fs.push(o),Zt!==4&&(Zt=2),e===null)return!0;a=Fe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=_o(n.stateNode,a,t),Lo(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ba===null||!ba.has(o))))return n.flags|=65536,l&=-l,n.lanes|=l,l=gh(l),bh(l,t,n,a),Lo(n,l),!1}n=n.return}while(n!==null);return!1}var Sh=Error(r(461)),se=!1;function fe(t,e,n,a){e.child=t===null?Md(e,null,n,a):Wa(e,t.child,n,a)}function _h(t,e,n,a,l){n=n.render;var o=e.ref;if("ref"in a){var f={};for(var v in a)v!=="ref"&&(f[v]=a[v])}else f=a;return il(e),a=ao(t,e,n,f,o,l),v=lo(),t!==null&&!se?(io(t,e,l),jn(t,e,l)):(Ct&&v&&kr(e),e.flags|=1,fe(t,e,a,l),e.child)}function Eh(t,e,n,a,l){if(t===null){var o=n.type;return typeof o=="function"&&!Xo(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Rh(t,e,o,a,l)):(t=Tu(n.type,null,a,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!Do(t,l)){var f=o.memoizedProps;if(n=n.compare,n=n!==null?n:Yi,n(f,a)&&t.ref===e.ref)return jn(t,e,l)}return e.flags|=1,t=pa(o,a),t.ref=e.ref,t.return=e,e.child=t}function Rh(t,e,n,a,l){if(t!==null){var o=t.memoizedProps;if(Yi(o,a)&&t.ref===e.ref)if(se=!1,e.pendingProps=a=o,Do(t,l))(t.flags&131072)!==0&&(se=!0);else return e.lanes=t.lanes,jn(t,e,l)}return Eo(t,e,n,a,l)}function Th(t,e,n){var a=e.pendingProps,l=a.children,o=(e.stateNode._pendingVisibility&2)!==0,f=t!==null?t.memoizedState:null;if(es(t,e),a.mode==="hidden"||o){if((e.flags&128)!==0){if(a=f!==null?f.baseLanes|n:n,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;e.childLanes=o&~a}else e.childLanes=0,e.child=null;return Mh(t,e,a,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ou(e,f!==null?f.cachePool:null),f!==null?Od(e,f):Pr(),xd(e);else return e.lanes=e.childLanes=536870912,Mh(t,e,f!==null?f.baseLanes|n:n,n)}else f!==null?(ou(e,f.cachePool),Od(e,f),ua(),e.memoizedState=null):(t!==null&&ou(e,null),Pr(),ua());return fe(t,e,l,n),e.child}function Mh(t,e,n,a){var l=eo();return l=l===null?null:{parent:ne._currentValue,pool:l},e.memoizedState={baseLanes:n,cachePool:l},t!==null&&ou(e,null),Pr(),xd(e),t!==null&&ns(t,e,a,!0),null}function es(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=2097664)}}function Eo(t,e,n,a,l){return il(e),n=ao(t,e,n,a,void 0,l),a=lo(),t!==null&&!se?(io(t,e,l),jn(t,e,l)):(Ct&&a&&kr(e),e.flags|=1,fe(t,e,n,l),e.child)}function Oh(t,e,n,a,l,o){return il(e),e.updateQueue=null,n=zd(e,a,n,l),Cd(t),a=lo(),t!==null&&!se?(io(t,e,o),jn(t,e,o)):(Ct&&a&&kr(e),e.flags|=1,fe(t,e,n,o),e.child)}function xh(t,e,n,a,l){if(il(e),e.stateNode===null){var o=Bl,f=n.contextType;typeof f=="object"&&f!==null&&(o=ye(f)),o=new n(a,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=So,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=a,o.state=e.memoizedState,o.refs={},No(e),f=n.contextType,o.context=typeof f=="object"&&f!==null?ye(f):Bl,o.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(bo(e,n,f,a),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(f=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),f!==o.state&&So.enqueueReplaceState(o,o.state,null),is(e,a,o,l),ls(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){o=e.stateNode;var v=e.memoizedProps,S=al(n,v);o.props=S;var O=o.context,q=n.contextType;f=Bl,typeof q=="object"&&q!==null&&(f=ye(q));var G=n.getDerivedStateFromProps;q=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,q||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||O!==f)&&hh(e,o,a,f),fa=!1;var D=e.memoizedState;o.state=D,is(e,a,o,l),ls(),O=e.memoizedState,v||D!==O||fa?(typeof G=="function"&&(bo(e,n,G,a),O=e.memoizedState),(S=fa||dh(e,n,S,a,D,O,f))?(q||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=O),o.props=a,o.state=O,o.context=f,a=S):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{o=e.stateNode,Ho(t,e),f=e.memoizedProps,q=al(n,f),o.props=q,G=e.pendingProps,D=o.context,O=n.contextType,S=Bl,typeof O=="object"&&O!==null&&(S=ye(O)),v=n.getDerivedStateFromProps,(O=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f!==G||D!==S)&&hh(e,o,a,S),fa=!1,D=e.memoizedState,o.state=D,is(e,a,o,l),ls();var B=e.memoizedState;f!==G||D!==B||fa||t!==null&&t.dependencies!==null&&Su(t.dependencies)?(typeof v=="function"&&(bo(e,n,v,a),B=e.memoizedState),(q=fa||dh(e,n,q,a,D,B,S)||t!==null&&t.dependencies!==null&&Su(t.dependencies))?(O||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,B,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,B,S)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=B),o.props=a,o.state=B,o.context=S,a=q):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),a=!1)}return o=a,es(t,e),a=(e.flags&128)!==0,o||a?(o=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&a?(e.child=Wa(e,t.child,null,l),e.child=Wa(e,null,n,l)):fe(t,e,n,l),e.memoizedState=o.state,t=e.child):t=jn(t,e,l),t}function wh(t,e,n,a){return Xi(),e.flags|=256,fe(t,e,n,a),e.child}var Ro={dehydrated:null,treeContext:null,retryLane:0};function To(t){return{baseLanes:t,cachePool:Dd()}}function Mo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=en),t}function Ah(t,e,n){var a=e.pendingProps,l=!1,o=(e.flags&128)!==0,f;if((f=o)||(f=t!==null&&t.memoizedState===null?!1:(ee.current&2)!==0),f&&(l=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ct){if(l?sa(e):ua(),Ct){var v=ce,S;if(S=v){t:{for(S=v,v=_n;S.nodeType!==8;){if(!v){v=null;break t}if(S=dn(S.nextSibling),S===null){v=null;break t}}v=S}v!==null?(e.memoizedState={dehydrated:v,treeContext:Ja!==null?{id:Nn,overflow:Hn}:null,retryLane:536870912},S=tn(18,null,null,0),S.stateNode=v,S.return=e,e.child=S,Re=e,ce=null,S=!0):S=!1}S||Pa(e)}if(v=e.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return v.data==="$!"?e.lanes=16:e.lanes=536870912,null;Ln(e)}return v=a.children,a=a.fallback,l?(ua(),l=e.mode,v=xo({mode:"hidden",children:v},l),a=ul(a,l,n,null),v.return=e,a.return=e,v.sibling=a,e.child=v,l=e.child,l.memoizedState=To(n),l.childLanes=Mo(t,f,n),e.memoizedState=Ro,a):(sa(e),Oo(e,v))}if(S=t.memoizedState,S!==null&&(v=S.dehydrated,v!==null)){if(o)e.flags&256?(sa(e),e.flags&=-257,e=wo(t,e,n)):e.memoizedState!==null?(ua(),e.child=t.child,e.flags|=128,e=null):(ua(),l=a.fallback,v=e.mode,a=xo({mode:"visible",children:a.children},v),l=ul(l,v,n,null),l.flags|=2,a.return=e,l.return=e,a.sibling=l,e.child=a,Wa(e,t.child,null,n),a=e.child,a.memoizedState=To(n),a.childLanes=Mo(t,f,n),e.memoizedState=Ro,e=l);else if(sa(e),v.data==="$!"){if(f=v.nextSibling&&v.nextSibling.dataset,f)var O=f.dgst;f=O,a=Error(r(419)),a.stack="",a.digest=f,Ki({value:a,source:null,stack:null}),e=wo(t,e,n)}else if(se||ns(t,e,n,!1),f=(n&t.childLanes)!==0,se||f){if(f=jt,f!==null){if(a=n&-n,(a&42)!==0)a=1;else switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:a=64;break;case 268435456:a=134217728;break;default:a=0}if(a=(a&(f.suspendedLanes|n))!==0?0:a,a!==0&&a!==S.retryLane)throw S.retryLane=a,ia(t,a),Te(f,t,a),Sh}v.data==="$?"||nc(),e=wo(t,e,n)}else v.data==="$?"?(e.flags|=128,e.child=t.child,e=J0.bind(null,t),v._reactRetry=e,e=null):(t=S.treeContext,ce=dn(v.nextSibling),Re=e,Ct=!0,cn=null,_n=!1,t!==null&&(Je[$e++]=Nn,Je[$e++]=Hn,Je[$e++]=Ja,Nn=t.id,Hn=t.overflow,Ja=e),e=Oo(e,a.children),e.flags|=4096);return e}return l?(ua(),l=a.fallback,v=e.mode,S=t.child,O=S.sibling,a=pa(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&31457280,O!==null?l=pa(O,l):(l=ul(l,v,n,null),l.flags|=2),l.return=e,a.return=e,a.sibling=l,e.child=a,a=l,l=e.child,v=t.child.memoizedState,v===null?v=To(n):(S=v.cachePool,S!==null?(O=ne._currentValue,S=S.parent!==O?{parent:O,pool:O}:S):S=Dd(),v={baseLanes:v.baseLanes|n,cachePool:S}),l.memoizedState=v,l.childLanes=Mo(t,f,n),e.memoizedState=Ro,a):(sa(e),n=t.child,t=n.sibling,n=pa(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Oo(t,e){return e=xo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function xo(t,e){return em(t,e,0,null)}function wo(t,e,n){return Wa(e,t.child,null,n),t=Oo(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Dh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),zo(t.return,e,n)}function Ao(t,e,n,a,l){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=l)}function Ch(t,e,n){var a=e.pendingProps,l=a.revealOrder,o=a.tail;if(fe(t,e,a.children,n),a=ee.current,(a&2)!==0)a=a&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Dh(t,n,e);else if(t.tag===19)Dh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}switch(Ot(ee,a),l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&ru(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),Ao(e,!1,l,n,o);break;case"backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&ru(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}Ao(e,!0,n,null,o);break;case"together":Ao(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function jn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ga|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ns(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=pa(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=pa(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Do(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Su(t)))}function H0(t,e,n){switch(e.tag){case 3:ge(e,e.stateNode.containerInfo),ca(e,ne,t.memoizedState.cache),Xi();break;case 27:case 5:Be(e);break;case 4:ge(e,e.stateNode.containerInfo);break;case 10:ca(e,e.type,e.memoizedProps.value);break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(sa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Ah(t,e,n):(sa(e),t=jn(t,e,n),t!==null?t.sibling:null);sa(e);break;case 19:var l=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(ns(t,e,n,!1),a=(n&e.childLanes)!==0),l){if(a)return Ch(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ot(ee,ee.current),a)break;return null;case 22:case 23:return e.lanes=0,Th(t,e,n);case 24:ca(e,ne,t.memoizedState.cache)}return jn(t,e,n)}function zh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)se=!0;else{if(!Do(t,n)&&(e.flags&128)===0)return se=!1,H0(t,e,n);se=(t.flags&131072)!==0}else se=!1,Ct&&(e.flags&1048576)!==0&&vd(e,au,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var a=e.elementType,l=a._init;if(a=l(a._payload),e.type=a,typeof a=="function")Xo(a)?(t=al(a,t),e.tag=1,e=xh(null,e,a,t,n)):(e.tag=0,e=Eo(null,e,a,t,n));else{if(a!=null){if(l=a.$$typeof,l===N){e.tag=11,e=_h(null,e,a,t,n);break t}else if(l===Y){e.tag=14,e=Eh(null,e,a,t,n);break t}}throw e=U(a)||a,Error(r(306,e,""))}}return e;case 0:return Eo(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,l=al(a,e.pendingProps),xh(t,e,a,l,n);case 3:t:{if(ge(e,e.stateNode.containerInfo),t===null)throw Error(r(387));var o=e.pendingProps;l=e.memoizedState,a=l.element,Ho(t,e),is(e,o,null,n);var f=e.memoizedState;if(o=f.cache,ca(e,ne,o),o!==l.cache&&Uo(e,[ne],n,!0),ls(),o=f.element,l.isDehydrated)if(l={element:o,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=l,e.memoizedState=l,e.flags&256){e=wh(t,e,o,n);break t}else if(o!==a){a=Fe(Error(r(424)),e),Ki(a),e=wh(t,e,o,n);break t}else for(ce=dn(e.stateNode.containerInfo.firstChild),Re=e,Ct=!0,cn=null,_n=!0,n=Md(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xi(),o===a){e=jn(t,e,n);break t}fe(t,e,o,n)}e=e.child}return e;case 26:return es(t,e),t===null?(n=Hm(e.type,null,e.pendingProps,null))?e.memoizedState=n:Ct||(n=e.type,t=e.pendingProps,a=Lu(oe.current).createElement(n),a[me]=e,a[we]=t,de(a,n,t),ie(a),e.stateNode=a):e.memoizedState=Hm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Be(e),t===null&&Ct&&(a=e.stateNode=zm(e.type,e.pendingProps,oe.current),Re=e,_n=!0,ce=dn(a.firstChild)),a=e.pendingProps.children,t!==null||Ct?fe(t,e,a,n):e.child=Wa(e,null,a,n),es(t,e),e.child;case 5:return t===null&&Ct&&((l=a=ce)&&(a=fp(a,e.type,e.pendingProps,_n),a!==null?(e.stateNode=a,Re=e,ce=dn(a.firstChild),_n=!1,l=!0):l=!1),l||Pa(e)),Be(e),l=e.type,o=e.pendingProps,f=t!==null?t.memoizedProps:null,a=o.children,vc(l,o)?a=null:f!==null&&vc(l,f)&&(e.flags|=32),e.memoizedState!==null&&(l=ao(t,e,w0,null,null,n),Ss._currentValue=l),es(t,e),fe(t,e,a,n),e.child;case 6:return t===null&&Ct&&((t=n=ce)&&(n=dp(n,e.pendingProps,_n),n!==null?(e.stateNode=n,Re=e,ce=null,t=!0):t=!1),t||Pa(e)),null;case 13:return Ah(t,e,n);case 4:return ge(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Wa(e,null,a,n):fe(t,e,a,n),e.child;case 11:return _h(t,e,e.type,e.pendingProps,n);case 7:return fe(t,e,e.pendingProps,n),e.child;case 8:return fe(t,e,e.pendingProps.children,n),e.child;case 12:return fe(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,ca(e,e.type,a.value),fe(t,e,a.children,n),e.child;case 9:return l=e.type._context,a=e.pendingProps.children,il(e),l=ye(l),a=a(l),e.flags|=1,fe(t,e,a,n),e.child;case 14:return Eh(t,e,e.type,e.pendingProps,n);case 15:return Rh(t,e,e.type,e.pendingProps,n);case 19:return Ch(t,e,n);case 22:return Th(t,e,n);case 24:return il(e),a=ye(ne),t===null?(l=eo(),l===null&&(l=jt,o=Ir(),l.pooledCache=o,o.refCount++,o!==null&&(l.pooledCacheLanes|=n),l=o),e.memoizedState={parent:a,cache:l},No(e),ca(e,ne,l)):((t.lanes&n)!==0&&(Ho(t,e),is(e,null,null,n),ls()),l=t.memoizedState,o=e.memoizedState,l.parent!==a?(l={parent:a,cache:a},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),ca(e,ne,a)):(a=o.cache,ca(e,ne,a),a!==l.cache&&Uo(e,[ne],n,!0))),fe(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}var Co=ft(null),ll=null,qn=null;function ca(t,e,n){Ot(Co,e._currentValue),e._currentValue=n}function Qn(t){t._currentValue=Co.current,_t(Co)}function zo(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Uo(t,e,n,a){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var o=l.dependencies;if(o!==null){var f=l.child;o=o.firstContext;t:for(;o!==null;){var v=o;o=l;for(var S=0;S<e.length;S++)if(v.context===e[S]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),zo(o.return,n,t),a||(f=null);break t}o=v.next}}else if(l.tag===18){if(f=l.return,f===null)throw Error(r(341));f.lanes|=n,o=f.alternate,o!==null&&(o.lanes|=n),zo(f,n,t),f=null}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===t){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}}function ns(t,e,n,a){t=null;for(var l=e,o=!1;l!==null;){if(!o){if((l.flags&524288)!==0)o=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var f=l.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var v=l.type;qe(l.pendingProps.value,f.value)||(t!==null?t.push(v):t=[v])}}else if(l===Bt.current){if(f=l.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(Ss):t=[Ss])}l=l.return}t!==null&&Uo(e,t,n,a),e.flags|=262144}function Su(t){for(t=t.firstContext;t!==null;){if(!qe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function il(t){ll=t,qn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ye(t){return Uh(ll,t)}function _u(t,e){return ll===null&&il(t),Uh(t,e)}function Uh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},qn===null){if(t===null)throw Error(r(308));qn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else qn=qn.next=e;return n}var fa=!1;function No(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ho(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 da(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ha(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Vt&2)!==0){var l=a.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),a.pending=e,e=eu(t),md(t,null,n),e}return tu(t,a,e,n),eu(t)}function as(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194176)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Ci(t,n)}}function Lo(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?l=o=f:o=o.next=f,n=n.next}while(n!==null);o===null?l=o=e:o=o.next=e}else l=o=e;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Bo=!1;function ls(){if(Bo){var t=Vl;if(t!==null)throw t}}function is(t,e,n,a){Bo=!1;var l=t.updateQueue;fa=!1;var o=l.firstBaseUpdate,f=l.lastBaseUpdate,v=l.shared.pending;if(v!==null){l.shared.pending=null;var S=v,O=S.next;S.next=null,f===null?o=O:f.next=O,f=S;var q=t.alternate;q!==null&&(q=q.updateQueue,v=q.lastBaseUpdate,v!==f&&(v===null?q.firstBaseUpdate=O:v.next=O,q.lastBaseUpdate=S))}if(o!==null){var G=l.baseState;f=0,q=O=S=null,v=o;do{var D=v.lane&-536870913,B=D!==v.lane;if(B?(At&D)===D:(a&D)===D){D!==0&&D===Gl&&(Bo=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var mt=t,bt=v;D=e;var kt=n;switch(bt.tag){case 1:if(mt=bt.payload,typeof mt=="function"){G=mt.call(kt,G,D);break t}G=mt;break t;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=bt.payload,D=typeof mt=="function"?mt.call(kt,G,D):mt,D==null)break t;G=V({},G,D);break t;case 2:fa=!0}}D=v.callback,D!==null&&(t.flags|=64,B&&(t.flags|=8192),B=l.callbacks,B===null?l.callbacks=[D]:B.push(D))}else B={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(O=q=B,S=G):q=q.next=B,f|=D;if(v=v.next,v===null){if(v=l.shared.pending,v===null)break;B=v,v=B.next,B.next=null,l.lastBaseUpdate=B,l.shared.pending=null}}while(!0);q===null&&(S=G),l.baseState=S,l.firstBaseUpdate=O,l.lastBaseUpdate=q,o===null&&(l.shared.lanes=0),ga|=f,t.lanes=f,t.memoizedState=G}}function Nh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Hh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Nh(n[t],e)}function ss(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&t)===t){a=void 0;var o=n.create,f=n.inst;a=o(),f.destroy=a}n=n.next}while(n!==l)}}catch(v){Lt(e,e.return,v)}}function ma(t,e,n){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){var f=a.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,l=e;var S=n;try{v()}catch(O){Lt(l,S,O)}}}a=a.next}while(a!==o)}}catch(O){Lt(e,e.return,O)}}function Lh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Hh(e,n)}catch(a){Lt(t,t.return,a)}}}function Bh(t,e,n){n.props=al(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Lt(t,e,a)}}function sl(t,e){try{var n=t.ref;if(n!==null){var a=t.stateNode;switch(t.tag){case 26:case 27:case 5:var l=a;break;default:l=a}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(o){Lt(t,e,o)}}function Qe(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){Lt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Lt(t,e,l)}else n.current=null}function jh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){Lt(t,t.return,l)}}function qh(t,e,n){try{var a=t.stateNode;sp(a,t.type,n,e),a[we]=e}catch(l){Lt(t,t.return,l)}}function Qh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function jo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Qh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(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 qo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Hu));else if(a!==4&&a!==27&&(t=t.child,t!==null))for(qo(t,e,n),t=t.sibling;t!==null;)qo(t,e,n),t=t.sibling}function Eu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&a!==27&&(t=t.child,t!==null))for(Eu(t,e,n),t=t.sibling;t!==null;)Eu(t,e,n),t=t.sibling}var Yn=!1,Kt=!1,Qo=!1,Yh=typeof WeakSet=="function"?WeakSet:Set,ue=null,Gh=!1;function L0(t,e){if(t=t.containerInfo,mc=Gu,t=id(t),Yr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var f=0,v=-1,S=-1,O=0,q=0,G=t,D=null;e:for(;;){for(var B;G!==n||l!==0&&G.nodeType!==3||(v=f+l),G!==o||a!==0&&G.nodeType!==3||(S=f+a),G.nodeType===3&&(f+=G.nodeValue.length),(B=G.firstChild)!==null;)D=G,G=B;for(;;){if(G===t)break e;if(D===n&&++O===l&&(v=f),D===o&&++q===a&&(S=f),(B=G.nextSibling)!==null)break;G=D,D=G.parentNode}G=B}n=v===-1||S===-1?null:{start:v,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(yc={focusedElem:t,selectionRange:n},Gu=!1,ue=e;ue!==null;)if(e=ue,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ue=t;else for(;ue!==null;){switch(e=ue,o=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,l=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var mt=al(n.type,l,n.elementType===n.type);t=a.getSnapshotBeforeUpdate(mt,o),a.__reactInternalSnapshotBeforeUpdate=t}catch(bt){Lt(n,n.return,bt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)bc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ue=t;break}ue=e.return}return mt=Gh,Gh=!1,mt}function Vh(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Vn(t,n),a&4&&ss(5,n);break;case 1:if(Vn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(v){Lt(n,n.return,v)}else{var l=al(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(v){Lt(n,n.return,v)}}a&64&&Lh(n),a&512&&sl(n,n.return);break;case 3:if(Vn(t,n),a&64&&(a=n.updateQueue,a!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Hh(a,t)}catch(v){Lt(n,n.return,v)}}break;case 26:Vn(t,n),a&512&&sl(n,n.return);break;case 27:case 5:Vn(t,n),e===null&&a&4&&jh(n),a&512&&sl(n,n.return);break;case 12:Vn(t,n);break;case 13:Vn(t,n),a&4&&Zh(t,n);break;case 22:if(l=n.memoizedState!==null||Yn,!l){e=e!==null&&e.memoizedState!==null||Kt;var o=Yn,f=Kt;Yn=l,(Kt=e)&&!f?ya(t,n,(n.subtreeFlags&8772)!==0):Vn(t,n),Yn=o,Kt=f}a&512&&(n.memoizedProps.mode==="manual"?sl(n,n.return):Qe(n,n.return));break;default:Vn(t,n)}}function Xh(t){var e=t.alternate;e!==null&&(t.alternate=null,Xh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Mr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var te=null,Ye=!1;function Gn(t,e,n){for(n=n.child;n!==null;)Kh(t,e,n),n=n.sibling}function Kh(t,e,n){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(Qa,n)}catch{}switch(n.tag){case 26:Kt||Qe(n,e),Gn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||Qe(n,e);var a=te,l=Ye;for(te=n.stateNode,Gn(t,e,n),n=n.stateNode,e=n.attributes;e.length;)n.removeAttributeNode(e[0]);Mr(n),te=a,Ye=l;break;case 5:Kt||Qe(n,e);case 6:l=te;var o=Ye;if(te=null,Gn(t,e,n),te=l,Ye=o,te!==null)if(Ye)try{t=te,a=n.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)}catch(f){Lt(n,e,f)}else try{te.removeChild(n.stateNode)}catch(f){Lt(n,e,f)}break;case 18:te!==null&&(Ye?(e=te,n=n.stateNode,e.nodeType===8?gc(e.parentNode,n):e.nodeType===1&&gc(e,n),Ts(e)):gc(te,n.stateNode));break;case 4:a=te,l=Ye,te=n.stateNode.containerInfo,Ye=!0,Gn(t,e,n),te=a,Ye=l;break;case 0:case 11:case 14:case 15:Kt||ma(2,n,e),Kt||ma(4,n,e),Gn(t,e,n);break;case 1:Kt||(Qe(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Bh(n,e,a)),Gn(t,e,n);break;case 21:Gn(t,e,n);break;case 22:Kt||Qe(n,e),Kt=(a=Kt)||n.memoizedState!==null,Gn(t,e,n),Kt=a;break;default:Gn(t,e,n)}}function Zh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ts(t)}catch(n){Lt(e,e.return,n)}}function B0(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Yh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Yh),e;default:throw Error(r(435,t.tag))}}function Yo(t,e){var n=B0(t);e.forEach(function(a){var l=$0.bind(null,t,a);n.has(a)||(n.add(a),a.then(l,l))})}function We(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],o=t,f=e,v=f;t:for(;v!==null;){switch(v.tag){case 27:case 5:te=v.stateNode,Ye=!1;break t;case 3:te=v.stateNode.containerInfo,Ye=!0;break t;case 4:te=v.stateNode.containerInfo,Ye=!0;break t}v=v.return}if(te===null)throw Error(r(160));Kh(o,f,l),te=null,Ye=!1,o=l.alternate,o!==null&&(o.return=null),l.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)kh(e,t),e=e.sibling}var fn=null;function kh(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:We(e,t),Ie(t),a&4&&(ma(3,t,t.return),ss(3,t),ma(5,t,t.return));break;case 1:We(e,t),Ie(t),a&512&&(Kt||n===null||Qe(n,n.return)),a&64&&Yn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=fn;if(We(e,t),Ie(t),a&512&&(Kt||n===null||Qe(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(a){case"title":o=l.getElementsByTagName("title")[0],(!o||o[zi]||o[me]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=l.createElement(a),l.head.insertBefore(o,l.querySelector("head > title"))),de(o,a,n),o[me]=t,ie(o),a=o;break t;case"link":var f=jm("link","href",l).get(a+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(o=f[v],o.getAttribute("href")===(n.href==null?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(v,1);break e}}o=l.createElement(a),de(o,a,n),l.head.appendChild(o);break;case"meta":if(f=jm("meta","content",l).get(a+(n.content||""))){for(v=0;v<f.length;v++)if(o=f[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(v,1);break e}}o=l.createElement(a),de(o,a,n),l.head.appendChild(o);break;default:throw Error(r(468,a))}o[me]=t,ie(o),a=o}t.stateNode=a}else qm(l,t.type,t.stateNode);else t.stateNode=Bm(l,a,t.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?qm(l,t.type,t.stateNode):Bm(l,a,t.memoizedProps)):a===null&&t.stateNode!==null&&qh(t,t.memoizedProps,n.memoizedProps)}break;case 27:if(a&4&&t.alternate===null){l=t.stateNode,o=t.memoizedProps;try{for(var S=l.firstChild;S;){var O=S.nextSibling,q=S.nodeName;S[zi]||q==="HEAD"||q==="BODY"||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&S.rel.toLowerCase()==="stylesheet"||l.removeChild(S),S=O}for(var G=t.type,D=l.attributes;D.length;)l.removeAttributeNode(D[0]);de(l,G,o),l[me]=t,l[we]=o}catch(mt){Lt(t,t.return,mt)}}case 5:if(We(e,t),Ie(t),a&512&&(Kt||n===null||Qe(n,n.return)),t.flags&32){l=t.stateNode;try{Dl(l,"")}catch(mt){Lt(t,t.return,mt)}}a&4&&t.stateNode!=null&&(l=t.memoizedProps,qh(t,l,n!==null?n.memoizedProps:l)),a&1024&&(Qo=!0);break;case 6:if(We(e,t),Ie(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(mt){Lt(t,t.return,mt)}}break;case 3:if(qu=null,l=fn,fn=Bu(e.containerInfo),We(e,t),fn=l,Ie(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ts(e.containerInfo)}catch(mt){Lt(t,t.return,mt)}Qo&&(Qo=!1,Fh(t));break;case 4:a=fn,fn=Bu(t.stateNode.containerInfo),We(e,t),Ie(t),fn=a;break;case 12:We(e,t),Ie(t);break;case 13:We(e,t),Ie(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($o=Xe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Yo(t,a)));break;case 22:if(a&512&&(Kt||n===null||Qe(n,n.return)),S=t.memoizedState!==null,O=n!==null&&n.memoizedState!==null,q=Yn,G=Kt,Yn=q||S,Kt=G||O,We(e,t),Kt=G,Yn=q,Ie(t),e=t.stateNode,e._current=t,e._visibility&=-3,e._visibility|=e._pendingVisibility&2,a&8192&&(e._visibility=S?e._visibility&-2:e._visibility|1,S&&(e=Yn||Kt,n===null||O||e||kl(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))t:for(n=null,e=t;;){if(e.tag===5||e.tag===26||e.tag===27){if(n===null){O=n=e;try{if(l=O.stateNode,S)o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{f=O.stateNode,v=O.memoizedProps.style;var B=v!=null&&v.hasOwnProperty("display")?v.display:null;f.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(mt){Lt(O,O.return,mt)}}}else if(e.tag===6){if(n===null){O=e;try{O.stateNode.nodeValue=S?"":O.memoizedProps}catch(mt){Lt(O,O.return,mt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Yo(t,n))));break;case 19:We(e,t),Ie(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Yo(t,a)));break;case 21:break;default:We(e,t),Ie(t)}}function Ie(t){var e=t.flags;if(e&2){try{if(t.tag!==27){t:{for(var n=t.return;n!==null;){if(Qh(n)){var a=n;break t}n=n.return}throw Error(r(160))}switch(a.tag){case 27:var l=a.stateNode,o=jo(t);Eu(t,o,l);break;case 5:var f=a.stateNode;a.flags&32&&(Dl(f,""),a.flags&=-33);var v=jo(t);Eu(t,v,f);break;case 3:case 4:var S=a.stateNode.containerInfo,O=jo(t);qo(t,O,S);break;default:throw Error(r(161))}}}catch(q){Lt(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Fh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Fh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Vn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Vh(t,e.alternate,e),e=e.sibling}function kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ma(4,e,e.return),kl(e);break;case 1:Qe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Bh(e,e.return,n),kl(e);break;case 26:case 27:case 5:Qe(e,e.return),kl(e);break;case 22:Qe(e,e.return),e.memoizedState===null&&kl(e);break;default:kl(e)}t=t.sibling}}function ya(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,l=t,o=e,f=o.flags;switch(o.tag){case 0:case 11:case 15:ya(l,o,n),ss(4,o);break;case 1:if(ya(l,o,n),a=o,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(O){Lt(a,a.return,O)}if(a=o,l=a.updateQueue,l!==null){var v=a.stateNode;try{var S=l.shared.hiddenCallbacks;if(S!==null)for(l.shared.hiddenCallbacks=null,l=0;l<S.length;l++)Nh(S[l],v)}catch(O){Lt(a,a.return,O)}}n&&f&64&&Lh(o),sl(o,o.return);break;case 26:case 27:case 5:ya(l,o,n),n&&a===null&&f&4&&jh(o),sl(o,o.return);break;case 12:ya(l,o,n);break;case 13:ya(l,o,n),n&&f&4&&Zh(l,o);break;case 22:o.memoizedState===null&&ya(l,o,n),sl(o,o.return);break;default:ya(l,o,n)}e=e.sibling}}function Go(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&$i(n))}function Vo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$i(t))}function va(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jh(t,e,n,a),e=e.sibling}function Jh(t,e,n,a){var l=e.flags;switch(e.tag){case 0:case 11:case 15:va(t,e,n,a),l&2048&&ss(9,e);break;case 3:va(t,e,n,a),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$i(t)));break;case 12:if(l&2048){va(t,e,n,a),t=e.stateNode;try{var o=e.memoizedProps,f=o.id,v=o.onPostCommit;typeof v=="function"&&v(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Lt(e,e.return,S)}}else va(t,e,n,a);break;case 23:break;case 22:o=e.stateNode,e.memoizedState!==null?o._visibility&4?va(t,e,n,a):us(t,e):o._visibility&4?va(t,e,n,a):(o._visibility|=4,Fl(t,e,n,a,(e.subtreeFlags&10256)!==0)),l&2048&&Go(e.alternate,e);break;case 24:va(t,e,n,a),l&2048&&Vo(e.alternate,e);break;default:va(t,e,n,a)}}function Fl(t,e,n,a,l){for(l=l&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var o=t,f=e,v=n,S=a,O=f.flags;switch(f.tag){case 0:case 11:case 15:Fl(o,f,v,S,l),ss(8,f);break;case 23:break;case 22:var q=f.stateNode;f.memoizedState!==null?q._visibility&4?Fl(o,f,v,S,l):us(o,f):(q._visibility|=4,Fl(o,f,v,S,l)),l&&O&2048&&Go(f.alternate,f);break;case 24:Fl(o,f,v,S,l),l&&O&2048&&Vo(f.alternate,f);break;default:Fl(o,f,v,S,l)}e=e.sibling}}function us(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,l=a.flags;switch(a.tag){case 22:us(n,a),l&2048&&Go(a.alternate,a);break;case 24:us(n,a),l&2048&&Vo(a.alternate,a);break;default:us(n,a)}e=e.sibling}}var rs=8192;function Jl(t){if(t.subtreeFlags&rs)for(t=t.child;t!==null;)$h(t),t=t.sibling}function $h(t){switch(t.tag){case 26:Jl(t),t.flags&rs&&t.memoizedState!==null&&Mp(fn,t.memoizedState,t.memoizedProps);break;case 5:Jl(t);break;case 3:case 4:var e=fn;fn=Bu(t.stateNode.containerInfo),Jl(t),fn=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=rs,rs=16777216,Jl(t),rs=e):Jl(t));break;default:Jl(t)}}function Ph(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function os(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ue=a,Ih(a,t)}Ph(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wh(t),t=t.sibling}function Wh(t){switch(t.tag){case 0:case 11:case 15:os(t),t.flags&2048&&ma(9,t,t.return);break;case 3:os(t);break;case 12:os(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&4&&(t.return===null||t.return.tag!==13)?(e._visibility&=-5,Ru(t)):os(t);break;default:os(t)}}function Ru(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ue=a,Ih(a,t)}Ph(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ma(8,e,e.return),Ru(e);break;case 22:n=e.stateNode,n._visibility&4&&(n._visibility&=-5,Ru(e));break;default:Ru(e)}t=t.sibling}}function Ih(t,e){for(;ue!==null;){var n=ue;switch(n.tag){case 0:case 11:case 15:ma(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:$i(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ue=a;else t:for(n=t;ue!==null;){a=ue;var l=a.sibling,o=a.return;if(Xh(a),a===n){ue=null;break t}if(l!==null){l.return=o,ue=l;break t}ue=o}}}function j0(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(t,e,n,a){return new j0(t,e,n,a)}function Xo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pa(t,e){var n=t.alternate;return n===null?(n=tn(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&31457280,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function tm(t,e){t.flags&=31457282;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Tu(t,e,n,a,l,o){var f=0;if(a=t,typeof t=="function")Xo(t)&&(f=1);else if(typeof t=="string")f=Rp(t,n,$t.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case g:return ul(n.children,l,o,e);case y:f=8,l|=24;break;case b:return t=tn(12,n,e,l|2),t.elementType=b,t.lanes=o,t;case H:return t=tn(13,n,e,l),t.elementType=H,t.lanes=o,t;case L:return t=tn(19,n,e,l),t.elementType=L,t.lanes=o,t;case I:return em(n,l,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case d:case x:f=10;break t;case E:f=9;break t;case N:f=11;break t;case Y:f=14;break t;case F:f=16,a=null;break t}f=29,n=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=tn(f,n,e,l),e.elementType=t,e.type=a,e.lanes=o,e}function ul(t,e,n,a){return t=tn(7,t,a,e),t.lanes=n,t}function em(t,e,n,a){t=tn(22,t,a,e),t.elementType=I,t.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var o=l._current;if(o===null)throw Error(r(456));if((l._pendingVisibility&2)===0){var f=ia(o,2);f!==null&&(l._pendingVisibility|=2,Te(f,o,2))}},attach:function(){var o=l._current;if(o===null)throw Error(r(456));if((l._pendingVisibility&2)!==0){var f=ia(o,2);f!==null&&(l._pendingVisibility&=-3,Te(f,o,2))}}};return t.stateNode=l,t}function Ko(t,e,n){return t=tn(6,t,null,e),t.lanes=n,t}function Zo(t,e,n){return e=tn(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xn(t){t.flags|=4}function nm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Qm(e)){if(e=Pe.current,e!==null&&((At&4194176)===At?En!==null:(At&62914560)!==At&&(At&536870912)===0||e!==En))throw ki=$r,bd;t.flags|=8192}}function Mu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Pt():536870912,t.lanes|=e,Pl|=e)}function cs(t,e){if(!Ct)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&31457280,a|=l.flags&31457280,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function q0(t,e,n){var a=e.pendingProps;switch(Fr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(e),null;case 1:return Gt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Qn(ne),Qt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Vi(e)?Xn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,cn!==null&&(tc(cn),cn=null))),Gt(e),null;case 26:return n=e.memoizedState,t===null?(Xn(e),n!==null?(Gt(e),nm(e,n)):(Gt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(Xn(e),Gt(e),nm(e,n)):(Gt(e),e.flags&=-16777217):(t.memoizedProps!==a&&Xn(e),Gt(e),e.flags&=-16777217),null;case 27:pn(e),n=oe.current;var l=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Xn(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Gt(e),null}t=$t.current,Vi(e)?pd(e):(t=zm(l,a,n),e.stateNode=t,Xn(e))}return Gt(e),null;case 5:if(pn(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Xn(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Gt(e),null}if(t=$t.current,Vi(e))pd(e);else{switch(l=Lu(oe.current),t){case 1:t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=l.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?t.multiple=!0:a.size&&(t.size=a.size);break;default:t=typeof a.is=="string"?l.createElement(n,{is:a.is}):l.createElement(n)}}t[me]=e,t[we]=a;t:for(l=e.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break t;for(;l.sibling===null;){if(l.return===null||l.return===e)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}e.stateNode=t;t:switch(de(t,n,a),n){case"button":case"input":case"select":case"textarea":t=!!a.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&Xn(e)}}return Gt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Xn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=oe.current,Vi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,l=Re,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}t[me]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Om(t.nodeValue,n)),t||Pa(e)}else t=Lu(t).createTextNode(a),t[me]=e,e.stateNode=t}return Gt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=Vi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!l)throw Error(r(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));l[me]=e}else Xi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),l=!1}else cn!==null&&(tc(cn),cn=null),l=!0;if(!l)return e.flags&256?(Ln(e),e):(Ln(e),null)}if(Ln(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=a!==null,t=t!==null&&t.memoizedState!==null,n){a=e.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool);var o=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==l&&(a.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Mu(e,e.updateQueue),Gt(e),null;case 4:return Qt(),t===null&&fc(e.stateNode.containerInfo),Gt(e),null;case 10:return Qn(e.type),Gt(e),null;case 19:if(_t(ee),l=e.memoizedState,l===null)return Gt(e),null;if(a=(e.flags&128)!==0,o=l.rendering,o===null)if(a)cs(l,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=ru(t),o!==null){for(e.flags|=128,cs(l,!1),t=o.updateQueue,e.updateQueue=t,Mu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)tm(n,t),n=n.sibling;return Ot(ee,ee.current&1|2),e.child}t=t.sibling}l.tail!==null&&Xe()>Ou&&(e.flags|=128,a=!0,cs(l,!1),e.lanes=4194304)}else{if(!a)if(t=ru(o),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Mu(e,t),cs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Ct)return Gt(e),null}else 2*Xe()-l.renderingStartTime>Ou&&n!==536870912&&(e.flags|=128,a=!0,cs(l,!1),e.lanes=4194304);l.isBackwards?(o.sibling=e.child,e.child=o):(t=l.last,t!==null?t.sibling=o:e.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Xe(),e.sibling=null,t=ee.current,Ot(ee,a?t&1|2:t&1),e):(Gt(e),null);case 22:case 23:return Ln(e),Wr(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Gt(e),e.subtreeFlags&6&&(e.flags|=8192)):Gt(e),n=e.updateQueue,n!==null&&Mu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&_t(Ia),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Qn(ne),Gt(e),null;case 25:return null}throw Error(r(156,e.tag))}function Q0(t,e){switch(Fr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qn(ne),Qt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return pn(e),null;case 13:if(Ln(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Xi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _t(ee),null;case 4:return Qt(),null;case 10:return Qn(e.type),null;case 22:case 23:return Ln(e),Wr(),t!==null&&_t(Ia),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qn(ne),null;case 25:return null;default:return null}}function am(t,e){switch(Fr(e),e.tag){case 3:Qn(ne),Qt();break;case 26:case 27:case 5:pn(e);break;case 4:Qt();break;case 13:Ln(e);break;case 19:_t(ee);break;case 10:Qn(e.type);break;case 22:case 23:Ln(e),Wr(),t!==null&&_t(Ia);break;case 24:Qn(ne)}}var Y0={getCacheForType:function(t){var e=ye(ne),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},G0=typeof WeakMap=="function"?WeakMap:Map,Vt=0,jt=null,Mt=null,At=0,qt=0,Ge=null,Kn=!1,$l=!1,ko=!1,Zn=0,Zt=0,ga=0,rl=0,Fo=0,en=0,Pl=0,fs=null,Tn=null,Jo=!1,$o=0,Ou=1/0,xu=null,ba=null,wu=!1,ol=null,ds=0,Po=0,Wo=null,hs=0,Io=null;function Ve(){if((Vt&2)!==0&&At!==0)return At&-At;if(M.T!==null){var t=Gl;return t!==0?t:uc()}return Rr()}function lm(){en===0&&(en=(At&536870912)===0||Ct?Va():536870912);var t=Pe.current;return t!==null&&(t.flags|=32),en}function Te(t,e,n){(t===jt&&qt===2||t.cancelPendingCommit!==null)&&(Wl(t,0),kn(t,At,en,!1)),bn(t,n),((Vt&2)===0||t!==jt)&&(t===jt&&((Vt&2)===0&&(rl|=n),Zt===4&&kn(t,At,en,!1)),Mn(t))}function im(t,e,n){if((Vt&6)!==0)throw Error(r(327));var a=!n&&(e&60)===0&&(e&t.expiredLanes)===0||Xt(t,e),l=a?K0(t,e):ac(t,e,!0),o=a;do{if(l===0){$l&&!a&&kn(t,e,0,!1);break}else if(l===6)kn(t,e,0,!Kn);else{if(n=t.current.alternate,o&&!V0(n)){l=ac(t,e,!1),o=!1;continue}if(l===2){if(o=e,t.errorRecoveryDisabledLanes&o)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var v=t;l=fs;var S=v.current.memoizedState.isDehydrated;if(S&&(Wl(v,f).flags|=256),f=ac(v,f,!1),f!==2){if(ko&&!S){v.errorRecoveryDisabledLanes|=o,rl|=o,l=4;break t}o=Tn,Tn=l,o!==null&&tc(o)}l=f}if(o=!1,l!==2)continue}}if(l===1){Wl(t,0),kn(t,e,0,!0);break}t:{switch(a=t,l){case 0:case 1:throw Error(r(345));case 4:if((e&4194176)===e){kn(a,e,en,!Kn);break t}break;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(r(329))}if(a.finishedWork=n,a.finishedLanes=e,(e&62914560)===e&&(o=$o+300-Xe(),10<o)){if(kn(a,e,en,!Kn),Yt(a,0)!==0)break t;a.timeoutHandle=Am(sm.bind(null,a,n,Tn,xu,Jo,e,en,rl,Pl,Kn,2,-0,0),o);break t}sm(a,n,Tn,xu,Jo,e,en,rl,Pl,Kn,0,-0,0)}}break}while(!0);Mn(t)}function tc(t){Tn===null?Tn=t:Tn.push.apply(Tn,t)}function sm(t,e,n,a,l,o,f,v,S,O,q,G,D){var B=e.subtreeFlags;if((B&8192||(B&16785408)===16785408)&&(bs={stylesheets:null,count:0,unsuspend:Tp},$h(e),e=Op(),e!==null)){t.cancelPendingCommit=e(hm.bind(null,t,n,a,l,f,v,S,1,G,D)),kn(t,o,f,!O);return}hm(t,n,a,l,f,v,S,q,G,D)}function V0(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],o=l.getSnapshot;l=l.value;try{if(!qe(o(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function kn(t,e,n,a){e&=~Fo,e&=~rl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var l=e;0<l;){var o=31-_e(l),f=1<<o;a[o]=-1,l&=~f}n!==0&&xe(t,n,e)}function Au(){return(Vt&6)===0?(ms(0),!1):!0}function ec(){if(Mt!==null){if(qt===0)var t=Mt.return;else t=Mt,qn=ll=null,so(t),Ql=null,Fi=0,t=Mt;for(;t!==null;)am(t.alternate,t),t=t.return;Mt=null}}function Wl(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,rp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ec(),jt=t,Mt=n=pa(t.current,null),At=e,qt=0,Ge=null,Kn=!1,$l=Xt(t,e),ko=!1,Pl=en=Fo=rl=ga=Zt=0,Tn=fs=null,Jo=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var l=31-_e(a),o=1<<l;e|=t[l],a&=~o}return Zn=e,Is(),n}function um(t,e){Rt=null,M.H=Rn,e===Zi?(e=Ed(),qt=3):e===bd?(e=Ed(),qt=4):qt=e===Sh?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ge=e,Mt===null&&(Zt=1,bu(t,Fe(e,t.current)))}function rm(){var t=M.H;return M.H=Rn,t===null?Rn:t}function om(){var t=M.A;return M.A=Y0,t}function nc(){Zt=4,Kn||(At&4194176)!==At&&Pe.current!==null||($l=!0),(ga&134217727)===0&&(rl&134217727)===0||jt===null||kn(jt,At,en,!1)}function ac(t,e,n){var a=Vt;Vt|=2;var l=rm(),o=om();(jt!==t||At!==e)&&(xu=null,Wl(t,e)),e=!1;var f=Zt;t:do try{if(qt!==0&&Mt!==null){var v=Mt,S=Ge;switch(qt){case 8:ec(),f=6;break t;case 3:case 2:case 6:Pe.current===null&&(e=!0);var O=qt;if(qt=0,Ge=null,Il(t,v,S,O),n&&$l){f=0;break t}break;default:O=qt,qt=0,Ge=null,Il(t,v,S,O)}}X0(),f=Zt;break}catch(q){um(t,q)}while(!0);return e&&t.shellSuspendCounter++,qn=ll=null,Vt=a,M.H=l,M.A=o,Mt===null&&(jt=null,At=0,Is()),f}function X0(){for(;Mt!==null;)cm(Mt)}function K0(t,e){var n=Vt;Vt|=2;var a=rm(),l=om();jt!==t||At!==e?(xu=null,Ou=Xe()+500,Wl(t,e)):$l=Xt(t,e);t:do try{if(qt!==0&&Mt!==null){e=Mt;var o=Ge;e:switch(qt){case 1:qt=0,Ge=null,Il(t,e,o,1);break;case 2:if(Sd(o)){qt=0,Ge=null,fm(e);break}e=function(){qt===2&&jt===t&&(qt=7),Mn(t)},o.then(e,e);break t;case 3:qt=7;break t;case 4:qt=5;break t;case 7:Sd(o)?(qt=0,Ge=null,fm(e)):(qt=0,Ge=null,Il(t,e,o,7));break;case 5:var f=null;switch(Mt.tag){case 26:f=Mt.memoizedState;case 5:case 27:var v=Mt;if(!f||Qm(f)){qt=0,Ge=null;var S=v.sibling;if(S!==null)Mt=S;else{var O=v.return;O!==null?(Mt=O,Du(O)):Mt=null}break e}}qt=0,Ge=null,Il(t,e,o,5);break;case 6:qt=0,Ge=null,Il(t,e,o,6);break;case 8:ec(),Zt=6;break t;default:throw Error(r(462))}}Z0();break}catch(q){um(t,q)}while(!0);return qn=ll=null,M.H=a,M.A=l,Vt=n,Mt!==null?0:(jt=null,At=0,Is(),Zt)}function Z0(){for(;Mt!==null&&!le();)cm(Mt)}function cm(t){var e=zh(t.alternate,t,Zn);t.memoizedProps=t.pendingProps,e===null?Du(t):Mt=e}function fm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Oh(n,e,e.pendingProps,e.type,void 0,At);break;case 11:e=Oh(n,e,e.pendingProps,e.type.render,e.ref,At);break;case 5:so(e);default:am(n,e),e=Mt=tm(e,Zn),e=zh(n,e,Zn)}t.memoizedProps=t.pendingProps,e===null?Du(t):Mt=e}function Il(t,e,n,a){qn=ll=null,so(e),Ql=null,Fi=0;var l=e.return;try{if(N0(t,l,e,n,At)){Zt=1,bu(t,Fe(n,t.current)),Mt=null;return}}catch(o){if(l!==null)throw Mt=l,o;Zt=1,bu(t,Fe(n,t.current)),Mt=null;return}e.flags&32768?(Ct||a===1?t=!0:$l||(At&536870912)!==0?t=!1:(Kn=t=!0,(a===2||a===3||a===6)&&(a=Pe.current,a!==null&&a.tag===13&&(a.flags|=16384))),dm(e,t)):Du(e)}function Du(t){var e=t;do{if((e.flags&32768)!==0){dm(e,Kn);return}t=e.return;var n=q0(e.alternate,e,Zn);if(n!==null){Mt=n;return}if(e=e.sibling,e!==null){Mt=e;return}Mt=e=t}while(e!==null);Zt===0&&(Zt=5)}function dm(t,e){do{var n=Q0(t.alternate,t);if(n!==null){n.flags&=32767,Mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Mt=t;return}Mt=t=n}while(t!==null);Zt=6,Mt=null}function hm(t,e,n,a,l,o,f,v,S,O){var q=M.T,G=k.p;try{k.p=2,M.T=null,k0(t,e,n,a,G,l,o,f,v,S,O)}finally{M.T=q,k.p=G}}function k0(t,e,n,a,l,o,f,v){do ti();while(ol!==null);if((Vt&6)!==0)throw Error(r(327));var S=t.finishedWork;if(a=t.finishedLanes,S===null)return null;if(t.finishedWork=null,t.finishedLanes=0,S===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var O=S.lanes|S.childLanes;if(O|=Kr,je(t,a,O,o,f,v),t===jt&&(Mt=jt=null,At=0),(S.subtreeFlags&10256)===0&&(S.flags&10256)===0||wu||(wu=!0,Po=O,Wo=n,P0(qa,function(){return ti(),null})),n=(S.flags&15990)!==0,(S.subtreeFlags&15990)!==0||n?(n=M.T,M.T=null,o=k.p,k.p=2,f=Vt,Vt|=4,L0(t,S),kh(S,t),p0(yc,t.containerInfo),Gu=!!mc,yc=mc=null,t.current=S,Vh(t,S.alternate,S),ea(),Vt=f,k.p=o,M.T=n):t.current=S,wu?(wu=!1,ol=t,ds=a):mm(t,O),O=t.pendingLanes,O===0&&(ba=null),Ys(S.stateNode),Mn(t),e!==null)for(l=t.onRecoverableError,S=0;S<e.length;S++)O=e[S],l(O.value,{componentStack:O.stack});return(ds&3)!==0&&ti(),O=t.pendingLanes,(a&4194218)!==0&&(O&42)!==0?t===Io?hs++:(hs=0,Io=t):hs=0,ms(0),null}function mm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,$i(e)))}function ti(){if(ol!==null){var t=ol,e=Po;Po=0;var n=Sn(ds),a=M.T,l=k.p;try{if(k.p=32>n?32:n,M.T=null,ol===null)var o=!1;else{n=Wo,Wo=null;var f=ol,v=ds;if(ol=null,ds=0,(Vt&6)!==0)throw Error(r(331));var S=Vt;if(Vt|=4,Wh(f.current),Jh(f,f.current,v,n),Vt=S,ms(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(Qa,f)}catch{}o=!0}return o}finally{k.p=l,M.T=a,mm(t,e)}}return!1}function ym(t,e,n){e=Fe(n,e),e=_o(t.stateNode,e,2),t=ha(t,e,2),t!==null&&(bn(t,2),Mn(t))}function Lt(t,e,n){if(t.tag===3)ym(t,t,n);else for(;e!==null;){if(e.tag===3){ym(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ba===null||!ba.has(a))){t=Fe(n,t),n=gh(2),a=ha(e,n,2),a!==null&&(bh(n,a,e,t),bn(a,2),Mn(a));break}}e=e.return}}function lc(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new G0;var l=new Set;a.set(e,l)}else l=a.get(e),l===void 0&&(l=new Set,a.set(e,l));l.has(n)||(ko=!0,l.add(n),t=F0.bind(null,t,e,n),e.then(t,t))}function F0(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,jt===t&&(At&n)===n&&(Zt===4||Zt===3&&(At&62914560)===At&&300>Xe()-$o?(Vt&2)===0&&Wl(t,0):Fo|=n,Pl===At&&(Pl=0)),Mn(t)}function vm(t,e){e===0&&(e=Pt()),t=ia(t,e),t!==null&&(bn(t,e),Mn(t))}function J0(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),vm(t,n)}function $0(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),vm(t,n)}function P0(t,e){return La(t,e)}var Cu=null,ei=null,ic=!1,zu=!1,sc=!1,cl=0;function Mn(t){t!==ei&&t.next===null&&(ei===null?Cu=ei=t:ei=ei.next=t),zu=!0,ic||(ic=!0,I0(W0))}function ms(t,e){if(!sc&&zu){sc=!0;do for(var n=!1,a=Cu;a!==null;){if(t!==0){var l=a.pendingLanes;if(l===0)var o=0;else{var f=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-_e(42|t)+1)-1,o&=l&~(f&~v),o=o&201326677?o&201326677|1:o?o|2:0}o!==0&&(n=!0,bm(a,o))}else o=At,o=Yt(a,a===jt?o:0),(o&3)===0||Xt(a,o)||(n=!0,bm(a,o));a=a.next}while(n);sc=!1}}function W0(){zu=ic=!1;var t=0;cl!==0&&(up()&&(t=cl),cl=0);for(var e=Xe(),n=null,a=Cu;a!==null;){var l=a.next,o=pm(a,e);o===0?(a.next=null,n===null?Cu=l:n.next=l,l===null&&(ei=n)):(n=a,(t!==0||(o&3)!==0)&&(zu=!0)),a=l}ms(t)}function pm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,l=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var f=31-_e(o),v=1<<f,S=l[f];S===-1?((v&n)===0||(v&a)!==0)&&(l[f]=Ee(v,e)):S<=e&&(t.expiredLanes|=v),o&=~v}if(e=jt,n=At,n=Yt(t,t===e?n:0),a=t.callbackNode,n===0||t===e&&qt===2||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ba(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Xt(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Ba(a),Sn(n)){case 2:case 8:n=qs;break;case 32:n=qa;break;case 268435456:n=Cn;break;default:n=qa}return a=gm.bind(null,t),n=La(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Ba(a),t.callbackPriority=2,t.callbackNode=null,2}function gm(t,e){var n=t.callbackNode;if(ti()&&t.callbackNode!==n)return null;var a=At;return a=Yt(t,t===jt?a:0),a===0?null:(im(t,a,e),pm(t,Xe()),t.callbackNode!=null&&t.callbackNode===n?gm.bind(null,t):null)}function bm(t,e){if(ti())return null;im(t,e,!0)}function I0(t){op(function(){(Vt&6)!==0?La(ja,t):t()})}function uc(){return cl===0&&(cl=Va()),cl}function Sm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zs(""+t)}function _m(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function tp(t,e,n,a,l){if(e==="submit"&&n&&n.stateNode===l){var o=Sm((l[we]||null).action),f=a.submitter;f&&(e=(e=f[we]||null)?Sm(e.formAction):f.getAttribute("formAction"),e!==null&&(o=e,f=null));var v=new $s("action","action",null,a,l);t.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(cl!==0){var S=f?_m(l,f):new FormData(l);vo(n,{pending:!0,data:S,method:l.method,action:o},null,S)}}else typeof o=="function"&&(v.preventDefault(),S=f?_m(l,f):new FormData(l),vo(n,{pending:!0,data:S,method:l.method,action:o},o,S))},currentTarget:l}]})}}for(var rc=0;rc<hd.length;rc++){var oc=hd[rc],ep=oc.toLowerCase(),np=oc[0].toUpperCase()+oc.slice(1);on(ep,"on"+np)}on(rd,"onAnimationEnd"),on(od,"onAnimationIteration"),on(cd,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(b0,"onTransitionRun"),on(S0,"onTransitionStart"),on(_0,"onTransitionCancel"),on(fd,"onTransitionEnd"),wl("onMouseEnter",["mouseout","mouseover"]),wl("onMouseLeave",["mouseout","mouseover"]),wl("onPointerEnter",["pointerout","pointerover"]),wl("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ys="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ap=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ys));function Em(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],l=a.event;a=a.listeners;t:{var o=void 0;if(e)for(var f=a.length-1;0<=f;f--){var v=a[f],S=v.instance,O=v.currentTarget;if(v=v.listener,S!==o&&l.isPropagationStopped())break t;o=v,l.currentTarget=O;try{o(l)}catch(q){gu(q)}l.currentTarget=null,o=S}else for(f=0;f<a.length;f++){if(v=a[f],S=v.instance,O=v.currentTarget,v=v.listener,S!==o&&l.isPropagationStopped())break t;o=v,l.currentTarget=O;try{o(l)}catch(q){gu(q)}l.currentTarget=null,o=S}}}}function xt(t,e){var n=e[Tr];n===void 0&&(n=e[Tr]=new Set);var a=t+"__bubble";n.has(a)||(Rm(e,t,2,!1),n.add(a))}function cc(t,e,n){var a=0;e&&(a|=4),Rm(n,t,a,e)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function fc(t){if(!t[Uu]){t[Uu]=!0,Of.forEach(function(n){n!=="selectionchange"&&(ap.has(n)||cc(n,!1,t),cc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Uu]||(e[Uu]=!0,cc("selectionchange",!1,e))}}function Rm(t,e,n,a){switch(Zm(e)){case 2:var l=Ap;break;case 8:l=Dp;break;default:l=Tc}n=l.bind(null,e,n,t),l=void 0,!zr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),a?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function dc(t,e,n,a,l){var o=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var v=a.stateNode.containerInfo;if(v===l||v.nodeType===8&&v.parentNode===l)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&(S=f.stateNode.containerInfo,S===l||S.nodeType===8&&S.parentNode===l))return;f=f.return}for(;v!==null;){if(f=Xa(v),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){a=o=f;continue t}v=v.parentNode}}a=a.return}jf(function(){var O=o,q=Dr(n),G=[];t:{var D=dd.get(t);if(D!==void 0){var B=$s,mt=t;switch(t){case"keypress":if(Fs(n)===0)break t;case"keydown":case"keyup":B=$v;break;case"focusin":mt="focus",B=Lr;break;case"focusout":mt="blur",B=Lr;break;case"beforeblur":case"afterblur":B=Lr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Iv;break;case rd:case od:case cd:B=Yv;break;case fd:B=e0;break;case"scroll":case"scrollend":B=Lv;break;case"wheel":B=a0;break;case"copy":case"cut":case"paste":B=Vv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Vf;break;case"toggle":case"beforetoggle":B=i0}var bt=(e&4)!==0,kt=!bt&&(t==="scroll"||t==="scrollend"),w=bt?D!==null?D+"Capture":null:D;bt=[];for(var T=O,A;T!==null;){var Q=T;if(A=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||A===null||w===null||(Q=Ni(T,w),Q!=null&&bt.push(vs(T,Q,A))),kt)break;T=T.return}0<bt.length&&(D=new B(D,mt,null,n,q),G.push({event:D,listeners:bt}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",D&&n!==Ar&&(mt=n.relatedTarget||n.fromElement)&&(Xa(mt)||mt[Ml]))break t;if((B||D)&&(D=q.window===q?q:(D=q.ownerDocument)?D.defaultView||D.parentWindow:window,B?(mt=n.relatedTarget||n.toElement,B=O,mt=mt?Xa(mt):null,mt!==null&&(kt=tt(mt),bt=mt.tag,mt!==kt||bt!==5&&bt!==27&&bt!==6)&&(mt=null)):(B=null,mt=O),B!==mt)){if(bt=Yf,Q="onMouseLeave",w="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(bt=Vf,Q="onPointerLeave",w="onPointerEnter",T="pointer"),kt=B==null?D:Ui(B),A=mt==null?D:Ui(mt),D=new bt(Q,T+"leave",B,n,q),D.target=kt,D.relatedTarget=A,Q=null,Xa(q)===O&&(bt=new bt(w,T+"enter",mt,n,q),bt.target=A,bt.relatedTarget=kt,Q=bt),kt=Q,B&&mt)e:{for(bt=B,w=mt,T=0,A=bt;A;A=ni(A))T++;for(A=0,Q=w;Q;Q=ni(Q))A++;for(;0<T-A;)bt=ni(bt),T--;for(;0<A-T;)w=ni(w),A--;for(;T--;){if(bt===w||w!==null&&bt===w.alternate)break e;bt=ni(bt),w=ni(w)}bt=null}else bt=null;B!==null&&Tm(G,D,B,bt,!1),mt!==null&&kt!==null&&Tm(G,kt,mt,bt,!0)}}t:{if(D=O?Ui(O):window,B=D.nodeName&&D.nodeName.toLowerCase(),B==="select"||B==="input"&&D.type==="file")var ut=Pf;else if(Jf(D))if(Wf)ut=y0;else{ut=h0;var Tt=d0}else B=D.nodeName,!B||B.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&wr(O.elementType)&&(ut=Pf):ut=m0;if(ut&&(ut=ut(t,O))){$f(G,ut,n,q);break t}Tt&&Tt(t,D,O),t==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&xr(D,"number",D.value)}switch(Tt=O?Ui(O):window,t){case"focusin":(Jf(Tt)||Tt.contentEditable==="true")&&(Nl=Tt,Gr=O,Gi=null);break;case"focusout":Gi=Gr=Nl=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":Vr=!1,sd(G,n,q);break;case"selectionchange":if(g0)break;case"keydown":case"keyup":sd(G,n,q)}var yt;if(jr)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else Ul?kf(t,n)&&(pt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(pt="onCompositionStart");pt&&(Xf&&n.locale!=="ko"&&(Ul||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&Ul&&(yt=qf()):(la=q,Ur="value"in la?la.value:la.textContent,Ul=!0)),Tt=Nu(O,pt),0<Tt.length&&(pt=new Gf(pt,t,null,n,q),G.push({event:pt,listeners:Tt}),yt?pt.data=yt:(yt=Ff(n),yt!==null&&(pt.data=yt)))),(yt=u0?r0(t,n):o0(t,n))&&(pt=Nu(O,"onBeforeInput"),0<pt.length&&(Tt=new Gf("onBeforeInput","beforeinput",null,n,q),G.push({event:Tt,listeners:pt}),Tt.data=yt)),tp(G,t,O,n,q)}Em(G,e)})}function vs(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Nu(t,e){for(var n=e+"Capture",a=[];t!==null;){var l=t,o=l.stateNode;l=l.tag,l!==5&&l!==26&&l!==27||o===null||(l=Ni(t,n),l!=null&&a.unshift(vs(t,l,o)),l=Ni(t,e),l!=null&&a.push(vs(t,l,o))),t=t.return}return a}function ni(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Tm(t,e,n,a,l){for(var o=e._reactName,f=[];n!==null&&n!==a;){var v=n,S=v.alternate,O=v.stateNode;if(v=v.tag,S!==null&&S===a)break;v!==5&&v!==26&&v!==27||O===null||(S=O,l?(O=Ni(n,o),O!=null&&f.unshift(vs(n,O,S))):l||(O=Ni(n,o),O!=null&&f.push(vs(n,O,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var lp=/\r\n?/g,ip=/\u0000|\uFFFD/g;function Mm(t){return(typeof t=="string"?t:""+t).replace(lp,`
`).replace(ip,"")}function Om(t,e){return e=Mm(e),Mm(t)===e}function Hu(){}function Ht(t,e,n,a,l,o){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Dl(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Dl(t,""+a);break;case"className":Vs(t,"class",a);break;case"tabIndex":Vs(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vs(t,n,a);break;case"style":Lf(t,a,o);break;case"data":if(e!=="object"){Vs(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Zs(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&Ht(t,e,"name",l.name,l,null),Ht(t,e,"formEncType",l.formEncType,l,null),Ht(t,e,"formMethod",l.formMethod,l,null),Ht(t,e,"formTarget",l.formTarget,l,null)):(Ht(t,e,"encType",l.encType,l,null),Ht(t,e,"method",l.method,l,null),Ht(t,e,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Zs(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Hu);break;case"onScroll":a!=null&&xt("scroll",t);break;case"onScrollEnd":a!=null&&xt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Zs(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":xt("beforetoggle",t),xt("toggle",t),Gs(t,"popover",a);break;case"xlinkActuate":Un(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Un(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Un(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Un(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Un(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Un(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Un(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Gs(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Nv.get(n)||n,Gs(t,n,a))}}function hc(t,e,n,a,l,o){switch(n){case"style":Lf(t,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Dl(t,a):(typeof a=="number"||typeof a=="bigint")&&Dl(t,""+a);break;case"onScroll":a!=null&&xt("scroll",t);break;case"onScrollEnd":a!=null&&xt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),o=t[we]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,l),typeof a=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,l);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Gs(t,n,a)}}}function de(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xt("error",t),xt("load",t);var a=!1,l=!1,o;for(o in n)if(n.hasOwnProperty(o)){var f=n[o];if(f!=null)switch(o){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ht(t,e,o,f,n,null)}}l&&Ht(t,e,"srcSet",n.srcSet,n,null),a&&Ht(t,e,"src",n.src,n,null);return;case"input":xt("invalid",t);var v=o=f=l=null,S=null,O=null;for(a in n)if(n.hasOwnProperty(a)){var q=n[a];if(q!=null)switch(a){case"name":l=q;break;case"type":f=q;break;case"checked":S=q;break;case"defaultChecked":O=q;break;case"value":o=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,e));break;default:Ht(t,e,a,q,n,null)}}zf(t,o,v,S,O,f,l,!1),Xs(t);return;case"select":xt("invalid",t),a=f=o=null;for(l in n)if(n.hasOwnProperty(l)&&(v=n[l],v!=null))switch(l){case"value":o=v;break;case"defaultValue":f=v;break;case"multiple":a=v;default:Ht(t,e,l,v,n,null)}e=o,n=f,t.multiple=!!a,e!=null?Al(t,!!a,e,!1):n!=null&&Al(t,!!a,n,!0);return;case"textarea":xt("invalid",t),o=l=a=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":a=v;break;case"defaultValue":l=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:Ht(t,e,f,v,n,null)}Nf(t,a,l,o),Xs(t);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(a=n[S],a!=null))switch(S){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ht(t,e,S,a,n,null)}return;case"dialog":xt("cancel",t),xt("close",t);break;case"iframe":case"object":xt("load",t);break;case"video":case"audio":for(a=0;a<ys.length;a++)xt(ys[a],t);break;case"image":xt("error",t),xt("load",t);break;case"details":xt("toggle",t);break;case"embed":case"source":case"link":xt("error",t),xt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(a=n[O],a!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ht(t,e,O,a,n,null)}return;default:if(wr(e)){for(q in n)n.hasOwnProperty(q)&&(a=n[q],a!==void 0&&hc(t,e,q,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ht(t,e,v,a,n,null))}function sp(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,o=null,f=null,v=null,S=null,O=null,q=null;for(B in n){var G=n[B];if(n.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":S=G;default:a.hasOwnProperty(B)||Ht(t,e,B,null,a,G)}}for(var D in a){var B=a[D];if(G=n[D],a.hasOwnProperty(D)&&(B!=null||G!=null))switch(D){case"type":o=B;break;case"name":l=B;break;case"checked":O=B;break;case"defaultChecked":q=B;break;case"value":f=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:B!==G&&Ht(t,e,D,B,a,G)}}Or(t,f,v,S,O,q,o,l);return;case"select":B=f=v=D=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":B=S;default:a.hasOwnProperty(o)||Ht(t,e,o,null,a,S)}for(l in a)if(o=a[l],S=n[l],a.hasOwnProperty(l)&&(o!=null||S!=null))switch(l){case"value":D=o;break;case"defaultValue":v=o;break;case"multiple":f=o;default:o!==S&&Ht(t,e,l,o,a,S)}e=v,n=f,a=B,D!=null?Al(t,!!n,D,!1):!!a!=!!n&&(e!=null?Al(t,!!n,e,!0):Al(t,!!n,n?[]:"",!1));return;case"textarea":B=D=null;for(v in n)if(l=n[v],n.hasOwnProperty(v)&&l!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ht(t,e,v,null,a,l)}for(f in a)if(l=a[f],o=n[f],a.hasOwnProperty(f)&&(l!=null||o!=null))switch(f){case"value":D=l;break;case"defaultValue":B=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(r(91));break;default:l!==o&&Ht(t,e,f,l,a,o)}Uf(t,D,B);return;case"option":for(var mt in n)if(D=n[mt],n.hasOwnProperty(mt)&&D!=null&&!a.hasOwnProperty(mt))switch(mt){case"selected":t.selected=!1;break;default:Ht(t,e,mt,null,a,D)}for(S in a)if(D=a[S],B=n[S],a.hasOwnProperty(S)&&D!==B&&(D!=null||B!=null))switch(S){case"selected":t.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Ht(t,e,S,D,a,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var bt in n)D=n[bt],n.hasOwnProperty(bt)&&D!=null&&!a.hasOwnProperty(bt)&&Ht(t,e,bt,null,a,D);for(O in a)if(D=a[O],B=n[O],a.hasOwnProperty(O)&&D!==B&&(D!=null||B!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:Ht(t,e,O,D,a,B)}return;default:if(wr(e)){for(var kt in n)D=n[kt],n.hasOwnProperty(kt)&&D!==void 0&&!a.hasOwnProperty(kt)&&hc(t,e,kt,void 0,a,D);for(q in a)D=a[q],B=n[q],!a.hasOwnProperty(q)||D===B||D===void 0&&B===void 0||hc(t,e,q,D,a,B);return}}for(var w in n)D=n[w],n.hasOwnProperty(w)&&D!=null&&!a.hasOwnProperty(w)&&Ht(t,e,w,null,a,D);for(G in a)D=a[G],B=n[G],!a.hasOwnProperty(G)||D===B||D==null&&B==null||Ht(t,e,G,D,a,B)}var mc=null,yc=null;function Lu(t){return t.nodeType===9?t:t.ownerDocument}function xm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function vc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var pc=null;function up(){var t=window.event;return t&&t.type==="popstate"?t===pc?!1:(pc=t,!0):(pc=null,!1)}var Am=typeof setTimeout=="function"?setTimeout:void 0,rp=typeof clearTimeout=="function"?clearTimeout:void 0,Dm=typeof Promise=="function"?Promise:void 0,op=typeof queueMicrotask=="function"?queueMicrotask:typeof Dm<"u"?function(t){return Dm.resolve(null).then(t).catch(cp)}:Am;function cp(t){setTimeout(function(){throw t})}function gc(t,e){var n=e,a=0;do{var l=n.nextSibling;if(t.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(a===0){t.removeChild(l),Ts(e);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=l}while(n);Ts(e)}function bc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bc(n),Mr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function fp(t,e,n,a){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[zi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==l.rel||t.getAttribute("href")!==(l.href==null?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=dn(t.nextSibling),t===null)break}return null}function dp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=dn(t.nextSibling),t===null))return null;return t}function dn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}function Cm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function zm(t,e,n){switch(e=Lu(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}var nn=new Map,Um=new Set;function Bu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var Fn=k.d;k.d={f:hp,r:mp,D:yp,C:vp,L:pp,m:gp,X:Sp,S:bp,M:_p};function hp(){var t=Fn.f(),e=Au();return t||e}function mp(t){var e=Ol(t);e!==null&&e.tag===5&&e.type==="form"?sh(e):Fn.r(t)}var ai=typeof document>"u"?null:document;function Nm(t,e,n){var a=ai;if(a&&typeof e=="string"&&e){var l=Ze(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Um.has(l)||(Um.add(l),t={rel:t,crossOrigin:n,href:e},a.querySelector(l)===null&&(e=a.createElement("link"),de(e,"link",t),ie(e),a.head.appendChild(e)))}}function yp(t){Fn.D(t),Nm("dns-prefetch",t,null)}function vp(t,e){Fn.C(t,e),Nm("preconnect",t,e)}function pp(t,e,n){Fn.L(t,e,n);var a=ai;if(a&&t&&e){var l='link[rel="preload"][as="'+Ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Ze(n.imageSizes)+'"]')):l+='[href="'+Ze(t)+'"]';var o=l;switch(e){case"style":o=li(t);break;case"script":o=ii(t)}nn.has(o)||(t=V({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),nn.set(o,t),a.querySelector(l)!==null||e==="style"&&a.querySelector(ps(o))||e==="script"&&a.querySelector(gs(o))||(e=a.createElement("link"),de(e,"link",t),ie(e),a.head.appendChild(e)))}}function gp(t,e){Fn.m(t,e);var n=ai;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+Ze(a)+'"][href="'+Ze(t)+'"]',o=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ii(t)}if(!nn.has(o)&&(t=V({rel:"modulepreload",href:t},e),nn.set(o,t),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gs(o)))return}a=n.createElement("link"),de(a,"link",t),ie(a),n.head.appendChild(a)}}}function bp(t,e,n){Fn.S(t,e,n);var a=ai;if(a&&t){var l=xl(a).hoistableStyles,o=li(t);e=e||"default";var f=l.get(o);if(!f){var v={loading:0,preload:null};if(f=a.querySelector(ps(o)))v.loading=5;else{t=V({rel:"stylesheet",href:t,"data-precedence":e},n),(n=nn.get(o))&&Sc(t,n);var S=f=a.createElement("link");ie(S),de(S,"link",t),S._p=new Promise(function(O,q){S.onload=O,S.onerror=q}),S.addEventListener("load",function(){v.loading|=1}),S.addEventListener("error",function(){v.loading|=2}),v.loading|=4,ju(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:v},l.set(o,f)}}}function Sp(t,e){Fn.X(t,e);var n=ai;if(n&&t){var a=xl(n).hoistableScripts,l=ii(t),o=a.get(l);o||(o=n.querySelector(gs(l)),o||(t=V({src:t,async:!0},e),(e=nn.get(l))&&_c(t,e),o=n.createElement("script"),ie(o),de(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(l,o))}}function _p(t,e){Fn.M(t,e);var n=ai;if(n&&t){var a=xl(n).hoistableScripts,l=ii(t),o=a.get(l);o||(o=n.querySelector(gs(l)),o||(t=V({src:t,async:!0,type:"module"},e),(e=nn.get(l))&&_c(t,e),o=n.createElement("script"),ie(o),de(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(l,o))}}function Hm(t,e,n,a){var l=(l=oe.current)?Bu(l):null;if(!l)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=li(n.href),n=xl(l).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=li(n.href);var o=xl(l).hoistableStyles,f=o.get(t);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,f),(o=l.querySelector(ps(t)))&&!o._p&&(f.instance=o,f.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),o||Ep(l,t,n,f.state))),e&&a===null)throw Error(r(528,""));return f}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ii(n),n=xl(l).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function li(t){return'href="'+Ze(t)+'"'}function ps(t){return'link[rel="stylesheet"]['+t+"]"}function Lm(t){return V({},t,{"data-precedence":t.precedence,precedence:null})}function Ep(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),de(e,"link",n),ie(e),t.head.appendChild(e))}function ii(t){return'[src="'+Ze(t)+'"]'}function gs(t){return"script[async]"+t}function Bm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ze(n.href)+'"]');if(a)return e.instance=a,ie(a),a;var l=V({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ie(a),de(a,"style",l),ju(a,n.precedence,t),e.instance=a;case"stylesheet":l=li(n.href);var o=t.querySelector(ps(l));if(o)return e.state.loading|=4,e.instance=o,ie(o),o;a=Lm(n),(l=nn.get(l))&&Sc(a,l),o=(t.ownerDocument||t).createElement("link"),ie(o);var f=o;return f._p=new Promise(function(v,S){f.onload=v,f.onerror=S}),de(o,"link",a),e.state.loading|=4,ju(o,n.precedence,t),e.instance=o;case"script":return o=ii(n.src),(l=t.querySelector(gs(o)))?(e.instance=l,ie(l),l):(a=n,(l=nn.get(o))&&(a=V({},n),_c(a,l)),t=t.ownerDocument||t,l=t.createElement("script"),ie(l),de(l,"link",a),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ju(a,n.precedence,t));return e.instance}function ju(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,o=l,f=0;f<a.length;f++){var v=a[f];if(v.dataset.precedence===e)o=v;else if(o!==l)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Sc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _c(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var qu=null;function jm(t,e,n){if(qu===null){var a=new Map,l=qu=new Map;l.set(n,a)}else l=qu,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var o=n[l];if(!(o[zi]||o[me]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var f=o.getAttribute(e)||"";f=t+f;var v=a.get(f);v?v.push(o):a.set(f,[o])}}return a}function qm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Rp(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 Qm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var bs=null;function Tp(){}function Mp(t,e,n){if(bs===null)throw Error(r(475));var a=bs;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var l=li(n.href),o=t.querySelector(ps(l));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(a.count++,a=Qu.bind(a),t.then(a,a)),e.state.loading|=4,e.instance=o,ie(o);return}o=t.ownerDocument||t,n=Lm(n),(l=nn.get(l))&&Sc(n,l),o=o.createElement("link"),ie(o);var f=o;f._p=new Promise(function(v,S){f.onload=v,f.onerror=S}),de(o,"link",n),e.instance=o}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(a.count++,e=Qu.bind(a),t.addEventListener("load",e),t.addEventListener("error",e))}}function Op(){if(bs===null)throw Error(r(475));var t=bs;return t.stylesheets&&t.count===0&&Ec(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Ec(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function Qu(){if(this.count--,this.count===0){if(this.stylesheets)Ec(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Yu=null;function Ec(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Yu=new Map,e.forEach(xp,t),Yu=null,Qu.call(t))}function xp(t,e){if(!(e.state.loading&4)){var n=Yu.get(t);if(n)var a=n.get(null);else{n=new Map,Yu.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<l.length;o++){var f=l[o];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}l=e.instance,f=l.getAttribute("data-precedence"),o=n.get(f)||a,o===a&&n.set(null,l),n.set(f,l),this.count++,a=Qu.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),o?o.parentNode.insertBefore(l,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var Ss={$$typeof:x,Provider:null,Consumer:null,_currentValue:ht,_currentValue2:ht,_threadCount:0};function wp(t,e,n,a,l,o,f,v){this.tag=1,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=he(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=he(0),this.hiddenUpdates=he(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=o,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Ym(t,e,n,a,l,o,f,v,S,O,q,G){return t=new wp(t,e,n,f,v,S,O,G),e=1,o===!0&&(e|=24),o=tn(3,null,null,e),t.current=o,o.stateNode=t,e=Ir(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:e},No(o),t}function Gm(t){return t?(t=Bl,t):Bl}function Vm(t,e,n,a,l,o){l=Gm(l),a.context===null?a.context=l:a.pendingContext=l,a=da(e),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=ha(t,a,e),n!==null&&(Te(n,t,e),as(n,t,e))}function Xm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Rc(t,e){Xm(t,e),(t=t.alternate)&&Xm(t,e)}function Km(t){if(t.tag===13){var e=ia(t,67108864);e!==null&&Te(e,t,67108864),Rc(t,67108864)}}var Gu=!0;function Ap(t,e,n,a){var l=M.T;M.T=null;var o=k.p;try{k.p=2,Tc(t,e,n,a)}finally{k.p=o,M.T=l}}function Dp(t,e,n,a){var l=M.T;M.T=null;var o=k.p;try{k.p=8,Tc(t,e,n,a)}finally{k.p=o,M.T=l}}function Tc(t,e,n,a){if(Gu){var l=Mc(a);if(l===null)dc(t,e,a,Vu,n),km(t,a);else if(zp(l,t,e,n,a))a.stopPropagation();else if(km(t,a),e&4&&-1<Cp.indexOf(t)){for(;l!==null;){var o=Ol(l);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var f=gt(o.pendingLanes);if(f!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var S=1<<31-_e(f);v.entanglements[1]|=S,f&=~S}Mn(o),(Vt&6)===0&&(Ou=Xe()+500,ms(0))}}break;case 13:v=ia(o,2),v!==null&&Te(v,o,2),Au(),Rc(o,2)}if(o=Mc(a),o===null&&dc(t,e,a,Vu,n),o===l)break;l=o}l!==null&&a.stopPropagation()}else dc(t,e,a,null,n)}}function Mc(t){return t=Dr(t),Oc(t)}var Vu=null;function Oc(t){if(Vu=null,t=Xa(t),t!==null){var e=tt(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=dt(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Vu=t,null}function Zm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_r()){case ja:return 2;case qs:return 8;case qa:case Ai:return 32;case Cn:return 268435456;default:return 32}default:return 32}}var xc=!1,Sa=null,_a=null,Ea=null,_s=new Map,Es=new Map,Ra=[],Cp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function km(t,e){switch(t){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":_s.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Es.delete(e.pointerId)}}function Rs(t,e,n,a,l,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[l]},e!==null&&(e=Ol(e),e!==null&&Km(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function zp(t,e,n,a,l){switch(e){case"focusin":return Sa=Rs(Sa,t,e,n,a,l),!0;case"dragenter":return _a=Rs(_a,t,e,n,a,l),!0;case"mouseover":return Ea=Rs(Ea,t,e,n,a,l),!0;case"pointerover":var o=l.pointerId;return _s.set(o,Rs(_s.get(o)||null,t,e,n,a,l)),!0;case"gotpointercapture":return o=l.pointerId,Es.set(o,Rs(Es.get(o)||null,t,e,n,a,l)),!0}return!1}function Fm(t){var e=Xa(t.target);if(e!==null){var n=tt(e);if(n!==null){if(e=n.tag,e===13){if(e=dt(n),e!==null){t.blockedOn=e,Ov(t.priority,function(){if(n.tag===13){var a=Ve(),l=ia(n,a);l!==null&&Te(l,n,a),Rc(n,a)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Mc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Ar=a,n.target.dispatchEvent(a),Ar=null}else return e=Ol(n),e!==null&&Km(e),t.blockedOn=n,!1;e.shift()}return!0}function Jm(t,e,n){Xu(t)&&n.delete(e)}function Up(){xc=!1,Sa!==null&&Xu(Sa)&&(Sa=null),_a!==null&&Xu(_a)&&(_a=null),Ea!==null&&Xu(Ea)&&(Ea=null),_s.forEach(Jm),Es.forEach(Jm)}function Ku(t,e){t.blockedOn===e&&(t.blockedOn=null,xc||(xc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Up)))}var Zu=null;function $m(t){Zu!==t&&(Zu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Zu===t&&(Zu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],l=t[e+2];if(typeof a!="function"){if(Oc(a||n)===null)continue;break}var o=Ol(n);o!==null&&(t.splice(e,3),e-=3,vo(o,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function Ts(t){function e(S){return Ku(S,t)}Sa!==null&&Ku(Sa,t),_a!==null&&Ku(_a,t),Ea!==null&&Ku(Ea,t),_s.forEach(e),Es.forEach(e);for(var n=0;n<Ra.length;n++){var a=Ra[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Ra.length&&(n=Ra[0],n.blockedOn===null);)Fm(n),n.blockedOn===null&&Ra.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],o=n[a+1],f=l[we]||null;if(typeof o=="function")f||$m(n);else if(f){var v=null;if(o&&o.hasAttribute("formAction")){if(l=o,f=o[we]||null)v=f.formAction;else if(Oc(l)!==null)continue}else v=f.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),$m(n)}}}function wc(t){this._internalRoot=t}ku.prototype.render=wc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,a=Ve();Vm(n,a,t,e,null,null)},ku.prototype.unmount=wc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;t.tag===0&&ti(),Vm(t.current,2,null,t,null,null),Au(),e[Ml]=null}};function ku(t){this._internalRoot=t}ku.prototype.unstable_scheduleHydration=function(t){if(t){var e=Rr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ra.length&&e!==0&&e<Ra[n].priority;n++);Ra.splice(n,0,t),n===0&&Fm(t)}};var Pm=u.version;if(Pm!=="19.0.0")throw Error(r(527,Pm,"19.0.0"));k.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=z(e),t=t!==null?Z(t):null,t=t===null?null:t.stateNode,t};var Np={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:M,findFiberByHostInstance:Xa,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fu.isDisabled&&Fu.supportsFiber)try{Qa=Fu.inject(Np),Se=Fu}catch{}}return Os.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,a="",l=mh,o=yh,f=vh,v=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(v=e.unstable_transitionCallbacks)),e=Ym(t,1,!1,null,null,n,a,l,o,f,v,null),t[Ml]=e.current,fc(t.nodeType===8?t.parentNode:t),new wc(e)},Os.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var a=!1,l="",o=mh,f=yh,v=vh,S=null,O=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks),n.formState!==void 0&&(O=n.formState)),e=Ym(t,1,!0,e,n??null,a,l,o,f,v,S,O),e.context=Gm(null),n=e.current,a=Ve(),l=da(a),l.callback=null,ha(n,l,a),e.current.lanes=a,bn(e,a),Mn(e),t[Ml]=e.current,fc(t),new ku(e)},Os.version="19.0.0",Os}var ry;function Xp(){if(ry)return zc.exports;ry=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),zc.exports=Vp(),zc.exports}var Kp=Xp(),Zp="Invariant failed";function vn(s,u){if(!s)throw new Error(Zp)}function oi(s){const u=s.resolvedLocation,i=s.location,r=(u==null?void 0:u.pathname)!==i.pathname,c=(u==null?void 0:u.href)!==i.href,h=(u==null?void 0:u.hash)!==i.hash;return{fromLocation:u,toLocation:i,pathChanged:r,hrefChanged:c,hashChanged:h}}function ui(s){return s[s.length-1]}function kp(s){return typeof s=="function"}function xs(s,u){return kp(s)?s(u):s}function Fc(s,u){return u.reduce((i,r)=>(i[r]=s[r],i),{})}function an(s,u){if(s===u)return s;const i=u,r=cy(s)&&cy(i);if(r||ir(s)&&ir(i)){const c=r?s:Object.keys(s),h=c.length,m=r?i:Object.keys(i),p=m.length,g=r?[]:{};let y=0;for(let b=0;b<p;b++){const d=r?b:m[b];(!r&&c.includes(d)||r)&&s[d]===void 0&&i[d]===void 0?(g[d]=void 0,y++):(g[d]=an(s[d],i[d]),g[d]===s[d]&&s[d]!==void 0&&y++)}return h===p&&y===h?s:g}return i}function ir(s){if(!oy(s))return!1;const u=s.constructor;if(typeof u>"u")return!0;const i=u.prototype;return!(!oy(i)||!i.hasOwnProperty("isPrototypeOf"))}function oy(s){return Object.prototype.toString.call(s)==="[object Object]"}function cy(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function fy(s,u){let i=Object.keys(s);return u&&(i=i.filter(r=>s[r]!==void 0)),i}function Ds(s,u,i){if(s===u)return!0;if(typeof s!=typeof u)return!1;if(ir(s)&&ir(u)){const r=(i==null?void 0:i.ignoreUndefined)??!0,c=fy(s,r),h=fy(u,r);return!(i!=null&&i.partial)&&c.length!==h.length?!1:h.every(m=>Ds(s[m],u[m],i))}return Array.isArray(s)&&Array.isArray(u)?s.length!==u.length?!1:!s.some((r,c)=>!Ds(r,u[c],i)):!1}function si(s){let u,i;const r=new Promise((c,h)=>{u=c,i=h});return r.status="pending",r.resolve=c=>{r.status="resolved",r.value=c,u(c),s==null||s(c)},r.reject=c=>{r.status="rejected",i(c)},r}function Fp(s){return/%[0-9A-Fa-f]{2}/.test(s)}function Wn(s){return yr(s.filter(u=>u!==void 0).join("/"))}function yr(s){return s.replace(/\/{2,}/g,"/")}function yf(s){return s==="/"?s:s.replace(/^\/{1,}/,"")}function dl(s){return s==="/"?s:s.replace(/\/{1,}$/,"")}function Jp(s){return dl(yf(s))}function dy(s,u){return s!=null&&s.endsWith("/")&&s!=="/"&&s!==`${u}/`?s.slice(0,-1):s}function k1(s,u,i){return dy(s,i)===dy(u,i)}function $p({basepath:s,base:u,to:i,trailingSlash:r="never",caseSensitive:c}){var h,m;u=sr(s,u,c),i=sr(s,i,c);let p=Oi(u);const g=Oi(i);p.length>1&&((h=ui(p))==null?void 0:h.value)==="/"&&p.pop(),g.forEach((b,d)=>{b.value==="/"?d?d===g.length-1&&p.push(b):p=[b]:b.value===".."?p.pop():b.value==="."||p.push(b)}),p.length>1&&(((m=ui(p))==null?void 0:m.value)==="/"?r==="never"&&p.pop():r==="always"&&p.push({type:"pathname",value:"/"}));const y=Wn([s,...p.map(b=>b.value)]);return yr(y)}function Oi(s){if(!s)return[];s=yr(s);const u=[];if(s.slice(0,1)==="/"&&(s=s.substring(1),u.push({type:"pathname",value:"/"})),!s)return u;const i=s.split("/").filter(Boolean);return u.push(...i.map(r=>r==="$"||r==="*"?{type:"wildcard",value:r}:r.charAt(0)==="$"?{type:"param",value:r}:{type:"pathname",value:r.includes("%25")?r.split("%25").map(c=>decodeURI(c)).join("%25"):decodeURI(r)})),s.slice(-1)==="/"&&(s=s.substring(1),u.push({type:"pathname",value:"/"})),u}function $u({path:s,params:u,leaveWildcards:i,leaveParams:r,decodeCharMap:c}){const h=Oi(s);function m(y){const b=u[y],d=typeof b=="string";return["*","_splat"].includes(y)?d?encodeURI(b):b:d?Pp(b,c):b}const p={},g=Wn(h.map(y=>{if(y.type==="wildcard"){p._splat=u._splat;const b=m("_splat");return i?`${y.value}${b??""}`:b}if(y.type==="param"){const b=y.value.substring(1);if(p[b]=u[b],r){const d=m(y.value);return`${y.value}${d??""}`}return m(b)??"undefined"}return y.value}));return{usedParams:p,interpolatedPath:g}}function Pp(s,u){let i=encodeURIComponent(s);if(u)for(const[r,c]of u)i=i.replaceAll(r,c);return i}function Pu(s,u,i){const r=Wp(s,u,i);if(!(i.to&&!r))return r??{}}function sr(s,u,i=!1){const r=i?s:s.toLowerCase(),c=i?u:u.toLowerCase();switch(!0){case r==="/":return u;case c===r:return"";case u.length<s.length:return u;case c[r.length]!=="/":return u;case c.startsWith(r):return u.slice(s.length);default:return u}}function Wp(s,u,i){if(s!=="/"&&!u.startsWith(s))return;u=sr(s,u,i.caseSensitive);const r=sr(s,`${i.to??"$"}`,i.caseSensitive),c=Oi(u),h=Oi(r);u.startsWith("/")||c.unshift({type:"pathname",value:"/"}),r.startsWith("/")||h.unshift({type:"pathname",value:"/"});const m={};return(()=>{for(let g=0;g<Math.max(c.length,h.length);g++){const y=c[g],b=h[g],d=g>=c.length-1,E=g>=h.length-1;if(b){if(b.type==="wildcard"){const x=decodeURI(Wn(c.slice(g).map(N=>N.value)));return m["*"]=x,m._splat=x,!0}if(b.type==="pathname"){if(b.value==="/"&&!(y!=null&&y.value))return!0;if(y){if(i.caseSensitive){if(b.value!==y.value)return!1}else if(b.value.toLowerCase()!==y.value.toLowerCase())return!1}}if(!y)return!1;if(b.type==="param"){if(y.value==="/")return!1;y.value.charAt(0)!=="$"&&(m[b.value.substring(1)]=decodeURIComponent(y.value))}}if(!d&&E)return m["**"]=Wn(c.slice(g+1).map(x=>x.value)),!!i.fuzzy&&(b==null?void 0:b.value)!=="/"}return!0})()?m:void 0}function Ip(s,u){let i,r,c,h="";for(i in s)if((c=s[i])!==void 0)if(Array.isArray(c))for(r=0;r<c.length;r++)h&&(h+="&"),h+=encodeURIComponent(i)+"="+encodeURIComponent(c[r]);else h&&(h+="&"),h+=encodeURIComponent(i)+"="+encodeURIComponent(c);return""+h}function hy(s){if(!s)return"";const u=Fp(s)?decodeURIComponent(s):decodeURIComponent(encodeURIComponent(s));return u==="false"?!1:u==="true"?!0:+u*0===0&&+u+""===u?+u:u}function tg(s,u){let i,r;const c={},h=s.split("&");for(;i=h.shift();){const m=i.indexOf("=");if(m!==-1){r=i.slice(0,m),r=decodeURIComponent(r);const p=i.slice(m+1);c[r]!==void 0?c[r]=[].concat(c[r],hy(p)):c[r]=hy(p)}else r=i,r=decodeURIComponent(r),c[r]=""}return c}const Ne="__root__",eg=ag(JSON.parse),ng=lg(JSON.stringify,JSON.parse);function ag(s){return u=>{u.substring(0,1)==="?"&&(u=u.substring(1));const i=tg(u);for(const r in i){const c=i[r];if(typeof c=="string")try{i[r]=s(c)}catch{}}return i}}function lg(s,u){function i(r){if(typeof r=="object"&&r!==null)try{return s(r)}catch{}else if(typeof r=="string"&&typeof u=="function")try{return u(r),s(r)}catch{}return r}return r=>{r={...r},Object.keys(r).forEach(h=>{const m=r[h];typeof m>"u"||m===void 0?delete r[h]:r[h]=i(m)});const c=Ip(r).toString();return c?`?${c}`:""}}function fl(s){return!!(s!=null&&s.isRedirect)}function Lc(s){return!!(s!=null&&s.isRedirect)&&s.href}function sn(s){return!!(s!=null&&s.isNotFound)}const Ha="__TSR_index",my="popstate",yy="beforeunload";function Ky(s){let u=s.getLocation();const i=new Set,r=m=>{u=s.getLocation(),i.forEach(p=>p({location:u,action:m}))},c=m=>{s.notifyOnIndexChange??!0?r(m):u=s.getLocation()},h=async({task:m,navigateOpts:p,...g})=>{var y,b;if((p==null?void 0:p.ignoreBlocker)??!1){m();return}const E=((y=s.getBlockers)==null?void 0:y.call(s))??[],x=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&E.length&&x)for(const N of E){const H=zs(g.path,g.state);if(await N.blockerFn({currentLocation:u,nextLocation:H,action:g.type})){(b=s.onBlocked)==null||b.call(s);return}}m()};return{get location(){return u},get length(){return s.getLength()},subscribers:i,subscribe:m=>(i.add(m),()=>{i.delete(m)}),push:(m,p,g)=>{const y=u.state[Ha];p=Jc(y+1,p),h({task:()=>{s.pushState(m,p),r({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:m,state:p})},replace:(m,p,g)=>{const y=u.state[Ha];p=Jc(y,p),h({task:()=>{s.replaceState(m,p),r({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:m,state:p})},go:(m,p)=>{h({task:()=>{s.go(m),c({type:"GO",index:m})},navigateOpts:p,type:"GO"})},back:m=>{h({task:()=>{s.back((m==null?void 0:m.ignoreBlocker)??!1),c({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{h({task:()=>{s.forward((m==null?void 0:m.ignoreBlocker)??!1),c({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>u.state[Ha]!==0,createHref:m=>s.createHref(m),block:m=>{var p;if(!s.setBlockers)return()=>{};const g=((p=s.getBlockers)==null?void 0:p.call(s))??[];return s.setBlockers([...g,m]),()=>{var y,b;const d=((y=s.getBlockers)==null?void 0:y.call(s))??[];(b=s.setBlockers)==null||b.call(s,d.filter(E=>E!==m))}},flush:()=>{var m;return(m=s.flush)==null?void 0:m.call(s)},destroy:()=>{var m;return(m=s.destroy)==null?void 0:m.call(s)},notify:r}}function Jc(s,u){return u||(u={}),{...u,key:vf(),[Ha]:s}}function ig(s){var u;const i=typeof document<"u"?window:void 0,r=i.history.pushState,c=i.history.replaceState;let h=[];const m=()=>h,p=M=>h=M,g=M=>M,y=()=>zs(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state);(u=i.history.state)!=null&&u.key||i.history.replaceState({[Ha]:0,key:vf()},"");let b=y(),d,E=!1,x=!1,N=!1,H=!1;const L=()=>b;let Y,F;const I=()=>{Y&&(U._ignoreSubscribers=!0,(Y.isPush?i.history.pushState:i.history.replaceState)(Y.state,"",Y.href),U._ignoreSubscribers=!1,Y=void 0,F=void 0,d=void 0)},ot=(M,V,W)=>{const J=g(V);F||(d=b),b=zs(V,W),Y={href:J,state:W,isPush:(Y==null?void 0:Y.isPush)||M==="push"},F||(F=Promise.resolve().then(()=>I()))},j=M=>{b=y(),U.notify({type:M})},$=async()=>{if(x){x=!1;return}const M=y(),V=M.state[Ha]-b.state[Ha],W=V===1,J=V===-1,at=!W&&!J||E;E=!1;const ct=at?"GO":J?"BACK":"FORWARD",st=at?{type:"GO",index:V}:{type:J?"BACK":"FORWARD"};if(N)N=!1;else{const C=m();if(typeof document<"u"&&C.length){for(const K of C)if(await K.blockerFn({currentLocation:b,nextLocation:M,action:ct})){x=!0,i.history.go(1),U.notify(st);return}}}b=y(),U.notify(st)},lt=M=>{if(H){H=!1;return}let V=!1;const W=m();if(typeof document<"u"&&W.length)for(const J of W){const at=J.enableBeforeUnload??!0;if(at===!0){V=!0;break}if(typeof at=="function"&&at()===!0){V=!0;break}}if(V)return M.preventDefault(),M.returnValue=""},U=Ky({getLocation:L,getLength:()=>i.history.length,pushState:(M,V)=>ot("push",M,V),replaceState:(M,V)=>ot("replace",M,V),back:M=>(M&&(N=!0),H=!0,i.history.back()),forward:M=>{M&&(N=!0),H=!0,i.history.forward()},go:M=>{E=!0,i.history.go(M)},createHref:M=>g(M),flush:I,destroy:()=>{i.history.pushState=r,i.history.replaceState=c,i.removeEventListener(yy,lt,{capture:!0}),i.removeEventListener(my,$)},onBlocked:()=>{d&&b!==d&&(b=d)},getBlockers:m,setBlockers:p,notifyOnIndexChange:!1});return i.addEventListener(yy,lt,{capture:!0}),i.addEventListener(my,$),i.history.pushState=function(...M){const V=r.apply(i.history,M);return U._ignoreSubscribers||j("PUSH"),V},i.history.replaceState=function(...M){const V=c.apply(i.history,M);return U._ignoreSubscribers||j("REPLACE"),V},U}function sg(s={initialEntries:["/"]}){const u=s.initialEntries;let i=s.initialIndex?Math.min(Math.max(s.initialIndex,0),u.length-1):u.length-1;const r=u.map((h,m)=>Jc(m,void 0));return Ky({getLocation:()=>zs(u[i],r[i]),getLength:()=>u.length,pushState:(h,m)=>{i<u.length-1&&(u.splice(i+1),r.splice(i+1)),r.push(m),u.push(h),i=Math.max(u.length-1,0)},replaceState:(h,m)=>{r[i]=m,u[i]=h},back:()=>{i=Math.max(i-1,0)},forward:()=>{i=Math.min(i+1,u.length-1)},go:h=>{i=Math.min(Math.max(i+h,0),u.length-1)},createHref:h=>h})}function zs(s,u){const i=s.indexOf("#"),r=s.indexOf("?");return{href:s,pathname:s.substring(0,i>0?r>0?Math.min(i,r):i:r>0?r:s.length),hash:i>-1?s.substring(i):"",search:r>-1?s.slice(r,i===-1?void 0:i):"",state:u||{[Ha]:0,key:vf()}}}function vf(){return(Math.random()+1).toString(36).substring(7)}function pf(s){const u=s.errorComponent??vr;return it.jsx(ug,{getResetKey:s.getResetKey,onCatch:s.onCatch,children:({error:i,reset:r})=>i?rt.createElement(u,{error:i,reset:r}):s.children})}class ug extends rt.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(u){return{resetKey:u.getResetKey()}}static getDerivedStateFromError(u){return{error:u}}reset(){this.setState({error:null})}componentDidUpdate(u,i){i.error&&i.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(u,i){this.props.onCatch&&this.props.onCatch(u,i)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function vr({error:s}){const[u,i]=rt.useState(!1);return it.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[it.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[it.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),it.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(r=>!r),children:u?"Hide Error":"Show Error"})]}),it.jsx("div",{style:{height:".25rem"}}),u?it.jsx("div",{children:it.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:s.message?it.jsx("code",{children:s.message}):null})}):null]})}var Bc={exports:{}},jc={},qc={exports:{}},Qc={};/**
 * @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 vy;function rg(){if(vy)return Qc;vy=1;var s=js();function u(d,E){return d===E&&(d!==0||1/d===1/E)||d!==d&&E!==E}var i=typeof Object.is=="function"?Object.is:u,r=s.useState,c=s.useEffect,h=s.useLayoutEffect,m=s.useDebugValue;function p(d,E){var x=E(),N=r({inst:{value:x,getSnapshot:E}}),H=N[0].inst,L=N[1];return h(function(){H.value=x,H.getSnapshot=E,g(H)&&L({inst:H})},[d,x,E]),c(function(){return g(H)&&L({inst:H}),d(function(){g(H)&&L({inst:H})})},[d]),m(x),x}function g(d){var E=d.getSnapshot;d=d.value;try{var x=E();return!i(d,x)}catch{return!0}}function y(d,E){return E()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:p;return Qc.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,Qc}var py;function og(){return py||(py=1,qc.exports=rg()),qc.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 gy;function cg(){if(gy)return jc;gy=1;var s=js(),u=og();function i(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var r=typeof Object.is=="function"?Object.is:i,c=u.useSyncExternalStore,h=s.useRef,m=s.useEffect,p=s.useMemo,g=s.useDebugValue;return jc.useSyncExternalStoreWithSelector=function(y,b,d,E,x){var N=h(null);if(N.current===null){var H={hasValue:!1,value:null};N.current=H}else H=N.current;N=p(function(){function Y($){if(!F){if(F=!0,I=$,$=E($),x!==void 0&&H.hasValue){var lt=H.value;if(x(lt,$))return ot=lt}return ot=$}if(lt=ot,r(I,$))return lt;var U=E($);return x!==void 0&&x(lt,U)?(I=$,lt):(I=$,ot=U)}var F=!1,I,ot,j=d===void 0?null:d;return[function(){return Y(b())},j===null?void 0:function(){return Y(j())}]},[b,d,E,x]);var L=c(y,N[0],N[1]);return m(function(){H.hasValue=!0,H.value=L},[L]),g(L),L},jc}var by;function fg(){return by||(by=1,Bc.exports=cg()),Bc.exports}var dg=fg();const ci=new WeakMap,nr=new WeakMap,ur={current:[]};let Yc=!1,Cs=0;const ws=new Set,Wu=new Map;function Zy(s){const u=Array.from(s).sort((i,r)=>i instanceof fi&&i.options.deps.includes(r)?1:r instanceof fi&&r.options.deps.includes(i)?-1:0);for(const i of u){if(ur.current.includes(i))continue;ur.current.push(i),i.recompute();const r=nr.get(i);if(r)for(const c of r){const h=ci.get(c);h&&Zy(h)}}}function hg(s){s.listeners.forEach(u=>u({prevVal:s.prevState,currentVal:s.state}))}function mg(s){s.listeners.forEach(u=>u({prevVal:s.prevState,currentVal:s.state}))}function ky(s){if(Cs>0&&!Wu.has(s)&&Wu.set(s,s.prevState),ws.add(s),!(Cs>0)&&!Yc)try{for(Yc=!0;ws.size>0;){const u=Array.from(ws);ws.clear();for(const i of u){const r=Wu.get(i)??i.prevState;i.prevState=r,hg(i)}for(const i of u){const r=ci.get(i);r&&(ur.current.push(i),Zy(r))}for(const i of u){const r=ci.get(i);if(r)for(const c of r)mg(c)}}}finally{Yc=!1,ur.current=[],Wu.clear()}}function Gc(s){Cs++;try{s()}finally{if(Cs--,Cs===0){const u=Array.from(ws)[0];u&&ky(u)}}}class $c{constructor(u,i){this.listeners=new Set,this.subscribe=r=>{var c,h;this.listeners.add(r);const m=(h=(c=this.options)==null?void 0:c.onSubscribe)==null?void 0:h.call(c,r,this);return()=>{this.listeners.delete(r),m==null||m()}},this.setState=r=>{var c,h,m;this.prevState=this.state,this.state=(c=this.options)!=null&&c.updateFn?this.options.updateFn(this.prevState)(r):r(this.prevState),(m=(h=this.options)==null?void 0:h.onUpdate)==null||m.call(h),ky(this)},this.prevState=u,this.state=u,this.options=i}}class fi{constructor(u){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const i=[],r=[];for(const c of this.options.deps)i.push(c.prevState),r.push(c.state);return this.lastSeenDepValues=r,{prevDepVals:i,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=>{var i,r;this.prevState=this.state;const{prevDepVals:c,currDepVals:h,prevVal:m}=this.getDepVals();this.state=this.options.fn({prevDepVals:c,currDepVals:h,prevVal:m}),(r=(i=this.options).onUpdate)==null||r.call(i)},this.checkIfRecalculationNeededDeeply=()=>{for(const h of this.options.deps)h instanceof fi&&h.checkIfRecalculationNeededDeeply();let i=!1;const r=this.lastSeenDepValues,{currDepVals:c}=this.getDepVals();for(let h=0;h<c.length;h++)if(c[h]!==r[h]){i=!0;break}i&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const i of this._subscriptions)i()}),this.subscribe=i=>{var r,c;this.listeners.add(i);const h=(c=(r=this.options).onSubscribe)==null?void 0:c.call(r,i,this);return()=>{this.listeners.delete(i),h==null||h()}},this.options=u,this.state=u.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(u=this.options.deps){for(const i of u)if(i instanceof fi)i.registerOnGraph(),this.registerOnGraph(i.options.deps);else if(i instanceof $c){let r=ci.get(i);r||(r=new Set,ci.set(i,r)),r.add(this);let c=nr.get(this);c||(c=new Set,nr.set(this,c)),c.add(i)}}unregisterFromGraph(u=this.options.deps){for(const i of u)if(i instanceof fi)this.unregisterFromGraph(i.options.deps);else if(i instanceof $c){const r=ci.get(i);r&&r.delete(this);const c=nr.get(this);c&&c.delete(i)}}}function yg(s,u=i=>i){return dg.useSyncExternalStoreWithSelector(s.subscribe,()=>s.state,()=>s.state,u,vg)}function vg(s,u){if(Object.is(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;if(s instanceof Map&&u instanceof Map){if(s.size!==u.size)return!1;for(const[r,c]of s)if(!u.has(r)||!Object.is(c,u.get(r)))return!1;return!0}if(s instanceof Set&&u instanceof Set){if(s.size!==u.size)return!1;for(const r of s)if(!u.has(r))return!1;return!0}const i=Object.keys(s);if(i.length!==Object.keys(u).length)return!1;for(let r=0;r<i.length;r++)if(!Object.prototype.hasOwnProperty.call(u,i[r])||!Object.is(s[i[r]],u[i[r]]))return!1;return!0}const Vc=rt.createContext(null);function Fy(){return typeof document>"u"?Vc:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Vc,Vc)}function ta(s){const u=rt.useContext(Fy());return s==null||s.warn,u}function He(s){const u=ta({warn:(s==null?void 0:s.router)===void 0}),i=(s==null?void 0:s.router)||u,r=rt.useRef(void 0);return yg(i.__store,c=>{if(s!=null&&s.select){if(s.structuralSharing??i.options.defaultStructuralSharing){const h=an(r.current,s.select(c));return r.current=h,h}return s.select(c)}return c})}const pr=rt.createContext(void 0),pg=rt.createContext(void 0);function xi(s){const u=rt.useContext(s.from?pg:pr);return He({select:r=>{const c=r.matches.find(h=>s.from?s.from===h.routeId:h.id===u);if(vn(!((s.shouldThrow??!0)&&!c),`Could not find ${s.from?`an active match from "${s.from}"`:"a nearest match!"}`),c!==void 0)return s.select?s.select(c):c},structuralSharing:s.structuralSharing})}function gg(s){return xi({from:s.from,strict:s.strict,structuralSharing:s.structuralSharing,select:u=>s.select?s.select(u.loaderData):u.loaderData})}function bg(s){const{select:u,...i}=s;return xi({...i,select:r=>u?u(r.loaderDeps):r.loaderDeps})}function Sg(s){return xi({from:s.from,strict:s.strict,shouldThrow:s.shouldThrow,structuralSharing:s.structuralSharing,select:u=>s.select?s.select(u.params):u.params})}function _g(s){return xi({from:s.from,strict:s.strict,shouldThrow:s.shouldThrow,structuralSharing:s.structuralSharing,select:u=>s.select?s.select(u.search):u.search})}function Eg(s){const{navigate:u}=ta();return rt.useCallback(i=>u({from:s==null?void 0:s.from,...i}),[s==null?void 0:s.from,u])}let Jy=class{constructor(u){this.init=i=>{var r,c;this.originalIndex=i.originalIndex;const h=this.options,m=!(h!=null&&h.path)&&!(h!=null&&h.id);this.parentRoute=(c=(r=this.options).getParentRoute)==null?void 0:c.call(r),m?this._path=Ne:vn(this.parentRoute);let p=m?Ne:h.path;p&&p!=="/"&&(p=yf(p));const g=(h==null?void 0:h.id)||p;let y=m?Ne:Wn([this.parentRoute.id===Ne?"":this.parentRoute.id,g]);p===Ne&&(p="/"),y!==Ne&&(y=Wn(["/",y]));const b=y===Ne?"/":Wn([this.parentRoute.fullPath,p]);this._path=p,this._id=y,this._fullPath=b,this._to=b,this._ssr=(h==null?void 0:h.ssr)??i.defaultSsr??!0},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.useMatch=i=>xi({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>xi({...i,from:this.id,select:r=>i!=null&&i.select?i.select(r.context):r.context}),this.useSearch=i=>_g({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>Sg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>bg({...i,from:this.id}),this.useLoaderData=i=>gg({...i,from:this.id}),this.useNavigate=()=>Eg({from:this.fullPath}),this.options=u||{},this.isRoot=!(u!=null&&u.getParentRoute),vn(!(u!=null&&u.id&&(u!=null&&u.path))),this.$$typeof=Symbol.for("react.memo")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}};function Rg(s){return new Jy(s)}class Tg extends Jy{constructor(u){super(u)}}function Mg(s){return new Tg(s)}function gr(s){return new Og(s,{silent:!0}).createRoute}class Og{constructor(u,i){this.path=u,this.createRoute=r=>{this.silent;const c=Rg(r);return c.isRoot=!1,c},this.silent=i==null?void 0:i.silent}}function xg(s){const u=He({select:i=>`not-found-${i.location.pathname}-${i.status}`});return it.jsx(pf,{getResetKey:()=>u,onCatch:(i,r)=>{var c;if(sn(i))(c=s.onCatch)==null||c.call(s,i,r);else throw i},errorComponent:({error:i})=>{var r;if(sn(i))return(r=s.fallback)==null?void 0:r.call(s,i);throw i},children:s.children})}function wg(){return it.jsx("p",{children:"Not Found"})}function ar(s){return it.jsx(it.Fragment,{children:s.children})}function $y(s,u,i){return u.options.notFoundComponent?it.jsx(u.options.notFoundComponent,{data:i}):s.options.defaultNotFoundComponent?it.jsx(s.options.defaultNotFoundComponent,{data:i}):it.jsx(wg,{})}var Xc,Sy;function Ag(){if(Sy)return Xc;Sy=1;const s={},u=s.hasOwnProperty,i=(U,M)=>{for(const V in U)u.call(U,V)&&M(V,U[V])},r=(U,M)=>(M&&i(M,(V,W)=>{U[V]=W}),U),c=(U,M)=>{const V=U.length;let W=-1;for(;++W<V;)M(U[W])},h=U=>"\\u"+("0000"+U).slice(-4),m=(U,M)=>{let V=U.toString(16);return M?V:V.toUpperCase()},p=s.toString,g=Array.isArray,y=U=>typeof Buffer=="function"&&Buffer.isBuffer(U),b=U=>p.call(U)=="[object Object]",d=U=>typeof U=="string"||p.call(U)=="[object String]",E=U=>typeof U=="number"||p.call(U)=="[object Number]",x=U=>typeof U=="bigint",N=U=>typeof U=="function",H=U=>p.call(U)=="[object Map]",L=U=>p.call(U)=="[object Set]",Y={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"},F=/[\\\b\f\n\r\t]/,I=/[0-9]/,ot=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,j=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,$=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,lt=(U,M)=>{const V=()=>{K=C,++M.indentLevel,C=M.indent.repeat(M.indentLevel)},W={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"	",indentLevel:0,__inline1__:!1,__inline2__:!1},J=M&&M.json;J&&(W.quotes="double",W.wrap=!0),M=r(W,M),M.quotes!="single"&&M.quotes!="double"&&M.quotes!="backtick"&&(M.quotes="single");const at=M.quotes=="double"?'"':M.quotes=="backtick"?"`":"'",ct=M.compact,st=M.lowercaseHex;let C=M.indent.repeat(M.indentLevel),K="";const tt=M.__inline1__,dt=M.__inline2__,_=ct?"":`
`;let z,Z=!0;const X=M.numbers=="binary",k=M.numbers=="octal",ht=M.numbers=="decimal",P=M.numbers=="hexadecimal";if(J&&U&&N(U.toJSON)&&(U=U.toJSON()),!d(U)){if(H(U))return U.size==0?"new Map()":(ct||(M.__inline1__=!0,M.__inline2__=!1),"new Map("+lt(Array.from(U),M)+")");if(L(U))return U.size==0?"new Set()":"new Set("+lt(Array.from(U),M)+")";if(y(U))return U.length==0?"Buffer.from([])":"Buffer.from("+lt(Array.from(U),M)+")";if(g(U))return z=[],M.wrap=!0,tt&&(M.__inline1__=!1,M.__inline2__=!0),dt||V(),c(U,ft=>{Z=!1,dt&&(M.__inline2__=!1),z.push((ct||dt?"":C)+lt(ft,M))}),Z?"[]":dt?"["+z.join(", ")+"]":"["+_+z.join(","+_)+_+(ct?"":K)+"]";if(E(U)||x(U)){if(J)return JSON.stringify(Number(U));let ft;if(ht)ft=String(U);else if(P){let _t=U.toString(16);st||(_t=_t.toUpperCase()),ft="0x"+_t}else X?ft="0b"+U.toString(2):k&&(ft="0o"+U.toString(8));return x(U)?ft+"n":ft}else return x(U)?J?JSON.stringify(Number(U)):U+"n":b(U)?(z=[],M.wrap=!0,V(),i(U,(ft,_t)=>{Z=!1,z.push((ct?"":C)+lt(ft,M)+":"+(ct?"":" ")+lt(_t,M))}),Z?"{}":"{"+_+z.join(","+_)+_+(ct?"":K)+"}"):J?JSON.stringify(U)||"null":String(U)}const Dt=M.escapeEverything?j:$;return z=U.replace(Dt,(ft,_t,Ot,$t,Le,oe)=>{if(_t){if(M.minimal)return _t;const ge=_t.charCodeAt(0),Qt=_t.charCodeAt(1);if(M.es6){const Be=(ge-55296)*1024+Qt-56320+65536;return"\\u{"+m(Be,st)+"}"}return h(m(ge,st))+h(m(Qt,st))}if(Ot)return h(m(Ot.charCodeAt(0),st));if(ft=="\0"&&!J&&!I.test(oe.charAt(Le+1)))return"\\0";if($t)return $t==at||M.escapeEverything?"\\"+$t:$t;if(F.test(ft))return Y[ft];if(M.minimal&&!ot.test(ft))return ft;const Bt=m(ft.charCodeAt(0),st);return J||Bt.length>2?h(Bt):"\\x"+("00"+Bt).slice(-2)}),at=="`"&&(z=z.replace(/\$\{/g,"\\${")),M.isScriptContext&&(z=z.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,J?"\\u003C!--":"\\x3C!--")),M.wrap&&(z=at+z+at),z};return lt.version="3.0.2",Xc=lt,Xc}Ag();function Dg({children:s,log:u}){return typeof document<"u"?null:it.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[s,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
`)}})}const rr="tsr-scroll-restoration-v1_3";let Py=!1;try{Py=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}const Cg=(s,u)=>{let i;return(...r)=>{i||(i=setTimeout(()=>{s(...r),i=null},u))}},ri=Py?{state:JSON.parse(window.sessionStorage.getItem(rr)||"null")||{},set:u=>(ri.state=xs(u,ri.state)||ri.state,window.sessionStorage.setItem(rr,JSON.stringify(ri.state)))}:void 0,Pc=s=>s.state.key||s.href;function zg(s){const u=[];let i;for(;i=s.parentNode;)u.unshift(`${s.tagName}:nth-child(${[].indexOf.call(i.children,s)+1})`),s=i;return`${u.join(" > ")}`.toLowerCase()}let or=!1;function Wy(s,u,i,r,c){var h;let m;try{m=JSON.parse(sessionStorage.getItem(s)||"{}")}catch(y){console.error(y);return}const p=u||((h=window.history.state)==null?void 0:h.key),g=m[p];or=!0,(()=>{if(r&&g){for(const b in g){const d=g[b];if(b==="window")window.scrollTo({top:d.scrollY,left:d.scrollX,behavior:i});else if(b){const E=document.querySelector(b);E&&(E.scrollLeft=d.scrollX,E.scrollTop=d.scrollY)}}return}const y=window.location.hash.split("#")[1];if(y){const b=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(b){const d=document.getElementById(y);d&&d.scrollIntoView(b)}return}["window",...(c==null?void 0:c.filter(b=>b!=="window"))??[]].forEach(b=>{const d=b==="window"?window:document.querySelector(b);d&&d.scrollTo({top:0,left:0,behavior:i})})})(),or=!1}function Ug(s,u){if((s.options.scrollRestoration??!1)&&(s.isScrollRestoring=!0),typeof document>"u"||s.isScrollRestorationSetup)return;s.isScrollRestorationSetup=!0,or=!1;const r=s.options.getScrollRestorationKey||Pc;window.history.scrollRestoration="manual";const c=h=>{if(or||!s.isScrollRestoring)return;let m="";if(h.target===document||h.target===window)m="window";else{const g=h.target.getAttribute("data-scroll-restoration-id");g?m=`[data-scroll-restoration-id="${g}"]`:m=zg(h.target)}const p=r(s.state.location);ri.set(g=>{const y=g[p]=g[p]||{},b=y[m]=y[m]||{};if(m==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(m){const d=document.querySelector(m);d&&(b.scrollX=d.scrollLeft||0,b.scrollY=d.scrollTop||0)}return g})};typeof document<"u"&&document.addEventListener("scroll",Cg(c,100),!0),s.subscribe("onRendered",h=>{const m=r(h.toLocation);if(!s.resetNextScroll){s.resetNextScroll=!0;return}Wy(rr,m,s.options.scrollRestorationBehavior||void 0,s.isScrollRestoring||void 0,s.options.scrollToTopSelectors||void 0),s.isScrollRestoring&&ri.set(p=>(p[m]=p[m]||{},p))})}function Ng(){const s=ta(),i=(s.options.getScrollRestorationKey||Pc)(s.latestLocation),r=i!==Pc(s.latestLocation)?i:null;return!s.isScrollRestoring||!s.isServer?null:it.jsx(Dg,{children:`(${Wy.toString()})(${JSON.stringify(rr)},${JSON.stringify(r)}, undefined, true)`,log:!1})}const Iy=rt.memo(function({matchId:u}){var i,r;const c=ta(),h=He({select:Y=>{var F;return(F=Y.matches.find(I=>I.id===u))==null?void 0:F.routeId}});vn(h);const m=c.routesById[h],p=m.options.pendingComponent??c.options.defaultPendingComponent,g=p?it.jsx(p,{}):null,y=m.options.errorComponent??c.options.defaultErrorComponent,b=m.options.onCatch??c.options.defaultOnCatch,d=m.isRoot?m.options.notFoundComponent??((i=c.options.notFoundRoute)==null?void 0:i.options.component):m.options.notFoundComponent,E=(!m.isRoot||m.options.wrapInSuspense)&&(m.options.wrapInSuspense??p??((r=m.options.errorComponent)==null?void 0:r.preload))?rt.Suspense:ar,x=y?pf:ar,N=d?xg:ar,H=He({select:Y=>Y.loadedAt}),L=He({select:Y=>{var F;const I=Y.matches.findIndex(ot=>ot.id===u);return(F=Y.matches[I-1])==null?void 0:F.routeId}});return it.jsxs(it.Fragment,{children:[it.jsx(pr.Provider,{value:u,children:it.jsx(E,{fallback:g,children:it.jsx(x,{getResetKey:()=>H,errorComponent:y||vr,onCatch:(Y,F)=>{if(sn(Y))throw Y;b==null||b(Y,F)},children:it.jsx(N,{fallback:Y=>{if(!d||Y.routeId&&Y.routeId!==h||!Y.routeId&&!m.isRoot)throw Y;return rt.createElement(d,Y)},children:it.jsx(Lg,{matchId:u})})})})}),L===Ne&&c.options.scrollRestoration?it.jsxs(it.Fragment,{children:[it.jsx(Hg,{}),it.jsx(Ng,{})]}):null]})});function Hg(){var s;const u=ta(),i=rt.useRef(void 0);return it.jsx("script",{suppressHydrationWarning:!0,ref:r=>{var c;r&&(i.current===void 0||i.current.href!==((c=u.state.resolvedLocation)==null?void 0:c.href))&&(u.emit({type:"onRendered",...oi(u.state)}),i.current=u.state.resolvedLocation)}},(s=u.state.resolvedLocation)==null?void 0:s.state.key)}const Lg=rt.memo(function({matchId:u}){var i,r,c;const h=ta(),{match:m,key:p,routeId:g}=He({select:E=>{const x=E.matches.findIndex(I=>I.id===u),N=E.matches[x],H=N.routeId,L=h.routesById[H].options.remountDeps??h.options.defaultRemountDeps,Y=L==null?void 0:L({routeId:H,loaderDeps:N.loaderDeps,params:N._strictParams,search:N._strictSearch});return{key:Y?JSON.stringify(Y):void 0,routeId:H,match:Fc(N,["id","status","error"])}},structuralSharing:!0}),y=h.routesById[g],b=rt.useMemo(()=>{const E=y.options.component??h.options.defaultComponent;return E?it.jsx(E,{},p):it.jsx(gf,{})},[p,y.options.component,h.options.defaultComponent]),d=(y.options.errorComponent??h.options.defaultErrorComponent)||vr;if(m.status==="notFound")return vn(sn(m.error)),$y(h,y,m.error);if(m.status==="redirected")throw vn(fl(m.error)),(i=h.getMatch(m.id))==null?void 0:i.loadPromise;if(m.status==="error"){if(h.isServer)return it.jsx(d,{error:m.error,reset:void 0,info:{componentStack:""}});throw m.error}if(m.status==="pending"){const E=y.options.pendingMinMs??h.options.defaultPendingMinMs;if(E&&!((r=h.getMatch(m.id))!=null&&r.minPendingPromise)&&!h.isServer){const x=si();Promise.resolve().then(()=>{h.updateMatch(m.id,N=>({...N,minPendingPromise:x}))}),setTimeout(()=>{x.resolve(),h.updateMatch(m.id,N=>({...N,minPendingPromise:void 0}))},E)}throw(c=h.getMatch(m.id))==null?void 0:c.loadPromise}return b}),gf=rt.memo(function(){const u=ta(),i=rt.useContext(pr),r=He({select:y=>{var b;return(b=y.matches.find(d=>d.id===i))==null?void 0:b.routeId}}),c=u.routesById[r],h=He({select:y=>{const d=y.matches.find(E=>E.id===i);return vn(d),d.globalNotFound}}),m=He({select:y=>{var b;const d=y.matches,E=d.findIndex(x=>x.id===i);return(b=d[E+1])==null?void 0:b.id}});if(h)return $y(u,c,void 0);if(!m)return null;const p=it.jsx(Iy,{matchId:m}),g=u.options.defaultPendingComponent?it.jsx(u.options.defaultPendingComponent,{}):null;return i===Ne?it.jsx(rt.Suspense,{fallback:g,children:p}):p});function Bg(s){return typeof(s==null?void 0:s.message)!="string"?!1:s.message.startsWith("Failed to fetch dynamically imported module")||s.message.startsWith("error loading dynamically imported module")||s.message.startsWith("Importing a module script failed")}function jg({children:s,fallback:u=null}){return Qg()?it.jsx(it.Fragment,{children:s}):it.jsx(it.Fragment,{children:u})}function qg(){return()=>{}}function Qg(){return rt.useSyncExternalStore(qg,()=>!0,()=>!1)}function _l(s,u,i){let r,c,h,m;const p=()=>typeof document>"u"&&(i==null?void 0:i())===!1?(c=()=>null,Promise.resolve()):(r||(r=s().then(y=>{r=void 0,c=y[u??"default"]}).catch(y=>{if(h=y,Bg(h)&&h instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const b=`tanstack_router_reload:${h.message}`;sessionStorage.getItem(b)||(sessionStorage.setItem(b,"1"),m=!0)}})),r),g=function(b){if(m)throw window.location.reload(),new Promise(()=>{});if(h)throw h;if(!c)throw p();return(i==null?void 0:i())===!1?it.jsx(jg,{fallback:it.jsx(gf,{}),children:rt.createElement(c,b)}):rt.createElement(c,b)};return g.preload=p,g}var Yg=Xy();const Gg=Vy(Yg),Iu=typeof window<"u"?rt.useLayoutEffect:rt.useEffect;function Kc(s){const u=rt.useRef({value:s,prev:null}),i=u.current.value;return s!==i&&(u.current={value:s,prev:i}),u.current.prev}function J1(s,u,i={},r={}){const c=rt.useRef(typeof IntersectionObserver=="function"),h=rt.useRef(null);return rt.useEffect(()=>{if(!(!s.current||!c.current||r.disabled))return h.current=new IntersectionObserver(([m])=>{u(m)},i),h.current.observe(s.current),()=>{var m;(m=h.current)==null||m.disconnect()}},[u,i,r.disabled,s]),h.current}function $1(s){const u=rt.useRef(null);return rt.useImperativeHandle(s,()=>u.current,[]),u}function Vg(){const s=ta(),u=rt.useRef({router:s,mounted:!1}),i=He({select:({isLoading:d})=>d}),[r,c]=rt.useState(!1),h=He({select:d=>d.matches.some(E=>E.status==="pending"),structuralSharing:!0}),m=Kc(i),p=i||r||h,g=Kc(p),y=i||h,b=Kc(y);return s.isServer||(s.startTransition=d=>{c(!0),rt.startTransition(()=>{d(),c(!1)})}),rt.useEffect(()=>{const d=s.history.subscribe(s.load),E=s.buildLocation({to:s.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return dl(s.latestLocation.href)!==dl(E.href)&&s.commitLocation({...E,replace:!0}),()=>{d()}},[s,s.history]),Iu(()=>{if(typeof window<"u"&&s.clientSsr||u.current.router===s&&u.current.mounted)return;u.current={router:s,mounted:!0},(async()=>{try{await s.load()}catch(E){console.error(E)}})()},[s]),Iu(()=>{m&&!i&&s.emit({type:"onLoad",...oi(s.state)})},[m,s,i]),Iu(()=>{b&&!y&&s.emit({type:"onBeforeRouteMount",...oi(s.state)})},[y,b,s]),Iu(()=>{g&&!p&&(s.emit({type:"onResolved",...oi(s.state)}),s.__store.setState(d=>({...d,status:"idle",resolvedLocation:d.location})))},[p,g,s]),null}function Xg(){const s=ta(),u=s.options.defaultPendingComponent?it.jsx(s.options.defaultPendingComponent,{}):null,i=s.isServer||typeof document<"u"&&s.clientSsr?ar:rt.Suspense,r=it.jsxs(i,{fallback:u,children:[it.jsx(Vg,{}),it.jsx(Kg,{})]});return s.options.InnerWrap?it.jsx(s.options.InnerWrap,{children:r}):r}function Kg(){const s=He({select:i=>{var r;return(r=i.matches[0])==null?void 0:r.id}}),u=He({select:i=>i.loadedAt});return it.jsx(pr.Provider,{value:s,children:it.jsx(pf,{getResetKey:()=>u,errorComponent:vr,onCatch:i=>{i.message||i.toString()},children:s?it.jsx(Iy,{matchId:s}):null})})}function P1(s){return He({select:u=>{const i=u.matches;return s!=null&&s.select?s.select(i):i},structuralSharing:s==null?void 0:s.structuralSharing})}const tv=["component","errorComponent","pendingComponent","notFoundComponent"];function Zg(s){var u;for(const i of tv)if((u=s.options[i])!=null&&u.preload)return!0;return!1}function Zc(s,u){if(s==null)return{};if("~standard"in s){const i=s["~standard"].validate(u);if(i instanceof Promise)throw new cr("Async validation not supported");if(i.issues)throw new cr(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in s?s.parse(u):typeof s=="function"?s(u):{}}function kg(s){return new Fg(s)}class Fg{constructor(u){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{var r;i.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const c=this.options;this.options={...this.options,...i},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(h=>[encodeURIComponent(h),h])):void 0,(!this.basepath||i.basepath&&i.basepath!==c.basepath)&&(i.basepath===void 0||i.basepath===""||i.basepath==="/"?this.basepath="/":this.basepath=`/${Jp(i.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?sg({initialEntries:[this.basepath||"/"]}):ig()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new $c($g(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(h=>!["redirected"].includes(h.status))}}}),Ug(this)),typeof window<"u"&&"CSS"in window&&typeof((r=window.CSS)==null?void 0:r.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[i.id]=i);const r=m=>{m.forEach((p,g)=>{p.init({originalIndex:g,defaultSsr:this.options.defaultSsr});const y=this.routesById[p.id];if(vn(!y,`Duplicate routes found with id: ${String(p.id)}`),this.routesById[p.id]=p,!p.isRoot&&p.path){const d=dl(p.fullPath);(!this.routesByPath[d]||p.fullPath.endsWith("/"))&&(this.routesByPath[d]=p)}const b=p.children;b!=null&&b.length&&r(b)})};r([this.routeTree]);const c=[];Object.values(this.routesById).forEach((m,p)=>{var g;if(m.isRoot||!m.path)return;const y=yf(m.fullPath),b=Oi(y);for(;b.length>1&&((g=b[0])==null?void 0:g.value)==="/";)b.shift();const d=b.map(E=>E.value==="/"?.75:E.type==="param"?.5:E.type==="wildcard"?.25:1);c.push({child:m,trimmed:y,parsed:b,index:p,scores:d})}),this.flatRoutes=c.sort((m,p)=>{const g=Math.min(m.scores.length,p.scores.length);for(let y=0;y<g;y++)if(m.scores[y]!==p.scores[y])return p.scores[y]-m.scores[y];if(m.scores.length!==p.scores.length)return p.scores.length-m.scores.length;for(let y=0;y<g;y++)if(m.parsed[y].value!==p.parsed[y].value)return m.parsed[y].value>p.parsed[y].value?1:-1;return m.index-p.index}).map((m,p)=>(m.child.rank=p,m.child))},this.subscribe=(i,r)=>{const c={eventType:i,fn:r};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=i=>{this.subscribers.forEach(r=>{r.eventType===i.type&&r.fn(i)})},this.parseLocation=(i,r)=>{const c=({pathname:g,search:y,hash:b,state:d})=>{const E=this.options.parseSearch(y),x=this.options.stringifySearch(E);return{pathname:g,searchStr:x,search:an(i==null?void 0:i.search,E),hash:b.split("#").reverse()[0]??"",href:`${g}${x}${b}`,state:an(i==null?void 0:i.state,d)}},h=c(r??this.history.location),{__tempLocation:m,__tempKey:p}=h.state;if(m&&(!p||p===this.tempLocationKey)){const g=c(m);return g.state.key=h.state.key,delete g.state.__tempLocation,{...g,maskedLocation:h}}return h},this.resolvePathWithBase=(i,r)=>$p({basepath:this.basepath,base:i,to:yr(r),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(i,r,c)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:r},c):this.matchRoutesInternal(i,r),this.getMatchedRoutes=(i,r)=>{let c={};const h=dl(i.pathname),m=b=>Pu(this.basepath,h,{to:b.fullPath,caseSensitive:b.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let p=(r==null?void 0:r.to)!==void 0?this.routesByPath[r.to]:void 0;p?c=m(p):p=this.flatRoutes.find(b=>{const d=m(b);return d?(c=d,!0):!1});let g=p||this.routesById[Ne];const y=[g];for(;g.parentRoute;)g=g.parentRoute,y.unshift(g);return{matchedRoutes:y,routeParams:c,foundRoute:p}},this.cancelMatch=i=>{const r=this.getMatch(i);r&&(r.abortController.abort(),clearTimeout(r.pendingTimeout))},this.cancelMatches=()=>{var i;(i=this.state.pendingMatches)==null||i.forEach(r=>{this.cancelMatch(r.id)})},this.buildLocation=i=>{const r=(h={},m)=>{var p,g,y,b,d,E,x;const N=h._fromLocation?this.matchRoutes(h._fromLocation,{_buildLocation:!0}):this.state.matches,H=h.from!=null?N.find(J=>Pu(this.basepath,dl(J.pathname),{to:h.from,caseSensitive:!1,fuzzy:!1})):void 0,L=(H==null?void 0:H.pathname)||this.latestLocation.pathname;vn(h.from==null||H!=null,"Could not find match for from: "+h.from);const Y=(p=this.state.pendingMatches)!=null&&p.length?(g=ui(this.state.pendingMatches))==null?void 0:g.search:((y=ui(N))==null?void 0:y.search)||this.latestLocation.search,F=m==null?void 0:m.matchedRoutes.filter(J=>N.find(at=>at.routeId===J.id));let I;if(h.to){const J=(H==null?void 0:H.fullPath)||((b=ui(N))==null?void 0:b.fullPath)||this.latestLocation.pathname;I=this.resolvePathWithBase(J,`${h.to}`)}else{const J=this.routesById[(d=F==null?void 0:F.find(at=>{const ct=$u({path:at.fullPath,params:(m==null?void 0:m.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return Wn([this.basepath,ct])===L}))==null?void 0:d.id];I=this.resolvePathWithBase(L,(J==null?void 0:J.to)??L)}const ot={...(E=ui(N))==null?void 0:E.params};let j=(h.params??!0)===!0?ot:{...ot,...xs(h.params,ot)};Object.keys(j).length>0&&(m==null||m.matchedRoutes.map(J=>{var at;return((at=J.options.params)==null?void 0:at.stringify)??J.options.stringifyParams}).filter(Boolean).forEach(J=>{j={...j,...J(j)}})),I=$u({path:I,params:j??{},leaveWildcards:!1,leaveParams:i.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let $=Y;if(i._includeValidateSearch&&((x=this.options.search)!=null&&x.strict)){let J={};m==null||m.matchedRoutes.forEach(at=>{try{at.options.validateSearch&&(J={...J,...Zc(at.options.validateSearch,{...J,...$})??{}})}catch{}}),$=J}$=(J=>{const at=(m==null?void 0:m.matchedRoutes.reduce((C,K)=>{var tt;const dt=[];if("search"in K.options)(tt=K.options.search)!=null&&tt.middlewares&&dt.push(...K.options.search.middlewares);else if(K.options.preSearchFilters||K.options.postSearchFilters){const _=({search:z,next:Z})=>{let X=z;"preSearchFilters"in K.options&&K.options.preSearchFilters&&(X=K.options.preSearchFilters.reduce((ht,P)=>P(ht),z));const k=Z(X);return"postSearchFilters"in K.options&&K.options.postSearchFilters?K.options.postSearchFilters.reduce((ht,P)=>P(ht),k):k};dt.push(_)}if(i._includeValidateSearch&&K.options.validateSearch){const _=({search:z,next:Z})=>{const X=Z(z);try{return{...X,...Zc(K.options.validateSearch,X)??{}}}catch{return X}};dt.push(_)}return C.concat(dt)},[]))??[],ct=({search:C})=>h.search?h.search===!0?C:xs(h.search,C):{};at.push(ct);const st=(C,K)=>{if(C>=at.length)return K;const tt=at[C];return tt({search:K,next:_=>st(C+1,_)})};return st(0,J)})($),$=an(Y,$);const U=this.options.stringifySearch($),M=h.hash===!0?this.latestLocation.hash:h.hash?xs(h.hash,this.latestLocation.hash):void 0,V=M?`#${M}`:"";let W=h.state===!0?this.latestLocation.state:h.state?xs(h.state,this.latestLocation.state):{};return W=an(this.latestLocation.state,W),{pathname:I,search:$,searchStr:U,state:W,hash:M??"",href:`${I}${U}${V}`,unmaskOnReload:h.unmaskOnReload}},c=(h={},m)=>{var p;const g=r(h);let y=m?r(m):void 0;if(!y){let E={};const x=(p=this.options.routeMasks)==null?void 0:p.find(N=>{const H=Pu(this.basepath,g.pathname,{to:N.from,caseSensitive:!1,fuzzy:!1});return H?(E=H,!0):!1});if(x){const{from:N,...H}=x;m={...Fc(i,["from"]),...H,params:E},y=r(m)}}const b=this.getMatchedRoutes(g,h),d=r(h,b);if(y){const E=this.getMatchedRoutes(y,m),x=r(m,E);d.maskedLocation=x}return d};return i.mask?c(i,{...Fc(i,["from"]),...i.mask}):c(i)},this.commitLocation=({viewTransition:i,ignoreBlocker:r,...c})=>{const h=()=>{const g=["key","__TSR_index","__hashScrollIntoViewOptions"];g.forEach(b=>{c.state[b]=this.latestLocation.state[b]});const y=Ds(c.state,this.latestLocation.state);return g.forEach(b=>{delete c.state[b]}),y},m=this.latestLocation.href===c.href,p=this.commitLocationPromise;if(this.commitLocationPromise=si(()=>{p==null||p.resolve()}),m&&h())this.load();else{let{maskedLocation:g,hashScrollIntoView:y,...b}=c;g&&(b={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[c.replace?"replace":"push"](b.href,b.state,{ignoreBlocker:r})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:r,hashScrollIntoView:c,viewTransition:h,ignoreBlocker:m,href:p,...g}={})=>{if(p){const b=this.history.location.state.__TSR_index,d=zs(p,{__TSR_index:i?b:b+1});g.to=d.pathname,g.search=this.options.parseSearch(d.search),g.hash=d.hash.slice(1)}const y=this.buildLocation({...g,_includeValidateSearch:!0});return this.commitLocation({...y,viewTransition:h,replace:i,resetScroll:r,hashScrollIntoView:c,ignoreBlocker:m})},this.navigate=({to:i,reloadDocument:r,href:c,...h})=>{if(r){if(!c){const m=this.buildLocation({to:i,...h});c=this.history.createHref(m.href)}h.replace?window.location.replace(c):window.location.href=c;return}return this.buildAndCommitLocation({...h,href:c,to:i})},this.load=async i=>{this.latestLocation=this.parseLocation(this.latestLocation);let r,c,h;for(h=new Promise(m=>{this.startTransition(async()=>{var p;try{const g=this.latestLocation,y=this.state.resolvedLocation;this.cancelMatches();let b;Gc(()=>{b=this.matchRoutes(g),this.__store.setState(d=>({...d,status:"pending",isLoading:!0,location:g,pendingMatches:b,cachedMatches:d.cachedMatches.filter(E=>!b.find(x=>x.id===E.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...oi({resolvedLocation:y,location:g})}),this.emit({type:"onBeforeLoad",...oi({resolvedLocation:y,location:g})}),await this.loadMatches({sync:i==null?void 0:i.sync,matches:b,location:g,onReady:async()=>{this.startViewTransition(async()=>{let d,E,x;Gc(()=>{this.__store.setState(N=>{const H=N.matches,L=N.pendingMatches||N.matches;return d=H.filter(Y=>!L.find(F=>F.id===Y.id)),E=L.filter(Y=>!H.find(F=>F.id===Y.id)),x=H.filter(Y=>L.find(F=>F.id===Y.id)),{...N,isLoading:!1,loadedAt:Date.now(),matches:L,pendingMatches:void 0,cachedMatches:[...N.cachedMatches,...d.filter(Y=>Y.status!=="error")]}}),this.clearExpiredCache()}),[[d,"onLeave"],[E,"onEnter"],[x,"onStay"]].forEach(([N,H])=>{N.forEach(L=>{var Y,F;(F=(Y=this.looseRoutesById[L.routeId].options)[H])==null||F.call(Y,L)})})})}})}catch(g){Lc(g)?(r=g,this.isServer||this.navigate({...r,replace:!0,ignoreBlocker:!0})):sn(g)&&(c=g),this.__store.setState(y=>({...y,statusCode:r?r.statusCode:c?404:y.matches.some(b=>b.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===h&&((p=this.commitLocationPromise)==null||p.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(m=>({...m,statusCode:404}))},this.startViewTransition=i=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;typeof r=="object"&&this.isViewTransitionTypesSupported?c={update:i,types:r.types}:c=i,document.startViewTransition(c)}else i()},this.updateMatch=(i,r)=>{var c;let h;const m=(c=this.state.pendingMatches)==null?void 0:c.find(b=>b.id===i),p=this.state.matches.find(b=>b.id===i),g=this.state.cachedMatches.find(b=>b.id===i),y=m?"pendingMatches":p?"matches":g?"cachedMatches":"";return y&&this.__store.setState(b=>{var d;return{...b,[y]:(d=b[y])==null?void 0:d.map(E=>E.id===i?h=r(E):E)}}),h},this.getMatch=i=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(r=>r.id===i),this.loadMatches=async({location:i,matches:r,preload:c,onReady:h,updateMatch:m=this.updateMatch,sync:p})=>{let g,y=!1;const b=async()=>{y||(y=!0,await(h==null?void 0:h()))},d=x=>!!(c&&!this.state.matches.find(N=>N.id===x));!this.isServer&&!this.state.matches.length&&b();const E=(x,N)=>{var H,L,Y,F;if(Lc(N)&&!N.reloadDocument)throw N;if(fl(N)||sn(N)){if(m(x.id,I=>({...I,status:fl(N)?"redirected":sn(N)?"notFound":"error",isFetching:!1,error:N,beforeLoadPromise:void 0,loaderPromise:void 0})),N.routeId||(N.routeId=x.routeId),(H=x.beforeLoadPromise)==null||H.resolve(),(L=x.loaderPromise)==null||L.resolve(),(Y=x.loadPromise)==null||Y.resolve(),fl(N))throw y=!0,N=this.resolveRedirect({...N,_fromLocation:i}),N;if(sn(N))throw this._handleNotFound(r,N,{updateMatch:m}),(F=this.serverSsr)==null||F.onMatchSettled({router:this,match:this.getMatch(x.id)}),N}};try{await new Promise((x,N)=>{(async()=>{var H,L,Y;try{const F=(j,$,lt)=>{var U,M;const{id:V,routeId:W}=r[j],J=this.looseRoutesById[W];if($ instanceof Promise)throw $;$.routerCode=lt,g=g??j,E(this.getMatch(V),$);try{(M=(U=J.options).onError)==null||M.call(U,$)}catch(at){$=at,E(this.getMatch(V),$)}m(V,at=>{var ct,st;return(ct=at.beforeLoadPromise)==null||ct.resolve(),(st=at.loadPromise)==null||st.resolve(),{...at,error:$,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[j,{id:$,routeId:lt}]of r.entries()){const U=this.getMatch($),M=(H=r[j-1])==null?void 0:H.id,V=this.looseRoutesById[lt],W=V.options.pendingMs??this.options.defaultPendingMs,J=!!(h&&!this.isServer&&!d($)&&(V.options.loader||V.options.beforeLoad)&&typeof W=="number"&&W!==1/0&&(V.options.pendingComponent??this.options.defaultPendingComponent));let at=!0;if((U.beforeLoadPromise||U.loaderPromise)&&(J&&setTimeout(()=>{try{b()}catch{}},W),await U.beforeLoadPromise,at=this.getMatch($).status!=="success"),at){try{m($,P=>{const Dt=P.loadPromise;return{...P,loadPromise:si(()=>{Dt==null||Dt.resolve()}),beforeLoadPromise:si()}});const ct=new AbortController;let st;J&&(st=setTimeout(()=>{try{b()}catch{}},W));const{paramsError:C,searchError:K}=this.getMatch($);C&&F(j,C,"PARSE_PARAMS"),K&&F(j,K,"VALIDATE_SEARCH");const tt=()=>M?this.getMatch(M).context:this.options.context??{};m($,P=>({...P,isFetching:"beforeLoad",fetchCount:P.fetchCount+1,abortController:ct,pendingTimeout:st,context:{...tt(),...P.__routeContext}}));const{search:dt,params:_,context:z,cause:Z}=this.getMatch($),X=d($),k={search:dt,abortController:ct,params:_,preload:X,context:z,location:i,navigate:P=>this.navigate({...P,_fromLocation:i}),buildLocation:this.buildLocation,cause:X?"preload":Z,matches:r},ht=await((Y=(L=V.options).beforeLoad)==null?void 0:Y.call(L,k))??{};(fl(ht)||sn(ht))&&F(j,ht,"BEFORE_LOAD"),m($,P=>({...P,__beforeLoadContext:ht,context:{...tt(),...P.__routeContext,...ht},abortController:ct}))}catch(ct){F(j,ct,"BEFORE_LOAD")}m($,ct=>{var st;return(st=ct.beforeLoadPromise)==null||st.resolve(),{...ct,beforeLoadPromise:void 0,isFetching:!1}})}}const I=r.slice(0,g),ot=[];I.forEach(({id:j,routeId:$},lt)=>{ot.push((async()=>{const{loaderPromise:U}=this.getMatch(j);let M=!1,V=!1;if(U){await U;const W=this.getMatch(j);W.error&&E(W,W.error)}else{const W=ot[lt-1],J=this.looseRoutesById[$],at=()=>{const{params:Z,loaderDeps:X,abortController:k,context:ht,cause:P}=this.getMatch(j),Dt=d(j);return{params:Z,deps:X,preload:!!Dt,parentMatchPromise:W,abortController:k,context:ht,location:i,navigate:ft=>this.navigate({...ft,_fromLocation:i}),cause:Dt?"preload":P,route:J}},ct=Date.now()-this.getMatch(j).updatedAt,st=d(j),C=st?J.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:J.options.staleTime??this.options.defaultStaleTime??0,K=J.options.shouldReload,tt=typeof K=="function"?K(at()):K;m(j,Z=>({...Z,loaderPromise:si(),preload:!!st&&!this.state.matches.find(X=>X.id===j)}));const dt=async()=>{var Z,X,k,ht,P,Dt,ft,_t,Ot,$t,Le;try{const oe=async()=>{const Bt=this.getMatch(j);Bt.minPendingPromise&&await Bt.minPendingPromise};try{this.loadRouteChunk(J),m(j,le=>({...le,isFetching:"loader"}));const Bt=await((X=(Z=J.options).loader)==null?void 0:X.call(Z,at()));E(this.getMatch(j),Bt),await J._lazyPromise,await oe();const ge={matches:r,match:this.getMatch(j),params:this.getMatch(j).params,loaderData:Bt},Qt=(ht=(k=J.options).head)==null?void 0:ht.call(k,ge),Be=Qt==null?void 0:Qt.meta,pn=Qt==null?void 0:Qt.links,be=Qt==null?void 0:Qt.scripts,La=(Dt=(P=J.options).scripts)==null?void 0:Dt.call(P,ge),Ba=(_t=(ft=J.options).headers)==null?void 0:_t.call(ft,{loaderData:Bt});m(j,le=>({...le,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:Bt,meta:Be,links:pn,headScripts:be,headers:Ba,scripts:La}))}catch(Bt){let ge=Bt;await oe(),E(this.getMatch(j),Bt);try{($t=(Ot=J.options).onError)==null||$t.call(Ot,Bt)}catch(Qt){ge=Qt,E(this.getMatch(j),Qt)}m(j,Qt=>({...Qt,error:ge,status:"error",isFetching:!1}))}(Le=this.serverSsr)==null||Le.onMatchSettled({router:this,match:this.getMatch(j)}),await J._componentsPromise}catch(oe){m(j,Bt=>({...Bt,loaderPromise:void 0})),E(this.getMatch(j),oe)}},{status:_,invalid:z}=this.getMatch(j);M=_==="success"&&(z||(tt??ct>C)),st&&J.options.preload===!1||(M&&!p?(V=!0,(async()=>{try{await dt();const{loaderPromise:Z,loadPromise:X}=this.getMatch(j);Z==null||Z.resolve(),X==null||X.resolve(),m(j,k=>({...k,loaderPromise:void 0}))}catch(Z){Lc(Z)&&await this.navigate(Z)}})()):(_!=="success"||M&&p)&&await dt())}if(!V){const{loaderPromise:W,loadPromise:J}=this.getMatch(j);W==null||W.resolve(),J==null||J.resolve()}return m(j,W=>({...W,isFetching:V?W.isFetching:!1,loaderPromise:V?W.loaderPromise:void 0,invalid:!1})),this.getMatch(j)})())}),await Promise.all(ot),x()}catch(F){N(F)}})()}),await b()}catch(x){if(fl(x)||sn(x))throw sn(x)&&!c&&await b(),x}return r},this.invalidate=i=>{const r=c=>{var h;return((h=i==null?void 0:i.filter)==null?void 0:h.call(i,c))??!0?{...c,invalid:!0,...c.status==="error"?{status:"pending",error:void 0}:{}}:c};return this.__store.setState(c=>{var h;return{...c,matches:c.matches.map(r),cachedMatches:c.cachedMatches.map(r),pendingMatches:(h=c.pendingMatches)==null?void 0:h.map(r)}}),this.load({sync:i==null?void 0:i.sync})},this.resolveRedirect=i=>{const r=i;return r.href||(r.href=this.buildLocation(r).href),r},this.clearCache=i=>{const r=i==null?void 0:i.filter;r!==void 0?this.__store.setState(c=>({...c,cachedMatches:c.cachedMatches.filter(h=>!r(h))})):this.__store.setState(c=>({...c,cachedMatches:[]}))},this.clearExpiredCache=()=>{const i=r=>{const c=this.looseRoutesById[r.routeId];if(!c.options.loader)return!0;const h=(r.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(r.status!=="error"&&Date.now()-r.updatedAt<h)};this.clearCache({filter:i})},this.loadRouteChunk=i=>(i._lazyPromise===void 0&&(i.lazyFn?i._lazyPromise=i.lazyFn().then(r=>{const{id:c,...h}=r.options;Object.assign(i.options,h)}):i._lazyPromise=Promise.resolve()),i._componentsPromise===void 0&&(i._componentsPromise=i._lazyPromise.then(()=>Promise.all(tv.map(async r=>{const c=i.options[r];c!=null&&c.preload&&await c.preload()})))),i._componentsPromise),this.preloadRoute=async i=>{const r=this.buildLocation(i);let c=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:i});const h=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(p=>p.id)),m=new Set([...h,...this.state.cachedMatches.map(p=>p.id)]);Gc(()=>{c.forEach(p=>{m.has(p.id)||this.__store.setState(g=>({...g,cachedMatches:[...g.cachedMatches,p]}))})});try{return c=await this.loadMatches({matches:c,location:r,preload:!0,updateMatch:(p,g)=>{h.has(p)?c=c.map(y=>y.id===p?g(y):y):this.updateMatch(p,g)}}),c}catch(p){if(fl(p))return p.reloadDocument?void 0:await this.preloadRoute({...p,_fromLocation:r});sn(p)||console.error(p);return}},this.matchRoute=(i,r)=>{const c={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},h=this.buildLocation(c);if(r!=null&&r.pending&&this.state.status!=="pending")return!1;const p=((r==null?void 0:r.pending)===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,g=Pu(this.basepath,p.pathname,{...r,to:h.pathname});return!g||i.params&&!Ds(g,i.params,{partial:!0})?!1:g&&((r==null?void 0:r.includeSearch)??!0)?Ds(p.search,h.search,{partial:!0})?g:!1:g},this._handleNotFound=(i,r,{updateMatch:c=this.updateMatch}={})=>{const h=Object.fromEntries(i.map(g=>[g.routeId,g]));let m=(r.global?this.looseRoutesById[Ne]:this.looseRoutesById[r.routeId])||this.looseRoutesById[Ne];for(;!m.options.notFoundComponent&&!this.options.defaultNotFoundComponent&&m.id!==Ne;)m=m.parentRoute,vn(m);const p=h[m.id];vn(p,"Could not find match for route: "+m.id),c(p.id,g=>({...g,status:"notFound",error:r,isFetching:!1})),r.routerCode==="BEFORE_LOAD"&&m.parentRoute&&(r.routeId=m.parentRoute.id,this._handleNotFound(i,r,{updateMatch:c}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(i=>i.status==="notFound"||i.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...u,caseSensitive:u.caseSensitive??!1,notFoundMode:u.notFoundMode??"fuzzy",stringifySearch:u.stringifySearch??ng,parseSearch:u.parseSearch??eg}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(u,i){const{foundRoute:r,matchedRoutes:c,routeParams:h}=this.getMatchedRoutes(u,i==null?void 0:i.dest);let m=!1;(r?r.path!=="/"&&h["**"]:dl(u.pathname))&&(this.options.notFoundRoute?c.push(this.options.notFoundRoute):m=!0);const p=(()=>{if(m){if(this.options.notFoundMode!=="root")for(let d=c.length-1;d>=0;d--){const E=c[d];if(E.children)return E.id}return Ne}})(),g=c.map(d=>{var E;let x;const N=((E=d.options.params)==null?void 0:E.parse)??d.options.parseParams;if(N)try{const H=N(h);Object.assign(h,H)}catch(H){if(x=new Jg(H.message,{cause:H}),i!=null&&i.throwOnError)throw x;return x}}),y=[],b=d=>(d==null?void 0:d.id)?d.context??this.options.context??{}:this.options.context??{};return c.forEach((d,E)=>{var x,N;const H=y[E-1],[L,Y,F]=(()=>{const at=(H==null?void 0:H.search)??u.search,ct=(H==null?void 0:H._strictSearch)??{};try{const st=Zc(d.options.validateSearch,{...at})??{};return[{...at,...st},{...ct,...st},void 0]}catch(st){let C=st;if(st instanceof cr||(C=new cr(st.message,{cause:st})),i!=null&&i.throwOnError)throw C;return[at,{},C]}})(),I=((N=(x=d.options).loaderDeps)==null?void 0:N.call(x,{search:L}))??"",ot=I?JSON.stringify(I):"",{usedParams:j,interpolatedPath:$}=$u({path:d.fullPath,params:h,decodeCharMap:this.pathParamsDecodeCharMap}),lt=$u({path:d.id,params:h,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+ot,U=this.getMatch(lt),M=this.state.matches.find(at=>at.routeId===d.id),V=M?"stay":"enter";let W;if(U)W={...U,cause:V,params:M?an(M.params,h):h,_strictParams:j,search:an(M?M.search:U.search,L),_strictSearch:Y};else{const at=d.options.loader||d.options.beforeLoad||d.lazyFn||Zg(d)?"pending":"success";W={id:lt,index:E,routeId:d.id,params:M?an(M.params,h):h,_strictParams:j,pathname:Wn([this.basepath,$]),updatedAt:Date.now(),search:M?an(M.search,L):L,_strictSearch:Y,searchError:void 0,status:at,isFetching:!1,error:void 0,paramsError:g[E],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:V,loaderDeps:M?an(M.loaderDeps,I):I,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:d.options.staticData||{},loadPromise:si(),fullPath:d.fullPath}}i!=null&&i.preload||(W.globalNotFound=p===d.id),W.searchError=F;const J=b(H);W.context={...J,...W.__routeContext,...W.__beforeLoadContext},y.push(W)}),y.forEach((d,E)=>{var x,N,H,L,Y,F,I,ot;const j=this.looseRoutesById[d.routeId];if(!this.getMatch(d.id)&&(i==null?void 0:i._buildLocation)!==!0){const lt=y[E-1],U=b(lt),M={deps:d.loaderDeps,params:d.params,context:U,location:u,navigate:V=>this.navigate({...V,_fromLocation:u}),buildLocation:this.buildLocation,cause:d.cause,abortController:d.abortController,preload:!!d.preload,matches:y};d.__routeContext=((N=(x=j.options).context)==null?void 0:N.call(x,M))??{},d.context={...U,...d.__routeContext,...d.__beforeLoadContext}}if(d.status==="success"){d.headers=(L=(H=j.options).headers)==null?void 0:L.call(H,{loaderData:d.loaderData});const lt={matches:y,match:d,params:d.params,loaderData:d.loaderData},U=(F=(Y=j.options).head)==null?void 0:F.call(Y,lt);d.links=U==null?void 0:U.links,d.headScripts=U==null?void 0:U.scripts,d.meta=U==null?void 0:U.meta,d.scripts=(ot=(I=j.options).scripts)==null?void 0:ot.call(I,lt)}}),y}}class cr extends Error{}class Jg extends Error{}function $g(s){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:s,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Pg({router:s,children:u,...i}){s.update({...s.options,...i,context:{...s.options.context,...i.context}});const r=Fy(),c=it.jsx(r.Provider,{value:s,children:u});return s.options.Wrap?it.jsx(s.options.Wrap,{children:c}):c}function Wg({router:s,...u}){return it.jsx(Pg,{router:s,...u,children:it.jsx(Xg,{})})}const Ig={theme:"system",setTheme:()=>null},ev=rt.createContext(Ig);function tb({children:s,defaultTheme:u="system",storageKey:i="vite-ui-theme",...r}){const[c,h]=rt.useState(()=>localStorage.getItem(i)||u);rt.useEffect(()=>{const p=window.document.documentElement;if(p.classList.remove("light","dark"),c==="system"){const g=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";p.classList.add(g);return}p.classList.add(c)},[c]);const m={theme:c,setTheme:p=>{localStorage.setItem(i,p),h(p)}};return it.jsx(ev.Provider,{...r,value:m,children:s})}const W1=()=>{const s=rt.useContext(ev);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s};var eb=(s,u,i,r,c,h,m,p)=>{let g=document.documentElement,y=["light","dark"];function b(x){(Array.isArray(s)?s:[s]).forEach(N=>{let H=N==="class",L=H&&h?c.map(Y=>h[Y]||Y):c;H?(g.classList.remove(...L),g.classList.add(h[x]||x)):g.setAttribute(N,x)}),d(x)}function d(x){p&&y.includes(x)&&(g.style.colorScheme=x)}function E(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)b(r);else try{let x=localStorage.getItem(u)||i,N=m&&x==="system"?E():x;b(N)}catch{}},nb=rt.createContext(void 0),ab={setTheme:s=>{},themes:[]},lb=()=>{var s;return(s=rt.useContext(nb))!=null?s:ab};rt.memo(({forcedTheme:s,storageKey:u,attribute:i,enableSystem:r,enableColorScheme:c,defaultTheme:h,value:m,themes:p,nonce:g,scriptProps:y})=>{let b=JSON.stringify([i,u,h,s,p,m,r,c]).slice(1,-1);return rt.createElement("script",{...y,suppressHydrationWarning:!0,nonce:typeof window>"u"?g:"",dangerouslySetInnerHTML:{__html:`(${eb.toString()})(${b})`}})});function ib(s){if(typeof document>"u")return;let u=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",u.appendChild(i),i.styleSheet?i.styleSheet.cssText=s:i.appendChild(document.createTextNode(s))}const sb=s=>{switch(s){case"success":return ob;case"info":return fb;case"warning":return cb;case"error":return db;default:return null}},ub=Array(12).fill(0),rb=({visible:s,className:u})=>et.createElement("div",{className:["sonner-loading-wrapper",u].filter(Boolean).join(" "),"data-visible":s},et.createElement("div",{className:"sonner-spinner"},ub.map((i,r)=>et.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ob=et.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},et.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),cb=et.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},et.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),fb=et.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},et.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),db=et.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},et.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),hb=et.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},et.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),et.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mb=()=>{const[s,u]=et.useState(document.hidden);return et.useEffect(()=>{const i=()=>{u(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),s};let Wc=1;class yb{constructor(){this.subscribe=u=>(this.subscribers.push(u),()=>{const i=this.subscribers.indexOf(u);this.subscribers.splice(i,1)}),this.publish=u=>{this.subscribers.forEach(i=>i(u))},this.addToast=u=>{this.publish(u),this.toasts=[...this.toasts,u]},this.create=u=>{var i;const{message:r,...c}=u,h=typeof(u==null?void 0:u.id)=="number"||((i=u.id)==null?void 0:i.length)>0?u.id:Wc++,m=this.toasts.find(g=>g.id===h),p=u.dismissible===void 0?!0:u.dismissible;return this.dismissedToasts.has(h)&&this.dismissedToasts.delete(h),m?this.toasts=this.toasts.map(g=>g.id===h?(this.publish({...g,...u,id:h,title:r}),{...g,...u,id:h,dismissible:p,title:r}):g):this.addToast({title:r,...c,dismissible:p,id:h}),h},this.dismiss=u=>(this.dismissedToasts.add(u),u||this.toasts.forEach(i=>{this.subscribers.forEach(r=>r({id:i.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:u,dismiss:!0}))),u),this.message=(u,i)=>this.create({...i,message:u}),this.error=(u,i)=>this.create({...i,message:u,type:"error"}),this.success=(u,i)=>this.create({...i,type:"success",message:u}),this.info=(u,i)=>this.create({...i,type:"info",message:u}),this.warning=(u,i)=>this.create({...i,type:"warning",message:u}),this.loading=(u,i)=>this.create({...i,type:"loading",message:u}),this.promise=(u,i)=>{if(!i)return;let r;i.loading!==void 0&&(r=this.create({...i,promise:u,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const c=Promise.resolve(u instanceof Function?u():u);let h=r!==void 0,m;const p=c.then(async y=>{if(m=["resolve",y],et.isValidElement(y))h=!1,this.create({id:r,type:"default",message:y});else if(pb(y)&&!y.ok){h=!1;const d=typeof i.error=="function"?await i.error(`HTTP error! status: ${y.status}`):i.error,E=typeof i.description=="function"?await i.description(`HTTP error! status: ${y.status}`):i.description,x=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:E,...x})}else if(y instanceof Error){h=!1;const d=typeof i.error=="function"?await i.error(y):i.error,E=typeof i.description=="function"?await i.description(y):i.description,x=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:E,...x})}else if(i.success!==void 0){h=!1;const d=typeof i.success=="function"?await i.success(y):i.success,E=typeof i.description=="function"?await i.description(y):i.description,x=typeof d=="object"?d:{message:d};this.create({id:r,type:"success",description:E,...x})}}).catch(async y=>{if(m=["reject",y],i.error!==void 0){h=!1;const b=typeof i.error=="function"?await i.error(y):i.error,d=typeof i.description=="function"?await i.description(y):i.description,E=typeof b=="object"?b:{message:b};this.create({id:r,type:"error",description:d,...E})}}).finally(()=>{h&&(this.dismiss(r),r=void 0),i.finally==null||i.finally.call(i)}),g=()=>new Promise((y,b)=>p.then(()=>m[0]==="reject"?b(m[1]):y(m[1])).catch(b));return typeof r!="string"&&typeof r!="number"?{unwrap:g}:Object.assign(r,{unwrap:g})},this.custom=(u,i)=>{const r=(i==null?void 0:i.id)||Wc++;return this.create({jsx:u(r),id:r,...i}),r},this.getActiveToasts=()=>this.toasts.filter(u=>!this.dismissedToasts.has(u.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ue=new yb,vb=(s,u)=>{const i=(u==null?void 0:u.id)||Wc++;return Ue.addToast({title:s,...u,id:i}),i},pb=s=>s&&typeof s=="object"&&"ok"in s&&typeof s.ok=="boolean"&&"status"in s&&typeof s.status=="number",gb=vb,bb=()=>Ue.toasts,Sb=()=>Ue.getActiveToasts(),I1=Object.assign(gb,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading},{getHistory:bb,getToasts:Sb});ib("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function tr(s){return s.label!==void 0}const _b=3,Eb="24px",Rb="16px",_y=4e3,Tb=356,Mb=14,Ob=45,xb=200;function On(...s){return s.filter(Boolean).join(" ")}function wb(s){const[u,i]=s.split("-"),r=[];return u&&r.push(u),i&&r.push(i),r}const Ab=s=>{var u,i,r,c,h,m,p,g,y;const{invert:b,toast:d,unstyled:E,interacting:x,setHeights:N,visibleToasts:H,heights:L,index:Y,toasts:F,expanded:I,removeToast:ot,defaultRichColors:j,closeButton:$,style:lt,cancelButtonStyle:U,actionButtonStyle:M,className:V="",descriptionClassName:W="",duration:J,position:at,gap:ct,expandByDefault:st,classNames:C,icons:K,closeButtonAriaLabel:tt="Close toast"}=s,[dt,_]=et.useState(null),[z,Z]=et.useState(null),[X,k]=et.useState(!1),[ht,P]=et.useState(!1),[Dt,ft]=et.useState(!1),[_t,Ot]=et.useState(!1),[$t,Le]=et.useState(!1),[oe,Bt]=et.useState(0),[ge,Qt]=et.useState(0),Be=et.useRef(d.duration||J||_y),pn=et.useRef(null),be=et.useRef(null),La=Y===0,Ba=Y+1<=H,le=d.type,ea=d.dismissible!==!1,Xe=d.className||"",_r=d.descriptionClassName||"",ja=et.useMemo(()=>L.findIndex(gt=>gt.toastId===d.id)||0,[L,d.id]),qs=et.useMemo(()=>{var gt;return(gt=d.closeButton)!=null?gt:$},[d.closeButton,$]),qa=et.useMemo(()=>d.duration||J||_y,[d.duration,J]),Ai=et.useRef(0),Cn=et.useRef(0),Qs=et.useRef(0),na=et.useRef(null),[Qa,Se]=at.split("-"),Ys=et.useMemo(()=>L.reduce((gt,Yt,Xt)=>Xt>=ja?gt:gt+Yt.height,0),[L,ja]),rn=mb(),_e=d.invert||b,Di=le==="loading";Cn.current=et.useMemo(()=>ja*ct+Ys,[ja,Ys]),et.useEffect(()=>{Be.current=qa},[qa]),et.useEffect(()=>{k(!0)},[]),et.useEffect(()=>{const gt=be.current;if(gt){const Yt=gt.getBoundingClientRect().height;return Qt(Yt),N(Xt=>[{toastId:d.id,height:Yt,position:d.position},...Xt]),()=>N(Xt=>Xt.filter(Ee=>Ee.toastId!==d.id))}},[N,d.id]),et.useLayoutEffect(()=>{if(!X)return;const gt=be.current,Yt=gt.style.height;gt.style.height="auto";const Xt=gt.getBoundingClientRect().height;gt.style.height=Yt,Qt(Xt),N(Ee=>Ee.find(Pt=>Pt.toastId===d.id)?Ee.map(Pt=>Pt.toastId===d.id?{...Pt,height:Xt}:Pt):[{toastId:d.id,height:Xt,position:d.position},...Ee])},[X,d.title,d.description,N,d.id]);const gn=et.useCallback(()=>{P(!0),Bt(Cn.current),N(gt=>gt.filter(Yt=>Yt.toastId!==d.id)),setTimeout(()=>{ot(d)},xb)},[d,ot,N,Cn]);et.useEffect(()=>{if(d.promise&&le==="loading"||d.duration===1/0||d.type==="loading")return;let gt;return I||x||rn?(()=>{if(Qs.current<Ai.current){const Ee=new Date().getTime()-Ai.current;Be.current=Be.current-Ee}Qs.current=new Date().getTime()})():(()=>{Be.current!==1/0&&(Ai.current=new Date().getTime(),gt=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),gn()},Be.current))})(),()=>clearTimeout(gt)},[I,x,d,le,rn,gn]),et.useEffect(()=>{d.delete&&gn()},[gn,d.delete]);function Er(){var gt;if(K!=null&&K.loading){var Yt;return et.createElement("div",{className:On(C==null?void 0:C.loader,d==null||(Yt=d.classNames)==null?void 0:Yt.loader,"sonner-loader"),"data-visible":le==="loading"},K.loading)}return et.createElement(rb,{className:On(C==null?void 0:C.loader,d==null||(gt=d.classNames)==null?void 0:gt.loader),visible:le==="loading"})}var Ya,Ga;return et.createElement("li",{tabIndex:0,ref:be,className:On(V,Xe,C==null?void 0:C.toast,d==null||(u=d.classNames)==null?void 0:u.toast,C==null?void 0:C.default,C==null?void 0:C[le],d==null||(i=d.classNames)==null?void 0:i[le]),"data-sonner-toast":"","data-rich-colors":(Ya=d.richColors)!=null?Ya:j,"data-styled":!(d.jsx||d.unstyled||E),"data-mounted":X,"data-promise":!!d.promise,"data-swiped":$t,"data-removed":ht,"data-visible":Ba,"data-y-position":Qa,"data-x-position":Se,"data-index":Y,"data-front":La,"data-swiping":Dt,"data-dismissible":ea,"data-type":le,"data-invert":_e,"data-swipe-out":_t,"data-swipe-direction":z,"data-expanded":!!(I||st&&X),style:{"--index":Y,"--toasts-before":Y,"--z-index":F.length-Y,"--offset":`${ht?oe:Cn.current}px`,"--initial-height":st?"auto":`${ge}px`,...lt,...d.style},onDragEnd:()=>{ft(!1),_(null),na.current=null},onPointerDown:gt=>{Di||!ea||(pn.current=new Date,Bt(Cn.current),gt.target.setPointerCapture(gt.pointerId),gt.target.tagName!=="BUTTON"&&(ft(!0),na.current={x:gt.clientX,y:gt.clientY}))},onPointerUp:()=>{var gt,Yt,Xt;if(_t||!ea)return;na.current=null;const Ee=Number(((gt=be.current)==null?void 0:gt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Va=Number(((Yt=be.current)==null?void 0:Yt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Pt=new Date().getTime()-((Xt=pn.current)==null?void 0:Xt.getTime()),he=dt==="x"?Ee:Va,bn=Math.abs(he)/Pt;if(Math.abs(he)>=Ob||bn>.11){Bt(Cn.current),d.onDismiss==null||d.onDismiss.call(d,d),Z(dt==="x"?Ee>0?"right":"left":Va>0?"down":"up"),gn(),Ot(!0);return}else{var je,xe;(je=be.current)==null||je.style.setProperty("--swipe-amount-x","0px"),(xe=be.current)==null||xe.style.setProperty("--swipe-amount-y","0px")}Le(!1),ft(!1),_(null)},onPointerMove:gt=>{var Yt,Xt,Ee;if(!na.current||!ea||((Yt=window.getSelection())==null?void 0:Yt.toString().length)>0)return;const Pt=gt.clientY-na.current.y,he=gt.clientX-na.current.x;var bn;const je=(bn=s.swipeDirections)!=null?bn:wb(at);!dt&&(Math.abs(he)>1||Math.abs(Pt)>1)&&_(Math.abs(he)>Math.abs(Pt)?"x":"y");let xe={x:0,y:0};const Ci=Sn=>1/(1.5+Math.abs(Sn)/20);if(dt==="y"){if(je.includes("top")||je.includes("bottom"))if(je.includes("top")&&Pt<0||je.includes("bottom")&&Pt>0)xe.y=Pt;else{const Sn=Pt*Ci(Pt);xe.y=Math.abs(Sn)<Math.abs(Pt)?Sn:Pt}}else if(dt==="x"&&(je.includes("left")||je.includes("right")))if(je.includes("left")&&he<0||je.includes("right")&&he>0)xe.x=he;else{const Sn=he*Ci(he);xe.x=Math.abs(Sn)<Math.abs(he)?Sn:he}(Math.abs(xe.x)>0||Math.abs(xe.y)>0)&&Le(!0),(Xt=be.current)==null||Xt.style.setProperty("--swipe-amount-x",`${xe.x}px`),(Ee=be.current)==null||Ee.style.setProperty("--swipe-amount-y",`${xe.y}px`)}},qs&&!d.jsx&&le!=="loading"?et.createElement("button",{"aria-label":tt,"data-disabled":Di,"data-close-button":!0,onClick:Di||!ea?()=>{}:()=>{gn(),d.onDismiss==null||d.onDismiss.call(d,d)},className:On(C==null?void 0:C.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(Ga=K==null?void 0:K.close)!=null?Ga:hb):null,le||d.icon||d.promise?et.createElement("div",{"data-icon":"",className:On(C==null?void 0:C.icon,d==null||(c=d.classNames)==null?void 0:c.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Er():null,d.type!=="loading"?d.icon||(K==null?void 0:K[le])||sb(le):null):null,et.createElement("div",{"data-content":"",className:On(C==null?void 0:C.content,d==null||(h=d.classNames)==null?void 0:h.content)},et.createElement("div",{"data-title":"",className:On(C==null?void 0:C.title,d==null||(m=d.classNames)==null?void 0:m.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?et.createElement("div",{"data-description":"",className:On(W,_r,C==null?void 0:C.description,d==null||(p=d.classNames)==null?void 0:p.description)},typeof d.description=="function"?d.description():d.description):null),et.isValidElement(d.cancel)?d.cancel:d.cancel&&tr(d.cancel)?et.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||U,onClick:gt=>{tr(d.cancel)&&ea&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,gt),gn())},className:On(C==null?void 0:C.cancelButton,d==null||(g=d.classNames)==null?void 0:g.cancelButton)},d.cancel.label):null,et.isValidElement(d.action)?d.action:d.action&&tr(d.action)?et.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||M,onClick:gt=>{tr(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,gt),!gt.defaultPrevented&&gn())},className:On(C==null?void 0:C.actionButton,d==null||(y=d.classNames)==null?void 0:y.actionButton)},d.action.label):null)};function Ey(){if(typeof window>"u"||typeof document>"u")return"ltr";const s=document.documentElement.getAttribute("dir");return s==="auto"||!s?window.getComputedStyle(document.documentElement).direction:s}function Db(s,u){const i={};return[s,u].forEach((r,c)=>{const h=c===1,m=h?"--mobile-offset":"--offset",p=h?Rb:Eb;function g(y){["top","right","bottom","left"].forEach(b=>{i[`${m}-${b}`]=typeof y=="number"?`${y}px`:y})}typeof r=="number"||typeof r=="string"?g(r):typeof r=="object"?["top","right","bottom","left"].forEach(y=>{r[y]===void 0?i[`${m}-${y}`]=p:i[`${m}-${y}`]=typeof r[y]=="number"?`${r[y]}px`:r[y]}):g(p)}),i}const Cb=et.forwardRef(function(u,i){const{invert:r,position:c="bottom-right",hotkey:h=["altKey","KeyT"],expand:m,closeButton:p,className:g,offset:y,mobileOffset:b,theme:d="light",richColors:E,duration:x,style:N,visibleToasts:H=_b,toastOptions:L,dir:Y=Ey(),gap:F=Mb,icons:I,containerAriaLabel:ot="Notifications"}=u,[j,$]=et.useState([]),lt=et.useMemo(()=>Array.from(new Set([c].concat(j.filter(z=>z.position).map(z=>z.position)))),[j,c]),[U,M]=et.useState([]),[V,W]=et.useState(!1),[J,at]=et.useState(!1),[ct,st]=et.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),C=et.useRef(null),K=h.join("+").replace(/Key/g,"").replace(/Digit/g,""),tt=et.useRef(null),dt=et.useRef(!1),_=et.useCallback(z=>{$(Z=>{var X;return(X=Z.find(k=>k.id===z.id))!=null&&X.delete||Ue.dismiss(z.id),Z.filter(({id:k})=>k!==z.id)})},[]);return et.useEffect(()=>Ue.subscribe(z=>{if(z.dismiss){const Z=j.map(X=>X.id===z.id?{...X,delete:!0}:X);requestAnimationFrame(()=>{$(Z)});return}setTimeout(()=>{Gg.flushSync(()=>{$(Z=>{const X=Z.findIndex(k=>k.id===z.id);return X!==-1?[...Z.slice(0,X),{...Z[X],...z},...Z.slice(X+1)]:[z,...Z]})})})}),[j]),et.useEffect(()=>{if(d!=="system"){st(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?st("dark"):st("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Z})=>{st(Z?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{st(X?"dark":"light")}catch(k){console.error(k)}})}},[d]),et.useEffect(()=>{j.length<=1&&W(!1)},[j]),et.useEffect(()=>{const z=Z=>{var X;if(h.every(P=>Z[P]||Z.code===P)){var ht;W(!0),(ht=C.current)==null||ht.focus()}Z.code==="Escape"&&(document.activeElement===C.current||(X=C.current)!=null&&X.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[h]),et.useEffect(()=>{if(C.current)return()=>{tt.current&&(tt.current.focus({preventScroll:!0}),tt.current=null,dt.current=!1)}},[C.current]),et.createElement("section",{ref:i,"aria-label":`${ot} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},lt.map((z,Z)=>{var X;const[k,ht]=z.split("-");return j.length?et.createElement("ol",{key:z,dir:Y==="auto"?Ey():Y,tabIndex:-1,ref:C,className:g,"data-sonner-toaster":!0,"data-sonner-theme":ct,"data-y-position":k,"data-lifted":V&&j.length>1&&!m,"data-x-position":ht,style:{"--front-toast-height":`${((X=U[0])==null?void 0:X.height)||0}px`,"--width":`${Tb}px`,"--gap":`${F}px`,...N,...Db(y,b)},onBlur:P=>{dt.current&&!P.currentTarget.contains(P.relatedTarget)&&(dt.current=!1,tt.current&&(tt.current.focus({preventScroll:!0}),tt.current=null))},onFocus:P=>{P.target instanceof HTMLElement&&P.target.dataset.dismissible==="false"||dt.current||(dt.current=!0,tt.current=P.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{J||W(!1)},onDragEnd:()=>W(!1),onPointerDown:P=>{P.target instanceof HTMLElement&&P.target.dataset.dismissible==="false"||at(!0)},onPointerUp:()=>at(!1)},j.filter(P=>!P.position&&Z===0||P.position===z).map((P,Dt)=>{var ft,_t;return et.createElement(Ab,{key:P.id,icons:I,index:Dt,toast:P,defaultRichColors:E,duration:(ft=L==null?void 0:L.duration)!=null?ft:x,className:L==null?void 0:L.className,descriptionClassName:L==null?void 0:L.descriptionClassName,invert:r,visibleToasts:H,closeButton:(_t=L==null?void 0:L.closeButton)!=null?_t:p,interacting:J,position:z,style:L==null?void 0:L.style,unstyled:L==null?void 0:L.unstyled,classNames:L==null?void 0:L.classNames,cancelButtonStyle:L==null?void 0:L.cancelButtonStyle,actionButtonStyle:L==null?void 0:L.actionButtonStyle,closeButtonAriaLabel:L==null?void 0:L.closeButtonAriaLabel,removeToast:_,toasts:j.filter(Ot=>Ot.position==P.position),heights:U.filter(Ot=>Ot.position==P.position),setHeights:M,expandByDefault:m,gap:F,expanded:V,swipeDirections:u.swipeDirections})})):null}))}),zb=({...s})=>{const{theme:u="system"}=lb();return it.jsx(Cb,{theme:u,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground font-medium",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground font-medium"}},...s})};var wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},El=typeof window>"u"||"Deno"in globalThis;function un(){}function Ub(s,u){return typeof s=="function"?s(u):s}function Ic(s){return typeof s=="number"&&s>=0&&s!==1/0}function nv(s,u){return Math.max(s+(u||0)-Date.now(),0)}function di(s,u){return typeof s=="function"?s(u):s}function yn(s,u){return typeof s=="function"?s(u):s}function Ry(s,u){const{type:i="all",exact:r,fetchStatus:c,predicate:h,queryKey:m,stale:p}=s;if(m){if(r){if(u.queryHash!==bf(m,u.options))return!1}else if(!Us(u.queryKey,m))return!1}if(i!=="all"){const g=u.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof p=="boolean"&&u.isStale()!==p||c&&c!==u.state.fetchStatus||h&&!h(u))}function Ty(s,u){const{exact:i,status:r,predicate:c,mutationKey:h}=s;if(h){if(!u.options.mutationKey)return!1;if(i){if(Rl(u.options.mutationKey)!==Rl(h))return!1}else if(!Us(u.options.mutationKey,h))return!1}return!(r&&u.state.status!==r||c&&!c(u))}function bf(s,u){return((u==null?void 0:u.queryKeyHashFn)||Rl)(s)}function Rl(s){return JSON.stringify(s,(u,i)=>tf(i)?Object.keys(i).sort().reduce((r,c)=>(r[c]=i[c],r),{}):i)}function Us(s,u){return s===u?!0:typeof s!=typeof u?!1:s&&u&&typeof s=="object"&&typeof u=="object"?!Object.keys(u).some(i=>!Us(s[i],u[i])):!1}function av(s,u){if(s===u)return s;const i=My(s)&&My(u);if(i||tf(s)&&tf(u)){const r=i?s:Object.keys(s),c=r.length,h=i?u:Object.keys(u),m=h.length,p=i?[]:{};let g=0;for(let y=0;y<m;y++){const b=i?y:h[y];(!i&&r.includes(b)||i)&&s[b]===void 0&&u[b]===void 0?(p[b]=void 0,g++):(p[b]=av(s[b],u[b]),p[b]===s[b]&&s[b]!==void 0&&g++)}return c===m&&g===c?s:p}return u}function fr(s,u){if(!u||Object.keys(s).length!==Object.keys(u).length)return!1;for(const i in s)if(s[i]!==u[i])return!1;return!0}function My(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function tf(s){if(!Oy(s))return!1;const u=s.constructor;if(u===void 0)return!0;const i=u.prototype;return!(!Oy(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function Oy(s){return Object.prototype.toString.call(s)==="[object Object]"}function Nb(s){return new Promise(u=>{setTimeout(u,s)})}function ef(s,u,i){return typeof i.structuralSharing=="function"?i.structuralSharing(s,u):i.structuralSharing!==!1?av(s,u):u}function Hb(s,u,i=0){const r=[...s,u];return i&&r.length>i?r.slice(1):r}function Lb(s,u,i=0){const r=[u,...s];return i&&r.length>i?r.slice(0,-1):r}var Sf=Symbol();function lv(s,u){return!s.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!s.queryFn||s.queryFn===Sf?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var hl,Oa,hi,Uy,Bb=(Uy=class extends wi{constructor(){super();vt(this,hl);vt(this,Oa);vt(this,hi);nt(this,hi,u=>{if(!El&&window.addEventListener){const i=()=>u();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){R(this,Oa)||this.setEventListener(R(this,hi))}onUnsubscribe(){var u;this.hasListeners()||((u=R(this,Oa))==null||u.call(this),nt(this,Oa,void 0))}setEventListener(u){var i;nt(this,hi,u),(i=R(this,Oa))==null||i.call(this),nt(this,Oa,u(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(u){R(this,hl)!==u&&(nt(this,hl,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(i=>{i(u)})}isFocused(){var u;return typeof R(this,hl)=="boolean"?R(this,hl):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},hl=new WeakMap,Oa=new WeakMap,hi=new WeakMap,Uy),_f=new Bb,mi,xa,yi,Ny,jb=(Ny=class extends wi{constructor(){super();vt(this,mi,!0);vt(this,xa);vt(this,yi);nt(this,yi,u=>{if(!El&&window.addEventListener){const i=()=>u(!0),r=()=>u(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,xa)||this.setEventListener(R(this,yi))}onUnsubscribe(){var u;this.hasListeners()||((u=R(this,xa))==null||u.call(this),nt(this,xa,void 0))}setEventListener(u){var i;nt(this,yi,u),(i=R(this,xa))==null||i.call(this),nt(this,xa,u(this.setOnline.bind(this)))}setOnline(u){R(this,mi)!==u&&(nt(this,mi,u),this.listeners.forEach(r=>{r(u)}))}isOnline(){return R(this,mi)}},mi=new WeakMap,xa=new WeakMap,yi=new WeakMap,Ny),dr=new jb;function nf(){let s,u;const i=new Promise((c,h)=>{s=c,u=h});i.status="pending",i.catch(()=>{});function r(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{r({status:"fulfilled",value:c}),s(c)},i.reject=c=>{r({status:"rejected",reason:c}),u(c)},i}function qb(s){return Math.min(1e3*2**s,3e4)}function iv(s){return(s??"online")==="online"?dr.isOnline():!0}var sv=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function kc(s){return s instanceof sv}function uv(s){let u=!1,i=0,r=!1,c;const h=nf(),m=H=>{var L;r||(E(new sv(H)),(L=s.abort)==null||L.call(s))},p=()=>{u=!0},g=()=>{u=!1},y=()=>_f.isFocused()&&(s.networkMode==="always"||dr.isOnline())&&s.canRun(),b=()=>iv(s.networkMode)&&s.canRun(),d=H=>{var L;r||(r=!0,(L=s.onSuccess)==null||L.call(s,H),c==null||c(),h.resolve(H))},E=H=>{var L;r||(r=!0,(L=s.onError)==null||L.call(s,H),c==null||c(),h.reject(H))},x=()=>new Promise(H=>{var L;c=Y=>{(r||y())&&H(Y)},(L=s.onPause)==null||L.call(s)}).then(()=>{var H;c=void 0,r||(H=s.onContinue)==null||H.call(s)}),N=()=>{if(r)return;let H;const L=i===0?s.initialPromise:void 0;try{H=L??s.fn()}catch(Y){H=Promise.reject(Y)}Promise.resolve(H).then(d).catch(Y=>{var $;if(r)return;const F=s.retry??(El?0:3),I=s.retryDelay??qb,ot=typeof I=="function"?I(i,Y):I,j=F===!0||typeof F=="number"&&i<F||typeof F=="function"&&F(i,Y);if(u||!j){E(Y);return}i++,($=s.onFail)==null||$.call(s,i,Y),Nb(ot).then(()=>y()?void 0:x()).then(()=>{u?E(Y):N()})})};return{promise:h,cancel:m,continue:()=>(c==null||c(),h),cancelRetry:p,continueRetry:g,canStart:b,start:()=>(b()?N():x().then(N),h)}}function Qb(){let s=[],u=0,i=p=>{p()},r=p=>{p()},c=p=>setTimeout(p,0);const h=p=>{u?s.push(p):c(()=>{i(p)})},m=()=>{const p=s;s=[],p.length&&c(()=>{r(()=>{p.forEach(g=>{i(g)})})})};return{batch:p=>{let g;u++;try{g=p()}finally{u--,u||m()}return g},batchCalls:p=>(...g)=>{h(()=>{p(...g)})},schedule:h,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{r=p},setScheduler:p=>{c=p}}}var ae=Qb(),ml,Hy,rv=(Hy=class{constructor(){vt(this,ml)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ic(this.gcTime)&&nt(this,ml,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(El?1/0:5*60*1e3))}clearGcTimeout(){R(this,ml)&&(clearTimeout(R(this,ml)),nt(this,ml,void 0))}},ml=new WeakMap,Hy),vi,pi,ln,yl,pe,Ns,vl,hn,Jn,Ly,Yb=(Ly=class extends rv{constructor(u){super();vt(this,hn);vt(this,vi);vt(this,pi);vt(this,ln);vt(this,yl);vt(this,pe);vt(this,Ns);vt(this,vl);nt(this,vl,!1),nt(this,Ns,u.defaultOptions),this.setOptions(u.options),this.observers=[],nt(this,yl,u.client),nt(this,ln,R(this,yl).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,nt(this,vi,Gb(this.options)),this.state=u.state??R(this,vi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var u;return(u=R(this,pe))==null?void 0:u.promise}setOptions(u){this.options={...R(this,Ns),...u},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,ln).remove(this)}setData(u,i){const r=ef(this.state.data,u,this.options);return Et(this,hn,Jn).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(u,i){Et(this,hn,Jn).call(this,{type:"setState",state:u,setStateOptions:i})}cancel(u){var r,c;const i=(r=R(this,pe))==null?void 0:r.promise;return(c=R(this,pe))==null||c.cancel(u),i?i.then(un).catch(un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,vi))}isActive(){return this.observers.some(u=>yn(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Sf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(u=0){return this.state.isInvalidated||this.state.data===void 0||!nv(this.state.dataUpdatedAt,u)}onFocus(){var i;const u=this.observers.find(r=>r.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(i=R(this,pe))==null||i.continue()}onOnline(){var i;const u=this.observers.find(r=>r.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(i=R(this,pe))==null||i.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),R(this,ln).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(i=>i!==u),this.observers.length||(R(this,pe)&&(R(this,vl)?R(this,pe).cancel({revert:!0}):R(this,pe).cancelRetry()),this.scheduleGc()),R(this,ln).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Et(this,hn,Jn).call(this,{type:"invalidate"})}fetch(u,i){var g,y,b;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(R(this,pe))return R(this,pe).continueRetry(),R(this,pe).promise}if(u&&this.setOptions(u),!this.options.queryFn){const d=this.observers.find(E=>E.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,c=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(nt(this,vl,!0),r.signal)})},h=()=>{const d=lv(this.options,i),E={client:R(this,yl),queryKey:this.queryKey,meta:this.meta};return c(E),nt(this,vl,!1),this.options.persister?this.options.persister(d,E,this):d(E)},m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:R(this,yl),state:this.state,fetchFn:h};c(m),(g=this.options.behavior)==null||g.onFetch(m,this),nt(this,pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=m.fetchOptions)==null?void 0:y.meta))&&Et(this,hn,Jn).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta});const p=d=>{var E,x,N,H;kc(d)&&d.silent||Et(this,hn,Jn).call(this,{type:"error",error:d}),kc(d)||((x=(E=R(this,ln).config).onError)==null||x.call(E,d,this),(H=(N=R(this,ln).config).onSettled)==null||H.call(N,this.state.data,d,this)),this.scheduleGc()};return nt(this,pe,uv({initialPromise:i==null?void 0:i.initialPromise,fn:m.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var E,x,N,H;if(d===void 0){p(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(L){p(L);return}(x=(E=R(this,ln).config).onSuccess)==null||x.call(E,d,this),(H=(N=R(this,ln).config).onSettled)==null||H.call(N,d,this.state.error,this),this.scheduleGc()},onError:p,onFail:(d,E)=>{Et(this,hn,Jn).call(this,{type:"failed",failureCount:d,error:E})},onPause:()=>{Et(this,hn,Jn).call(this,{type:"pause"})},onContinue:()=>{Et(this,hn,Jn).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0})),R(this,pe).start()}},vi=new WeakMap,pi=new WeakMap,ln=new WeakMap,yl=new WeakMap,pe=new WeakMap,Ns=new WeakMap,vl=new WeakMap,hn=new WeakSet,Jn=function(u){const i=r=>{switch(u.type){case"failed":return{...r,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ov(r.data,this.options),fetchMeta:u.meta??null};case"success":return{...r,data:u.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:u.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=u.error;return kc(c)&&c.revert&&R(this,pi)?{...R(this,pi),fetchStatus:"idle"}:{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...u.state}}};this.state=i(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,ln).notify({query:this,type:"updated",action:u})})},Ly);function ov(s,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iv(u.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function Gb(s){const u=typeof s.initialData=="function"?s.initialData():s.initialData,i=u!==void 0,r=i?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var xn,By,Vb=(By=class extends wi{constructor(u={}){super();vt(this,xn);this.config=u,nt(this,xn,new Map)}build(u,i,r){const c=i.queryKey,h=i.queryHash??bf(c,i);let m=this.get(h);return m||(m=new Yb({client:u,queryKey:c,queryHash:h,options:u.defaultQueryOptions(i),state:r,defaultOptions:u.getQueryDefaults(c)}),this.add(m)),m}add(u){R(this,xn).has(u.queryHash)||(R(this,xn).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const i=R(this,xn).get(u.queryHash);i&&(u.destroy(),i===u&&R(this,xn).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){ae.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return R(this,xn).get(u)}getAll(){return[...R(this,xn).values()]}find(u){const i={exact:!0,...u};return this.getAll().find(r=>Ry(i,r))}findAll(u={}){const i=this.getAll();return Object.keys(u).length>0?i.filter(r=>Ry(u,r)):i}notify(u){ae.batch(()=>{this.listeners.forEach(i=>{i(u)})})}onFocus(){ae.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){ae.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},xn=new WeakMap,By),wn,Me,pl,An,Ma,jy,Xb=(jy=class extends rv{constructor(u){super();vt(this,An);vt(this,wn);vt(this,Me);vt(this,pl);this.mutationId=u.mutationId,nt(this,Me,u.mutationCache),nt(this,wn,[]),this.state=u.state||cv(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){R(this,wn).includes(u)||(R(this,wn).push(u),this.clearGcTimeout(),R(this,Me).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){nt(this,wn,R(this,wn).filter(i=>i!==u)),this.scheduleGc(),R(this,Me).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){R(this,wn).length||(this.state.status==="pending"?this.scheduleGc():R(this,Me).remove(this))}continue(){var u;return((u=R(this,pl))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var c,h,m,p,g,y,b,d,E,x,N,H,L,Y,F,I,ot,j,$,lt;nt(this,pl,uv({fn:()=>this.options.mutationFn?this.options.mutationFn(u):Promise.reject(new Error("No mutationFn found")),onFail:(U,M)=>{Et(this,An,Ma).call(this,{type:"failed",failureCount:U,error:M})},onPause:()=>{Et(this,An,Ma).call(this,{type:"pause"})},onContinue:()=>{Et(this,An,Ma).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Me).canRun(this)}));const i=this.state.status==="pending",r=!R(this,pl).canStart();try{if(!i){Et(this,An,Ma).call(this,{type:"pending",variables:u,isPaused:r}),await((h=(c=R(this,Me).config).onMutate)==null?void 0:h.call(c,u,this));const M=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,u));M!==this.state.context&&Et(this,An,Ma).call(this,{type:"pending",context:M,variables:u,isPaused:r})}const U=await R(this,pl).start();return await((y=(g=R(this,Me).config).onSuccess)==null?void 0:y.call(g,U,u,this.state.context,this)),await((d=(b=this.options).onSuccess)==null?void 0:d.call(b,U,u,this.state.context)),await((x=(E=R(this,Me).config).onSettled)==null?void 0:x.call(E,U,null,this.state.variables,this.state.context,this)),await((H=(N=this.options).onSettled)==null?void 0:H.call(N,U,null,u,this.state.context)),Et(this,An,Ma).call(this,{type:"success",data:U}),U}catch(U){try{throw await((Y=(L=R(this,Me).config).onError)==null?void 0:Y.call(L,U,u,this.state.context,this)),await((I=(F=this.options).onError)==null?void 0:I.call(F,U,u,this.state.context)),await((j=(ot=R(this,Me).config).onSettled)==null?void 0:j.call(ot,void 0,U,this.state.variables,this.state.context,this)),await((lt=($=this.options).onSettled)==null?void 0:lt.call($,void 0,U,u,this.state.context)),U}finally{Et(this,An,Ma).call(this,{type:"error",error:U})}}finally{R(this,Me).runNext(this)}}},wn=new WeakMap,Me=new WeakMap,pl=new WeakMap,An=new WeakSet,Ma=function(u){const i=r=>{switch(u.type){case"failed":return{...r,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...r,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:u.error,failureCount:r.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ae.batch(()=>{R(this,wn).forEach(r=>{r.onMutationUpdate(u)}),R(this,Me).notify({mutation:this,type:"updated",action:u})})},jy);function cv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $n,mn,Hs,qy,Kb=(qy=class extends wi{constructor(u={}){super();vt(this,$n);vt(this,mn);vt(this,Hs);this.config=u,nt(this,$n,new Set),nt(this,mn,new Map),nt(this,Hs,0)}build(u,i,r){const c=new Xb({mutationCache:this,mutationId:++Ju(this,Hs)._,options:u.defaultMutationOptions(i),state:r});return this.add(c),c}add(u){R(this,$n).add(u);const i=er(u);if(typeof i=="string"){const r=R(this,mn).get(i);r?r.push(u):R(this,mn).set(i,[u])}this.notify({type:"added",mutation:u})}remove(u){if(R(this,$n).delete(u)){const i=er(u);if(typeof i=="string"){const r=R(this,mn).get(i);if(r)if(r.length>1){const c=r.indexOf(u);c!==-1&&r.splice(c,1)}else r[0]===u&&R(this,mn).delete(i)}}this.notify({type:"removed",mutation:u})}canRun(u){const i=er(u);if(typeof i=="string"){const r=R(this,mn).get(i),c=r==null?void 0:r.find(h=>h.state.status==="pending");return!c||c===u}else return!0}runNext(u){var r;const i=er(u);if(typeof i=="string"){const c=(r=R(this,mn).get(i))==null?void 0:r.find(h=>h!==u&&h.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ae.batch(()=>{R(this,$n).forEach(u=>{this.notify({type:"removed",mutation:u})}),R(this,$n).clear(),R(this,mn).clear()})}getAll(){return Array.from(R(this,$n))}find(u){const i={exact:!0,...u};return this.getAll().find(r=>Ty(i,r))}findAll(u={}){return this.getAll().filter(i=>Ty(u,i))}notify(u){ae.batch(()=>{this.listeners.forEach(i=>{i(u)})})}resumePausedMutations(){const u=this.getAll().filter(i=>i.state.isPaused);return ae.batch(()=>Promise.all(u.map(i=>i.continue().catch(un))))}},$n=new WeakMap,mn=new WeakMap,Hs=new WeakMap,qy);function er(s){var u;return(u=s.options.scope)==null?void 0:u.id}function hr(s){return{onFetch:(u,i)=>{var b,d,E,x,N;const r=u.options,c=(E=(d=(b=u.fetchOptions)==null?void 0:b.meta)==null?void 0:d.fetchMore)==null?void 0:E.direction,h=((x=u.state.data)==null?void 0:x.pages)||[],m=((N=u.state.data)==null?void 0:N.pageParams)||[];let p={pages:[],pageParams:[]},g=0;const y=async()=>{let H=!1;const L=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(u.signal.aborted?H=!0:u.signal.addEventListener("abort",()=>{H=!0}),u.signal)})},Y=lv(u.options,u.fetchOptions),F=async(I,ot,j)=>{if(H)return Promise.reject();if(ot==null&&I.pages.length)return Promise.resolve(I);const $={client:u.client,queryKey:u.queryKey,pageParam:ot,direction:j?"backward":"forward",meta:u.options.meta};L($);const lt=await Y($),{maxPages:U}=u.options,M=j?Lb:Hb;return{pages:M(I.pages,lt,U),pageParams:M(I.pageParams,ot,U)}};if(c&&h.length){const I=c==="backward",ot=I?fv:af,j={pages:h,pageParams:m},$=ot(r,j);p=await F(j,$,I)}else{const I=s??h.length;do{const ot=g===0?m[0]??r.initialPageParam:af(r,p);if(g>0&&ot==null)break;p=await F(p,ot),g++}while(g<I)}return p};u.options.persister?u.fetchFn=()=>{var H,L;return(L=(H=u.options).persister)==null?void 0:L.call(H,y,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},i)}:u.fetchFn=y}}}function af(s,{pages:u,pageParams:i}){const r=u.length-1;return u.length>0?s.getNextPageParam(u[r],u,i[r],i):void 0}function fv(s,{pages:u,pageParams:i}){var r;return u.length>0?(r=s.getPreviousPageParam)==null?void 0:r.call(s,u[0],u,i[0],i):void 0}function Zb(s,u){return u?af(s,u)!=null:!1}function kb(s,u){return!u||!s.getPreviousPageParam?!1:fv(s,u)!=null}var Ft,wa,Aa,gi,bi,Da,Si,_i,Qy,Fb=(Qy=class{constructor(s={}){vt(this,Ft);vt(this,wa);vt(this,Aa);vt(this,gi);vt(this,bi);vt(this,Da);vt(this,Si);vt(this,_i);nt(this,Ft,s.queryCache||new Vb),nt(this,wa,s.mutationCache||new Kb),nt(this,Aa,s.defaultOptions||{}),nt(this,gi,new Map),nt(this,bi,new Map),nt(this,Da,0)}mount(){Ju(this,Da)._++,R(this,Da)===1&&(nt(this,Si,_f.subscribe(async s=>{s&&(await this.resumePausedMutations(),R(this,Ft).onFocus())})),nt(this,_i,dr.subscribe(async s=>{s&&(await this.resumePausedMutations(),R(this,Ft).onOnline())})))}unmount(){var s,u;Ju(this,Da)._--,R(this,Da)===0&&((s=R(this,Si))==null||s.call(this),nt(this,Si,void 0),(u=R(this,_i))==null||u.call(this),nt(this,_i,void 0))}isFetching(s){return R(this,Ft).findAll({...s,fetchStatus:"fetching"}).length}isMutating(s){return R(this,wa).findAll({...s,status:"pending"}).length}getQueryData(s){var i;const u=this.defaultQueryOptions({queryKey:s});return(i=R(this,Ft).get(u.queryHash))==null?void 0:i.state.data}ensureQueryData(s){const u=this.defaultQueryOptions(s),i=R(this,Ft).build(this,u),r=i.state.data;return r===void 0?this.fetchQuery(s):(s.revalidateIfStale&&i.isStaleByTime(di(u.staleTime,i))&&this.prefetchQuery(u),Promise.resolve(r))}getQueriesData(s){return R(this,Ft).findAll(s).map(({queryKey:u,state:i})=>{const r=i.data;return[u,r]})}setQueryData(s,u,i){const r=this.defaultQueryOptions({queryKey:s}),c=R(this,Ft).get(r.queryHash),h=c==null?void 0:c.state.data,m=Ub(u,h);if(m!==void 0)return R(this,Ft).build(this,r).setData(m,{...i,manual:!0})}setQueriesData(s,u,i){return ae.batch(()=>R(this,Ft).findAll(s).map(({queryKey:r})=>[r,this.setQueryData(r,u,i)]))}getQueryState(s){var i;const u=this.defaultQueryOptions({queryKey:s});return(i=R(this,Ft).get(u.queryHash))==null?void 0:i.state}removeQueries(s){const u=R(this,Ft);ae.batch(()=>{u.findAll(s).forEach(i=>{u.remove(i)})})}resetQueries(s,u){const i=R(this,Ft);return ae.batch(()=>(i.findAll(s).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...s},u)))}cancelQueries(s,u={}){const i={revert:!0,...u},r=ae.batch(()=>R(this,Ft).findAll(s).map(c=>c.cancel(i)));return Promise.all(r).then(un).catch(un)}invalidateQueries(s,u={}){return ae.batch(()=>(R(this,Ft).findAll(s).forEach(i=>{i.invalidate()}),(s==null?void 0:s.refetchType)==="none"?Promise.resolve():this.refetchQueries({...s,type:(s==null?void 0:s.refetchType)??(s==null?void 0:s.type)??"active"},u)))}refetchQueries(s,u={}){const i={...u,cancelRefetch:u.cancelRefetch??!0},r=ae.batch(()=>R(this,Ft).findAll(s).filter(c=>!c.isDisabled()).map(c=>{let h=c.fetch(void 0,i);return i.throwOnError||(h=h.catch(un)),c.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(r).then(un)}fetchQuery(s){const u=this.defaultQueryOptions(s);u.retry===void 0&&(u.retry=!1);const i=R(this,Ft).build(this,u);return i.isStaleByTime(di(u.staleTime,i))?i.fetch(u):Promise.resolve(i.state.data)}prefetchQuery(s){return this.fetchQuery(s).then(un).catch(un)}fetchInfiniteQuery(s){return s.behavior=hr(s.pages),this.fetchQuery(s)}prefetchInfiniteQuery(s){return this.fetchInfiniteQuery(s).then(un).catch(un)}ensureInfiniteQueryData(s){return s.behavior=hr(s.pages),this.ensureQueryData(s)}resumePausedMutations(){return dr.isOnline()?R(this,wa).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ft)}getMutationCache(){return R(this,wa)}getDefaultOptions(){return R(this,Aa)}setDefaultOptions(s){nt(this,Aa,s)}setQueryDefaults(s,u){R(this,gi).set(Rl(s),{queryKey:s,defaultOptions:u})}getQueryDefaults(s){const u=[...R(this,gi).values()],i={};return u.forEach(r=>{Us(s,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(s,u){R(this,bi).set(Rl(s),{mutationKey:s,defaultOptions:u})}getMutationDefaults(s){const u=[...R(this,bi).values()],i={};return u.forEach(r=>{Us(s,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(s){if(s._defaulted)return s;const u={...R(this,Aa).queries,...this.getQueryDefaults(s.queryKey),...s,_defaulted:!0};return u.queryHash||(u.queryHash=bf(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Sf&&(u.enabled=!1),u}defaultMutationOptions(s){return s!=null&&s._defaulted?s:{...R(this,Aa).mutations,...(s==null?void 0:s.mutationKey)&&this.getMutationDefaults(s.mutationKey),...s,_defaulted:!0}}clear(){R(this,Ft).clear(),R(this,wa).clear()}},Ft=new WeakMap,wa=new WeakMap,Aa=new WeakMap,gi=new WeakMap,bi=new WeakMap,Da=new WeakMap,Si=new WeakMap,_i=new WeakMap,Qy),Ce,wt,Ls,Oe,gl,Ei,Ca,Dn,Bs,Ri,Ti,bl,Sl,za,Mi,Ut,As,lf,sf,uf,rf,of,cf,ff,dv,Yy,Ef=(Yy=class extends wi{constructor(u,i){super();vt(this,Ut);vt(this,Ce);vt(this,wt);vt(this,Ls);vt(this,Oe);vt(this,gl);vt(this,Ei);vt(this,Ca);vt(this,Dn);vt(this,Bs);vt(this,Ri);vt(this,Ti);vt(this,bl);vt(this,Sl);vt(this,za);vt(this,Mi,new Set);this.options=i,nt(this,Ce,u),nt(this,Dn,null),nt(this,Ca,nf()),this.options.experimental_prefetchInRender||R(this,Ca).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,wt).addObserver(this),xy(R(this,wt),this.options)?Et(this,Ut,As).call(this):this.updateResult(),Et(this,Ut,rf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return df(R(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return df(R(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Et(this,Ut,of).call(this),Et(this,Ut,cf).call(this),R(this,wt).removeObserver(this)}setOptions(u,i){const r=this.options,c=R(this,wt);if(this.options=R(this,Ce).defaultQueryOptions(u),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof yn(this.options.enabled,R(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Et(this,Ut,ff).call(this),R(this,wt).setOptions(this.options),r._defaulted&&!fr(this.options,r)&&R(this,Ce).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,wt),observer:this});const h=this.hasListeners();h&&wy(R(this,wt),c,this.options,r)&&Et(this,Ut,As).call(this),this.updateResult(i),h&&(R(this,wt)!==c||yn(this.options.enabled,R(this,wt))!==yn(r.enabled,R(this,wt))||di(this.options.staleTime,R(this,wt))!==di(r.staleTime,R(this,wt)))&&Et(this,Ut,lf).call(this);const m=Et(this,Ut,sf).call(this);h&&(R(this,wt)!==c||yn(this.options.enabled,R(this,wt))!==yn(r.enabled,R(this,wt))||m!==R(this,za))&&Et(this,Ut,uf).call(this,m)}getOptimisticResult(u){const i=R(this,Ce).getQueryCache().build(R(this,Ce),u),r=this.createResult(i,u);return $b(this,r)&&(nt(this,Oe,r),nt(this,Ei,this.options),nt(this,gl,R(this,wt).state)),r}getCurrentResult(){return R(this,Oe)}trackResult(u,i){const r={};return Object.keys(u).forEach(c=>{Object.defineProperty(r,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),i==null||i(c),u[c])})}),r}trackProp(u){R(this,Mi).add(u)}getCurrentQuery(){return R(this,wt)}refetch({...u}={}){return this.fetch({...u})}fetchOptimistic(u){const i=R(this,Ce).defaultQueryOptions(u),r=R(this,Ce).getQueryCache().build(R(this,Ce),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(u){return Et(this,Ut,As).call(this,{...u,cancelRefetch:u.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Oe)))}createResult(u,i){var U;const r=R(this,wt),c=this.options,h=R(this,Oe),m=R(this,gl),p=R(this,Ei),y=u!==r?u.state:R(this,Ls),{state:b}=u;let d={...b},E=!1,x;if(i._optimisticResults){const M=this.hasListeners(),V=!M&&xy(u,i),W=M&&wy(u,r,i,c);(V||W)&&(d={...d,...ov(b.data,u.options)}),i._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:N,errorUpdatedAt:H,status:L}=d;if(i.select&&d.data!==void 0)if(h&&d.data===(m==null?void 0:m.data)&&i.select===R(this,Bs))x=R(this,Ri);else try{nt(this,Bs,i.select),x=i.select(d.data),x=ef(h==null?void 0:h.data,x,i),nt(this,Ri,x),nt(this,Dn,null)}catch(M){nt(this,Dn,M)}else x=d.data;if(i.placeholderData!==void 0&&x===void 0&&L==="pending"){let M;if(h!=null&&h.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData))M=h.data;else if(M=typeof i.placeholderData=="function"?i.placeholderData((U=R(this,Ti))==null?void 0:U.state.data,R(this,Ti)):i.placeholderData,i.select&&M!==void 0)try{M=i.select(M),nt(this,Dn,null)}catch(V){nt(this,Dn,V)}M!==void 0&&(L="success",x=ef(h==null?void 0:h.data,M,i),E=!0)}R(this,Dn)&&(N=R(this,Dn),x=R(this,Ri),H=Date.now(),L="error");const Y=d.fetchStatus==="fetching",F=L==="pending",I=L==="error",ot=F&&Y,j=x!==void 0,lt={status:L,fetchStatus:d.fetchStatus,isPending:F,isSuccess:L==="success",isError:I,isInitialLoading:ot,isLoading:ot,data:x,dataUpdatedAt:d.dataUpdatedAt,error:N,errorUpdatedAt:H,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>y.dataUpdateCount||d.errorUpdateCount>y.errorUpdateCount,isFetching:Y,isRefetching:Y&&!F,isLoadingError:I&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:I&&j,isStale:Rf(u,i),refetch:this.refetch,promise:R(this,Ca)};if(this.options.experimental_prefetchInRender){const M=J=>{lt.status==="error"?J.reject(lt.error):lt.data!==void 0&&J.resolve(lt.data)},V=()=>{const J=nt(this,Ca,lt.promise=nf());M(J)},W=R(this,Ca);switch(W.status){case"pending":u.queryHash===r.queryHash&&M(W);break;case"fulfilled":(lt.status==="error"||lt.data!==W.value)&&V();break;case"rejected":(lt.status!=="error"||lt.error!==W.reason)&&V();break}}return lt}updateResult(u){const i=R(this,Oe),r=this.createResult(R(this,wt),this.options);if(nt(this,gl,R(this,wt).state),nt(this,Ei,this.options),R(this,gl).data!==void 0&&nt(this,Ti,R(this,wt)),fr(r,i))return;nt(this,Oe,r);const c={},h=()=>{if(!i)return!0;const{notifyOnChangeProps:m}=this.options,p=typeof m=="function"?m():m;if(p==="all"||!p&&!R(this,Mi).size)return!0;const g=new Set(p??R(this,Mi));return this.options.throwOnError&&g.add("error"),Object.keys(R(this,Oe)).some(y=>{const b=y;return R(this,Oe)[b]!==i[b]&&g.has(b)})};(u==null?void 0:u.listeners)!==!1&&h()&&(c.listeners=!0),Et(this,Ut,dv).call(this,{...c,...u})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Et(this,Ut,rf).call(this)}},Ce=new WeakMap,wt=new WeakMap,Ls=new WeakMap,Oe=new WeakMap,gl=new WeakMap,Ei=new WeakMap,Ca=new WeakMap,Dn=new WeakMap,Bs=new WeakMap,Ri=new WeakMap,Ti=new WeakMap,bl=new WeakMap,Sl=new WeakMap,za=new WeakMap,Mi=new WeakMap,Ut=new WeakSet,As=function(u){Et(this,Ut,ff).call(this);let i=R(this,wt).fetch(this.options,u);return u!=null&&u.throwOnError||(i=i.catch(un)),i},lf=function(){Et(this,Ut,of).call(this);const u=di(this.options.staleTime,R(this,wt));if(El||R(this,Oe).isStale||!Ic(u))return;const r=nv(R(this,Oe).dataUpdatedAt,u)+1;nt(this,bl,setTimeout(()=>{R(this,Oe).isStale||this.updateResult()},r))},sf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,wt)):this.options.refetchInterval)??!1},uf=function(u){Et(this,Ut,cf).call(this),nt(this,za,u),!(El||yn(this.options.enabled,R(this,wt))===!1||!Ic(R(this,za))||R(this,za)===0)&&nt(this,Sl,setInterval(()=>{(this.options.refetchIntervalInBackground||_f.isFocused())&&Et(this,Ut,As).call(this)},R(this,za)))},rf=function(){Et(this,Ut,lf).call(this),Et(this,Ut,uf).call(this,Et(this,Ut,sf).call(this))},of=function(){R(this,bl)&&(clearTimeout(R(this,bl)),nt(this,bl,void 0))},cf=function(){R(this,Sl)&&(clearInterval(R(this,Sl)),nt(this,Sl,void 0))},ff=function(){const u=R(this,Ce).getQueryCache().build(R(this,Ce),this.options);if(u===R(this,wt))return;const i=R(this,wt);nt(this,wt,u),nt(this,Ls,u.state),this.hasListeners()&&(i==null||i.removeObserver(this),u.addObserver(this))},dv=function(u){ae.batch(()=>{u.listeners&&this.listeners.forEach(i=>{i(R(this,Oe))}),R(this,Ce).getQueryCache().notify({query:R(this,wt),type:"observerResultsUpdated"})})},Yy);function Jb(s,u){return yn(u.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&u.retryOnMount===!1)}function xy(s,u){return Jb(s,u)||s.state.data!==void 0&&df(s,u,u.refetchOnMount)}function df(s,u,i){if(yn(u.enabled,s)!==!1){const r=typeof i=="function"?i(s):i;return r==="always"||r!==!1&&Rf(s,u)}return!1}function wy(s,u,i,r){return(s!==u||yn(r.enabled,s)===!1)&&(!i.suspense||s.state.status!=="error")&&Rf(s,i)}function Rf(s,u){return yn(u.enabled,s)!==!1&&s.isStaleByTime(di(u.staleTime,s))}function $b(s,u){return!fr(s.getCurrentResult(),u)}var Pb=class extends Ef{constructor(s,u){super(s,u)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(s,u){super.setOptions({...s,behavior:hr()},u)}getOptimisticResult(s){return s.behavior=hr(),super.getOptimisticResult(s)}fetchNextPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"backward"}}})}createResult(s,u){var N,H;const{state:i}=s,r=super.createResult(s,u),{isFetching:c,isRefetching:h,isError:m,isRefetchError:p}=r,g=(H=(N=i.fetchMeta)==null?void 0:N.fetchMore)==null?void 0:H.direction,y=m&&g==="forward",b=c&&g==="forward",d=m&&g==="backward",E=c&&g==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Zb(u,i.data),hasPreviousPage:kb(u,i.data),isFetchNextPageError:y,isFetchingNextPage:b,isFetchPreviousPageError:d,isFetchingPreviousPage:E,isRefetchError:p&&!y&&!d,isRefetching:h&&!b&&!E}}},Ua,Na,ze,Pn,In,lr,hf,Gy,Wb=(Gy=class extends wi{constructor(i,r){super();vt(this,In);vt(this,Ua);vt(this,Na);vt(this,ze);vt(this,Pn);nt(this,Ua,i),this.setOptions(r),this.bindMethods(),Et(this,In,lr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const r=this.options;this.options=R(this,Ua).defaultMutationOptions(i),fr(this.options,r)||R(this,Ua).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,ze),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Rl(r.mutationKey)!==Rl(this.options.mutationKey)?this.reset():((c=R(this,ze))==null?void 0:c.state.status)==="pending"&&R(this,ze).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=R(this,ze))==null||i.removeObserver(this)}onMutationUpdate(i){Et(this,In,lr).call(this),Et(this,In,hf).call(this,i)}getCurrentResult(){return R(this,Na)}reset(){var i;(i=R(this,ze))==null||i.removeObserver(this),nt(this,ze,void 0),Et(this,In,lr).call(this),Et(this,In,hf).call(this)}mutate(i,r){var c;return nt(this,Pn,r),(c=R(this,ze))==null||c.removeObserver(this),nt(this,ze,R(this,Ua).getMutationCache().build(R(this,Ua),this.options)),R(this,ze).addObserver(this),R(this,ze).execute(i)}},Ua=new WeakMap,Na=new WeakMap,ze=new WeakMap,Pn=new WeakMap,In=new WeakSet,lr=function(){var r;const i=((r=R(this,ze))==null?void 0:r.state)??cv();nt(this,Na,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},hf=function(i){ae.batch(()=>{var r,c,h,m,p,g,y,b;if(R(this,Pn)&&this.hasListeners()){const d=R(this,Na).variables,E=R(this,Na).context;(i==null?void 0:i.type)==="success"?((c=(r=R(this,Pn)).onSuccess)==null||c.call(r,i.data,d,E),(m=(h=R(this,Pn)).onSettled)==null||m.call(h,i.data,null,d,E)):(i==null?void 0:i.type)==="error"&&((g=(p=R(this,Pn)).onError)==null||g.call(p,i.error,d,E),(b=(y=R(this,Pn)).onSettled)==null||b.call(y,void 0,i.error,d,E))}this.listeners.forEach(d=>{d(R(this,Na))})})},Gy),hv=rt.createContext(void 0),mv=s=>{const u=rt.useContext(hv);if(s)return s;if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},Ib=({client:s,children:u})=>(rt.useEffect(()=>(s.mount(),()=>{s.unmount()}),[s]),it.jsx(hv.Provider,{value:s,children:u})),yv=rt.createContext(!1),t1=()=>rt.useContext(yv);yv.Provider;function e1(){let s=!1;return{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s}}var n1=rt.createContext(e1()),a1=()=>rt.useContext(n1);function vv(s,u){return typeof s=="function"?s(...u):!!s}function mf(){}var l1=(s,u)=>{(s.suspense||s.throwOnError||s.experimental_prefetchInRender)&&(u.isReset()||(s.retryOnMount=!1))},i1=s=>{rt.useEffect(()=>{s.clearReset()},[s])},s1=({result:s,errorResetBoundary:u,throwOnError:i,query:r,suspense:c})=>s.isError&&!u.isReset()&&!s.isFetching&&r&&(c&&s.data===void 0||vv(i,[s.error,r])),u1=(s,u)=>u.state.data===void 0,r1=s=>{const u=s.staleTime;s.suspense&&(s.staleTime=typeof u=="function"?(...i)=>Math.max(u(...i),1e3):Math.max(u??1e3,1e3),typeof s.gcTime=="number"&&(s.gcTime=Math.max(s.gcTime,1e3)))},o1=(s,u)=>s.isLoading&&s.isFetching&&!u,c1=(s,u)=>(s==null?void 0:s.suspense)&&u.isPending,Ay=(s,u,i)=>u.fetchOptimistic(s).catch(()=>{i.clearReset()});function Tf(s,u,i){var d,E,x,N,H;const r=mv(i),c=t1(),h=a1(),m=r.defaultQueryOptions(s);(E=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||E.call(d,m),m._optimisticResults=c?"isRestoring":"optimistic",r1(m),l1(m,h),i1(h);const p=!r.getQueryCache().get(m.queryHash),[g]=rt.useState(()=>new u(r,m)),y=g.getOptimisticResult(m),b=!c&&s.subscribed!==!1;if(rt.useSyncExternalStore(rt.useCallback(L=>{const Y=b?g.subscribe(ae.batchCalls(L)):mf;return g.updateResult(),Y},[g,b]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),rt.useEffect(()=>{g.setOptions(m,{listeners:!1})},[m,g]),c1(m,y))throw Ay(m,g,h);if(s1({result:y,errorResetBoundary:h,throwOnError:m.throwOnError,query:r.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw y.error;if((N=(x=r.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||N.call(x,m,y),m.experimental_prefetchInRender&&!El&&o1(y,c)){const L=p?Ay(m,g,h):(H=r.getQueryCache().get(m.queryHash))==null?void 0:H.promise;L==null||L.catch(mf).finally(()=>{g.updateResult()})}return m.notifyOnChangeProps?y:g.trackResult(y)}function f1(s,u){return Tf(s,Ef,u)}function d1(s,u){return Tf({...s,enabled:!0,suspense:!0,throwOnError:u1,placeholderData:void 0},Ef,u)}function h1(s,u){const i=mv(u),[r]=rt.useState(()=>new Wb(i,s));rt.useEffect(()=>{r.setOptions(s)},[r,s]);const c=rt.useSyncExternalStore(rt.useCallback(m=>r.subscribe(ae.batchCalls(m)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),h=rt.useCallback((m,p)=>{r.mutate(m,p).catch(mf)},[r]);if(c.error&&vv(r.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:h,mutateAsync:c.mutate}}function m1(s,u){return Tf(s,Pb,u)}const y1=new Fb,pv=Mg({component:()=>it.jsx(tb,{defaultTheme:"dark",storageKey:"ui-theme",children:it.jsxs(Ib,{client:y1,children:[it.jsx(zb,{position:"top-center"}),it.jsx(gf,{})]})})}),v1="modulepreload",p1=function(s){return"/chat/"+s},Dy={},Tl=function(u,i,r){let c=Promise.resolve();if(i&&i.length>0){let m=function(y){return Promise.all(y.map(b=>Promise.resolve(b).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),g=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));c=m(i.map(y=>{if(y=p1(y),y in Dy)return;Dy[y]=!0;const b=y.endsWith(".css"),d=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${d}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":v1,b||(E.as="script"),E.crossOrigin="",E.href=y,g&&E.setAttribute("nonce",g),document.head.appendChild(E),b)return new Promise((x,N)=>{E.addEventListener("load",x),E.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${y}`)))})}))}function h(m){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=m,window.dispatchEvent(p),!p.defaultPrevented)throw m}return c.then(m=>{for(const p of m||[])p.status==="rejected"&&h(p.reason);return u().catch(h)})},g1=()=>Tl(()=>import("./_layout-De5ZKK5G.js"),__vite__mapDeps([0,1,2])),gv=gr("/_chat/_layout")({component:_l(g1,"component",()=>gv.ssr)}),b1=/\{[^{}]+\}/g,S1=()=>{var s,u;return typeof process=="object"&&Number.parseInt((u=(s=process==null?void 0:process.versions)==null?void 0:s.node)==null?void 0:u.substring(0,2))>=18&&process.versions.undici};function _1(){return Math.random().toString(36).slice(2,11)}function bv(s){let{baseUrl:u="",Request:i=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:c,bodySerializer:h,headers:m,requestInitExt:p=void 0,...g}={...s};p=S1()?p:void 0,u=zy(u);const y=[];async function b(d,E){const{baseUrl:x,fetch:N=r,Request:H=i,headers:L,params:Y={},parseAs:F="json",querySerializer:I,bodySerializer:ot=h??R1,body:j,...$}=E||{};x&&(u=zy(x));let lt=typeof c=="function"?c:Cy(c);I&&(lt=typeof I=="function"?I:Cy({...typeof c=="object"?c:{},...I}));const U=j===void 0?void 0:ot(j),M=U===void 0||U instanceof FormData?{}:{"Content-Type":"application/json"},V={redirect:"follow",...g,...$,body:U,headers:M1(M,m,L,Y.header)};let W,J,at=new i(T1(d,{baseUrl:u,params:Y,querySerializer:lt}),V);for(const C in $)C in at||(at[C]=$[C]);if(y.length){W=_1(),J=Object.freeze({baseUrl:u,fetch:N,parseAs:F,querySerializer:lt,bodySerializer:ot});for(const C of y)if(C&&typeof C=="object"&&typeof C.onRequest=="function"){const K=await C.onRequest({request:at,schemaPath:d,params:Y,options:J,id:W});if(K){if(!(K instanceof i))throw new Error("onRequest: must return new Request() when modifying the request");at=K}}}let ct;try{ct=await N(at,p)}catch(C){let K=C;if(y.length)for(let tt=y.length-1;tt>=0;tt--){const dt=y[tt];if(dt&&typeof dt=="object"&&typeof dt.onError=="function"){const _=await dt.onError({request:at,error:K,schemaPath:d,params:Y,options:J,id:W});if(_){if(_ instanceof Response){K=void 0,ct=_;break}if(_ instanceof Error){K=_;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(K)throw K}if(y.length)for(let C=y.length-1;C>=0;C--){const K=y[C];if(K&&typeof K=="object"&&typeof K.onResponse=="function"){const tt=await K.onResponse({request:at,response:ct,schemaPath:d,params:Y,options:J,id:W});if(tt){if(!(tt instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");ct=tt}}}if(ct.status===204||ct.headers.get("Content-Length")==="0")return ct.ok?{data:void 0,response:ct}:{error:void 0,response:ct};if(ct.ok)return F==="stream"?{data:ct.body,response:ct}:{data:await ct[F](),response:ct};let st=await ct.text();try{st=JSON.parse(st)}catch{}return{error:st,response:ct}}return{request(d,E,x){return b(E,{...x,method:d.toUpperCase()})},GET(d,E){return b(d,{...E,method:"GET"})},PUT(d,E){return b(d,{...E,method:"PUT"})},POST(d,E){return b(d,{...E,method:"POST"})},DELETE(d,E){return b(d,{...E,method:"DELETE"})},OPTIONS(d,E){return b(d,{...E,method:"OPTIONS"})},HEAD(d,E){return b(d,{...E,method:"HEAD"})},PATCH(d,E){return b(d,{...E,method:"PATCH"})},TRACE(d,E){return b(d,{...E,method:"TRACE"})},use(...d){for(const E of d)if(E){if(typeof E!="object"||!("onRequest"in E||"onResponse"in E||"onError"in E))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");y.push(E)}},eject(...d){for(const E of d){const x=y.indexOf(E);x!==-1&&y.splice(x,1)}}}}function br(s,u,i){if(u==null)return"";if(typeof u=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${s}=${(i==null?void 0:i.allowReserved)===!0?u:encodeURIComponent(u)}`}function Sv(s,u,i){if(!u||typeof u!="object")return"";const r=[],c={simple:",",label:".",matrix:";"}[i.style]||"&";if(i.style!=="deepObject"&&i.explode===!1){for(const p in u)r.push(p,i.allowReserved===!0?u[p]:encodeURIComponent(u[p]));const m=r.join(",");switch(i.style){case"form":return`${s}=${m}`;case"label":return`.${m}`;case"matrix":return`;${s}=${m}`;default:return m}}for(const m in u){const p=i.style==="deepObject"?`${s}[${m}]`:m;r.push(br(p,u[m],i))}const h=r.join(c);return i.style==="label"||i.style==="matrix"?`${c}${h}`:h}function _v(s,u,i){if(!Array.isArray(u))return"";if(i.explode===!1){const h={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[i.style]||",",m=(i.allowReserved===!0?u:u.map(p=>encodeURIComponent(p))).join(h);switch(i.style){case"simple":return m;case"label":return`.${m}`;case"matrix":return`;${s}=${m}`;default:return`${s}=${m}`}}const r={simple:",",label:".",matrix:";"}[i.style]||"&",c=[];for(const h of u)i.style==="simple"||i.style==="label"?c.push(i.allowReserved===!0?h:encodeURIComponent(h)):c.push(br(s,h,i));return i.style==="label"||i.style==="matrix"?`${r}${c.join(r)}`:c.join(r)}function Cy(s){return function(i){const r=[];if(i&&typeof i=="object")for(const c in i){const h=i[c];if(h!=null){if(Array.isArray(h)){if(h.length===0)continue;r.push(_v(c,h,{style:"form",explode:!0,...s==null?void 0:s.array,allowReserved:(s==null?void 0:s.allowReserved)||!1}));continue}if(typeof h=="object"){r.push(Sv(c,h,{style:"deepObject",explode:!0,...s==null?void 0:s.object,allowReserved:(s==null?void 0:s.allowReserved)||!1}));continue}r.push(br(c,h,s))}}return r.join("&")}}function E1(s,u){let i=s;for(const r of s.match(b1)??[]){let c=r.substring(1,r.length-1),h=!1,m="simple";if(c.endsWith("*")&&(h=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(m="label",c=c.substring(1)):c.startsWith(";")&&(m="matrix",c=c.substring(1)),!u||u[c]===void 0||u[c]===null)continue;const p=u[c];if(Array.isArray(p)){i=i.replace(r,_v(c,p,{style:m,explode:h}));continue}if(typeof p=="object"){i=i.replace(r,Sv(c,p,{style:m,explode:h}));continue}if(m==="matrix"){i=i.replace(r,`;${br(c,p)}`);continue}i=i.replace(r,m==="label"?`.${encodeURIComponent(p)}`:encodeURIComponent(p))}return i}function R1(s){return s instanceof FormData?s:JSON.stringify(s)}function T1(s,u){var c;let i=`${u.baseUrl}${s}`;(c=u.params)!=null&&c.path&&(i=E1(i,u.params.path));let r=u.querySerializer(u.params.query??{});return r.startsWith("?")&&(r=r.substring(1)),r&&(i+=`?${r}`),i}function M1(...s){const u=new Headers;for(const i of s){if(!i||typeof i!="object")continue;const r=i instanceof Headers?i.entries():Object.entries(i);for(const[c,h]of r)if(h===null)u.delete(c);else if(Array.isArray(h))for(const m of h)u.append(c,m);else h!==void 0&&u.set(c,h)}return u}function zy(s){return s.endsWith("/")?s.substring(0,s.length-1):s}function O1(s){const u=async({queryKey:[r,c,h],signal:m})=>{const p=r.toUpperCase(),g=s[p],{data:y,error:b}=await g(c,{signal:m,...h});if(b)throw b;return y},i=(r,c,...[h,m])=>({queryKey:h===void 0?[r,c]:[r,c,h],queryFn:u,...m});return{queryOptions:i,useQuery:(r,c,...[h,m,p])=>f1(i(r,c,h,m),p),useSuspenseQuery:(r,c,...[h,m,p])=>d1(i(r,c,h,m),p),useInfiniteQuery:(r,c,h,m,p)=>{const{pageParamName:g="cursor",...y}=m,{queryKey:b}=i(r,c,h);return m1({queryKey:b,queryFn:async({queryKey:[d,E,x],pageParam:N=0,signal:H})=>{var j;const L=d.toUpperCase(),Y=s[L],F={...x,signal:H,params:{...(x==null?void 0:x.params)||{},query:{...(j=x==null?void 0:x.params)==null?void 0:j.query,[g]:N}}},{data:I,error:ot}=await Y(E,F);if(ot)throw ot;return I},...y},p)},useMutation:(r,c,h,m)=>h1({mutationKey:[r,c],mutationFn:async p=>{const g=r.toUpperCase(),y=s[g],{data:b,error:d}=await y(c,p);if(d)throw d;return b},...h},m)}}const x1=async(s,u)=>{const i=await fetch(s,u);if(!i.ok)throw{detail:(await i.json()).detail||"An error occurred"};return i},mr=bv({baseUrl:"/",fetch:x1}),w1=bv({baseUrl:"/"}),eS=O1(w1),A1=()=>Tl(()=>import("./index-CLxOGfT0.js"),__vite__mapDeps([3,4,1])),D1=()=>Tl(()=>import("./index-DDAypnch.js"),[]),Ev=gr("/_chat/_layout/")({loader:async()=>({agents:await mr.GET("/api/agents")}),errorComponent:_l(D1,"errorComponent"),component:_l(A1,"component",()=>Ev.ssr)}),C1=()=>Tl(()=>import("./_sessionId-DnCQsqNc.js"),__vite__mapDeps([5,6,2,4,1])),z1=()=>Tl(()=>import("./_sessionId-tIvosvcZ.js"),[]),Rv=gr("/_chat/_layout/session/$sessionId")({loader:async({params:{sessionId:s}})=>{const u=await mr.GET("/api/sessions/{session_id}",{params:{path:{session_id:s}}}),i=await mr.GET("/api/sessions/{session_id}/events",{params:{path:{session_id:s}}});return{session:u,events:i}},errorComponent:_l(z1,"errorComponent"),component:_l(C1,"component",()=>Rv.ssr)}),U1=()=>Tl(()=>import("./_agentId-CERAas0y.js"),__vite__mapDeps([7,6,2,4,1])),N1=()=>Tl(()=>import("./_agentId-CRKUCv0_.js"),[]),Tv=gr("/_chat/_layout/agent/$agentId")({loader:async({params:{agentId:s}})=>({agent:await mr.GET("/api/agents/{agent_id}",{params:{path:{agent_id:s}}})}),errorComponent:_l(N1,"errorComponent"),component:_l(U1,"component",()=>Tv.ssr)}),Sr=gv.update({id:"/_chat/_layout",getParentRoute:()=>pv}),H1=Ev.update({id:"/",path:"/",getParentRoute:()=>Sr}),L1=Rv.update({id:"/session/$sessionId",path:"/session/$sessionId",getParentRoute:()=>Sr}),B1=Tv.update({id:"/agent/$agentId",path:"/agent/$agentId",getParentRoute:()=>Sr}),j1={ChatLayoutIndexRoute:H1,ChatLayoutAgentAgentIdRoute:B1,ChatLayoutSessionSessionIdRoute:L1},q1=Sr._addFileChildren(j1),Q1={ChatLayoutRoute:q1},Y1=pv._addFileChildren(Q1)._addFileTypes(),G1=kg({routeTree:Y1});function V1(){return it.jsx(Wg,{router:G1,basepath:"/chat"})}const Mv=document.getElementById("root");if(!Mv)throw new Error("No container element");Kp.createRoot(Mv).render(it.jsx(rt.StrictMode,{children:it.jsx(V1,{})}));export{eS as $,vr as E,gf as O,et as R,W1 as a,Eg as b,Ev as c,Rv as d,Tv as e,mv as f,Vy as g,mr as h,K1 as i,it as j,ta as k,$1 as l,He as m,P1 as n,J1 as o,Iu as p,xs as q,rt as r,k1 as s,I1 as t,Sg as u,dy as v,Ds as w,Yg as x,Z1 as y,Gg as z};
