172 lines
355 KiB
JavaScript
172 lines
355 KiB
JavaScript
var Hy=l=>{throw TypeError(l)};var zo=(l,i,u)=>i.has(l)||Hy("Cannot "+u);var E=(l,i,u)=>(zo(l,i,"read from private field"),u?u.call(l):i.get(l)),te=(l,i,u)=>i.has(l)?Hy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,u),J=(l,i,u,r)=>(zo(l,i,"write to private field"),r?r.call(l,u):i.set(l,u),u),de=(l,i,u)=>(zo(l,i,"access private method"),u);var ks=(l,i,u,r)=>({set _(o){J(l,i,o,u)},get _(){return E(l,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function u(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=u(o);fetch(o.href,f)}})();function Yp(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Do={exports:{}},lu={};/**
|
|
* @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 By;function vb(){if(By)return lu;By=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:l,type:r,key:h,ref:o!==void 0?o:null,props:f}}return lu.Fragment=i,lu.jsx=u,lu.jsxs=u,lu}var Qy;function bb(){return Qy||(Qy=1,Do.exports=vb()),Do.exports}var m=bb(),Mo={exports:{}},re={};/**
|
|
* @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 Gy;function xb(){if(Gy)return re;Gy=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function L(R){return R===null||typeof R!="object"?null:(R=w&&R[w]||R["@@iterator"],typeof R=="function"?R:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,j={};function B(R,G,Z){this.props=R,this.context=G,this.refs=j,this.updater=Z||N}B.prototype.isReactComponent={},B.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,G,"setState")},B.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function X(){}X.prototype=B.prototype;function Y(R,G,Z){this.props=R,this.context=G,this.refs=j,this.updater=Z||N}var K=Y.prototype=new X;K.constructor=Y,z(K,B.prototype),K.isPureReactComponent=!0;var F=Array.isArray;function ae(){}var $={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function fe(R,G,Z){var W=Z.ref;return{$$typeof:l,type:R,key:G,ref:W!==void 0?W:null,props:Z}}function je(R,G){return fe(R.type,G,R.props)}function Qe(R){return typeof R=="object"&&R!==null&&R.$$typeof===l}function qe(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return G[Z]})}var Ie=/\/+/g;function Le(R,G){return typeof R=="object"&&R!==null&&R.key!=null?qe(""+R.key):G.toString(36)}function _e(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ae,ae):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,G,Z,W,se){var he=typeof R;(he==="undefined"||he==="boolean")&&(R=null);var Ne=!1;if(R===null)Ne=!0;else switch(he){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(R.$$typeof){case l:case i:Ne=!0;break;case x:return Ne=R._init,q(Ne(R._payload),G,Z,W,se)}}if(Ne)return se=se(R),Ne=W===""?"."+Le(R,0):W,F(se)?(Z="",Ne!=null&&(Z=Ne.replace(Ie,"$&/")+"/"),q(se,G,Z,"",function(fi){return fi})):se!=null&&(Qe(se)&&(se=je(se,Z+(se.key==null||R&&R.key===se.key?"":(""+se.key).replace(Ie,"$&/")+"/")+Ne)),G.push(se)),1;Ne=0;var ht=W===""?".":W+":";if(F(R))for(var Ve=0;Ve<R.length;Ve++)W=R[Ve],he=ht+Le(W,Ve),Ne+=q(W,G,Z,he,se);else if(Ve=L(R),typeof Ve=="function")for(R=Ve.call(R),Ve=0;!(W=R.next()).done;)W=W.value,he=ht+Le(W,Ve++),Ne+=q(W,G,Z,he,se);else if(he==="object"){if(typeof R.then=="function")return q(_e(R),G,Z,W,se);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function V(R,G,Z){if(R==null)return R;var W=[],se=0;return q(R,W,"","",function(he){return G.call(Z,he,se++)}),W}function ee(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var Re=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},Oe={map:V,forEach:function(R,G,Z){V(R,function(){G.apply(this,arguments)},Z)},count:function(R){var G=0;return V(R,function(){G++}),G},toArray:function(R){return V(R,function(G){return G})||[]},only:function(R){if(!Qe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return re.Activity=b,re.Children=Oe,re.Component=B,re.Fragment=u,re.Profiler=o,re.PureComponent=Y,re.StrictMode=r,re.Suspense=v,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,re.__COMPILER_RUNTIME={__proto__:null,c:function(R){return $.H.useMemoCache(R)}},re.cache=function(R){return function(){return R.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(R,G,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var W=z({},R.props),se=R.key;if(G!=null)for(he in G.key!==void 0&&(se=""+G.key),G)!le.call(G,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&G.ref===void 0||(W[he]=G[he]);var he=arguments.length-2;if(he===1)W.children=Z;else if(1<he){for(var Ne=Array(he),ht=0;ht<he;ht++)Ne[ht]=arguments[ht+2];W.children=Ne}return fe(R.type,se,W)},re.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},re.createElement=function(R,G,Z){var W,se={},he=null;if(G!=null)for(W in G.key!==void 0&&(he=""+G.key),G)le.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(se[W]=G[W]);var Ne=arguments.length-2;if(Ne===1)se.children=Z;else if(1<Ne){for(var ht=Array(Ne),Ve=0;Ve<Ne;Ve++)ht[Ve]=arguments[Ve+2];se.children=ht}if(R&&R.defaultProps)for(W in Ne=R.defaultProps,Ne)se[W]===void 0&&(se[W]=Ne[W]);return fe(R,he,se)},re.createRef=function(){return{current:null}},re.forwardRef=function(R){return{$$typeof:g,render:R}},re.isValidElement=Qe,re.lazy=function(R){return{$$typeof:x,_payload:{_status:-1,_result:R},_init:ee}},re.memo=function(R,G){return{$$typeof:p,type:R,compare:G===void 0?null:G}},re.startTransition=function(R){var G=$.T,Z={};$.T=Z;try{var W=R(),se=$.S;se!==null&&se(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ae,Re)}catch(he){Re(he)}finally{G!==null&&Z.types!==null&&(G.types=Z.types),$.T=G}},re.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},re.use=function(R){return $.H.use(R)},re.useActionState=function(R,G,Z){return $.H.useActionState(R,G,Z)},re.useCallback=function(R,G){return $.H.useCallback(R,G)},re.useContext=function(R){return $.H.useContext(R)},re.useDebugValue=function(){},re.useDeferredValue=function(R,G){return $.H.useDeferredValue(R,G)},re.useEffect=function(R,G){return $.H.useEffect(R,G)},re.useEffectEvent=function(R){return $.H.useEffectEvent(R)},re.useId=function(){return $.H.useId()},re.useImperativeHandle=function(R,G,Z){return $.H.useImperativeHandle(R,G,Z)},re.useInsertionEffect=function(R,G){return $.H.useInsertionEffect(R,G)},re.useLayoutEffect=function(R,G){return $.H.useLayoutEffect(R,G)},re.useMemo=function(R,G){return $.H.useMemo(R,G)},re.useOptimistic=function(R,G){return $.H.useOptimistic(R,G)},re.useReducer=function(R,G,Z){return $.H.useReducer(R,G,Z)},re.useRef=function(R){return $.H.useRef(R)},re.useState=function(R){return $.H.useState(R)},re.useSyncExternalStore=function(R,G,Z){return $.H.useSyncExternalStore(R,G,Z)},re.useTransition=function(){return $.H.useTransition()},re.version="19.2.4",re}var ky;function vf(){return ky||(ky=1,Mo.exports=xb()),Mo.exports}var O=vf();const Sb=Yp(O);var Uo={exports:{}},iu={},qo={exports:{}},Lo={};/**
|
|
* @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 Yy;function Eb(){return Yy||(Yy=1,(function(l){function i(q,V){var ee=q.length;q.push(V);e:for(;0<ee;){var Re=ee-1>>>1,Oe=q[Re];if(0<o(Oe,V))q[Re]=V,q[ee]=Oe,ee=Re;else break e}}function u(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var V=q[0],ee=q.pop();if(ee!==V){q[0]=ee;e:for(var Re=0,Oe=q.length,R=Oe>>>1;Re<R;){var G=2*(Re+1)-1,Z=q[G],W=G+1,se=q[W];if(0>o(Z,ee))W<Oe&&0>o(se,Z)?(q[Re]=se,q[W]=ee,Re=W):(q[Re]=Z,q[G]=ee,Re=G);else if(W<Oe&&0>o(se,ee))q[Re]=se,q[W]=ee,Re=W;else break e}}return V}function o(q,V){var ee=q.sortIndex-V.sortIndex;return ee!==0?ee:q.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var v=[],p=[],x=1,b=null,w=3,L=!1,N=!1,z=!1,j=!1,B=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function K(q){for(var V=u(p);V!==null;){if(V.callback===null)r(p);else if(V.startTime<=q)r(p),V.sortIndex=V.expirationTime,i(v,V);else break;V=u(p)}}function F(q){if(z=!1,K(q),!N)if(u(v)!==null)N=!0,ae||(ae=!0,qe());else{var V=u(p);V!==null&&_e(F,V.startTime-q)}}var ae=!1,$=-1,le=5,fe=-1;function je(){return j?!0:!(l.unstable_now()-fe<le)}function Qe(){if(j=!1,ae){var q=l.unstable_now();fe=q;var V=!0;try{e:{N=!1,z&&(z=!1,X($),$=-1),L=!0;var ee=w;try{t:{for(K(q),b=u(v);b!==null&&!(b.expirationTime>q&&je());){var Re=b.callback;if(typeof Re=="function"){b.callback=null,w=b.priorityLevel;var Oe=Re(b.expirationTime<=q);if(q=l.unstable_now(),typeof Oe=="function"){b.callback=Oe,K(q),V=!0;break t}b===u(v)&&r(v),K(q)}else r(v);b=u(v)}if(b!==null)V=!0;else{var R=u(p);R!==null&&_e(F,R.startTime-q),V=!1}}break e}finally{b=null,w=ee,L=!1}V=void 0}}finally{V?qe():ae=!1}}}var qe;if(typeof Y=="function")qe=function(){Y(Qe)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,Le=Ie.port2;Ie.port1.onmessage=Qe,qe=function(){Le.postMessage(null)}}else qe=function(){B(Qe,0)};function _e(q,V){$=B(function(){q(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(q){q.callback=null},l.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<q?Math.floor(1e3/q):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(q){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var ee=w;w=V;try{return q()}finally{w=ee}},l.unstable_requestPaint=function(){j=!0},l.unstable_runWithPriority=function(q,V){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=w;w=q;try{return V()}finally{w=ee}},l.unstable_scheduleCallback=function(q,V,ee){var Re=l.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Re+ee:Re):ee=Re,q){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=ee+Oe,q={id:x++,callback:V,priorityLevel:q,startTime:ee,expirationTime:Oe,sortIndex:-1},ee>Re?(q.sortIndex=ee,i(p,q),u(v)===null&&q===u(p)&&(z?(X($),$=-1):z=!0,_e(F,ee-Re))):(q.sortIndex=Oe,i(v,q),N||L||(N=!0,ae||(ae=!0,qe()))),q},l.unstable_shouldYield=je,l.unstable_wrapCallback=function(q){var V=w;return function(){var ee=w;w=V;try{return q.apply(this,arguments)}finally{w=ee}}}})(Lo)),Lo}var Ky;function Rb(){return Ky||(Ky=1,qo.exports=Eb()),qo.exports}var Ho={exports:{}},ot={};/**
|
|
* @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 Xy;function Ab(){if(Xy)return ot;Xy=1;var l=vf();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(v,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:v,containerInfo:p,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ot.createPortal=function(v,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(v,p,null,x)},ot.flushSync=function(v){var p=h.T,x=r.p;try{if(h.T=null,r.p=2,v)return v()}finally{h.T=p,r.p=x,r.d.f()}},ot.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(v,p))},ot.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},ot.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,b=g(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?r.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:L}):x==="script"&&r.d.X(v,{crossOrigin:b,integrity:w,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ot.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=g(p.as,p.crossOrigin);r.d.M(v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(v)},ot.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=g(x,p.crossOrigin);r.d.L(v,x,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ot.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=g(p.as,p.crossOrigin);r.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(v)},ot.requestFormReset=function(v){r.d.r(v)},ot.unstable_batchedUpdates=function(v,p){return v(p)},ot.useFormState=function(v,p,x){return h.H.useFormState(v,p,x)},ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},ot.version="19.2.4",ot}var Vy;function Nb(){if(Vy)return Ho.exports;Vy=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Ho.exports=Ab(),Ho.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 Zy;function Tb(){if(Zy)return iu;Zy=1;var l=Rb(),i=vf(),u=Nb();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,n=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(n=s.return,n!==null){a=n;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return v(s),e;if(c===n)return v(s),t;c=c.sibling}throw Error(r(188))}if(a.return!==n.return)a=s,n=c;else{for(var d=!1,y=s.child;y;){if(y===a){d=!0,a=s,n=c;break}if(y===n){d=!0,n=s,a=c;break}y=y.sibling}if(!d){for(y=c.child;y;){if(y===a){d=!0,a=c,n=s;break}if(y===n){d=!0,n=c,a=s;break}y=y.sibling}if(!d)throw Error(r(189))}}if(a.alternate!==n)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),je=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=Qe&&e[Qe]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case B:return"Profiler";case j:return"StrictMode";case F:return"Suspense";case ae:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var _e=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Re=[],Oe=-1;function R(e){return{current:e}}function G(e){0>Oe||(e.current=Re[Oe],Re[Oe]=null,Oe--)}function Z(e,t){Oe++,Re[Oe]=e.current,e.current=t}var W=R(null),se=R(null),he=R(null),Ne=R(null);function ht(e,t){switch(Z(he,t),Z(se,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sy(t),e=ry(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),Z(W,e)}function Ve(){G(W),G(se),G(he)}function fi(e){e.memoizedState!==null&&Z(Ne,e);var t=W.current,a=ry(t,e.type);t!==a&&(Z(se,e),Z(W,a))}function Au(e){se.current===e&&(G(W),G(se)),Ne.current===e&&(G(Ne),eu._currentValue=ee)}var hr,Lf;function On(e){if(hr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);hr=t&&t[1]||"",Lf=-1<a.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+hr+e+Lf}var mr=!1;function yr(e,t){if(!e||mr)return"";mr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(U){var D=U}Reflect.construct(e,[],k)}else{try{k.call()}catch(U){D=U}e.call(k.prototype)}}else{try{throw Error()}catch(U){D=U}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(U){if(U&&D&&typeof U.stack=="string")return[U.stack,D.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=n.DetermineComponentFrameRoot(),d=c[0],y=c[1];if(d&&y){var S=d.split(`
|
|
`),_=y.split(`
|
|
`);for(s=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;s<_.length&&!_[s].includes("DetermineComponentFrameRoot");)s++;if(n===S.length||s===_.length)for(n=S.length-1,s=_.length-1;1<=n&&0<=s&&S[n]!==_[s];)s--;for(;1<=n&&0<=s;n--,s--)if(S[n]!==_[s]){if(n!==1||s!==1)do if(n--,s--,0>s||S[n]!==_[s]){var H=`
|
|
`+S[n].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=n&&0<=s);break}}}finally{mr=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?On(a):""}function F0(e,t){switch(e.tag){case 26:case 27:case 5:return On(e.type);case 16:return On("Lazy");case 13:return e.child!==t&&t!==null?On("Suspense Fallback"):On("Suspense");case 19:return On("SuspenseList");case 0:case 15:return yr(e.type,!1);case 11:return yr(e.type.render,!1);case 1:return yr(e.type,!0);case 31:return On("Activity");default:return""}}function Hf(e){try{var t="",a=null;do t+=F0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var pr=Object.prototype.hasOwnProperty,gr=l.unstable_scheduleCallback,vr=l.unstable_cancelCallback,$0=l.unstable_shouldYield,W0=l.unstable_requestPaint,wt=l.unstable_now,P0=l.unstable_getCurrentPriorityLevel,Bf=l.unstable_ImmediatePriority,Qf=l.unstable_UserBlockingPriority,Nu=l.unstable_NormalPriority,I0=l.unstable_LowPriority,Gf=l.unstable_IdlePriority,eg=l.log,tg=l.unstable_setDisableYieldValue,di=null,Ct=null;function Xa(e){if(typeof eg=="function"&&tg(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(di,e)}catch{}}var _t=Math.clz32?Math.clz32:lg,ag=Math.log,ng=Math.LN2;function lg(e){return e>>>=0,e===0?32:31-(ag(e)/ng|0)|0}var Tu=256,ju=262144,Ou=4194304;function wn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wu(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=n&134217727;return y!==0?(n=y&~c,n!==0?s=wn(n):(d&=y,d!==0?s=wn(d):a||(a=y&~e,a!==0&&(s=wn(a))))):(y=n&~c,y!==0?s=wn(y):d!==0?s=wn(d):a||(a=n&~e,a!==0&&(s=wn(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function hi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ig(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kf(){var e=Ou;return Ou<<=1,(Ou&62914560)===0&&(Ou=4194304),e}function br(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function mi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ug(e,t,a,n,s,c){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(a=d&~a;0<a;){var H=31-_t(a),k=1<<H;y[H]=0,S[H]=-1;var D=_[H];if(D!==null)for(_[H]=null,H=0;H<D.length;H++){var U=D[H];U!==null&&(U.lane&=-536870913)}a&=~k}n!==0&&Yf(e,n,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function Yf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-_t(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Kf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-_t(a),s=1<<n;s&t|e[n]&t&&(e[n]|=t),a&=~s}}function Xf(e,t){var a=t&-t;return a=(a&42)!==0?1:xr(a),(a&(e.suspendedLanes|t))!==0?0:a}function xr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Sr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vf(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:_y(e.type))}function Zf(e,t){var a=V.p;try{return V.p=e,t()}finally{V.p=a}}var Va=Math.random().toString(36).slice(2),it="__reactFiber$"+Va,gt="__reactProps$"+Va,rl="__reactContainer$"+Va,Er="__reactEvents$"+Va,sg="__reactListeners$"+Va,rg="__reactHandles$"+Va,Jf="__reactResources$"+Va,yi="__reactMarker$"+Va;function Rr(e){delete e[it],delete e[gt],delete e[Er],delete e[sg],delete e[rg]}function cl(e){var t=e[it];if(t)return t;for(var a=e.parentNode;a;){if(t=a[rl]||a[it]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=yy(e);e!==null;){if(a=e[it])return a;e=yy(e)}return t}e=a,a=e.parentNode}return null}function ol(e){if(e=e[it]||e[rl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fl(e){var t=e[Jf];return t||(t=e[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[yi]=!0}var Ff=new Set,$f={};function Cn(e,t){dl(e,t),dl(e+"Capture",t)}function dl(e,t){for($f[e]=t,e=0;e<t.length;e++)Ff.add(t[e])}var cg=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={},Pf={};function og(e){return pr.call(Pf,e)?!0:pr.call(Wf,e)?!1:cg.test(e)?Pf[e]=!0:(Wf[e]=!0,!1)}function Cu(e,t,a){if(og(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function _u(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ba(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function If(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fg(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){a=""+d,c.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ar(e){if(!e._valueTracker){var t=If(e)?"checked":"value";e._valueTracker=fg(e,t,""+e[t])}}function ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=If(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function zu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dg=/[\n"\\]/g;function Gt(e){return e.replace(dg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nr(e,t,a,n,s,c,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Tr(e,d,Qt(t)):a!=null?Tr(e,d,Qt(a)):n!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Qt(y):e.removeAttribute("name")}function td(e,t,a,n,s,c,d,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ar(e);return}a=a!=null?""+Qt(a):"",t=t!=null?""+Qt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}n=n??s,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=y?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Ar(e)}function Tr(e,t,a){t==="number"&&zu(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function hl(e,t,a,n){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Qt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ad(e,t,a){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Qt(a):""}function nd(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(r(92));if(_e(n)){if(1<n.length)throw Error(r(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Qt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Ar(e)}function ml(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var hg=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 ld(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||hg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function id(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var s in t)n=t[s],t.hasOwnProperty(s)&&a[s]!==n&&ld(e,s,n)}else for(var c in t)t.hasOwnProperty(c)&&ld(e,c,t[c])}function jr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mg=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"]]),yg=/^[\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 Du(e){return yg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xa(){}var Or=null;function wr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yl=null,pl=null;function ud(e){var t=ol(e);if(t&&(e=t.stateNode)){var a=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var s=n[gt]||null;if(!s)throw Error(r(90));Nr(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&ed(n)}break e;case"textarea":ad(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&hl(e,!!a.multiple,t,!1)}}}var Cr=!1;function sd(e,t,a){if(Cr)return e(t,a);Cr=!0;try{var n=e(t);return n}finally{if(Cr=!1,(yl!==null||pl!==null)&&(xs(),yl&&(t=yl,e=pl,pl=yl=null,ud(t),e)))for(t=0;t<e.length;t++)ud(e[t])}}function gi(e,t){var a=e.stateNode;if(a===null)return null;var n=a[gt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_r=!1;if(Sa)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){_r=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{_r=!1}var Za=null,zr=null,Mu=null;function rd(){if(Mu)return Mu;var e,t=zr,a=t.length,n,s="value"in Za?Za.value:Za.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===s[c-n];n++);return Mu=s.slice(e,1<n?1-n:void 0)}function Uu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qu(){return!0}function cd(){return!1}function vt(e){function t(a,n,s,c,d){this._reactName=a,this._targetInst=s,this.type=n,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?qu:cd,this.isPropagationStopped=cd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=qu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=qu)},persist:function(){},isPersistent:qu}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lu=vt(_n),bi=b({},_n,{view:0,detail:0}),pg=vt(bi),Dr,Mr,xi,Hu=b({},bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xi&&(xi&&e.type==="mousemove"?(Dr=e.screenX-xi.screenX,Mr=e.screenY-xi.screenY):Mr=Dr=0,xi=e),Dr)},movementY:function(e){return"movementY"in e?e.movementY:Mr}}),od=vt(Hu),gg=b({},Hu,{dataTransfer:0}),vg=vt(gg),bg=b({},bi,{relatedTarget:0}),Ur=vt(bg),xg=b({},_n,{animationName:0,elapsedTime:0,pseudoElement:0}),Sg=vt(xg),Eg=b({},_n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rg=vt(Eg),Ag=b({},_n,{data:0}),fd=vt(Ag),Ng={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tg={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"},jg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Og(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jg[e])?!!t[e]:!1}function qr(){return Og}var wg=b({},bi,{key:function(e){if(e.key){var t=Ng[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qr,charCode:function(e){return e.type==="keypress"?Uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cg=vt(wg),_g=b({},Hu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=vt(_g),zg=b({},bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qr}),Dg=vt(zg),Mg=b({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ug=vt(Mg),qg=b({},Hu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lg=vt(qg),Hg=b({},_n,{newState:0,oldState:0}),Bg=vt(Hg),Qg=[9,13,27,32],Lr=Sa&&"CompositionEvent"in window,Si=null;Sa&&"documentMode"in document&&(Si=document.documentMode);var Gg=Sa&&"TextEvent"in window&&!Si,hd=Sa&&(!Lr||Si&&8<Si&&11>=Si),md=" ",yd=!1;function pd(e,t){switch(e){case"keyup":return Qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gl=!1;function kg(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(yd=!0,md);case"textInput":return e=t.data,e===md&&yd?null:e;default:return null}}function Yg(e,t){if(gl)return e==="compositionend"||!Lr&&pd(e,t)?(e=rd(),Mu=zr=Za=null,gl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return hd&&t.locale!=="ko"?null:t.data;default:return null}}var Kg={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 vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Kg[e.type]:t==="textarea"}function bd(e,t,a,n){yl?pl?pl.push(n):pl=[n]:yl=n,t=js(t,"onChange"),0<t.length&&(a=new Lu("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Ei=null,Ri=null;function Xg(e){ty(e,0)}function Bu(e){var t=pi(e);if(ed(t))return e}function xd(e,t){if(e==="change")return t}var Sd=!1;if(Sa){var Hr;if(Sa){var Br="oninput"in document;if(!Br){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),Br=typeof Ed.oninput=="function"}Hr=Br}else Hr=!1;Sd=Hr&&(!document.documentMode||9<document.documentMode)}function Rd(){Ei&&(Ei.detachEvent("onpropertychange",Ad),Ri=Ei=null)}function Ad(e){if(e.propertyName==="value"&&Bu(Ri)){var t=[];bd(t,Ri,e,wr(e)),sd(Xg,t)}}function Vg(e,t,a){e==="focusin"?(Rd(),Ei=t,Ri=a,Ei.attachEvent("onpropertychange",Ad)):e==="focusout"&&Rd()}function Zg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bu(Ri)}function Jg(e,t){if(e==="click")return Bu(t)}function Fg(e,t){if(e==="input"||e==="change")return Bu(t)}function $g(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:$g;function Ai(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var s=a[n];if(!pr.call(t,s)||!zt(e[s],t[s]))return!1}return!0}function Nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Td(e,t){var a=Nd(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Nd(a)}}function jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Od(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zu(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=zu(e.document)}return t}function Qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Wg=Sa&&"documentMode"in document&&11>=document.documentMode,vl=null,Gr=null,Ni=null,kr=!1;function wd(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;kr||vl==null||vl!==zu(n)||(n=vl,"selectionStart"in n&&Qr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ni&&Ai(Ni,n)||(Ni=n,n=js(Gr,"onSelect"),0<n.length&&(t=new Lu("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=vl)))}function zn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var bl={animationend:zn("Animation","AnimationEnd"),animationiteration:zn("Animation","AnimationIteration"),animationstart:zn("Animation","AnimationStart"),transitionrun:zn("Transition","TransitionRun"),transitionstart:zn("Transition","TransitionStart"),transitioncancel:zn("Transition","TransitionCancel"),transitionend:zn("Transition","TransitionEnd")},Yr={},Cd={};Sa&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete bl.animationend.animation,delete bl.animationiteration.animation,delete bl.animationstart.animation),"TransitionEvent"in window||delete bl.transitionend.transition);function Dn(e){if(Yr[e])return Yr[e];if(!bl[e])return e;var t=bl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Cd)return Yr[e]=t[a];return e}var _d=Dn("animationend"),zd=Dn("animationiteration"),Dd=Dn("animationstart"),Pg=Dn("transitionrun"),Ig=Dn("transitionstart"),ev=Dn("transitioncancel"),Md=Dn("transitionend"),Ud=new Map,Kr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Kr.push("scrollEnd");function na(e,t){Ud.set(e,t),Cn(t,[e])}var Qu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kt=[],xl=0,Xr=0;function Gu(){for(var e=xl,t=Xr=xl=0;t<e;){var a=kt[t];kt[t++]=null;var n=kt[t];kt[t++]=null;var s=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,n!==null&&s!==null){var d=n.pending;d===null?s.next=s:(s.next=d.next,d.next=s),n.pending=s}c!==0&&qd(a,s,c)}}function ku(e,t,a,n){kt[xl++]=e,kt[xl++]=t,kt[xl++]=a,kt[xl++]=n,Xr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Vr(e,t,a,n){return ku(e,t,a,n),Yu(e)}function Mn(e,t){return ku(e,null,null,t),Yu(e)}function qd(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,n=c.alternate,n!==null&&(n.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-_t(a),e=c.hiddenUpdates,n=e[s],n===null?e[s]=[t]:n.push(t),t.lane=a|536870912),c):null}function Yu(e){if(50<Zi)throw Zi=0,to=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sl={};function tv(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,n){return new tv(e,t,a,n)}function Zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ea(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Ld(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ku(e,t,a,n,s,c){var d=0;if(n=e,typeof e=="function")Zr(e)&&(d=1);else if(typeof e=="string")d=ub(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Dt(31,a,t,s),e.elementType=fe,e.lanes=c,e;case z:return Un(a.children,s,c,t);case j:d=8,s|=24;break;case B:return e=Dt(12,a,t,s|2),e.elementType=B,e.lanes=c,e;case F:return e=Dt(13,a,t,s),e.elementType=F,e.lanes=c,e;case ae:return e=Dt(19,a,t,s),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:d=10;break e;case X:d=9;break e;case K:d=11;break e;case $:d=14;break e;case le:d=16,n=null;break e}d=29,a=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=Dt(d,a,t,s),t.elementType=e,t.type=n,t.lanes=c,t}function Un(e,t,a,n){return e=Dt(7,e,n,t),e.lanes=a,e}function Jr(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function Hd(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Fr(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bd=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var a=Bd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Hf(t)},Bd.set(e,t),t)}return{value:e,source:t,stack:Hf(t)}}var El=[],Rl=0,Xu=null,Ti=0,Kt=[],Xt=0,Ja=null,fa=1,da="";function Ra(e,t){El[Rl++]=Ti,El[Rl++]=Xu,Xu=e,Ti=t}function Qd(e,t,a){Kt[Xt++]=fa,Kt[Xt++]=da,Kt[Xt++]=Ja,Ja=e;var n=fa;e=da;var s=32-_t(n)-1;n&=~(1<<s),a+=1;var c=32-_t(t)+s;if(30<c){var d=s-s%5;c=(n&(1<<d)-1).toString(32),n>>=d,s-=d,fa=1<<32-_t(t)+s|a<<s|n,da=c+e}else fa=1<<c|a<<s|n,da=e}function $r(e){e.return!==null&&(Ra(e,1),Qd(e,1,0))}function Wr(e){for(;e===Xu;)Xu=El[--Rl],El[Rl]=null,Ti=El[--Rl],El[Rl]=null;for(;e===Ja;)Ja=Kt[--Xt],Kt[Xt]=null,da=Kt[--Xt],Kt[Xt]=null,fa=Kt[--Xt],Kt[Xt]=null}function Gd(e,t){Kt[Xt++]=fa,Kt[Xt++]=da,Kt[Xt++]=Ja,fa=t.id,da=t.overflow,Ja=e}var ut=null,He=null,ve=!1,Fa=null,Vt=!1,Pr=Error(r(519));function $a(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ji(Yt(t,e)),Pr}function kd(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[it]=e,t[gt]=n,a){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(a=0;a<Fi.length;a++)ye(Fi[a],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),td(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),nd(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||iy(t.textContent,a)?(n.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),n.onScroll!=null&&ye("scroll",t),n.onScrollEnd!=null&&ye("scrollend",t),n.onClick!=null&&(t.onclick=xa),t=!0):t=!1,t||$a(e,!0)}function Yd(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Vt=!1;return;case 27:case 3:Vt=!0;return;default:ut=ut.return}}function Al(e){if(e!==ut)return!1;if(!ve)return Yd(e),ve=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||go(e.type,e.memoizedProps)),a=!a),a&&He&&$a(e),Yd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=my(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=my(e)}else t===27?(t=He,fn(e.type)?(e=Eo,Eo=null,He=e):He=t):He=ut?Jt(e.stateNode.nextSibling):null;return!0}function qn(){He=ut=null,ve=!1}function Ir(){var e=Fa;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),Fa=null),e}function ji(e){Fa===null?Fa=[e]:Fa.push(e)}var ec=R(null),Ln=null,Aa=null;function Wa(e,t,a){Z(ec,t._currentValue),t._currentValue=a}function Na(e){e._currentValue=ec.current,G(ec)}function tc(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function ac(e,t,a,n){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var d=s.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=s;for(var S=0;S<t.length;S++)if(y.context===t[S]){c.lanes|=a,y=c.alternate,y!==null&&(y.lanes|=a),tc(c.return,a,e),n||(d=null);break e}c=y.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(r(341));d.lanes|=a,c=d.alternate,c!==null&&(c.lanes|=a),tc(d,a,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function Nl(e,t,a,n){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var y=s.type;zt(s.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(s===Ne.current){if(d=s.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(eu):e=[eu])}s=s.return}e!==null&&ac(t,e,a,n),t.flags|=262144}function Vu(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hn(e){Ln=e,Aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Kd(Ln,e)}function Zu(e,t){return Ln===null&&Hn(e),Kd(e,t)}function Kd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Aa===null){if(e===null)throw Error(r(308));Aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Aa=Aa.next=t;return a}var av=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},nv=l.unstable_scheduleCallback,lv=l.unstable_NormalPriority,Fe={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nc(){return{controller:new av,data:new Map,refCount:0}}function Oi(e){e.refCount--,e.refCount===0&&nv(lv,function(){e.controller.abort()})}var wi=null,lc=0,Tl=0,jl=null;function iv(e,t){if(wi===null){var a=wi=[];lc=0,Tl=so(),jl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return lc++,t.then(Xd,Xd),t}function Xd(){if(--lc===0&&wi!==null){jl!==null&&(jl.status="fulfilled");var e=wi;wi=null,Tl=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uv(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(n.status="rejected",n.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),n}var Vd=q.S;q.S=function(e,t){wm=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&iv(e,t),Vd!==null&&Vd(e,t)};var Bn=R(null);function ic(){var e=Bn.current;return e!==null?e:Ue.pooledCache}function Ju(e,t){t===null?Z(Bn,Bn.current):Z(Bn,t.pool)}function Zd(){var e=ic();return e===null?null:{parent:Fe._currentValue,pool:e}}var Ol=Error(r(460)),uc=Error(r(474)),Fu=Error(r(542)),$u={then:function(){}};function Jd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(xa,xa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e;default:if(typeof t.status=="string")t.then(xa,xa);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=n}},function(n){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e}throw Gn=t,Ol}}function Qn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Gn=a,Ol):a}}var Gn=null;function $d(){if(Gn===null)throw Error(r(459));var e=Gn;return Gn=null,e}function Wd(e){if(e===Ol||e===Fu)throw Error(r(483))}var wl=null,Ci=0;function Wu(e){var t=Ci;return Ci+=1,wl===null&&(wl=[]),Fd(wl,e,t)}function _i(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Pu(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pd(e){function t(T,A){if(e){var C=T.deletions;C===null?(T.deletions=[A],T.flags|=16):C.push(A)}}function a(T,A){if(!e)return null;for(;A!==null;)t(T,A),A=A.sibling;return null}function n(T){for(var A=new Map;T!==null;)T.key!==null?A.set(T.key,T):A.set(T.index,T),T=T.sibling;return A}function s(T,A){return T=Ea(T,A),T.index=0,T.sibling=null,T}function c(T,A,C){return T.index=C,e?(C=T.alternate,C!==null?(C=C.index,C<A?(T.flags|=67108866,A):C):(T.flags|=67108866,A)):(T.flags|=1048576,A)}function d(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function y(T,A,C,Q){return A===null||A.tag!==6?(A=Jr(C,T.mode,Q),A.return=T,A):(A=s(A,C),A.return=T,A)}function S(T,A,C,Q){var ne=C.type;return ne===z?H(T,A,C.props.children,Q,C.key):A!==null&&(A.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===le&&Qn(ne)===A.type)?(A=s(A,C.props),_i(A,C),A.return=T,A):(A=Ku(C.type,C.key,C.props,null,T.mode,Q),_i(A,C),A.return=T,A)}function _(T,A,C,Q){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Fr(C,T.mode,Q),A.return=T,A):(A=s(A,C.children||[]),A.return=T,A)}function H(T,A,C,Q,ne){return A===null||A.tag!==7?(A=Un(C,T.mode,Q,ne),A.return=T,A):(A=s(A,C),A.return=T,A)}function k(T,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Jr(""+A,T.mode,C),A.return=T,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case L:return C=Ku(A.type,A.key,A.props,null,T.mode,C),_i(C,A),C.return=T,C;case N:return A=Fr(A,T.mode,C),A.return=T,A;case le:return A=Qn(A),k(T,A,C)}if(_e(A)||qe(A))return A=Un(A,T.mode,C,null),A.return=T,A;if(typeof A.then=="function")return k(T,Wu(A),C);if(A.$$typeof===Y)return k(T,Zu(T,A),C);Pu(T,A)}return null}function D(T,A,C,Q){var ne=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ne!==null?null:y(T,A,""+C,Q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case L:return C.key===ne?S(T,A,C,Q):null;case N:return C.key===ne?_(T,A,C,Q):null;case le:return C=Qn(C),D(T,A,C,Q)}if(_e(C)||qe(C))return ne!==null?null:H(T,A,C,Q,null);if(typeof C.then=="function")return D(T,A,Wu(C),Q);if(C.$$typeof===Y)return D(T,A,Zu(T,C),Q);Pu(T,C)}return null}function U(T,A,C,Q,ne){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return T=T.get(C)||null,y(A,T,""+Q,ne);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case L:return T=T.get(Q.key===null?C:Q.key)||null,S(A,T,Q,ne);case N:return T=T.get(Q.key===null?C:Q.key)||null,_(A,T,Q,ne);case le:return Q=Qn(Q),U(T,A,C,Q,ne)}if(_e(Q)||qe(Q))return T=T.get(C)||null,H(A,T,Q,ne,null);if(typeof Q.then=="function")return U(T,A,C,Wu(Q),ne);if(Q.$$typeof===Y)return U(T,A,C,Zu(A,Q),ne);Pu(A,Q)}return null}function P(T,A,C,Q){for(var ne=null,Se=null,I=A,oe=A=0,ge=null;I!==null&&oe<C.length;oe++){I.index>oe?(ge=I,I=null):ge=I.sibling;var Ee=D(T,I,C[oe],Q);if(Ee===null){I===null&&(I=ge);break}e&&I&&Ee.alternate===null&&t(T,I),A=c(Ee,A,oe),Se===null?ne=Ee:Se.sibling=Ee,Se=Ee,I=ge}if(oe===C.length)return a(T,I),ve&&Ra(T,oe),ne;if(I===null){for(;oe<C.length;oe++)I=k(T,C[oe],Q),I!==null&&(A=c(I,A,oe),Se===null?ne=I:Se.sibling=I,Se=I);return ve&&Ra(T,oe),ne}for(I=n(I);oe<C.length;oe++)ge=U(I,T,oe,C[oe],Q),ge!==null&&(e&&ge.alternate!==null&&I.delete(ge.key===null?oe:ge.key),A=c(ge,A,oe),Se===null?ne=ge:Se.sibling=ge,Se=ge);return e&&I.forEach(function(pn){return t(T,pn)}),ve&&Ra(T,oe),ne}function ie(T,A,C,Q){if(C==null)throw Error(r(151));for(var ne=null,Se=null,I=A,oe=A=0,ge=null,Ee=C.next();I!==null&&!Ee.done;oe++,Ee=C.next()){I.index>oe?(ge=I,I=null):ge=I.sibling;var pn=D(T,I,Ee.value,Q);if(pn===null){I===null&&(I=ge);break}e&&I&&pn.alternate===null&&t(T,I),A=c(pn,A,oe),Se===null?ne=pn:Se.sibling=pn,Se=pn,I=ge}if(Ee.done)return a(T,I),ve&&Ra(T,oe),ne;if(I===null){for(;!Ee.done;oe++,Ee=C.next())Ee=k(T,Ee.value,Q),Ee!==null&&(A=c(Ee,A,oe),Se===null?ne=Ee:Se.sibling=Ee,Se=Ee);return ve&&Ra(T,oe),ne}for(I=n(I);!Ee.done;oe++,Ee=C.next())Ee=U(I,T,oe,Ee.value,Q),Ee!==null&&(e&&Ee.alternate!==null&&I.delete(Ee.key===null?oe:Ee.key),A=c(Ee,A,oe),Se===null?ne=Ee:Se.sibling=Ee,Se=Ee);return e&&I.forEach(function(gb){return t(T,gb)}),ve&&Ra(T,oe),ne}function Me(T,A,C,Q){if(typeof C=="object"&&C!==null&&C.type===z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case L:e:{for(var ne=C.key;A!==null;){if(A.key===ne){if(ne=C.type,ne===z){if(A.tag===7){a(T,A.sibling),Q=s(A,C.props.children),Q.return=T,T=Q;break e}}else if(A.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===le&&Qn(ne)===A.type){a(T,A.sibling),Q=s(A,C.props),_i(Q,C),Q.return=T,T=Q;break e}a(T,A);break}else t(T,A);A=A.sibling}C.type===z?(Q=Un(C.props.children,T.mode,Q,C.key),Q.return=T,T=Q):(Q=Ku(C.type,C.key,C.props,null,T.mode,Q),_i(Q,C),Q.return=T,T=Q)}return d(T);case N:e:{for(ne=C.key;A!==null;){if(A.key===ne)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){a(T,A.sibling),Q=s(A,C.children||[]),Q.return=T,T=Q;break e}else{a(T,A);break}else t(T,A);A=A.sibling}Q=Fr(C,T.mode,Q),Q.return=T,T=Q}return d(T);case le:return C=Qn(C),Me(T,A,C,Q)}if(_e(C))return P(T,A,C,Q);if(qe(C)){if(ne=qe(C),typeof ne!="function")throw Error(r(150));return C=ne.call(C),ie(T,A,C,Q)}if(typeof C.then=="function")return Me(T,A,Wu(C),Q);if(C.$$typeof===Y)return Me(T,A,Zu(T,C),Q);Pu(T,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(a(T,A.sibling),Q=s(A,C),Q.return=T,T=Q):(a(T,A),Q=Jr(C,T.mode,Q),Q.return=T,T=Q),d(T)):a(T,A)}return function(T,A,C,Q){try{Ci=0;var ne=Me(T,A,C,Q);return wl=null,ne}catch(I){if(I===Ol||I===Fu)throw I;var Se=Dt(29,I,null,T.mode);return Se.lanes=Q,Se.return=T,Se}finally{}}}var kn=Pd(!0),Id=Pd(!1),Pa=!1;function sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function en(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ae&2)!==0){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,t=Yu(e),qd(e,null,a),t}return ku(e,n,t,a),Yu(e)}function zi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Kf(e,a)}}function cc(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=d:c=c.next=d,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var oc=!1;function Di(){if(oc){var e=jl;if(e!==null)throw e}}function Mi(e,t,a,n){oc=!1;var s=e.updateQueue;Pa=!1;var c=s.firstBaseUpdate,d=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,_=S.next;S.next=null,d===null?c=_:d.next=_,d=S;var H=e.alternate;H!==null&&(H=H.updateQueue,y=H.lastBaseUpdate,y!==d&&(y===null?H.firstBaseUpdate=_:y.next=_,H.lastBaseUpdate=S))}if(c!==null){var k=s.baseState;d=0,H=_=S=null,y=c;do{var D=y.lane&-536870913,U=D!==y.lane;if(U?(pe&D)===D:(n&D)===D){D!==0&&D===Tl&&(oc=!0),H!==null&&(H=H.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var P=e,ie=y;D=t;var Me=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){k=P.call(Me,k,D);break e}k=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,D=typeof P=="function"?P.call(Me,k,D):P,D==null)break e;k=b({},k,D);break e;case 2:Pa=!0}}D=y.callback,D!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[D]:U.push(D))}else U={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},H===null?(_=H=U,S=k):H=H.next=U,d|=D;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;U=y,y=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);H===null&&(S=k),s.baseState=S,s.firstBaseUpdate=_,s.lastBaseUpdate=H,c===null&&(s.shared.lanes=0),un|=d,e.lanes=d,e.memoizedState=k}}function eh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function th(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)eh(a[e],t)}var Cl=R(null),Iu=R(0);function ah(e,t){e=Ma,Z(Iu,e),Z(Cl,t),Ma=e|t.baseLanes}function fc(){Z(Iu,Ma),Z(Cl,Cl.current)}function dc(){Ma=Iu.current,G(Cl),G(Iu)}var Mt=R(null),Zt=null;function tn(e){var t=e.alternate;Z(Ze,Ze.current&1),Z(Mt,e),Zt===null&&(t===null||Cl.current!==null||t.memoizedState!==null)&&(Zt=e)}function hc(e){Z(Ze,Ze.current),Z(Mt,e),Zt===null&&(Zt=e)}function nh(e){e.tag===22?(Z(Ze,Ze.current),Z(Mt,e),Zt===null&&(Zt=e)):an()}function an(){Z(Ze,Ze.current),Z(Mt,Mt.current)}function Ut(e){G(Mt),Zt===e&&(Zt=null),G(Ze)}var Ze=R(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||xo(a)||So(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ta=0,ce=null,ze=null,$e=null,ts=!1,_l=!1,Yn=!1,as=0,Ui=0,zl=null,sv=0;function Ye(){throw Error(r(321))}function mc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!zt(e[a],t[a]))return!1;return!0}function yc(e,t,a,n,s,c){return Ta=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Qh:Cc,Yn=!1,c=a(n,s),Yn=!1,_l&&(c=ih(t,a,n,s)),lh(e),c}function lh(e){q.H=Hi;var t=ze!==null&&ze.next!==null;if(Ta=0,$e=ze=ce=null,ts=!1,Ui=0,zl=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&Vu(e)&&(We=!0))}function ih(e,t,a,n){ce=e;var s=0;do{if(_l&&(zl=null),Ui=0,_l=!1,25<=s)throw Error(r(301));if(s+=1,$e=ze=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}q.H=Gh,c=t(a,n)}while(_l);return c}function rv(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?qi(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ce.flags|=1024),t}function pc(){var e=as!==0;return as=0,e}function gc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function vc(e){if(ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ts=!1}Ta=0,$e=ze=ce=null,_l=!1,Ui=as=0,zl=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ce.memoizedState=$e=e:$e=$e.next=e,$e}function Je(){if(ze===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=$e===null?ce.memoizedState:$e.next;if(t!==null)$e=t,ze=e;else{if(e===null)throw ce.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},$e===null?ce.memoizedState=$e=e:$e=$e.next=e}return $e}function ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qi(e){var t=Ui;return Ui+=1,zl===null&&(zl=[]),e=Fd(zl,e,t),t=ce,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Qh:Cc),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return qi(e);if(e.$$typeof===Y)return st(e)}throw Error(r(438,String(e)))}function bc(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ce.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ns(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=je;return t.index++,a}function ja(e,t){return typeof t=="function"?t(e):t}function is(e){var t=Je();return xc(t,ze,e)}function xc(e,t,a){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=a;var s=e.baseQueue,c=n.pending;if(c!==null){if(s!==null){var d=s.next;s.next=c.next,c.next=d}t.baseQueue=s=c,n.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var y=d=null,S=null,_=t,H=!1;do{var k=_.lane&-536870913;if(k!==_.lane?(pe&k)===k:(Ta&k)===k){var D=_.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),k===Tl&&(H=!0);else if((Ta&D)===D){_=_.next,D===Tl&&(H=!0);continue}else k={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(y=S=k,d=c):S=S.next=k,ce.lanes|=D,un|=D;k=_.action,Yn&&a(c,k),c=_.hasEagerState?_.eagerState:a(c,k)}else D={lane:k,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(y=S=D,d=c):S=S.next=D,ce.lanes|=k,un|=k;_=_.next}while(_!==null&&_!==t);if(S===null?d=c:S.next=y,!zt(c,e.memoizedState)&&(We=!0,H&&(a=jl,a!==null)))throw a;e.memoizedState=c,e.baseState=d,e.baseQueue=S,n.lastRenderedState=c}return s===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Sc(e){var t=Je(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var n=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var d=s=s.next;do c=e(c,d.action),d=d.next;while(d!==s);zt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,n]}function uh(e,t,a){var n=ce,s=Je(),c=ve;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=t();var d=!zt((ze||s).memoizedState,a);if(d&&(s.memoizedState=a,We=!0),s=s.queue,Ac(ch.bind(null,n,s,e),[e]),s.getSnapshot!==t||d||$e!==null&&$e.memoizedState.tag&1){if(n.flags|=2048,Dl(9,{destroy:void 0},rh.bind(null,n,s,a,t),null),Ue===null)throw Error(r(349));c||(Ta&127)!==0||sh(n,t,a)}return a}function sh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=ns(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function rh(e,t,a,n){t.value=a,t.getSnapshot=n,oh(t)&&fh(e)}function ch(e,t,a){return a(function(){oh(t)&&fh(e)})}function oh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!zt(e,a)}catch{return!0}}function fh(e){var t=Mn(e,2);t!==null&&Rt(t,e,2)}function Ec(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),Yn){Xa(!0);try{a()}finally{Xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:e},t}function dh(e,t,a,n){return e.baseState=a,xc(e,ze,typeof n=="function"?n:ja)}function cv(e,t,a,n,s){if(rs(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};q.T!==null?a(!0):c.isTransition=!1,n(c),a=t.pending,a===null?(c.next=t.pending=c,hh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function hh(e,t){var a=t.action,n=t.payload,s=e.state;if(t.isTransition){var c=q.T,d={};q.T=d;try{var y=a(s,n),S=q.S;S!==null&&S(d,y),mh(e,t,y)}catch(_){Rc(e,t,_)}finally{c!==null&&d.types!==null&&(c.types=d.types),q.T=c}}else try{c=a(s,n),mh(e,t,c)}catch(_){Rc(e,t,_)}}function mh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){yh(e,t,n)},function(n){return Rc(e,t,n)}):yh(e,t,a)}function yh(e,t,a){t.status="fulfilled",t.value=a,ph(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hh(e,a)))}function Rc(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,ph(t),t=t.next;while(t!==n)}e.action=null}function ph(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function vh(e,t){if(ve){var a=Ue.formState;if(a!==null){e:{var n=ce;if(ve){if(He){t:{for(var s=He,c=Vt;s.nodeType!==8;){if(!c){s=null;break t}if(s=Jt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){He=Jt(s.nextSibling),n=s.data==="F!";break e}}$a(n)}n=!1}n&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},a.queue=n,a=Lh.bind(null,ce,n),n.dispatch=a,n=Ec(!1),c=wc.bind(null,ce,!1,n.queue),n=mt(),s={state:t,dispatch:null,action:e,pending:null},n.queue=s,a=cv.bind(null,ce,s,c,a),s.dispatch=a,n.memoizedState=e,[t,a,!1]}function bh(e){var t=Je();return xh(t,ze,e)}function xh(e,t,a){if(t=xc(e,t,gh)[0],e=is(ja)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=qi(t)}catch(d){throw d===Ol?Fu:d}else n=t;t=Je();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Dl(9,{destroy:void 0},ov.bind(null,s,a),null)),[n,c,e]}function ov(e,t){e.action=t}function Sh(e){var t=Je(),a=ze;if(a!==null)return xh(t,a,e);Je(),t=t.memoizedState,a=Je();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Dl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ce.updateQueue,t===null&&(t=ns(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Eh(){return Je().memoizedState}function us(e,t,a,n){var s=mt();ce.flags|=e,s.memoizedState=Dl(1|t,{destroy:void 0},a,n===void 0?null:n)}function ss(e,t,a,n){var s=Je();n=n===void 0?null:n;var c=s.memoizedState.inst;ze!==null&&n!==null&&mc(n,ze.memoizedState.deps)?s.memoizedState=Dl(t,c,a,n):(ce.flags|=e,s.memoizedState=Dl(1|t,c,a,n))}function Rh(e,t){us(8390656,8,e,t)}function Ac(e,t){ss(2048,8,e,t)}function fv(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=ns(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ah(e){var t=Je().memoizedState;return fv({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Nh(e,t){return ss(4,2,e,t)}function Th(e,t){return ss(4,4,e,t)}function jh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Oh(e,t,a){a=a!=null?a.concat([e]):null,ss(4,4,jh.bind(null,t,e),a)}function Nc(){}function wh(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&mc(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Ch(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&mc(t,n[1]))return n[0];if(n=e(),Yn){Xa(!0);try{e()}finally{Xa(!1)}}return a.memoizedState=[n,t],n}function Tc(e,t,a){return a===void 0||(Ta&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=_m(),ce.lanes|=e,un|=e,a)}function _h(e,t,a,n){return zt(a,t)?a:Cl.current!==null?(e=Tc(e,a,n),zt(e,t)||(We=!0),e):(Ta&42)===0||(Ta&1073741824)!==0&&(pe&261930)===0?(We=!0,e.memoizedState=a):(e=_m(),ce.lanes|=e,un|=e,t)}function zh(e,t,a,n,s){var c=V.p;V.p=c!==0&&8>c?c:8;var d=q.T,y={};q.T=y,wc(e,!1,t,a);try{var S=s(),_=q.S;if(_!==null&&_(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=uv(S,n);Li(e,t,H,Ht(e))}else Li(e,t,n,Ht(e))}catch(k){Li(e,t,{then:function(){},status:"rejected",reason:k},Ht())}finally{V.p=c,d!==null&&y.types!==null&&(d.types=y.types),q.T=d}}function dv(){}function jc(e,t,a,n){if(e.tag!==5)throw Error(r(476));var s=Dh(e).queue;zh(e,s,t,ee,a===null?dv:function(){return Mh(e),a(n)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mh(e){var t=Dh(e);t.next===null&&(t=e.alternate.memoizedState),Li(e,t.next.queue,{},Ht())}function Oc(){return st(eu)}function Uh(){return Je().memoizedState}function qh(){return Je().memoizedState}function hv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ht();e=Ia(a);var n=en(t,e,a);n!==null&&(Rt(n,t,a),zi(n,t,a)),t={cache:nc()},e.payload=t;return}t=t.return}}function mv(e,t,a){var n=Ht();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},rs(e)?Hh(t,a):(a=Vr(e,t,a,n),a!==null&&(Rt(a,e,n),Bh(a,t,n)))}function Lh(e,t,a){var n=Ht();Li(e,t,a,n)}function Li(e,t,a,n){var s={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(rs(e))Hh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,y=c(d,a);if(s.hasEagerState=!0,s.eagerState=y,zt(y,d))return ku(e,t,s,0),Ue===null&&Gu(),!1}catch{}finally{}if(a=Vr(e,t,s,n),a!==null)return Rt(a,e,n),Bh(a,t,n),!0}return!1}function wc(e,t,a,n){if(n={lane:2,revertLane:so(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)){if(t)throw Error(r(479))}else t=Vr(e,a,n,2),t!==null&&Rt(t,e,2)}function rs(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Hh(e,t){_l=ts=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Bh(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Kf(e,a)}}var Hi={readContext:st,use:ls,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Hi.useEffectEvent=Ye;var Qh={readContext:st,use:ls,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Rh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,us(4194308,4,jh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var n=e();if(Yn){Xa(!0);try{e()}finally{Xa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=mt();if(a!==void 0){var s=a(t);if(Yn){Xa(!0);try{a(t)}finally{Xa(!1)}}}else s=t;return n.memoizedState=n.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},n.queue=e,e=e.dispatch=mv.bind(null,ce,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ec(e);var t=e.queue,a=Lh.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Nc,useDeferredValue:function(e,t){var a=mt();return Tc(a,e,t)},useTransition:function(){var e=Ec(!1);return e=zh.bind(null,ce,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ce,s=mt();if(ve){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ue===null)throw Error(r(349));(pe&127)!==0||sh(n,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,Rh(ch.bind(null,n,c,e),[e]),n.flags|=2048,Dl(9,{destroy:void 0},rh.bind(null,n,c,a,t),null),a},useId:function(){var e=mt(),t=Ue.identifierPrefix;if(ve){var a=da,n=fa;a=(n&~(1<<32-_t(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=as++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=sv++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Oc,useFormState:vh,useActionState:vh,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=wc.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:bc,useCacheRefresh:function(){return mt().memoizedState=hv.bind(null,ce)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((Ae&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Cc={readContext:st,use:ls,useCallback:wh,useContext:st,useEffect:Ac,useImperativeHandle:Oh,useInsertionEffect:Nh,useLayoutEffect:Th,useMemo:Ch,useReducer:is,useRef:Eh,useState:function(){return is(ja)},useDebugValue:Nc,useDeferredValue:function(e,t){var a=Je();return _h(a,ze.memoizedState,e,t)},useTransition:function(){var e=is(ja)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:qi(e),t]},useSyncExternalStore:uh,useId:Uh,useHostTransitionStatus:Oc,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var a=Je();return dh(a,ze,e,t)},useMemoCache:bc,useCacheRefresh:qh};Cc.useEffectEvent=Ah;var Gh={readContext:st,use:ls,useCallback:wh,useContext:st,useEffect:Ac,useImperativeHandle:Oh,useInsertionEffect:Nh,useLayoutEffect:Th,useMemo:Ch,useReducer:Sc,useRef:Eh,useState:function(){return Sc(ja)},useDebugValue:Nc,useDeferredValue:function(e,t){var a=Je();return ze===null?Tc(a,e,t):_h(a,ze.memoizedState,e,t)},useTransition:function(){var e=Sc(ja)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:qi(e),t]},useSyncExternalStore:uh,useId:Uh,useHostTransitionStatus:Oc,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var a=Je();return ze!==null?dh(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:bc,useCacheRefresh:qh};Gh.useEffectEvent=Ah;function _c(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var zc={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ht(),s=Ia(n);s.payload=t,a!=null&&(s.callback=a),t=en(e,s,n),t!==null&&(Rt(t,e,n),zi(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ht(),s=Ia(n);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=en(e,s,n),t!==null&&(Rt(t,e,n),zi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ht(),n=Ia(a);n.tag=2,t!=null&&(n.callback=t),t=en(e,n,a),t!==null&&(Rt(t,e,a),zi(t,e,a))}};function kh(e,t,a,n,s,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,d):t.prototype&&t.prototype.isPureReactComponent?!Ai(a,n)||!Ai(s,c):!0}function Yh(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&zc.enqueueReplaceState(t,t.state,null)}function Kn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Kh(e){Qu(e)}function Xh(e){console.error(e)}function Vh(e){Qu(e)}function cs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Zh(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Dc(e,t,a){return a=Ia(a),a.tag=3,a.payload={element:null},a.callback=function(){cs(e,t)},a}function Jh(e){return e=Ia(e),e.tag=3,e}function Fh(e,t,a,n){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=n.value;e.payload=function(){return s(c)},e.callback=function(){Zh(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Zh(t,a,n),typeof s!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var y=n.stack;this.componentDidCatch(n.value,{componentStack:y!==null?y:""})})}function yv(e,t,a,n,s){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Nl(t,a,s,!0),a=Mt.current,a!==null){switch(a.tag){case 31:case 13:return Zt===null?Ss():a.alternate===null&&Ke===0&&(Ke=3),a.flags&=-257,a.flags|=65536,a.lanes=s,n===$u?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),lo(e,n,s)),!1;case 22:return a.flags|=65536,n===$u?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),lo(e,n,s)),!1}throw Error(r(435,a.tag))}return lo(e,n,s),Ss(),!1}if(ve)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,n!==Pr&&(e=Error(r(422),{cause:n}),ji(Yt(e,a)))):(n!==Pr&&(t=Error(r(423),{cause:n}),ji(Yt(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,n=Yt(n,a),s=Dc(e.stateNode,n,s),cc(e,s),Ke!==4&&(Ke=2)),!1;var c=Error(r(520),{cause:n});if(c=Yt(c,a),Vi===null?Vi=[c]:Vi.push(c),Ke!==4&&(Ke=2),t===null)return!0;n=Yt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Dc(a.stateNode,n,e),cc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(sn===null||!sn.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Jh(s),Fh(s,e,a,n),cc(a,s),!1}a=a.return}while(a!==null);return!1}var Mc=Error(r(461)),We=!1;function rt(e,t,a,n){t.child=e===null?Id(t,null,a,n):kn(t,e.child,a,n)}function $h(e,t,a,n,s){a=a.render;var c=t.ref;if("ref"in n){var d={};for(var y in n)y!=="ref"&&(d[y]=n[y])}else d=n;return Hn(t),n=yc(e,t,a,d,c,s),y=pc(),e!==null&&!We?(gc(e,t,s),Oa(e,t,s)):(ve&&y&&$r(t),t.flags|=1,rt(e,t,n,s),t.child)}function Wh(e,t,a,n,s){if(e===null){var c=a.type;return typeof c=="function"&&!Zr(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Ph(e,t,c,n,s)):(e=Ku(a.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!kc(e,s)){var d=c.memoizedProps;if(a=a.compare,a=a!==null?a:Ai,a(d,n)&&e.ref===t.ref)return Oa(e,t,s)}return t.flags|=1,e=Ea(c,n),e.ref=t.ref,e.return=t,t.child=e}function Ph(e,t,a,n,s){if(e!==null){var c=e.memoizedProps;if(Ai(c,n)&&e.ref===t.ref)if(We=!1,t.pendingProps=n=c,kc(e,s))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Oa(e,t,s)}return Uc(e,t,a,n,s)}function Ih(e,t,a,n){var s=n.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(n=t.child=e.child,s=0;n!==null;)s=s|n.lanes|n.childLanes,n=n.sibling;n=s&~c}else n=0,t.child=null;return em(e,t,c,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ju(t,c!==null?c.cachePool:null),c!==null?ah(t,c):fc(),nh(t);else return n=t.lanes=536870912,em(e,t,c!==null?c.baseLanes|a:a,a,n)}else c!==null?(Ju(t,c.cachePool),ah(t,c),an(),t.memoizedState=null):(e!==null&&Ju(t,null),fc(),an());return rt(e,t,s,a),t.child}function Bi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function em(e,t,a,n,s){var c=ic();return c=c===null?null:{parent:Fe._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Ju(t,null),fc(),nh(t),e!==null&&Nl(e,t,n,!0),t.childLanes=s,null}function os(e,t){return t=ds({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tm(e,t,a){return kn(t,e.child,null,a),e=os(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function pv(e,t,a){var n=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(n.mode==="hidden")return e=os(t,n),t.lanes=536870912,Bi(null,e);if(hc(t),(e=He)?(e=hy(e,Vt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ja!==null?{id:fa,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=Hd(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw $a(t);return t.lanes=536870912,null}return os(t,n)}var c=e.memoizedState;if(c!==null){var d=c.dehydrated;if(hc(t),s)if(t.flags&256)t.flags&=-257,t=tm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||Nl(e,t,a,!1),s=(a&e.childLanes)!==0,We||s){if(n=Ue,n!==null&&(d=Xf(n,a),d!==0&&d!==c.retryLane))throw c.retryLane=d,Mn(e,d),Rt(n,e,d),Mc;Ss(),t=tm(e,t,a)}else e=c.treeContext,He=Jt(d.nextSibling),ut=t,ve=!0,Fa=null,Vt=!1,e!==null&&Gd(t,e),t=os(t,n),t.flags|=4096;return t}return e=Ea(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Uc(e,t,a,n,s){return Hn(t),a=yc(e,t,a,n,void 0,s),n=pc(),e!==null&&!We?(gc(e,t,s),Oa(e,t,s)):(ve&&n&&$r(t),t.flags|=1,rt(e,t,a,s),t.child)}function am(e,t,a,n,s,c){return Hn(t),t.updateQueue=null,a=ih(t,n,a,s),lh(e),n=pc(),e!==null&&!We?(gc(e,t,c),Oa(e,t,c)):(ve&&n&&$r(t),t.flags|=1,rt(e,t,a,c),t.child)}function nm(e,t,a,n,s){if(Hn(t),t.stateNode===null){var c=Sl,d=a.contextType;typeof d=="object"&&d!==null&&(c=st(d)),c=new a(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=zc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},sc(t),d=a.contextType,c.context=typeof d=="object"&&d!==null?st(d):Sl,c.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(_c(t,a,d,n),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&zc.enqueueReplaceState(c,c.state,null),Mi(t,n,c,s),Di(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,S=Kn(a,y);c.props=S;var _=c.context,H=a.contextType;d=Sl,typeof H=="object"&&H!==null&&(d=st(H));var k=a.getDerivedStateFromProps;H=typeof k=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||_!==d)&&Yh(t,c,n,d),Pa=!1;var D=t.memoizedState;c.state=D,Mi(t,n,c,s),Di(),_=t.memoizedState,y||D!==_||Pa?(typeof k=="function"&&(_c(t,a,k,n),_=t.memoizedState),(S=Pa||kh(t,a,S,n,D,_,d))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=_),c.props=n,c.state=_,c.context=d,n=S):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,rc(e,t),d=t.memoizedProps,H=Kn(a,d),c.props=H,k=t.pendingProps,D=c.context,_=a.contextType,S=Sl,typeof _=="object"&&_!==null&&(S=st(_)),y=a.getDerivedStateFromProps,(_=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==k||D!==S)&&Yh(t,c,n,S),Pa=!1,D=t.memoizedState,c.state=D,Mi(t,n,c,s),Di();var U=t.memoizedState;d!==k||D!==U||Pa||e!==null&&e.dependencies!==null&&Vu(e.dependencies)?(typeof y=="function"&&(_c(t,a,y,n),U=t.memoizedState),(H=Pa||kh(t,a,H,n,D,U,S)||e!==null&&e.dependencies!==null&&Vu(e.dependencies))?(_||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,U,S),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,U,S)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=U),c.props=n,c.state=U,c.context=S,n=H):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,fs(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=kn(t,e.child,null,s),t.child=kn(t,null,a,s)):rt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=Oa(e,t,s),e}function lm(e,t,a,n){return qn(),t.flags|=256,rt(e,t,a,n),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lc(e){return{baseLanes:e,cachePool:Zd()}}function Hc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Lt),e}function im(e,t,a){var n=t.pendingProps,s=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(s?tn(t):an(),(e=He)?(e=hy(e,Vt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ja!==null?{id:fa,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=Hd(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw $a(t);return So(e)?t.lanes=32:t.lanes=536870912,null}var y=n.children;return n=n.fallback,s?(an(),s=t.mode,y=ds({mode:"hidden",children:y},s),n=Un(n,s,a,null),y.return=t,n.return=t,y.sibling=n,t.child=y,n=t.child,n.memoizedState=Lc(a),n.childLanes=Hc(e,d,a),t.memoizedState=qc,Bi(null,n)):(tn(t),Bc(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(c)t.flags&256?(tn(t),t.flags&=-257,t=Qc(e,t,a)):t.memoizedState!==null?(an(),t.child=e.child,t.flags|=128,t=null):(an(),y=n.fallback,s=t.mode,n=ds({mode:"visible",children:n.children},s),y=Un(y,s,a,null),y.flags|=2,n.return=t,y.return=t,n.sibling=y,t.child=n,kn(t,e.child,null,a),n=t.child,n.memoizedState=Lc(a),n.childLanes=Hc(e,d,a),t.memoizedState=qc,t=Bi(null,n));else if(tn(t),So(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var _=d.dgst;d=_,n=Error(r(419)),n.stack="",n.digest=d,ji({value:n,source:null,stack:null}),t=Qc(e,t,a)}else if(We||Nl(e,t,a,!1),d=(a&e.childLanes)!==0,We||d){if(d=Ue,d!==null&&(n=Xf(d,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,Mn(e,n),Rt(d,e,n),Mc;xo(y)||Ss(),t=Qc(e,t,a)}else xo(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,He=Jt(y.nextSibling),ut=t,ve=!0,Fa=null,Vt=!1,e!==null&&Gd(t,e),t=Bc(t,n.children),t.flags|=4096);return t}return s?(an(),y=n.fallback,s=t.mode,S=e.child,_=S.sibling,n=Ea(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,_!==null?y=Ea(_,y):(y=Un(y,s,a,null),y.flags|=2),y.return=t,n.return=t,n.sibling=y,t.child=n,Bi(null,n),n=t.child,y=e.child.memoizedState,y===null?y=Lc(a):(s=y.cachePool,s!==null?(S=Fe._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Zd(),y={baseLanes:y.baseLanes|a,cachePool:s}),n.memoizedState=y,n.childLanes=Hc(e,d,a),t.memoizedState=qc,Bi(e.child,n)):(tn(t),a=e.child,e=a.sibling,a=Ea(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Bc(e,t){return t=ds({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ds(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Qc(e,t,a){return kn(t,e.child,null,a),e=Bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function um(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),tc(e.return,t,a)}function Gc(e,t,a,n,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:s,treeForkCount:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=s,d.treeForkCount=c)}function sm(e,t,a){var n=t.pendingProps,s=n.revealOrder,c=n.tail;n=n.children;var d=Ze.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,Z(Ze,d),rt(e,t,n,a),n=ve?Ti:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&um(e,a,t);else if(e.tag===19)um(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&es(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Gc(t,!1,s,a,c,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&es(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Gc(t,!0,a,null,c,n);break;case"together":Gc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Oa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),un|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Nl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=Ea(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ea(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vu(e)))}function gv(e,t,a){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),Wa(t,Fe,e.memoizedState.cache),qn();break;case 27:case 5:fi(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:Wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(tn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?im(e,t,a):(tn(t),e=Oa(e,t,a),e!==null?e.sibling:null);tn(t);break;case 19:var s=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Nl(e,t,a,!1),n=(a&t.childLanes)!==0),s){if(n)return sm(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(Ze,Ze.current),n)break;return null;case 22:return t.lanes=0,Ih(e,t,a,t.pendingProps);case 24:Wa(t,Fe,e.memoizedState.cache)}return Oa(e,t,a)}function rm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!kc(e,a)&&(t.flags&128)===0)return We=!1,gv(e,t,a);We=(e.flags&131072)!==0}else We=!1,ve&&(t.flags&1048576)!==0&&Qd(t,Ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Qn(t.elementType),t.type=e,typeof e=="function")Zr(e)?(n=Kn(e,n),t.tag=1,t=nm(null,t,e,n,a)):(t.tag=0,t=Uc(null,t,e,n,a));else{if(e!=null){var s=e.$$typeof;if(s===K){t.tag=11,t=$h(null,t,e,n,a);break e}else if(s===$){t.tag=14,t=Wh(null,t,e,n,a);break e}}throw t=Le(e)||e,Error(r(306,t,""))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,s=Kn(n,t.pendingProps),nm(e,t,n,s,a);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var c=t.memoizedState;s=c.element,rc(e,t),Mi(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Wa(t,Fe,n),n!==c.cache&&ac(t,[Fe],a,!0),Di(),n=d.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=lm(e,t,n,a);break e}else if(n!==s){s=Yt(Error(r(424)),t),ji(s),t=lm(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Jt(e.firstChild),ut=t,ve=!0,Fa=null,Vt=!0,a=Id(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(qn(),n===s){t=Oa(e,t,a);break e}rt(e,t,n,a)}t=t.child}return t;case 26:return fs(e,t),e===null?(a=by(t.type,null,t.pendingProps,null))?t.memoizedState=a:ve||(a=t.type,e=t.pendingProps,n=Os(he.current).createElement(a),n[it]=t,n[gt]=e,ct(n,a,e),at(n),t.stateNode=n):t.memoizedState=by(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fi(t),e===null&&ve&&(n=t.stateNode=py(t.type,t.pendingProps,he.current),ut=t,Vt=!0,s=He,fn(t.type)?(Eo=s,He=Jt(n.firstChild)):He=s),rt(e,t,t.pendingProps.children,a),fs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((s=n=He)&&(n=Zv(n,t.type,t.pendingProps,Vt),n!==null?(t.stateNode=n,ut=t,He=Jt(n.firstChild),Vt=!1,s=!0):s=!1),s||$a(t)),fi(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,n=c.children,go(s,c)?n=null:d!==null&&go(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=yc(e,t,rv,null,null,a),eu._currentValue=s),fs(e,t),rt(e,t,n,a),t.child;case 6:return e===null&&ve&&((e=a=He)&&(a=Jv(a,t.pendingProps,Vt),a!==null?(t.stateNode=a,ut=t,He=null,e=!0):e=!1),e||$a(t)),null;case 13:return im(e,t,a);case 4:return ht(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=kn(t,null,n,a):rt(e,t,n,a),t.child;case 11:return $h(e,t,t.type,t.pendingProps,a);case 7:return rt(e,t,t.pendingProps,a),t.child;case 8:return rt(e,t,t.pendingProps.children,a),t.child;case 12:return rt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Wa(t,t.type,n.value),rt(e,t,n.children,a),t.child;case 9:return s=t.type._context,n=t.pendingProps.children,Hn(t),s=st(s),n=n(s),t.flags|=1,rt(e,t,n,a),t.child;case 14:return Wh(e,t,t.type,t.pendingProps,a);case 15:return Ph(e,t,t.type,t.pendingProps,a);case 19:return sm(e,t,a);case 31:return pv(e,t,a);case 22:return Ih(e,t,a,t.pendingProps);case 24:return Hn(t),n=st(Fe),e===null?(s=ic(),s===null&&(s=Ue,c=nc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:n,cache:s},sc(t),Wa(t,Fe,s)):((e.lanes&a)!==0&&(rc(e,t),Mi(t,null,null,a),Di()),s=e.memoizedState,c=t.memoizedState,s.parent!==n?(s={parent:n,cache:n},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Wa(t,Fe,n)):(n=c.cache,Wa(t,Fe,n),n!==s.cache&&ac(t,[Fe],a,!0))),rt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function wa(e){e.flags|=4}function Yc(e,t,a,n,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Um())e.flags|=8192;else throw Gn=$u,uc}else e.flags&=-16777217}function cm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ay(t))if(Um())e.flags|=8192;else throw Gn=$u,uc}function hs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kf():536870912,e.lanes|=t,Ll|=t)}function Qi(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,n|=s.subtreeFlags&65011712,n|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function vv(e,t,a){var n=t.pendingProps;switch(Wr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Na(Fe),Ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Al(t)?wa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ir())),Be(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(wa(t),c!==null?(Be(t),cm(t,c)):(Be(t),Yc(t,s,null,n,a))):c?c!==e.memoizedState?(wa(t),Be(t),cm(t,c)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&wa(t),Be(t),Yc(t,s,e,n,a)),null;case 27:if(Au(t),a=he.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&wa(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=W.current,Al(t)?kd(t):(e=py(s,n,a),t.stateNode=e,wa(t))}return Be(t),null;case 5:if(Au(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&wa(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(c=W.current,Al(t))kd(t);else{var d=Os(he.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?d.createElement(s,{is:n.is}):d.createElement(s)}}c[it]=t,c[gt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=c;e:switch(ct(c,s,n),s){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&wa(t)}}return Be(t),Yc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&wa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=he.current,Al(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,s=ut,s!==null)switch(s.tag){case 27:case 5:n=s.memoizedProps}e[it]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||iy(e.nodeValue,a)),e||$a(t,!0)}else e=Os(e).createTextNode(n),e[it]=t,t.stateNode=e}return Be(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Al(t),a!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else qn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=Ir(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Al(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[it]=t}else qn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else s=Ir(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,s=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(s=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==s&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),hs(t,t.updateQueue),Be(t),null);case 4:return Ve(),e===null&&fo(t.stateNode.containerInfo),Be(t),null;case 10:return Na(t.type),Be(t),null;case 19:if(G(Ze),n=t.memoizedState,n===null)return Be(t),null;if(s=(t.flags&128)!==0,c=n.rendering,c===null)if(s)Qi(n,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=es(e),c!==null){for(t.flags|=128,Qi(n,!1),e=c.updateQueue,t.updateQueue=e,hs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ld(a,e),a=a.sibling;return Z(Ze,Ze.current&1|2),ve&&Ra(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&wt()>vs&&(t.flags|=128,s=!0,Qi(n,!1),t.lanes=4194304)}else{if(!s)if(e=es(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,hs(t,e),Qi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!ve)return Be(t),null}else 2*wt()-n.renderingStartTime>vs&&a!==536870912&&(t.flags|=128,s=!0,Qi(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=wt(),e.sibling=null,a=Ze.current,Z(Ze,s?a&1|2:a&1),ve&&Ra(t,n.treeForkCount),e):(Be(t),null);case 22:case 23:return Ut(t),dc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&hs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&G(Bn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Na(Fe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function bv(e,t){switch(Wr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(Fe),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Au(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(r(340));qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Ze),null;case 4:return Ve(),null;case 10:return Na(t.type),null;case 22:case 23:return Ut(t),dc(),e!==null&&G(Bn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Na(Fe),null;case 25:return null;default:return null}}function om(e,t){switch(Wr(t),t.tag){case 3:Na(Fe),Ve();break;case 26:case 27:case 5:Au(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:G(Ze);break;case 10:Na(t.type);break;case 22:case 23:Ut(t),dc(),e!==null&&G(Bn);break;case 24:Na(Fe)}}function Gi(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){n=void 0;var c=a.create,d=a.inst;n=c(),d.destroy=n}a=a.next}while(a!==s)}}catch(y){Ce(t,t.return,y)}}function nn(e,t,a){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var c=s.next;n=c;do{if((n.tag&e)===e){var d=n.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,s=t;var S=a,_=y;try{_()}catch(H){Ce(s,S,H)}}}n=n.next}while(n!==c)}}catch(H){Ce(t,t.return,H)}}function fm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{th(t,a)}catch(n){Ce(e,e.return,n)}}}function dm(e,t,a){a.props=Kn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ce(e,t,n)}}function ki(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(s){Ce(e,t,s)}}function ha(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(s){Ce(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Ce(e,t,s)}else a.current=null}function hm(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(s){Ce(e,e.return,s)}}function Kc(e,t,a){try{var n=e.stateNode;Gv(n,e.type,a,t),n[gt]=t}catch(s){Ce(e,e.return,s)}}function mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fn(e.type)||e.tag===4}function Xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&fn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vc(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=xa));else if(n!==4&&(n===27&&fn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Vc(e,t,a),e=e.sibling;e!==null;)Vc(e,t,a),e=e.sibling}function ms(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&fn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ms(e,t,a),e=e.sibling;e!==null;)ms(e,t,a),e=e.sibling}function ym(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ct(t,n,a),t[it]=e,t[gt]=a}catch(c){Ce(e,e.return,c)}}var Ca=!1,Pe=!1,Zc=!1,pm=typeof WeakSet=="function"?WeakSet:Set,nt=null;function xv(e,t){if(e=e.containerInfo,yo=Us,e=Od(e),Qr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var s=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var d=0,y=-1,S=-1,_=0,H=0,k=e,D=null;t:for(;;){for(var U;k!==a||s!==0&&k.nodeType!==3||(y=d+s),k!==c||n!==0&&k.nodeType!==3||(S=d+n),k.nodeType===3&&(d+=k.nodeValue.length),(U=k.firstChild)!==null;)D=k,k=U;for(;;){if(k===e)break t;if(D===a&&++_===s&&(y=d),D===c&&++H===n&&(S=d),(U=k.nextSibling)!==null)break;k=D,D=k.parentNode}k=U}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(po={focusedElem:e,selectionRange:a},Us=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,n=a.stateNode;try{var P=Kn(a.type,s);e=n.getSnapshotBeforeUpdate(P,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ce(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)bo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function gm(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:za(e,a),n&4&&Gi(5,a);break;case 1:if(za(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Ce(a,a.return,d)}else{var s=Kn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ce(a,a.return,d)}}n&64&&fm(a),n&512&&ki(a,a.return);break;case 3:if(za(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{th(e,t)}catch(d){Ce(a,a.return,d)}}break;case 27:t===null&&n&4&&ym(a);case 26:case 5:za(e,a),t===null&&n&4&&hm(a),n&512&&ki(a,a.return);break;case 12:za(e,a);break;case 31:za(e,a),n&4&&xm(e,a);break;case 13:za(e,a),n&4&&Sm(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=wv.bind(null,a),Fv(e,a))));break;case 22:if(n=a.memoizedState!==null||Ca,!n){t=t!==null&&t.memoizedState!==null||Pe,s=Ca;var c=Pe;Ca=n,(Pe=t)&&!c?Da(e,a,(a.subtreeFlags&8772)!==0):za(e,a),Ca=s,Pe=c}break;case 30:break;default:za(e,a)}}function vm(e){var t=e.alternate;t!==null&&(e.alternate=null,vm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,bt=!1;function _a(e,t,a){for(a=a.child;a!==null;)bm(e,t,a),a=a.sibling}function bm(e,t,a){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(di,a)}catch{}switch(a.tag){case 26:Pe||ha(a,t),_a(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pe||ha(a,t);var n=Ge,s=bt;fn(a.type)&&(Ge=a.stateNode,bt=!1),_a(e,t,a),Wi(a.stateNode),Ge=n,bt=s;break;case 5:Pe||ha(a,t);case 6:if(n=Ge,s=bt,Ge=null,_a(e,t,a),Ge=n,bt=s,Ge!==null)if(bt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(a.stateNode)}catch(c){Ce(a,t,c)}else try{Ge.removeChild(a.stateNode)}catch(c){Ce(a,t,c)}break;case 18:Ge!==null&&(bt?(e=Ge,fy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Xl(e)):fy(Ge,a.stateNode));break;case 4:n=Ge,s=bt,Ge=a.stateNode.containerInfo,bt=!0,_a(e,t,a),Ge=n,bt=s;break;case 0:case 11:case 14:case 15:nn(2,a,t),Pe||nn(4,a,t),_a(e,t,a);break;case 1:Pe||(ha(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&dm(a,t,n)),_a(e,t,a);break;case 21:_a(e,t,a);break;case 22:Pe=(n=Pe)||a.memoizedState!==null,_a(e,t,a),Pe=n;break;default:_a(e,t,a)}}function xm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xl(e)}catch(a){Ce(t,t.return,a)}}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xl(e)}catch(a){Ce(t,t.return,a)}}function Sv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pm),t;default:throw Error(r(435,e.tag))}}function ys(e,t){var a=Sv(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var s=Cv.bind(null,e,n);n.then(s,s)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var s=a[n],c=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(fn(y.type)){Ge=y.stateNode,bt=!1;break e}break;case 5:Ge=y.stateNode,bt=!1;break e;case 3:case 4:Ge=y.stateNode.containerInfo,bt=!0;break e}y=y.return}if(Ge===null)throw Error(r(160));bm(c,d,s),Ge=null,bt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Em(t,e),t=t.sibling}var la=null;function Em(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),St(e),n&4&&(nn(3,e,e.return),Gi(3,e),nn(5,e,e.return));break;case 1:xt(t,e),St(e),n&512&&(Pe||a===null||ha(a,a.return)),n&64&&Ca&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var s=la;if(xt(t,e),St(e),n&512&&(Pe||a===null||ha(a,a.return)),n&4){var c=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(n){case"title":c=s.getElementsByTagName("title")[0],(!c||c[yi]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(n),s.head.insertBefore(c,s.querySelector("head > title"))),ct(c,n,a),c[it]=e,at(c),n=c;break e;case"link":var d=Ey("link","href",s).get(n+(a.href||""));if(d){for(var y=0;y<d.length;y++)if(c=d[y],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(y,1);break t}}c=s.createElement(n),ct(c,n,a),s.head.appendChild(c);break;case"meta":if(d=Ey("meta","content",s).get(n+(a.content||""))){for(y=0;y<d.length;y++)if(c=d[y],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(y,1);break t}}c=s.createElement(n),ct(c,n,a),s.head.appendChild(c);break;default:throw Error(r(468,n))}c[it]=e,at(c),n=c}e.stateNode=n}else Ry(s,e.type,e.stateNode);else e.stateNode=Sy(s,n,e.memoizedProps);else c!==n?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,n===null?Ry(s,e.type,e.stateNode):Sy(s,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),St(e),n&512&&(Pe||a===null||ha(a,a.return)),a!==null&&n&4&&Kc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),St(e),n&512&&(Pe||a===null||ha(a,a.return)),e.flags&32){s=e.stateNode;try{ml(s,"")}catch(P){Ce(e,e.return,P)}}n&4&&e.stateNode!=null&&(s=e.memoizedProps,Kc(e,s,a!==null?a.memoizedProps:s)),n&1024&&(Zc=!0);break;case 6:if(xt(t,e),St(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(P){Ce(e,e.return,P)}}break;case 3:if(_s=null,s=la,la=ws(t.containerInfo),xt(t,e),la=s,St(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Xl(t.containerInfo)}catch(P){Ce(e,e.return,P)}Zc&&(Zc=!1,Rm(e));break;case 4:n=la,la=ws(e.stateNode.containerInfo),xt(t,e),St(e),la=n;break;case 12:xt(t,e),St(e);break;case 31:xt(t,e),St(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ys(e,n)));break;case 13:xt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(gs=wt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ys(e,n)));break;case 22:s=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,_=Ca,H=Pe;if(Ca=_||s,Pe=H||S,xt(t,e),Pe=H,Ca=_,St(e),n&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||S||Ca||Pe||Xn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(c=S.stateNode,s)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=S.stateNode;var k=S.memoizedProps.style,D=k!=null&&k.hasOwnProperty("display")?k.display:null;y.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(P){Ce(S,S.return,P)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(P){Ce(S,S.return,P)}}}else if(t.tag===18){if(a===null){S=t;try{var U=S.stateNode;s?dy(U,!0):dy(S.stateNode,!1)}catch(P){Ce(S,S.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,ys(e,a))));break;case 19:xt(t,e),St(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ys(e,n)));break;case 30:break;case 21:break;default:xt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(mm(n)){a=n;break}n=n.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var s=a.stateNode,c=Xc(e);ms(e,c,s);break;case 5:var d=a.stateNode;a.flags&32&&(ml(d,""),a.flags&=-33);var y=Xc(e);ms(e,y,d);break;case 3:case 4:var S=a.stateNode.containerInfo,_=Xc(e);Vc(e,_,S);break;default:throw Error(r(161))}}catch(H){Ce(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function za(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gm(e,t.alternate,t),t=t.sibling}function Xn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nn(4,t,t.return),Xn(t);break;case 1:ha(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&dm(t,t.return,a),Xn(t);break;case 27:Wi(t.stateNode);case 26:case 5:ha(t,t.return),Xn(t);break;case 22:t.memoizedState===null&&Xn(t);break;case 30:Xn(t);break;default:Xn(t)}e=e.sibling}}function Da(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,s=e,c=t,d=c.flags;switch(c.tag){case 0:case 11:case 15:Da(s,c,a),Gi(4,c);break;case 1:if(Da(s,c,a),n=c,s=n.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(_){Ce(n,n.return,_)}if(n=c,s=n.updateQueue,s!==null){var y=n.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)eh(S[s],y)}catch(_){Ce(n,n.return,_)}}a&&d&64&&fm(c),ki(c,c.return);break;case 27:ym(c);case 26:case 5:Da(s,c,a),a&&n===null&&d&4&&hm(c),ki(c,c.return);break;case 12:Da(s,c,a);break;case 31:Da(s,c,a),a&&d&4&&xm(s,c);break;case 13:Da(s,c,a),a&&d&4&&Sm(s,c);break;case 22:c.memoizedState===null&&Da(s,c,a),ki(c,c.return);break;case 30:break;default:Da(s,c,a)}t=t.sibling}}function Jc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Oi(a))}function Fc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oi(e))}function ia(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Am(e,t,a,n),t=t.sibling}function Am(e,t,a,n){var s=t.flags;switch(t.tag){case 0:case 11:case 15:ia(e,t,a,n),s&2048&&Gi(9,t);break;case 1:ia(e,t,a,n);break;case 3:ia(e,t,a,n),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oi(e)));break;case 12:if(s&2048){ia(e,t,a,n),e=t.stateNode;try{var c=t.memoizedProps,d=c.id,y=c.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ce(t,t.return,S)}}else ia(e,t,a,n);break;case 31:ia(e,t,a,n);break;case 13:ia(e,t,a,n);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?c._visibility&2?ia(e,t,a,n):Yi(e,t):c._visibility&2?ia(e,t,a,n):(c._visibility|=2,Ml(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Jc(d,t);break;case 24:ia(e,t,a,n),s&2048&&Fc(t.alternate,t);break;default:ia(e,t,a,n)}}function Ml(e,t,a,n,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,d=t,y=a,S=n,_=d.flags;switch(d.tag){case 0:case 11:case 15:Ml(c,d,y,S,s),Gi(8,d);break;case 23:break;case 22:var H=d.stateNode;d.memoizedState!==null?H._visibility&2?Ml(c,d,y,S,s):Yi(c,d):(H._visibility|=2,Ml(c,d,y,S,s)),s&&_&2048&&Jc(d.alternate,d);break;case 24:Ml(c,d,y,S,s),s&&_&2048&&Fc(d.alternate,d);break;default:Ml(c,d,y,S,s)}t=t.sibling}}function Yi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,s=n.flags;switch(n.tag){case 22:Yi(a,n),s&2048&&Jc(n.alternate,n);break;case 24:Yi(a,n),s&2048&&Fc(n.alternate,n);break;default:Yi(a,n)}t=t.sibling}}var Ki=8192;function Ul(e,t,a){if(e.subtreeFlags&Ki)for(e=e.child;e!==null;)Nm(e,t,a),e=e.sibling}function Nm(e,t,a){switch(e.tag){case 26:Ul(e,t,a),e.flags&Ki&&e.memoizedState!==null&&sb(a,la,e.memoizedState,e.memoizedProps);break;case 5:Ul(e,t,a);break;case 3:case 4:var n=la;la=ws(e.stateNode.containerInfo),Ul(e,t,a),la=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ki,Ki=16777216,Ul(e,t,a),Ki=n):Ul(e,t,a));break;default:Ul(e,t,a)}}function Tm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,Om(n,e)}Tm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jm(e),e=e.sibling}function jm(e){switch(e.tag){case 0:case 11:case 15:Xi(e),e.flags&2048&&nn(9,e,e.return);break;case 3:Xi(e);break;case 12:Xi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ps(e)):Xi(e);break;default:Xi(e)}}function ps(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,Om(n,e)}Tm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nn(8,t,t.return),ps(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ps(t));break;default:ps(t)}e=e.sibling}}function Om(e,t){for(;nt!==null;){var a=nt;switch(a.tag){case 0:case 11:case 15:nn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Oi(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,nt=n;else e:for(a=e;nt!==null;){n=nt;var s=n.sibling,c=n.return;if(vm(n),n===a){nt=null;break e}if(s!==null){s.return=c,nt=s;break e}nt=c}}}var Ev={getCacheForType:function(e){var t=st(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return st(Fe).controller.signal}},Rv=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Ue=null,me=null,pe=0,we=0,qt=null,ln=!1,ql=!1,$c=!1,Ma=0,Ke=0,un=0,Vn=0,Wc=0,Lt=0,Ll=0,Vi=null,Et=null,Pc=!1,gs=0,wm=0,vs=1/0,bs=null,sn=null,et=0,rn=null,Hl=null,Ua=0,Ic=0,eo=null,Cm=null,Zi=0,to=null;function Ht(){return(Ae&2)!==0&&pe!==0?pe&-pe:q.T!==null?so():Vf()}function _m(){if(Lt===0)if((pe&536870912)===0||ve){var e=ju;ju<<=1,(ju&3932160)===0&&(ju=262144),Lt=e}else Lt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),Lt}function Rt(e,t,a){(e===Ue&&(we===2||we===9)||e.cancelPendingCommit!==null)&&(Bl(e,0),cn(e,pe,Lt,!1)),mi(e,a),((Ae&2)===0||e!==Ue)&&(e===Ue&&((Ae&2)===0&&(Vn|=a),Ke===4&&cn(e,pe,Lt,!1)),ma(e))}function zm(e,t,a){if((Ae&6)!==0)throw Error(r(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||hi(e,t),s=n?Tv(e,t):no(e,t,!0),c=n;do{if(s===0){ql&&!n&&cn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!Av(a)){s=no(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;s=Vi;var S=y.current.memoizedState.isDehydrated;if(S&&(Bl(y,d).flags|=256),d=no(y,d,!1),d!==2){if($c&&!S){y.errorRecoveryDisabledLanes|=c,Vn|=c,s=4;break e}c=Et,Et=s,c!==null&&(Et===null?Et=c:Et.push.apply(Et,c))}s=d}if(c=!1,s!==2)continue}}if(s===1){Bl(e,0),cn(e,t,0,!0);break}e:{switch(n=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:cn(n,t,Lt,!ln);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=gs+300-wt(),10<s)){if(cn(n,t,Lt,!ln),wu(n,0,!0)!==0)break e;Ua=t,n.timeoutHandle=cy(Dm.bind(null,n,a,Et,bs,Pc,t,Lt,Vn,Ll,ln,c,"Throttled",-0,0),s);break e}Dm(n,a,Et,bs,Pc,t,Lt,Vn,Ll,ln,c,null,-0,0)}}break}while(!0);ma(e)}function Dm(e,t,a,n,s,c,d,y,S,_,H,k,D,U){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xa},Nm(t,c,k);var P=(c&62914560)===c?gs-wt():(c&4194048)===c?wm-wt():0;if(P=rb(k,P),P!==null){Ua=c,e.cancelPendingCommit=P(Gm.bind(null,e,t,c,a,n,s,d,y,S,H,k,null,D,U)),cn(e,c,d,!_);return}}Gm(e,t,c,a,n,s,d,y,S)}function Av(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var s=a[n],c=s.getSnapshot;s=s.value;try{if(!zt(c(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cn(e,t,a,n){t&=~Wc,t&=~Vn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var s=t;0<s;){var c=31-_t(s),d=1<<c;n[c]=-1,s&=~d}a!==0&&Yf(e,a,t)}function xs(){return(Ae&6)===0?(Ji(0),!1):!0}function ao(){if(me!==null){if(we===0)var e=me.return;else e=me,Aa=Ln=null,vc(e),wl=null,Ci=0,e=me;for(;e!==null;)om(e.alternate,e),e=e.return;me=null}}function Bl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Kv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ua=0,ao(),Ue=e,me=a=Ea(e.current,null),pe=t,we=0,qt=null,ln=!1,ql=hi(e,t),$c=!1,Ll=Lt=Wc=Vn=un=Ke=0,Et=Vi=null,Pc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var s=31-_t(n),c=1<<s;t|=e[s],n&=~c}return Ma=t,Gu(),a}function Mm(e,t){ce=null,q.H=Hi,t===Ol||t===Fu?(t=$d(),we=3):t===uc?(t=$d(),we=4):we=t===Mc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,me===null&&(Ke=1,cs(e,Yt(t,e.current)))}function Um(){var e=Mt.current;return e===null?!0:(pe&4194048)===pe?Zt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Zt:!1}function qm(){var e=q.H;return q.H=Hi,e===null?Hi:e}function Lm(){var e=q.A;return q.A=Ev,e}function Ss(){Ke=4,ln||(pe&4194048)!==pe&&Mt.current!==null||(ql=!0),(un&134217727)===0&&(Vn&134217727)===0||Ue===null||cn(Ue,pe,Lt,!1)}function no(e,t,a){var n=Ae;Ae|=2;var s=qm(),c=Lm();(Ue!==e||pe!==t)&&(bs=null,Bl(e,t)),t=!1;var d=Ke;e:do try{if(we!==0&&me!==null){var y=me,S=qt;switch(we){case 8:ao(),d=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var _=we;if(we=0,qt=null,Ql(e,y,S,_),a&&ql){d=0;break e}break;default:_=we,we=0,qt=null,Ql(e,y,S,_)}}Nv(),d=Ke;break}catch(H){Mm(e,H)}while(!0);return t&&e.shellSuspendCounter++,Aa=Ln=null,Ae=n,q.H=s,q.A=c,me===null&&(Ue=null,pe=0,Gu()),d}function Nv(){for(;me!==null;)Hm(me)}function Tv(e,t){var a=Ae;Ae|=2;var n=qm(),s=Lm();Ue!==e||pe!==t?(bs=null,vs=wt()+500,Bl(e,t)):ql=hi(e,t);e:do try{if(we!==0&&me!==null){t=me;var c=qt;t:switch(we){case 1:we=0,qt=null,Ql(e,t,c,1);break;case 2:case 9:if(Jd(c)){we=0,qt=null,Bm(t);break}t=function(){we!==2&&we!==9||Ue!==e||(we=7),ma(e)},c.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:Jd(c)?(we=0,qt=null,Bm(t)):(we=0,qt=null,Ql(e,t,c,7));break;case 5:var d=null;switch(me.tag){case 26:d=me.memoizedState;case 5:case 27:var y=me;if(d?Ay(d):y.stateNode.complete){we=0,qt=null;var S=y.sibling;if(S!==null)me=S;else{var _=y.return;_!==null?(me=_,Es(_)):me=null}break t}}we=0,qt=null,Ql(e,t,c,5);break;case 6:we=0,qt=null,Ql(e,t,c,6);break;case 8:ao(),Ke=6;break e;default:throw Error(r(462))}}jv();break}catch(H){Mm(e,H)}while(!0);return Aa=Ln=null,q.H=n,q.A=s,Ae=a,me!==null?0:(Ue=null,pe=0,Gu(),Ke)}function jv(){for(;me!==null&&!$0();)Hm(me)}function Hm(e){var t=rm(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?Es(e):me=t}function Bm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=am(a,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=am(a,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:vc(t);default:om(a,t),t=me=Ld(t,Ma),t=rm(a,t,Ma)}e.memoizedProps=e.pendingProps,t===null?Es(e):me=t}function Ql(e,t,a,n){Aa=Ln=null,vc(t),wl=null,Ci=0;var s=t.return;try{if(yv(e,s,t,a,pe)){Ke=1,cs(e,Yt(a,e.current)),me=null;return}}catch(c){if(s!==null)throw me=s,c;Ke=1,cs(e,Yt(a,e.current)),me=null;return}t.flags&32768?(ve||n===1?e=!0:ql||(pe&536870912)!==0?e=!1:(ln=e=!0,(n===2||n===9||n===3||n===6)&&(n=Mt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Qm(t,e)):Es(t)}function Es(e){var t=e;do{if((t.flags&32768)!==0){Qm(t,ln);return}e=t.return;var a=vv(t.alternate,t,Ma);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Ke===0&&(Ke=5)}function Qm(e,t){do{var a=bv(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);Ke=6,me=null}function Gm(e,t,a,n,s,c,d,y,S){e.cancelPendingCommit=null;do Rs();while(et!==0);if((Ae&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Xr,ug(e,a,c,d,y,S),e===Ue&&(me=Ue=null,pe=0),Hl=t,rn=e,Ua=a,Ic=c,eo=s,Cm=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,_v(Nu,function(){return Vm(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=q.T,q.T=null,s=V.p,V.p=2,d=Ae,Ae|=4;try{xv(e,t,a)}finally{Ae=d,V.p=s,q.T=n}}et=1,km(),Ym(),Km()}}function km(){if(et===1){et=0;var e=rn,t=Hl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null;var n=V.p;V.p=2;var s=Ae;Ae|=4;try{Em(t,e);var c=po,d=Od(e.containerInfo),y=c.focusedElem,S=c.selectionRange;if(d!==y&&y&&y.ownerDocument&&jd(y.ownerDocument.documentElement,y)){if(S!==null&&Qr(y)){var _=S.start,H=S.end;if(H===void 0&&(H=_),"selectionStart"in y)y.selectionStart=_,y.selectionEnd=Math.min(H,y.value.length);else{var k=y.ownerDocument||document,D=k&&k.defaultView||window;if(D.getSelection){var U=D.getSelection(),P=y.textContent.length,ie=Math.min(S.start,P),Me=S.end===void 0?ie:Math.min(S.end,P);!U.extend&&ie>Me&&(d=Me,Me=ie,ie=d);var T=Td(y,ie),A=Td(y,Me);if(T&&A&&(U.rangeCount!==1||U.anchorNode!==T.node||U.anchorOffset!==T.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var C=k.createRange();C.setStart(T.node,T.offset),U.removeAllRanges(),ie>Me?(U.addRange(C),U.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),U.addRange(C))}}}}for(k=[],U=y;U=U.parentNode;)U.nodeType===1&&k.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<k.length;y++){var Q=k[y];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Us=!!yo,po=yo=null}finally{Ae=s,V.p=n,q.T=a}}e.current=t,et=2}}function Ym(){if(et===2){et=0;var e=rn,t=Hl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=q.T,q.T=null;var n=V.p;V.p=2;var s=Ae;Ae|=4;try{gm(e,t.alternate,t)}finally{Ae=s,V.p=n,q.T=a}}et=3}}function Km(){if(et===4||et===3){et=0,W0();var e=rn,t=Hl,a=Ua,n=Cm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,Hl=rn=null,Xm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(sn=null),Sr(a),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(di,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=q.T,s=V.p,V.p=2,q.T=null;try{for(var c=e.onRecoverableError,d=0;d<n.length;d++){var y=n[d];c(y.value,{componentStack:y.stack})}}finally{q.T=t,V.p=s}}(Ua&3)!==0&&Rs(),ma(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===to?Zi++:(Zi=0,to=e):Zi=0,Ji(0)}}function Xm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oi(t)))}function Rs(){return km(),Ym(),Km(),Vm()}function Vm(){if(et!==5)return!1;var e=rn,t=Ic;Ic=0;var a=Sr(Ua),n=q.T,s=V.p;try{V.p=32>a?32:a,q.T=null,a=eo,eo=null;var c=rn,d=Ua;if(et=0,Hl=rn=null,Ua=0,(Ae&6)!==0)throw Error(r(331));var y=Ae;if(Ae|=4,jm(c.current),Am(c,c.current,d,a),Ae=y,Ji(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(di,c)}catch{}return!0}finally{V.p=s,q.T=n,Xm(e,t)}}function Zm(e,t,a){t=Yt(a,t),t=Dc(e.stateNode,t,2),e=en(e,t,2),e!==null&&(mi(e,2),ma(e))}function Ce(e,t,a){if(e.tag===3)Zm(e,e,a);else for(;t!==null;){if(t.tag===3){Zm(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(sn===null||!sn.has(n))){e=Yt(a,e),a=Jh(2),n=en(t,a,2),n!==null&&(Fh(a,n,t,e),mi(n,2),ma(n));break}}t=t.return}}function lo(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Rv;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(a)||($c=!0,s.add(a),e=Ov.bind(null,e,t,a),t.then(e,e))}function Ov(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(pe&a)===a&&(Ke===4||Ke===3&&(pe&62914560)===pe&&300>wt()-gs?(Ae&2)===0&&Bl(e,0):Wc|=a,Ll===pe&&(Ll=0)),ma(e)}function Jm(e,t){t===0&&(t=kf()),e=Mn(e,t),e!==null&&(mi(e,t),ma(e))}function wv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Jm(e,a)}function Cv(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(t),Jm(e,a)}function _v(e,t){return gr(e,t)}var As=null,Gl=null,io=!1,Ns=!1,uo=!1,on=0;function ma(e){e!==Gl&&e.next===null&&(Gl===null?As=Gl=e:Gl=Gl.next=e),Ns=!0,io||(io=!0,Dv())}function Ji(e,t){if(!uo&&Ns){uo=!0;do for(var a=!1,n=As;n!==null;){if(e!==0){var s=n.pendingLanes;if(s===0)var c=0;else{var d=n.suspendedLanes,y=n.pingedLanes;c=(1<<31-_t(42|e)+1)-1,c&=s&~(d&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Pm(n,c))}else c=pe,c=wu(n,n===Ue?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||hi(n,c)||(a=!0,Pm(n,c));n=n.next}while(a);uo=!1}}function zv(){Fm()}function Fm(){Ns=io=!1;var e=0;on!==0&&Yv()&&(e=on);for(var t=wt(),a=null,n=As;n!==null;){var s=n.next,c=$m(n,t);c===0?(n.next=null,a===null?As=s:a.next=s,s===null&&(Gl=a)):(a=n,(e!==0||(c&3)!==0)&&(Ns=!0)),n=s}et!==0&&et!==5||Ji(e),on!==0&&(on=0)}function $m(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-_t(c),y=1<<d,S=s[d];S===-1?((y&a)===0||(y&n)!==0)&&(s[d]=ig(y,t)):S<=t&&(e.expiredLanes|=y),c&=~y}if(t=Ue,a=pe,a=wu(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&vr(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||hi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&vr(n),Sr(a)){case 2:case 8:a=Qf;break;case 32:a=Nu;break;case 268435456:a=Gf;break;default:a=Nu}return n=Wm.bind(null,e),a=gr(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&vr(n),e.callbackPriority=2,e.callbackNode=null,2}function Wm(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Rs()&&e.callbackNode!==a)return null;var n=pe;return n=wu(e,e===Ue?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(zm(e,n,t),$m(e,wt()),e.callbackNode!=null&&e.callbackNode===a?Wm.bind(null,e):null)}function Pm(e,t){if(Rs())return null;zm(e,t,!0)}function Dv(){Xv(function(){(Ae&6)!==0?gr(Bf,zv):Fm()})}function so(){if(on===0){var e=Tl;e===0&&(e=Tu,Tu<<=1,(Tu&261888)===0&&(Tu=256)),on=e}return on}function Im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Du(""+e)}function ey(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Mv(e,t,a,n,s){if(t==="submit"&&a&&a.stateNode===s){var c=Im((s[gt]||null).action),d=n.submitter;d&&(t=(t=d[gt]||null)?Im(t.formAction):d.getAttribute("formAction"),t!==null&&(c=t,d=null));var y=new Lu("action","action",null,n,s);e.push({event:y,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(on!==0){var S=d?ey(s,d):new FormData(s);jc(a,{pending:!0,data:S,method:s.method,action:c},null,S)}}else typeof c=="function"&&(y.preventDefault(),S=d?ey(s,d):new FormData(s),jc(a,{pending:!0,data:S,method:s.method,action:c},c,S))},currentTarget:s}]})}}for(var ro=0;ro<Kr.length;ro++){var co=Kr[ro],Uv=co.toLowerCase(),qv=co[0].toUpperCase()+co.slice(1);na(Uv,"on"+qv)}na(_d,"onAnimationEnd"),na(zd,"onAnimationIteration"),na(Dd,"onAnimationStart"),na("dblclick","onDoubleClick"),na("focusin","onFocus"),na("focusout","onBlur"),na(Pg,"onTransitionRun"),na(Ig,"onTransitionStart"),na(ev,"onTransitionCancel"),na(Md,"onTransitionEnd"),dl("onMouseEnter",["mouseout","mouseover"]),dl("onMouseLeave",["mouseout","mouseover"]),dl("onPointerEnter",["pointerout","pointerover"]),dl("onPointerLeave",["pointerout","pointerover"]),Cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="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(" "),Lv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function ty(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],s=n.event;n=n.listeners;e:{var c=void 0;if(t)for(var d=n.length-1;0<=d;d--){var y=n[d],S=y.instance,_=y.currentTarget;if(y=y.listener,S!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=_;try{c(s)}catch(H){Qu(H)}s.currentTarget=null,c=S}else for(d=0;d<n.length;d++){if(y=n[d],S=y.instance,_=y.currentTarget,y=y.listener,S!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=_;try{c(s)}catch(H){Qu(H)}s.currentTarget=null,c=S}}}}function ye(e,t){var a=t[Er];a===void 0&&(a=t[Er]=new Set);var n=e+"__bubble";a.has(n)||(ay(t,e,2,!1),a.add(n))}function oo(e,t,a){var n=0;t&&(n|=4),ay(a,e,n,t)}var Ts="_reactListening"+Math.random().toString(36).slice(2);function fo(e){if(!e[Ts]){e[Ts]=!0,Ff.forEach(function(a){a!=="selectionchange"&&(Lv.has(a)||oo(a,!1,e),oo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ts]||(t[Ts]=!0,oo("selectionchange",!1,t))}}function ay(e,t,a,n){switch(_y(t)){case 2:var s=fb;break;case 8:s=db;break;default:s=jo}a=s.bind(null,t,a,e),s=void 0,!_r||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function ho(e,t,a,n,s){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var y=n.stateNode.containerInfo;if(y===s)break;if(d===4)for(d=n.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;y!==null;){if(d=cl(y),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){n=c=d;continue e}y=y.parentNode}}n=n.return}sd(function(){var _=c,H=wr(a),k=[];e:{var D=Ud.get(e);if(D!==void 0){var U=Lu,P=e;switch(e){case"keypress":if(Uu(a)===0)break e;case"keydown":case"keyup":U=Cg;break;case"focusin":P="focus",U=Ur;break;case"focusout":P="blur",U=Ur;break;case"beforeblur":case"afterblur":U=Ur;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=vg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Dg;break;case _d:case zd:case Dd:U=Sg;break;case Md:U=Ug;break;case"scroll":case"scrollend":U=pg;break;case"wheel":U=Lg;break;case"copy":case"cut":case"paste":U=Rg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=dd;break;case"toggle":case"beforetoggle":U=Bg}var ie=(t&4)!==0,Me=!ie&&(e==="scroll"||e==="scrollend"),T=ie?D!==null?D+"Capture":null:D;ie=[];for(var A=_,C;A!==null;){var Q=A;if(C=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||C===null||T===null||(Q=gi(A,T),Q!=null&&ie.push($i(A,Q,C))),Me)break;A=A.return}0<ie.length&&(D=new U(D,P,null,a,H),k.push({event:D,listeners:ie}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",D&&a!==Or&&(P=a.relatedTarget||a.fromElement)&&(cl(P)||P[rl]))break e;if((U||D)&&(D=H.window===H?H:(D=H.ownerDocument)?D.defaultView||D.parentWindow:window,U?(P=a.relatedTarget||a.toElement,U=_,P=P?cl(P):null,P!==null&&(Me=f(P),ie=P.tag,P!==Me||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(U=null,P=_),U!==P)){if(ie=od,Q="onMouseLeave",T="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ie=dd,Q="onPointerLeave",T="onPointerEnter",A="pointer"),Me=U==null?D:pi(U),C=P==null?D:pi(P),D=new ie(Q,A+"leave",U,a,H),D.target=Me,D.relatedTarget=C,Q=null,cl(H)===_&&(ie=new ie(T,A+"enter",P,a,H),ie.target=C,ie.relatedTarget=Me,Q=ie),Me=Q,U&&P)t:{for(ie=Hv,T=U,A=P,C=0,Q=T;Q;Q=ie(Q))C++;Q=0;for(var ne=A;ne;ne=ie(ne))Q++;for(;0<C-Q;)T=ie(T),C--;for(;0<Q-C;)A=ie(A),Q--;for(;C--;){if(T===A||A!==null&&T===A.alternate){ie=T;break t}T=ie(T),A=ie(A)}ie=null}else ie=null;U!==null&&ny(k,D,U,ie,!1),P!==null&&Me!==null&&ny(k,Me,P,ie,!0)}}e:{if(D=_?pi(_):window,U=D.nodeName&&D.nodeName.toLowerCase(),U==="select"||U==="input"&&D.type==="file")var Se=xd;else if(vd(D))if(Sd)Se=Fg;else{Se=Zg;var I=Vg}else U=D.nodeName,!U||U.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?_&&jr(_.elementType)&&(Se=xd):Se=Jg;if(Se&&(Se=Se(e,_))){bd(k,Se,a,H);break e}I&&I(e,D,_),e==="focusout"&&_&&D.type==="number"&&_.memoizedProps.value!=null&&Tr(D,"number",D.value)}switch(I=_?pi(_):window,e){case"focusin":(vd(I)||I.contentEditable==="true")&&(vl=I,Gr=_,Ni=null);break;case"focusout":Ni=Gr=vl=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,wd(k,a,H);break;case"selectionchange":if(Wg)break;case"keydown":case"keyup":wd(k,a,H)}var oe;if(Lr)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else gl?pd(e,a)&&(ge="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ge="onCompositionStart");ge&&(hd&&a.locale!=="ko"&&(gl||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&gl&&(oe=rd()):(Za=H,zr="value"in Za?Za.value:Za.textContent,gl=!0)),I=js(_,ge),0<I.length&&(ge=new fd(ge,e,null,a,H),k.push({event:ge,listeners:I}),oe?ge.data=oe:(oe=gd(a),oe!==null&&(ge.data=oe)))),(oe=Gg?kg(e,a):Yg(e,a))&&(ge=js(_,"onBeforeInput"),0<ge.length&&(I=new fd("onBeforeInput","beforeinput",null,a,H),k.push({event:I,listeners:ge}),I.data=oe)),Mv(k,e,_,a,H)}ty(k,t)})}function $i(e,t,a){return{instance:e,listener:t,currentTarget:a}}function js(e,t){for(var a=t+"Capture",n=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=gi(e,a),s!=null&&n.unshift($i(e,s,c)),s=gi(e,t),s!=null&&n.push($i(e,s,c))),e.tag===3)return n;e=e.return}return[]}function Hv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ny(e,t,a,n,s){for(var c=t._reactName,d=[];a!==null&&a!==n;){var y=a,S=y.alternate,_=y.stateNode;if(y=y.tag,S!==null&&S===n)break;y!==5&&y!==26&&y!==27||_===null||(S=_,s?(_=gi(a,c),_!=null&&d.unshift($i(a,_,S))):s||(_=gi(a,c),_!=null&&d.push($i(a,_,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Bv=/\r\n?/g,Qv=/\u0000|\uFFFD/g;function ly(e){return(typeof e=="string"?e:""+e).replace(Bv,`
|
|
`).replace(Qv,"")}function iy(e,t){return t=ly(t),ly(e)===t}function De(e,t,a,n,s,c){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ml(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ml(e,""+n);break;case"className":_u(e,"class",n);break;case"tabIndex":_u(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":_u(e,a,n);break;case"style":id(e,n,c);break;case"data":if(t!=="object"){_u(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Du(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&De(e,t,"name",s.name,s,null),De(e,t,"formEncType",s.formEncType,s,null),De(e,t,"formMethod",s.formMethod,s,null),De(e,t,"formTarget",s.formTarget,s,null)):(De(e,t,"encType",s.encType,s,null),De(e,t,"method",s.method,s,null),De(e,t,"target",s.target,s,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Du(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=xa);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Du(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ye("beforetoggle",e),ye("toggle",e),Cu(e,"popover",n);break;case"xlinkActuate":ba(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ba(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ba(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ba(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ba(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ba(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ba(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ba(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ba(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Cu(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=mg.get(a)||a,Cu(e,a,n))}}function mo(e,t,a,n,s,c){switch(a){case"style":id(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof n=="string"?ml(e,n):(typeof n=="number"||typeof n=="bigint")&&ml(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=xa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$f.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[gt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof n=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,s);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Cu(e,a,n)}}}function ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var n=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(d!=null)switch(c){case"src":n=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,c,d,a,null)}}s&&De(e,t,"srcSet",a.srcSet,a,null),n&&De(e,t,"src",a.src,a,null);return;case"input":ye("invalid",e);var y=c=d=s=null,S=null,_=null;for(n in a)if(a.hasOwnProperty(n)){var H=a[n];if(H!=null)switch(n){case"name":s=H;break;case"type":d=H;break;case"checked":S=H;break;case"defaultChecked":_=H;break;case"value":c=H;break;case"defaultValue":y=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:De(e,t,n,H,a,null)}}td(e,c,y,S,_,d,s,!1);return;case"select":ye("invalid",e),n=d=c=null;for(s in a)if(a.hasOwnProperty(s)&&(y=a[s],y!=null))switch(s){case"value":c=y;break;case"defaultValue":d=y;break;case"multiple":n=y;default:De(e,t,s,y,a,null)}t=c,a=d,e.multiple=!!n,t!=null?hl(e,!!n,t,!1):a!=null&&hl(e,!!n,a,!0);return;case"textarea":ye("invalid",e),c=s=n=null;for(d in a)if(a.hasOwnProperty(d)&&(y=a[d],y!=null))switch(d){case"value":n=y;break;case"defaultValue":s=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:De(e,t,d,y,a,null)}nd(e,n,s,c);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:De(e,t,S,n,a,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(n=0;n<Fi.length;n++)ye(Fi[n],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in a)if(a.hasOwnProperty(_)&&(n=a[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,_,n,a,null)}return;default:if(jr(t)){for(H in a)a.hasOwnProperty(H)&&(n=a[H],n!==void 0&&mo(e,t,H,n,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(n=a[y],n!=null&&De(e,t,y,n,a,null))}function Gv(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,d=null,y=null,S=null,_=null,H=null;for(U in a){var k=a[U];if(a.hasOwnProperty(U)&&k!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=k;default:n.hasOwnProperty(U)||De(e,t,U,null,n,k)}}for(var D in n){var U=n[D];if(k=a[D],n.hasOwnProperty(D)&&(U!=null||k!=null))switch(D){case"type":c=U;break;case"name":s=U;break;case"checked":_=U;break;case"defaultChecked":H=U;break;case"value":d=U;break;case"defaultValue":y=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==k&&De(e,t,D,U,n,k)}}Nr(e,d,y,S,_,H,c,s);return;case"select":U=d=y=D=null;for(c in a)if(S=a[c],a.hasOwnProperty(c)&&S!=null)switch(c){case"value":break;case"multiple":U=S;default:n.hasOwnProperty(c)||De(e,t,c,null,n,S)}for(s in n)if(c=n[s],S=a[s],n.hasOwnProperty(s)&&(c!=null||S!=null))switch(s){case"value":D=c;break;case"defaultValue":y=c;break;case"multiple":d=c;default:c!==S&&De(e,t,s,c,n,S)}t=y,a=d,n=U,D!=null?hl(e,!!a,D,!1):!!n!=!!a&&(t!=null?hl(e,!!a,t,!0):hl(e,!!a,a?[]:"",!1));return;case"textarea":U=D=null;for(y in a)if(s=a[y],a.hasOwnProperty(y)&&s!=null&&!n.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:De(e,t,y,null,n,s)}for(d in n)if(s=n[d],c=a[d],n.hasOwnProperty(d)&&(s!=null||c!=null))switch(d){case"value":D=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&De(e,t,d,s,n,c)}ad(e,D,U);return;case"option":for(var P in a)if(D=a[P],a.hasOwnProperty(P)&&D!=null&&!n.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:De(e,t,P,null,n,D)}for(S in n)if(D=n[S],U=a[S],n.hasOwnProperty(S)&&D!==U&&(D!=null||U!=null))switch(S){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:De(e,t,S,D,n,U)}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 ie in a)D=a[ie],a.hasOwnProperty(ie)&&D!=null&&!n.hasOwnProperty(ie)&&De(e,t,ie,null,n,D);for(_ in n)if(D=n[_],U=a[_],n.hasOwnProperty(_)&&D!==U&&(D!=null||U!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:De(e,t,_,D,n,U)}return;default:if(jr(t)){for(var Me in a)D=a[Me],a.hasOwnProperty(Me)&&D!==void 0&&!n.hasOwnProperty(Me)&&mo(e,t,Me,void 0,n,D);for(H in n)D=n[H],U=a[H],!n.hasOwnProperty(H)||D===U||D===void 0&&U===void 0||mo(e,t,H,D,n,U);return}}for(var T in a)D=a[T],a.hasOwnProperty(T)&&D!=null&&!n.hasOwnProperty(T)&&De(e,t,T,null,n,D);for(k in n)D=n[k],U=a[k],!n.hasOwnProperty(k)||D===U||D==null&&U==null||De(e,t,k,D,n,U)}function uy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var s=a[n],c=s.transferSize,d=s.initiatorType,y=s.duration;if(c&&y&&uy(d)){for(d=0,y=s.responseEnd,n+=1;n<a.length;n++){var S=a[n],_=S.startTime;if(_>y)break;var H=S.transferSize,k=S.initiatorType;H&&uy(k)&&(S=S.responseEnd,d+=H*(S<y?1:(y-_)/(S-_)))}if(--n,t+=8*(c+d)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yo=null,po=null;function Os(e){return e.nodeType===9?e:e.ownerDocument}function sy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ry(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function go(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vo=null;function Yv(){var e=window.event;return e&&e.type==="popstate"?e===vo?!1:(vo=e,!0):(vo=null,!1)}var cy=typeof setTimeout=="function"?setTimeout:void 0,Kv=typeof clearTimeout=="function"?clearTimeout:void 0,oy=typeof Promise=="function"?Promise:void 0,Xv=typeof queueMicrotask=="function"?queueMicrotask:typeof oy<"u"?function(e){return oy.resolve(null).then(e).catch(Vv)}:cy;function Vv(e){setTimeout(function(){throw e})}function fn(e){return e==="head"}function fy(e,t){var a=t,n=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(s),Xl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Wi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Wi(a);for(var c=a.firstChild;c;){var d=c.nextSibling,y=c.nodeName;c[yi]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=d}}else a==="body"&&Wi(e.ownerDocument.body);a=s}while(a);Xl(t)}function dy(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function bo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":bo(a),Rr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Zv(e,t,a,n){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[yi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function Jv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Jt(e.nextSibling),e===null))return null;return e}function hy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function xo(e){return e.data==="$?"||e.data==="$~"}function So(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Eo=null;function my(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Jt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function yy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function py(e,t,a){switch(t=Os(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Wi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rr(e)}var Ft=new Map,gy=new Set;function ws(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qa=V.d;V.d={f:$v,r:Wv,D:Pv,C:Iv,L:eb,m:tb,X:nb,S:ab,M:lb};function $v(){var e=qa.f(),t=xs();return e||t}function Wv(e){var t=ol(e);t!==null&&t.tag===5&&t.type==="form"?Mh(t):qa.r(e)}var kl=typeof document>"u"?null:document;function vy(e,t,a){var n=kl;if(n&&typeof t=="string"&&t){var s=Gt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),gy.has(s)||(gy.add(s),e={rel:e,crossOrigin:a,href:t},n.querySelector(s)===null&&(t=n.createElement("link"),ct(t,"link",e),at(t),n.head.appendChild(t)))}}function Pv(e){qa.D(e),vy("dns-prefetch",e,null)}function Iv(e,t){qa.C(e,t),vy("preconnect",e,t)}function eb(e,t,a){qa.L(e,t,a);var n=kl;if(n&&e&&t){var s='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Gt(a.imageSizes)+'"]')):s+='[href="'+Gt(e)+'"]';var c=s;switch(t){case"style":c=Yl(e);break;case"script":c=Kl(e)}Ft.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ft.set(c,e),n.querySelector(s)!==null||t==="style"&&n.querySelector(Pi(c))||t==="script"&&n.querySelector(Ii(c))||(t=n.createElement("link"),ct(t,"link",e),at(t),n.head.appendChild(t)))}}function tb(e,t){qa.m(e,t);var a=kl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Gt(n)+'"][href="'+Gt(e)+'"]',c=s;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Kl(e)}if(!Ft.has(c)&&(e=b({rel:"modulepreload",href:e},t),Ft.set(c,e),a.querySelector(s)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ii(c)))return}n=a.createElement("link"),ct(n,"link",e),at(n),a.head.appendChild(n)}}}function ab(e,t,a){qa.S(e,t,a);var n=kl;if(n&&e){var s=fl(n).hoistableStyles,c=Yl(e);t=t||"default";var d=s.get(c);if(!d){var y={loading:0,preload:null};if(d=n.querySelector(Pi(c)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ft.get(c))&&Ro(e,a);var S=d=n.createElement("link");at(S),ct(S,"link",e),S._p=new Promise(function(_,H){S.onload=_,S.onerror=H}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Cs(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:y},s.set(c,d)}}}function nb(e,t){qa.X(e,t);var a=kl;if(a&&e){var n=fl(a).hoistableScripts,s=Kl(e),c=n.get(s);c||(c=a.querySelector(Ii(s)),c||(e=b({src:e,async:!0},t),(t=Ft.get(s))&&Ao(e,t),c=a.createElement("script"),at(c),ct(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(s,c))}}function lb(e,t){qa.M(e,t);var a=kl;if(a&&e){var n=fl(a).hoistableScripts,s=Kl(e),c=n.get(s);c||(c=a.querySelector(Ii(s)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Ft.get(s))&&Ao(e,t),c=a.createElement("script"),at(c),ct(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(s,c))}}function by(e,t,a,n){var s=(s=he.current)?ws(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Yl(a.href),a=fl(s).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Yl(a.href);var c=fl(s).hoistableStyles,d=c.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=s.querySelector(Pi(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Ft.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ft.set(e,a),c||ib(s,e,a,d.state))),t&&n===null)throw Error(r(528,""));return d}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Kl(a),a=fl(s).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Yl(e){return'href="'+Gt(e)+'"'}function Pi(e){return'link[rel="stylesheet"]['+e+"]"}function xy(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function ib(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ct(t,"link",a),at(t),e.head.appendChild(t))}function Kl(e){return'[src="'+Gt(e)+'"]'}function Ii(e){return"script[async]"+e}function Sy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(n)return t.instance=n,at(n),n;var s=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),at(n),ct(n,"style",s),Cs(n,a.precedence,e),t.instance=n;case"stylesheet":s=Yl(a.href);var c=e.querySelector(Pi(s));if(c)return t.state.loading|=4,t.instance=c,at(c),c;n=xy(a),(s=Ft.get(s))&&Ro(n,s),c=(e.ownerDocument||e).createElement("link"),at(c);var d=c;return d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),ct(c,"link",n),t.state.loading|=4,Cs(c,a.precedence,e),t.instance=c;case"script":return c=Kl(a.src),(s=e.querySelector(Ii(c)))?(t.instance=s,at(s),s):(n=a,(s=Ft.get(c))&&(n=b({},a),Ao(n,s)),e=e.ownerDocument||e,s=e.createElement("script"),at(s),ct(s,"link",n),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Cs(n,a.precedence,e));return t.instance}function Cs(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=n.length?n[n.length-1]:null,c=s,d=0;d<n.length;d++){var y=n[d];if(y.dataset.precedence===t)c=y;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ro(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _s=null;function Ey(e,t,a){if(_s===null){var n=new Map,s=_s=new Map;s.set(a,n)}else s=_s,n=s.get(a),n||(n=new Map,s.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[yi]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(t)||"";d=e+d;var y=n.get(d);y?y.push(c):n.set(d,[c])}}return n}function Ry(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ub(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ay(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function sb(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Yl(n.href),c=t.querySelector(Pi(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,at(c);return}c=t.ownerDocument||t,n=xy(n),(s=Ft.get(s))&&Ro(n,s),c=c.createElement("link"),at(c);var d=c;d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),ct(c,"link",n),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=zs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var No=0;function rb(e,t){return e.stylesheets&&e.count===0&&Ms(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Ms(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&No===0&&(No=62500*kv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ms(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>No?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(s)}}:null}function zs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ms(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ds=null;function Ms(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ds=new Map,t.forEach(cb,e),Ds=null,zs.call(e))}function cb(e,t){if(!(t.state.loading&4)){var a=Ds.get(e);if(a)var n=a.get(null);else{a=new Map,Ds.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var d=s[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}s=t.instance,d=s.getAttribute("data-precedence"),c=a.get(d)||n,c===n&&a.set(null,s),a.set(d,s),this.count++,n=zs.bind(this),s.addEventListener("load",n),s.addEventListener("error",n),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var eu={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function ob(e,t,a,n,s,c,d,y,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=br(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=br(0),this.hiddenUpdates=br(null),this.identifierPrefix=n,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Ny(e,t,a,n,s,c,d,y,S,_,H,k){return e=new ob(e,t,a,d,S,_,H,k,y),t=1,c===!0&&(t|=24),c=Dt(3,null,null,t),e.current=c,c.stateNode=e,t=nc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:a,cache:t},sc(c),e}function Ty(e){return e?(e=Sl,e):Sl}function jy(e,t,a,n,s,c){s=Ty(s),n.context===null?n.context=s:n.pendingContext=s,n=Ia(t),n.payload={element:a},c=c===void 0?null:c,c!==null&&(n.callback=c),a=en(e,n,t),a!==null&&(Rt(a,e,t),zi(a,e,t))}function Oy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function To(e,t){Oy(e,t),(e=e.alternate)&&Oy(e,t)}function wy(e){if(e.tag===13||e.tag===31){var t=Mn(e,67108864);t!==null&&Rt(t,e,67108864),To(e,67108864)}}function Cy(e){if(e.tag===13||e.tag===31){var t=Ht();t=xr(t);var a=Mn(e,t);a!==null&&Rt(a,e,t),To(e,t)}}var Us=!0;function fb(e,t,a,n){var s=q.T;q.T=null;var c=V.p;try{V.p=2,jo(e,t,a,n)}finally{V.p=c,q.T=s}}function db(e,t,a,n){var s=q.T;q.T=null;var c=V.p;try{V.p=8,jo(e,t,a,n)}finally{V.p=c,q.T=s}}function jo(e,t,a,n){if(Us){var s=Oo(n);if(s===null)ho(e,t,n,qs,a),zy(e,n);else if(mb(s,e,t,a,n))n.stopPropagation();else if(zy(e,n),t&4&&-1<hb.indexOf(e)){for(;s!==null;){var c=ol(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=wn(c.pendingLanes);if(d!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var S=1<<31-_t(d);y.entanglements[1]|=S,d&=~S}ma(c),(Ae&6)===0&&(vs=wt()+500,Ji(0))}}break;case 31:case 13:y=Mn(c,2),y!==null&&Rt(y,c,2),xs(),To(c,2)}if(c=Oo(n),c===null&&ho(e,t,n,qs,a),c===s)break;s=c}s!==null&&n.stopPropagation()}else ho(e,t,n,null,a)}}function Oo(e){return e=wr(e),wo(e)}var qs=null;function wo(e){if(qs=null,e=cl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return qs=e,null}function _y(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(P0()){case Bf:return 2;case Qf:return 8;case Nu:case I0:return 32;case Gf:return 268435456;default:return 32}default:return 32}}var Co=!1,dn=null,hn=null,mn=null,tu=new Map,au=new Map,yn=[],hb="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 zy(e,t){switch(e){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":hn=null;break;case"mouseover":case"mouseout":mn=null;break;case"pointerover":case"pointerout":tu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":au.delete(t.pointerId)}}function nu(e,t,a,n,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:c,targetContainers:[s]},t!==null&&(t=ol(t),t!==null&&wy(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function mb(e,t,a,n,s){switch(t){case"focusin":return dn=nu(dn,e,t,a,n,s),!0;case"dragenter":return hn=nu(hn,e,t,a,n,s),!0;case"mouseover":return mn=nu(mn,e,t,a,n,s),!0;case"pointerover":var c=s.pointerId;return tu.set(c,nu(tu.get(c)||null,e,t,a,n,s)),!0;case"gotpointercapture":return c=s.pointerId,au.set(c,nu(au.get(c)||null,e,t,a,n,s)),!0}return!1}function Dy(e){var t=cl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Zf(e.priority,function(){Cy(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Zf(e.priority,function(){Cy(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Oo(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Or=n,a.target.dispatchEvent(n),Or=null}else return t=ol(a),t!==null&&wy(t),e.blockedOn=a,!1;t.shift()}return!0}function My(e,t,a){Ls(e)&&a.delete(t)}function yb(){Co=!1,dn!==null&&Ls(dn)&&(dn=null),hn!==null&&Ls(hn)&&(hn=null),mn!==null&&Ls(mn)&&(mn=null),tu.forEach(My),au.forEach(My)}function Hs(e,t){e.blockedOn===t&&(e.blockedOn=null,Co||(Co=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,yb)))}var Bs=null;function Uy(e){Bs!==e&&(Bs=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],s=e[t+2];if(typeof n!="function"){if(wo(n||a)===null)continue;break}var c=ol(a);c!==null&&(e.splice(t,3),t-=3,jc(c,{pending:!0,data:s,method:a.method,action:n},n,s))}}))}function Xl(e){function t(S){return Hs(S,e)}dn!==null&&Hs(dn,e),hn!==null&&Hs(hn,e),mn!==null&&Hs(mn,e),tu.forEach(t),au.forEach(t);for(var a=0;a<yn.length;a++){var n=yn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<yn.length&&(a=yn[0],a.blockedOn===null);)Dy(a),a.blockedOn===null&&yn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var s=a[n],c=a[n+1],d=s[gt]||null;if(typeof c=="function")d||Uy(a);else if(d){var y=null;if(c&&c.hasAttribute("formAction")){if(s=c,d=c[gt]||null)y=d.formAction;else if(wo(s)!==null)continue}else y=d.action;typeof y=="function"?a[n+1]=y:(a.splice(n,3),n-=3),Uy(a)}}}function qy(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function _o(e){this._internalRoot=e}Qs.prototype.render=_o.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,n=Ht();jy(a,n,e,t,null,null)},Qs.prototype.unmount=_o.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jy(e.current,2,null,e,null,null),xs(),t[rl]=null}};function Qs(e){this._internalRoot=e}Qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<yn.length&&t!==0&&t<yn[a].priority;a++);yn.splice(a,0,e),a===0&&Dy(e)}};var Ly=i.version;if(Ly!=="19.2.4")throw Error(r(527,Ly,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var pb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{di=Gs.inject(pb),Ct=Gs}catch{}}return iu.createRoot=function(e,t){if(!o(e))throw Error(r(299));var a=!1,n="",s=Kh,c=Xh,d=Vh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Ny(e,1,!1,null,null,a,n,null,s,c,d,qy),e[rl]=t.current,fo(e),new _o(t)},iu.hydrateRoot=function(e,t,a){if(!o(e))throw Error(r(299));var n=!1,s="",c=Kh,d=Xh,y=Vh,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Ny(e,1,!0,t,a??null,n,s,S,c,d,y,qy),t.context=Ty(null),a=t.current,n=Ht(),n=xr(n),s=Ia(n),s.callback=null,en(a,s,n),a=n,t.current.lanes=a,mi(t,a),ma(t),e[rl]=t.current,fo(e),new Qs(t)},iu.version="19.2.4",iu}var Jy;function jb(){if(Jy)return Uo.exports;Jy=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Uo.exports=Tb(),Uo.exports}var Ob=jb();const wb=Yp(Ob);/**
|
|
* react-router v7.13.1
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/var Fy="popstate";function $y(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Cb(l={}){function i(r,o){var p;let f=(p=o.state)==null?void 0:p.masked,{pathname:h,search:g,hash:v}=f||r.location;return Jo("",{pathname:h,search:g,hash:v},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function u(r,o){return typeof o=="string"?o:ou(o)}return zb(i,u,null,l)}function ke(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ca(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function _b(){return Math.random().toString(36).substring(2,10)}function Wy(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Jo(l,i,u=null,r,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?ui(i):i,state:u,key:i&&i.key||r||_b(),unstable_mask:o}}function ou({pathname:l="/",search:i="",hash:u=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function ui(l){let i={};if(l){let u=l.indexOf("#");u>=0&&(i.hash=l.substring(u),l=l.substring(0,u));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function zb(l,i,u,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,g="POP",v=null,p=x();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function x(){return(h.state||{idx:null}).idx}function b(){g="POP";let j=x(),B=j==null?null:j-p;p=j,v&&v({action:g,location:z.location,delta:B})}function w(j,B){g="PUSH";let X=$y(j)?j:Jo(z.location,j,B);p=x()+1;let Y=Wy(X,p),K=z.createHref(X.unstable_mask||X);try{h.pushState(Y,"",K)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;o.location.assign(K)}f&&v&&v({action:g,location:z.location,delta:1})}function L(j,B){g="REPLACE";let X=$y(j)?j:Jo(z.location,j,B);p=x();let Y=Wy(X,p),K=z.createHref(X.unstable_mask||X);h.replaceState(Y,"",K),f&&v&&v({action:g,location:z.location,delta:0})}function N(j){return Db(j)}let z={get action(){return g},get location(){return l(o,h)},listen(j){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Fy,b),v=j,()=>{o.removeEventListener(Fy,b),v=null}},createHref(j){return i(o,j)},createURL:N,encodeLocation(j){let B=N(j);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:w,replace:L,go(j){return h.go(j)}};return z}function Db(l,i=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),ke(u,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:ou(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=u+r),new URL(r,u)}function Kp(l,i,u="/"){return Mb(l,i,u,!1)}function Mb(l,i,u,r){let o=typeof i=="string"?ui(i):i,f=Ya(o.pathname||"/",u);if(f==null)return null;let h=Xp(l);Ub(h);let g=null;for(let v=0;g==null&&v<h.length;++v){let p=Vb(f);g=Kb(h[v],p,r)}return g}function Xp(l,i=[],u=[],r="",o=!1){let f=(h,g,v=o,p)=>{let x={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(r)&&v)return;ke(x.relativePath.startsWith(r),`Absolute route path "${x.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(r.length)}let b=va([r,x.relativePath]),w=u.concat(x);h.children&&h.children.length>0&&(ke(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Xp(h.children,i,w,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:kb(b,h.index),routesMeta:w})};return l.forEach((h,g)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))f(h,g);else for(let p of Vp(h.path))f(h,g,!0,p)}),i}function Vp(l){let i=l.split("/");if(i.length===0)return[];let[u,...r]=i,o=u.endsWith("?"),f=u.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=Vp(r.join("/")),g=[];return g.push(...h.map(v=>v===""?f:[f,v].join("/"))),o&&g.push(...h),g.map(v=>l.startsWith("/")&&v===""?"/":v)}function Ub(l){l.sort((i,u)=>i.score!==u.score?u.score-i.score:Yb(i.routesMeta.map(r=>r.childrenIndex),u.routesMeta.map(r=>r.childrenIndex)))}var qb=/^:[\w-]+$/,Lb=3,Hb=2,Bb=1,Qb=10,Gb=-2,Py=l=>l==="*";function kb(l,i){let u=l.split("/"),r=u.length;return u.some(Py)&&(r+=Gb),i&&(r+=Hb),u.filter(o=>!Py(o)).reduce((o,f)=>o+(qb.test(f)?Lb:f===""?Bb:Qb),r)}function Yb(l,i){return l.length===i.length&&l.slice(0,-1).every((r,o)=>r===i[o])?l[l.length-1]-i[i.length-1]:0}function Kb(l,i,u=!1){let{routesMeta:r}=l,o={},f="/",h=[];for(let g=0;g<r.length;++g){let v=r[g],p=g===r.length-1,x=f==="/"?i:i.slice(f.length)||"/",b=Is({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},x),w=v.route;if(!b&&p&&u&&!r[r.length-1].route.index&&(b=Is({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!b)return null;Object.assign(o,b.params),h.push({params:o,pathname:va([f,b.pathname]),pathnameBase:$b(va([f,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(f=va([f,b.pathnameBase]))}return h}function Is(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,r]=Xb(l.path,l.caseSensitive,l.end),o=i.match(u);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),g=o.slice(1);return{params:r.reduce((p,{paramName:x,isOptional:b},w)=>{if(x==="*"){let N=g[w]||"";h=f.slice(0,f.length-N.length).replace(/(.)\/+$/,"$1")}const L=g[w];return b&&!L?p[x]=void 0:p[x]=(L||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:h,pattern:l}}function Xb(l,i=!1,u=!0){ca(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,v,p,x)=>{if(r.push({paramName:g,isOptional:v!=null}),v){let b=x.charAt(p+h.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function Vb(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ca(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function Ya(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,r=l.charAt(u);return r&&r!=="/"?null:l.slice(u)||"/"}var Zb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Jb(l,i="/"){let{pathname:u,search:r="",hash:o=""}=typeof l=="string"?ui(l):l,f;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?f=Iy(u.substring(1),"/"):f=Iy(u,i)):f=i,{pathname:f,search:Wb(r),hash:Pb(o)}}function Iy(l,i){let u=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?u.length>1&&u.pop():o!=="."&&u.push(o)}),u.length>1?u.join("/"):"/"}function Bo(l,i,u,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Fb(l){return l.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function bf(l){let i=Fb(l);return i.map((u,r)=>r===i.length-1?u.pathname:u.pathnameBase)}function nr(l,i,u,r=!1){let o;typeof l=="string"?o=ui(l):(o={...l},ke(!o.pathname||!o.pathname.includes("?"),Bo("?","pathname","search",o)),ke(!o.pathname||!o.pathname.includes("#"),Bo("#","pathname","hash",o)),ke(!o.search||!o.search.includes("#"),Bo("#","search","hash",o)));let f=l===""||o.pathname==="",h=f?"/":o.pathname,g;if(h==null)g=u;else{let b=i.length-1;if(!r&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),b-=1;o.pathname=w.join("/")}g=b>=0?i[b]:"/"}let v=Jb(o,g),p=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(p||x)&&(v.pathname+="/"),v}var va=l=>l.join("/").replace(/\/\/+/g,"/"),$b=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Wb=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Pb=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Ib=class{constructor(l,i,u,r=!1){this.status=l,this.statusText=i||"",this.internal=r,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function ex(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function tx(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Zp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jp(l,i){let u=l;if(typeof u!="string"||!Zb.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let r=u,o=!1;if(Zp)try{let f=new URL(window.location.href),h=u.startsWith("//")?new URL(f.protocol+u):new URL(u),g=Ya(h.pathname,i);h.origin===f.origin&&g!=null?u=g+h.search+h.hash:o=!0}catch{ca(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fp=["POST","PUT","PATCH","DELETE"];new Set(Fp);var ax=["GET",...Fp];new Set(ax);var si=O.createContext(null);si.displayName="DataRouter";var lr=O.createContext(null);lr.displayName="DataRouterState";var nx=O.createContext(!1),$p=O.createContext({isTransitioning:!1});$p.displayName="ViewTransition";var lx=O.createContext(new Map);lx.displayName="Fetchers";var ix=O.createContext(null);ix.displayName="Await";var Bt=O.createContext(null);Bt.displayName="Navigation";var gu=O.createContext(null);gu.displayName="Location";var ea=O.createContext({outlet:null,matches:[],isDataRoute:!1});ea.displayName="Route";var xf=O.createContext(null);xf.displayName="RouteError";var Wp="REACT_ROUTER_ERROR",ux="REDIRECT",sx="ROUTE_ERROR_RESPONSE";function rx(l){if(l.startsWith(`${Wp}:${ux}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function cx(l){if(l.startsWith(`${Wp}:${sx}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Ib(i.status,i.statusText,i.data)}catch{}}function ox(l,{relative:i}={}){ke(ri(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:r}=O.useContext(Bt),{hash:o,pathname:f,search:h}=vu(l,{relative:i}),g=f;return u!=="/"&&(g=f==="/"?u:va([u,f])),r.createHref({pathname:g,search:h,hash:o})}function ri(){return O.useContext(gu)!=null}function ta(){return ke(ri(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(gu).location}var Pp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ip(l){O.useContext(Bt).static||O.useLayoutEffect(l)}function ir(){let{isDataRoute:l}=O.useContext(ea);return l?Tx():fx()}function fx(){ke(ri(),"useNavigate() may be used only in the context of a <Router> component.");let l=O.useContext(si),{basename:i,navigator:u}=O.useContext(Bt),{matches:r}=O.useContext(ea),{pathname:o}=ta(),f=JSON.stringify(bf(r)),h=O.useRef(!1);return Ip(()=>{h.current=!0}),O.useCallback((v,p={})=>{if(ca(h.current,Pp),!h.current)return;if(typeof v=="number"){u.go(v);return}let x=nr(v,JSON.parse(f),o,p.relative==="path");l==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:va([i,x.pathname])),(p.replace?u.replace:u.push)(x,p.state,p)},[i,u,f,o,l])}var dx=O.createContext(null);function hx(l){let i=O.useContext(ea).outlet;return O.useMemo(()=>i&&O.createElement(dx.Provider,{value:l},i),[i,l])}function mx(){let{matches:l}=O.useContext(ea),i=l[l.length-1];return i?i.params:{}}function vu(l,{relative:i}={}){let{matches:u}=O.useContext(ea),{pathname:r}=ta(),o=JSON.stringify(bf(u));return O.useMemo(()=>nr(l,JSON.parse(o),r,i==="path"),[l,o,r,i])}function yx(l,i){return e0(l,i)}function e0(l,i,u){var j;ke(ri(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=O.useContext(Bt),{matches:o}=O.useContext(ea),f=o[o.length-1],h=f?f.params:{},g=f?f.pathname:"/",v=f?f.pathnameBase:"/",p=f&&f.route;{let B=p&&p.path||"";a0(g,!p||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${B}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
|
|
Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let x=ta(),b;if(i){let B=typeof i=="string"?ui(i):i;ke(v==="/"||((j=B.pathname)==null?void 0:j.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${B.pathname}" was given in the \`location\` prop.`),b=B}else b=x;let w=b.pathname||"/",L=w;if(v!=="/"){let B=v.replace(/^\//,"").split("/");L="/"+w.replace(/^\//,"").split("/").slice(B.length).join("/")}let N=Kp(l,{pathname:L});ca(p||N!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ca(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let z=xx(N&&N.map(B=>Object.assign({},B,{params:Object.assign({},h,B.params),pathname:va([v,r.encodeLocation?r.encodeLocation(B.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?v:va([v,r.encodeLocation?r.encodeLocation(B.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),o,u);return i&&z?O.createElement(gu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},z):z}function px(){let l=Nx(),i=ex(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:f},"ErrorBoundary")," or"," ",O.createElement("code",{style:f},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},i),u?O.createElement("pre",{style:o},u):null,h)}var gx=O.createElement(px,null),t0=class extends O.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=cx(l.digest);u&&(l=u)}let i=l!==void 0?O.createElement(ea.Provider,{value:this.props.routeContext},O.createElement(xf.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?O.createElement(vx,{error:l},i):i}};t0.contextType=nx;var Qo=new WeakMap;function vx({children:l,error:i}){let{basename:u}=O.useContext(Bt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=rx(i.digest);if(r){let o=Qo.get(i);if(o)throw o;let f=Jp(r.location,u);if(Zp&&!Qo.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Qo.set(i,h),h}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function bx({routeContext:l,match:i,children:u}){let r=O.useContext(si);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),O.createElement(ea.Provider,{value:l},u)}function xx(l,i=[],u){let r=u==null?void 0:u.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let o=l,f=r==null?void 0:r.errors;if(f!=null){let x=o.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);ke(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let h=!1,g=-1;if(u&&r){h=r.renderFallback;for(let x=0;x<o.length;x++){let b=o[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=x),b.route.id){let{loaderData:w,errors:L}=r,N=b.route.loader&&!w.hasOwnProperty(b.route.id)&&(!L||L[b.route.id]===void 0);if(b.route.lazy||N){u.isStatic&&(h=!0),g>=0?o=o.slice(0,g+1):o=[o[0]];break}}}}let v=u==null?void 0:u.onError,p=r&&v?(x,b)=>{var w,L;v(x,{location:r.location,params:((L=(w=r.matches)==null?void 0:w[0])==null?void 0:L.params)??{},unstable_pattern:tx(r.matches),errorInfo:b})}:void 0;return o.reduceRight((x,b,w)=>{let L,N=!1,z=null,j=null;r&&(L=f&&b.route.id?f[b.route.id]:void 0,z=b.route.errorElement||gx,h&&(g<0&&w===0?(a0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,j=null):g===w&&(N=!0,j=b.route.hydrateFallbackElement||null)));let B=i.concat(o.slice(0,w+1)),X=()=>{let Y;return L?Y=z:N?Y=j:b.route.Component?Y=O.createElement(b.route.Component,null):b.route.element?Y=b.route.element:Y=x,O.createElement(bx,{match:b,routeContext:{outlet:x,matches:B,isDataRoute:r!=null},children:Y})};return r&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?O.createElement(t0,{location:r.location,revalidation:r.revalidation,component:z,error:L,children:X(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:p}):X()},null)}function Sf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sx(l){let i=O.useContext(si);return ke(i,Sf(l)),i}function Ex(l){let i=O.useContext(lr);return ke(i,Sf(l)),i}function Rx(l){let i=O.useContext(ea);return ke(i,Sf(l)),i}function Ef(l){let i=Rx(l),u=i.matches[i.matches.length-1];return ke(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function Ax(){return Ef("useRouteId")}function Nx(){var r;let l=O.useContext(xf),i=Ex("useRouteError"),u=Ef("useRouteError");return l!==void 0?l:(r=i.errors)==null?void 0:r[u]}function Tx(){let{router:l}=Sx("useNavigate"),i=Ef("useNavigate"),u=O.useRef(!1);return Ip(()=>{u.current=!0}),O.useCallback(async(o,f={})=>{ca(u.current,Pp),u.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:i,...f}))},[l,i])}var ep={};function a0(l,i,u){!i&&!ep[l]&&(ep[l]=!0,ca(!1,u))}O.memo(jx);function jx({routes:l,future:i,state:u,isStatic:r,onError:o}){return e0(l,void 0,{state:u,isStatic:r,onError:o})}function n0({to:l,replace:i,state:u,relative:r}){ke(ri(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=O.useContext(Bt);ca(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=O.useContext(ea),{pathname:h}=ta(),g=ir(),v=nr(l,bf(f),h,r==="path"),p=JSON.stringify(v);return O.useEffect(()=>{g(JSON.parse(p),{replace:i,state:u,relative:r})},[g,p,r,i,u]),null}function Ox(l){return hx(l.context)}function At(l){ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function wx({basename:l="/",children:i=null,location:u,navigationType:r="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){ke(!ri(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=l.replace(/^\/*/,"/"),v=O.useMemo(()=>({basename:g,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[g,o,f,h]);typeof u=="string"&&(u=ui(u));let{pathname:p="/",search:x="",hash:b="",state:w=null,key:L="default",unstable_mask:N}=u,z=O.useMemo(()=>{let j=Ya(p,g);return j==null?null:{location:{pathname:j,search:x,hash:b,state:w,key:L,unstable_mask:N},navigationType:r}},[g,p,x,b,w,L,r,N]);return ca(z!=null,`<Router basename="${g}"> is not able to match the URL "${p}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:O.createElement(Bt.Provider,{value:v},O.createElement(gu.Provider,{children:i,value:z}))}function Cx({children:l,location:i}){return yx(Fo(l),i)}function Fo(l,i=[]){let u=[];return O.Children.forEach(l,(r,o)=>{if(!O.isValidElement(r))return;let f=[...i,o];if(r.type===O.Fragment){u.push.apply(u,Fo(r.props.children,f));return}ke(r.type===At,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=Fo(r.props.children,f)),u.push(h)}),u}var Zs="get",Js="application/x-www-form-urlencoded";function ur(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function _x(l){return ur(l)&&l.tagName.toLowerCase()==="button"}function zx(l){return ur(l)&&l.tagName.toLowerCase()==="form"}function Dx(l){return ur(l)&&l.tagName.toLowerCase()==="input"}function Mx(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Ux(l,i){return l.button===0&&(!i||i==="_self")&&!Mx(l)}var Ys=null;function qx(){if(Ys===null)try{new FormData(document.createElement("form"),0),Ys=!1}catch{Ys=!0}return Ys}var Lx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Go(l){return l!=null&&!Lx.has(l)?(ca(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Js}"`),null):l}function Hx(l,i){let u,r,o,f,h;if(zx(l)){let g=l.getAttribute("action");r=g?Ya(g,i):null,u=l.getAttribute("method")||Zs,o=Go(l.getAttribute("enctype"))||Js,f=new FormData(l)}else if(_x(l)||Dx(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||g.getAttribute("action");if(r=v?Ya(v,i):null,u=l.getAttribute("formmethod")||g.getAttribute("method")||Zs,o=Go(l.getAttribute("formenctype"))||Go(g.getAttribute("enctype"))||Js,f=new FormData(g,l),!qx()){let{name:p,type:x,value:b}=l;if(x==="image"){let w=p?`${p}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else p&&f.append(p,b)}}else{if(ur(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Zs,r=null,o=Js,h=l}return f&&o==="text/plain"&&(h=f,f=void 0),{action:r,method:u.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Rf(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Bx(l,i,u,r){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&Ya(o.pathname,i)==="/"?o.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Qx(l,i){if(l.id in i)return i[l.id];try{let u=await import(l.module);return i[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Gx(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function kx(l,i,u){let r=await Promise.all(l.map(async o=>{let f=i.routes[o.route.id];if(f){let h=await Qx(f,u);return h.links?h.links():[]}return[]}));return Vx(r.flat(1).filter(Gx).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function tp(l,i,u,r,o,f){let h=(v,p)=>u[p]?v.route.id!==u[p].route.id:!0,g=(v,p)=>{var x;return u[p].pathname!==v.pathname||((x=u[p].route.path)==null?void 0:x.endsWith("*"))&&u[p].params["*"]!==v.params["*"]};return f==="assets"?i.filter((v,p)=>h(v,p)||g(v,p)):f==="data"?i.filter((v,p)=>{var b;let x=r.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(h(v,p)||g(v,p))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=u[0])==null?void 0:b.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Yx(l,i,{includeHydrateFallback:u}={}){return Kx(l.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),u&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function Kx(l){return[...new Set(l)]}function Xx(l){let i={},u=Object.keys(l).sort();for(let r of u)i[r]=l[r];return i}function Vx(l,i){let u=new Set;return new Set(i),l.reduce((r,o)=>{let f=JSON.stringify(Xx(o));return u.has(f)||(u.add(f),r.push({key:f,link:o})),r},[])}function l0(){let l=O.useContext(si);return Rf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Zx(){let l=O.useContext(lr);return Rf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Af=O.createContext(void 0);Af.displayName="FrameworkContext";function i0(){let l=O.useContext(Af);return Rf(l,"You must render this element inside a <HydratedRouter> element"),l}function Jx(l,i){let u=O.useContext(Af),[r,o]=O.useState(!1),[f,h]=O.useState(!1),{onFocus:g,onBlur:v,onMouseEnter:p,onMouseLeave:x,onTouchStart:b}=i,w=O.useRef(null);O.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let z=B=>{B.forEach(X=>{h(X.isIntersecting)})},j=new IntersectionObserver(z,{threshold:.5});return w.current&&j.observe(w.current),()=>{j.disconnect()}}},[l]),O.useEffect(()=>{if(r){let z=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(z)}}},[r]);let L=()=>{o(!0)},N=()=>{o(!1),h(!1)};return u?l!=="intent"?[f,w,{}]:[f,w,{onFocus:uu(g,L),onBlur:uu(v,N),onMouseEnter:uu(p,L),onMouseLeave:uu(x,N),onTouchStart:uu(b,L)}]:[!1,w,{}]}function uu(l,i){return u=>{l&&l(u),u.defaultPrevented||i(u)}}function Fx({page:l,...i}){let{router:u}=l0(),r=O.useMemo(()=>Kp(u.routes,l,u.basename),[u.routes,l,u.basename]);return r?O.createElement(Wx,{page:l,matches:r,...i}):null}function $x(l){let{manifest:i,routeModules:u}=i0(),[r,o]=O.useState([]);return O.useEffect(()=>{let f=!1;return kx(l,i,u).then(h=>{f||o(h)}),()=>{f=!0}},[l,i,u]),r}function Wx({page:l,matches:i,...u}){let r=ta(),{future:o,manifest:f,routeModules:h}=i0(),{basename:g}=l0(),{loaderData:v,matches:p}=Zx(),x=O.useMemo(()=>tp(l,i,p,f,r,"data"),[l,i,p,f,r]),b=O.useMemo(()=>tp(l,i,p,f,r,"assets"),[l,i,p,f,r]),w=O.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let z=new Set,j=!1;if(i.forEach(X=>{var K;let Y=f.routes[X.route.id];!Y||!Y.hasLoader||(!x.some(F=>F.route.id===X.route.id)&&X.route.id in v&&((K=h[X.route.id])!=null&&K.shouldRevalidate)||Y.hasClientLoader?j=!0:z.add(X.route.id))}),z.size===0)return[];let B=Bx(l,g,o.unstable_trailingSlashAwareDataRequests,"data");return j&&z.size>0&&B.searchParams.set("_routes",i.filter(X=>z.has(X.route.id)).map(X=>X.route.id).join(",")),[B.pathname+B.search]},[g,o.unstable_trailingSlashAwareDataRequests,v,r,f,x,i,l,h]),L=O.useMemo(()=>Yx(b,f),[b,f]),N=$x(b);return O.createElement(O.Fragment,null,w.map(z=>O.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...u})),L.map(z=>O.createElement("link",{key:z,rel:"modulepreload",href:z,...u})),N.map(({key:z,link:j})=>O.createElement("link",{key:z,nonce:u.nonce,...j,crossOrigin:j.crossOrigin??u.crossOrigin})))}function Px(...l){return i=>{l.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var Ix=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ix&&(window.__reactRouterVersion="7.13.1")}catch{}function e1({basename:l,children:i,unstable_useTransitions:u,window:r}){let o=O.useRef();o.current==null&&(o.current=Cb({window:r,v5Compat:!0}));let f=o.current,[h,g]=O.useState({action:f.action,location:f.location}),v=O.useCallback(p=>{u===!1?g(p):O.startTransition(()=>g(p))},[u]);return O.useLayoutEffect(()=>f.listen(v),[f,v]),O.createElement(wx,{basename:l,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:u})}var u0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,It=O.forwardRef(function({onClick:i,discover:u="render",prefetch:r="none",relative:o,reloadDocument:f,replace:h,unstable_mask:g,state:v,target:p,to:x,preventScrollReset:b,viewTransition:w,unstable_defaultShouldRevalidate:L,...N},z){let{basename:j,navigator:B,unstable_useTransitions:X}=O.useContext(Bt),Y=typeof x=="string"&&u0.test(x),K=Jp(x,j);x=K.to;let F=ox(x,{relative:o}),ae=ta(),$=null;if(g){let _e=nr(g,[],ae.unstable_mask?ae.unstable_mask.pathname:"/",!0);j!=="/"&&(_e.pathname=_e.pathname==="/"?j:va([j,_e.pathname])),$=B.createHref(_e)}let[le,fe,je]=Jx(r,N),Qe=l1(x,{replace:h,unstable_mask:g,state:v,target:p,preventScrollReset:b,relative:o,viewTransition:w,unstable_defaultShouldRevalidate:L,unstable_useTransitions:X});function qe(_e){i&&i(_e),_e.defaultPrevented||Qe(_e)}let Ie=!(K.isExternal||f),Le=O.createElement("a",{...N,...je,href:(Ie?$:void 0)||K.absoluteURL||F,onClick:Ie?qe:i,ref:Px(z,fe),target:p,"data-discover":!Y&&u==="render"?"true":void 0});return le&&!Y?O.createElement(O.Fragment,null,Le,O.createElement(Fx,{page:F})):Le});It.displayName="Link";var t1=O.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:r="",end:o=!1,style:f,to:h,viewTransition:g,children:v,...p},x){let b=vu(h,{relative:p.relative}),w=ta(),L=O.useContext(lr),{navigator:N,basename:z}=O.useContext(Bt),j=L!=null&&c1(b)&&g===!0,B=N.encodeLocation?N.encodeLocation(b).pathname:b.pathname,X=w.pathname,Y=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;u||(X=X.toLowerCase(),Y=Y?Y.toLowerCase():null,B=B.toLowerCase()),Y&&z&&(Y=Ya(Y,z)||Y);const K=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let F=X===B||!o&&X.startsWith(B)&&X.charAt(K)==="/",ae=Y!=null&&(Y===B||!o&&Y.startsWith(B)&&Y.charAt(B.length)==="/"),$={isActive:F,isPending:ae,isTransitioning:j},le=F?i:void 0,fe;typeof r=="function"?fe=r($):fe=[r,F?"active":null,ae?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let je=typeof f=="function"?f($):f;return O.createElement(It,{...p,"aria-current":le,className:fe,ref:x,style:je,to:h,viewTransition:g},typeof v=="function"?v($):v)});t1.displayName="NavLink";var a1=O.forwardRef(({discover:l="render",fetcherKey:i,navigate:u,reloadDocument:r,replace:o,state:f,method:h=Zs,action:g,onSubmit:v,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:w,...L},N)=>{let{unstable_useTransitions:z}=O.useContext(Bt),j=s1(),B=r1(g,{relative:p}),X=h.toLowerCase()==="get"?"get":"post",Y=typeof g=="string"&&u0.test(g),K=F=>{if(v&&v(F),F.defaultPrevented)return;F.preventDefault();let ae=F.nativeEvent.submitter,$=(ae==null?void 0:ae.getAttribute("formmethod"))||h,le=()=>j(ae||F.currentTarget,{fetcherKey:i,method:$,navigate:u,replace:o,state:f,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:w});z&&u!==!1?O.startTransition(()=>le()):le()};return O.createElement("form",{ref:N,method:X,action:B,onSubmit:r?v:K,...L,"data-discover":!Y&&l==="render"?"true":void 0})});a1.displayName="Form";function n1(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function s0(l){let i=O.useContext(si);return ke(i,n1(l)),i}function l1(l,{target:i,replace:u,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let x=ir(),b=ta(),w=vu(l,{relative:h});return O.useCallback(L=>{if(Ux(L,i)){L.preventDefault();let N=u!==void 0?u:ou(b)===ou(w),z=()=>x(l,{replace:N,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v});p?O.startTransition(()=>z()):z()}},[b,x,w,u,r,o,i,l,f,h,g,v,p])}var i1=0,u1=()=>`__${String(++i1)}__`;function s1(){let{router:l}=s0("useSubmit"),{basename:i}=O.useContext(Bt),u=Ax(),r=l.fetch,o=l.navigate;return O.useCallback(async(f,h={})=>{let{action:g,method:v,encType:p,formData:x,body:b}=Hx(f,i);if(h.navigate===!1){let w=h.fetcherKey||u1();await r(w,u,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||v,formEncType:h.encType||p,flushSync:h.flushSync})}else await o(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||v,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:u,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,i,u])}function r1(l,{relative:i}={}){let{basename:u}=O.useContext(Bt),r=O.useContext(ea);ke(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),f={...vu(l||".",{relative:i})},h=ta();if(l==null){f.search=h.search;let g=new URLSearchParams(f.search),v=g.getAll("index");if(v.some(x=>x==="")){g.delete("index"),v.filter(b=>b).forEach(b=>g.append("index",b));let x=g.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:va([u,f.pathname])),ou(f)}function c1(l,{relative:i}={}){let u=O.useContext($p);ke(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=s0("useViewTransitionState"),o=vu(l,{relative:i});if(!u.isTransitioning)return!1;let f=Ya(u.currentLocation.pathname,r)||u.currentLocation.pathname,h=Ya(u.nextLocation.pathname,r)||u.nextLocation.pathname;return Is(o.pathname,h)!=null||Is(o.pathname,f)!=null}var ci=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},o1={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},vn,gf,zp,f1=(zp=class{constructor(){te(this,vn,o1);te(this,gf,!1)}setTimeoutProvider(l){J(this,vn,l)}setTimeout(l,i){return E(this,vn).setTimeout(l,i)}clearTimeout(l){E(this,vn).clearTimeout(l)}setInterval(l,i){return E(this,vn).setInterval(l,i)}clearInterval(l){E(this,vn).clearInterval(l)}},vn=new WeakMap,gf=new WeakMap,zp),Zn=new f1;function d1(l){setTimeout(l,0)}var il=typeof window>"u"||"Deno"in globalThis;function pt(){}function h1(l,i){return typeof l=="function"?l(i):l}function $o(l){return typeof l=="number"&&l>=0&&l!==1/0}function r0(l,i){return Math.max(l+(i||0)-Date.now(),0)}function jn(l,i){return typeof l=="function"?l(i):l}function Pt(l,i){return typeof l=="function"?l(i):l}function ap(l,i){const{type:u="all",exact:r,fetchStatus:o,predicate:f,queryKey:h,stale:g}=l;if(h){if(r){if(i.queryHash!==Nf(h,i.options))return!1}else if(!fu(i.queryKey,h))return!1}if(u!=="all"){const v=i.isActive();if(u==="active"&&!v||u==="inactive"&&v)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||o&&o!==i.state.fetchStatus||f&&!f(i))}function np(l,i){const{exact:u,status:r,predicate:o,mutationKey:f}=l;if(f){if(!i.options.mutationKey)return!1;if(u){if(ul(i.options.mutationKey)!==ul(f))return!1}else if(!fu(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||o&&!o(i))}function Nf(l,i){return((i==null?void 0:i.queryKeyHashFn)||ul)(l)}function ul(l){return JSON.stringify(l,(i,u)=>Wo(u)?Object.keys(u).sort().reduce((r,o)=>(r[o]=u[o],r),{}):u)}function fu(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(u=>fu(l[u],i[u])):!1}var m1=Object.prototype.hasOwnProperty;function c0(l,i,u=0){if(l===i)return l;if(u>500)return i;const r=lp(l)&&lp(i);if(!r&&!(Wo(l)&&Wo(i)))return i;const f=(r?l:Object.keys(l)).length,h=r?i:Object.keys(i),g=h.length,v=r?new Array(g):{};let p=0;for(let x=0;x<g;x++){const b=r?x:h[x],w=l[b],L=i[b];if(w===L){v[b]=w,(r?x<f:m1.call(l,b))&&p++;continue}if(w===null||L===null||typeof w!="object"||typeof L!="object"){v[b]=L;continue}const N=c0(w,L,u+1);v[b]=N,N===w&&p++}return f===g&&p===f?l:v}function er(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const u in l)if(l[u]!==i[u])return!1;return!0}function lp(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Wo(l){if(!ip(l))return!1;const i=l.constructor;if(i===void 0)return!0;const u=i.prototype;return!(!ip(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function ip(l){return Object.prototype.toString.call(l)==="[object Object]"}function y1(l){return new Promise(i=>{Zn.setTimeout(i,l)})}function Po(l,i,u){return typeof u.structuralSharing=="function"?u.structuralSharing(l,i):u.structuralSharing!==!1?c0(l,i):i}function p1(l,i,u=0){const r=[...l,i];return u&&r.length>u?r.slice(1):r}function g1(l,i,u=0){const r=[i,...l];return u&&r.length>u?r.slice(0,-1):r}var Tf=Symbol();function o0(l,i){return!l.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!l.queryFn||l.queryFn===Tf?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function jf(l,i){return typeof l=="function"?l(...i):!!l}function v1(l,i,u){let r=!1,o;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??(o=i()),r||(r=!0,o.aborted?u():o.addEventListener("abort",u,{once:!0})),o)}),l}var Fn,bn,Vl,Dp,b1=(Dp=class extends ci{constructor(){super();te(this,Fn);te(this,bn);te(this,Vl);J(this,Vl,i=>{if(!il&&window.addEventListener){const u=()=>i();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}})}onSubscribe(){E(this,bn)||this.setEventListener(E(this,Vl))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,bn))==null||i.call(this),J(this,bn,void 0))}setEventListener(i){var u;J(this,Vl,i),(u=E(this,bn))==null||u.call(this),J(this,bn,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){E(this,Fn)!==i&&(J(this,Fn,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(u=>{u(i)})}isFocused(){var i;return typeof E(this,Fn)=="boolean"?E(this,Fn):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Fn=new WeakMap,bn=new WeakMap,Vl=new WeakMap,Dp),Of=new b1;function Io(){let l,i;const u=new Promise((o,f)=>{l=o,i=f});u.status="pending",u.catch(()=>{});function r(o){Object.assign(u,o),delete u.resolve,delete u.reject}return u.resolve=o=>{r({status:"fulfilled",value:o}),l(o)},u.reject=o=>{r({status:"rejected",reason:o}),i(o)},u}var x1=d1;function S1(){let l=[],i=0,u=g=>{g()},r=g=>{g()},o=x1;const f=g=>{i?l.push(g):o(()=>{u(g)})},h=()=>{const g=l;l=[],g.length&&o(()=>{r(()=>{g.forEach(v=>{u(v)})})})};return{batch:g=>{let v;i++;try{v=g()}finally{i--,i||h()}return v},batchCalls:g=>(...v)=>{f(()=>{g(...v)})},schedule:f,setNotifyFunction:g=>{u=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{o=g}}}var tt=S1(),Zl,xn,Jl,Mp,E1=(Mp=class extends ci{constructor(){super();te(this,Zl,!0);te(this,xn);te(this,Jl);J(this,Jl,i=>{if(!il&&window.addEventListener){const u=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,xn)||this.setEventListener(E(this,Jl))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,xn))==null||i.call(this),J(this,xn,void 0))}setEventListener(i){var u;J(this,Jl,i),(u=E(this,xn))==null||u.call(this),J(this,xn,i(this.setOnline.bind(this)))}setOnline(i){E(this,Zl)!==i&&(J(this,Zl,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return E(this,Zl)}},Zl=new WeakMap,xn=new WeakMap,Jl=new WeakMap,Mp),tr=new E1;function R1(l){return Math.min(1e3*2**l,3e4)}function f0(l){return(l??"online")==="online"?tr.isOnline():!0}var ef=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function d0(l){let i=!1,u=0,r;const o=Io(),f=()=>o.status!=="pending",h=z=>{var j;if(!f()){const B=new ef(z);w(B),(j=l.onCancel)==null||j.call(l,B)}},g=()=>{i=!0},v=()=>{i=!1},p=()=>Of.isFocused()&&(l.networkMode==="always"||tr.isOnline())&&l.canRun(),x=()=>f0(l.networkMode)&&l.canRun(),b=z=>{f()||(r==null||r(),o.resolve(z))},w=z=>{f()||(r==null||r(),o.reject(z))},L=()=>new Promise(z=>{var j;r=B=>{(f()||p())&&z(B)},(j=l.onPause)==null||j.call(l)}).then(()=>{var z;r=void 0,f()||(z=l.onContinue)==null||z.call(l)}),N=()=>{if(f())return;let z;const j=u===0?l.initialPromise:void 0;try{z=j??l.fn()}catch(B){z=Promise.reject(B)}Promise.resolve(z).then(b).catch(B=>{var ae;if(f())return;const X=l.retry??(il?0:3),Y=l.retryDelay??R1,K=typeof Y=="function"?Y(u,B):Y,F=X===!0||typeof X=="number"&&u<X||typeof X=="function"&&X(u,B);if(i||!F){w(B);return}u++,(ae=l.onFail)==null||ae.call(l,u,B),y1(K).then(()=>p()?void 0:L()).then(()=>{i?w(B):N()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:g,continueRetry:v,canStart:x,start:()=>(x()?N():L().then(N),o)}}var $n,Up,h0=(Up=class{constructor(){te(this,$n)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$o(this.gcTime)&&J(this,$n,Zn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(il?1/0:300*1e3))}clearGcTimeout(){E(this,$n)&&(Zn.clearTimeout(E(this,$n)),J(this,$n,void 0))}},$n=new WeakMap,Up),Wn,Fl,Wt,Pn,lt,du,In,sa,La,qp,A1=(qp=class extends h0{constructor(i){super();te(this,sa);te(this,Wn);te(this,Fl);te(this,Wt);te(this,Pn);te(this,lt);te(this,du);te(this,In);J(this,In,!1),J(this,du,i.defaultOptions),this.setOptions(i.options),this.observers=[],J(this,Pn,i.client),J(this,Wt,E(this,Pn).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,J(this,Wn,sp(this.options)),this.state=i.state??E(this,Wn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=E(this,lt))==null?void 0:i.promise}setOptions(i){if(this.options={...E(this,du),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=sp(this.options);u.data!==void 0&&(this.setState(up(u.data,u.dataUpdatedAt)),J(this,Wn,u))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Wt).remove(this)}setData(i,u){const r=Po(this.state.data,i,this.options);return de(this,sa,La).call(this,{data:r,type:"success",dataUpdatedAt:u==null?void 0:u.updatedAt,manual:u==null?void 0:u.manual}),r}setState(i,u){de(this,sa,La).call(this,{type:"setState",state:i,setStateOptions:u})}cancel(i){var r,o;const u=(r=E(this,lt))==null?void 0:r.promise;return(o=E(this,lt))==null||o.cancel(i),u?u.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,Wn))}isActive(){return this.observers.some(i=>Pt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>jn(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!r0(this.state.dataUpdatedAt,i)}onFocus(){var u;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(u=E(this,lt))==null||u.continue()}onOnline(){var u;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(u=E(this,lt))==null||u.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),E(this,Wt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(u=>u!==i),this.observers.length||(E(this,lt)&&(E(this,In)?E(this,lt).cancel({revert:!0}):E(this,lt).cancelRetry()),this.scheduleGc()),E(this,Wt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,sa,La).call(this,{type:"invalidate"})}async fetch(i,u){var v,p,x,b,w,L,N,z,j,B,X,Y;if(this.state.fetchStatus!=="idle"&&((v=E(this,lt))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(u!=null&&u.cancelRefetch))this.cancel({silent:!0});else if(E(this,lt))return E(this,lt).continueRetry(),E(this,lt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const K=this.observers.find(F=>F.options.queryFn);K&&this.setOptions(K.options)}const r=new AbortController,o=K=>{Object.defineProperty(K,"signal",{enumerable:!0,get:()=>(J(this,In,!0),r.signal)})},f=()=>{const K=o0(this.options,u),ae=(()=>{const $={client:E(this,Pn),queryKey:this.queryKey,meta:this.meta};return o($),$})();return J(this,In,!1),this.options.persister?this.options.persister(K,ae,this):K(ae)},g=(()=>{const K={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:E(this,Pn),state:this.state,fetchFn:f};return o(K),K})();(p=this.options.behavior)==null||p.onFetch(g,this),J(this,Fl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=g.fetchOptions)==null?void 0:x.meta))&&de(this,sa,La).call(this,{type:"fetch",meta:(b=g.fetchOptions)==null?void 0:b.meta}),J(this,lt,d0({initialPromise:u==null?void 0:u.initialPromise,fn:g.fetchFn,onCancel:K=>{K instanceof ef&&K.revert&&this.setState({...E(this,Fl),fetchStatus:"idle"}),r.abort()},onFail:(K,F)=>{de(this,sa,La).call(this,{type:"failed",failureCount:K,error:F})},onPause:()=>{de(this,sa,La).call(this,{type:"pause"})},onContinue:()=>{de(this,sa,La).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const K=await E(this,lt).start();if(K===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(K),(L=(w=E(this,Wt).config).onSuccess)==null||L.call(w,K,this),(z=(N=E(this,Wt).config).onSettled)==null||z.call(N,K,this.state.error,this),K}catch(K){if(K instanceof ef){if(K.silent)return E(this,lt).promise;if(K.revert){if(this.state.data===void 0)throw K;return this.state.data}}throw de(this,sa,La).call(this,{type:"error",error:K}),(B=(j=E(this,Wt).config).onError)==null||B.call(j,K,this),(Y=(X=E(this,Wt).config).onSettled)==null||Y.call(X,this.state.data,K,this),K}finally{this.scheduleGc()}}},Wn=new WeakMap,Fl=new WeakMap,Wt=new WeakMap,Pn=new WeakMap,lt=new WeakMap,du=new WeakMap,In=new WeakMap,sa=new WeakSet,La=function(i){const u=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...m0(r.data,this.options),fetchMeta:i.meta??null};case"success":const o={...r,...up(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,Fl,i.manual?o:void 0),o;case"error":const f=i.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=u(this.state),tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,Wt).notify({query:this,type:"updated",action:i})})},qp);function m0(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:f0(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function up(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function sp(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,u=i!==void 0,r=u?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:u?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var Nt,be,hu,yt,el,$l,Ha,Sn,mu,Wl,Pl,tl,al,En,Il,Te,ru,tf,af,nf,lf,uf,sf,rf,y0,Lp,N1=(Lp=class extends ci{constructor(i,u){super();te(this,Te);te(this,Nt);te(this,be);te(this,hu);te(this,yt);te(this,el);te(this,$l);te(this,Ha);te(this,Sn);te(this,mu);te(this,Wl);te(this,Pl);te(this,tl);te(this,al);te(this,En);te(this,Il,new Set);this.options=u,J(this,Nt,i),J(this,Sn,null),J(this,Ha,Io()),this.bindMethods(),this.setOptions(u)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,be).addObserver(this),rp(E(this,be),this.options)?de(this,Te,ru).call(this):this.updateResult(),de(this,Te,lf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cf(E(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cf(E(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,Te,uf).call(this),de(this,Te,sf).call(this),E(this,be).removeObserver(this)}setOptions(i){const u=this.options,r=E(this,be);if(this.options=E(this,Nt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pt(this.options.enabled,E(this,be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,Te,rf).call(this),E(this,be).setOptions(this.options),u._defaulted&&!er(this.options,u)&&E(this,Nt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,be),observer:this});const o=this.hasListeners();o&&cp(E(this,be),r,this.options,u)&&de(this,Te,ru).call(this),this.updateResult(),o&&(E(this,be)!==r||Pt(this.options.enabled,E(this,be))!==Pt(u.enabled,E(this,be))||jn(this.options.staleTime,E(this,be))!==jn(u.staleTime,E(this,be)))&&de(this,Te,tf).call(this);const f=de(this,Te,af).call(this);o&&(E(this,be)!==r||Pt(this.options.enabled,E(this,be))!==Pt(u.enabled,E(this,be))||f!==E(this,En))&&de(this,Te,nf).call(this,f)}getOptimisticResult(i){const u=E(this,Nt).getQueryCache().build(E(this,Nt),i),r=this.createResult(u,i);return j1(this,r)&&(J(this,yt,r),J(this,$l,this.options),J(this,el,E(this,be).state)),r}getCurrentResult(){return E(this,yt)}trackResult(i,u){return new Proxy(i,{get:(r,o)=>(this.trackProp(o),u==null||u(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Ha).status==="pending"&&E(this,Ha).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(i){E(this,Il).add(i)}getCurrentQuery(){return E(this,be)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const u=E(this,Nt).defaultQueryOptions(i),r=E(this,Nt).getQueryCache().build(E(this,Nt),u);return r.fetch().then(()=>this.createResult(r,u))}fetch(i){return de(this,Te,ru).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,yt)))}createResult(i,u){var fe;const r=E(this,be),o=this.options,f=E(this,yt),h=E(this,el),g=E(this,$l),p=i!==r?i.state:E(this,hu),{state:x}=i;let b={...x},w=!1,L;if(u._optimisticResults){const je=this.hasListeners(),Qe=!je&&rp(i,u),qe=je&&cp(i,r,u,o);(Qe||qe)&&(b={...b,...m0(x.data,i.options)}),u._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:N,errorUpdatedAt:z,status:j}=b;L=b.data;let B=!1;if(u.placeholderData!==void 0&&L===void 0&&j==="pending"){let je;f!=null&&f.isPlaceholderData&&u.placeholderData===(g==null?void 0:g.placeholderData)?(je=f.data,B=!0):je=typeof u.placeholderData=="function"?u.placeholderData((fe=E(this,Pl))==null?void 0:fe.state.data,E(this,Pl)):u.placeholderData,je!==void 0&&(j="success",L=Po(f==null?void 0:f.data,je,u),w=!0)}if(u.select&&L!==void 0&&!B)if(f&&L===(h==null?void 0:h.data)&&u.select===E(this,mu))L=E(this,Wl);else try{J(this,mu,u.select),L=u.select(L),L=Po(f==null?void 0:f.data,L,u),J(this,Wl,L),J(this,Sn,null)}catch(je){J(this,Sn,je)}E(this,Sn)&&(N=E(this,Sn),L=E(this,Wl),z=Date.now(),j="error");const X=b.fetchStatus==="fetching",Y=j==="pending",K=j==="error",F=Y&&X,ae=L!==void 0,le={status:j,fetchStatus:b.fetchStatus,isPending:Y,isSuccess:j==="success",isError:K,isInitialLoading:F,isLoading:F,data:L,dataUpdatedAt:b.dataUpdatedAt,error:N,errorUpdatedAt:z,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:X,isRefetching:X&&!Y,isLoadingError:K&&!ae,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:K&&ae,isStale:wf(i,u),refetch:this.refetch,promise:E(this,Ha),isEnabled:Pt(u.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const je=le.data!==void 0,Qe=le.status==="error"&&!je,qe=_e=>{Qe?_e.reject(le.error):je&&_e.resolve(le.data)},Ie=()=>{const _e=J(this,Ha,le.promise=Io());qe(_e)},Le=E(this,Ha);switch(Le.status){case"pending":i.queryHash===r.queryHash&&qe(Le);break;case"fulfilled":(Qe||le.data!==Le.value)&&Ie();break;case"rejected":(!Qe||le.error!==Le.reason)&&Ie();break}}return le}updateResult(){const i=E(this,yt),u=this.createResult(E(this,be),this.options);if(J(this,el,E(this,be).state),J(this,$l,this.options),E(this,el).data!==void 0&&J(this,Pl,E(this,be)),er(u,i))return;J(this,yt,u);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!E(this,Il).size)return!0;const h=new Set(f??E(this,Il));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,yt)).some(g=>{const v=g;return E(this,yt)[v]!==i[v]&&h.has(v)})};de(this,Te,y0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,Te,lf).call(this)}},Nt=new WeakMap,be=new WeakMap,hu=new WeakMap,yt=new WeakMap,el=new WeakMap,$l=new WeakMap,Ha=new WeakMap,Sn=new WeakMap,mu=new WeakMap,Wl=new WeakMap,Pl=new WeakMap,tl=new WeakMap,al=new WeakMap,En=new WeakMap,Il=new WeakMap,Te=new WeakSet,ru=function(i){de(this,Te,rf).call(this);let u=E(this,be).fetch(this.options,i);return i!=null&&i.throwOnError||(u=u.catch(pt)),u},tf=function(){de(this,Te,uf).call(this);const i=jn(this.options.staleTime,E(this,be));if(il||E(this,yt).isStale||!$o(i))return;const r=r0(E(this,yt).dataUpdatedAt,i)+1;J(this,tl,Zn.setTimeout(()=>{E(this,yt).isStale||this.updateResult()},r))},af=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,be)):this.options.refetchInterval)??!1},nf=function(i){de(this,Te,sf).call(this),J(this,En,i),!(il||Pt(this.options.enabled,E(this,be))===!1||!$o(E(this,En))||E(this,En)===0)&&J(this,al,Zn.setInterval(()=>{(this.options.refetchIntervalInBackground||Of.isFocused())&&de(this,Te,ru).call(this)},E(this,En)))},lf=function(){de(this,Te,tf).call(this),de(this,Te,nf).call(this,de(this,Te,af).call(this))},uf=function(){E(this,tl)&&(Zn.clearTimeout(E(this,tl)),J(this,tl,void 0))},sf=function(){E(this,al)&&(Zn.clearInterval(E(this,al)),J(this,al,void 0))},rf=function(){const i=E(this,Nt).getQueryCache().build(E(this,Nt),this.options);if(i===E(this,be))return;const u=E(this,be);J(this,be,i),J(this,hu,i.state),this.hasListeners()&&(u==null||u.removeObserver(this),i.addObserver(this))},y0=function(i){tt.batch(()=>{i.listeners&&this.listeners.forEach(u=>{u(E(this,yt))}),E(this,Nt).getQueryCache().notify({query:E(this,be),type:"observerResultsUpdated"})})},Lp);function T1(l,i){return Pt(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&i.retryOnMount===!1)}function rp(l,i){return T1(l,i)||l.state.data!==void 0&&cf(l,i,i.refetchOnMount)}function cf(l,i,u){if(Pt(i.enabled,l)!==!1&&jn(i.staleTime,l)!=="static"){const r=typeof u=="function"?u(l):u;return r==="always"||r!==!1&&wf(l,i)}return!1}function cp(l,i,u,r){return(l!==i||Pt(r.enabled,l)===!1)&&(!u.suspense||l.state.status!=="error")&&wf(l,u)}function wf(l,i){return Pt(i.enabled,l)!==!1&&l.isStaleByTime(jn(i.staleTime,l))}function j1(l,i){return!er(l.getCurrentResult(),i)}function op(l){return{onFetch:(i,u)=>{var x,b,w,L,N;const r=i.options,o=(w=(b=(x=i.fetchOptions)==null?void 0:x.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,f=((L=i.state.data)==null?void 0:L.pages)||[],h=((N=i.state.data)==null?void 0:N.pageParams)||[];let g={pages:[],pageParams:[]},v=0;const p=async()=>{let z=!1;const j=Y=>{v1(Y,()=>i.signal,()=>z=!0)},B=o0(i.options,i.fetchOptions),X=async(Y,K,F)=>{if(z)return Promise.reject();if(K==null&&Y.pages.length)return Promise.resolve(Y);const $=(()=>{const Qe={client:i.client,queryKey:i.queryKey,pageParam:K,direction:F?"backward":"forward",meta:i.options.meta};return j(Qe),Qe})(),le=await B($),{maxPages:fe}=i.options,je=F?g1:p1;return{pages:je(Y.pages,le,fe),pageParams:je(Y.pageParams,K,fe)}};if(o&&f.length){const Y=o==="backward",K=Y?O1:fp,F={pages:f,pageParams:h},ae=K(r,F);g=await X(F,ae,Y)}else{const Y=l??f.length;do{const K=v===0?h[0]??r.initialPageParam:fp(r,g);if(v>0&&K==null)break;g=await X(g,K),v++}while(v<Y)}return g};i.options.persister?i.fetchFn=()=>{var z,j;return(j=(z=i.options).persister)==null?void 0:j.call(z,p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},u)}:i.fetchFn=p}}}function fp(l,{pages:i,pageParams:u}){const r=i.length-1;return i.length>0?l.getNextPageParam(i[r],i,u[r],u):void 0}function O1(l,{pages:i,pageParams:u}){var r;return i.length>0?(r=l.getPreviousPageParam)==null?void 0:r.call(l,i[0],i,u[0],u):void 0}var yu,ya,ft,nl,pa,gn,Hp,w1=(Hp=class extends h0{constructor(i){super();te(this,pa);te(this,yu);te(this,ya);te(this,ft);te(this,nl);J(this,yu,i.client),this.mutationId=i.mutationId,J(this,ft,i.mutationCache),J(this,ya,[]),this.state=i.state||p0(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){E(this,ya).includes(i)||(E(this,ya).push(i),this.clearGcTimeout(),E(this,ft).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){J(this,ya,E(this,ya).filter(u=>u!==i)),this.scheduleGc(),E(this,ft).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){E(this,ya).length||(this.state.status==="pending"?this.scheduleGc():E(this,ft).remove(this))}continue(){var i;return((i=E(this,nl))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var h,g,v,p,x,b,w,L,N,z,j,B,X,Y,K,F,ae,$;const u=()=>{de(this,pa,gn).call(this,{type:"continue"})},r={client:E(this,yu),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,nl,d0({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(le,fe)=>{de(this,pa,gn).call(this,{type:"failed",failureCount:le,error:fe})},onPause:()=>{de(this,pa,gn).call(this,{type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,ft).canRun(this)}));const o=this.state.status==="pending",f=!E(this,nl).canStart();try{if(o)u();else{de(this,pa,gn).call(this,{type:"pending",variables:i,isPaused:f}),E(this,ft).config.onMutate&&await E(this,ft).config.onMutate(i,this,r);const fe=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,i,r));fe!==this.state.context&&de(this,pa,gn).call(this,{type:"pending",context:fe,variables:i,isPaused:f})}const le=await E(this,nl).start();return await((p=(v=E(this,ft).config).onSuccess)==null?void 0:p.call(v,le,i,this.state.context,this,r)),await((b=(x=this.options).onSuccess)==null?void 0:b.call(x,le,i,this.state.context,r)),await((L=(w=E(this,ft).config).onSettled)==null?void 0:L.call(w,le,null,this.state.variables,this.state.context,this,r)),await((z=(N=this.options).onSettled)==null?void 0:z.call(N,le,null,i,this.state.context,r)),de(this,pa,gn).call(this,{type:"success",data:le}),le}catch(le){try{await((B=(j=E(this,ft).config).onError)==null?void 0:B.call(j,le,i,this.state.context,this,r))}catch(fe){Promise.reject(fe)}try{await((Y=(X=this.options).onError)==null?void 0:Y.call(X,le,i,this.state.context,r))}catch(fe){Promise.reject(fe)}try{await((F=(K=E(this,ft).config).onSettled)==null?void 0:F.call(K,void 0,le,this.state.variables,this.state.context,this,r))}catch(fe){Promise.reject(fe)}try{await(($=(ae=this.options).onSettled)==null?void 0:$.call(ae,void 0,le,i,this.state.context,r))}catch(fe){Promise.reject(fe)}throw de(this,pa,gn).call(this,{type:"error",error:le}),le}finally{E(this,ft).runNext(this)}}},yu=new WeakMap,ya=new WeakMap,ft=new WeakMap,nl=new WeakMap,pa=new WeakSet,gn=function(i){const u=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=u(this.state),tt.batch(()=>{E(this,ya).forEach(r=>{r.onMutationUpdate(i)}),E(this,ft).notify({mutation:this,type:"updated",action:i})})},Hp);function p0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ba,ra,pu,Bp,C1=(Bp=class extends ci{constructor(i={}){super();te(this,Ba);te(this,ra);te(this,pu);this.config=i,J(this,Ba,new Set),J(this,ra,new Map),J(this,pu,0)}build(i,u,r){const o=new w1({client:i,mutationCache:this,mutationId:++ks(this,pu)._,options:i.defaultMutationOptions(u),state:r});return this.add(o),o}add(i){E(this,Ba).add(i);const u=Ks(i);if(typeof u=="string"){const r=E(this,ra).get(u);r?r.push(i):E(this,ra).set(u,[i])}this.notify({type:"added",mutation:i})}remove(i){if(E(this,Ba).delete(i)){const u=Ks(i);if(typeof u=="string"){const r=E(this,ra).get(u);if(r)if(r.length>1){const o=r.indexOf(i);o!==-1&&r.splice(o,1)}else r[0]===i&&E(this,ra).delete(u)}}this.notify({type:"removed",mutation:i})}canRun(i){const u=Ks(i);if(typeof u=="string"){const r=E(this,ra).get(u),o=r==null?void 0:r.find(f=>f.state.status==="pending");return!o||o===i}else return!0}runNext(i){var r;const u=Ks(i);if(typeof u=="string"){const o=(r=E(this,ra).get(u))==null?void 0:r.find(f=>f!==i&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{E(this,Ba).forEach(i=>{this.notify({type:"removed",mutation:i})}),E(this,Ba).clear(),E(this,ra).clear()})}getAll(){return Array.from(E(this,Ba))}find(i){const u={exact:!0,...i};return this.getAll().find(r=>np(u,r))}findAll(i={}){return this.getAll().filter(u=>np(i,u))}notify(i){tt.batch(()=>{this.listeners.forEach(u=>{u(i)})})}resumePausedMutations(){const i=this.getAll().filter(u=>u.state.isPaused);return tt.batch(()=>Promise.all(i.map(u=>u.continue().catch(pt))))}},Ba=new WeakMap,ra=new WeakMap,pu=new WeakMap,Bp);function Ks(l){var i;return(i=l.options.scope)==null?void 0:i.id}var Qa,Rn,Tt,Ga,ka,Fs,of,Qp,_1=(Qp=class extends ci{constructor(u,r){super();te(this,ka);te(this,Qa);te(this,Rn);te(this,Tt);te(this,Ga);J(this,Qa,u),this.setOptions(r),this.bindMethods(),de(this,ka,Fs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(u){var o;const r=this.options;this.options=E(this,Qa).defaultMutationOptions(u),er(this.options,r)||E(this,Qa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Tt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ul(r.mutationKey)!==ul(this.options.mutationKey)?this.reset():((o=E(this,Tt))==null?void 0:o.state.status)==="pending"&&E(this,Tt).setOptions(this.options)}onUnsubscribe(){var u;this.hasListeners()||(u=E(this,Tt))==null||u.removeObserver(this)}onMutationUpdate(u){de(this,ka,Fs).call(this),de(this,ka,of).call(this,u)}getCurrentResult(){return E(this,Rn)}reset(){var u;(u=E(this,Tt))==null||u.removeObserver(this),J(this,Tt,void 0),de(this,ka,Fs).call(this),de(this,ka,of).call(this)}mutate(u,r){var o;return J(this,Ga,r),(o=E(this,Tt))==null||o.removeObserver(this),J(this,Tt,E(this,Qa).getMutationCache().build(E(this,Qa),this.options)),E(this,Tt).addObserver(this),E(this,Tt).execute(u)}},Qa=new WeakMap,Rn=new WeakMap,Tt=new WeakMap,Ga=new WeakMap,ka=new WeakSet,Fs=function(){var r;const u=((r=E(this,Tt))==null?void 0:r.state)??p0();J(this,Rn,{...u,isPending:u.status==="pending",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset})},of=function(u){tt.batch(()=>{var r,o,f,h,g,v,p,x;if(E(this,Ga)&&this.hasListeners()){const b=E(this,Rn).variables,w=E(this,Rn).context,L={client:E(this,Qa),meta:this.options.meta,mutationKey:this.options.mutationKey};if((u==null?void 0:u.type)==="success"){try{(o=(r=E(this,Ga)).onSuccess)==null||o.call(r,u.data,b,w,L)}catch(N){Promise.reject(N)}try{(h=(f=E(this,Ga)).onSettled)==null||h.call(f,u.data,null,b,w,L)}catch(N){Promise.reject(N)}}else if((u==null?void 0:u.type)==="error"){try{(v=(g=E(this,Ga)).onError)==null||v.call(g,u.error,b,w,L)}catch(N){Promise.reject(N)}try{(x=(p=E(this,Ga)).onSettled)==null||x.call(p,void 0,u.error,b,w,L)}catch(N){Promise.reject(N)}}}this.listeners.forEach(b=>{b(E(this,Rn))})})},Qp),ga,Gp,z1=(Gp=class extends ci{constructor(i={}){super();te(this,ga);this.config=i,J(this,ga,new Map)}build(i,u,r){const o=u.queryKey,f=u.queryHash??Nf(o,u);let h=this.get(f);return h||(h=new A1({client:i,queryKey:o,queryHash:f,options:i.defaultQueryOptions(u),state:r,defaultOptions:i.getQueryDefaults(o)}),this.add(h)),h}add(i){E(this,ga).has(i.queryHash)||(E(this,ga).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const u=E(this,ga).get(i.queryHash);u&&(i.destroy(),u===i&&E(this,ga).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){tt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return E(this,ga).get(i)}getAll(){return[...E(this,ga).values()]}find(i){const u={exact:!0,...i};return this.getAll().find(r=>ap(u,r))}findAll(i={}){const u=this.getAll();return Object.keys(i).length>0?u.filter(r=>ap(i,r)):u}notify(i){tt.batch(()=>{this.listeners.forEach(u=>{u(i)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},ga=new WeakMap,Gp),Xe,An,Nn,ei,ti,Tn,ai,ni,kp,D1=(kp=class{constructor(l={}){te(this,Xe);te(this,An);te(this,Nn);te(this,ei);te(this,ti);te(this,Tn);te(this,ai);te(this,ni);J(this,Xe,l.queryCache||new z1),J(this,An,l.mutationCache||new C1),J(this,Nn,l.defaultOptions||{}),J(this,ei,new Map),J(this,ti,new Map),J(this,Tn,0)}mount(){ks(this,Tn)._++,E(this,Tn)===1&&(J(this,ai,Of.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,Xe).onFocus())})),J(this,ni,tr.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,Xe).onOnline())})))}unmount(){var l,i;ks(this,Tn)._--,E(this,Tn)===0&&((l=E(this,ai))==null||l.call(this),J(this,ai,void 0),(i=E(this,ni))==null||i.call(this),J(this,ni,void 0))}isFetching(l){return E(this,Xe).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return E(this,An).findAll({...l,status:"pending"}).length}getQueryData(l){var u;const i=this.defaultQueryOptions({queryKey:l});return(u=E(this,Xe).get(i.queryHash))==null?void 0:u.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),u=E(this,Xe).build(this,i),r=u.state.data;return r===void 0?this.fetchQuery(l):(l.revalidateIfStale&&u.isStaleByTime(jn(i.staleTime,u))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(l){return E(this,Xe).findAll(l).map(({queryKey:i,state:u})=>{const r=u.data;return[i,r]})}setQueryData(l,i,u){const r=this.defaultQueryOptions({queryKey:l}),o=E(this,Xe).get(r.queryHash),f=o==null?void 0:o.state.data,h=h1(i,f);if(h!==void 0)return E(this,Xe).build(this,r).setData(h,{...u,manual:!0})}setQueriesData(l,i,u){return tt.batch(()=>E(this,Xe).findAll(l).map(({queryKey:r})=>[r,this.setQueryData(r,i,u)]))}getQueryState(l){var u;const i=this.defaultQueryOptions({queryKey:l});return(u=E(this,Xe).get(i.queryHash))==null?void 0:u.state}removeQueries(l){const i=E(this,Xe);tt.batch(()=>{i.findAll(l).forEach(u=>{i.remove(u)})})}resetQueries(l,i){const u=E(this,Xe);return tt.batch(()=>(u.findAll(l).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const u={revert:!0,...i},r=tt.batch(()=>E(this,Xe).findAll(l).map(o=>o.cancel(u)));return Promise.all(r).then(pt).catch(pt)}invalidateQueries(l,i={}){return tt.batch(()=>(E(this,Xe).findAll(l).forEach(u=>{u.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},i)))}refetchQueries(l,i={}){const u={...i,cancelRefetch:i.cancelRefetch??!0},r=tt.batch(()=>E(this,Xe).findAll(l).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,u);return u.throwOnError||(f=f.catch(pt)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(pt)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const u=E(this,Xe).build(this,i);return u.isStaleByTime(jn(i.staleTime,u))?u.fetch(i):Promise.resolve(u.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(pt).catch(pt)}fetchInfiniteQuery(l){return l.behavior=op(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(pt).catch(pt)}ensureInfiniteQueryData(l){return l.behavior=op(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return tr.isOnline()?E(this,An).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Xe)}getMutationCache(){return E(this,An)}getDefaultOptions(){return E(this,Nn)}setDefaultOptions(l){J(this,Nn,l)}setQueryDefaults(l,i){E(this,ei).set(ul(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...E(this,ei).values()],u={};return i.forEach(r=>{fu(l,r.queryKey)&&Object.assign(u,r.defaultOptions)}),u}setMutationDefaults(l,i){E(this,ti).set(ul(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...E(this,ti).values()],u={};return i.forEach(r=>{fu(l,r.mutationKey)&&Object.assign(u,r.defaultOptions)}),u}defaultQueryOptions(l){if(l._defaulted)return l;const i={...E(this,Nn).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=Nf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Tf&&(i.enabled=!1),i}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...E(this,Nn).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){E(this,Xe).clear(),E(this,An).clear()}},Xe=new WeakMap,An=new WeakMap,Nn=new WeakMap,ei=new WeakMap,ti=new WeakMap,Tn=new WeakMap,ai=new WeakMap,ni=new WeakMap,kp),g0=O.createContext(void 0),v0=l=>{const i=O.useContext(g0);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},M1=({client:l,children:i})=>(O.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),m.jsx(g0.Provider,{value:l,children:i})),b0=O.createContext(!1),U1=()=>O.useContext(b0);b0.Provider;function q1(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var L1=O.createContext(q1()),H1=()=>O.useContext(L1),B1=(l,i,u)=>{const r=u!=null&&u.state.error&&typeof l.throwOnError=="function"?jf(l.throwOnError,[u.state.error,u]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||r)&&(i.isReset()||(l.retryOnMount=!1))},Q1=l=>{O.useEffect(()=>{l.clearReset()},[l])},G1=({result:l,errorResetBoundary:i,throwOnError:u,query:r,suspense:o})=>l.isError&&!i.isReset()&&!l.isFetching&&r&&(o&&l.data===void 0||jf(u,[l.error,r])),k1=l=>{if(l.suspense){const u=o=>o==="static"?o:Math.max(o??1e3,1e3),r=l.staleTime;l.staleTime=typeof r=="function"?(...o)=>u(r(...o)):u(r),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},Y1=(l,i)=>l.isLoading&&l.isFetching&&!i,K1=(l,i)=>(l==null?void 0:l.suspense)&&i.isPending,dp=(l,i,u)=>i.fetchOptimistic(l).catch(()=>{u.clearReset()});function X1(l,i,u){var w,L,N,z;const r=U1(),o=H1(),f=v0(),h=f.defaultQueryOptions(l);(L=(w=f.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||L.call(w,h);const g=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",k1(h),B1(h,o,g),Q1(o);const v=!f.getQueryCache().get(h.queryHash),[p]=O.useState(()=>new i(f,h)),x=p.getOptimisticResult(h),b=!r&&l.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(j=>{const B=b?p.subscribe(tt.batchCalls(j)):pt;return p.updateResult(),B},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),O.useEffect(()=>{p.setOptions(h)},[h,p]),K1(h,x))throw dp(h,p,o);if(G1({result:x,errorResetBoundary:o,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw x.error;if((z=(N=f.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||z.call(N,h,x),h.experimental_prefetchInRender&&!il&&Y1(x,r)){const j=v?dp(h,p,o):g==null?void 0:g.promise;j==null||j.catch(pt).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?x:p.trackResult(x)}function Ka(l,i){return X1(l,N1)}function Cf(l,i){const u=v0(),[r]=O.useState(()=>new _1(u,l));O.useEffect(()=>{r.setOptions(l)},[r,l]);const o=O.useSyncExternalStore(O.useCallback(h=>r.subscribe(tt.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=O.useCallback((h,g)=>{r.mutate(h,g).catch(pt)},[r]);if(o.error&&jf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}function x0(l,i){return function(){return l.apply(i,arguments)}}const{toString:V1}=Object.prototype,{getPrototypeOf:_f}=Object,{iterator:sr,toStringTag:S0}=Symbol,rr=(l=>i=>{const u=V1.call(i);return l[u]||(l[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),oa=l=>(l=l.toLowerCase(),i=>rr(i)===l),cr=l=>i=>typeof i===l,{isArray:oi}=Array,li=cr("undefined");function bu(l){return l!==null&&!li(l)&&l.constructor!==null&&!li(l.constructor)&&jt(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const E0=oa("ArrayBuffer");function Z1(l){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(l):i=l&&l.buffer&&E0(l.buffer),i}const J1=cr("string"),jt=cr("function"),R0=cr("number"),xu=l=>l!==null&&typeof l=="object",F1=l=>l===!0||l===!1,$s=l=>{if(rr(l)!=="object")return!1;const i=_f(l);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(S0 in l)&&!(sr in l)},$1=l=>{if(!xu(l)||bu(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},W1=oa("Date"),P1=oa("File"),I1=l=>!!(l&&typeof l.uri<"u"),eS=l=>l&&typeof l.getParts<"u",tS=oa("Blob"),aS=oa("FileList"),nS=l=>xu(l)&&jt(l.pipe);function lS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const hp=lS(),mp=typeof hp.FormData<"u"?hp.FormData:void 0,iS=l=>{let i;return l&&(mp&&l instanceof mp||jt(l.append)&&((i=rr(l))==="formdata"||i==="object"&&jt(l.toString)&&l.toString()==="[object FormData]"))},uS=oa("URLSearchParams"),[sS,rS,cS,oS]=["ReadableStream","Request","Response","Headers"].map(oa),fS=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Su(l,i,{allOwnKeys:u=!1}={}){if(l===null||typeof l>"u")return;let r,o;if(typeof l!="object"&&(l=[l]),oi(l))for(r=0,o=l.length;r<o;r++)i.call(null,l[r],r,l);else{if(bu(l))return;const f=u?Object.getOwnPropertyNames(l):Object.keys(l),h=f.length;let g;for(r=0;r<h;r++)g=f[r],i.call(null,l[g],g,l)}}function A0(l,i){if(bu(l))return null;i=i.toLowerCase();const u=Object.keys(l);let r=u.length,o;for(;r-- >0;)if(o=u[r],i===o.toLowerCase())return o;return null}const Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,N0=l=>!li(l)&&l!==Jn;function ff(){const{caseless:l,skipUndefined:i}=N0(this)&&this||{},u={},r=(o,f)=>{if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=l&&A0(u,f)||f;$s(u[h])&&$s(o)?u[h]=ff(u[h],o):$s(o)?u[h]=ff({},o):oi(o)?u[h]=o.slice():(!i||!li(o))&&(u[h]=o)};for(let o=0,f=arguments.length;o<f;o++)arguments[o]&&Su(arguments[o],r);return u}const dS=(l,i,u,{allOwnKeys:r}={})=>(Su(i,(o,f)=>{u&&jt(o)?Object.defineProperty(l,f,{value:x0(o,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(l,f,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),l),hS=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),mS=(l,i,u,r)=>{l.prototype=Object.create(i.prototype,r),Object.defineProperty(l.prototype,"constructor",{value:l,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(l,"super",{value:i.prototype}),u&&Object.assign(l.prototype,u)},yS=(l,i,u,r)=>{let o,f,h;const g={};if(i=i||{},l==null)return i;do{for(o=Object.getOwnPropertyNames(l),f=o.length;f-- >0;)h=o[f],(!r||r(h,l,i))&&!g[h]&&(i[h]=l[h],g[h]=!0);l=u!==!1&&_f(l)}while(l&&(!u||u(l,i))&&l!==Object.prototype);return i},pS=(l,i,u)=>{l=String(l),(u===void 0||u>l.length)&&(u=l.length),u-=i.length;const r=l.indexOf(i,u);return r!==-1&&r===u},gS=l=>{if(!l)return null;if(oi(l))return l;let i=l.length;if(!R0(i))return null;const u=new Array(i);for(;i-- >0;)u[i]=l[i];return u},vS=(l=>i=>l&&i instanceof l)(typeof Uint8Array<"u"&&_f(Uint8Array)),bS=(l,i)=>{const r=(l&&l[sr]).call(l);let o;for(;(o=r.next())&&!o.done;){const f=o.value;i.call(l,f[0],f[1])}},xS=(l,i)=>{let u;const r=[];for(;(u=l.exec(i))!==null;)r.push(u);return r},SS=oa("HTMLFormElement"),ES=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,r,o){return r.toUpperCase()+o}),yp=(({hasOwnProperty:l})=>(i,u)=>l.call(i,u))(Object.prototype),RS=oa("RegExp"),T0=(l,i)=>{const u=Object.getOwnPropertyDescriptors(l),r={};Su(u,(o,f)=>{let h;(h=i(o,f,l))!==!1&&(r[f]=h||o)}),Object.defineProperties(l,r)},AS=l=>{T0(l,(i,u)=>{if(jt(l)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;const r=l[u];if(jt(r)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},NS=(l,i)=>{const u={},r=o=>{o.forEach(f=>{u[f]=!0})};return oi(l)?r(l):r(String(l).split(i)),u},TS=()=>{},jS=(l,i)=>l!=null&&Number.isFinite(l=+l)?l:i;function OS(l){return!!(l&&jt(l.append)&&l[S0]==="FormData"&&l[sr])}const wS=l=>{const i=new Array(10),u=(r,o)=>{if(xu(r)){if(i.indexOf(r)>=0)return;if(bu(r))return r;if(!("toJSON"in r)){i[o]=r;const f=oi(r)?[]:{};return Su(r,(h,g)=>{const v=u(h,o+1);!li(v)&&(f[g]=v)}),i[o]=void 0,f}}return r};return u(l,0)},CS=oa("AsyncFunction"),_S=l=>l&&(xu(l)||jt(l))&&jt(l.then)&&jt(l.catch),j0=((l,i)=>l?setImmediate:i?((u,r)=>(Jn.addEventListener("message",({source:o,data:f})=>{o===Jn&&f===u&&r.length&&r.shift()()},!1),o=>{r.push(o),Jn.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",jt(Jn.postMessage)),zS=typeof queueMicrotask<"u"?queueMicrotask.bind(Jn):typeof process<"u"&&process.nextTick||j0,DS=l=>l!=null&&jt(l[sr]),M={isArray:oi,isArrayBuffer:E0,isBuffer:bu,isFormData:iS,isArrayBufferView:Z1,isString:J1,isNumber:R0,isBoolean:F1,isObject:xu,isPlainObject:$s,isEmptyObject:$1,isReadableStream:sS,isRequest:rS,isResponse:cS,isHeaders:oS,isUndefined:li,isDate:W1,isFile:P1,isReactNativeBlob:I1,isReactNative:eS,isBlob:tS,isRegExp:RS,isFunction:jt,isStream:nS,isURLSearchParams:uS,isTypedArray:vS,isFileList:aS,forEach:Su,merge:ff,extend:dS,trim:fS,stripBOM:hS,inherits:mS,toFlatObject:yS,kindOf:rr,kindOfTest:oa,endsWith:pS,toArray:gS,forEachEntry:bS,matchAll:xS,isHTMLForm:SS,hasOwnProperty:yp,hasOwnProp:yp,reduceDescriptors:T0,freezeMethods:AS,toObjectSet:NS,toCamelCase:ES,noop:TS,toFiniteNumber:jS,findKey:A0,global:Jn,isContextDefined:N0,isSpecCompliantForm:OS,toJSONObject:wS,isAsyncFn:CS,isThenable:_S,setImmediate:j0,asap:zS,isIterable:DS};let ue=class O0 extends Error{static from(i,u,r,o,f,h){const g=new O0(i.message,u||i.code,r,o,f);return g.cause=i,g.name=i.name,i.status!=null&&g.status==null&&(g.status=i.status),h&&Object.assign(g,h),g}constructor(i,u,r,o,f){super(i),Object.defineProperty(this,"message",{value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),r&&(this.config=r),o&&(this.request=o),f&&(this.response=f,this.status=f.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ue.ERR_BAD_OPTION="ERR_BAD_OPTION";ue.ECONNABORTED="ECONNABORTED";ue.ETIMEDOUT="ETIMEDOUT";ue.ERR_NETWORK="ERR_NETWORK";ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ue.ERR_DEPRECATED="ERR_DEPRECATED";ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ue.ERR_CANCELED="ERR_CANCELED";ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ue.ERR_INVALID_URL="ERR_INVALID_URL";const MS=null;function df(l){return M.isPlainObject(l)||M.isArray(l)}function w0(l){return M.endsWith(l,"[]")?l.slice(0,-2):l}function ko(l,i,u){return l?l.concat(i).map(function(o,f){return o=w0(o),!u&&f?"["+o+"]":o}).join(u?".":""):i}function US(l){return M.isArray(l)&&!l.some(df)}const qS=M.toFlatObject(M,{},null,function(i){return/^is[A-Z]/.test(i)});function or(l,i,u){if(!M.isObject(l))throw new TypeError("target must be an object");i=i||new FormData,u=M.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(z,j){return!M.isUndefined(j[z])});const r=u.metaTokens,o=u.visitor||x,f=u.dots,h=u.indexes,v=(u.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(i);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function p(N){if(N===null)return"";if(M.isDate(N))return N.toISOString();if(M.isBoolean(N))return N.toString();if(!v&&M.isBlob(N))throw new ue("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(N)||M.isTypedArray(N)?v&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function x(N,z,j){let B=N;if(M.isReactNative(i)&&M.isReactNativeBlob(N))return i.append(ko(j,z,f),p(N)),!1;if(N&&!j&&typeof N=="object"){if(M.endsWith(z,"{}"))z=r?z:z.slice(0,-2),N=JSON.stringify(N);else if(M.isArray(N)&&US(N)||(M.isFileList(N)||M.endsWith(z,"[]"))&&(B=M.toArray(N)))return z=w0(z),B.forEach(function(Y,K){!(M.isUndefined(Y)||Y===null)&&i.append(h===!0?ko([z],K,f):h===null?z:z+"[]",p(Y))}),!1}return df(N)?!0:(i.append(ko(j,z,f),p(N)),!1)}const b=[],w=Object.assign(qS,{defaultVisitor:x,convertValue:p,isVisitable:df});function L(N,z){if(!M.isUndefined(N)){if(b.indexOf(N)!==-1)throw Error("Circular reference detected in "+z.join("."));b.push(N),M.forEach(N,function(B,X){(!(M.isUndefined(B)||B===null)&&o.call(i,B,M.isString(X)?X.trim():X,z,w))===!0&&L(B,z?z.concat(X):[X])}),b.pop()}}if(!M.isObject(l))throw new TypeError("data must be an object");return L(l),i}function pp(l){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(r){return i[r]})}function zf(l,i){this._pairs=[],l&&or(l,this,i)}const C0=zf.prototype;C0.append=function(i,u){this._pairs.push([i,u])};C0.toString=function(i){const u=i?function(r){return i.call(this,r,pp)}:pp;return this._pairs.map(function(o){return u(o[0])+"="+u(o[1])},"").join("&")};function LS(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _0(l,i,u){if(!i)return l;const r=u&&u.encode||LS,o=M.isFunction(u)?{serialize:u}:u,f=o&&o.serialize;let h;if(f?h=f(i,o):h=M.isURLSearchParams(i)?i.toString():new zf(i,o).toString(r),h){const g=l.indexOf("#");g!==-1&&(l=l.slice(0,g)),l+=(l.indexOf("?")===-1?"?":"&")+h}return l}class gp{constructor(){this.handlers=[]}use(i,u,r){return this.handlers.push({fulfilled:i,rejected:u,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){M.forEach(this.handlers,function(r){r!==null&&i(r)})}}const Df={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},HS=typeof URLSearchParams<"u"?URLSearchParams:zf,BS=typeof FormData<"u"?FormData:null,QS=typeof Blob<"u"?Blob:null,GS={isBrowser:!0,classes:{URLSearchParams:HS,FormData:BS,Blob:QS},protocols:["http","https","file","blob","url","data"]},Mf=typeof window<"u"&&typeof document<"u",hf=typeof navigator=="object"&&navigator||void 0,kS=Mf&&(!hf||["ReactNative","NativeScript","NS"].indexOf(hf.product)<0),YS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",KS=Mf&&window.location.href||"http://localhost",XS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mf,hasStandardBrowserEnv:kS,hasStandardBrowserWebWorkerEnv:YS,navigator:hf,origin:KS},Symbol.toStringTag,{value:"Module"})),dt={...XS,...GS};function VS(l,i){return or(l,new dt.classes.URLSearchParams,{visitor:function(u,r,o,f){return dt.isNode&&M.isBuffer(u)?(this.append(r,u.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...i})}function ZS(l){return M.matchAll(/\w+|\[(\w*)]/g,l).map(i=>i[0]==="[]"?"":i[1]||i[0])}function JS(l){const i={},u=Object.keys(l);let r;const o=u.length;let f;for(r=0;r<o;r++)f=u[r],i[f]=l[f];return i}function z0(l){function i(u,r,o,f){let h=u[f++];if(h==="__proto__")return!0;const g=Number.isFinite(+h),v=f>=u.length;return h=!h&&M.isArray(o)?o.length:h,v?(M.hasOwnProp(o,h)?o[h]=[o[h],r]:o[h]=r,!g):((!o[h]||!M.isObject(o[h]))&&(o[h]=[]),i(u,r,o[h],f)&&M.isArray(o[h])&&(o[h]=JS(o[h])),!g)}if(M.isFormData(l)&&M.isFunction(l.entries)){const u={};return M.forEachEntry(l,(r,o)=>{i(ZS(r),o,u,0)}),u}return null}function FS(l,i,u){if(M.isString(l))try{return(i||JSON.parse)(l),M.trim(l)}catch(r){if(r.name!=="SyntaxError")throw r}return(u||JSON.stringify)(l)}const Eu={transitional:Df,adapter:["xhr","http","fetch"],transformRequest:[function(i,u){const r=u.getContentType()||"",o=r.indexOf("application/json")>-1,f=M.isObject(i);if(f&&M.isHTMLForm(i)&&(i=new FormData(i)),M.isFormData(i))return o?JSON.stringify(z0(i)):i;if(M.isArrayBuffer(i)||M.isBuffer(i)||M.isStream(i)||M.isFile(i)||M.isBlob(i)||M.isReadableStream(i))return i;if(M.isArrayBufferView(i))return i.buffer;if(M.isURLSearchParams(i))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let g;if(f){if(r.indexOf("application/x-www-form-urlencoded")>-1)return VS(i,this.formSerializer).toString();if((g=M.isFileList(i))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return or(g?{"files[]":i}:i,v&&new v,this.formSerializer)}}return f||o?(u.setContentType("application/json",!1),FS(i)):i}],transformResponse:[function(i){const u=this.transitional||Eu.transitional,r=u&&u.forcedJSONParsing,o=this.responseType==="json";if(M.isResponse(i)||M.isReadableStream(i))return i;if(i&&M.isString(i)&&(r&&!this.responseType||o)){const h=!(u&&u.silentJSONParsing)&&o;try{return JSON.parse(i,this.parseReviver)}catch(g){if(h)throw g.name==="SyntaxError"?ue.from(g,ue.ERR_BAD_RESPONSE,this,null,this.response):g}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],l=>{Eu.headers[l]={}});const $S=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),WS=l=>{const i={};let u,r,o;return l&&l.split(`
|
|
`).forEach(function(h){o=h.indexOf(":"),u=h.substring(0,o).trim().toLowerCase(),r=h.substring(o+1).trim(),!(!u||i[u]&&$S[u])&&(u==="set-cookie"?i[u]?i[u].push(r):i[u]=[r]:i[u]=i[u]?i[u]+", "+r:r)}),i},vp=Symbol("internals");function su(l){return l&&String(l).trim().toLowerCase()}function Ws(l){return l===!1||l==null?l:M.isArray(l)?l.map(Ws):String(l)}function PS(l){const i=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=u.exec(l);)i[r[1]]=r[2];return i}const IS=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function Yo(l,i,u,r,o){if(M.isFunction(r))return r.call(this,i,u);if(o&&(i=u),!!M.isString(i)){if(M.isString(r))return i.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(i)}}function e2(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,u,r)=>u.toUpperCase()+r)}function t2(l,i){const u=M.toCamelCase(" "+i);["get","set","has"].forEach(r=>{Object.defineProperty(l,r+u,{value:function(o,f,h){return this[r].call(this,i,o,f,h)},configurable:!0})})}let Ot=class{constructor(i){i&&this.set(i)}set(i,u,r){const o=this;function f(g,v,p){const x=su(v);if(!x)throw new Error("header name must be a non-empty string");const b=M.findKey(o,x);(!b||o[b]===void 0||p===!0||p===void 0&&o[b]!==!1)&&(o[b||v]=Ws(g))}const h=(g,v)=>M.forEach(g,(p,x)=>f(p,x,v));if(M.isPlainObject(i)||i instanceof this.constructor)h(i,u);else if(M.isString(i)&&(i=i.trim())&&!IS(i))h(WS(i),u);else if(M.isObject(i)&&M.isIterable(i)){let g={},v,p;for(const x of i){if(!M.isArray(x))throw TypeError("Object iterator must return a key-value pair");g[p=x[0]]=(v=g[p])?M.isArray(v)?[...v,x[1]]:[v,x[1]]:x[1]}h(g,u)}else i!=null&&f(u,i,r);return this}get(i,u){if(i=su(i),i){const r=M.findKey(this,i);if(r){const o=this[r];if(!u)return o;if(u===!0)return PS(o);if(M.isFunction(u))return u.call(this,o,r);if(M.isRegExp(u))return u.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,u){if(i=su(i),i){const r=M.findKey(this,i);return!!(r&&this[r]!==void 0&&(!u||Yo(this,this[r],r,u)))}return!1}delete(i,u){const r=this;let o=!1;function f(h){if(h=su(h),h){const g=M.findKey(r,h);g&&(!u||Yo(r,r[g],g,u))&&(delete r[g],o=!0)}}return M.isArray(i)?i.forEach(f):f(i),o}clear(i){const u=Object.keys(this);let r=u.length,o=!1;for(;r--;){const f=u[r];(!i||Yo(this,this[f],f,i,!0))&&(delete this[f],o=!0)}return o}normalize(i){const u=this,r={};return M.forEach(this,(o,f)=>{const h=M.findKey(r,f);if(h){u[h]=Ws(o),delete u[f];return}const g=i?e2(f):String(f).trim();g!==f&&delete u[f],u[g]=Ws(o),r[g]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const u=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(u[o]=i&&M.isArray(r)?r.join(", "):r)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,u])=>i+": "+u).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...u){const r=new this(i);return u.forEach(o=>r.set(o)),r}static accessor(i){const r=(this[vp]=this[vp]={accessors:{}}).accessors,o=this.prototype;function f(h){const g=su(h);r[g]||(t2(o,h),r[g]=!0)}return M.isArray(i)?i.forEach(f):f(i),this}};Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Ot.prototype,({value:l},i)=>{let u=i[0].toUpperCase()+i.slice(1);return{get:()=>l,set(r){this[u]=r}}});M.freezeMethods(Ot);function Ko(l,i){const u=this||Eu,r=i||u,o=Ot.from(r.headers);let f=r.data;return M.forEach(l,function(g){f=g.call(u,f,o.normalize(),i?i.status:void 0)}),o.normalize(),f}function D0(l){return!!(l&&l.__CANCEL__)}let Ru=class extends ue{constructor(i,u,r){super(i??"canceled",ue.ERR_CANCELED,u,r),this.name="CanceledError",this.__CANCEL__=!0}};function M0(l,i,u){const r=u.config.validateStatus;!u.status||!r||r(u.status)?l(u):i(new ue("Request failed with status code "+u.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function a2(l){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return i&&i[1]||""}function n2(l,i){l=l||10;const u=new Array(l),r=new Array(l);let o=0,f=0,h;return i=i!==void 0?i:1e3,function(v){const p=Date.now(),x=r[f];h||(h=p),u[o]=v,r[o]=p;let b=f,w=0;for(;b!==o;)w+=u[b++],b=b%l;if(o=(o+1)%l,o===f&&(f=(f+1)%l),p-h<i)return;const L=x&&p-x;return L?Math.round(w*1e3/L):void 0}}function l2(l,i){let u=0,r=1e3/i,o,f;const h=(p,x=Date.now())=>{u=x,o=null,f&&(clearTimeout(f),f=null),l(...p)};return[(...p)=>{const x=Date.now(),b=x-u;b>=r?h(p,x):(o=p,f||(f=setTimeout(()=>{f=null,h(o)},r-b)))},()=>o&&h(o)]}const ar=(l,i,u=3)=>{let r=0;const o=n2(50,250);return l2(f=>{const h=f.loaded,g=f.lengthComputable?f.total:void 0,v=h-r,p=o(v),x=h<=g;r=h;const b={loaded:h,total:g,progress:g?h/g:void 0,bytes:v,rate:p||void 0,estimated:p&&g&&x?(g-h)/p:void 0,event:f,lengthComputable:g!=null,[i?"download":"upload"]:!0};l(b)},u)},bp=(l,i)=>{const u=l!=null;return[r=>i[0]({lengthComputable:u,total:l,loaded:r}),i[1]]},xp=l=>(...i)=>M.asap(()=>l(...i)),i2=dt.hasStandardBrowserEnv?((l,i)=>u=>(u=new URL(u,dt.origin),l.protocol===u.protocol&&l.host===u.host&&(i||l.port===u.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,u2=dt.hasStandardBrowserEnv?{write(l,i,u,r,o,f,h){if(typeof document>"u")return;const g=[`${l}=${encodeURIComponent(i)}`];M.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),M.isString(r)&&g.push(`path=${r}`),M.isString(o)&&g.push(`domain=${o}`),f===!0&&g.push("secure"),M.isString(h)&&g.push(`SameSite=${h}`),document.cookie=g.join("; ")},read(l){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+l+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function s2(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function r2(l,i){return i?l.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):l}function U0(l,i,u){let r=!s2(i);return l&&(r||u==!1)?r2(l,i):i}const Sp=l=>l instanceof Ot?{...l}:l;function sl(l,i){i=i||{};const u={};function r(p,x,b,w){return M.isPlainObject(p)&&M.isPlainObject(x)?M.merge.call({caseless:w},p,x):M.isPlainObject(x)?M.merge({},x):M.isArray(x)?x.slice():x}function o(p,x,b,w){if(M.isUndefined(x)){if(!M.isUndefined(p))return r(void 0,p,b,w)}else return r(p,x,b,w)}function f(p,x){if(!M.isUndefined(x))return r(void 0,x)}function h(p,x){if(M.isUndefined(x)){if(!M.isUndefined(p))return r(void 0,p)}else return r(void 0,x)}function g(p,x,b){if(b in i)return r(p,x);if(b in l)return r(void 0,p)}const v={url:f,method:f,data:f,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(p,x,b)=>o(Sp(p),Sp(x),b,!0)};return M.forEach(Object.keys({...l,...i}),function(x){if(x==="__proto__"||x==="constructor"||x==="prototype")return;const b=M.hasOwnProp(v,x)?v[x]:o,w=b(l[x],i[x],x);M.isUndefined(w)&&b!==g||(u[x]=w)}),u}const q0=l=>{const i=sl({},l);let{data:u,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:f,headers:h,auth:g}=i;if(i.headers=h=Ot.from(h),i.url=_0(U0(i.baseURL,i.url,i.allowAbsoluteUrls),l.params,l.paramsSerializer),g&&h.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),M.isFormData(u)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(M.isFunction(u.getHeaders)){const v=u.getHeaders(),p=["content-type","content-length"];Object.entries(v).forEach(([x,b])=>{p.includes(x.toLowerCase())&&h.set(x,b)})}}if(dt.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(i)),r||r!==!1&&i2(i.url))){const v=o&&f&&u2.read(f);v&&h.set(o,v)}return i},c2=typeof XMLHttpRequest<"u",o2=c2&&function(l){return new Promise(function(u,r){const o=q0(l);let f=o.data;const h=Ot.from(o.headers).normalize();let{responseType:g,onUploadProgress:v,onDownloadProgress:p}=o,x,b,w,L,N;function z(){L&&L(),N&&N(),o.cancelToken&&o.cancelToken.unsubscribe(x),o.signal&&o.signal.removeEventListener("abort",x)}let j=new XMLHttpRequest;j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout;function B(){if(!j)return;const Y=Ot.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),F={data:!g||g==="text"||g==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:Y,config:l,request:j};M0(function($){u($),z()},function($){r($),z()},F),j=null}"onloadend"in j?j.onloadend=B:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(B)},j.onabort=function(){j&&(r(new ue("Request aborted",ue.ECONNABORTED,l,j)),j=null)},j.onerror=function(K){const F=K&&K.message?K.message:"Network Error",ae=new ue(F,ue.ERR_NETWORK,l,j);ae.event=K||null,r(ae),j=null},j.ontimeout=function(){let K=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||Df;o.timeoutErrorMessage&&(K=o.timeoutErrorMessage),r(new ue(K,F.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,l,j)),j=null},f===void 0&&h.setContentType(null),"setRequestHeader"in j&&M.forEach(h.toJSON(),function(K,F){j.setRequestHeader(F,K)}),M.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),g&&g!=="json"&&(j.responseType=o.responseType),p&&([w,N]=ar(p,!0),j.addEventListener("progress",w)),v&&j.upload&&([b,L]=ar(v),j.upload.addEventListener("progress",b),j.upload.addEventListener("loadend",L)),(o.cancelToken||o.signal)&&(x=Y=>{j&&(r(!Y||Y.type?new Ru(null,l,j):Y),j.abort(),j=null)},o.cancelToken&&o.cancelToken.subscribe(x),o.signal&&(o.signal.aborted?x():o.signal.addEventListener("abort",x)));const X=a2(o.url);if(X&&dt.protocols.indexOf(X)===-1){r(new ue("Unsupported protocol "+X+":",ue.ERR_BAD_REQUEST,l));return}j.send(f||null)})},f2=(l,i)=>{const{length:u}=l=l?l.filter(Boolean):[];if(i||u){let r=new AbortController,o;const f=function(p){if(!o){o=!0,g();const x=p instanceof Error?p:this.reason;r.abort(x instanceof ue?x:new Ru(x instanceof Error?x.message:x))}};let h=i&&setTimeout(()=>{h=null,f(new ue(`timeout of ${i}ms exceeded`,ue.ETIMEDOUT))},i);const g=()=>{l&&(h&&clearTimeout(h),h=null,l.forEach(p=>{p.unsubscribe?p.unsubscribe(f):p.removeEventListener("abort",f)}),l=null)};l.forEach(p=>p.addEventListener("abort",f));const{signal:v}=r;return v.unsubscribe=()=>M.asap(g),v}},d2=function*(l,i){let u=l.byteLength;if(u<i){yield l;return}let r=0,o;for(;r<u;)o=r+i,yield l.slice(r,o),r=o},h2=async function*(l,i){for await(const u of m2(l))yield*d2(u,i)},m2=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const i=l.getReader();try{for(;;){const{done:u,value:r}=await i.read();if(u)break;yield r}}finally{await i.cancel()}},Ep=(l,i,u,r)=>{const o=h2(l,i);let f=0,h,g=v=>{h||(h=!0,r&&r(v))};return new ReadableStream({async pull(v){try{const{done:p,value:x}=await o.next();if(p){g(),v.close();return}let b=x.byteLength;if(u){let w=f+=b;u(w)}v.enqueue(new Uint8Array(x))}catch(p){throw g(p),p}},cancel(v){return g(v),o.return()}},{highWaterMark:2})},Rp=64*1024,{isFunction:Xs}=M,y2=(({Request:l,Response:i})=>({Request:l,Response:i}))(M.global),{ReadableStream:Ap,TextEncoder:Np}=M.global,Tp=(l,...i)=>{try{return!!l(...i)}catch{return!1}},p2=l=>{l=M.merge.call({skipUndefined:!0},y2,l);const{fetch:i,Request:u,Response:r}=l,o=i?Xs(i):typeof fetch=="function",f=Xs(u),h=Xs(r);if(!o)return!1;const g=o&&Xs(Ap),v=o&&(typeof Np=="function"?(N=>z=>N.encode(z))(new Np):async N=>new Uint8Array(await new u(N).arrayBuffer())),p=f&&g&&Tp(()=>{let N=!1;const z=new u(dt.origin,{body:new Ap,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!z}),x=h&&g&&Tp(()=>M.isReadableStream(new r("").body)),b={stream:x&&(N=>N.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{!b[N]&&(b[N]=(z,j)=>{let B=z&&z[N];if(B)return B.call(z);throw new ue(`Response type '${N}' is not supported`,ue.ERR_NOT_SUPPORT,j)})});const w=async N=>{if(N==null)return 0;if(M.isBlob(N))return N.size;if(M.isSpecCompliantForm(N))return(await new u(dt.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(M.isArrayBufferView(N)||M.isArrayBuffer(N))return N.byteLength;if(M.isURLSearchParams(N)&&(N=N+""),M.isString(N))return(await v(N)).byteLength},L=async(N,z)=>{const j=M.toFiniteNumber(N.getContentLength());return j??w(z)};return async N=>{let{url:z,method:j,data:B,signal:X,cancelToken:Y,timeout:K,onDownloadProgress:F,onUploadProgress:ae,responseType:$,headers:le,withCredentials:fe="same-origin",fetchOptions:je}=q0(N),Qe=i||fetch;$=$?($+"").toLowerCase():"text";let qe=f2([X,Y&&Y.toAbortSignal()],K),Ie=null;const Le=qe&&qe.unsubscribe&&(()=>{qe.unsubscribe()});let _e;try{if(ae&&p&&j!=="get"&&j!=="head"&&(_e=await L(le,B))!==0){let R=new u(z,{method:"POST",body:B,duplex:"half"}),G;if(M.isFormData(B)&&(G=R.headers.get("content-type"))&&le.setContentType(G),R.body){const[Z,W]=bp(_e,ar(xp(ae)));B=Ep(R.body,Rp,Z,W)}}M.isString(fe)||(fe=fe?"include":"omit");const q=f&&"credentials"in u.prototype,V={...je,signal:qe,method:j.toUpperCase(),headers:le.normalize().toJSON(),body:B,duplex:"half",credentials:q?fe:void 0};Ie=f&&new u(z,V);let ee=await(f?Qe(Ie,je):Qe(z,V));const Re=x&&($==="stream"||$==="response");if(x&&(F||Re&&Le)){const R={};["status","statusText","headers"].forEach(se=>{R[se]=ee[se]});const G=M.toFiniteNumber(ee.headers.get("content-length")),[Z,W]=F&&bp(G,ar(xp(F),!0))||[];ee=new r(Ep(ee.body,Rp,Z,()=>{W&&W(),Le&&Le()}),R)}$=$||"text";let Oe=await b[M.findKey(b,$)||"text"](ee,N);return!Re&&Le&&Le(),await new Promise((R,G)=>{M0(R,G,{data:Oe,headers:Ot.from(ee.headers),status:ee.status,statusText:ee.statusText,config:N,request:Ie})})}catch(q){throw Le&&Le(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,N,Ie,q&&q.response),{cause:q.cause||q}):ue.from(q,q&&q.code,N,Ie,q&&q.response)}}},g2=new Map,L0=l=>{let i=l&&l.env||{};const{fetch:u,Request:r,Response:o}=i,f=[r,o,u];let h=f.length,g=h,v,p,x=g2;for(;g--;)v=f[g],p=x.get(v),p===void 0&&x.set(v,p=g?new Map:p2(i)),x=p;return p};L0();const Uf={http:MS,xhr:o2,fetch:{get:L0}};M.forEach(Uf,(l,i)=>{if(l){try{Object.defineProperty(l,"name",{value:i})}catch{}Object.defineProperty(l,"adapterName",{value:i})}});const jp=l=>`- ${l}`,v2=l=>M.isFunction(l)||l===null||l===!1;function b2(l,i){l=M.isArray(l)?l:[l];const{length:u}=l;let r,o;const f={};for(let h=0;h<u;h++){r=l[h];let g;if(o=r,!v2(r)&&(o=Uf[(g=String(r)).toLowerCase()],o===void 0))throw new ue(`Unknown adapter '${g}'`);if(o&&(M.isFunction(o)||(o=o.get(i))))break;f[g||"#"+h]=o}if(!o){const h=Object.entries(f).map(([v,p])=>`adapter ${v} `+(p===!1?"is not supported by the environment":"is not available in the build"));let g=u?h.length>1?`since :
|
|
`+h.map(jp).join(`
|
|
`):" "+jp(h[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return o}const H0={getAdapter:b2,adapters:Uf};function Xo(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new Ru(null,l)}function Op(l){return Xo(l),l.headers=Ot.from(l.headers),l.data=Ko.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),H0.getAdapter(l.adapter||Eu.adapter,l)(l).then(function(r){return Xo(l),r.data=Ko.call(l,l.transformResponse,r),r.headers=Ot.from(r.headers),r},function(r){return D0(r)||(Xo(l),r&&r.response&&(r.response.data=Ko.call(l,l.transformResponse,r.response),r.response.headers=Ot.from(r.response.headers))),Promise.reject(r)})}const B0="1.13.6",fr={};["object","boolean","number","function","string","symbol"].forEach((l,i)=>{fr[l]=function(r){return typeof r===l||"a"+(i<1?"n ":" ")+l}});const wp={};fr.transitional=function(i,u,r){function o(f,h){return"[Axios v"+B0+"] Transitional option '"+f+"'"+h+(r?". "+r:"")}return(f,h,g)=>{if(i===!1)throw new ue(o(h," has been removed"+(u?" in "+u:"")),ue.ERR_DEPRECATED);return u&&!wp[h]&&(wp[h]=!0,console.warn(o(h," has been deprecated since v"+u+" and will be removed in the near future"))),i?i(f,h,g):!0}};fr.spelling=function(i){return(u,r)=>(console.warn(`${r} is likely a misspelling of ${i}`),!0)};function x2(l,i,u){if(typeof l!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(l);let o=r.length;for(;o-- >0;){const f=r[o],h=i[f];if(h){const g=l[f],v=g===void 0||h(g,f,l);if(v!==!0)throw new ue("option "+f+" must be "+v,ue.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new ue("Unknown option "+f,ue.ERR_BAD_OPTION)}}const Ps={assertOptions:x2,validators:fr},$t=Ps.validators;let ll=class{constructor(i){this.defaults=i||{},this.interceptors={request:new gp,response:new gp}}async request(i,u){try{return await this._request(i,u)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const f=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?f&&!String(r.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
`+f):r.stack=f}catch{}}throw r}}_request(i,u){typeof i=="string"?(u=u||{},u.url=i):u=i||{},u=sl(this.defaults,u);const{transitional:r,paramsSerializer:o,headers:f}=u;r!==void 0&&Ps.assertOptions(r,{silentJSONParsing:$t.transitional($t.boolean),forcedJSONParsing:$t.transitional($t.boolean),clarifyTimeoutError:$t.transitional($t.boolean),legacyInterceptorReqResOrdering:$t.transitional($t.boolean)},!1),o!=null&&(M.isFunction(o)?u.paramsSerializer={serialize:o}:Ps.assertOptions(o,{encode:$t.function,serialize:$t.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),Ps.assertOptions(u,{baseUrl:$t.spelling("baseURL"),withXsrfToken:$t.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let h=f&&M.merge(f.common,f[u.method]);f&&M.forEach(["delete","get","head","post","put","patch","common"],N=>{delete f[N]}),u.headers=Ot.concat(h,f);const g=[];let v=!0;this.interceptors.request.forEach(function(z){if(typeof z.runWhen=="function"&&z.runWhen(u)===!1)return;v=v&&z.synchronous;const j=u.transitional||Df;j&&j.legacyInterceptorReqResOrdering?g.unshift(z.fulfilled,z.rejected):g.push(z.fulfilled,z.rejected)});const p=[];this.interceptors.response.forEach(function(z){p.push(z.fulfilled,z.rejected)});let x,b=0,w;if(!v){const N=[Op.bind(this),void 0];for(N.unshift(...g),N.push(...p),w=N.length,x=Promise.resolve(u);b<w;)x=x.then(N[b++],N[b++]);return x}w=g.length;let L=u;for(;b<w;){const N=g[b++],z=g[b++];try{L=N(L)}catch(j){z.call(this,j);break}}try{x=Op.call(this,L)}catch(N){return Promise.reject(N)}for(b=0,w=p.length;b<w;)x=x.then(p[b++],p[b++]);return x}getUri(i){i=sl(this.defaults,i);const u=U0(i.baseURL,i.url,i.allowAbsoluteUrls);return _0(u,i.params,i.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(i){ll.prototype[i]=function(u,r){return this.request(sl(r||{},{method:i,url:u,data:(r||{}).data}))}});M.forEach(["post","put","patch"],function(i){function u(r){return function(f,h,g){return this.request(sl(g||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:f,data:h}))}}ll.prototype[i]=u(),ll.prototype[i+"Form"]=u(!0)});let S2=class Q0{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(f){u=f});const r=this;this.promise.then(o=>{if(!r._listeners)return;let f=r._listeners.length;for(;f-- >0;)r._listeners[f](o);r._listeners=null}),this.promise.then=o=>{let f;const h=new Promise(g=>{r.subscribe(g),f=g}).then(o);return h.cancel=function(){r.unsubscribe(f)},h},i(function(f,h,g){r.reason||(r.reason=new Ru(f,h,g),u(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const u=this._listeners.indexOf(i);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const i=new AbortController,u=r=>{i.abort(r)};return this.subscribe(u),i.signal.unsubscribe=()=>this.unsubscribe(u),i.signal}static source(){let i;return{token:new Q0(function(o){i=o}),cancel:i}}};function E2(l){return function(u){return l.apply(null,u)}}function R2(l){return M.isObject(l)&&l.isAxiosError===!0}const mf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mf).forEach(([l,i])=>{mf[i]=l});function G0(l){const i=new ll(l),u=x0(ll.prototype.request,i);return M.extend(u,ll.prototype,i,{allOwnKeys:!0}),M.extend(u,i,null,{allOwnKeys:!0}),u.create=function(o){return G0(sl(l,o))},u}const xe=G0(Eu);xe.Axios=ll;xe.CanceledError=Ru;xe.CancelToken=S2;xe.isCancel=D0;xe.VERSION=B0;xe.toFormData=or;xe.AxiosError=ue;xe.Cancel=xe.CanceledError;xe.all=function(i){return Promise.all(i)};xe.spread=E2;xe.isAxiosError=R2;xe.mergeConfig=sl;xe.AxiosHeaders=Ot;xe.formToJSON=l=>z0(M.isHTMLForm(l)?new FormData(l):l);xe.getAdapter=H0.getAdapter;xe.HttpStatusCode=mf;xe.default=xe;const{Axios:dR,AxiosError:hR,CanceledError:mR,isCancel:yR,CancelToken:pR,VERSION:gR,all:vR,Cancel:bR,isAxiosError:xR,spread:SR,toFormData:ER,AxiosHeaders:RR,HttpStatusCode:AR,formToJSON:NR,getAdapter:TR,mergeConfig:jR}=xe,k0="antholume_token";xe.interceptors.request.use(l=>{const i=localStorage.getItem(k0);return i&&l.headers&&(l.headers.Authorization=`Bearer ${i}`),l},l=>Promise.reject(l));xe.interceptors.response.use(l=>l,l=>{var i;return((i=l.response)==null?void 0:i.status)===401&&localStorage.removeItem(k0),Promise.reject(l)});const A2=(l,i)=>xe.get("/api/v1/documents",{...i,params:{...l,...i==null?void 0:i.params}}),N2=l=>["/api/v1/documents",...l?[l]:[]],T2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??N2(l),queryFn:({signal:h})=>A2(l,{signal:h,...r}),...u}};function Y0(l,i,u){const r=T2(l),o=Ka(r);return o.queryKey=r.queryKey,o}const j2=(l,i)=>{const u=new FormData;return u.append("document_file",l.document_file),xe.post("/api/v1/documents",u,i)},O2=l=>{const i=["createDocument"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:f=>{const{data:h}=f??{};return j2(h,r)},...u}},w2=(l,i)=>{const u=O2();return Cf(u)},C2=(l,i)=>xe.get(`/api/v1/documents/${l}`,i),_2=l=>[`/api/v1/documents/${l}`],z2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??_2(l),queryFn:({signal:h})=>C2(l,{signal:h,...r}),enabled:!!l,...u}};function D2(l,i,u){const r=z2(l),o=Ka(r);return o.queryKey=r.queryKey,o}const M2=(l,i)=>xe.get("/api/v1/progress",{...i,params:{...l,...i==null?void 0:i.params}}),U2=l=>["/api/v1/progress",...l?[l]:[]],q2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??U2(l),queryFn:({signal:h})=>M2(l,{signal:h,...r}),...u}};function L2(l,i,u){const r=q2(l),o=Ka(r);return o.queryKey=r.queryKey,o}const H2=(l,i)=>xe.get(`/api/v1/progress/${l}`,i),B2=l=>[`/api/v1/progress/${l}`],Q2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??B2(l),queryFn:({signal:h})=>H2(l,{signal:h,...r}),enabled:!!l,...u}};function G2(l,i,u){const r=Q2(l),o=Ka(r);return o.queryKey=r.queryKey,o}const k2=(l,i)=>xe.get("/api/v1/activity",{...i,params:{...l,...i==null?void 0:i.params}}),Y2=l=>["/api/v1/activity",...l?[l]:[]],K2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??Y2(l),queryFn:({signal:h})=>k2(l,{signal:h,...r}),...u}};function X2(l,i,u){const r=K2(l),o=Ka(r);return o.queryKey=r.queryKey,o}const V2=l=>xe.get("/api/v1/settings",l),Z2=()=>["/api/v1/settings"],J2=l=>{const{query:i,axios:u}={};return{queryKey:(i==null?void 0:i.queryKey)??Z2(),queryFn:({signal:f})=>V2({signal:f,...u}),...i}};function F2(l,i){const u=J2(),r=Ka(u);return r.queryKey=u.queryKey,r}const $2=(l,i)=>xe.post("/api/v1/auth/login",l,i),W2=l=>{const i=["login"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:f=>{const{data:h}=f??{};return $2(h,r)},...u}},P2=(l,i)=>{const u=W2();return Cf(u)},I2=l=>xe.post("/api/v1/auth/logout",void 0,l),eE=l=>{const i=["logout"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:()=>I2(r),...u}},tE=(l,i)=>{const u=eE();return Cf(u)},aE=l=>xe.get("/api/v1/auth/me",l),nE=()=>["/api/v1/auth/me"],lE=l=>{const{query:i,axios:u}=l??{};return{queryKey:(i==null?void 0:i.queryKey)??nE(),queryFn:({signal:f})=>aE({signal:f,...u}),...i}};function K0(l,i){const u=lE(l),r=Ka(u);return r.queryKey=u.queryKey,r}const iE=l=>xe.get("/api/v1/home",l),uE=()=>["/api/v1/home"],sE=l=>{const{query:i,axios:u}={};return{queryKey:(i==null?void 0:i.queryKey)??uE(),queryFn:({signal:f})=>iE({signal:f,...u}),...i}};function rE(l,i){const u=sE(),r=Ka(u);return r.queryKey=u.queryKey,r}const cE=(l,i)=>xe.get("/api/v1/search",{...i,params:{...l,...i==null?void 0:i.params}}),oE=l=>["/api/v1/search",...l?[l]:[]],fE=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??oE(l),queryFn:({signal:h})=>cE(l,{signal:h,...r}),...u}};function dE(l,i,u){const r=fE(l),o=Ka(r);return o.queryKey=r.queryKey,o}const X0=O.createContext(void 0);function hE({children:l}){const[i,u]=O.useState({isAuthenticated:!1,user:null,isCheckingAuth:!0}),r=P2(),o=tE(),{data:f,error:h,isLoading:g}=K0(),v=ir();O.useEffect(()=>{g?u(b=>({...b,isCheckingAuth:!0})):f!=null&&f.data?u({isAuthenticated:!0,user:f.data,isCheckingAuth:!1}):h&&u({isAuthenticated:!1,user:null,isCheckingAuth:!1})},[f,h,g]);const p=async(b,w)=>{try{const L=await r.mutateAsync({data:{username:b,password:w}});u({isAuthenticated:!0,user:L.data,isCheckingAuth:!1}),v("/")}catch{throw new Error("Login failed")}},x=()=>{o.mutate(void 0,{onSuccess:()=>{u({isAuthenticated:!1,user:null,isCheckingAuth:!1}),v("/login")}})};return m.jsx(X0.Provider,{value:{...i,login:p,logout:x},children:l})}function dr(){const l=O.useContext(X0);if(l===void 0)throw new Error("useAuth must be used within an AuthProvider");return l}/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const V0=(...l)=>l.filter((i,u,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===u).join(" ").trim();/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const mE=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yE=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,u,r)=>r?r.toUpperCase():u.toLowerCase());/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Cp=l=>{const i=yE(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var pE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const gE=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const vE=O.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:u=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:h,...g},v)=>O.createElement("svg",{ref:v,...pE,width:i,height:i,stroke:l,strokeWidth:r?Number(u)*24/Number(i):u,className:V0("lucide",o),...!f&&!gE(g)&&{"aria-hidden":"true"},...g},[...h.map(([p,x])=>O.createElement(p,x)),...Array.isArray(f)?f:[f]]));/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const aa=(l,i)=>{const u=O.forwardRef(({className:r,...o},f)=>O.createElement(vE,{ref:f,iconNode:i,className:V0(`lucide-${mE(Cp(l))}`,`lucide-${l}`,r),...o}));return u.displayName=Cp(l),u};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const bE=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],yf=aa("activity",bE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xE=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],SE=aa("book",xE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const EE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],RE=aa("chevron-down",EE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const AE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],NE=aa("clock",AE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const TE=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],pf=aa("download",TE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const jE=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],OE=aa("file-text",jE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const wE=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],CE=aa("house",wE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _E=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],_p=aa("lock",_E);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const zE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qf=aa("search",zE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const DE=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],cu=aa("settings",DE);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ME=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],UE=aa("upload",ME);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const qE=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Z0=aa("user",qE),LE=[{path:"/",label:"Home",icon:CE,title:"Home"},{path:"/documents",label:"Documents",icon:OE,title:"Documents"},{path:"/progress",label:"Progress",icon:yf,title:"Progress"},{path:"/activity",label:"Activity",icon:yf,title:"Activity"},{path:"/search",label:"Search",icon:qf,title:"Search"}],HE=[{path:"/admin",label:"General",icon:cu,title:"General"},{path:"/admin/import",label:"Import",icon:cu,title:"Import"},{path:"/admin/users",label:"Users",icon:cu,title:"Users"},{path:"/admin/logs",label:"Logs",icon:cu,title:"Logs"}];function Vo(l,i){return l.startsWith(i)}function BE(){const l=ta(),{user:i}=dr(),[u,r]=O.useState(!1),o=(i==null?void 0:i.is_admin)??!1;return m.jsxs("div",{className:"flex flex-col z-40 relative ml-6",children:[m.jsx("input",{type:"checkbox",className:"absolute lg:hidden z-50 -top-2 w-7 h-7 flex cursor-pointer opacity-0",id:"mobile-nav-checkbox",checked:u,onChange:f=>r(f.target.checked)}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-0.5 dark:bg-white transition-transform transition-background transition-opacity duration-500",style:{transformOrigin:"5px 0px",transition:"transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease",transform:u?"rotate(45deg) translate(2px, -2px)":"none"}}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-1 dark:bg-white transition-transform transition-background transition-opacity duration-500",style:{transformOrigin:"0% 100%",transition:"transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease",opacity:u?0:1,transform:u?"rotate(0deg) scale(0.2, 0.2)":"none"}}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-1 dark:bg-white transition-transform transition-background transition-opacity duration-500",style:{transformOrigin:"0% 0%",transition:"transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease",transform:u?"rotate(-45deg) translate(0, 6px)":"none"}}),m.jsxs("div",{id:"menu",className:"fixed -ml-6 h-full w-56 lg:w-48 bg-white dark:bg-gray-700 shadow-lg",style:{top:0,paddingTop:"env(safe-area-inset-top)",transformOrigin:"0% 0%",transform:u?"none":"translate(-100%, 0)",transition:"transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1)"},children:[m.jsx("style",{children:`
|
|
@media (min-width: 1024px) {
|
|
#menu {
|
|
transform: none !important;
|
|
}
|
|
}
|
|
`}),m.jsx("div",{className:"h-16 flex justify-end lg:justify-around",children:m.jsx("p",{className:"text-xl font-bold dark:text-white text-right my-auto pr-8 lg:pr-0",children:"AnthoLume"})}),m.jsxs("nav",{className:"flex flex-col",children:[LE.map(f=>m.jsxs(It,{to:f.path,onClick:()=>r(!1),className:`flex items-center justify-start w-full p-2 pl-6 my-2 transition-colors duration-200 border-l-4 ${l.pathname===f.path?"border-purple-500 dark:text-white":"border-transparent text-gray-400 hover:text-gray-800 dark:hover:text-gray-100"}`,children:[m.jsx(f.icon,{size:20}),m.jsx("span",{className:"mx-4 text-sm font-normal",children:f.label})]},f.path)),o&&m.jsxs("div",{className:`flex flex-col gap-4 p-2 pl-6 my-2 transition-colors duration-200 border-l-4 ${Vo(l.pathname,"/admin")?"border-purple-500 dark:text-white":"border-transparent text-gray-400"}`,children:[m.jsxs(It,{to:"/admin",onClick:()=>r(!1),className:`flex justify-start w-full ${l.pathname==="/admin"&&!Vo(l.pathname,"/admin/")?"dark:text-white":"text-gray-400 hover:text-gray-800 dark:hover:text-gray-100"}`,children:[m.jsx(cu,{size:20}),m.jsx("span",{className:"mx-4 text-sm font-normal",children:"Admin"})]}),Vo(l.pathname,"/admin")&&m.jsx("div",{className:"flex flex-col",children:HE.map(f=>m.jsx(It,{to:f.path,onClick:()=>r(!1),className:`flex justify-start w-full ${l.pathname===f.path?"dark:text-white":"text-gray-400 hover:text-gray-800 dark:hover:text-gray-100"}`,style:{paddingLeft:"1.75em"},children:m.jsx("span",{className:"mx-4 text-sm font-normal",children:f.label})},f.path))})]})]}),m.jsx("a",{className:"flex flex-col gap-2 justify-center items-center p-6 w-full absolute bottom-0 text-black dark:text-white",target:"_blank",href:"https://gitea.va.reichard.io/evan/AnthoLume",children:m.jsx("span",{className:"text-xs",children:"v1.0.0"})})]})]})}function QE(){var L;const l=ta(),{isAuthenticated:i,user:u,logout:r,isCheckingAuth:o}=dr(),{data:f}=K0(i?{}:void 0),h=(f==null?void 0:f.data)||u,[g,v]=O.useState(!1),p=O.useRef(null),x=()=>{r(),v(!1)};O.useEffect(()=>{const N=z=>{p.current&&!p.current.contains(z.target)&&v(!1)};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]);const w=((L=[{path:"/",title:"Home"},{path:"/documents",title:"Documents"},{path:"/progress",title:"Progress"},{path:"/activity",title:"Activity"},{path:"/search",title:"Search"},{path:"/settings",title:"Settings"}].find(N=>l.pathname===N.path))==null?void 0:L.title)||"Documents";return o?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):i?m.jsxs("div",{className:"bg-gray-100 dark:bg-gray-800 min-h-screen",children:[m.jsxs("div",{className:"flex items-center justify-between w-full h-16",children:[m.jsx(BE,{}),m.jsx("h1",{className:"text-xl font-bold dark:text-white px-6 lg:ml-44",children:w}),m.jsxs("div",{className:"relative flex items-center justify-end w-full p-4 space-x-4",ref:p,children:[m.jsx("button",{onClick:()=>v(!g),className:"relative block text-gray-800 dark:text-gray-200",children:m.jsx(Z0,{size:20})}),g&&m.jsx("div",{className:"transition duration-200 z-20 absolute right-4 top-16 pt-4",children:m.jsx("div",{className:"w-40 origin-top-right bg-white rounded-md shadow-lg dark:shadow-gray-800 dark:bg-gray-700 ring-1 ring-black ring-opacity-5",children:m.jsxs("div",{className:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu",children:[m.jsx(It,{to:"/settings",onClick:()=>v(!1),className:"block px-4 py-2 text-md text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600",role:"menuitem",children:m.jsx("span",{className:"flex flex-col",children:m.jsx("span",{children:"Settings"})})}),m.jsx("button",{onClick:x,className:"block px-4 py-2 text-md text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 w-full text-left",role:"menuitem",children:m.jsx("span",{className:"flex flex-col",children:m.jsx("span",{children:"Logout"})})})]})})}),m.jsxs("button",{onClick:()=>v(!g),className:"flex items-center gap-2 text-gray-500 dark:text-white text-md py-4 cursor-pointer",children:[m.jsx("span",{children:(h==null?void 0:h.username)||"User"}),m.jsx("span",{className:"text-gray-800 dark:text-gray-200 transition-transform duration-200",style:{transform:g?"rotate(180deg)":"rotate(0deg)"},children:m.jsx(RE,{size:20})})]})]})]}),m.jsx("main",{className:"relative overflow-hidden",style:{height:"calc(100dvh - 4rem - env(safe-area-inset-top))"},children:m.jsx("div",{id:"container",className:"h-[100dvh] px-4 overflow-auto md:px-6 lg:ml-48",style:{paddingBottom:"calc(5em + env(safe-area-inset-bottom) * 2)"},children:m.jsx(Ox,{})})})]}):m.jsx(n0,{to:"/login",replace:!0})}function Vs({title:l,size:i,link:u}){return u?m.jsx(It,{to:u,className:"w-full",children:m.jsx("div",{className:"flex gap-4 w-full p-4 bg-white shadow-lg dark:bg-gray-700 rounded",children:m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("p",{className:"text-2xl font-bold text-black dark:text-white",children:i}),m.jsx("p",{className:"text-sm text-gray-400",children:l})]})})}):m.jsx("div",{className:"w-full",children:m.jsx("div",{className:"flex gap-4 w-full p-4 bg-white shadow-lg dark:bg-gray-700 rounded",children:m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("p",{className:"text-2xl font-bold text-black dark:text-white",children:i}),m.jsx("p",{className:"text-sm text-gray-400",children:l})]})})})}function GE({window:l,currentStreak:i,currentStreakStartDate:u,currentStreakEndDate:r,maxStreak:o,maxStreakStartDate:f,maxStreakEndDate:h}){return m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"relative w-full px-4 py-6 bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("p",{className:"text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:l==="WEEK"?"Weekly Read Streak":"Daily Read Streak"}),m.jsx("div",{className:"flex items-end my-6 space-x-2",children:m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:i})}),m.jsxs("div",{className:"dark:text-white",children:[m.jsxs("div",{className:"flex items-center justify-between pb-2 mb-2 text-sm border-b border-gray-200",children:[m.jsxs("div",{children:[m.jsx("p",{children:l==="WEEK"?"Current Weekly Streak":"Current Daily Streak"}),m.jsxs("div",{className:"flex items-end text-sm text-gray-400",children:[u," ➞ ",r]})]}),m.jsx("div",{className:"flex items-end font-bold",children:i})]}),m.jsxs("div",{className:"flex items-center justify-between pb-2 mb-2 text-sm",children:[m.jsxs("div",{children:[m.jsx("p",{children:l==="WEEK"?"Best Weekly Streak":"Best Daily Streak"}),m.jsxs("div",{className:"flex items-end text-sm text-gray-400",children:[f," ➞ ",h]})]}),m.jsx("div",{className:"flex items-end font-bold",children:o})]})]})]})})}function Zo({name:l,data:i}){var u;return m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"flex flex-col justify-between h-full w-full px-4 py-6 bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("div",{children:m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("p",{className:"text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:[l," Leaderboard"]}),m.jsxs("div",{className:"flex gap-2 text-xs text-gray-400 items-center",children:[m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"all"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"year"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"month"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"week"})]})]})}),m.jsx("div",{className:"flex items-end my-6 space-x-2",children:i.all.length===0?m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:"N/A"}):m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:((u=i.all[0])==null?void 0:u.user_id)||"N/A"})}),m.jsx("div",{className:"dark:text-white",children:i.all.slice(0,3).map((r,o)=>m.jsxs("div",{className:`flex items-center justify-between pt-2 pb-2 text-sm ${o>0?"border-t border-gray-200":""}`,children:[m.jsx("div",{children:m.jsx("p",{children:r.user_id})}),m.jsx("div",{className:"flex items-end font-bold",children:r.value})]},o))})]})})}function kE({data:l}){if(!l||l.length===0)return m.jsx("div",{className:"relative h-24 flex items-center justify-center bg-gray-100 dark:bg-gray-600",children:m.jsx("p",{className:"text-gray-400 dark:text-gray-300",children:"No data available"})});const i=Math.max(...l.map(u=>u.minutes_read),1);return m.jsx("div",{className:"relative h-24 flex items-end justify-between p-2 bg-gray-100 dark:bg-gray-600",children:l.map((u,r)=>m.jsx("div",{className:"flex-1 mx-0.5 bg-blue-500 hover:bg-blue-600 transition-colors relative group",style:{height:`${u.minutes_read/i*100}%`},children:m.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-full text-xs text-center text-gray-600 dark:text-gray-300 opacity-0 group-hover:opacity-100 pointer-events-none",children:[u.minutes_read," min"]})},r))})}function YE(){var p,x,b,w,L,N,z;const{data:l,isLoading:i}=rE(),{data:u,isLoading:r}=Y0({page:1,limit:9}),o=(p=u==null?void 0:u.data)==null?void 0:p.documents,f=(x=l==null?void 0:l.data)==null?void 0:x.database_info,h=(w=(b=l==null?void 0:l.data)==null?void 0:b.streaks)==null?void 0:w.streaks,g=(N=(L=l==null?void 0:l.data)==null?void 0:L.graph_data)==null?void 0:N.graph_data,v=(z=l==null?void 0:l.data)==null?void 0:z.user_statistics;return i||r?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"relative w-full bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("p",{className:"absolute top-3 left-5 text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:"Daily Read Totals"}),m.jsx(kE,{data:g||[]})]})}),m.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[m.jsx(Vs,{title:"Documents",size:(f==null?void 0:f.documents_size)||0,link:"./documents"}),m.jsx(Vs,{title:"Activity Records",size:(f==null?void 0:f.activity_size)||0,link:"./activity"}),m.jsx(Vs,{title:"Progress Records",size:(f==null?void 0:f.progress_size)||0,link:"./progress"}),m.jsx(Vs,{title:"Devices",size:(f==null?void 0:f.devices_size)||0})]}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:h==null?void 0:h.map((j,B)=>m.jsx(GE,{window:j.window,currentStreak:j.current_streak,currentStreakStartDate:j.current_streak_start_date,currentStreakEndDate:j.current_streak_end_date,maxStreak:j.max_streak,maxStreakStartDate:j.max_streak_start_date,maxStreakEndDate:j.max_streak_end_date},B))}),m.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:[m.jsx(Zo,{name:"WPM",data:(v==null?void 0:v.wpm)||{all:[],year:[],month:[],week:[]}}),m.jsx(Zo,{name:"Duration",data:(v==null?void 0:v.duration)||{all:[],year:[],month:[],week:[]}}),m.jsx(Zo,{name:"Words",data:(v==null?void 0:v.words)||{all:[],year:[],month:[],week:[]}})]}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:o==null?void 0:o.slice(0,6).map(j=>m.jsxs("div",{className:"flex flex-col gap-2 p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("h3",{className:"font-medium text-lg",children:j.title}),m.jsx("p",{className:"text-sm",children:j.author}),m.jsx(It,{to:`/documents/${j.id}`,className:"text-white bg-blue-700 hover:bg-blue-800 font-medium rounded text-sm text-center py-1 dark:bg-blue-600 dark:hover:bg-blue-700",children:"View Document"})]},j.id))})]})}const J0=(l="default")=>{const i="transition duration-100 ease-in font-medium w-full h-full px-2 py-1 text-white";return l==="secondary"?`${i} bg-black shadow-md hover:text-black hover:bg-white`:`${i} bg-gray-500 dark:text-gray-800 hover:bg-gray-800 dark:hover:bg-gray-100`},ii=O.forwardRef(({variant:l="default",children:i,className:u="",...r},o)=>m.jsx("button",{ref:o,className:`${J0(l)} ${u}`.trim(),...r,children:i}));ii.displayName="Button";const KE=O.forwardRef(({variant:l="default",children:i,className:u="",...r},o)=>m.jsx("a",{ref:o,className:`${J0(l)} ${u}`.trim(),...r,children:i}));KE.displayName="ButtonLink";function XE({doc:l}){const i=l.percentage||0,u=l.total_time_seconds||0,r=o=>{const f=Math.floor(o/3600),h=Math.floor(o%3600/60);return f>0?`${f}h ${h}m`:`${h}m`};return m.jsx("div",{className:"w-full relative",children:m.jsxs("div",{className:"flex gap-4 w-full h-full p-4 shadow-lg bg-white dark:bg-gray-700 rounded",children:[m.jsx("div",{className:"min-w-fit my-auto h-48 relative",children:m.jsx(It,{to:`/documents/${l.id}`,children:m.jsx("img",{className:"rounded object-cover h-full",src:`/api/v1/documents/${l.id}/cover`,alt:l.title})})}),m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Title"}),m.jsx("p",{className:"font-medium",children:l.title||"Unknown"})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Author"}),m.jsx("p",{className:"font-medium",children:l.author||"Unknown"})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Progress"}),m.jsxs("p",{className:"font-medium",children:[i,"%"]})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Time Read"}),m.jsx("p",{className:"font-medium",children:r(u)})]})})]}),m.jsxs("div",{className:"absolute flex flex-col gap-2 right-4 bottom-4 text-gray-500 dark:text-gray-400",children:[m.jsx(It,{to:`/activity?document=${l.id}`,children:m.jsx(yf,{size:20})}),l.filepath?m.jsx(It,{to:`/documents/${l.id}/file`,children:m.jsx(pf,{size:20})}):m.jsx(pf,{size:20,className:"text-gray-400"})]})]})})}function VE(){var X,Y,K;const[l,i]=O.useState(""),[u,r]=O.useState(1),[o]=O.useState(9),[f,h]=O.useState(!1),g=O.useRef(null),{data:v,isLoading:p,refetch:x}=Y0({page:u,limit:o,search:l}),b=w2(),w=(X=v==null?void 0:v.data)==null?void 0:X.documents,L=(Y=v==null?void 0:v.data)==null?void 0:Y.previous_page,N=(K=v==null?void 0:v.data)==null?void 0:K.next_page,z=F=>{F.preventDefault(),x()},j=async F=>{var $;const ae=($=F.target.files)==null?void 0:$[0];if(ae){if(!ae.name.endsWith(".epub")){alert("Please upload an EPUB file");return}try{await b.mutateAsync({data:{document_file:ae}}),alert("Document uploaded successfully!"),h(!1),x()}catch(le){console.error("Upload failed:",le),alert("Failed to upload document")}}},B=()=>{h(!1),g.current&&(g.current.value="")};return p?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("div",{className:"flex flex-col gap-2 grow p-4 mb-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:z,children:[m.jsx("div",{className:"flex flex-col w-full grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(qf,{size:15})}),m.jsx("input",{type:"text",value:l,onChange:F=>i(F.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-2 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Search Author / Title",name:"search"})]})}),m.jsx("div",{className:"lg:w-60",children:m.jsx(ii,{variant:"secondary",type:"submit",children:"Search"})})]})}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:w==null?void 0:w.map(F=>m.jsx(XE,{doc:F},F.id))}),m.jsxs("div",{className:"w-full flex gap-4 justify-center mt-4 text-black dark:text-white",children:[L&&L>0&&m.jsx("button",{onClick:()=>r(u-1),className:"bg-white shadow-lg dark:bg-gray-600 hover:bg-gray-400 font-medium rounded text-sm text-center p-2 w-24 dark:hover:bg-gray-700 focus:outline-none",children:"◄"}),N&&N>0&&m.jsx("button",{onClick:()=>r(u+1),className:"bg-white shadow-lg dark:bg-gray-600 hover:bg-gray-400 font-medium rounded text-sm text-center p-2 w-24 dark:hover:bg-gray-700 focus:outline-none",children:"►"})]}),m.jsxs("div",{className:"fixed bottom-6 right-6 rounded-full flex items-center justify-center",children:[m.jsx("input",{type:"checkbox",id:"upload-file-button",className:"hidden",checked:f,onChange:()=>h(!f)}),m.jsxs("div",{className:`absolute right-0 z-10 bottom-0 rounded p-4 bg-gray-800 dark:bg-gray-200 text-white dark:text-black w-72 text-sm flex flex-col gap-2 transition-opacity duration-200 ${f?"visible opacity-100":"invisible opacity-0"}`,children:[m.jsxs("form",{method:"POST",encType:"multipart/form-data",className:"flex flex-col gap-2",children:[m.jsx("input",{type:"file",accept:".epub",id:"document_file",name:"document_file",ref:g,onChange:j}),m.jsx("button",{className:"font-medium px-2 py-1 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800",type:"submit",onClick:F=>{var ae;F.preventDefault(),j({target:{files:(ae=g.current)==null?void 0:ae.files}})},children:"Upload File"})]}),m.jsx("label",{htmlFor:"upload-file-button",children:m.jsx("div",{className:"w-full text-center cursor-pointer font-medium mt-2 px-2 py-1 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800",onClick:B,children:"Cancel Upload"})})]}),m.jsx("label",{className:"w-16 h-16 bg-gray-800 dark:bg-gray-200 rounded-full flex items-center justify-center opacity-30 hover:opacity-100 transition-all duration-200 cursor-pointer",htmlFor:"upload-file-button",children:m.jsx(UE,{size:34})})]})]})}function ZE(){var g,v,p;const{id:l}=mx(),{data:i,isLoading:u}=D2(l||""),{data:r,isLoading:o}=G2(l||"");if(u||o)return m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."});const f=(g=i==null?void 0:i.data)==null?void 0:g.document,h=r==null?void 0:r.data;return f?m.jsx("div",{className:"h-full w-full relative",children:m.jsxs("div",{className:"h-full w-full overflow-scroll bg-white shadow-lg dark:bg-gray-700 rounded dark:text-white p-4",children:[m.jsxs("div",{className:"flex flex-col gap-2 float-left w-44 md:w-60 lg:w-80 mr-4 mb-2 relative",children:[m.jsx("div",{className:"rounded object-fill w-full bg-gray-200 dark:bg-gray-600 h-60",children:m.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-400",children:"No Cover"})}),m.jsx("a",{href:`/reader#id=${f.id}&type=REMOTE`,className:"text-white bg-blue-700 hover:bg-blue-800 font-medium rounded text-sm text-center py-1 dark:bg-blue-600 dark:hover:bg-blue-700",children:"Read"}),m.jsx("div",{className:"flex flex-wrap-reverse justify-between gap-2",children:m.jsx("div",{className:"min-w-[50%] md:mr-2",children:m.jsxs("div",{className:"flex gap-1 text-sm",children:[m.jsx("p",{className:"text-gray-500",children:"Words:"}),m.jsx("p",{className:"font-medium",children:f.words||"N/A"})]})})})]}),m.jsxs("div",{className:"grid sm:grid-cols-2 justify-between gap-4 pb-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Title"}),m.jsx("p",{className:"font-medium text-lg",children:f.title})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Author"}),m.jsx("p",{className:"font-medium text-lg",children:f.author})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Time Read"}),m.jsx("p",{className:"font-medium text-lg",children:(v=h==null?void 0:h.progress)!=null&&v.percentage?`${Math.round(h.progress.percentage)}%`:"0%"})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Progress"}),m.jsx("p",{className:"font-medium text-lg",children:(p=h==null?void 0:h.progress)!=null&&p.percentage?`${Math.round(h.progress.percentage)}%`:"0%"})]})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"text-gray-500 inline-flex gap-2 relative",children:m.jsx("p",{children:"Description"})}),m.jsx("div",{className:"relative font-medium text-justify hyphens-auto",children:m.jsx("p",{children:"N/A"})})]}),m.jsxs("div",{className:"mt-4 grid sm:grid-cols-3 gap-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Words"}),m.jsx("p",{className:"font-medium",children:f.words||"N/A"})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Created"}),m.jsx("p",{className:"font-medium",children:new Date(f.created_at).toLocaleDateString()})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Updated"}),m.jsx("p",{className:"font-medium",children:new Date(f.updated_at).toLocaleDateString()})]})]})]})}):m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Document not found"})}function JE(){var r;const{data:l,isLoading:i}=L2({page:1,limit:15}),u=(r=l==null?void 0:l.data)==null?void 0:r.progress;return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Document"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Device Name"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Percentage"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Created At"})]})}),m.jsx("tbody",{children:u==null?void 0:u.map(o=>m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("td",{className:"p-3",children:m.jsxs(It,{to:`/documents/${o.document_id}`,className:"text-blue-600 dark:text-blue-400 hover:underline",children:[o.author||"Unknown"," - ",o.title||"Unknown"]})}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.device_name||"Unknown"}),m.jsxs("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:[o.percentage?Math.round(o.percentage):0,"%"]}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.created_at?new Date(o.created_at).toLocaleDateString():"N/A"})]},o.document_id))})]})})})}function FE(){var r;const{data:l,isLoading:i}=X2({offset:0,limit:100}),u=(r=l==null?void 0:l.data)==null?void 0:r.activities;return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Activity Type"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Document"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Timestamp"})]})}),m.jsx("tbody",{children:u==null?void 0:u.map(o=>m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.activity_type}),m.jsx("td",{className:"p-3",children:m.jsx("a",{href:`/documents/${o.document_id}`,className:"text-blue-600 dark:text-blue-400",children:o.document_id})}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:new Date(o.timestamp).toLocaleString()})]},o.id))})]})})})}const $E={LibGen:"LibGen"};function WE(){var v;const[l,i]=O.useState(""),[u,r]=O.useState($E.LibGen),{data:o,isLoading:f}=dE({query:l,source:u}),h=(v=o==null?void 0:o.data)==null?void 0:v.results,g=p=>{p.preventDefault()};return m.jsx("div",{className:"w-full flex flex-col md:flex-row gap-4",children:m.jsxs("div",{className:"flex flex-col gap-4 grow",children:[m.jsx("div",{className:"flex flex-col gap-2 grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:g,children:[m.jsx("div",{className:"flex flex-col w-full grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(qf,{size:15})}),m.jsx("input",{type:"text",value:l,onChange:p=>i(p.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Query"})]})}),m.jsxs("div",{className:"flex relative min-w-[12em]",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(SE,{size:15})}),m.jsxs("select",{value:u,onChange:p=>r(p.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",children:[m.jsx("option",{value:"LibGen",children:"Library Genesis"}),m.jsx("option",{value:"Annas Archive",children:"Annas Archive"})]})]}),m.jsx("div",{className:"lg:w-60",children:m.jsx(ii,{variant:"secondary",type:"submit",children:"Search"})})]})}),m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full leading-normal bg-white dark:bg-gray-700 text-sm md:text-sm",children:[m.jsx("thead",{className:"text-gray-800 dark:text-gray-400",children:m.jsxs("tr",{children:[m.jsx("th",{className:"w-12 p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Document"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Series"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Type"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Size"}),m.jsx("th",{className:"p-3 hidden md:block font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Date"})]})}),m.jsxs("tbody",{className:"text-black dark:text-white",children:[f&&m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:6,children:"Loading..."})}),!f&&!h&&m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:6,children:"No Results"})}),!f&&h&&h.map(p=>m.jsxs("tr",{children:[m.jsx("td",{className:"p-3 border-b border-gray-200 text-gray-500 dark:text-gray-500",children:m.jsx("button",{className:"hover:text-purple-600",title:"Download",children:m.jsx(pf,{size:15})})}),m.jsxs("td",{className:"p-3 border-b border-gray-200",children:[p.author||"N/A"," - ",p.title||"N/A"]}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:p.series||"N/A"})}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:p.file_type||"N/A"})}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:p.file_size||"N/A"})}),m.jsx("td",{className:"hidden md:table-cell p-3 border-b border-gray-200",children:m.jsx("p",{children:p.upload_date||"N/A"})})]},p.id))]})]})})]})})}function PE(){var b;const{data:l,isLoading:i}=F2(),u=l==null?void 0:l.data,[r,o]=O.useState(""),[f,h]=O.useState(""),[g,v]=O.useState((u==null?void 0:u.timezone)||""),p=w=>{w.preventDefault()},x=w=>{w.preventDefault()};return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"w-full flex flex-col md:flex-row gap-4",children:[m.jsx("div",{children:m.jsxs("div",{className:"flex flex-col p-4 items-center rounded shadow-lg md:w-60 lg:w-80 bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx(Z0,{size:60}),m.jsx("p",{className:"text-lg",children:(b=u==null?void 0:u.user)==null?void 0:b.username})]})}),m.jsxs("div",{className:"flex flex-col gap-4 grow",children:[m.jsxs("div",{className:"flex flex-col gap-2 grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold mb-2",children:"Change Password"}),m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:p,children:[m.jsx("div",{className:"flex flex-col grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(_p,{size:15})}),m.jsx("input",{type:"password",value:r,onChange:w=>o(w.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Password"})]})}),m.jsx("div",{className:"flex flex-col grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(_p,{size:15})}),m.jsx("input",{type:"password",value:f,onChange:w=>h(w.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"New Password"})]})}),m.jsx("div",{className:"lg:w-60",children:m.jsx(ii,{variant:"secondary",type:"submit",children:"Submit"})})]})]}),m.jsxs("div",{className:"flex flex-col grow gap-2 p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold mb-2",children:"Change Timezone"}),m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:x,children:[m.jsxs("div",{className:"flex relative grow",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(NE,{size:15})}),m.jsxs("select",{value:g,onChange:w=>v(w.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",children:[m.jsx("option",{value:"UTC",children:"UTC"}),m.jsx("option",{value:"America/New_York",children:"America/New_York"}),m.jsx("option",{value:"America/Chicago",children:"America/Chicago"}),m.jsx("option",{value:"America/Denver",children:"America/Denver"}),m.jsx("option",{value:"America/Los_Angeles",children:"America/Los_Angeles"}),m.jsx("option",{value:"Europe/London",children:"Europe/London"}),m.jsx("option",{value:"Europe/Paris",children:"Europe/Paris"}),m.jsx("option",{value:"Asia/Tokyo",children:"Asia/Tokyo"}),m.jsx("option",{value:"Asia/Shanghai",children:"Asia/Shanghai"}),m.jsx("option",{value:"Australia/Sydney",children:"Australia/Sydney"})]})]}),m.jsx("div",{className:"lg:w-60",children:m.jsx(ii,{variant:"secondary",type:"submit",children:"Submit"})})]})]}),m.jsxs("div",{className:"flex flex-col grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold",children:"Devices"}),m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700 text-sm",children:[m.jsx("thead",{className:"text-gray-800 dark:text-gray-400",children:m.jsxs("tr",{children:[m.jsx("th",{className:"p-3 pl-0 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Name"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Last Sync"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Created"})]})}),m.jsx("tbody",{className:"text-black dark:text-white",children:!(u!=null&&u.devices)||u.devices.length===0?m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:3,children:"No Results"})}):u.devices.map(w=>m.jsxs("tr",{children:[m.jsx("td",{className:"p-3 pl-0",children:m.jsx("p",{children:w.device_name||"Unknown"})}),m.jsx("td",{className:"p-3",children:m.jsx("p",{children:w.last_synced?new Date(w.last_synced).toLocaleString():"N/A"})}),m.jsx("td",{className:"p-3",children:m.jsx("p",{children:w.created_at?new Date(w.created_at).toLocaleString():"N/A"})})]},w.id))})]})]})]})]})}function IE(){const[l,i]=O.useState(""),[u,r]=O.useState(""),[o,f]=O.useState(""),[h,g]=O.useState(!1),{login:v,isAuthenticated:p,isCheckingAuth:x}=dr(),b=ir();O.useEffect(()=>{!x&&p&&b("/",{replace:!0})},[p,x,b]);const w=async L=>{L.preventDefault(),g(!0),f("");try{await v(l,u)}catch{f("Invalid credentials")}finally{g(!1)}};return m.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 dark:text-white min-h-screen",children:m.jsxs("div",{className:"flex flex-wrap w-full",children:[m.jsx("div",{className:"flex flex-col w-full md:w-1/2",children:m.jsxs("div",{className:"flex flex-col justify-center px-8 pt-8 my-auto md:justify-start md:pt-0 md:px-24 lg:px-32",children:[m.jsx("p",{className:"text-3xl text-center",children:"Welcome."}),m.jsxs("form",{className:"flex flex-col pt-3 md:pt-8",onSubmit:w,children:[m.jsx("div",{className:"flex flex-col pt-4",children:m.jsx("div",{className:"flex relative",children:m.jsx("input",{type:"text",value:l,onChange:L=>i(L.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Username",required:!0,disabled:h})})}),m.jsx("div",{className:"flex flex-col pt-4 mb-12",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("input",{type:"password",value:u,onChange:L=>r(L.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Password",required:!0,disabled:h}),m.jsx("span",{className:"absolute -bottom-5 text-red-400 text-xs",children:o})]})}),m.jsx(ii,{variant:"secondary",type:"submit",disabled:h,className:"w-full px-4 py-2 text-base font-semibold text-center transition duration-200 ease-in focus:outline-none focus:ring-2 disabled:opacity-50",children:h?"Logging in...":"Login"})]}),m.jsx("div",{className:"pt-12 pb-12 text-center",children:m.jsx("p",{className:"mt-4",children:m.jsx("a",{href:"/local",className:"font-semibold underline",children:"Offline / Local Mode"})})})]})}),m.jsx("div",{className:"hidden image-fader w-1/2 shadow-2xl h-screen relative md:block",children:m.jsx("div",{className:"w-full h-screen object-cover ease-in-out top-0 left-0 bg-gray-300 flex items-center justify-center",children:m.jsx("span",{className:"text-gray-500",children:"AnthoLume"})})})]})})}function eR(){return m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold dark:text-white",children:"Admin - General"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Admin general settings page"})]})}function tR(){return m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold dark:text-white",children:"Admin - Import"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Document import page"})]})}function aR(){return m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold dark:text-white",children:"Admin - Users"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"User management page"})]})}function nR(){return m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold dark:text-white",children:"Admin - Logs"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"System logs page"})]})}function ua({children:l}){const{isAuthenticated:i,isCheckingAuth:u}=dr(),r=ta();return u?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):i?l:m.jsx(n0,{to:"/login",state:{from:r},replace:!0})}function lR(){return m.jsxs(Cx,{children:[m.jsxs(At,{path:"/",element:m.jsx(QE,{}),children:[m.jsx(At,{index:!0,element:m.jsx(ua,{children:m.jsx(YE,{})})}),m.jsx(At,{path:"documents",element:m.jsx(ua,{children:m.jsx(VE,{})})}),m.jsx(At,{path:"documents/:id",element:m.jsx(ua,{children:m.jsx(ZE,{})})}),m.jsx(At,{path:"progress",element:m.jsx(ua,{children:m.jsx(JE,{})})}),m.jsx(At,{path:"activity",element:m.jsx(ua,{children:m.jsx(FE,{})})}),m.jsx(At,{path:"search",element:m.jsx(ua,{children:m.jsx(WE,{})})}),m.jsx(At,{path:"settings",element:m.jsx(ua,{children:m.jsx(PE,{})})}),m.jsx(At,{path:"admin",element:m.jsx(ua,{children:m.jsx(eR,{})})}),m.jsx(At,{path:"admin/import",element:m.jsx(ua,{children:m.jsx(tR,{})})}),m.jsx(At,{path:"admin/users",element:m.jsx(ua,{children:m.jsx(aR,{})})}),m.jsx(At,{path:"admin/logs",element:m.jsx(ua,{children:m.jsx(nR,{})})})]}),m.jsx(At,{path:"/login",element:m.jsx(IE,{})})]})}function iR(){return m.jsx(hE,{children:m.jsx(lR,{})})}const uR=new D1({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1},mutations:{retry:0}}});wb.createRoot(document.getElementById("root")).render(m.jsx(Sb.StrictMode,{children:m.jsx(M1,{client:uR,children:m.jsx(e1,{children:m.jsx(iR,{})})})}));
|