var Fm=u=>{throw TypeError(u)};var lf=(u,i,c)=>i.has(u)||Fm("Cannot "+c);var b=(u,i,c)=>(lf(u,i,"read from private field"),c?c.call(u):i.get(u)),P=(u,i,c)=>i.has(u)?Fm("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(u):i.set(u,c),J=(u,i,c,r)=>(lf(u,i,"write to private field"),r?r.call(u,c):i.set(u,c),c),rt=(u,i,c)=>(lf(u,i,"access private method"),c);var Os=(u,i,c,r)=>({set _(o){J(u,i,o,c)},get _(){return b(u,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 h of o)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function c(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(o){if(o.ep)return;o.ep=!0;const h=c(o);fetch(o.href,h)}})();var af={exports:{}},Zu={};/**
 * @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 $m;function Z0(){if($m)return Zu;$m=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,h){var v=null;if(h!==void 0&&(v=""+h),o.key!==void 0&&(v=""+o.key),"key"in o){h={};for(var S in o)S!=="key"&&(h[S]=o[S])}else h=o;return o=h.ref,{$$typeof:u,type:r,key:v,ref:o!==void 0?o:null,props:h}}return Zu.Fragment=i,Zu.jsx=c,Zu.jsxs=c,Zu}var Wm;function V0(){return Wm||(Wm=1,af.exports=Z0()),af.exports}var y=V0(),nf={exports:{}},ut={};/**
 * @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 Pm;function J0(){if(Pm)return ut;Pm=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),z=Symbol.iterator;function B(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,Y={};function K(E,q,V){this.props=E,this.context=q,this.refs=Y,this.updater=V||X}K.prototype.isReactComponent={},K.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,q,"setState")},K.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function k(){}k.prototype=K.prototype;function Q(E,q,V){this.props=E,this.context=q,this.refs=Y,this.updater=V||X}var H=Q.prototype=new k;H.constructor=Q,G(H,K.prototype),H.isPureReactComponent=!0;var lt=Array.isArray;function L(){}var tt={H:null,A:null,T:null,S:null},at=Object.prototype.hasOwnProperty;function ht(E,q,V){var $=V.ref;return{$$typeof:u,type:E,key:q,ref:$!==void 0?$:null,props:V}}function At(E,q){return ht(E.type,q,E.props)}function Jt(E){return typeof E=="object"&&E!==null&&E.$$typeof===u}function kt(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(V){return q[V]})}var Ie=/\/+/g;function he(E,q){return typeof E=="object"&&E!==null&&E.key!=null?kt(""+E.key):q.toString(36)}function ue(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(L,L):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,q,V,$,it){var ft=typeof E;(ft==="undefined"||ft==="boolean")&&(E=null);var xt=!1;if(E===null)xt=!0;else switch(ft){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(E.$$typeof){case u:case i:xt=!0;break;case A:return xt=E._init,D(xt(E._payload),q,V,$,it)}}if(xt)return it=it(E),xt=$===""?"."+he(E,0):$,lt(it)?(V="",xt!=null&&(V=xt.replace(Ie,"$&/")+"/"),D(it,q,V,"",function(Pn){return Pn})):it!=null&&(Jt(it)&&(it=At(it,V+(it.key==null||E&&E.key===it.key?"":(""+it.key).replace(Ie,"$&/")+"/")+xt)),q.push(it)),1;xt=0;var re=$===""?".":$+":";if(lt(E))for(var Lt=0;Lt<E.length;Lt++)$=E[Lt],ft=re+he($,Lt),xt+=D($,q,V,ft,it);else if(Lt=B(E),typeof Lt=="function")for(E=Lt.call(E),Lt=0;!($=E.next()).done;)$=$.value,ft=re+he($,Lt++),xt+=D($,q,V,ft,it);else if(ft==="object"){if(typeof E.then=="function")return D(ue(E),q,V,$,it);throw q=String(E),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return xt}function Z(E,q,V){if(E==null)return E;var $=[],it=0;return D(E,$,"","",function(ft){return q.call(V,ft,it++)}),$}function nt(E){if(E._status===-1){var q=E._result;q=q(),q.then(function(V){(E._status===0||E._status===-1)&&(E._status=1,E._result=V)},function(V){(E._status===0||E._status===-1)&&(E._status=2,E._result=V)}),E._status===-1&&(E._status=0,E._result=q)}if(E._status===1)return E._result.default;throw E._result}var Ct=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=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(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},zt={map:Z,forEach:function(E,q,V){Z(E,function(){q.apply(this,arguments)},V)},count:function(E){var q=0;return Z(E,function(){q++}),q},toArray:function(E){return Z(E,function(q){return q})||[]},only:function(E){if(!Jt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ut.Activity=T,ut.Children=zt,ut.Component=K,ut.Fragment=c,ut.Profiler=o,ut.PureComponent=Q,ut.StrictMode=r,ut.Suspense=p,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=tt,ut.__COMPILER_RUNTIME={__proto__:null,c:function(E){return tt.H.useMemoCache(E)}},ut.cache=function(E){return function(){return E.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(E,q,V){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var $=G({},E.props),it=E.key;if(q!=null)for(ft in q.key!==void 0&&(it=""+q.key),q)!at.call(q,ft)||ft==="key"||ft==="__self"||ft==="__source"||ft==="ref"&&q.ref===void 0||($[ft]=q[ft]);var ft=arguments.length-2;if(ft===1)$.children=V;else if(1<ft){for(var xt=Array(ft),re=0;re<ft;re++)xt[re]=arguments[re+2];$.children=xt}return ht(E.type,it,$)},ut.createContext=function(E){return E={$$typeof:v,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:h,_context:E},E},ut.createElement=function(E,q,V){var $,it={},ft=null;if(q!=null)for($ in q.key!==void 0&&(ft=""+q.key),q)at.call(q,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(it[$]=q[$]);var xt=arguments.length-2;if(xt===1)it.children=V;else if(1<xt){for(var re=Array(xt),Lt=0;Lt<xt;Lt++)re[Lt]=arguments[Lt+2];it.children=re}if(E&&E.defaultProps)for($ in xt=E.defaultProps,xt)it[$]===void 0&&(it[$]=xt[$]);return ht(E,ft,it)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(E){return{$$typeof:S,render:E}},ut.isValidElement=Jt,ut.lazy=function(E){return{$$typeof:A,_payload:{_status:-1,_result:E},_init:nt}},ut.memo=function(E,q){return{$$typeof:m,type:E,compare:q===void 0?null:q}},ut.startTransition=function(E){var q=tt.T,V={};tt.T=V;try{var $=E(),it=tt.S;it!==null&&it(V,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(L,Ct)}catch(ft){Ct(ft)}finally{q!==null&&V.types!==null&&(q.types=V.types),tt.T=q}},ut.unstable_useCacheRefresh=function(){return tt.H.useCacheRefresh()},ut.use=function(E){return tt.H.use(E)},ut.useActionState=function(E,q,V){return tt.H.useActionState(E,q,V)},ut.useCallback=function(E,q){return tt.H.useCallback(E,q)},ut.useContext=function(E){return tt.H.useContext(E)},ut.useDebugValue=function(){},ut.useDeferredValue=function(E,q){return tt.H.useDeferredValue(E,q)},ut.useEffect=function(E,q){return tt.H.useEffect(E,q)},ut.useEffectEvent=function(E){return tt.H.useEffectEvent(E)},ut.useId=function(){return tt.H.useId()},ut.useImperativeHandle=function(E,q,V){return tt.H.useImperativeHandle(E,q,V)},ut.useInsertionEffect=function(E,q){return tt.H.useInsertionEffect(E,q)},ut.useLayoutEffect=function(E,q){return tt.H.useLayoutEffect(E,q)},ut.useMemo=function(E,q){return tt.H.useMemo(E,q)},ut.useOptimistic=function(E,q){return tt.H.useOptimistic(E,q)},ut.useReducer=function(E,q,V){return tt.H.useReducer(E,q,V)},ut.useRef=function(E){return tt.H.useRef(E)},ut.useState=function(E){return tt.H.useState(E)},ut.useSyncExternalStore=function(E,q,V){return tt.H.useSyncExternalStore(E,q,V)},ut.useTransition=function(){return tt.H.useTransition()},ut.version="19.2.4",ut}var Im;function Uf(){return Im||(Im=1,nf.exports=J0()),nf.exports}var C=Uf(),uf={exports:{}},Vu={},sf={exports:{}},cf={};/**
 * @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 ty;function k0(){return ty||(ty=1,(function(u){function i(D,Z){var nt=D.length;D.push(Z);t:for(;0<nt;){var Ct=nt-1>>>1,zt=D[Ct];if(0<o(zt,Z))D[Ct]=Z,D[nt]=zt,nt=Ct;else break t}}function c(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var Z=D[0],nt=D.pop();if(nt!==Z){D[0]=nt;t:for(var Ct=0,zt=D.length,E=zt>>>1;Ct<E;){var q=2*(Ct+1)-1,V=D[q],$=q+1,it=D[$];if(0>o(V,nt))$<zt&&0>o(it,V)?(D[Ct]=it,D[$]=nt,Ct=$):(D[Ct]=V,D[q]=nt,Ct=q);else if($<zt&&0>o(it,nt))D[Ct]=it,D[$]=nt,Ct=$;else break t}}return Z}function o(D,Z){var nt=D.sortIndex-Z.sortIndex;return nt!==0?nt:D.id-Z.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var v=Date,S=v.now();u.unstable_now=function(){return v.now()-S}}var p=[],m=[],A=1,T=null,z=3,B=!1,X=!1,G=!1,Y=!1,K=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function H(D){for(var Z=c(m);Z!==null;){if(Z.callback===null)r(m);else if(Z.startTime<=D)r(m),Z.sortIndex=Z.expirationTime,i(p,Z);else break;Z=c(m)}}function lt(D){if(G=!1,H(D),!X)if(c(p)!==null)X=!0,L||(L=!0,kt());else{var Z=c(m);Z!==null&&ue(lt,Z.startTime-D)}}var L=!1,tt=-1,at=5,ht=-1;function At(){return Y?!0:!(u.unstable_now()-ht<at)}function Jt(){if(Y=!1,L){var D=u.unstable_now();ht=D;var Z=!0;try{t:{X=!1,G&&(G=!1,k(tt),tt=-1),B=!0;var nt=z;try{e:{for(H(D),T=c(p);T!==null&&!(T.expirationTime>D&&At());){var Ct=T.callback;if(typeof Ct=="function"){T.callback=null,z=T.priorityLevel;var zt=Ct(T.expirationTime<=D);if(D=u.unstable_now(),typeof zt=="function"){T.callback=zt,H(D),Z=!0;break e}T===c(p)&&r(p),H(D)}else r(p);T=c(p)}if(T!==null)Z=!0;else{var E=c(m);E!==null&&ue(lt,E.startTime-D),Z=!1}}break t}finally{T=null,z=nt,B=!1}Z=void 0}}finally{Z?kt():L=!1}}}var kt;if(typeof Q=="function")kt=function(){Q(Jt)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,he=Ie.port2;Ie.port1.onmessage=Jt,kt=function(){he.postMessage(null)}}else kt=function(){K(Jt,0)};function ue(D,Z){tt=K(function(){D(u.unstable_now())},Z)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(D){D.callback=null},u.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):at=0<D?Math.floor(1e3/D):5},u.unstable_getCurrentPriorityLevel=function(){return z},u.unstable_next=function(D){switch(z){case 1:case 2:case 3:var Z=3;break;default:Z=z}var nt=z;z=Z;try{return D()}finally{z=nt}},u.unstable_requestPaint=function(){Y=!0},u.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var nt=z;z=D;try{return Z()}finally{z=nt}},u.unstable_scheduleCallback=function(D,Z,nt){var Ct=u.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?Ct+nt:Ct):nt=Ct,D){case 1:var zt=-1;break;case 2:zt=250;break;case 5:zt=1073741823;break;case 4:zt=1e4;break;default:zt=5e3}return zt=nt+zt,D={id:A++,callback:Z,priorityLevel:D,startTime:nt,expirationTime:zt,sortIndex:-1},nt>Ct?(D.sortIndex=nt,i(m,D),c(p)===null&&D===c(m)&&(G?(k(tt),tt=-1):G=!0,ue(lt,nt-Ct))):(D.sortIndex=zt,i(p,D),X||B||(X=!0,L||(L=!0,kt()))),D},u.unstable_shouldYield=At,u.unstable_wrapCallback=function(D){var Z=z;return function(){var nt=z;z=Z;try{return D.apply(this,arguments)}finally{z=nt}}}})(cf)),cf}var ey;function F0(){return ey||(ey=1,sf.exports=k0()),sf.exports}var rf={exports:{}},ie={};/**
 * @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 ly;function $0(){if(ly)return ie;ly=1;var u=Uf();function i(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)m+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(p,m,A){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:T==null?null:""+T,children:p,containerInfo:m,implementation:A}}var v=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function S(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ie.createPortal=function(p,m){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return h(p,m,null,A)},ie.flushSync=function(p){var m=v.T,A=r.p;try{if(v.T=null,r.p=2,p)return p()}finally{v.T=m,r.p=A,r.d.f()}},ie.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},ie.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ie.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var A=m.as,T=S(A,m.crossOrigin),z=typeof m.integrity=="string"?m.integrity:void 0,B=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;A==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:T,integrity:z,fetchPriority:B}):A==="script"&&r.d.X(p,{crossOrigin:T,integrity:z,fetchPriority:B,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ie.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var A=S(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:A,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},ie.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var A=m.as,T=S(A,m.crossOrigin);r.d.L(p,A,{crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ie.preloadModule=function(p,m){if(typeof p=="string")if(m){var A=S(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:A,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},ie.requestFormReset=function(p){r.d.r(p)},ie.unstable_batchedUpdates=function(p,m){return p(m)},ie.useFormState=function(p,m,A){return v.H.useFormState(p,m,A)},ie.useFormStatus=function(){return v.H.useHostTransitionStatus()},ie.version="19.2.4",ie}var ay;function W0(){if(ay)return rf.exports;ay=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),rf.exports=$0(),rf.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 ny;function P0(){if(ny)return Vu;ny=1;var u=F0(),i=Uf(),c=W0();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function v(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(h(t)!==t)throw Error(r(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var s=n.alternate;if(s===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===l)return p(n),t;if(s===a)return p(n),e;s=s.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=s;else{for(var f=!1,d=n.child;d;){if(d===l){f=!0,l=n,a=s;break}if(d===a){f=!0,a=n,l=s;break}d=d.sibling}if(!f){for(d=s.child;d;){if(d===l){f=!0,l=s,a=n;break}if(d===a){f=!0,a=s,l=n;break}d=d.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function A(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=A(t),e!==null)return e;t=t.sibling}return null}var T=Object.assign,z=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),ht=Symbol.for("react.activity"),At=Symbol.for("react.memo_cache_sentinel"),Jt=Symbol.iterator;function kt(t){return t===null||typeof t!="object"?null:(t=Jt&&t[Jt]||t["@@iterator"],typeof t=="function"?t:null)}var Ie=Symbol.for("react.client.reference");function he(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ie?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case K:return"Profiler";case Y:return"StrictMode";case lt:return"Suspense";case L:return"SuspenseList";case ht:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case X:return"Portal";case Q:return t.displayName||"Context";case k:return(t._context.displayName||"Context")+".Consumer";case H:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case tt:return e=t.displayName||null,e!==null?e:he(t.type)||"Memo";case at:e=t._payload,t=t._init;try{return he(t(e))}catch{}}return null}var ue=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},Ct=[],zt=-1;function E(t){return{current:t}}function q(t){0>zt||(t.current=Ct[zt],Ct[zt]=null,zt--)}function V(t,e){zt++,Ct[zt]=t.current,t.current=e}var $=E(null),it=E(null),ft=E(null),xt=E(null);function re(t,e){switch(V(ft,e),V(it,t),V($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?gm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=gm(e),t=bm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q($),V($,t)}function Lt(){q($),q(it),q(ft)}function Pn(t){t.memoizedState!==null&&V(xt,t);var e=$.current,l=bm(e,t.type);e!==l&&(V(it,t),V($,l))}function ii(t){it.current===t&&(q($),q(it)),xt.current===t&&(q(xt),Yu._currentValue=nt)}var Bs,Jf;function ga(t){if(Bs===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Bs=e&&e[1]||"",Jf=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Bs+t+Jf}var Qs=!1;function Ls(t,e){if(!t||Qs)return"";Qs=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(N){var j=N}Reflect.construct(t,[],w)}else{try{w.call()}catch(N){j=N}t.call(w.prototype)}}else{try{throw Error()}catch(N){j=N}(w=t())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(N){if(N&&j&&typeof N.stack=="string")return[N.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),f=s[0],d=s[1];if(f&&d){var g=f.split(`
`),_=d.split(`
`);for(n=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===g.length||n===_.length)for(a=g.length-1,n=_.length-1;1<=a&&0<=n&&g[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(g[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||g[a]!==_[n]){var M=`
`+g[a].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=a&&0<=n);break}}}finally{Qs=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ga(l):""}function Ev(t,e){switch(t.tag){case 26:case 27:case 5:return ga(t.type);case 16:return ga("Lazy");case 13:return t.child!==e&&e!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return Ls(t.type,!1);case 11:return Ls(t.type.render,!1);case 1:return Ls(t.type,!0);case 31:return ga("Activity");default:return""}}function kf(t){try{var e="",l=null;do e+=Ev(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ys=Object.prototype.hasOwnProperty,Gs=u.unstable_scheduleCallback,Xs=u.unstable_cancelCallback,Tv=u.unstable_shouldYield,Ov=u.unstable_requestPaint,Te=u.unstable_now,Av=u.unstable_getCurrentPriorityLevel,Ff=u.unstable_ImmediatePriority,$f=u.unstable_UserBlockingPriority,si=u.unstable_NormalPriority,Cv=u.unstable_LowPriority,Wf=u.unstable_IdlePriority,Rv=u.log,_v=u.unstable_setDisableYieldValue,In=null,Oe=null;function wl(t){if(typeof Rv=="function"&&_v(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(In,t)}catch{}}var Ae=Math.clz32?Math.clz32:Nv,jv=Math.log,zv=Math.LN2;function Nv(t){return t>>>=0,t===0?32:31-(jv(t)/zv|0)|0}var ci=256,ri=262144,fi=4194304;function ba(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function oi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,s=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var d=a&134217727;return d!==0?(a=d&~s,a!==0?n=ba(a):(f&=d,f!==0?n=ba(f):l||(l=d&~t,l!==0&&(n=ba(l))))):(d=a&~s,d!==0?n=ba(d):f!==0?n=ba(f):l||(l=a&~t,l!==0&&(n=ba(l)))),n===0?0:e!==0&&e!==n&&(e&s)===0&&(s=n&-n,l=e&-e,s>=l||s===32&&(l&4194048)!==0)?e:n}function tu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Mv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pf(){var t=fi;return fi<<=1,(fi&62914560)===0&&(fi=4194304),t}function Ks(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function eu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dv(t,e,l,a,n,s){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var d=t.entanglements,g=t.expirationTimes,_=t.hiddenUpdates;for(l=f&~l;0<l;){var M=31-Ae(l),w=1<<M;d[M]=0,g[M]=-1;var j=_[M];if(j!==null)for(_[M]=null,M=0;M<j.length;M++){var N=j[M];N!==null&&(N.lane&=-536870913)}l&=~w}a!==0&&If(t,a,0),s!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=s&~(f&~e))}function If(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Ae(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function to(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Ae(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function eo(t,e){var l=e&-e;return l=(l&42)!==0?1:Zs(l),(l&(t.suspendedLanes|e))!==0?0:l}function Zs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Vs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function lo(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:Gm(t.type))}function ao(t,e){var l=Z.p;try{return Z.p=t,e()}finally{Z.p=l}}var Hl=Math.random().toString(36).slice(2),te="__reactFiber$"+Hl,me="__reactProps$"+Hl,Pa="__reactContainer$"+Hl,Js="__reactEvents$"+Hl,Uv="__reactListeners$"+Hl,wv="__reactHandles$"+Hl,no="__reactResources$"+Hl,lu="__reactMarker$"+Hl;function ks(t){delete t[te],delete t[me],delete t[Js],delete t[Uv],delete t[wv]}function Ia(t){var e=t[te];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Pa]||l[te]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Cm(t);t!==null;){if(l=t[te])return l;t=Cm(t)}return e}t=l,l=t.parentNode}return null}function tn(t){if(t=t[te]||t[Pa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function au(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function en(t){var e=t[no];return e||(e=t[no]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[lu]=!0}var uo=new Set,io={};function Sa(t,e){ln(t,e),ln(t+"Capture",e)}function ln(t,e){for(io[t]=e,t=0;t<e.length;t++)uo.add(e[t])}var Hv=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]*$"),so={},co={};function qv(t){return Ys.call(co,t)?!0:Ys.call(so,t)?!1:Hv.test(t)?co[t]=!0:(so[t]=!0,!1)}function di(t,e,l){if(qv(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function hi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function rl(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ro(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Bv(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,s=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fs(t){if(!t._valueTracker){var e=ro(t)?"checked":"value";t._valueTracker=Bv(t,e,""+t[e])}}function fo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=ro(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function mi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Qv=/[\n"\\]/g;function we(t){return t.replace(Qv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $s(t,e,l,a,n,s,f,d){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Ws(t,f,Ue(e)):l!=null?Ws(t,f,Ue(l)):a!=null&&t.removeAttribute("value"),n==null&&s!=null&&(t.defaultChecked=!!s),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.name=""+Ue(d):t.removeAttribute("name")}function oo(t,e,l,a,n,s,f,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){Fs(t);return}l=l!=null?""+Ue(l):"",e=e!=null?""+Ue(e):l,d||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=d?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Fs(t)}function Ws(t,e,l){e==="number"&&mi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function an(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ue(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function ho(t,e,l){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ue(l):""}function mo(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(ue(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Ue(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Fs(t)}function nn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Lv=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 yo(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Lv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function vo(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&yo(t,n,a)}else for(var s in e)e.hasOwnProperty(s)&&yo(t,s,e[s])}function Ps(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yv=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"]]),Gv=/^[\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 yi(t){return Gv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function fl(){}var Is=null;function tc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var un=null,sn=null;function po(t){var e=tn(t);if(e&&(t=e.stateNode)){var l=t[me]||null;t:switch(t=e.stateNode,e.type){case"input":if($s(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+we(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[me]||null;if(!n)throw Error(r(90));$s(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&fo(a)}break t;case"textarea":ho(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&an(t,!!l.multiple,e,!1)}}}var ec=!1;function go(t,e,l){if(ec)return t(e,l);ec=!0;try{var a=t(e);return a}finally{if(ec=!1,(un!==null||sn!==null)&&(ls(),un&&(e=un,t=sn,sn=un=null,po(e),t)))for(e=0;e<t.length;e++)po(t[e])}}function nu(t,e){var l=t.stateNode;if(l===null)return null;var a=l[me]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var ol=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=!1;if(ol)try{var uu={};Object.defineProperty(uu,"passive",{get:function(){lc=!0}}),window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch{lc=!1}var ql=null,ac=null,vi=null;function bo(){if(vi)return vi;var t,e=ac,l=e.length,a,n="value"in ql?ql.value:ql.textContent,s=n.length;for(t=0;t<l&&e[t]===n[t];t++);var f=l-t;for(a=1;a<=f&&e[l-a]===n[s-a];a++);return vi=n.slice(t,1<a?1-a:void 0)}function pi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function gi(){return!0}function So(){return!1}function ye(t){function e(l,a,n,s,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var d in t)t.hasOwnProperty(d)&&(l=t[d],this[d]=l?l(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?gi:So,this.isPropagationStopped=So,this}return T(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=gi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=gi)},persist:function(){},isPersistent:gi}),e}var xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bi=ye(xa),iu=T({},xa,{view:0,detail:0}),Xv=ye(iu),nc,uc,su,Si=T({},iu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==su&&(su&&t.type==="mousemove"?(nc=t.screenX-su.screenX,uc=t.screenY-su.screenY):uc=nc=0,su=t),nc)},movementY:function(t){return"movementY"in t?t.movementY:uc}}),xo=ye(Si),Kv=T({},Si,{dataTransfer:0}),Zv=ye(Kv),Vv=T({},iu,{relatedTarget:0}),ic=ye(Vv),Jv=T({},xa,{animationName:0,elapsedTime:0,pseudoElement:0}),kv=ye(Jv),Fv=T({},xa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$v=ye(Fv),Wv=T({},xa,{data:0}),Eo=ye(Wv),Pv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iv={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"},tp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ep(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=tp[t])?!!e[t]:!1}function sc(){return ep}var lp=T({},iu,{key:function(t){if(t.key){var e=Pv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=pi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Iv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sc,charCode:function(t){return t.type==="keypress"?pi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?pi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ap=ye(lp),np=T({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),To=ye(np),up=T({},iu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sc}),ip=ye(up),sp=T({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),cp=ye(sp),rp=T({},Si,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),fp=ye(rp),op=T({},xa,{newState:0,oldState:0}),dp=ye(op),hp=[9,13,27,32],cc=ol&&"CompositionEvent"in window,cu=null;ol&&"documentMode"in document&&(cu=document.documentMode);var mp=ol&&"TextEvent"in window&&!cu,Oo=ol&&(!cc||cu&&8<cu&&11>=cu),Ao=" ",Co=!1;function Ro(t,e){switch(t){case"keyup":return hp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _o(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var cn=!1;function yp(t,e){switch(t){case"compositionend":return _o(e);case"keypress":return e.which!==32?null:(Co=!0,Ao);case"textInput":return t=e.data,t===Ao&&Co?null:t;default:return null}}function vp(t,e){if(cn)return t==="compositionend"||!cc&&Ro(t,e)?(t=bo(),vi=ac=ql=null,cn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Oo&&e.locale!=="ko"?null:e.data;default:return null}}var pp={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 jo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!pp[t.type]:e==="textarea"}function zo(t,e,l,a){un?sn?sn.push(a):sn=[a]:un=a,e=rs(e,"onChange"),0<e.length&&(l=new bi("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var ru=null,fu=null;function gp(t){dm(t,0)}function xi(t){var e=au(t);if(fo(e))return t}function No(t,e){if(t==="change")return e}var Mo=!1;if(ol){var rc;if(ol){var fc="oninput"in document;if(!fc){var Do=document.createElement("div");Do.setAttribute("oninput","return;"),fc=typeof Do.oninput=="function"}rc=fc}else rc=!1;Mo=rc&&(!document.documentMode||9<document.documentMode)}function Uo(){ru&&(ru.detachEvent("onpropertychange",wo),fu=ru=null)}function wo(t){if(t.propertyName==="value"&&xi(fu)){var e=[];zo(e,fu,t,tc(t)),go(gp,e)}}function bp(t,e,l){t==="focusin"?(Uo(),ru=e,fu=l,ru.attachEvent("onpropertychange",wo)):t==="focusout"&&Uo()}function Sp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return xi(fu)}function xp(t,e){if(t==="click")return xi(e)}function Ep(t,e){if(t==="input"||t==="change")return xi(e)}function Tp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ce=typeof Object.is=="function"?Object.is:Tp;function ou(t,e){if(Ce(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ys.call(e,n)||!Ce(t[n],e[n]))return!1}return!0}function Ho(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function qo(t,e){var l=Ho(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Ho(l)}}function Bo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Bo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Qo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=mi(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=mi(t.document)}return e}function oc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Op=ol&&"documentMode"in document&&11>=document.documentMode,rn=null,dc=null,du=null,hc=!1;function Lo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;hc||rn==null||rn!==mi(a)||(a=rn,"selectionStart"in a&&oc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),du&&ou(du,a)||(du=a,a=rs(dc,"onSelect"),0<a.length&&(e=new bi("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=rn)))}function Ea(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var fn={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionrun:Ea("Transition","TransitionRun"),transitionstart:Ea("Transition","TransitionStart"),transitioncancel:Ea("Transition","TransitionCancel"),transitionend:Ea("Transition","TransitionEnd")},mc={},Yo={};ol&&(Yo=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function Ta(t){if(mc[t])return mc[t];if(!fn[t])return t;var e=fn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Yo)return mc[t]=e[l];return t}var Go=Ta("animationend"),Xo=Ta("animationiteration"),Ko=Ta("animationstart"),Ap=Ta("transitionrun"),Cp=Ta("transitionstart"),Rp=Ta("transitioncancel"),Zo=Ta("transitionend"),Vo=new Map,yc="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(" ");yc.push("scrollEnd");function Je(t,e){Vo.set(t,e),Sa(e,[t])}var Ei=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},He=[],on=0,vc=0;function Ti(){for(var t=on,e=vc=on=0;e<t;){var l=He[e];He[e++]=null;var a=He[e];He[e++]=null;var n=He[e];He[e++]=null;var s=He[e];if(He[e++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}s!==0&&Jo(l,n,s)}}function Oi(t,e,l,a){He[on++]=t,He[on++]=e,He[on++]=l,He[on++]=a,vc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function pc(t,e,l,a){return Oi(t,e,l,a),Ai(t)}function Oa(t,e){return Oi(t,null,null,e),Ai(t)}function Jo(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=t.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(n=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,n&&e!==null&&(n=31-Ae(l),t=s.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),s):null}function Ai(t){if(50<Uu)throw Uu=0,Cr=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var dn={};function _p(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Re(t,e,l,a){return new _p(t,e,l,a)}function gc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function dl(t,e){var l=t.alternate;return l===null?(l=Re(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function ko(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ci(t,e,l,a,n,s){var f=0;if(a=t,typeof t=="function")gc(t)&&(f=1);else if(typeof t=="string")f=D0(t,l,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ht:return t=Re(31,l,e,n),t.elementType=ht,t.lanes=s,t;case G:return Aa(l.children,n,s,e);case Y:f=8,n|=24;break;case K:return t=Re(12,l,e,n|2),t.elementType=K,t.lanes=s,t;case lt:return t=Re(13,l,e,n),t.elementType=lt,t.lanes=s,t;case L:return t=Re(19,l,e,n),t.elementType=L,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Q:f=10;break t;case k:f=9;break t;case H:f=11;break t;case tt:f=14;break t;case at:f=16,a=null;break t}f=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=Re(f,l,e,n),e.elementType=t,e.type=a,e.lanes=s,e}function Aa(t,e,l,a){return t=Re(7,t,a,e),t.lanes=l,t}function bc(t,e,l){return t=Re(6,t,null,e),t.lanes=l,t}function Fo(t){var e=Re(18,null,null,0);return e.stateNode=t,e}function Sc(t,e,l){return e=Re(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var $o=new WeakMap;function qe(t,e){if(typeof t=="object"&&t!==null){var l=$o.get(t);return l!==void 0?l:(e={value:t,source:e,stack:kf(e)},$o.set(t,e),e)}return{value:t,source:e,stack:kf(e)}}var hn=[],mn=0,Ri=null,hu=0,Be=[],Qe=0,Bl=null,tl=1,el="";function hl(t,e){hn[mn++]=hu,hn[mn++]=Ri,Ri=t,hu=e}function Wo(t,e,l){Be[Qe++]=tl,Be[Qe++]=el,Be[Qe++]=Bl,Bl=t;var a=tl;t=el;var n=32-Ae(a)-1;a&=~(1<<n),l+=1;var s=32-Ae(e)+n;if(30<s){var f=n-n%5;s=(a&(1<<f)-1).toString(32),a>>=f,n-=f,tl=1<<32-Ae(e)+n|l<<n|a,el=s+t}else tl=1<<s|l<<n|a,el=t}function xc(t){t.return!==null&&(hl(t,1),Wo(t,1,0))}function Ec(t){for(;t===Ri;)Ri=hn[--mn],hn[mn]=null,hu=hn[--mn],hn[mn]=null;for(;t===Bl;)Bl=Be[--Qe],Be[Qe]=null,el=Be[--Qe],Be[Qe]=null,tl=Be[--Qe],Be[Qe]=null}function Po(t,e){Be[Qe++]=tl,Be[Qe++]=el,Be[Qe++]=Bl,tl=e.id,el=e.overflow,Bl=t}var ee=null,Mt=null,vt=!1,Ql=null,Le=!1,Tc=Error(r(519));function Ll(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mu(qe(e,t)),Tc}function Io(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[te]=t,e[me]=a,l){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(l=0;l<Hu.length;l++)dt(Hu[l],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),oo(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),mo(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||vm(e.textContent,l)?(a.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),a.onScroll!=null&&dt("scroll",e),a.onScrollEnd!=null&&dt("scrollend",e),a.onClick!=null&&(e.onclick=fl),e=!0):e=!1,e||Ll(t,!0)}function td(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:Le=!1;return;case 27:case 3:Le=!0;return;default:ee=ee.return}}function yn(t){if(t!==ee)return!1;if(!vt)return td(t),vt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Yr(t.type,t.memoizedProps)),l=!l),l&&Mt&&Ll(t),td(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Mt=Am(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Mt=Am(t)}else e===27?(e=Mt,ta(t.type)?(t=Vr,Vr=null,Mt=t):Mt=e):Mt=ee?Ge(t.stateNode.nextSibling):null;return!0}function Ca(){Mt=ee=null,vt=!1}function Oc(){var t=Ql;return t!==null&&(be===null?be=t:be.push.apply(be,t),Ql=null),t}function mu(t){Ql===null?Ql=[t]:Ql.push(t)}var Ac=E(null),Ra=null,ml=null;function Yl(t,e,l){V(Ac,e._currentValue),e._currentValue=l}function yl(t){t._currentValue=Ac.current,q(Ac)}function Cc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Rc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var s=n.dependencies;if(s!==null){var f=n.child;s=s.firstContext;t:for(;s!==null;){var d=s;s=n;for(var g=0;g<e.length;g++)if(d.context===e[g]){s.lanes|=l,d=s.alternate,d!==null&&(d.lanes|=l),Cc(s.return,l,t),a||(f=null);break t}s=d.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(r(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),Cc(f,l,t),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===t){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function vn(t,e,l,a){t=null;for(var n=e,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var d=n.type;Ce(n.pendingProps.value,f.value)||(t!==null?t.push(d):t=[d])}}else if(n===xt.current){if(f=n.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Yu):t=[Yu])}n=n.return}t!==null&&Rc(e,t,l,a),e.flags|=262144}function _i(t){for(t=t.firstContext;t!==null;){if(!Ce(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function _a(t){Ra=t,ml=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return ed(Ra,t)}function ji(t,e){return Ra===null&&_a(t),ed(t,e)}function ed(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ml===null){if(t===null)throw Error(r(308));ml=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ml=ml.next=e;return l}var jp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},zp=u.unstable_scheduleCallback,Np=u.unstable_NormalPriority,Xt={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _c(){return{controller:new jp,data:new Map,refCount:0}}function yu(t){t.refCount--,t.refCount===0&&zp(Np,function(){t.controller.abort()})}var vu=null,jc=0,pn=0,gn=null;function Mp(t,e){if(vu===null){var l=vu=[];jc=0,pn=Mr(),gn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return jc++,e.then(ld,ld),e}function ld(){if(--jc===0&&vu!==null){gn!==null&&(gn.status="fulfilled");var t=vu;vu=null,pn=0,gn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Dp(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ad=D.S;D.S=function(t,e){Lh=Te(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Mp(t,e),ad!==null&&ad(t,e)};var ja=E(null);function zc(){var t=ja.current;return t!==null?t:Nt.pooledCache}function zi(t,e){e===null?V(ja,ja.current):V(ja,e.pool)}function nd(){var t=zc();return t===null?null:{parent:Xt._currentValue,pool:t}}var bn=Error(r(460)),Nc=Error(r(474)),Ni=Error(r(542)),Mi={then:function(){}};function ud(t){return t=t.status,t==="fulfilled"||t==="rejected"}function id(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(fl,fl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cd(t),t;default:if(typeof e.status=="string")e.then(fl,fl);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cd(t),t}throw Na=e,bn}}function za(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Na=l,bn):l}}var Na=null;function sd(){if(Na===null)throw Error(r(459));var t=Na;return Na=null,t}function cd(t){if(t===bn||t===Ni)throw Error(r(483))}var Sn=null,pu=0;function Di(t){var e=pu;return pu+=1,Sn===null&&(Sn=[]),id(Sn,t,e)}function gu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ui(t,e){throw e.$$typeof===z?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function rd(t){function e(O,x){if(t){var R=O.deletions;R===null?(O.deletions=[x],O.flags|=16):R.push(x)}}function l(O,x){if(!t)return null;for(;x!==null;)e(O,x),x=x.sibling;return null}function a(O){for(var x=new Map;O!==null;)O.key!==null?x.set(O.key,O):x.set(O.index,O),O=O.sibling;return x}function n(O,x){return O=dl(O,x),O.index=0,O.sibling=null,O}function s(O,x,R){return O.index=R,t?(R=O.alternate,R!==null?(R=R.index,R<x?(O.flags|=67108866,x):R):(O.flags|=67108866,x)):(O.flags|=1048576,x)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function d(O,x,R,U){return x===null||x.tag!==6?(x=bc(R,O.mode,U),x.return=O,x):(x=n(x,R),x.return=O,x)}function g(O,x,R,U){var I=R.type;return I===G?M(O,x,R.props.children,U,R.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===at&&za(I)===x.type)?(x=n(x,R.props),gu(x,R),x.return=O,x):(x=Ci(R.type,R.key,R.props,null,O.mode,U),gu(x,R),x.return=O,x)}function _(O,x,R,U){return x===null||x.tag!==4||x.stateNode.containerInfo!==R.containerInfo||x.stateNode.implementation!==R.implementation?(x=Sc(R,O.mode,U),x.return=O,x):(x=n(x,R.children||[]),x.return=O,x)}function M(O,x,R,U,I){return x===null||x.tag!==7?(x=Aa(R,O.mode,U,I),x.return=O,x):(x=n(x,R),x.return=O,x)}function w(O,x,R){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=bc(""+x,O.mode,R),x.return=O,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case B:return R=Ci(x.type,x.key,x.props,null,O.mode,R),gu(R,x),R.return=O,R;case X:return x=Sc(x,O.mode,R),x.return=O,x;case at:return x=za(x),w(O,x,R)}if(ue(x)||kt(x))return x=Aa(x,O.mode,R,null),x.return=O,x;if(typeof x.then=="function")return w(O,Di(x),R);if(x.$$typeof===Q)return w(O,ji(O,x),R);Ui(O,x)}return null}function j(O,x,R,U){var I=x!==null?x.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return I!==null?null:d(O,x,""+R,U);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case B:return R.key===I?g(O,x,R,U):null;case X:return R.key===I?_(O,x,R,U):null;case at:return R=za(R),j(O,x,R,U)}if(ue(R)||kt(R))return I!==null?null:M(O,x,R,U,null);if(typeof R.then=="function")return j(O,x,Di(R),U);if(R.$$typeof===Q)return j(O,x,ji(O,R),U);Ui(O,R)}return null}function N(O,x,R,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return O=O.get(R)||null,d(x,O,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case B:return O=O.get(U.key===null?R:U.key)||null,g(x,O,U,I);case X:return O=O.get(U.key===null?R:U.key)||null,_(x,O,U,I);case at:return U=za(U),N(O,x,R,U,I)}if(ue(U)||kt(U))return O=O.get(R)||null,M(x,O,U,I,null);if(typeof U.then=="function")return N(O,x,R,Di(U),I);if(U.$$typeof===Q)return N(O,x,R,ji(x,U),I);Ui(x,U)}return null}function F(O,x,R,U){for(var I=null,gt=null,W=x,ct=x=0,yt=null;W!==null&&ct<R.length;ct++){W.index>ct?(yt=W,W=null):yt=W.sibling;var bt=j(O,W,R[ct],U);if(bt===null){W===null&&(W=yt);break}t&&W&&bt.alternate===null&&e(O,W),x=s(bt,x,ct),gt===null?I=bt:gt.sibling=bt,gt=bt,W=yt}if(ct===R.length)return l(O,W),vt&&hl(O,ct),I;if(W===null){for(;ct<R.length;ct++)W=w(O,R[ct],U),W!==null&&(x=s(W,x,ct),gt===null?I=W:gt.sibling=W,gt=W);return vt&&hl(O,ct),I}for(W=a(W);ct<R.length;ct++)yt=N(W,O,ct,R[ct],U),yt!==null&&(t&&yt.alternate!==null&&W.delete(yt.key===null?ct:yt.key),x=s(yt,x,ct),gt===null?I=yt:gt.sibling=yt,gt=yt);return t&&W.forEach(function(ua){return e(O,ua)}),vt&&hl(O,ct),I}function et(O,x,R,U){if(R==null)throw Error(r(151));for(var I=null,gt=null,W=x,ct=x=0,yt=null,bt=R.next();W!==null&&!bt.done;ct++,bt=R.next()){W.index>ct?(yt=W,W=null):yt=W.sibling;var ua=j(O,W,bt.value,U);if(ua===null){W===null&&(W=yt);break}t&&W&&ua.alternate===null&&e(O,W),x=s(ua,x,ct),gt===null?I=ua:gt.sibling=ua,gt=ua,W=yt}if(bt.done)return l(O,W),vt&&hl(O,ct),I;if(W===null){for(;!bt.done;ct++,bt=R.next())bt=w(O,bt.value,U),bt!==null&&(x=s(bt,x,ct),gt===null?I=bt:gt.sibling=bt,gt=bt);return vt&&hl(O,ct),I}for(W=a(W);!bt.done;ct++,bt=R.next())bt=N(W,O,ct,bt.value,U),bt!==null&&(t&&bt.alternate!==null&&W.delete(bt.key===null?ct:bt.key),x=s(bt,x,ct),gt===null?I=bt:gt.sibling=bt,gt=bt);return t&&W.forEach(function(K0){return e(O,K0)}),vt&&hl(O,ct),I}function jt(O,x,R,U){if(typeof R=="object"&&R!==null&&R.type===G&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case B:t:{for(var I=R.key;x!==null;){if(x.key===I){if(I=R.type,I===G){if(x.tag===7){l(O,x.sibling),U=n(x,R.props.children),U.return=O,O=U;break t}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===at&&za(I)===x.type){l(O,x.sibling),U=n(x,R.props),gu(U,R),U.return=O,O=U;break t}l(O,x);break}else e(O,x);x=x.sibling}R.type===G?(U=Aa(R.props.children,O.mode,U,R.key),U.return=O,O=U):(U=Ci(R.type,R.key,R.props,null,O.mode,U),gu(U,R),U.return=O,O=U)}return f(O);case X:t:{for(I=R.key;x!==null;){if(x.key===I)if(x.tag===4&&x.stateNode.containerInfo===R.containerInfo&&x.stateNode.implementation===R.implementation){l(O,x.sibling),U=n(x,R.children||[]),U.return=O,O=U;break t}else{l(O,x);break}else e(O,x);x=x.sibling}U=Sc(R,O.mode,U),U.return=O,O=U}return f(O);case at:return R=za(R),jt(O,x,R,U)}if(ue(R))return F(O,x,R,U);if(kt(R)){if(I=kt(R),typeof I!="function")throw Error(r(150));return R=I.call(R),et(O,x,R,U)}if(typeof R.then=="function")return jt(O,x,Di(R),U);if(R.$$typeof===Q)return jt(O,x,ji(O,R),U);Ui(O,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,x!==null&&x.tag===6?(l(O,x.sibling),U=n(x,R),U.return=O,O=U):(l(O,x),U=bc(R,O.mode,U),U.return=O,O=U),f(O)):l(O,x)}return function(O,x,R,U){try{pu=0;var I=jt(O,x,R,U);return Sn=null,I}catch(W){if(W===bn||W===Ni)throw W;var gt=Re(29,W,null,O.mode);return gt.lanes=U,gt.return=O,gt}finally{}}}var Ma=rd(!0),fd=rd(!1),Gl=!1;function Mc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Xl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Kl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(St&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Ai(t),Jo(t,null,l),e}return Oi(t,a,e,l),Ai(t)}function bu(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,to(t,l)}}function Uc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?n=s=e:s=s.next=e}else n=s=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var wc=!1;function Su(){if(wc){var t=gn;if(t!==null)throw t}}function xu(t,e,l,a){wc=!1;var n=t.updateQueue;Gl=!1;var s=n.firstBaseUpdate,f=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var g=d,_=g.next;g.next=null,f===null?s=_:f.next=_,f=g;var M=t.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==f&&(d===null?M.firstBaseUpdate=_:d.next=_,M.lastBaseUpdate=g))}if(s!==null){var w=n.baseState;f=0,M=_=g=null,d=s;do{var j=d.lane&-536870913,N=j!==d.lane;if(N?(mt&j)===j:(a&j)===j){j!==0&&j===pn&&(wc=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});t:{var F=t,et=d;j=e;var jt=l;switch(et.tag){case 1:if(F=et.payload,typeof F=="function"){w=F.call(jt,w,j);break t}w=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=et.payload,j=typeof F=="function"?F.call(jt,w,j):F,j==null)break t;w=T({},w,j);break t;case 2:Gl=!0}}j=d.callback,j!==null&&(t.flags|=64,N&&(t.flags|=8192),N=n.callbacks,N===null?n.callbacks=[j]:N.push(j))}else N={lane:j,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(_=M=N,g=w):M=M.next=N,f|=j;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;N=d,d=N.next,N.next=null,n.lastBaseUpdate=N,n.shared.pending=null}}while(!0);M===null&&(g=w),n.baseState=g,n.firstBaseUpdate=_,n.lastBaseUpdate=M,s===null&&(n.shared.lanes=0),Fl|=f,t.lanes=f,t.memoizedState=w}}function od(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function dd(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)od(l[t],e)}var xn=E(null),wi=E(0);function hd(t,e){t=Ol,V(wi,t),V(xn,e),Ol=t|e.baseLanes}function Hc(){V(wi,Ol),V(xn,xn.current)}function qc(){Ol=wi.current,q(xn),q(wi)}var _e=E(null),Ye=null;function Zl(t){var e=t.alternate;V(Yt,Yt.current&1),V(_e,t),Ye===null&&(e===null||xn.current!==null||e.memoizedState!==null)&&(Ye=t)}function Bc(t){V(Yt,Yt.current),V(_e,t),Ye===null&&(Ye=t)}function md(t){t.tag===22?(V(Yt,Yt.current),V(_e,t),Ye===null&&(Ye=t)):Vl()}function Vl(){V(Yt,Yt.current),V(_e,_e.current)}function je(t){q(_e),Ye===t&&(Ye=null),q(Yt)}var Yt=E(0);function Hi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kr(l)||Zr(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var vl=0,st=null,Rt=null,Kt=null,qi=!1,En=!1,Da=!1,Bi=0,Eu=0,Tn=null,Up=0;function qt(){throw Error(r(321))}function Qc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Ce(t[l],e[l]))return!1;return!0}function Lc(t,e,l,a,n,s){return vl=s,st=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Wd:er,Da=!1,s=l(a,n),Da=!1,En&&(s=vd(e,l,a,n)),yd(t),s}function yd(t){D.H=Au;var e=Rt!==null&&Rt.next!==null;if(vl=0,Kt=Rt=st=null,qi=!1,Eu=0,Tn=null,e)throw Error(r(300));t===null||Zt||(t=t.dependencies,t!==null&&_i(t)&&(Zt=!0))}function vd(t,e,l,a){st=t;var n=0;do{if(En&&(Tn=null),Eu=0,En=!1,25<=n)throw Error(r(301));if(n+=1,Kt=Rt=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}D.H=Pd,s=e(l,a)}while(En);return s}function wp(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?Tu(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(st.flags|=1024),e}function Yc(){var t=Bi!==0;return Bi=0,t}function Gc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Xc(t){if(qi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}qi=!1}vl=0,Kt=Rt=st=null,En=!1,Eu=Bi=0,Tn=null}function fe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?st.memoizedState=Kt=t:Kt=Kt.next=t,Kt}function Gt(){if(Rt===null){var t=st.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Kt===null?st.memoizedState:Kt.next;if(e!==null)Kt=e,Rt=t;else{if(t===null)throw st.alternate===null?Error(r(467)):Error(r(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Kt===null?st.memoizedState=Kt=t:Kt=Kt.next=t}return Kt}function Qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tu(t){var e=Eu;return Eu+=1,Tn===null&&(Tn=[]),t=id(Tn,t,e),e=st,(Kt===null?e.memoizedState:Kt.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Wd:er),t}function Li(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Tu(t);if(t.$$typeof===Q)return le(t)}throw Error(r(438,String(t)))}function Kc(t){var e=null,l=st.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=st.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Qi(),st.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=At;return e.index++,l}function pl(t,e){return typeof e=="function"?e(t):e}function Yi(t){var e=Gt();return Zc(e,Rt,t)}function Zc(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,s=a.pending;if(s!==null){if(n!==null){var f=n.next;n.next=s.next,s.next=f}e.baseQueue=n=s,a.pending=null}if(s=t.baseState,n===null)t.memoizedState=s;else{e=n.next;var d=f=null,g=null,_=e,M=!1;do{var w=_.lane&-536870913;if(w!==_.lane?(mt&w)===w:(vl&w)===w){var j=_.revertLane;if(j===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),w===pn&&(M=!0);else if((vl&j)===j){_=_.next,j===pn&&(M=!0);continue}else w={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},g===null?(d=g=w,f=s):g=g.next=w,st.lanes|=j,Fl|=j;w=_.action,Da&&l(s,w),s=_.hasEagerState?_.eagerState:l(s,w)}else j={lane:w,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},g===null?(d=g=j,f=s):g=g.next=j,st.lanes|=w,Fl|=w;_=_.next}while(_!==null&&_!==e);if(g===null?f=s:g.next=d,!Ce(s,t.memoizedState)&&(Zt=!0,M&&(l=gn,l!==null)))throw l;t.memoizedState=s,t.baseState=f,t.baseQueue=g,a.lastRenderedState=s}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Vc(t){var e=Gt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,s=e.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do s=t(s,f.action),f=f.next;while(f!==n);Ce(s,e.memoizedState)||(Zt=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),l.lastRenderedState=s}return[s,a]}function pd(t,e,l){var a=st,n=Gt(),s=vt;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=e();var f=!Ce((Rt||n).memoizedState,l);if(f&&(n.memoizedState=l,Zt=!0),n=n.queue,Fc(Sd.bind(null,a,n,t),[t]),n.getSnapshot!==e||f||Kt!==null&&Kt.memoizedState.tag&1){if(a.flags|=2048,On(9,{destroy:void 0},bd.bind(null,a,n,l,e),null),Nt===null)throw Error(r(349));s||(vl&127)!==0||gd(a,e,l)}return l}function gd(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=st.updateQueue,e===null?(e=Qi(),st.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function bd(t,e,l,a){e.value=l,e.getSnapshot=a,xd(e)&&Ed(t)}function Sd(t,e,l){return l(function(){xd(e)&&Ed(t)})}function xd(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Ce(t,l)}catch{return!0}}function Ed(t){var e=Oa(t,2);e!==null&&Se(e,t,2)}function Jc(t){var e=fe();if(typeof t=="function"){var l=t;if(t=l(),Da){wl(!0);try{l()}finally{wl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:t},e}function Td(t,e,l,a){return t.baseState=l,Zc(t,Rt,typeof a=="function"?a:pl)}function Hp(t,e,l,a,n){if(Ki(t))throw Error(r(485));if(t=e.action,t!==null){var s={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};D.T!==null?l(!0):s.isTransition=!1,a(s),l=e.pending,l===null?(s.next=e.pending=s,Od(e,s)):(s.next=l.next,e.pending=l.next=s)}}function Od(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var s=D.T,f={};D.T=f;try{var d=l(n,a),g=D.S;g!==null&&g(f,d),Ad(t,e,d)}catch(_){kc(t,e,_)}finally{s!==null&&f.types!==null&&(s.types=f.types),D.T=s}}else try{s=l(n,a),Ad(t,e,s)}catch(_){kc(t,e,_)}}function Ad(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Cd(t,e,a)},function(a){return kc(t,e,a)}):Cd(t,e,l)}function Cd(t,e,l){e.status="fulfilled",e.value=l,Rd(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Od(t,l)))}function kc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Rd(e),e=e.next;while(e!==a)}t.action=null}function Rd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function _d(t,e){return e}function jd(t,e){if(vt){var l=Nt.formState;if(l!==null){t:{var a=st;if(vt){if(Mt){e:{for(var n=Mt,s=Le;n.nodeType!==8;){if(!s){n=null;break e}if(n=Ge(n.nextSibling),n===null){n=null;break e}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){Mt=Ge(n.nextSibling),a=n.data==="F!";break t}}Ll(a)}a=!1}a&&(e=l[0])}}return l=fe(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:e},l.queue=a,l=kd.bind(null,st,a),a.dispatch=l,a=Jc(!1),s=tr.bind(null,st,!1,a.queue),a=fe(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Hp.bind(null,st,n,s,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function zd(t){var e=Gt();return Nd(e,Rt,t)}function Nd(t,e,l){if(e=Zc(t,e,_d)[0],t=Yi(pl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Tu(e)}catch(f){throw f===bn?Ni:f}else a=e;e=Gt();var n=e.queue,s=n.dispatch;return l!==e.memoizedState&&(st.flags|=2048,On(9,{destroy:void 0},qp.bind(null,n,l),null)),[a,s,t]}function qp(t,e){t.action=e}function Md(t){var e=Gt(),l=Rt;if(l!==null)return Nd(e,l,t);Gt(),e=e.memoizedState,l=Gt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function On(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=st.updateQueue,e===null&&(e=Qi(),st.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Dd(){return Gt().memoizedState}function Gi(t,e,l,a){var n=fe();st.flags|=t,n.memoizedState=On(1|e,{destroy:void 0},l,a===void 0?null:a)}function Xi(t,e,l,a){var n=Gt();a=a===void 0?null:a;var s=n.memoizedState.inst;Rt!==null&&a!==null&&Qc(a,Rt.memoizedState.deps)?n.memoizedState=On(e,s,l,a):(st.flags|=t,n.memoizedState=On(1|e,s,l,a))}function Ud(t,e){Gi(8390656,8,t,e)}function Fc(t,e){Xi(2048,8,t,e)}function Bp(t){st.flags|=4;var e=st.updateQueue;if(e===null)e=Qi(),st.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function wd(t){var e=Gt().memoizedState;return Bp({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Hd(t,e){return Xi(4,2,t,e)}function qd(t,e){return Xi(4,4,t,e)}function Bd(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Qd(t,e,l){l=l!=null?l.concat([t]):null,Xi(4,4,Bd.bind(null,e,t),l)}function $c(){}function Ld(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Qc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Yd(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Qc(e,a[1]))return a[0];if(a=t(),Da){wl(!0);try{t()}finally{wl(!1)}}return l.memoizedState=[a,e],a}function Wc(t,e,l){return l===void 0||(vl&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Gh(),st.lanes|=t,Fl|=t,l)}function Gd(t,e,l,a){return Ce(l,e)?l:xn.current!==null?(t=Wc(t,l,a),Ce(t,e)||(Zt=!0),t):(vl&42)===0||(vl&1073741824)!==0&&(mt&261930)===0?(Zt=!0,t.memoizedState=l):(t=Gh(),st.lanes|=t,Fl|=t,e)}function Xd(t,e,l,a,n){var s=Z.p;Z.p=s!==0&&8>s?s:8;var f=D.T,d={};D.T=d,tr(t,!1,e,l);try{var g=n(),_=D.S;if(_!==null&&_(d,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var M=Dp(g,a);Ou(t,e,M,Me(t))}else Ou(t,e,a,Me(t))}catch(w){Ou(t,e,{then:function(){},status:"rejected",reason:w},Me())}finally{Z.p=s,f!==null&&d.types!==null&&(f.types=d.types),D.T=f}}function Qp(){}function Pc(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=Kd(t).queue;Xd(t,n,e,nt,l===null?Qp:function(){return Zd(t),l(a)})}function Kd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:nt},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Zd(t){var e=Kd(t);e.next===null&&(e=t.alternate.memoizedState),Ou(t,e.next.queue,{},Me())}function Ic(){return le(Yu)}function Vd(){return Gt().memoizedState}function Jd(){return Gt().memoizedState}function Lp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Me();t=Xl(l);var a=Kl(e,t,l);a!==null&&(Se(a,e,l),bu(a,e,l)),e={cache:_c()},t.payload=e;return}e=e.return}}function Yp(t,e,l){var a=Me();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(t)?Fd(e,l):(l=pc(t,e,l,a),l!==null&&(Se(l,t,a),$d(l,e,a)))}function kd(t,e,l){var a=Me();Ou(t,e,l,a)}function Ou(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ki(t))Fd(e,n);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var f=e.lastRenderedState,d=s(f,l);if(n.hasEagerState=!0,n.eagerState=d,Ce(d,f))return Oi(t,e,n,0),Nt===null&&Ti(),!1}catch{}finally{}if(l=pc(t,e,n,a),l!==null)return Se(l,t,a),$d(l,e,a),!0}return!1}function tr(t,e,l,a){if(a={lane:2,revertLane:Mr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(t)){if(e)throw Error(r(479))}else e=pc(t,l,a,2),e!==null&&Se(e,t,2)}function Ki(t){var e=t.alternate;return t===st||e!==null&&e===st}function Fd(t,e){En=qi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function $d(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,to(t,l)}}var Au={readContext:le,use:Li,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Au.useEffectEvent=qt;var Wd={readContext:le,use:Li,useCallback:function(t,e){return fe().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Ud,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Gi(4194308,4,Bd.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Gi(4194308,4,t,e)},useInsertionEffect:function(t,e){Gi(4,2,t,e)},useMemo:function(t,e){var l=fe();e=e===void 0?null:e;var a=t();if(Da){wl(!0);try{t()}finally{wl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=fe();if(l!==void 0){var n=l(e);if(Da){wl(!0);try{l(e)}finally{wl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Yp.bind(null,st,t),[a.memoizedState,t]},useRef:function(t){var e=fe();return t={current:t},e.memoizedState=t},useState:function(t){t=Jc(t);var e=t.queue,l=kd.bind(null,st,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:$c,useDeferredValue:function(t,e){var l=fe();return Wc(l,t,e)},useTransition:function(){var t=Jc(!1);return t=Xd.bind(null,st,t.queue,!0,!1),fe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=st,n=fe();if(vt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Nt===null)throw Error(r(349));(mt&127)!==0||gd(a,e,l)}n.memoizedState=l;var s={value:l,getSnapshot:e};return n.queue=s,Ud(Sd.bind(null,a,s,t),[t]),a.flags|=2048,On(9,{destroy:void 0},bd.bind(null,a,s,l,e),null),l},useId:function(){var t=fe(),e=Nt.identifierPrefix;if(vt){var l=el,a=tl;l=(a&~(1<<32-Ae(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Bi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Up++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ic,useFormState:jd,useActionState:jd,useOptimistic:function(t){var e=fe();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=tr.bind(null,st,!0,l),l.dispatch=e,[t,e]},useMemoCache:Kc,useCacheRefresh:function(){return fe().memoizedState=Lp.bind(null,st)},useEffectEvent:function(t){var e=fe(),l={impl:t};return e.memoizedState=l,function(){if((St&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},er={readContext:le,use:Li,useCallback:Ld,useContext:le,useEffect:Fc,useImperativeHandle:Qd,useInsertionEffect:Hd,useLayoutEffect:qd,useMemo:Yd,useReducer:Yi,useRef:Dd,useState:function(){return Yi(pl)},useDebugValue:$c,useDeferredValue:function(t,e){var l=Gt();return Gd(l,Rt.memoizedState,t,e)},useTransition:function(){var t=Yi(pl)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Tu(t),e]},useSyncExternalStore:pd,useId:Vd,useHostTransitionStatus:Ic,useFormState:zd,useActionState:zd,useOptimistic:function(t,e){var l=Gt();return Td(l,Rt,t,e)},useMemoCache:Kc,useCacheRefresh:Jd};er.useEffectEvent=wd;var Pd={readContext:le,use:Li,useCallback:Ld,useContext:le,useEffect:Fc,useImperativeHandle:Qd,useInsertionEffect:Hd,useLayoutEffect:qd,useMemo:Yd,useReducer:Vc,useRef:Dd,useState:function(){return Vc(pl)},useDebugValue:$c,useDeferredValue:function(t,e){var l=Gt();return Rt===null?Wc(l,t,e):Gd(l,Rt.memoizedState,t,e)},useTransition:function(){var t=Vc(pl)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Tu(t),e]},useSyncExternalStore:pd,useId:Vd,useHostTransitionStatus:Ic,useFormState:Md,useActionState:Md,useOptimistic:function(t,e){var l=Gt();return Rt!==null?Td(l,Rt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Kc,useCacheRefresh:Jd};Pd.useEffectEvent=wd;function lr(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:T({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var ar={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=Me(),n=Xl(a);n.payload=e,l!=null&&(n.callback=l),e=Kl(t,n,a),e!==null&&(Se(e,t,a),bu(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=Me(),n=Xl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Kl(t,n,a),e!==null&&(Se(e,t,a),bu(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Me(),a=Xl(l);a.tag=2,e!=null&&(a.callback=e),e=Kl(t,a,l),e!==null&&(Se(e,t,l),bu(e,t,l))}};function Id(t,e,l,a,n,s,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,s,f):e.prototype&&e.prototype.isPureReactComponent?!ou(l,a)||!ou(n,s):!0}function th(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&ar.enqueueReplaceState(e,e.state,null)}function Ua(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=T({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function eh(t){Ei(t)}function lh(t){console.error(t)}function ah(t){Ei(t)}function Zi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function nh(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function nr(t,e,l){return l=Xl(l),l.tag=3,l.payload={element:null},l.callback=function(){Zi(t,e)},l}function uh(t){return t=Xl(t),t.tag=3,t}function ih(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;t.payload=function(){return n(s)},t.callback=function(){nh(e,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){nh(e,l,a),typeof n!="function"&&($l===null?$l=new Set([this]):$l.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Gp(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&vn(e,l,n,!0),l=_e.current,l!==null){switch(l.tag){case 31:case 13:return Ye===null?as():l.alternate===null&&Bt===0&&(Bt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Mi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),jr(t,a,n)),!1;case 22:return l.flags|=65536,a===Mi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),jr(t,a,n)),!1}throw Error(r(435,l.tag))}return jr(t,a,n),as(),!1}if(vt)return e=_e.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==Tc&&(t=Error(r(422),{cause:a}),mu(qe(t,l)))):(a!==Tc&&(e=Error(r(423),{cause:a}),mu(qe(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=qe(a,l),n=nr(t.stateNode,a,n),Uc(t,n),Bt!==4&&(Bt=2)),!1;var s=Error(r(520),{cause:a});if(s=qe(s,l),Du===null?Du=[s]:Du.push(s),Bt!==4&&(Bt=2),e===null)return!0;a=qe(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=nr(l.stateNode,a,t),Uc(l,t),!1;case 1:if(e=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&($l===null||!$l.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=uh(n),ih(n,t,l,a),Uc(l,n),!1}l=l.return}while(l!==null);return!1}var ur=Error(r(461)),Zt=!1;function ae(t,e,l,a){e.child=t===null?fd(e,null,l,a):Ma(e,t.child,l,a)}function sh(t,e,l,a,n){l=l.render;var s=e.ref;if("ref"in a){var f={};for(var d in a)d!=="ref"&&(f[d]=a[d])}else f=a;return _a(e),a=Lc(t,e,l,f,s,n),d=Yc(),t!==null&&!Zt?(Gc(t,e,n),gl(t,e,n)):(vt&&d&&xc(e),e.flags|=1,ae(t,e,a,n),e.child)}function ch(t,e,l,a,n){if(t===null){var s=l.type;return typeof s=="function"&&!gc(s)&&s.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=s,rh(t,e,s,a,n)):(t=Ci(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!hr(t,n)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:ou,l(f,a)&&t.ref===e.ref)return gl(t,e,n)}return e.flags|=1,t=dl(s,a),t.ref=e.ref,t.return=e,e.child=t}function rh(t,e,l,a,n){if(t!==null){var s=t.memoizedProps;if(ou(s,a)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=a=s,hr(t,n))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,gl(t,e,n)}return ir(t,e,l,a,n)}function fh(t,e,l,a){var n=a.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~s}else a=0,e.child=null;return oh(t,e,s,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&zi(e,s!==null?s.cachePool:null),s!==null?hd(e,s):Hc(),md(e);else return a=e.lanes=536870912,oh(t,e,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(zi(e,s.cachePool),hd(e,s),Vl(),e.memoizedState=null):(t!==null&&zi(e,null),Hc(),Vl());return ae(t,e,n,l),e.child}function Cu(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function oh(t,e,l,a,n){var s=zc();return s=s===null?null:{parent:Xt._currentValue,pool:s},e.memoizedState={baseLanes:l,cachePool:s},t!==null&&zi(e,null),Hc(),md(e),t!==null&&vn(t,e,a,!0),e.childLanes=n,null}function Vi(t,e){return e=ki({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function dh(t,e,l){return Ma(e,t.child,null,l),t=Vi(e,e.pendingProps),t.flags|=2,je(e),e.memoizedState=null,t}function Xp(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(a.mode==="hidden")return t=Vi(e,a),e.lanes=536870912,Cu(null,t);if(Bc(e),(t=Mt)?(t=Om(t,Le),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Bl!==null?{id:tl,overflow:el}:null,retryLane:536870912,hydrationErrors:null},l=Fo(t),l.return=e,e.child=l,ee=e,Mt=null)):t=null,t===null)throw Ll(e);return e.lanes=536870912,null}return Vi(e,a)}var s=t.memoizedState;if(s!==null){var f=s.dehydrated;if(Bc(e),n)if(e.flags&256)e.flags&=-257,e=dh(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Zt||vn(t,e,l,!1),n=(l&t.childLanes)!==0,Zt||n){if(a=Nt,a!==null&&(f=eo(a,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,Oa(t,f),Se(a,t,f),ur;as(),e=dh(t,e,l)}else t=s.treeContext,Mt=Ge(f.nextSibling),ee=e,vt=!0,Ql=null,Le=!1,t!==null&&Po(e,t),e=Vi(e,a),e.flags|=4096;return e}return t=dl(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ji(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function ir(t,e,l,a,n){return _a(e),l=Lc(t,e,l,a,void 0,n),a=Yc(),t!==null&&!Zt?(Gc(t,e,n),gl(t,e,n)):(vt&&a&&xc(e),e.flags|=1,ae(t,e,l,n),e.child)}function hh(t,e,l,a,n,s){return _a(e),e.updateQueue=null,l=vd(e,a,l,n),yd(t),a=Yc(),t!==null&&!Zt?(Gc(t,e,s),gl(t,e,s)):(vt&&a&&xc(e),e.flags|=1,ae(t,e,l,s),e.child)}function mh(t,e,l,a,n){if(_a(e),e.stateNode===null){var s=dn,f=l.contextType;typeof f=="object"&&f!==null&&(s=le(f)),s=new l(a,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ar,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=a,s.state=e.memoizedState,s.refs={},Mc(e),f=l.contextType,s.context=typeof f=="object"&&f!==null?le(f):dn,s.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(lr(e,l,f,a),s.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&ar.enqueueReplaceState(s,s.state,null),xu(e,a,s,n),Su(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){s=e.stateNode;var d=e.memoizedProps,g=Ua(l,d);s.props=g;var _=s.context,M=l.contextType;f=dn,typeof M=="object"&&M!==null&&(f=le(M));var w=l.getDerivedStateFromProps;M=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=e.pendingProps!==d,M||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||_!==f)&&th(e,s,a,f),Gl=!1;var j=e.memoizedState;s.state=j,xu(e,a,s,n),Su(),_=e.memoizedState,d||j!==_||Gl?(typeof w=="function"&&(lr(e,l,w,a),_=e.memoizedState),(g=Gl||Id(e,l,g,a,j,_,f))?(M||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=_),s.props=a,s.state=_,s.context=f,a=g):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{s=e.stateNode,Dc(t,e),f=e.memoizedProps,M=Ua(l,f),s.props=M,w=e.pendingProps,j=s.context,_=l.contextType,g=dn,typeof _=="object"&&_!==null&&(g=le(_)),d=l.getDerivedStateFromProps,(_=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==w||j!==g)&&th(e,s,a,g),Gl=!1,j=e.memoizedState,s.state=j,xu(e,a,s,n),Su();var N=e.memoizedState;f!==w||j!==N||Gl||t!==null&&t.dependencies!==null&&_i(t.dependencies)?(typeof d=="function"&&(lr(e,l,d,a),N=e.memoizedState),(M=Gl||Id(e,l,M,a,j,N,g)||t!==null&&t.dependencies!==null&&_i(t.dependencies))?(_||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,N,g),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,N,g)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=N),s.props=a,s.state=N,s.context=g,a=M):(typeof s.componentDidUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),a=!1)}return s=a,Ji(t,e),a=(e.flags&128)!==0,s||a?(s=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&a?(e.child=Ma(e,t.child,null,n),e.child=Ma(e,null,l,n)):ae(t,e,l,n),e.memoizedState=s.state,t=e.child):t=gl(t,e,n),t}function yh(t,e,l,a){return Ca(),e.flags|=256,ae(t,e,l,a),e.child}var sr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cr(t){return{baseLanes:t,cachePool:nd()}}function rr(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ne),t}function vh(t,e,l){var a=e.pendingProps,n=!1,s=(e.flags&128)!==0,f;if((f=s)||(f=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),f&&(n=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(n?Zl(e):Vl(),(t=Mt)?(t=Om(t,Le),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Bl!==null?{id:tl,overflow:el}:null,retryLane:536870912,hydrationErrors:null},l=Fo(t),l.return=e,e.child=l,ee=e,Mt=null)):t=null,t===null)throw Ll(e);return Zr(t)?e.lanes=32:e.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(Vl(),n=e.mode,d=ki({mode:"hidden",children:d},n),a=Aa(a,n,l,null),d.return=e,a.return=e,d.sibling=a,e.child=d,a=e.child,a.memoizedState=cr(l),a.childLanes=rr(t,f,l),e.memoizedState=sr,Cu(null,a)):(Zl(e),fr(e,d))}var g=t.memoizedState;if(g!==null&&(d=g.dehydrated,d!==null)){if(s)e.flags&256?(Zl(e),e.flags&=-257,e=or(t,e,l)):e.memoizedState!==null?(Vl(),e.child=t.child,e.flags|=128,e=null):(Vl(),d=a.fallback,n=e.mode,a=ki({mode:"visible",children:a.children},n),d=Aa(d,n,l,null),d.flags|=2,a.return=e,d.return=e,a.sibling=d,e.child=a,Ma(e,t.child,null,l),a=e.child,a.memoizedState=cr(l),a.childLanes=rr(t,f,l),e.memoizedState=sr,e=Cu(null,a));else if(Zl(e),Zr(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var _=f.dgst;f=_,a=Error(r(419)),a.stack="",a.digest=f,mu({value:a,source:null,stack:null}),e=or(t,e,l)}else if(Zt||vn(t,e,l,!1),f=(l&t.childLanes)!==0,Zt||f){if(f=Nt,f!==null&&(a=eo(f,l),a!==0&&a!==g.retryLane))throw g.retryLane=a,Oa(t,a),Se(f,t,a),ur;Kr(d)||as(),e=or(t,e,l)}else Kr(d)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Mt=Ge(d.nextSibling),ee=e,vt=!0,Ql=null,Le=!1,t!==null&&Po(e,t),e=fr(e,a.children),e.flags|=4096);return e}return n?(Vl(),d=a.fallback,n=e.mode,g=t.child,_=g.sibling,a=dl(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,_!==null?d=dl(_,d):(d=Aa(d,n,l,null),d.flags|=2),d.return=e,a.return=e,a.sibling=d,e.child=a,Cu(null,a),a=e.child,d=t.child.memoizedState,d===null?d=cr(l):(n=d.cachePool,n!==null?(g=Xt._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=nd(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=rr(t,f,l),e.memoizedState=sr,Cu(t.child,a)):(Zl(e),l=t.child,t=l.sibling,l=dl(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function fr(t,e){return e=ki({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ki(t,e){return t=Re(22,t,null,e),t.lanes=0,t}function or(t,e,l){return Ma(e,t.child,null,l),t=fr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ph(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Cc(t.return,e,l)}function dr(t,e,l,a,n,s){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=s)}function gh(t,e,l){var a=e.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var f=Yt.current,d=(f&2)!==0;if(d?(f=f&1|2,e.flags|=128):f&=1,V(Yt,f),ae(t,e,a,l),a=vt?hu:0,!d&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ph(t,l,e);else if(t.tag===19)ph(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&Hi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),dr(e,!1,n,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Hi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}dr(e,!0,l,null,s,a);break;case"together":dr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function gl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Fl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(vn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=dl(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=dl(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function hr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&_i(t)))}function Kp(t,e,l){switch(e.tag){case 3:re(e,e.stateNode.containerInfo),Yl(e,Xt,t.memoizedState.cache),Ca();break;case 27:case 5:Pn(e);break;case 4:re(e,e.stateNode.containerInfo);break;case 10:Yl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Bc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Zl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?vh(t,e,l):(Zl(e),t=gl(t,e,l),t!==null?t.sibling:null);Zl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(vn(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return gh(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),V(Yt,Yt.current),a)break;return null;case 22:return e.lanes=0,fh(t,e,l,e.pendingProps);case 24:Yl(e,Xt,t.memoizedState.cache)}return gl(t,e,l)}function bh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!hr(t,l)&&(e.flags&128)===0)return Zt=!1,Kp(t,e,l);Zt=(t.flags&131072)!==0}else Zt=!1,vt&&(e.flags&1048576)!==0&&Wo(e,hu,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=za(e.elementType),e.type=t,typeof t=="function")gc(t)?(a=Ua(t,a),e.tag=1,e=mh(null,e,t,a,l)):(e.tag=0,e=ir(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===H){e.tag=11,e=sh(null,e,t,a,l);break t}else if(n===tt){e.tag=14,e=ch(null,e,t,a,l);break t}}throw e=he(t)||t,Error(r(306,e,""))}}return e;case 0:return ir(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Ua(a,e.pendingProps),mh(t,e,a,n,l);case 3:t:{if(re(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var s=e.memoizedState;n=s.element,Dc(t,e),xu(e,a,null,l);var f=e.memoizedState;if(a=f.cache,Yl(e,Xt,a),a!==s.cache&&Rc(e,[Xt],l,!0),Su(),a=f.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=yh(t,e,a,l);break t}else if(a!==n){n=qe(Error(r(424)),e),mu(n),e=yh(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Mt=Ge(t.firstChild),ee=e,vt=!0,Ql=null,Le=!0,l=fd(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ca(),a===n){e=gl(t,e,l);break t}ae(t,e,a,l)}e=e.child}return e;case 26:return Ji(t,e),t===null?(l=zm(e.type,null,e.pendingProps,null))?e.memoizedState=l:vt||(l=e.type,t=e.pendingProps,a=fs(ft.current).createElement(l),a[te]=e,a[me]=t,ne(a,l,t),Wt(a),e.stateNode=a):e.memoizedState=zm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pn(e),t===null&&vt&&(a=e.stateNode=Rm(e.type,e.pendingProps,ft.current),ee=e,Le=!0,n=Mt,ta(e.type)?(Vr=n,Mt=Ge(a.firstChild)):Mt=n),ae(t,e,e.pendingProps.children,l),Ji(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((n=a=Mt)&&(a=S0(a,e.type,e.pendingProps,Le),a!==null?(e.stateNode=a,ee=e,Mt=Ge(a.firstChild),Le=!1,n=!0):n=!1),n||Ll(e)),Pn(e),n=e.type,s=e.pendingProps,f=t!==null?t.memoizedProps:null,a=s.children,Yr(n,s)?a=null:f!==null&&Yr(n,f)&&(e.flags|=32),e.memoizedState!==null&&(n=Lc(t,e,wp,null,null,l),Yu._currentValue=n),Ji(t,e),ae(t,e,a,l),e.child;case 6:return t===null&&vt&&((t=l=Mt)&&(l=x0(l,e.pendingProps,Le),l!==null?(e.stateNode=l,ee=e,Mt=null,t=!0):t=!1),t||Ll(e)),null;case 13:return vh(t,e,l);case 4:return re(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Ma(e,null,a,l):ae(t,e,a,l),e.child;case 11:return sh(t,e,e.type,e.pendingProps,l);case 7:return ae(t,e,e.pendingProps,l),e.child;case 8:return ae(t,e,e.pendingProps.children,l),e.child;case 12:return ae(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Yl(e,e.type,a.value),ae(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,_a(e),n=le(n),a=a(n),e.flags|=1,ae(t,e,a,l),e.child;case 14:return ch(t,e,e.type,e.pendingProps,l);case 15:return rh(t,e,e.type,e.pendingProps,l);case 19:return gh(t,e,l);case 31:return Xp(t,e,l);case 22:return fh(t,e,l,e.pendingProps);case 24:return _a(e),a=le(Xt),t===null?(n=zc(),n===null&&(n=Nt,s=_c(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),e.memoizedState={parent:a,cache:n},Mc(e),Yl(e,Xt,n)):((t.lanes&l)!==0&&(Dc(t,e),xu(e,null,null,l),Su()),n=t.memoizedState,s=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Yl(e,Xt,a)):(a=s.cache,Yl(e,Xt,a),a!==n.cache&&Rc(e,[Xt],l,!0))),ae(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function bl(t){t.flags|=4}function mr(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Vh())t.flags|=8192;else throw Na=Mi,Nc}else t.flags&=-16777217}function Sh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!wm(e))if(Vh())t.flags|=8192;else throw Na=Mi,Nc}function Fi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Pf():536870912,t.lanes|=e,_n|=e)}function Ru(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Dt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Zp(t,e,l){var a=e.pendingProps;switch(Ec(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(e),null;case 1:return Dt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),yl(Xt),Lt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(yn(e)?bl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Oc())),Dt(e),null;case 26:var n=e.type,s=e.memoizedState;return t===null?(bl(e),s!==null?(Dt(e),Sh(e,s)):(Dt(e),mr(e,n,null,a,l))):s?s!==t.memoizedState?(bl(e),Dt(e),Sh(e,s)):(Dt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&bl(e),Dt(e),mr(e,n,t,a,l)),null;case 27:if(ii(e),l=ft.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&bl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Dt(e),null}t=$.current,yn(e)?Io(e):(t=Rm(n,a,l),e.stateNode=t,bl(e))}return Dt(e),null;case 5:if(ii(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&bl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Dt(e),null}if(s=$.current,yn(e))Io(e);else{var f=fs(ft.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}s[te]=e,s[me]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=s;t:switch(ne(s,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&bl(e)}}return Dt(e),mr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&bl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=ft.current,yn(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=ee,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[te]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||vm(t.nodeValue,l)),t||Ll(e,!0)}else t=fs(t).createTextNode(a),t[te]=e,e.stateNode=t}return Dt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=yn(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[te]=e}else Ca(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),t=!1}else l=Oc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(je(e),e):(je(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Dt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=yn(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[te]=e}else Ca(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),n=!1}else n=Oc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(je(e),e):(je(e),null)}return je(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Fi(e,e.updateQueue),Dt(e),null);case 4:return Lt(),t===null&&Hr(e.stateNode.containerInfo),Dt(e),null;case 10:return yl(e.type),Dt(e),null;case 19:if(q(Yt),a=e.memoizedState,a===null)return Dt(e),null;if(n=(e.flags&128)!==0,s=a.rendering,s===null)if(n)Ru(a,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=Hi(t),s!==null){for(e.flags|=128,Ru(a,!1),t=s.updateQueue,e.updateQueue=t,Fi(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)ko(l,t),l=l.sibling;return V(Yt,Yt.current&1|2),vt&&hl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Te()>ts&&(e.flags|=128,n=!0,Ru(a,!1),e.lanes=4194304)}else{if(!n)if(t=Hi(s),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Fi(e,t),Ru(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!vt)return Dt(e),null}else 2*Te()-a.renderingStartTime>ts&&l!==536870912&&(e.flags|=128,n=!0,Ru(a,!1),e.lanes=4194304);a.isBackwards?(s.sibling=e.child,e.child=s):(t=a.last,t!==null?t.sibling=s:e.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Te(),t.sibling=null,l=Yt.current,V(Yt,n?l&1|2:l&1),vt&&hl(e,a.treeForkCount),t):(Dt(e),null);case 22:case 23:return je(e),qc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Dt(e),e.subtreeFlags&6&&(e.flags|=8192)):Dt(e),l=e.updateQueue,l!==null&&Fi(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&q(ja),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),yl(Xt),Dt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Vp(t,e){switch(Ec(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return yl(Xt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ii(e),null;case 31:if(e.memoizedState!==null){if(je(e),e.alternate===null)throw Error(r(340));Ca()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(je(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ca()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Yt),null;case 4:return Lt(),null;case 10:return yl(e.type),null;case 22:case 23:return je(e),qc(),t!==null&&q(ja),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return yl(Xt),null;case 25:return null;default:return null}}function xh(t,e){switch(Ec(e),e.tag){case 3:yl(Xt),Lt();break;case 26:case 27:case 5:ii(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&je(e);break;case 13:je(e);break;case 19:q(Yt);break;case 10:yl(e.type);break;case 22:case 23:je(e),qc(),t!==null&&q(ja);break;case 24:yl(Xt)}}function _u(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var s=l.create,f=l.inst;a=s(),f.destroy=a}l=l.next}while(l!==n)}}catch(d){Ot(e,e.return,d)}}function Jl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&t)===t){var f=a.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,n=e;var g=l,_=d;try{_()}catch(M){Ot(n,g,M)}}}a=a.next}while(a!==s)}}catch(M){Ot(e,e.return,M)}}function Eh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{dd(e,l)}catch(a){Ot(t,t.return,a)}}}function Th(t,e,l){l.props=Ua(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Ot(t,e,a)}}function ju(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){Ot(t,e,n)}}function ll(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ot(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ot(t,e,n)}else l.current=null}function Oh(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ot(t,t.return,n)}}function yr(t,e,l){try{var a=t.stateNode;m0(a,t.type,l,e),a[me]=e}catch(n){Ot(t,t.return,n)}}function Ah(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ta(t.type)||t.tag===4}function vr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ah(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ta(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function pr(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=fl));else if(a!==4&&(a===27&&ta(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(pr(t,e,l),t=t.sibling;t!==null;)pr(t,e,l),t=t.sibling}function $i(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&ta(t.type)&&(l=t.stateNode),t=t.child,t!==null))for($i(t,e,l),t=t.sibling;t!==null;)$i(t,e,l),t=t.sibling}function Ch(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ne(e,a,l),e[te]=t,e[me]=l}catch(s){Ot(t,t.return,s)}}var Sl=!1,Vt=!1,gr=!1,Rh=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function Jp(t,e){if(t=t.containerInfo,Qr=ps,t=Qo(t),oc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break t}var f=0,d=-1,g=-1,_=0,M=0,w=t,j=null;e:for(;;){for(var N;w!==l||n!==0&&w.nodeType!==3||(d=f+n),w!==s||a!==0&&w.nodeType!==3||(g=f+a),w.nodeType===3&&(f+=w.nodeValue.length),(N=w.firstChild)!==null;)j=w,w=N;for(;;){if(w===t)break e;if(j===l&&++_===n&&(d=f),j===s&&++M===a&&(g=f),(N=w.nextSibling)!==null)break;w=j,j=w.parentNode}w=N}l=d===-1||g===-1?null:{start:d,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(Lr={focusedElem:t,selectionRange:l},ps=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){switch(e=Pt,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,l=e,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var F=Ua(l.type,n);t=a.getSnapshotBeforeUpdate(F,s),a.__reactInternalSnapshotBeforeUpdate=t}catch(et){Ot(l,l.return,et)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Xr(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Xr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function _h(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:El(t,l),a&4&&_u(5,l);break;case 1:if(El(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){Ot(l,l.return,f)}else{var n=Ua(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ot(l,l.return,f)}}a&64&&Eh(l),a&512&&ju(l,l.return);break;case 3:if(El(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{dd(t,e)}catch(f){Ot(l,l.return,f)}}break;case 27:e===null&&a&4&&Ch(l);case 26:case 5:El(t,l),e===null&&a&4&&Oh(l),a&512&&ju(l,l.return);break;case 12:El(t,l);break;case 31:El(t,l),a&4&&Nh(t,l);break;case 13:El(t,l),a&4&&Mh(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=l0.bind(null,l),E0(t,l))));break;case 22:if(a=l.memoizedState!==null||Sl,!a){e=e!==null&&e.memoizedState!==null||Vt,n=Sl;var s=Vt;Sl=a,(Vt=e)&&!s?Tl(t,l,(l.subtreeFlags&8772)!==0):El(t,l),Sl=n,Vt=s}break;case 30:break;default:El(t,l)}}function jh(t){var e=t.alternate;e!==null&&(t.alternate=null,jh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ks(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,ve=!1;function xl(t,e,l){for(l=l.child;l!==null;)zh(t,e,l),l=l.sibling}function zh(t,e,l){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(In,l)}catch{}switch(l.tag){case 26:Vt||ll(l,e),xl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Vt||ll(l,e);var a=Ut,n=ve;ta(l.type)&&(Ut=l.stateNode,ve=!1),xl(t,e,l),Bu(l.stateNode),Ut=a,ve=n;break;case 5:Vt||ll(l,e);case 6:if(a=Ut,n=ve,Ut=null,xl(t,e,l),Ut=a,ve=n,Ut!==null)if(ve)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(l.stateNode)}catch(s){Ot(l,e,s)}else try{Ut.removeChild(l.stateNode)}catch(s){Ot(l,e,s)}break;case 18:Ut!==null&&(ve?(t=Ut,Em(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Hn(t)):Em(Ut,l.stateNode));break;case 4:a=Ut,n=ve,Ut=l.stateNode.containerInfo,ve=!0,xl(t,e,l),Ut=a,ve=n;break;case 0:case 11:case 14:case 15:Jl(2,l,e),Vt||Jl(4,l,e),xl(t,e,l);break;case 1:Vt||(ll(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Th(l,e,a)),xl(t,e,l);break;case 21:xl(t,e,l);break;case 22:Vt=(a=Vt)||l.memoizedState!==null,xl(t,e,l),Vt=a;break;default:xl(t,e,l)}}function Nh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Hn(t)}catch(l){Ot(e,e.return,l)}}}function Mh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Hn(t)}catch(l){Ot(e,e.return,l)}}function kp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Rh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Rh),e;default:throw Error(r(435,t.tag))}}function Wi(t,e){var l=kp(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=a0.bind(null,t,a);a.then(n,n)}})}function pe(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=t,f=e,d=f;t:for(;d!==null;){switch(d.tag){case 27:if(ta(d.type)){Ut=d.stateNode,ve=!1;break t}break;case 5:Ut=d.stateNode,ve=!1;break t;case 3:case 4:Ut=d.stateNode.containerInfo,ve=!0;break t}d=d.return}if(Ut===null)throw Error(r(160));zh(s,f,n),Ut=null,ve=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Dh(e,t),e=e.sibling}var ke=null;function Dh(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:pe(e,t),ge(t),a&4&&(Jl(3,t,t.return),_u(3,t),Jl(5,t,t.return));break;case 1:pe(e,t),ge(t),a&512&&(Vt||l===null||ll(l,l.return)),a&64&&Sl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=ke;if(pe(e,t),ge(t),a&512&&(Vt||l===null||ll(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":s=n.getElementsByTagName("title")[0],(!s||s[lu]||s[te]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),ne(s,a,l),s[te]=t,Wt(s),a=s;break t;case"link":var f=Dm("link","href",n).get(a+(l.href||""));if(f){for(var d=0;d<f.length;d++)if(s=f[d],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(d,1);break e}}s=n.createElement(a),ne(s,a,l),n.head.appendChild(s);break;case"meta":if(f=Dm("meta","content",n).get(a+(l.content||""))){for(d=0;d<f.length;d++)if(s=f[d],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(d,1);break e}}s=n.createElement(a),ne(s,a,l),n.head.appendChild(s);break;default:throw Error(r(468,a))}s[te]=t,Wt(s),a=s}t.stateNode=a}else Um(n,t.type,t.stateNode);else t.stateNode=Mm(n,a,t.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?Um(n,t.type,t.stateNode):Mm(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&yr(t,t.memoizedProps,l.memoizedProps)}break;case 27:pe(e,t),ge(t),a&512&&(Vt||l===null||ll(l,l.return)),l!==null&&a&4&&yr(t,t.memoizedProps,l.memoizedProps);break;case 5:if(pe(e,t),ge(t),a&512&&(Vt||l===null||ll(l,l.return)),t.flags&32){n=t.stateNode;try{nn(n,"")}catch(F){Ot(t,t.return,F)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,yr(t,n,l!==null?l.memoizedProps:n)),a&1024&&(gr=!0);break;case 6:if(pe(e,t),ge(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(F){Ot(t,t.return,F)}}break;case 3:if(hs=null,n=ke,ke=os(e.containerInfo),pe(e,t),ke=n,ge(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Hn(e.containerInfo)}catch(F){Ot(t,t.return,F)}gr&&(gr=!1,Uh(t));break;case 4:a=ke,ke=os(t.stateNode.containerInfo),pe(e,t),ge(t),ke=a;break;case 12:pe(e,t),ge(t);break;case 31:pe(e,t),ge(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Wi(t,a)));break;case 13:pe(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ii=Te()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Wi(t,a)));break;case 22:n=t.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,_=Sl,M=Vt;if(Sl=_||n,Vt=M||g,pe(e,t),Vt=M,Sl=_,ge(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||g||Sl||Vt||wa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){g=l=e;try{if(s=g.stateNode,n)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=g.stateNode;var w=g.memoizedProps.style,j=w!=null&&w.hasOwnProperty("display")?w.display:null;d.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(F){Ot(g,g.return,F)}}}else if(e.tag===6){if(l===null){g=e;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(F){Ot(g,g.return,F)}}}else if(e.tag===18){if(l===null){g=e;try{var N=g.stateNode;n?Tm(N,!0):Tm(g.stateNode,!1)}catch(F){Ot(g,g.return,F)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Wi(t,l))));break;case 19:pe(e,t),ge(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Wi(t,a)));break;case 30:break;case 21:break;default:pe(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Ah(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,s=vr(t);$i(t,s,n);break;case 5:var f=l.stateNode;l.flags&32&&(nn(f,""),l.flags&=-33);var d=vr(t);$i(t,d,f);break;case 3:case 4:var g=l.stateNode.containerInfo,_=vr(t);pr(t,_,g);break;default:throw Error(r(161))}}catch(M){Ot(t,t.return,M)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Uh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Uh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function El(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)_h(t,e.alternate,e),e=e.sibling}function wa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Jl(4,e,e.return),wa(e);break;case 1:ll(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Th(e,e.return,l),wa(e);break;case 27:Bu(e.stateNode);case 26:case 5:ll(e,e.return),wa(e);break;case 22:e.memoizedState===null&&wa(e);break;case 30:wa(e);break;default:wa(e)}t=t.sibling}}function Tl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,s=e,f=s.flags;switch(s.tag){case 0:case 11:case 15:Tl(n,s,l),_u(4,s);break;case 1:if(Tl(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){Ot(a,a.return,_)}if(a=s,n=a.updateQueue,n!==null){var d=a.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)od(g[n],d)}catch(_){Ot(a,a.return,_)}}l&&f&64&&Eh(s),ju(s,s.return);break;case 27:Ch(s);case 26:case 5:Tl(n,s,l),l&&a===null&&f&4&&Oh(s),ju(s,s.return);break;case 12:Tl(n,s,l);break;case 31:Tl(n,s,l),l&&f&4&&Nh(n,s);break;case 13:Tl(n,s,l),l&&f&4&&Mh(n,s);break;case 22:s.memoizedState===null&&Tl(n,s,l),ju(s,s.return);break;case 30:break;default:Tl(n,s,l)}e=e.sibling}}function br(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&yu(l))}function Sr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yu(t))}function Fe(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wh(t,e,l,a),e=e.sibling}function wh(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,l,a),n&2048&&_u(9,e);break;case 1:Fe(t,e,l,a);break;case 3:Fe(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yu(t)));break;case 12:if(n&2048){Fe(t,e,l,a),t=e.stateNode;try{var s=e.memoizedProps,f=s.id,d=s.onPostCommit;typeof d=="function"&&d(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){Ot(e,e.return,g)}}else Fe(t,e,l,a);break;case 31:Fe(t,e,l,a);break;case 13:Fe(t,e,l,a);break;case 23:break;case 22:s=e.stateNode,f=e.alternate,e.memoizedState!==null?s._visibility&2?Fe(t,e,l,a):zu(t,e):s._visibility&2?Fe(t,e,l,a):(s._visibility|=2,An(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&br(f,e);break;case 24:Fe(t,e,l,a),n&2048&&Sr(e.alternate,e);break;default:Fe(t,e,l,a)}}function An(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,f=e,d=l,g=a,_=f.flags;switch(f.tag){case 0:case 11:case 15:An(s,f,d,g,n),_u(8,f);break;case 23:break;case 22:var M=f.stateNode;f.memoizedState!==null?M._visibility&2?An(s,f,d,g,n):zu(s,f):(M._visibility|=2,An(s,f,d,g,n)),n&&_&2048&&br(f.alternate,f);break;case 24:An(s,f,d,g,n),n&&_&2048&&Sr(f.alternate,f);break;default:An(s,f,d,g,n)}e=e.sibling}}function zu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:zu(l,a),n&2048&&br(a.alternate,a);break;case 24:zu(l,a),n&2048&&Sr(a.alternate,a);break;default:zu(l,a)}e=e.sibling}}var Nu=8192;function Cn(t,e,l){if(t.subtreeFlags&Nu)for(t=t.child;t!==null;)Hh(t,e,l),t=t.sibling}function Hh(t,e,l){switch(t.tag){case 26:Cn(t,e,l),t.flags&Nu&&t.memoizedState!==null&&U0(l,ke,t.memoizedState,t.memoizedProps);break;case 5:Cn(t,e,l);break;case 3:case 4:var a=ke;ke=os(t.stateNode.containerInfo),Cn(t,e,l),ke=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Nu,Nu=16777216,Cn(t,e,l),Nu=a):Cn(t,e,l));break;default:Cn(t,e,l)}}function qh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Mu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Pt=a,Qh(a,t)}qh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bh(t),t=t.sibling}function Bh(t){switch(t.tag){case 0:case 11:case 15:Mu(t),t.flags&2048&&Jl(9,t,t.return);break;case 3:Mu(t);break;case 12:Mu(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Pi(t)):Mu(t);break;default:Mu(t)}}function Pi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Pt=a,Qh(a,t)}qh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Jl(8,e,e.return),Pi(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Pi(e));break;default:Pi(e)}t=t.sibling}}function Qh(t,e){for(;Pt!==null;){var l=Pt;switch(l.tag){case 0:case 11:case 15:Jl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:yu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Pt=a;else t:for(l=t;Pt!==null;){a=Pt;var n=a.sibling,s=a.return;if(jh(a),a===l){Pt=null;break t}if(n!==null){n.return=s,Pt=n;break t}Pt=s}}}var Fp={getCacheForType:function(t){var e=le(Xt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return le(Xt).controller.signal}},$p=typeof WeakMap=="function"?WeakMap:Map,St=0,Nt=null,ot=null,mt=0,Tt=0,ze=null,kl=!1,Rn=!1,xr=!1,Ol=0,Bt=0,Fl=0,Ha=0,Er=0,Ne=0,_n=0,Du=null,be=null,Tr=!1,Ii=0,Lh=0,ts=1/0,es=null,$l=null,Ft=0,Wl=null,jn=null,Al=0,Or=0,Ar=null,Yh=null,Uu=0,Cr=null;function Me(){return(St&2)!==0&&mt!==0?mt&-mt:D.T!==null?Mr():lo()}function Gh(){if(Ne===0)if((mt&536870912)===0||vt){var t=ri;ri<<=1,(ri&3932160)===0&&(ri=262144),Ne=t}else Ne=536870912;return t=_e.current,t!==null&&(t.flags|=32),Ne}function Se(t,e,l){(t===Nt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(zn(t,0),Pl(t,mt,Ne,!1)),eu(t,l),((St&2)===0||t!==Nt)&&(t===Nt&&((St&2)===0&&(Ha|=l),Bt===4&&Pl(t,mt,Ne,!1)),al(t))}function Xh(t,e,l){if((St&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||tu(t,e),n=a?Ip(t,e):_r(t,e,!0),s=a;do{if(n===0){Rn&&!a&&Pl(t,e,0,!1);break}else{if(l=t.current.alternate,s&&!Wp(l)){n=_r(t,e,!1),s=!1;continue}if(n===2){if(s=e,t.errorRecoveryDisabledLanes&s)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var d=t;n=Du;var g=d.current.memoizedState.isDehydrated;if(g&&(zn(d,f).flags|=256),f=_r(d,f,!1),f!==2){if(xr&&!g){d.errorRecoveryDisabledLanes|=s,Ha|=s,n=4;break t}s=be,be=n,s!==null&&(be===null?be=s:be.push.apply(be,s))}n=f}if(s=!1,n!==2)continue}}if(n===1){zn(t,0),Pl(t,e,0,!0);break}t:{switch(a=t,s=n,s){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Pl(a,e,Ne,!kl);break t;case 2:be=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=Ii+300-Te(),10<n)){if(Pl(a,e,Ne,!kl),oi(a,0,!0)!==0)break t;Al=e,a.timeoutHandle=Sm(Kh.bind(null,a,l,be,es,Tr,e,Ne,Ha,_n,kl,s,"Throttled",-0,0),n);break t}Kh(a,l,be,es,Tr,e,Ne,Ha,_n,kl,s,null,-0,0)}}break}while(!0);al(t)}function Kh(t,e,l,a,n,s,f,d,g,_,M,w,j,N){if(t.timeoutHandle=-1,w=e.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fl},Hh(e,s,w);var F=(s&62914560)===s?Ii-Te():(s&4194048)===s?Lh-Te():0;if(F=w0(w,F),F!==null){Al=s,t.cancelPendingCommit=F(Ph.bind(null,t,e,s,l,a,n,f,d,g,M,w,null,j,N)),Pl(t,s,f,!_);return}}Ph(t,e,s,l,a,n,f,d,g)}function Wp(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],s=n.getSnapshot;n=n.value;try{if(!Ce(s(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Pl(t,e,l,a){e&=~Er,e&=~Ha,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var s=31-Ae(n),f=1<<s;a[s]=-1,n&=~f}l!==0&&If(t,l,e)}function ls(){return(St&6)===0?(wu(0),!1):!0}function Rr(){if(ot!==null){if(Tt===0)var t=ot.return;else t=ot,ml=Ra=null,Xc(t),Sn=null,pu=0,t=ot;for(;t!==null;)xh(t.alternate,t),t=t.return;ot=null}}function zn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,p0(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Al=0,Rr(),Nt=t,ot=l=dl(t.current,null),mt=e,Tt=0,ze=null,kl=!1,Rn=tu(t,e),xr=!1,_n=Ne=Er=Ha=Fl=Bt=0,be=Du=null,Tr=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Ae(a),s=1<<n;e|=t[n],a&=~s}return Ol=e,Ti(),l}function Zh(t,e){st=null,D.H=Au,e===bn||e===Ni?(e=sd(),Tt=3):e===Nc?(e=sd(),Tt=4):Tt=e===ur?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ze=e,ot===null&&(Bt=1,Zi(t,qe(e,t.current)))}function Vh(){var t=_e.current;return t===null?!0:(mt&4194048)===mt?Ye===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Ye:!1}function Jh(){var t=D.H;return D.H=Au,t===null?Au:t}function kh(){var t=D.A;return D.A=Fp,t}function as(){Bt=4,kl||(mt&4194048)!==mt&&_e.current!==null||(Rn=!0),(Fl&134217727)===0&&(Ha&134217727)===0||Nt===null||Pl(Nt,mt,Ne,!1)}function _r(t,e,l){var a=St;St|=2;var n=Jh(),s=kh();(Nt!==t||mt!==e)&&(es=null,zn(t,e)),e=!1;var f=Bt;t:do try{if(Tt!==0&&ot!==null){var d=ot,g=ze;switch(Tt){case 8:Rr(),f=6;break t;case 3:case 2:case 9:case 6:_e.current===null&&(e=!0);var _=Tt;if(Tt=0,ze=null,Nn(t,d,g,_),l&&Rn){f=0;break t}break;default:_=Tt,Tt=0,ze=null,Nn(t,d,g,_)}}Pp(),f=Bt;break}catch(M){Zh(t,M)}while(!0);return e&&t.shellSuspendCounter++,ml=Ra=null,St=a,D.H=n,D.A=s,ot===null&&(Nt=null,mt=0,Ti()),f}function Pp(){for(;ot!==null;)Fh(ot)}function Ip(t,e){var l=St;St|=2;var a=Jh(),n=kh();Nt!==t||mt!==e?(es=null,ts=Te()+500,zn(t,e)):Rn=tu(t,e);t:do try{if(Tt!==0&&ot!==null){e=ot;var s=ze;e:switch(Tt){case 1:Tt=0,ze=null,Nn(t,e,s,1);break;case 2:case 9:if(ud(s)){Tt=0,ze=null,$h(e);break}e=function(){Tt!==2&&Tt!==9||Nt!==t||(Tt=7),al(t)},s.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:ud(s)?(Tt=0,ze=null,$h(e)):(Tt=0,ze=null,Nn(t,e,s,7));break;case 5:var f=null;switch(ot.tag){case 26:f=ot.memoizedState;case 5:case 27:var d=ot;if(f?wm(f):d.stateNode.complete){Tt=0,ze=null;var g=d.sibling;if(g!==null)ot=g;else{var _=d.return;_!==null?(ot=_,ns(_)):ot=null}break e}}Tt=0,ze=null,Nn(t,e,s,5);break;case 6:Tt=0,ze=null,Nn(t,e,s,6);break;case 8:Rr(),Bt=6;break t;default:throw Error(r(462))}}t0();break}catch(M){Zh(t,M)}while(!0);return ml=Ra=null,D.H=a,D.A=n,St=l,ot!==null?0:(Nt=null,mt=0,Ti(),Bt)}function t0(){for(;ot!==null&&!Tv();)Fh(ot)}function Fh(t){var e=bh(t.alternate,t,Ol);t.memoizedProps=t.pendingProps,e===null?ns(t):ot=e}function $h(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=hh(l,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=hh(l,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Xc(e);default:xh(l,e),e=ot=ko(e,Ol),e=bh(l,e,Ol)}t.memoizedProps=t.pendingProps,e===null?ns(t):ot=e}function Nn(t,e,l,a){ml=Ra=null,Xc(e),Sn=null,pu=0;var n=e.return;try{if(Gp(t,n,e,l,mt)){Bt=1,Zi(t,qe(l,t.current)),ot=null;return}}catch(s){if(n!==null)throw ot=n,s;Bt=1,Zi(t,qe(l,t.current)),ot=null;return}e.flags&32768?(vt||a===1?t=!0:Rn||(mt&536870912)!==0?t=!1:(kl=t=!0,(a===2||a===9||a===3||a===6)&&(a=_e.current,a!==null&&a.tag===13&&(a.flags|=16384))),Wh(e,t)):ns(e)}function ns(t){var e=t;do{if((e.flags&32768)!==0){Wh(e,kl);return}t=e.return;var l=Zp(e.alternate,e,Ol);if(l!==null){ot=l;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);Bt===0&&(Bt=5)}function Wh(t,e){do{var l=Vp(t.alternate,t);if(l!==null){l.flags&=32767,ot=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=l}while(t!==null);Bt=6,ot=null}function Ph(t,e,l,a,n,s,f,d,g){t.cancelPendingCommit=null;do us();while(Ft!==0);if((St&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(s=e.lanes|e.childLanes,s|=vc,Dv(t,l,s,f,d,g),t===Nt&&(ot=Nt=null,mt=0),jn=e,Wl=t,Al=l,Or=s,Ar=n,Yh=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,n0(si,function(){return am(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=Z.p,Z.p=2,f=St,St|=4;try{Jp(t,e,l)}finally{St=f,Z.p=n,D.T=a}}Ft=1,Ih(),tm(),em()}}function Ih(){if(Ft===1){Ft=0;var t=Wl,e=jn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=St;St|=4;try{Dh(e,t);var s=Lr,f=Qo(t.containerInfo),d=s.focusedElem,g=s.selectionRange;if(f!==d&&d&&d.ownerDocument&&Bo(d.ownerDocument.documentElement,d)){if(g!==null&&oc(d)){var _=g.start,M=g.end;if(M===void 0&&(M=_),"selectionStart"in d)d.selectionStart=_,d.selectionEnd=Math.min(M,d.value.length);else{var w=d.ownerDocument||document,j=w&&w.defaultView||window;if(j.getSelection){var N=j.getSelection(),F=d.textContent.length,et=Math.min(g.start,F),jt=g.end===void 0?et:Math.min(g.end,F);!N.extend&&et>jt&&(f=jt,jt=et,et=f);var O=qo(d,et),x=qo(d,jt);if(O&&x&&(N.rangeCount!==1||N.anchorNode!==O.node||N.anchorOffset!==O.offset||N.focusNode!==x.node||N.focusOffset!==x.offset)){var R=w.createRange();R.setStart(O.node,O.offset),N.removeAllRanges(),et>jt?(N.addRange(R),N.extend(x.node,x.offset)):(R.setEnd(x.node,x.offset),N.addRange(R))}}}}for(w=[],N=d;N=N.parentNode;)N.nodeType===1&&w.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<w.length;d++){var U=w[d];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ps=!!Qr,Lr=Qr=null}finally{St=n,Z.p=a,D.T=l}}t.current=e,Ft=2}}function tm(){if(Ft===2){Ft=0;var t=Wl,e=jn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=St;St|=4;try{_h(t,e.alternate,e)}finally{St=n,Z.p=a,D.T=l}}Ft=3}}function em(){if(Ft===4||Ft===3){Ft=0,Ov();var t=Wl,e=jn,l=Al,a=Yh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ft=5:(Ft=0,jn=Wl=null,lm(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&($l=null),Vs(l),e=e.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(In,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=D.T,n=Z.p,Z.p=2,D.T=null;try{for(var s=t.onRecoverableError,f=0;f<a.length;f++){var d=a[f];s(d.value,{componentStack:d.stack})}}finally{D.T=e,Z.p=n}}(Al&3)!==0&&us(),al(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Cr?Uu++:(Uu=0,Cr=t):Uu=0,wu(0)}}function lm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yu(e)))}function us(){return Ih(),tm(),em(),am()}function am(){if(Ft!==5)return!1;var t=Wl,e=Or;Or=0;var l=Vs(Al),a=D.T,n=Z.p;try{Z.p=32>l?32:l,D.T=null,l=Ar,Ar=null;var s=Wl,f=Al;if(Ft=0,jn=Wl=null,Al=0,(St&6)!==0)throw Error(r(331));var d=St;if(St|=4,Bh(s.current),wh(s,s.current,f,l),St=d,wu(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(In,s)}catch{}return!0}finally{Z.p=n,D.T=a,lm(t,e)}}function nm(t,e,l){e=qe(l,e),e=nr(t.stateNode,e,2),t=Kl(t,e,2),t!==null&&(eu(t,2),al(t))}function Ot(t,e,l){if(t.tag===3)nm(t,t,l);else for(;e!==null;){if(e.tag===3){nm(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&($l===null||!$l.has(a))){t=qe(l,t),l=uh(2),a=Kl(e,l,2),a!==null&&(ih(l,a,e,t),eu(a,2),al(a));break}}e=e.return}}function jr(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new $p;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(xr=!0,n.add(l),t=e0.bind(null,t,e,l),e.then(t,t))}function e0(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(mt&l)===l&&(Bt===4||Bt===3&&(mt&62914560)===mt&&300>Te()-Ii?(St&2)===0&&zn(t,0):Er|=l,_n===mt&&(_n=0)),al(t)}function um(t,e){e===0&&(e=Pf()),t=Oa(t,e),t!==null&&(eu(t,e),al(t))}function l0(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),um(t,l)}function a0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),um(t,l)}function n0(t,e){return Gs(t,e)}var is=null,Mn=null,zr=!1,ss=!1,Nr=!1,Il=0;function al(t){t!==Mn&&t.next===null&&(Mn===null?is=Mn=t:Mn=Mn.next=t),ss=!0,zr||(zr=!0,i0())}function wu(t,e){if(!Nr&&ss){Nr=!0;do for(var l=!1,a=is;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var f=a.suspendedLanes,d=a.pingedLanes;s=(1<<31-Ae(42|t)+1)-1,s&=n&~(f&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,rm(a,s))}else s=mt,s=oi(a,a===Nt?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||tu(a,s)||(l=!0,rm(a,s));a=a.next}while(l);Nr=!1}}function u0(){im()}function im(){ss=zr=!1;var t=0;Il!==0&&v0()&&(t=Il);for(var e=Te(),l=null,a=is;a!==null;){var n=a.next,s=sm(a,e);s===0?(a.next=null,l===null?is=n:l.next=n,n===null&&(Mn=l)):(l=a,(t!==0||(s&3)!==0)&&(ss=!0)),a=n}Ft!==0&&Ft!==5||wu(t),Il!==0&&(Il=0)}function sm(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var f=31-Ae(s),d=1<<f,g=n[f];g===-1?((d&l)===0||(d&a)!==0)&&(n[f]=Mv(d,e)):g<=e&&(t.expiredLanes|=d),s&=~d}if(e=Nt,l=mt,l=oi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Xs(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||tu(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Xs(a),Vs(l)){case 2:case 8:l=$f;break;case 32:l=si;break;case 268435456:l=Wf;break;default:l=si}return a=cm.bind(null,t),l=Gs(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Xs(a),t.callbackPriority=2,t.callbackNode=null,2}function cm(t,e){if(Ft!==0&&Ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(us()&&t.callbackNode!==l)return null;var a=mt;return a=oi(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Xh(t,a,e),sm(t,Te()),t.callbackNode!=null&&t.callbackNode===l?cm.bind(null,t):null)}function rm(t,e){if(us())return null;Xh(t,e,!0)}function i0(){g0(function(){(St&6)!==0?Gs(Ff,u0):im()})}function Mr(){if(Il===0){var t=pn;t===0&&(t=ci,ci<<=1,(ci&261888)===0&&(ci=256)),Il=t}return Il}function fm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:yi(""+t)}function om(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function s0(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var s=fm((n[me]||null).action),f=a.submitter;f&&(e=(e=f[me]||null)?fm(e.formAction):f.getAttribute("formAction"),e!==null&&(s=e,f=null));var d=new bi("action","action",null,a,n);t.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Il!==0){var g=f?om(n,f):new FormData(n);Pc(l,{pending:!0,data:g,method:n.method,action:s},null,g)}}else typeof s=="function"&&(d.preventDefault(),g=f?om(n,f):new FormData(n),Pc(l,{pending:!0,data:g,method:n.method,action:s},s,g))},currentTarget:n}]})}}for(var Dr=0;Dr<yc.length;Dr++){var Ur=yc[Dr],c0=Ur.toLowerCase(),r0=Ur[0].toUpperCase()+Ur.slice(1);Je(c0,"on"+r0)}Je(Go,"onAnimationEnd"),Je(Xo,"onAnimationIteration"),Je(Ko,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(Ap,"onTransitionRun"),Je(Cp,"onTransitionStart"),Je(Rp,"onTransitionCancel"),Je(Zo,"onTransitionEnd"),ln("onMouseEnter",["mouseout","mouseover"]),ln("onMouseLeave",["mouseout","mouseover"]),ln("onPointerEnter",["pointerout","pointerover"]),ln("onPointerLeave",["pointerout","pointerover"]),Sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hu="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(" "),f0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hu));function dm(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var s=void 0;if(e)for(var f=a.length-1;0<=f;f--){var d=a[f],g=d.instance,_=d.currentTarget;if(d=d.listener,g!==s&&n.isPropagationStopped())break t;s=d,n.currentTarget=_;try{s(n)}catch(M){Ei(M)}n.currentTarget=null,s=g}else for(f=0;f<a.length;f++){if(d=a[f],g=d.instance,_=d.currentTarget,d=d.listener,g!==s&&n.isPropagationStopped())break t;s=d,n.currentTarget=_;try{s(n)}catch(M){Ei(M)}n.currentTarget=null,s=g}}}}function dt(t,e){var l=e[Js];l===void 0&&(l=e[Js]=new Set);var a=t+"__bubble";l.has(a)||(hm(e,t,2,!1),l.add(a))}function wr(t,e,l){var a=0;e&&(a|=4),hm(l,t,a,e)}var cs="_reactListening"+Math.random().toString(36).slice(2);function Hr(t){if(!t[cs]){t[cs]=!0,uo.forEach(function(l){l!=="selectionchange"&&(f0.has(l)||wr(l,!1,t),wr(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[cs]||(e[cs]=!0,wr("selectionchange",!1,e))}}function hm(t,e,l,a){switch(Gm(e)){case 2:var n=B0;break;case 8:n=Q0;break;default:n=Wr}l=n.bind(null,e,l,t),n=void 0,!lc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function qr(t,e,l,a,n){var s=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var d=a.stateNode.containerInfo;if(d===n)break;if(f===4)for(f=a.return;f!==null;){var g=f.tag;if((g===3||g===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;d!==null;){if(f=Ia(d),f===null)return;if(g=f.tag,g===5||g===6||g===26||g===27){a=s=f;continue t}d=d.parentNode}}a=a.return}go(function(){var _=s,M=tc(l),w=[];t:{var j=Vo.get(t);if(j!==void 0){var N=bi,F=t;switch(t){case"keypress":if(pi(l)===0)break t;case"keydown":case"keyup":N=ap;break;case"focusin":F="focus",N=ic;break;case"focusout":F="blur",N=ic;break;case"beforeblur":case"afterblur":N=ic;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=xo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Zv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=ip;break;case Go:case Xo:case Ko:N=kv;break;case Zo:N=cp;break;case"scroll":case"scrollend":N=Xv;break;case"wheel":N=fp;break;case"copy":case"cut":case"paste":N=$v;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=To;break;case"toggle":case"beforetoggle":N=dp}var et=(e&4)!==0,jt=!et&&(t==="scroll"||t==="scrollend"),O=et?j!==null?j+"Capture":null:j;et=[];for(var x=_,R;x!==null;){var U=x;if(R=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||R===null||O===null||(U=nu(x,O),U!=null&&et.push(qu(x,U,R))),jt)break;x=x.return}0<et.length&&(j=new N(j,F,null,l,M),w.push({event:j,listeners:et}))}}if((e&7)===0){t:{if(j=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",j&&l!==Is&&(F=l.relatedTarget||l.fromElement)&&(Ia(F)||F[Pa]))break t;if((N||j)&&(j=M.window===M?M:(j=M.ownerDocument)?j.defaultView||j.parentWindow:window,N?(F=l.relatedTarget||l.toElement,N=_,F=F?Ia(F):null,F!==null&&(jt=h(F),et=F.tag,F!==jt||et!==5&&et!==27&&et!==6)&&(F=null)):(N=null,F=_),N!==F)){if(et=xo,U="onMouseLeave",O="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(et=To,U="onPointerLeave",O="onPointerEnter",x="pointer"),jt=N==null?j:au(N),R=F==null?j:au(F),j=new et(U,x+"leave",N,l,M),j.target=jt,j.relatedTarget=R,U=null,Ia(M)===_&&(et=new et(O,x+"enter",F,l,M),et.target=R,et.relatedTarget=jt,U=et),jt=U,N&&F)e:{for(et=o0,O=N,x=F,R=0,U=O;U;U=et(U))R++;U=0;for(var I=x;I;I=et(I))U++;for(;0<R-U;)O=et(O),R--;for(;0<U-R;)x=et(x),U--;for(;R--;){if(O===x||x!==null&&O===x.alternate){et=O;break e}O=et(O),x=et(x)}et=null}else et=null;N!==null&&mm(w,j,N,et,!1),F!==null&&jt!==null&&mm(w,jt,F,et,!0)}}t:{if(j=_?au(_):window,N=j.nodeName&&j.nodeName.toLowerCase(),N==="select"||N==="input"&&j.type==="file")var gt=No;else if(jo(j))if(Mo)gt=Ep;else{gt=Sp;var W=bp}else N=j.nodeName,!N||N.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?_&&Ps(_.elementType)&&(gt=No):gt=xp;if(gt&&(gt=gt(t,_))){zo(w,gt,l,M);break t}W&&W(t,j,_),t==="focusout"&&_&&j.type==="number"&&_.memoizedProps.value!=null&&Ws(j,"number",j.value)}switch(W=_?au(_):window,t){case"focusin":(jo(W)||W.contentEditable==="true")&&(rn=W,dc=_,du=null);break;case"focusout":du=dc=rn=null;break;case"mousedown":hc=!0;break;case"contextmenu":case"mouseup":case"dragend":hc=!1,Lo(w,l,M);break;case"selectionchange":if(Op)break;case"keydown":case"keyup":Lo(w,l,M)}var ct;if(cc)t:{switch(t){case"compositionstart":var yt="onCompositionStart";break t;case"compositionend":yt="onCompositionEnd";break t;case"compositionupdate":yt="onCompositionUpdate";break t}yt=void 0}else cn?Ro(t,l)&&(yt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(yt="onCompositionStart");yt&&(Oo&&l.locale!=="ko"&&(cn||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&cn&&(ct=bo()):(ql=M,ac="value"in ql?ql.value:ql.textContent,cn=!0)),W=rs(_,yt),0<W.length&&(yt=new Eo(yt,t,null,l,M),w.push({event:yt,listeners:W}),ct?yt.data=ct:(ct=_o(l),ct!==null&&(yt.data=ct)))),(ct=mp?yp(t,l):vp(t,l))&&(yt=rs(_,"onBeforeInput"),0<yt.length&&(W=new Eo("onBeforeInput","beforeinput",null,l,M),w.push({event:W,listeners:yt}),W.data=ct)),s0(w,t,_,l,M)}dm(w,e)})}function qu(t,e,l){return{instance:t,listener:e,currentTarget:l}}function rs(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=nu(t,l),n!=null&&a.unshift(qu(t,n,s)),n=nu(t,e),n!=null&&a.push(qu(t,n,s))),t.tag===3)return a;t=t.return}return[]}function o0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function mm(t,e,l,a,n){for(var s=e._reactName,f=[];l!==null&&l!==a;){var d=l,g=d.alternate,_=d.stateNode;if(d=d.tag,g!==null&&g===a)break;d!==5&&d!==26&&d!==27||_===null||(g=_,n?(_=nu(l,s),_!=null&&f.unshift(qu(l,_,g))):n||(_=nu(l,s),_!=null&&f.push(qu(l,_,g)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var d0=/\r\n?/g,h0=/\u0000|\uFFFD/g;function ym(t){return(typeof t=="string"?t:""+t).replace(d0,`
`).replace(h0,"")}function vm(t,e){return e=ym(e),ym(t)===e}function _t(t,e,l,a,n,s){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||nn(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&nn(t,""+a);break;case"className":hi(t,"class",a);break;case"tabIndex":hi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":hi(t,l,a);break;case"style":vo(t,a,s);break;case"data":if(e!=="object"){hi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=yi(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"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 s=="function"&&(l==="formAction"?(e!=="input"&&_t(t,e,"name",n.name,n,null),_t(t,e,"formEncType",n.formEncType,n,null),_t(t,e,"formMethod",n.formMethod,n,null),_t(t,e,"formTarget",n.formTarget,n,null)):(_t(t,e,"encType",n.encType,n,null),_t(t,e,"method",n.method,n,null),_t(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=yi(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=fl);break;case"onScroll":a!=null&&dt("scroll",t);break;case"onScrollEnd":a!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=yi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":dt("beforetoggle",t),dt("toggle",t),di(t,"popover",a);break;case"xlinkActuate":rl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":rl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":rl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":rl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":rl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":rl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":rl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":rl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":rl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":di(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Yv.get(l)||l,di(t,l,a))}}function Br(t,e,l,a,n,s){switch(l){case"style":vo(t,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?nn(t,a):(typeof a=="number"||typeof a=="bigint")&&nn(t,""+a);break;case"onScroll":a!=null&&dt("scroll",t);break;case"onScrollEnd":a!=null&&dt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=fl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!io.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),s=t[me]||null,s=s!=null?s[l]:null,typeof s=="function"&&t.removeEventListener(e,s,n),typeof a=="function")){typeof s!="function"&&s!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):di(t,l,a)}}}function ne(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,s,f,l,null)}}n&&_t(t,e,"srcSet",l.srcSet,l,null),a&&_t(t,e,"src",l.src,l,null);return;case"input":dt("invalid",t);var d=s=f=n=null,g=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":f=M;break;case"checked":g=M;break;case"defaultChecked":_=M;break;case"value":s=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,e));break;default:_t(t,e,a,M,l,null)}}oo(t,s,d,g,_,f,n,!1);return;case"select":dt("invalid",t),a=f=s=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":s=d;break;case"defaultValue":f=d;break;case"multiple":a=d;default:_t(t,e,n,d,l,null)}e=s,l=f,t.multiple=!!a,e!=null?an(t,!!a,e,!1):l!=null&&an(t,!!a,l,!0);return;case"textarea":dt("invalid",t),s=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(d=l[f],d!=null))switch(f){case"value":a=d;break;case"defaultValue":n=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:_t(t,e,f,d,l,null)}mo(t,a,n,s);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:_t(t,e,g,a,l,null)}return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(a=0;a<Hu.length;a++)dt(Hu[a],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,_,a,l,null)}return;default:if(Ps(e)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&Br(t,e,M,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&_t(t,e,d,a,l,null))}function m0(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,f=null,d=null,g=null,_=null,M=null;for(N in l){var w=l[N];if(l.hasOwnProperty(N)&&w!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":g=w;default:a.hasOwnProperty(N)||_t(t,e,N,null,a,w)}}for(var j in a){var N=a[j];if(w=l[j],a.hasOwnProperty(j)&&(N!=null||w!=null))switch(j){case"type":s=N;break;case"name":n=N;break;case"checked":_=N;break;case"defaultChecked":M=N;break;case"value":f=N;break;case"defaultValue":d=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:N!==w&&_t(t,e,j,N,a,w)}}$s(t,f,d,g,_,M,s,n);return;case"select":N=f=d=j=null;for(s in l)if(g=l[s],l.hasOwnProperty(s)&&g!=null)switch(s){case"value":break;case"multiple":N=g;default:a.hasOwnProperty(s)||_t(t,e,s,null,a,g)}for(n in a)if(s=a[n],g=l[n],a.hasOwnProperty(n)&&(s!=null||g!=null))switch(n){case"value":j=s;break;case"defaultValue":d=s;break;case"multiple":f=s;default:s!==g&&_t(t,e,n,s,a,g)}e=d,l=f,a=N,j!=null?an(t,!!l,j,!1):!!a!=!!l&&(e!=null?an(t,!!l,e,!0):an(t,!!l,l?[]:"",!1));return;case"textarea":N=j=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:_t(t,e,d,null,a,n)}for(f in a)if(n=a[f],s=l[f],a.hasOwnProperty(f)&&(n!=null||s!=null))switch(f){case"value":j=n;break;case"defaultValue":N=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==s&&_t(t,e,f,n,a,s)}ho(t,j,N);return;case"option":for(var F in l)if(j=l[F],l.hasOwnProperty(F)&&j!=null&&!a.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:_t(t,e,F,null,a,j)}for(g in a)if(j=a[g],N=l[g],a.hasOwnProperty(g)&&j!==N&&(j!=null||N!=null))switch(g){case"selected":t.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:_t(t,e,g,j,a,N)}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 et in l)j=l[et],l.hasOwnProperty(et)&&j!=null&&!a.hasOwnProperty(et)&&_t(t,e,et,null,a,j);for(_ in a)if(j=a[_],N=l[_],a.hasOwnProperty(_)&&j!==N&&(j!=null||N!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:_t(t,e,_,j,a,N)}return;default:if(Ps(e)){for(var jt in l)j=l[jt],l.hasOwnProperty(jt)&&j!==void 0&&!a.hasOwnProperty(jt)&&Br(t,e,jt,void 0,a,j);for(M in a)j=a[M],N=l[M],!a.hasOwnProperty(M)||j===N||j===void 0&&N===void 0||Br(t,e,M,j,a,N);return}}for(var O in l)j=l[O],l.hasOwnProperty(O)&&j!=null&&!a.hasOwnProperty(O)&&_t(t,e,O,null,a,j);for(w in a)j=a[w],N=l[w],!a.hasOwnProperty(w)||j===N||j==null&&N==null||_t(t,e,w,j,a,N)}function pm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],s=n.transferSize,f=n.initiatorType,d=n.duration;if(s&&d&&pm(f)){for(f=0,d=n.responseEnd,a+=1;a<l.length;a++){var g=l[a],_=g.startTime;if(_>d)break;var M=g.transferSize,w=g.initiatorType;M&&pm(w)&&(g=g.responseEnd,f+=M*(g<d?1:(d-_)/(g-_)))}if(--a,e+=8*(s+f)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Qr=null,Lr=null;function fs(t){return t.nodeType===9?t:t.ownerDocument}function gm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Yr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Gr=null;function v0(){var t=window.event;return t&&t.type==="popstate"?t===Gr?!1:(Gr=t,!0):(Gr=null,!1)}var Sm=typeof setTimeout=="function"?setTimeout:void 0,p0=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,g0=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(t){return xm.resolve(null).then(t).catch(b0)}:Sm;function b0(t){setTimeout(function(){throw t})}function ta(t){return t==="head"}function Em(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Hn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Bu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Bu(l);for(var s=l.firstChild;s;){var f=s.nextSibling,d=s.nodeName;s[lu]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&Bu(t.ownerDocument.body);l=n}while(l);Hn(e)}function Tm(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Xr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Xr(l),ks(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function S0(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[lu])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function x0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ge(t.nextSibling),t===null))return null;return t}function Om(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ge(t.nextSibling),t===null))return null;return t}function Kr(t){return t.data==="$?"||t.data==="$~"}function Zr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function E0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Vr=null;function Am(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ge(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Cm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Rm(t,e,l){switch(e=fs(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Bu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ks(t)}var Xe=new Map,_m=new Set;function os(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Cl=Z.d;Z.d={f:T0,r:O0,D:A0,C:C0,L:R0,m:_0,X:z0,S:j0,M:N0};function T0(){var t=Cl.f(),e=ls();return t||e}function O0(t){var e=tn(t);e!==null&&e.tag===5&&e.type==="form"?Zd(e):Cl.r(t)}var Dn=typeof document>"u"?null:document;function jm(t,e,l){var a=Dn;if(a&&typeof e=="string"&&e){var n=we(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),_m.has(n)||(_m.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),ne(e,"link",t),Wt(e),a.head.appendChild(e)))}}function A0(t){Cl.D(t),jm("dns-prefetch",t,null)}function C0(t,e){Cl.C(t,e),jm("preconnect",t,e)}function R0(t,e,l){Cl.L(t,e,l);var a=Dn;if(a&&t&&e){var n='link[rel="preload"][as="'+we(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+we(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+we(l.imageSizes)+'"]')):n+='[href="'+we(t)+'"]';var s=n;switch(e){case"style":s=Un(t);break;case"script":s=wn(t)}Xe.has(s)||(t=T({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Xe.set(s,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Qu(s))||e==="script"&&a.querySelector(Lu(s))||(e=a.createElement("link"),ne(e,"link",t),Wt(e),a.head.appendChild(e)))}}function _0(t,e){Cl.m(t,e);var l=Dn;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+we(a)+'"][href="'+we(t)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=wn(t)}if(!Xe.has(s)&&(t=T({rel:"modulepreload",href:t},e),Xe.set(s,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Lu(s)))return}a=l.createElement("link"),ne(a,"link",t),Wt(a),l.head.appendChild(a)}}}function j0(t,e,l){Cl.S(t,e,l);var a=Dn;if(a&&t){var n=en(a).hoistableStyles,s=Un(t);e=e||"default";var f=n.get(s);if(!f){var d={loading:0,preload:null};if(f=a.querySelector(Qu(s)))d.loading=5;else{t=T({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Xe.get(s))&&Jr(t,l);var g=f=a.createElement("link");Wt(g),ne(g,"link",t),g._p=new Promise(function(_,M){g.onload=_,g.onerror=M}),g.addEventListener("load",function(){d.loading|=1}),g.addEventListener("error",function(){d.loading|=2}),d.loading|=4,ds(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:d},n.set(s,f)}}}function z0(t,e){Cl.X(t,e);var l=Dn;if(l&&t){var a=en(l).hoistableScripts,n=wn(t),s=a.get(n);s||(s=l.querySelector(Lu(n)),s||(t=T({src:t,async:!0},e),(e=Xe.get(n))&&kr(t,e),s=l.createElement("script"),Wt(s),ne(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function N0(t,e){Cl.M(t,e);var l=Dn;if(l&&t){var a=en(l).hoistableScripts,n=wn(t),s=a.get(n);s||(s=l.querySelector(Lu(n)),s||(t=T({src:t,async:!0,type:"module"},e),(e=Xe.get(n))&&kr(t,e),s=l.createElement("script"),Wt(s),ne(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function zm(t,e,l,a){var n=(n=ft.current)?os(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Un(l.href),l=en(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Un(l.href);var s=en(n).hoistableStyles,f=s.get(t);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,f),(s=n.querySelector(Qu(t)))&&!s._p&&(f.instance=s,f.state.loading=5),Xe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Xe.set(t,l),s||M0(n,t,l,f.state))),e&&a===null)throw Error(r(528,""));return f}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=wn(l),l=en(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Un(t){return'href="'+we(t)+'"'}function Qu(t){return'link[rel="stylesheet"]['+t+"]"}function Nm(t){return T({},t,{"data-precedence":t.precedence,precedence:null})}function M0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ne(e,"link",l),Wt(e),t.head.appendChild(e))}function wn(t){return'[src="'+we(t)+'"]'}function Lu(t){return"script[async]"+t}function Mm(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+we(l.href)+'"]');if(a)return e.instance=a,Wt(a),a;var n=T({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Wt(a),ne(a,"style",n),ds(a,l.precedence,t),e.instance=a;case"stylesheet":n=Un(l.href);var s=t.querySelector(Qu(n));if(s)return e.state.loading|=4,e.instance=s,Wt(s),s;a=Nm(l),(n=Xe.get(n))&&Jr(a,n),s=(t.ownerDocument||t).createElement("link"),Wt(s);var f=s;return f._p=new Promise(function(d,g){f.onload=d,f.onerror=g}),ne(s,"link",a),e.state.loading|=4,ds(s,l.precedence,t),e.instance=s;case"script":return s=wn(l.src),(n=t.querySelector(Lu(s)))?(e.instance=n,Wt(n),n):(a=l,(n=Xe.get(s))&&(a=T({},l),kr(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Wt(n),ne(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ds(a,l.precedence,t));return e.instance}function ds(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,f=0;f<a.length;f++){var d=a[f];if(d.dataset.precedence===e)s=d;else if(s!==n)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Jr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function kr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var hs=null;function Dm(t,e,l){if(hs===null){var a=new Map,n=hs=new Map;n.set(l,a)}else n=hs,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var s=l[n];if(!(s[lu]||s[te]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(e)||"";f=t+f;var d=a.get(f);d?d.push(s):a.set(f,[s])}}return a}function Um(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function D0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function wm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function U0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Un(a.href),s=e.querySelector(Qu(n));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ms.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=s,Wt(s);return}s=e.ownerDocument||e,a=Nm(a),(n=Xe.get(n))&&Jr(a,n),s=s.createElement("link"),Wt(s);var f=s;f._p=new Promise(function(d,g){f.onload=d,f.onerror=g}),ne(s,"link",a),l.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=ms.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Fr=0;function w0(t,e){return t.stylesheets&&t.count===0&&vs(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&vs(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&Fr===0&&(Fr=62500*y0());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&vs(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>Fr?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ms(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ys=null;function vs(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ys=new Map,e.forEach(H0,t),ys=null,ms.call(t))}function H0(t,e){if(!(e.state.loading&4)){var l=ys.get(t);if(l)var a=l.get(null);else{l=new Map,ys.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var f=n[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=e.instance,f=n.getAttribute("data-precedence"),s=l.get(f)||a,s===a&&l.set(null,n),l.set(f,n),this.count++,a=ms.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Yu={$$typeof:Q,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function q0(t,e,l,a,n,s,f,d,g){this.tag=1,this.containerInfo=t,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=Ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.hiddenUpdates=Ks(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Hm(t,e,l,a,n,s,f,d,g,_,M,w){return t=new q0(t,e,l,f,g,_,M,w,d),e=1,s===!0&&(e|=24),s=Re(3,null,null,e),t.current=s,s.stateNode=t,e=_c(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:e},Mc(s),t}function qm(t){return t?(t=dn,t):dn}function Bm(t,e,l,a,n,s){n=qm(n),a.context===null?a.context=n:a.pendingContext=n,a=Xl(e),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=Kl(t,a,e),l!==null&&(Se(l,t,e),bu(l,t,e))}function Qm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function $r(t,e){Qm(t,e),(t=t.alternate)&&Qm(t,e)}function Lm(t){if(t.tag===13||t.tag===31){var e=Oa(t,67108864);e!==null&&Se(e,t,67108864),$r(t,67108864)}}function Ym(t){if(t.tag===13||t.tag===31){var e=Me();e=Zs(e);var l=Oa(t,e);l!==null&&Se(l,t,e),$r(t,e)}}var ps=!0;function B0(t,e,l,a){var n=D.T;D.T=null;var s=Z.p;try{Z.p=2,Wr(t,e,l,a)}finally{Z.p=s,D.T=n}}function Q0(t,e,l,a){var n=D.T;D.T=null;var s=Z.p;try{Z.p=8,Wr(t,e,l,a)}finally{Z.p=s,D.T=n}}function Wr(t,e,l,a){if(ps){var n=Pr(a);if(n===null)qr(t,e,a,gs,l),Xm(t,a);else if(Y0(n,t,e,l,a))a.stopPropagation();else if(Xm(t,a),e&4&&-1<L0.indexOf(t)){for(;n!==null;){var s=tn(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=ba(s.pendingLanes);if(f!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var g=1<<31-Ae(f);d.entanglements[1]|=g,f&=~g}al(s),(St&6)===0&&(ts=Te()+500,wu(0))}}break;case 31:case 13:d=Oa(s,2),d!==null&&Se(d,s,2),ls(),$r(s,2)}if(s=Pr(a),s===null&&qr(t,e,a,gs,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else qr(t,e,a,null,l)}}function Pr(t){return t=tc(t),Ir(t)}var gs=null;function Ir(t){if(gs=null,t=Ia(t),t!==null){var e=h(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=v(e),t!==null)return t;t=null}else if(l===31){if(t=S(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return gs=t,null}function Gm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Av()){case Ff:return 2;case $f:return 8;case si:case Cv:return 32;case Wf:return 268435456;default:return 32}default:return 32}}var tf=!1,ea=null,la=null,aa=null,Gu=new Map,Xu=new Map,na=[],L0="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 Xm(t,e){switch(t){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":la=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":Gu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xu.delete(e.pointerId)}}function Ku(t,e,l,a,n,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},e!==null&&(e=tn(e),e!==null&&Lm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Y0(t,e,l,a,n){switch(e){case"focusin":return ea=Ku(ea,t,e,l,a,n),!0;case"dragenter":return la=Ku(la,t,e,l,a,n),!0;case"mouseover":return aa=Ku(aa,t,e,l,a,n),!0;case"pointerover":var s=n.pointerId;return Gu.set(s,Ku(Gu.get(s)||null,t,e,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Xu.set(s,Ku(Xu.get(s)||null,t,e,l,a,n)),!0}return!1}function Km(t){var e=Ia(t.target);if(e!==null){var l=h(e);if(l!==null){if(e=l.tag,e===13){if(e=v(l),e!==null){t.blockedOn=e,ao(t.priority,function(){Ym(l)});return}}else if(e===31){if(e=S(l),e!==null){t.blockedOn=e,ao(t.priority,function(){Ym(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function bs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Pr(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Is=a,l.target.dispatchEvent(a),Is=null}else return e=tn(l),e!==null&&Lm(e),t.blockedOn=l,!1;e.shift()}return!0}function Zm(t,e,l){bs(t)&&l.delete(e)}function G0(){tf=!1,ea!==null&&bs(ea)&&(ea=null),la!==null&&bs(la)&&(la=null),aa!==null&&bs(aa)&&(aa=null),Gu.forEach(Zm),Xu.forEach(Zm)}function Ss(t,e){t.blockedOn===e&&(t.blockedOn=null,tf||(tf=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,G0)))}var xs=null;function Vm(t){xs!==t&&(xs=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){xs===t&&(xs=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Ir(a||l)===null)continue;break}var s=tn(l);s!==null&&(t.splice(e,3),e-=3,Pc(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Hn(t){function e(g){return Ss(g,t)}ea!==null&&Ss(ea,t),la!==null&&Ss(la,t),aa!==null&&Ss(aa,t),Gu.forEach(e),Xu.forEach(e);for(var l=0;l<na.length;l++){var a=na[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<na.length&&(l=na[0],l.blockedOn===null);)Km(l),l.blockedOn===null&&na.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],f=n[me]||null;if(typeof s=="function")f||Vm(l);else if(f){var d=null;if(s&&s.hasAttribute("formAction")){if(n=s,f=s[me]||null)d=f.formAction;else if(Ir(n)!==null)continue}else d=f.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Vm(l)}}}function Jm(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function ef(t){this._internalRoot=t}Es.prototype.render=ef.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=Me();Bm(l,a,t,e,null,null)},Es.prototype.unmount=ef.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Bm(t.current,2,null,t,null,null),ls(),e[Pa]=null}};function Es(t){this._internalRoot=t}Es.prototype.unstable_scheduleHydration=function(t){if(t){var e=lo();t={blockedOn:null,target:t,priority:e};for(var l=0;l<na.length&&e!==0&&e<na[l].priority;l++);na.splice(l,0,t),l===0&&Km(t)}};var km=i.version;if(km!=="19.2.4")throw Error(r(527,km,"19.2.4"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(e),t=t!==null?A(t):null,t=t===null?null:t.stateNode,t};var X0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ts.isDisabled&&Ts.supportsFiber)try{In=Ts.inject(X0),Oe=Ts}catch{}}return Vu.createRoot=function(t,e){if(!o(t))throw Error(r(299));var l=!1,a="",n=eh,s=lh,f=ah;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Hm(t,1,!1,null,null,l,a,null,n,s,f,Jm),t[Pa]=e.current,Hr(t),new ef(e)},Vu.hydrateRoot=function(t,e,l){if(!o(t))throw Error(r(299));var a=!1,n="",s=eh,f=lh,d=ah,g=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),e=Hm(t,1,!0,e,l??null,a,n,g,s,f,d,Jm),e.context=qm(null),l=e.current,a=Me(),a=Zs(a),n=Xl(a),n.callback=null,Kl(l,n,a),l=a,e.current.lanes=l,eu(e,l),al(e),t[Pa]=e.current,Hr(t),new Es(e)},Vu.version="19.2.4",Vu}var uy;function I0(){if(uy)return uf.exports;uy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),uf.exports=P0(),uf.exports}var tg=I0();/**
 * react-router v7.13.0
 *
 * 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 iy="popstate";function eg(u={}){function i(r,o){let{pathname:h,search:v,hash:S}=r.location;return mf("",{pathname:h,search:v,hash:S},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function c(r,o){return typeof o=="string"?o:Fu(o)}return ag(i,c,null,u)}function Ht(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function sl(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function lg(){return Math.random().toString(36).substring(2,10)}function sy(u,i){return{usr:u.state,key:u.key,idx:i}}function mf(u,i,c=null,r){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?Fn(i):i,state:c,key:i&&i.key||r||lg()}}function Fu({pathname:u="/",search:i="",hash:c=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(u+=c.charAt(0)==="#"?c:"#"+c),u}function Fn(u){let i={};if(u){let c=u.indexOf("#");c>=0&&(i.hash=u.substring(c),u=u.substring(0,c));let r=u.indexOf("?");r>=0&&(i.search=u.substring(r),u=u.substring(0,r)),u&&(i.pathname=u)}return i}function ag(u,i,c,r={}){let{window:o=document.defaultView,v5Compat:h=!1}=r,v=o.history,S="POP",p=null,m=A();m==null&&(m=0,v.replaceState({...v.state,idx:m},""));function A(){return(v.state||{idx:null}).idx}function T(){S="POP";let Y=A(),K=Y==null?null:Y-m;m=Y,p&&p({action:S,location:G.location,delta:K})}function z(Y,K){S="PUSH";let k=mf(G.location,Y,K);m=A()+1;let Q=sy(k,m),H=G.createHref(k);try{v.pushState(Q,"",H)}catch(lt){if(lt instanceof DOMException&&lt.name==="DataCloneError")throw lt;o.location.assign(H)}h&&p&&p({action:S,location:G.location,delta:1})}function B(Y,K){S="REPLACE";let k=mf(G.location,Y,K);m=A();let Q=sy(k,m),H=G.createHref(k);v.replaceState(Q,"",H),h&&p&&p({action:S,location:G.location,delta:0})}function X(Y){return ng(Y)}let G={get action(){return S},get location(){return u(o,v)},listen(Y){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(iy,T),p=Y,()=>{o.removeEventListener(iy,T),p=null}},createHref(Y){return i(o,Y)},createURL:X,encodeLocation(Y){let K=X(Y);return{pathname:K.pathname,search:K.search,hash:K.hash}},push:z,replace:B,go(Y){return v.go(Y)}};return G}function ng(u,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Ht(c,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:Fu(u);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function Qy(u,i,c="/"){return ug(u,i,c,!1)}function ug(u,i,c,r){let o=typeof i=="string"?Fn(i):i,h=Ul(o.pathname||"/",c);if(h==null)return null;let v=Ly(u);ig(v);let S=null;for(let p=0;S==null&&p<v.length;++p){let m=pg(h);S=yg(v[p],m,r)}return S}function Ly(u,i=[],c=[],r="",o=!1){let h=(v,S,p=o,m)=>{let A={relativePath:m===void 0?v.path||"":m,caseSensitive:v.caseSensitive===!0,childrenIndex:S,route:v};if(A.relativePath.startsWith("/")){if(!A.relativePath.startsWith(r)&&p)return;Ht(A.relativePath.startsWith(r),`Absolute route path "${A.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),A.relativePath=A.relativePath.slice(r.length)}let T=Ml([r,A.relativePath]),z=c.concat(A);v.children&&v.children.length>0&&(Ht(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${T}".`),Ly(v.children,i,z,T,p)),!(v.path==null&&!v.index)&&i.push({path:T,score:hg(T,v.index),routesMeta:z})};return u.forEach((v,S)=>{var p;if(v.path===""||!((p=v.path)!=null&&p.includes("?")))h(v,S);else for(let m of Yy(v.path))h(v,S,!0,m)}),i}function Yy(u){let i=u.split("/");if(i.length===0)return[];let[c,...r]=i,o=c.endsWith("?"),h=c.replace(/\?$/,"");if(r.length===0)return o?[h,""]:[h];let v=Yy(r.join("/")),S=[];return S.push(...v.map(p=>p===""?h:[h,p].join("/"))),o&&S.push(...v),S.map(p=>u.startsWith("/")&&p===""?"/":p)}function ig(u){u.sort((i,c)=>i.score!==c.score?c.score-i.score:mg(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var sg=/^:[\w-]+$/,cg=3,rg=2,fg=1,og=10,dg=-2,cy=u=>u==="*";function hg(u,i){let c=u.split("/"),r=c.length;return c.some(cy)&&(r+=dg),i&&(r+=rg),c.filter(o=>!cy(o)).reduce((o,h)=>o+(sg.test(h)?cg:h===""?fg:og),r)}function mg(u,i){return u.length===i.length&&u.slice(0,-1).every((r,o)=>r===i[o])?u[u.length-1]-i[i.length-1]:0}function yg(u,i,c=!1){let{routesMeta:r}=u,o={},h="/",v=[];for(let S=0;S<r.length;++S){let p=r[S],m=S===r.length-1,A=h==="/"?i:i.slice(h.length)||"/",T=zs({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},A),z=p.route;if(!T&&m&&c&&!r[r.length-1].route.index&&(T=zs({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},A)),!T)return null;Object.assign(o,T.params),v.push({params:o,pathname:Ml([h,T.pathname]),pathnameBase:xg(Ml([h,T.pathnameBase])),route:z}),T.pathnameBase!=="/"&&(h=Ml([h,T.pathnameBase]))}return v}function zs(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[c,r]=vg(u.path,u.caseSensitive,u.end),o=i.match(c);if(!o)return null;let h=o[0],v=h.replace(/(.)\/+$/,"$1"),S=o.slice(1);return{params:r.reduce((m,{paramName:A,isOptional:T},z)=>{if(A==="*"){let X=S[z]||"";v=h.slice(0,h.length-X.length).replace(/(.)\/+$/,"$1")}const B=S[z];return T&&!B?m[A]=void 0:m[A]=(B||"").replace(/%2F/g,"/"),m},{}),pathname:h,pathnameBase:v,pattern:u}}function vg(u,i=!1,c=!0){sl(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],o="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,S,p)=>(r.push({paramName:S,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),o+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":u!==""&&u!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function pg(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return sl(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Ul(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=u.charAt(c);return r&&r!=="/"?null:u.slice(c)||"/"}var gg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bg(u,i="/"){let{pathname:c,search:r="",hash:o=""}=typeof u=="string"?Fn(u):u,h;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?h=ry(c.substring(1),"/"):h=ry(c,i)):h=i,{pathname:h,search:Eg(r),hash:Tg(o)}}function ry(u,i){let c=i.replace(/\/+$/,"").split("/");return u.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function ff(u,i,c,r){return`Cannot include a '${u}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Sg(u){return u.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function Gy(u){let i=Sg(u);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function Xy(u,i,c,r=!1){let o;typeof u=="string"?o=Fn(u):(o={...u},Ht(!o.pathname||!o.pathname.includes("?"),ff("?","pathname","search",o)),Ht(!o.pathname||!o.pathname.includes("#"),ff("#","pathname","hash",o)),Ht(!o.search||!o.search.includes("#"),ff("#","search","hash",o)));let h=u===""||o.pathname==="",v=h?"/":o.pathname,S;if(v==null)S=c;else{let T=i.length-1;if(!r&&v.startsWith("..")){let z=v.split("/");for(;z[0]==="..";)z.shift(),T-=1;o.pathname=z.join("/")}S=T>=0?i[T]:"/"}let p=bg(o,S),m=v&&v!=="/"&&v.endsWith("/"),A=(h||v===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(m||A)&&(p.pathname+="/"),p}var Ml=u=>u.join("/").replace(/\/\/+/g,"/"),xg=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),Eg=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Tg=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,Og=class{constructor(u,i,c,r=!1){this.status=u,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Ag(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Cg(u){return u.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ky=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zy(u,i){let c=u;if(typeof c!="string"||!gg.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,o=!1;if(Ky)try{let h=new URL(window.location.href),v=c.startsWith("//")?new URL(h.protocol+c):new URL(c),S=Ul(v.pathname,i);v.origin===h.origin&&S!=null?c=S+v.search+v.hash:o=!0}catch{sl(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Vy=["POST","PUT","PATCH","DELETE"];new Set(Vy);var Rg=["GET",...Vy];new Set(Rg);var $n=C.createContext(null);$n.displayName="DataRouter";var Ds=C.createContext(null);Ds.displayName="DataRouterState";var _g=C.createContext(!1),Jy=C.createContext({isTransitioning:!1});Jy.displayName="ViewTransition";var jg=C.createContext(new Map);jg.displayName="Fetchers";var zg=C.createContext(null);zg.displayName="Await";var Ve=C.createContext(null);Ve.displayName="Navigation";var li=C.createContext(null);li.displayName="Location";var Pe=C.createContext({outlet:null,matches:[],isDataRoute:!1});Pe.displayName="Route";var wf=C.createContext(null);wf.displayName="RouteError";var ky="REACT_ROUTER_ERROR",Ng="REDIRECT",Mg="ROUTE_ERROR_RESPONSE";function Dg(u){if(u.startsWith(`${ky}:${Ng}:{`))try{let i=JSON.parse(u.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 Ug(u){if(u.startsWith(`${ky}:${Mg}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Og(i.status,i.statusText,i.data)}catch{}}function wg(u,{relative:i}={}){Ht(ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=C.useContext(Ve),{hash:o,pathname:h,search:v}=ui(u,{relative:i}),S=h;return c!=="/"&&(S=h==="/"?c:Ml([c,h])),r.createHref({pathname:S,search:v,hash:o})}function ai(){return C.useContext(li)!=null}function $a(){return Ht(ai(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(li).location}var Fy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $y(u){C.useContext(Ve).static||C.useLayoutEffect(u)}function Hf(){let{isDataRoute:u}=C.useContext(Pe);return u?$g():Hg()}function Hg(){Ht(ai(),"useNavigate() may be used only in the context of a <Router> component.");let u=C.useContext($n),{basename:i,navigator:c}=C.useContext(Ve),{matches:r}=C.useContext(Pe),{pathname:o}=$a(),h=JSON.stringify(Gy(r)),v=C.useRef(!1);return $y(()=>{v.current=!0}),C.useCallback((p,m={})=>{if(sl(v.current,Fy),!v.current)return;if(typeof p=="number"){c.go(p);return}let A=Xy(p,JSON.parse(h),o,m.relative==="path");u==null&&i!=="/"&&(A.pathname=A.pathname==="/"?i:Ml([i,A.pathname])),(m.replace?c.replace:c.push)(A,m.state,m)},[i,c,h,o,u])}var qg=C.createContext(null);function Bg(u){let i=C.useContext(Pe).outlet;return C.useMemo(()=>i&&C.createElement(qg.Provider,{value:u},i),[i,u])}function ni(){let{matches:u}=C.useContext(Pe),i=u[u.length-1];return i?i.params:{}}function ui(u,{relative:i}={}){let{matches:c}=C.useContext(Pe),{pathname:r}=$a(),o=JSON.stringify(Gy(c));return C.useMemo(()=>Xy(u,JSON.parse(o),r,i==="path"),[u,o,r,i])}function Qg(u,i){return Wy(u,i)}function Wy(u,i,c,r,o){var k;Ht(ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=C.useContext(Ve),{matches:v}=C.useContext(Pe),S=v[v.length-1],p=S?S.params:{},m=S?S.pathname:"/",A=S?S.pathnameBase:"/",T=S&&S.route;{let Q=T&&T.path||"";Iy(m,!T||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${Q}">) 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="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let z=$a(),B;if(i){let Q=typeof i=="string"?Fn(i):i;Ht(A==="/"||((k=Q.pathname)==null?void 0:k.startsWith(A)),`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 "${A}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),B=Q}else B=z;let X=B.pathname||"/",G=X;if(A!=="/"){let Q=A.replace(/^\//,"").split("/");G="/"+X.replace(/^\//,"").split("/").slice(Q.length).join("/")}let Y=Qy(u,{pathname:G});sl(T||Y!=null,`No routes matched location "${B.pathname}${B.search}${B.hash}" `),sl(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.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 K=Kg(Y&&Y.map(Q=>Object.assign({},Q,{params:Object.assign({},p,Q.params),pathname:Ml([A,h.encodeLocation?h.encodeLocation(Q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?A:Ml([A,h.encodeLocation?h.encodeLocation(Q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),v,c,r,o);return i&&K?C.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...B},navigationType:"POP"}},K):K}function Lg(){let u=Fg(),i=Ag(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),c=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",u),v=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:h},"ErrorBoundary")," or"," ",C.createElement("code",{style:h},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},i),c?C.createElement("pre",{style:o},c):null,v)}var Yg=C.createElement(Lg,null),Py=class extends C.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const c=Ug(u.digest);c&&(u=c)}let i=u!==void 0?C.createElement(Pe.Provider,{value:this.props.routeContext},C.createElement(wf.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?C.createElement(Gg,{error:u},i):i}};Py.contextType=_g;var of=new WeakMap;function Gg({children:u,error:i}){let{basename:c}=C.useContext(Ve);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Dg(i.digest);if(r){let o=of.get(i);if(o)throw o;let h=Zy(r.location,c);if(Ky&&!of.get(i))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw of.set(i,v),v}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return u}function Xg({routeContext:u,match:i,children:c}){let r=C.useContext($n);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),C.createElement(Pe.Provider,{value:u},c)}function Kg(u,i=[],c=null,r=null,o=null){if(u==null){if(!c)return null;if(c.errors)u=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)u=c.matches;else return null}let h=u,v=c==null?void 0:c.errors;if(v!=null){let A=h.findIndex(T=>T.route.id&&(v==null?void 0:v[T.route.id])!==void 0);Ht(A>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),h=h.slice(0,Math.min(h.length,A+1))}let S=!1,p=-1;if(c)for(let A=0;A<h.length;A++){let T=h[A];if((T.route.HydrateFallback||T.route.hydrateFallbackElement)&&(p=A),T.route.id){let{loaderData:z,errors:B}=c,X=T.route.loader&&!z.hasOwnProperty(T.route.id)&&(!B||B[T.route.id]===void 0);if(T.route.lazy||X){S=!0,p>=0?h=h.slice(0,p+1):h=[h[0]];break}}}let m=c&&r?(A,T)=>{var z,B;r(A,{location:c.location,params:((B=(z=c.matches)==null?void 0:z[0])==null?void 0:B.params)??{},unstable_pattern:Cg(c.matches),errorInfo:T})}:void 0;return h.reduceRight((A,T,z)=>{let B,X=!1,G=null,Y=null;c&&(B=v&&T.route.id?v[T.route.id]:void 0,G=T.route.errorElement||Yg,S&&(p<0&&z===0?(Iy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),X=!0,Y=null):p===z&&(X=!0,Y=T.route.hydrateFallbackElement||null)));let K=i.concat(h.slice(0,z+1)),k=()=>{let Q;return B?Q=G:X?Q=Y:T.route.Component?Q=C.createElement(T.route.Component,null):T.route.element?Q=T.route.element:Q=A,C.createElement(Xg,{match:T,routeContext:{outlet:A,matches:K,isDataRoute:c!=null},children:Q})};return c&&(T.route.ErrorBoundary||T.route.errorElement||z===0)?C.createElement(Py,{location:c.location,revalidation:c.revalidation,component:G,error:B,children:k(),routeContext:{outlet:null,matches:K,isDataRoute:!0},onError:m}):k()},null)}function qf(u){return`${u} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zg(u){let i=C.useContext($n);return Ht(i,qf(u)),i}function Vg(u){let i=C.useContext(Ds);return Ht(i,qf(u)),i}function Jg(u){let i=C.useContext(Pe);return Ht(i,qf(u)),i}function Bf(u){let i=Jg(u),c=i.matches[i.matches.length-1];return Ht(c.route.id,`${u} can only be used on routes that contain a unique "id"`),c.route.id}function kg(){return Bf("useRouteId")}function Fg(){var r;let u=C.useContext(wf),i=Vg("useRouteError"),c=Bf("useRouteError");return u!==void 0?u:(r=i.errors)==null?void 0:r[c]}function $g(){let{router:u}=Zg("useNavigate"),i=Bf("useNavigate"),c=C.useRef(!1);return $y(()=>{c.current=!0}),C.useCallback(async(o,h={})=>{sl(c.current,Fy),c.current&&(typeof o=="number"?await u.navigate(o):await u.navigate(o,{fromRouteId:i,...h}))},[u,i])}var fy={};function Iy(u,i,c){!i&&!fy[u]&&(fy[u]=!0,sl(!1,c))}C.memo(Wg);function Wg({routes:u,future:i,state:c,onError:r}){return Wy(u,void 0,c,r,i)}function Pg(u){return Bg(u.context)}function qa(u){Ht(!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 Ig({basename:u="/",children:i=null,location:c,navigationType:r="POP",navigator:o,static:h=!1,unstable_useTransitions:v}){Ht(!ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let S=u.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:S,navigator:o,static:h,unstable_useTransitions:v,future:{}}),[S,o,h,v]);typeof c=="string"&&(c=Fn(c));let{pathname:m="/",search:A="",hash:T="",state:z=null,key:B="default"}=c,X=C.useMemo(()=>{let G=Ul(m,S);return G==null?null:{location:{pathname:G,search:A,hash:T,state:z,key:B},navigationType:r}},[S,m,A,T,z,B,r]);return sl(X!=null,`<Router basename="${S}"> is not able to match the URL "${m}${A}${T}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:C.createElement(Ve.Provider,{value:p},C.createElement(li.Provider,{children:i,value:X}))}function tb({children:u,location:i}){return Qg(yf(u),i)}function yf(u,i=[]){let c=[];return C.Children.forEach(u,(r,o)=>{if(!C.isValidElement(r))return;let h=[...i,o];if(r.type===C.Fragment){c.push.apply(c,yf(r.props.children,h));return}Ht(r.type===qa,`[${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>`),Ht(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||h.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&&(v.children=yf(r.props.children,h)),c.push(v)}),c}var Rs="get",_s="application/x-www-form-urlencoded";function Us(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function eb(u){return Us(u)&&u.tagName.toLowerCase()==="button"}function lb(u){return Us(u)&&u.tagName.toLowerCase()==="form"}function ab(u){return Us(u)&&u.tagName.toLowerCase()==="input"}function nb(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function ub(u,i){return u.button===0&&(!i||i==="_self")&&!nb(u)}var As=null;function ib(){if(As===null)try{new FormData(document.createElement("form"),0),As=!1}catch{As=!0}return As}var sb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function df(u){return u!=null&&!sb.has(u)?(sl(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_s}"`),null):u}function cb(u,i){let c,r,o,h,v;if(lb(u)){let S=u.getAttribute("action");r=S?Ul(S,i):null,c=u.getAttribute("method")||Rs,o=df(u.getAttribute("enctype"))||_s,h=new FormData(u)}else if(eb(u)||ab(u)&&(u.type==="submit"||u.type==="image")){let S=u.form;if(S==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=u.getAttribute("formaction")||S.getAttribute("action");if(r=p?Ul(p,i):null,c=u.getAttribute("formmethod")||S.getAttribute("method")||Rs,o=df(u.getAttribute("formenctype"))||df(S.getAttribute("enctype"))||_s,h=new FormData(S,u),!ib()){let{name:m,type:A,value:T}=u;if(A==="image"){let z=m?`${m}.`:"";h.append(`${z}x`,"0"),h.append(`${z}y`,"0")}else m&&h.append(m,T)}}else{if(Us(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Rs,r=null,o=_s,v=u}return h&&o==="text/plain"&&(v=h,h=void 0),{action:r,method:c.toLowerCase(),encType:o,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qf(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function rb(u,i,c,r){let o=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return c?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&Ul(o.pathname,i)==="/"?o.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function fb(u,i){if(u.id in i)return i[u.id];try{let c=await import(u.module);return i[u.id]=c,c}catch(c){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ob(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function db(u,i,c){let r=await Promise.all(u.map(async o=>{let h=i.routes[o.route.id];if(h){let v=await fb(h,c);return v.links?v.links():[]}return[]}));return vb(r.flat(1).filter(ob).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function oy(u,i,c,r,o,h){let v=(p,m)=>c[m]?p.route.id!==c[m].route.id:!0,S=(p,m)=>{var A;return c[m].pathname!==p.pathname||((A=c[m].route.path)==null?void 0:A.endsWith("*"))&&c[m].params["*"]!==p.params["*"]};return h==="assets"?i.filter((p,m)=>v(p,m)||S(p,m)):h==="data"?i.filter((p,m)=>{var T;let A=r.routes[p.route.id];if(!A||!A.hasLoader)return!1;if(v(p,m)||S(p,m))return!0;if(p.route.shouldRevalidate){let z=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((T=c[0])==null?void 0:T.params)||{},nextUrl:new URL(u,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function hb(u,i,{includeHydrateFallback:c}={}){return mb(u.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let h=[o.module];return o.clientActionModule&&(h=h.concat(o.clientActionModule)),o.clientLoaderModule&&(h=h.concat(o.clientLoaderModule)),c&&o.hydrateFallbackModule&&(h=h.concat(o.hydrateFallbackModule)),o.imports&&(h=h.concat(o.imports)),h}).flat(1))}function mb(u){return[...new Set(u)]}function yb(u){let i={},c=Object.keys(u).sort();for(let r of c)i[r]=u[r];return i}function vb(u,i){let c=new Set;return new Set(i),u.reduce((r,o)=>{let h=JSON.stringify(yb(o));return c.has(h)||(c.add(h),r.push({key:h,link:o})),r},[])}function tv(){let u=C.useContext($n);return Qf(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function pb(){let u=C.useContext(Ds);return Qf(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Lf=C.createContext(void 0);Lf.displayName="FrameworkContext";function ev(){let u=C.useContext(Lf);return Qf(u,"You must render this element inside a <HydratedRouter> element"),u}function gb(u,i){let c=C.useContext(Lf),[r,o]=C.useState(!1),[h,v]=C.useState(!1),{onFocus:S,onBlur:p,onMouseEnter:m,onMouseLeave:A,onTouchStart:T}=i,z=C.useRef(null);C.useEffect(()=>{if(u==="render"&&v(!0),u==="viewport"){let G=K=>{K.forEach(k=>{v(k.isIntersecting)})},Y=new IntersectionObserver(G,{threshold:.5});return z.current&&Y.observe(z.current),()=>{Y.disconnect()}}},[u]),C.useEffect(()=>{if(r){let G=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(G)}}},[r]);let B=()=>{o(!0)},X=()=>{o(!1),v(!1)};return c?u!=="intent"?[h,z,{}]:[h,z,{onFocus:Ju(S,B),onBlur:Ju(p,X),onMouseEnter:Ju(m,B),onMouseLeave:Ju(A,X),onTouchStart:Ju(T,B)}]:[!1,z,{}]}function Ju(u,i){return c=>{u&&u(c),c.defaultPrevented||i(c)}}function bb({page:u,...i}){let{router:c}=tv(),r=C.useMemo(()=>Qy(c.routes,u,c.basename),[c.routes,u,c.basename]);return r?C.createElement(xb,{page:u,matches:r,...i}):null}function Sb(u){let{manifest:i,routeModules:c}=ev(),[r,o]=C.useState([]);return C.useEffect(()=>{let h=!1;return db(u,i,c).then(v=>{h||o(v)}),()=>{h=!0}},[u,i,c]),r}function xb({page:u,matches:i,...c}){let r=$a(),{future:o,manifest:h,routeModules:v}=ev(),{basename:S}=tv(),{loaderData:p,matches:m}=pb(),A=C.useMemo(()=>oy(u,i,m,h,r,"data"),[u,i,m,h,r]),T=C.useMemo(()=>oy(u,i,m,h,r,"assets"),[u,i,m,h,r]),z=C.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let G=new Set,Y=!1;if(i.forEach(k=>{var H;let Q=h.routes[k.route.id];!Q||!Q.hasLoader||(!A.some(lt=>lt.route.id===k.route.id)&&k.route.id in p&&((H=v[k.route.id])!=null&&H.shouldRevalidate)||Q.hasClientLoader?Y=!0:G.add(k.route.id))}),G.size===0)return[];let K=rb(u,S,o.unstable_trailingSlashAwareDataRequests,"data");return Y&&G.size>0&&K.searchParams.set("_routes",i.filter(k=>G.has(k.route.id)).map(k=>k.route.id).join(",")),[K.pathname+K.search]},[S,o.unstable_trailingSlashAwareDataRequests,p,r,h,A,i,u,v]),B=C.useMemo(()=>hb(T,h),[T,h]),X=Sb(T);return C.createElement(C.Fragment,null,z.map(G=>C.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...c})),B.map(G=>C.createElement("link",{key:G,rel:"modulepreload",href:G,...c})),X.map(({key:G,link:Y})=>C.createElement("link",{key:G,nonce:c.nonce,...Y,crossOrigin:Y.crossOrigin??c.crossOrigin})))}function Eb(...u){return i=>{u.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var Tb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Tb&&(window.__reactRouterVersion="7.13.0")}catch{}function Ob({basename:u,children:i,unstable_useTransitions:c,window:r}){let o=C.useRef();o.current==null&&(o.current=eg({window:r,v5Compat:!0}));let h=o.current,[v,S]=C.useState({action:h.action,location:h.location}),p=C.useCallback(m=>{c===!1?S(m):C.startTransition(()=>S(m))},[c]);return C.useLayoutEffect(()=>h.listen(p),[h,p]),C.createElement(Ig,{basename:u,children:i,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:c})}var lv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,av=C.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:o,reloadDocument:h,replace:v,state:S,target:p,to:m,preventScrollReset:A,viewTransition:T,unstable_defaultShouldRevalidate:z,...B},X){let{basename:G,unstable_useTransitions:Y}=C.useContext(Ve),K=typeof m=="string"&&lv.test(m),k=Zy(m,G);m=k.to;let Q=wg(m,{relative:o}),[H,lt,L]=gb(r,B),tt=Rb(m,{replace:v,state:S,target:p,preventScrollReset:A,relative:o,viewTransition:T,unstable_defaultShouldRevalidate:z,unstable_useTransitions:Y});function at(At){i&&i(At),At.defaultPrevented||tt(At)}let ht=C.createElement("a",{...B,...L,href:k.absoluteURL||Q,onClick:k.isExternal||h?i:at,ref:Eb(X,lt),target:p,"data-discover":!K&&c==="render"?"true":void 0});return H&&!K?C.createElement(C.Fragment,null,ht,C.createElement(bb,{page:Q})):ht});av.displayName="Link";var vf=C.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:o=!1,style:h,to:v,viewTransition:S,children:p,...m},A){let T=ui(v,{relative:m.relative}),z=$a(),B=C.useContext(Ds),{navigator:X,basename:G}=C.useContext(Ve),Y=B!=null&&Mb(T)&&S===!0,K=X.encodeLocation?X.encodeLocation(T).pathname:T.pathname,k=z.pathname,Q=B&&B.navigation&&B.navigation.location?B.navigation.location.pathname:null;c||(k=k.toLowerCase(),Q=Q?Q.toLowerCase():null,K=K.toLowerCase()),Q&&G&&(Q=Ul(Q,G)||Q);const H=K!=="/"&&K.endsWith("/")?K.length-1:K.length;let lt=k===K||!o&&k.startsWith(K)&&k.charAt(H)==="/",L=Q!=null&&(Q===K||!o&&Q.startsWith(K)&&Q.charAt(K.length)==="/"),tt={isActive:lt,isPending:L,isTransitioning:Y},at=lt?i:void 0,ht;typeof r=="function"?ht=r(tt):ht=[r,lt?"active":null,L?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let At=typeof h=="function"?h(tt):h;return C.createElement(av,{...m,"aria-current":at,className:ht,ref:A,style:At,to:v,viewTransition:S},typeof p=="function"?p(tt):p)});vf.displayName="NavLink";var Ab=C.forwardRef(({discover:u="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:o,state:h,method:v=Rs,action:S,onSubmit:p,relative:m,preventScrollReset:A,viewTransition:T,unstable_defaultShouldRevalidate:z,...B},X)=>{let{unstable_useTransitions:G}=C.useContext(Ve),Y=zb(),K=Nb(S,{relative:m}),k=v.toLowerCase()==="get"?"get":"post",Q=typeof S=="string"&&lv.test(S),H=lt=>{if(p&&p(lt),lt.defaultPrevented)return;lt.preventDefault();let L=lt.nativeEvent.submitter,tt=(L==null?void 0:L.getAttribute("formmethod"))||v,at=()=>Y(L||lt.currentTarget,{fetcherKey:i,method:tt,navigate:c,replace:o,state:h,relative:m,preventScrollReset:A,viewTransition:T,unstable_defaultShouldRevalidate:z});G&&c!==!1?C.startTransition(()=>at()):at()};return C.createElement("form",{ref:X,method:k,action:K,onSubmit:r?p:H,...B,"data-discover":!Q&&u==="render"?"true":void 0})});Ab.displayName="Form";function Cb(u){return`${u} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function nv(u){let i=C.useContext($n);return Ht(i,Cb(u)),i}function Rb(u,{target:i,replace:c,state:r,preventScrollReset:o,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:S,unstable_useTransitions:p}={}){let m=Hf(),A=$a(),T=ui(u,{relative:h});return C.useCallback(z=>{if(ub(z,i)){z.preventDefault();let B=c!==void 0?c:Fu(A)===Fu(T),X=()=>m(u,{replace:B,state:r,preventScrollReset:o,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:S});p?C.startTransition(()=>X()):X()}},[A,m,T,c,r,i,u,o,h,v,S,p])}var _b=0,jb=()=>`__${String(++_b)}__`;function zb(){let{router:u}=nv("useSubmit"),{basename:i}=C.useContext(Ve),c=kg(),r=u.fetch,o=u.navigate;return C.useCallback(async(h,v={})=>{let{action:S,method:p,encType:m,formData:A,body:T}=cb(h,i);if(v.navigate===!1){let z=v.fetcherKey||jb();await r(z,c,v.action||S,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:A,body:T,formMethod:v.method||p,formEncType:v.encType||m,flushSync:v.flushSync})}else await o(v.action||S,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:A,body:T,formMethod:v.method||p,formEncType:v.encType||m,replace:v.replace,state:v.state,fromRouteId:c,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,o,i,c])}function Nb(u,{relative:i}={}){let{basename:c}=C.useContext(Ve),r=C.useContext(Pe);Ht(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),h={...ui(u||".",{relative:i})},v=$a();if(u==null){h.search=v.search;let S=new URLSearchParams(h.search),p=S.getAll("index");if(p.some(A=>A==="")){S.delete("index"),p.filter(T=>T).forEach(T=>S.append("index",T));let A=S.toString();h.search=A?`?${A}`:""}}return(!u||u===".")&&o.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(h.pathname=h.pathname==="/"?c:Ml([c,h.pathname])),Fu(h)}function Mb(u,{relative:i}={}){let c=C.useContext(Jy);Ht(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=nv("useViewTransitionState"),o=ui(u,{relative:i});if(!c.isTransitioning)return!1;let h=Ul(c.currentLocation.pathname,r)||c.currentLocation.pathname,v=Ul(c.nextLocation.pathname,r)||c.nextLocation.pathname;return zs(o.pathname,v)!=null||zs(o.pathname,h)!=null}var Wn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Db={setTimeout:(u,i)=>setTimeout(u,i),clearTimeout:u=>clearTimeout(u),setInterval:(u,i)=>setInterval(u,i),clearInterval:u=>clearInterval(u)},sa,Df,_y,Ub=(_y=class{constructor(){P(this,sa,Db);P(this,Df,!1)}setTimeoutProvider(u){J(this,sa,u)}setTimeout(u,i){return b(this,sa).setTimeout(u,i)}clearTimeout(u){b(this,sa).clearTimeout(u)}setInterval(u,i){return b(this,sa).setInterval(u,i)}clearInterval(u){b(this,sa).clearInterval(u)}},sa=new WeakMap,Df=new WeakMap,_y),Ba=new Ub;function wb(u){setTimeout(u,0)}var ka=typeof window>"u"||"Deno"in globalThis;function de(){}function Hb(u,i){return typeof u=="function"?u(i):u}function pf(u){return typeof u=="number"&&u>=0&&u!==1/0}function uv(u,i){return Math.max(u+(i||0)-Date.now(),0)}function va(u,i){return typeof u=="function"?u(i):u}function Ze(u,i){return typeof u=="function"?u(i):u}function dy(u,i){const{type:c="all",exact:r,fetchStatus:o,predicate:h,queryKey:v,stale:S}=u;if(v){if(r){if(i.queryHash!==Yf(v,i.options))return!1}else if(!$u(i.queryKey,v))return!1}if(c!=="all"){const p=i.isActive();if(c==="active"&&!p||c==="inactive"&&p)return!1}return!(typeof S=="boolean"&&i.isStale()!==S||o&&o!==i.state.fetchStatus||h&&!h(i))}function hy(u,i){const{exact:c,status:r,predicate:o,mutationKey:h}=u;if(h){if(!i.options.mutationKey)return!1;if(c){if(Fa(i.options.mutationKey)!==Fa(h))return!1}else if(!$u(i.options.mutationKey,h))return!1}return!(r&&i.state.status!==r||o&&!o(i))}function Yf(u,i){return((i==null?void 0:i.queryKeyHashFn)||Fa)(u)}function Fa(u){return JSON.stringify(u,(i,c)=>gf(c)?Object.keys(c).sort().reduce((r,o)=>(r[o]=c[o],r),{}):c)}function $u(u,i){return u===i?!0:typeof u!=typeof i?!1:u&&i&&typeof u=="object"&&typeof i=="object"?Object.keys(i).every(c=>$u(u[c],i[c])):!1}var qb=Object.prototype.hasOwnProperty;function iv(u,i,c=0){if(u===i)return u;if(c>500)return i;const r=my(u)&&my(i);if(!r&&!(gf(u)&&gf(i)))return i;const h=(r?u:Object.keys(u)).length,v=r?i:Object.keys(i),S=v.length,p=r?new Array(S):{};let m=0;for(let A=0;A<S;A++){const T=r?A:v[A],z=u[T],B=i[T];if(z===B){p[T]=z,(r?A<h:qb.call(u,T))&&m++;continue}if(z===null||B===null||typeof z!="object"||typeof B!="object"){p[T]=B;continue}const X=iv(z,B,c+1);p[T]=X,X===z&&m++}return h===S&&m===h?u:p}function Ns(u,i){if(!i||Object.keys(u).length!==Object.keys(i).length)return!1;for(const c in u)if(u[c]!==i[c])return!1;return!0}function my(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function gf(u){if(!yy(u))return!1;const i=u.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!yy(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function yy(u){return Object.prototype.toString.call(u)==="[object Object]"}function Bb(u){return new Promise(i=>{Ba.setTimeout(i,u)})}function bf(u,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(u,i):c.structuralSharing!==!1?iv(u,i):i}function sv(u){return u}function Qb(u,i,c=0){const r=[...u,i];return c&&r.length>c?r.slice(1):r}function Lb(u,i,c=0){const r=[i,...u];return c&&r.length>c?r.slice(0,-1):r}var Gf=Symbol();function cv(u,i){return!u.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!u.queryFn||u.queryFn===Gf?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function Xf(u,i){return typeof u=="function"?u(...i):!!u}function Yb(u,i,c){let r=!1,o;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(o??(o=i()),r||(r=!0,o.aborted?c():o.addEventListener("abort",c,{once:!0})),o)}),u}var Qa,ca,qn,jy,Gb=(jy=class extends Wn{constructor(){super();P(this,Qa);P(this,ca);P(this,qn);J(this,qn,i=>{if(!ka&&window.addEventListener){const c=()=>i();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){b(this,ca)||this.setEventListener(b(this,qn))}onUnsubscribe(){var i;this.hasListeners()||((i=b(this,ca))==null||i.call(this),J(this,ca,void 0))}setEventListener(i){var c;J(this,qn,i),(c=b(this,ca))==null||c.call(this),J(this,ca,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){b(this,Qa)!==i&&(J(this,Qa,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(c=>{c(i)})}isFocused(){var i;return typeof b(this,Qa)=="boolean"?b(this,Qa):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Qa=new WeakMap,ca=new WeakMap,qn=new WeakMap,jy),Kf=new Gb;function Sf(){let u,i;const c=new Promise((o,h)=>{u=o,i=h});c.status="pending",c.catch(()=>{});function r(o){Object.assign(c,o),delete c.resolve,delete c.reject}return c.resolve=o=>{r({status:"fulfilled",value:o}),u(o)},c.reject=o=>{r({status:"rejected",reason:o}),i(o)},c}var Xb=wb;function Kb(){let u=[],i=0,c=S=>{S()},r=S=>{S()},o=Xb;const h=S=>{i?u.push(S):o(()=>{c(S)})},v=()=>{const S=u;u=[],S.length&&o(()=>{r(()=>{S.forEach(p=>{c(p)})})})};return{batch:S=>{let p;i++;try{p=S()}finally{i--,i||v()}return p},batchCalls:S=>(...p)=>{h(()=>{S(...p)})},schedule:h,setNotifyFunction:S=>{c=S},setBatchNotifyFunction:S=>{r=S},setScheduler:S=>{o=S}}}var $t=Kb(),Bn,ra,Qn,zy,Zb=(zy=class extends Wn{constructor(){super();P(this,Bn,!0);P(this,ra);P(this,Qn);J(this,Qn,i=>{if(!ka&&window.addEventListener){const c=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,ra)||this.setEventListener(b(this,Qn))}onUnsubscribe(){var i;this.hasListeners()||((i=b(this,ra))==null||i.call(this),J(this,ra,void 0))}setEventListener(i){var c;J(this,Qn,i),(c=b(this,ra))==null||c.call(this),J(this,ra,i(this.setOnline.bind(this)))}setOnline(i){b(this,Bn)!==i&&(J(this,Bn,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return b(this,Bn)}},Bn=new WeakMap,ra=new WeakMap,Qn=new WeakMap,zy),Ms=new Zb;function Vb(u){return Math.min(1e3*2**u,3e4)}function rv(u){return(u??"online")==="online"?Ms.isOnline():!0}var xf=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function fv(u){let i=!1,c=0,r;const o=Sf(),h=()=>o.status!=="pending",v=G=>{var Y;if(!h()){const K=new xf(G);z(K),(Y=u.onCancel)==null||Y.call(u,K)}},S=()=>{i=!0},p=()=>{i=!1},m=()=>Kf.isFocused()&&(u.networkMode==="always"||Ms.isOnline())&&u.canRun(),A=()=>rv(u.networkMode)&&u.canRun(),T=G=>{h()||(r==null||r(),o.resolve(G))},z=G=>{h()||(r==null||r(),o.reject(G))},B=()=>new Promise(G=>{var Y;r=K=>{(h()||m())&&G(K)},(Y=u.onPause)==null||Y.call(u)}).then(()=>{var G;r=void 0,h()||(G=u.onContinue)==null||G.call(u)}),X=()=>{if(h())return;let G;const Y=c===0?u.initialPromise:void 0;try{G=Y??u.fn()}catch(K){G=Promise.reject(K)}Promise.resolve(G).then(T).catch(K=>{var L;if(h())return;const k=u.retry??(ka?0:3),Q=u.retryDelay??Vb,H=typeof Q=="function"?Q(c,K):Q,lt=k===!0||typeof k=="number"&&c<k||typeof k=="function"&&k(c,K);if(i||!lt){z(K);return}c++,(L=u.onFail)==null||L.call(u,c,K),Bb(H).then(()=>m()?void 0:B()).then(()=>{i?z(K):X()})})};return{promise:o,status:()=>o.status,cancel:v,continue:()=>(r==null||r(),o),cancelRetry:S,continueRetry:p,canStart:A,start:()=>(A()?X():B().then(X),o)}}var La,Ny,ov=(Ny=class{constructor(){P(this,La)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pf(this.gcTime)&&J(this,La,Ba.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(ka?1/0:300*1e3))}clearGcTimeout(){b(this,La)&&(Ba.clearTimeout(b(this,La)),J(this,La,void 0))}},La=new WeakMap,Ny),Ya,Ln,Ke,Ga,It,Wu,Xa,$e,Rl,My,Jb=(My=class extends ov{constructor(i){super();P(this,$e);P(this,Ya);P(this,Ln);P(this,Ke);P(this,Ga);P(this,It);P(this,Wu);P(this,Xa);J(this,Xa,!1),J(this,Wu,i.defaultOptions),this.setOptions(i.options),this.observers=[],J(this,Ga,i.client),J(this,Ke,b(this,Ga).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,J(this,Ya,py(this.options)),this.state=i.state??b(this,Ya),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=b(this,It))==null?void 0:i.promise}setOptions(i){if(this.options={...b(this,Wu),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=py(this.options);c.data!==void 0&&(this.setState(vy(c.data,c.dataUpdatedAt)),J(this,Ya,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ke).remove(this)}setData(i,c){const r=bf(this.state.data,i,this.options);return rt(this,$e,Rl).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(i,c){rt(this,$e,Rl).call(this,{type:"setState",state:i,setStateOptions:c})}cancel(i){var r,o;const c=(r=b(this,It))==null?void 0:r.promise;return(o=b(this,It))==null||o.cancel(i),c?c.then(de).catch(de):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,Ya))}isActive(){return this.observers.some(i=>Ze(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>va(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:!uv(this.state.dataUpdatedAt,i)}onFocus(){var c;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(c=b(this,It))==null||c.continue()}onOnline(){var c;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(c=b(this,It))==null||c.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),b(this,Ke).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(c=>c!==i),this.observers.length||(b(this,It)&&(b(this,Xa)?b(this,It).cancel({revert:!0}):b(this,It).cancelRetry()),this.scheduleGc()),b(this,Ke).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rt(this,$e,Rl).call(this,{type:"invalidate"})}async fetch(i,c){var p,m,A,T,z,B,X,G,Y,K,k,Q;if(this.state.fetchStatus!=="idle"&&((p=b(this,It))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(b(this,It))return b(this,It).continueRetry(),b(this,It).promise}if(i&&this.setOptions(i),!this.options.queryFn){const H=this.observers.find(lt=>lt.options.queryFn);H&&this.setOptions(H.options)}const r=new AbortController,o=H=>{Object.defineProperty(H,"signal",{enumerable:!0,get:()=>(J(this,Xa,!0),r.signal)})},h=()=>{const H=cv(this.options,c),L=(()=>{const tt={client:b(this,Ga),queryKey:this.queryKey,meta:this.meta};return o(tt),tt})();return J(this,Xa,!1),this.options.persister?this.options.persister(H,L,this):H(L)},S=(()=>{const H={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:b(this,Ga),state:this.state,fetchFn:h};return o(H),H})();(m=this.options.behavior)==null||m.onFetch(S,this),J(this,Ln,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((A=S.fetchOptions)==null?void 0:A.meta))&&rt(this,$e,Rl).call(this,{type:"fetch",meta:(T=S.fetchOptions)==null?void 0:T.meta}),J(this,It,fv({initialPromise:c==null?void 0:c.initialPromise,fn:S.fetchFn,onCancel:H=>{H instanceof xf&&H.revert&&this.setState({...b(this,Ln),fetchStatus:"idle"}),r.abort()},onFail:(H,lt)=>{rt(this,$e,Rl).call(this,{type:"failed",failureCount:H,error:lt})},onPause:()=>{rt(this,$e,Rl).call(this,{type:"pause"})},onContinue:()=>{rt(this,$e,Rl).call(this,{type:"continue"})},retry:S.options.retry,retryDelay:S.options.retryDelay,networkMode:S.options.networkMode,canRun:()=>!0}));try{const H=await b(this,It).start();if(H===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(H),(B=(z=b(this,Ke).config).onSuccess)==null||B.call(z,H,this),(G=(X=b(this,Ke).config).onSettled)==null||G.call(X,H,this.state.error,this),H}catch(H){if(H instanceof xf){if(H.silent)return b(this,It).promise;if(H.revert){if(this.state.data===void 0)throw H;return this.state.data}}throw rt(this,$e,Rl).call(this,{type:"error",error:H}),(K=(Y=b(this,Ke).config).onError)==null||K.call(Y,H,this),(Q=(k=b(this,Ke).config).onSettled)==null||Q.call(k,this.state.data,H,this),H}finally{this.scheduleGc()}}},Ya=new WeakMap,Ln=new WeakMap,Ke=new WeakMap,Ga=new WeakMap,It=new WeakMap,Wu=new WeakMap,Xa=new WeakMap,$e=new WeakSet,Rl=function(i){const c=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,...dv(r.data,this.options),fetchMeta:i.meta??null};case"success":const o={...r,...vy(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,Ln,i.manual?o:void 0),o;case"error":const h=i.error;return{...r,error:h,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=c(this.state),$t.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Ke).notify({query:this,type:"updated",action:i})})},My);function dv(u,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rv(i.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function vy(u,i){return{data:u,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function py(u){const i=typeof u.initialData=="function"?u.initialData():u.initialData,c=i!==void 0,r=c?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var xe,pt,Pu,oe,Ka,Yn,_l,fa,Iu,Gn,Xn,Za,Va,oa,Kn,Et,ku,Ef,Tf,Of,Af,Cf,Rf,_f,hv,Dy,kb=(Dy=class extends Wn{constructor(i,c){super();P(this,Et);P(this,xe);P(this,pt);P(this,Pu);P(this,oe);P(this,Ka);P(this,Yn);P(this,_l);P(this,fa);P(this,Iu);P(this,Gn);P(this,Xn);P(this,Za);P(this,Va);P(this,oa);P(this,Kn,new Set);this.options=c,J(this,xe,i),J(this,fa,null),J(this,_l,Sf()),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,pt).addObserver(this),gy(b(this,pt),this.options)?rt(this,Et,ku).call(this):this.updateResult(),rt(this,Et,Af).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jf(b(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jf(b(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,rt(this,Et,Cf).call(this),rt(this,Et,Rf).call(this),b(this,pt).removeObserver(this)}setOptions(i){const c=this.options,r=b(this,pt);if(this.options=b(this,xe).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ze(this.options.enabled,b(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");rt(this,Et,_f).call(this),b(this,pt).setOptions(this.options),c._defaulted&&!Ns(this.options,c)&&b(this,xe).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,pt),observer:this});const o=this.hasListeners();o&&by(b(this,pt),r,this.options,c)&&rt(this,Et,ku).call(this),this.updateResult(),o&&(b(this,pt)!==r||Ze(this.options.enabled,b(this,pt))!==Ze(c.enabled,b(this,pt))||va(this.options.staleTime,b(this,pt))!==va(c.staleTime,b(this,pt)))&&rt(this,Et,Ef).call(this);const h=rt(this,Et,Tf).call(this);o&&(b(this,pt)!==r||Ze(this.options.enabled,b(this,pt))!==Ze(c.enabled,b(this,pt))||h!==b(this,oa))&&rt(this,Et,Of).call(this,h)}getOptimisticResult(i){const c=b(this,xe).getQueryCache().build(b(this,xe),i),r=this.createResult(c,i);return $b(this,r)&&(J(this,oe,r),J(this,Yn,this.options),J(this,Ka,b(this,pt).state)),r}getCurrentResult(){return b(this,oe)}trackResult(i,c){return new Proxy(i,{get:(r,o)=>(this.trackProp(o),c==null||c(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&b(this,_l).status==="pending"&&b(this,_l).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(i){b(this,Kn).add(i)}getCurrentQuery(){return b(this,pt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const c=b(this,xe).defaultQueryOptions(i),r=b(this,xe).getQueryCache().build(b(this,xe),c);return r.fetch().then(()=>this.createResult(r,c))}fetch(i){return rt(this,Et,ku).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,oe)))}createResult(i,c){var ht;const r=b(this,pt),o=this.options,h=b(this,oe),v=b(this,Ka),S=b(this,Yn),m=i!==r?i.state:b(this,Pu),{state:A}=i;let T={...A},z=!1,B;if(c._optimisticResults){const At=this.hasListeners(),Jt=!At&&gy(i,c),kt=At&&by(i,r,c,o);(Jt||kt)&&(T={...T,...dv(A.data,i.options)}),c._optimisticResults==="isRestoring"&&(T.fetchStatus="idle")}let{error:X,errorUpdatedAt:G,status:Y}=T;B=T.data;let K=!1;if(c.placeholderData!==void 0&&B===void 0&&Y==="pending"){let At;h!=null&&h.isPlaceholderData&&c.placeholderData===(S==null?void 0:S.placeholderData)?(At=h.data,K=!0):At=typeof c.placeholderData=="function"?c.placeholderData((ht=b(this,Xn))==null?void 0:ht.state.data,b(this,Xn)):c.placeholderData,At!==void 0&&(Y="success",B=bf(h==null?void 0:h.data,At,c),z=!0)}if(c.select&&B!==void 0&&!K)if(h&&B===(v==null?void 0:v.data)&&c.select===b(this,Iu))B=b(this,Gn);else try{J(this,Iu,c.select),B=c.select(B),B=bf(h==null?void 0:h.data,B,c),J(this,Gn,B),J(this,fa,null)}catch(At){J(this,fa,At)}b(this,fa)&&(X=b(this,fa),B=b(this,Gn),G=Date.now(),Y="error");const k=T.fetchStatus==="fetching",Q=Y==="pending",H=Y==="error",lt=Q&&k,L=B!==void 0,at={status:Y,fetchStatus:T.fetchStatus,isPending:Q,isSuccess:Y==="success",isError:H,isInitialLoading:lt,isLoading:lt,data:B,dataUpdatedAt:T.dataUpdatedAt,error:X,errorUpdatedAt:G,failureCount:T.fetchFailureCount,failureReason:T.fetchFailureReason,errorUpdateCount:T.errorUpdateCount,isFetched:T.dataUpdateCount>0||T.errorUpdateCount>0,isFetchedAfterMount:T.dataUpdateCount>m.dataUpdateCount||T.errorUpdateCount>m.errorUpdateCount,isFetching:k,isRefetching:k&&!Q,isLoadingError:H&&!L,isPaused:T.fetchStatus==="paused",isPlaceholderData:z,isRefetchError:H&&L,isStale:Zf(i,c),refetch:this.refetch,promise:b(this,_l),isEnabled:Ze(c.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const At=at.data!==void 0,Jt=at.status==="error"&&!At,kt=ue=>{Jt?ue.reject(at.error):At&&ue.resolve(at.data)},Ie=()=>{const ue=J(this,_l,at.promise=Sf());kt(ue)},he=b(this,_l);switch(he.status){case"pending":i.queryHash===r.queryHash&&kt(he);break;case"fulfilled":(Jt||at.data!==he.value)&&Ie();break;case"rejected":(!Jt||at.error!==he.reason)&&Ie();break}}return at}updateResult(){const i=b(this,oe),c=this.createResult(b(this,pt),this.options);if(J(this,Ka,b(this,pt).state),J(this,Yn,this.options),b(this,Ka).data!==void 0&&J(this,Xn,b(this,pt)),Ns(c,i))return;J(this,oe,c);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!b(this,Kn).size)return!0;const v=new Set(h??b(this,Kn));return this.options.throwOnError&&v.add("error"),Object.keys(b(this,oe)).some(S=>{const p=S;return b(this,oe)[p]!==i[p]&&v.has(p)})};rt(this,Et,hv).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&rt(this,Et,Af).call(this)}},xe=new WeakMap,pt=new WeakMap,Pu=new WeakMap,oe=new WeakMap,Ka=new WeakMap,Yn=new WeakMap,_l=new WeakMap,fa=new WeakMap,Iu=new WeakMap,Gn=new WeakMap,Xn=new WeakMap,Za=new WeakMap,Va=new WeakMap,oa=new WeakMap,Kn=new WeakMap,Et=new WeakSet,ku=function(i){rt(this,Et,_f).call(this);let c=b(this,pt).fetch(this.options,i);return i!=null&&i.throwOnError||(c=c.catch(de)),c},Ef=function(){rt(this,Et,Cf).call(this);const i=va(this.options.staleTime,b(this,pt));if(ka||b(this,oe).isStale||!pf(i))return;const r=uv(b(this,oe).dataUpdatedAt,i)+1;J(this,Za,Ba.setTimeout(()=>{b(this,oe).isStale||this.updateResult()},r))},Tf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,pt)):this.options.refetchInterval)??!1},Of=function(i){rt(this,Et,Rf).call(this),J(this,oa,i),!(ka||Ze(this.options.enabled,b(this,pt))===!1||!pf(b(this,oa))||b(this,oa)===0)&&J(this,Va,Ba.setInterval(()=>{(this.options.refetchIntervalInBackground||Kf.isFocused())&&rt(this,Et,ku).call(this)},b(this,oa)))},Af=function(){rt(this,Et,Ef).call(this),rt(this,Et,Of).call(this,rt(this,Et,Tf).call(this))},Cf=function(){b(this,Za)&&(Ba.clearTimeout(b(this,Za)),J(this,Za,void 0))},Rf=function(){b(this,Va)&&(Ba.clearInterval(b(this,Va)),J(this,Va,void 0))},_f=function(){const i=b(this,xe).getQueryCache().build(b(this,xe),this.options);if(i===b(this,pt))return;const c=b(this,pt);J(this,pt,i),J(this,Pu,i.state),this.hasListeners()&&(c==null||c.removeObserver(this),i.addObserver(this))},hv=function(i){$t.batch(()=>{i.listeners&&this.listeners.forEach(c=>{c(b(this,oe))}),b(this,xe).getQueryCache().notify({query:b(this,pt),type:"observerResultsUpdated"})})},Dy);function Fb(u,i){return Ze(i.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&i.retryOnMount===!1)}function gy(u,i){return Fb(u,i)||u.state.data!==void 0&&jf(u,i,i.refetchOnMount)}function jf(u,i,c){if(Ze(i.enabled,u)!==!1&&va(i.staleTime,u)!=="static"){const r=typeof c=="function"?c(u):c;return r==="always"||r!==!1&&Zf(u,i)}return!1}function by(u,i,c,r){return(u!==i||Ze(r.enabled,u)===!1)&&(!c.suspense||u.state.status!=="error")&&Zf(u,c)}function Zf(u,i){return Ze(i.enabled,u)!==!1&&u.isStaleByTime(va(i.staleTime,u))}function $b(u,i){return!Ns(u.getCurrentResult(),i)}function Sy(u){return{onFetch:(i,c)=>{var A,T,z,B,X;const r=i.options,o=(z=(T=(A=i.fetchOptions)==null?void 0:A.meta)==null?void 0:T.fetchMore)==null?void 0:z.direction,h=((B=i.state.data)==null?void 0:B.pages)||[],v=((X=i.state.data)==null?void 0:X.pageParams)||[];let S={pages:[],pageParams:[]},p=0;const m=async()=>{let G=!1;const Y=Q=>{Yb(Q,()=>i.signal,()=>G=!0)},K=cv(i.options,i.fetchOptions),k=async(Q,H,lt)=>{if(G)return Promise.reject();if(H==null&&Q.pages.length)return Promise.resolve(Q);const tt=(()=>{const Jt={client:i.client,queryKey:i.queryKey,pageParam:H,direction:lt?"backward":"forward",meta:i.options.meta};return Y(Jt),Jt})(),at=await K(tt),{maxPages:ht}=i.options,At=lt?Lb:Qb;return{pages:At(Q.pages,at,ht),pageParams:At(Q.pageParams,H,ht)}};if(o&&h.length){const Q=o==="backward",H=Q?Wb:xy,lt={pages:h,pageParams:v},L=H(r,lt);S=await k(lt,L,Q)}else{const Q=u??h.length;do{const H=p===0?v[0]??r.initialPageParam:xy(r,S);if(p>0&&H==null)break;S=await k(S,H),p++}while(p<Q)}return S};i.options.persister?i.fetchFn=()=>{var G,Y;return(Y=(G=i.options).persister)==null?void 0:Y.call(G,m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c)}:i.fetchFn=m}}}function xy(u,{pages:i,pageParams:c}){const r=i.length-1;return i.length>0?u.getNextPageParam(i[r],i,c[r],c):void 0}function Wb(u,{pages:i,pageParams:c}){var r;return i.length>0?(r=u.getPreviousPageParam)==null?void 0:r.call(u,i[0],i,c[0],c):void 0}var ti,nl,se,Ja,ul,ia,Uy,Pb=(Uy=class extends ov{constructor(i){super();P(this,ul);P(this,ti);P(this,nl);P(this,se);P(this,Ja);J(this,ti,i.client),this.mutationId=i.mutationId,J(this,se,i.mutationCache),J(this,nl,[]),this.state=i.state||mv(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){b(this,nl).includes(i)||(b(this,nl).push(i),this.clearGcTimeout(),b(this,se).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){J(this,nl,b(this,nl).filter(c=>c!==i)),this.scheduleGc(),b(this,se).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){b(this,nl).length||(this.state.status==="pending"?this.scheduleGc():b(this,se).remove(this))}continue(){var i;return((i=b(this,Ja))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var v,S,p,m,A,T,z,B,X,G,Y,K,k,Q,H,lt,L,tt;const c=()=>{rt(this,ul,ia).call(this,{type:"continue"})},r={client:b(this,ti),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,Ja,fv({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(at,ht)=>{rt(this,ul,ia).call(this,{type:"failed",failureCount:at,error:ht})},onPause:()=>{rt(this,ul,ia).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,se).canRun(this)}));const o=this.state.status==="pending",h=!b(this,Ja).canStart();try{if(o)c();else{rt(this,ul,ia).call(this,{type:"pending",variables:i,isPaused:h}),b(this,se).config.onMutate&&await b(this,se).config.onMutate(i,this,r);const ht=await((S=(v=this.options).onMutate)==null?void 0:S.call(v,i,r));ht!==this.state.context&&rt(this,ul,ia).call(this,{type:"pending",context:ht,variables:i,isPaused:h})}const at=await b(this,Ja).start();return await((m=(p=b(this,se).config).onSuccess)==null?void 0:m.call(p,at,i,this.state.context,this,r)),await((T=(A=this.options).onSuccess)==null?void 0:T.call(A,at,i,this.state.context,r)),await((B=(z=b(this,se).config).onSettled)==null?void 0:B.call(z,at,null,this.state.variables,this.state.context,this,r)),await((G=(X=this.options).onSettled)==null?void 0:G.call(X,at,null,i,this.state.context,r)),rt(this,ul,ia).call(this,{type:"success",data:at}),at}catch(at){try{await((K=(Y=b(this,se).config).onError)==null?void 0:K.call(Y,at,i,this.state.context,this,r))}catch(ht){Promise.reject(ht)}try{await((Q=(k=this.options).onError)==null?void 0:Q.call(k,at,i,this.state.context,r))}catch(ht){Promise.reject(ht)}try{await((lt=(H=b(this,se).config).onSettled)==null?void 0:lt.call(H,void 0,at,this.state.variables,this.state.context,this,r))}catch(ht){Promise.reject(ht)}try{await((tt=(L=this.options).onSettled)==null?void 0:tt.call(L,void 0,at,i,this.state.context,r))}catch(ht){Promise.reject(ht)}throw rt(this,ul,ia).call(this,{type:"error",error:at}),at}finally{b(this,se).runNext(this)}}},ti=new WeakMap,nl=new WeakMap,se=new WeakMap,Ja=new WeakMap,ul=new WeakSet,ia=function(i){const c=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=c(this.state),$t.batch(()=>{b(this,nl).forEach(r=>{r.onMutationUpdate(i)}),b(this,se).notify({mutation:this,type:"updated",action:i})})},Uy);function mv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jl,We,ei,wy,Ib=(wy=class extends Wn{constructor(i={}){super();P(this,jl);P(this,We);P(this,ei);this.config=i,J(this,jl,new Set),J(this,We,new Map),J(this,ei,0)}build(i,c,r){const o=new Pb({client:i,mutationCache:this,mutationId:++Os(this,ei)._,options:i.defaultMutationOptions(c),state:r});return this.add(o),o}add(i){b(this,jl).add(i);const c=Cs(i);if(typeof c=="string"){const r=b(this,We).get(c);r?r.push(i):b(this,We).set(c,[i])}this.notify({type:"added",mutation:i})}remove(i){if(b(this,jl).delete(i)){const c=Cs(i);if(typeof c=="string"){const r=b(this,We).get(c);if(r)if(r.length>1){const o=r.indexOf(i);o!==-1&&r.splice(o,1)}else r[0]===i&&b(this,We).delete(c)}}this.notify({type:"removed",mutation:i})}canRun(i){const c=Cs(i);if(typeof c=="string"){const r=b(this,We).get(c),o=r==null?void 0:r.find(h=>h.state.status==="pending");return!o||o===i}else return!0}runNext(i){var r;const c=Cs(i);if(typeof c=="string"){const o=(r=b(this,We).get(c))==null?void 0:r.find(h=>h!==i&&h.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$t.batch(()=>{b(this,jl).forEach(i=>{this.notify({type:"removed",mutation:i})}),b(this,jl).clear(),b(this,We).clear()})}getAll(){return Array.from(b(this,jl))}find(i){const c={exact:!0,...i};return this.getAll().find(r=>hy(c,r))}findAll(i={}){return this.getAll().filter(c=>hy(i,c))}notify(i){$t.batch(()=>{this.listeners.forEach(c=>{c(i)})})}resumePausedMutations(){const i=this.getAll().filter(c=>c.state.isPaused);return $t.batch(()=>Promise.all(i.map(c=>c.continue().catch(de))))}},jl=new WeakMap,We=new WeakMap,ei=new WeakMap,wy);function Cs(u){var i;return(i=u.options.scope)==null?void 0:i.id}var zl,da,Ee,Nl,Dl,js,zf,Hy,t1=(Hy=class extends Wn{constructor(c,r){super();P(this,Dl);P(this,zl);P(this,da);P(this,Ee);P(this,Nl);J(this,zl,c),this.setOptions(r),this.bindMethods(),rt(this,Dl,js).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var o;const r=this.options;this.options=b(this,zl).defaultMutationOptions(c),Ns(this.options,r)||b(this,zl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,Ee),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Fa(r.mutationKey)!==Fa(this.options.mutationKey)?this.reset():((o=b(this,Ee))==null?void 0:o.state.status)==="pending"&&b(this,Ee).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=b(this,Ee))==null||c.removeObserver(this)}onMutationUpdate(c){rt(this,Dl,js).call(this),rt(this,Dl,zf).call(this,c)}getCurrentResult(){return b(this,da)}reset(){var c;(c=b(this,Ee))==null||c.removeObserver(this),J(this,Ee,void 0),rt(this,Dl,js).call(this),rt(this,Dl,zf).call(this)}mutate(c,r){var o;return J(this,Nl,r),(o=b(this,Ee))==null||o.removeObserver(this),J(this,Ee,b(this,zl).getMutationCache().build(b(this,zl),this.options)),b(this,Ee).addObserver(this),b(this,Ee).execute(c)}},zl=new WeakMap,da=new WeakMap,Ee=new WeakMap,Nl=new WeakMap,Dl=new WeakSet,js=function(){var r;const c=((r=b(this,Ee))==null?void 0:r.state)??mv();J(this,da,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},zf=function(c){$t.batch(()=>{var r,o,h,v,S,p,m,A;if(b(this,Nl)&&this.hasListeners()){const T=b(this,da).variables,z=b(this,da).context,B={client:b(this,zl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((c==null?void 0:c.type)==="success"){try{(o=(r=b(this,Nl)).onSuccess)==null||o.call(r,c.data,T,z,B)}catch(X){Promise.reject(X)}try{(v=(h=b(this,Nl)).onSettled)==null||v.call(h,c.data,null,T,z,B)}catch(X){Promise.reject(X)}}else if((c==null?void 0:c.type)==="error"){try{(p=(S=b(this,Nl)).onError)==null||p.call(S,c.error,T,z,B)}catch(X){Promise.reject(X)}try{(A=(m=b(this,Nl)).onSettled)==null||A.call(m,void 0,c.error,T,z,B)}catch(X){Promise.reject(X)}}}this.listeners.forEach(T=>{T(b(this,da))})})},Hy),il,qy,e1=(qy=class extends Wn{constructor(i={}){super();P(this,il);this.config=i,J(this,il,new Map)}build(i,c,r){const o=c.queryKey,h=c.queryHash??Yf(o,c);let v=this.get(h);return v||(v=new Jb({client:i,queryKey:o,queryHash:h,options:i.defaultQueryOptions(c),state:r,defaultOptions:i.getQueryDefaults(o)}),this.add(v)),v}add(i){b(this,il).has(i.queryHash)||(b(this,il).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const c=b(this,il).get(i.queryHash);c&&(i.destroy(),c===i&&b(this,il).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){$t.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return b(this,il).get(i)}getAll(){return[...b(this,il).values()]}find(i){const c={exact:!0,...i};return this.getAll().find(r=>dy(c,r))}findAll(i={}){const c=this.getAll();return Object.keys(i).length>0?c.filter(r=>dy(i,r)):c}notify(i){$t.batch(()=>{this.listeners.forEach(c=>{c(i)})})}onFocus(){$t.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){$t.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},il=new WeakMap,qy),Qt,ha,ma,Zn,Vn,ya,Jn,kn,By,l1=(By=class{constructor(u={}){P(this,Qt);P(this,ha);P(this,ma);P(this,Zn);P(this,Vn);P(this,ya);P(this,Jn);P(this,kn);J(this,Qt,u.queryCache||new e1),J(this,ha,u.mutationCache||new Ib),J(this,ma,u.defaultOptions||{}),J(this,Zn,new Map),J(this,Vn,new Map),J(this,ya,0)}mount(){Os(this,ya)._++,b(this,ya)===1&&(J(this,Jn,Kf.subscribe(async u=>{u&&(await this.resumePausedMutations(),b(this,Qt).onFocus())})),J(this,kn,Ms.subscribe(async u=>{u&&(await this.resumePausedMutations(),b(this,Qt).onOnline())})))}unmount(){var u,i;Os(this,ya)._--,b(this,ya)===0&&((u=b(this,Jn))==null||u.call(this),J(this,Jn,void 0),(i=b(this,kn))==null||i.call(this),J(this,kn,void 0))}isFetching(u){return b(this,Qt).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return b(this,ha).findAll({...u,status:"pending"}).length}getQueryData(u){var c;const i=this.defaultQueryOptions({queryKey:u});return(c=b(this,Qt).get(i.queryHash))==null?void 0:c.state.data}ensureQueryData(u){const i=this.defaultQueryOptions(u),c=b(this,Qt).build(this,i),r=c.state.data;return r===void 0?this.fetchQuery(u):(u.revalidateIfStale&&c.isStaleByTime(va(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(u){return b(this,Qt).findAll(u).map(({queryKey:i,state:c})=>{const r=c.data;return[i,r]})}setQueryData(u,i,c){const r=this.defaultQueryOptions({queryKey:u}),o=b(this,Qt).get(r.queryHash),h=o==null?void 0:o.state.data,v=Hb(i,h);if(v!==void 0)return b(this,Qt).build(this,r).setData(v,{...c,manual:!0})}setQueriesData(u,i,c){return $t.batch(()=>b(this,Qt).findAll(u).map(({queryKey:r})=>[r,this.setQueryData(r,i,c)]))}getQueryState(u){var c;const i=this.defaultQueryOptions({queryKey:u});return(c=b(this,Qt).get(i.queryHash))==null?void 0:c.state}removeQueries(u){const i=b(this,Qt);$t.batch(()=>{i.findAll(u).forEach(c=>{i.remove(c)})})}resetQueries(u,i){const c=b(this,Qt);return $t.batch(()=>(c.findAll(u).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...u},i)))}cancelQueries(u,i={}){const c={revert:!0,...i},r=$t.batch(()=>b(this,Qt).findAll(u).map(o=>o.cancel(c)));return Promise.all(r).then(de).catch(de)}invalidateQueries(u,i={}){return $t.batch(()=>(b(this,Qt).findAll(u).forEach(c=>{c.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},i)))}refetchQueries(u,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},r=$t.batch(()=>b(this,Qt).findAll(u).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let h=o.fetch(void 0,c);return c.throwOnError||(h=h.catch(de)),o.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(r).then(de)}fetchQuery(u){const i=this.defaultQueryOptions(u);i.retry===void 0&&(i.retry=!1);const c=b(this,Qt).build(this,i);return c.isStaleByTime(va(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(de).catch(de)}fetchInfiniteQuery(u){return u.behavior=Sy(u.pages),this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(de).catch(de)}ensureInfiniteQueryData(u){return u.behavior=Sy(u.pages),this.ensureQueryData(u)}resumePausedMutations(){return Ms.isOnline()?b(this,ha).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,Qt)}getMutationCache(){return b(this,ha)}getDefaultOptions(){return b(this,ma)}setDefaultOptions(u){J(this,ma,u)}setQueryDefaults(u,i){b(this,Zn).set(Fa(u),{queryKey:u,defaultOptions:i})}getQueryDefaults(u){const i=[...b(this,Zn).values()],c={};return i.forEach(r=>{$u(u,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(u,i){b(this,Vn).set(Fa(u),{mutationKey:u,defaultOptions:i})}getMutationDefaults(u){const i=[...b(this,Vn).values()],c={};return i.forEach(r=>{$u(u,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(u){if(u._defaulted)return u;const i={...b(this,ma).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return i.queryHash||(i.queryHash=Yf(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===Gf&&(i.enabled=!1),i}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...b(this,ma).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){b(this,Qt).clear(),b(this,ha).clear()}},Qt=new WeakMap,ha=new WeakMap,ma=new WeakMap,Zn=new WeakMap,Vn=new WeakMap,ya=new WeakMap,Jn=new WeakMap,kn=new WeakMap,By),yv=C.createContext(void 0),cl=u=>{const i=C.useContext(yv);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},a1=({client:u,children:i})=>(C.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),y.jsx(yv.Provider,{value:u,children:i})),vv=C.createContext(!1),n1=()=>C.useContext(vv);vv.Provider;function u1(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var i1=C.createContext(u1()),s1=()=>C.useContext(i1),c1=(u,i,c)=>{const r=c!=null&&c.state.error&&typeof u.throwOnError=="function"?Xf(u.throwOnError,[c.state.error,c]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||r)&&(i.isReset()||(u.retryOnMount=!1))},r1=u=>{C.useEffect(()=>{u.clearReset()},[u])},f1=({result:u,errorResetBoundary:i,throwOnError:c,query:r,suspense:o})=>u.isError&&!i.isReset()&&!u.isFetching&&r&&(o&&u.data===void 0||Xf(c,[u.error,r])),o1=u=>{if(u.suspense){const c=o=>o==="static"?o:Math.max(o??1e3,1e3),r=u.staleTime;u.staleTime=typeof r=="function"?(...o)=>c(r(...o)):c(r),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},d1=(u,i)=>u.isLoading&&u.isFetching&&!i,h1=(u,i)=>(u==null?void 0:u.suspense)&&i.isPending,Ey=(u,i,c)=>i.fetchOptimistic(u).catch(()=>{c.clearReset()});function m1(u,i,c){var z,B,X,G;const r=n1(),o=s1(),h=cl(),v=h.defaultQueryOptions(u);(B=(z=h.getDefaultOptions().queries)==null?void 0:z._experimental_beforeQuery)==null||B.call(z,v);const S=h.getQueryCache().get(v.queryHash);v._optimisticResults=r?"isRestoring":"optimistic",o1(v),c1(v,o,S),r1(o);const p=!h.getQueryCache().get(v.queryHash),[m]=C.useState(()=>new i(h,v)),A=m.getOptimisticResult(v),T=!r&&u.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(Y=>{const K=T?m.subscribe($t.batchCalls(Y)):de;return m.updateResult(),K},[m,T]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),C.useEffect(()=>{m.setOptions(v)},[v,m]),h1(v,A))throw Ey(v,m,o);if(f1({result:A,errorResetBoundary:o,throwOnError:v.throwOnError,query:S,suspense:v.suspense}))throw A.error;if((G=(X=h.getDefaultOptions().queries)==null?void 0:X._experimental_afterQuery)==null||G.call(X,v,A),v.experimental_prefetchInRender&&!ka&&d1(A,r)){const Y=p?Ey(v,m,o):S==null?void 0:S.promise;Y==null||Y.catch(de).finally(()=>{m.updateResult()})}return v.notifyOnChangeProps?A:m.trackResult(A)}function Wa(u,i){return m1(u,kb)}function pa(u,i){const c=cl(),[r]=C.useState(()=>new t1(c,u));C.useEffect(()=>{r.setOptions(u)},[r,u]);const o=C.useSyncExternalStore(C.useCallback(v=>r.subscribe($t.batchCalls(v)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),h=C.useCallback((v,S)=>{r.mutate(v,S).catch(de)},[r]);if(o.error&&Xf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:h,mutateAsync:o.mutate}}var y1=function(){return null};const v1=new l1({defaultOptions:{queries:{staleTime:1e4,refetchInterval:15e3,refetchOnWindowFocus:!0}}}),p1="/api";async function De(u,i){const c=await fetch(`${p1}${u}`,{headers:{"Content-Type":"application/json"},...i});if(!c.ok){const r=await c.json().catch(()=>({}));throw new Error(r.error||`HTTP ${c.status}`)}return c.json()}const g1=()=>De("/projects"),b1=(u,i)=>De("/projects",{method:"POST",body:JSON.stringify({id:u,path:i})}),S1=u=>De(`/projects/${u}/stats`),x1=(u,i)=>{const c=i?`?status=${i}`:"";return De(`/projects/${u}/features${c}`)},E1=(u,i)=>De(`/projects/${u}/features`,{method:"POST",body:JSON.stringify(i)}),T1=(u,i)=>De(`/features/${u}`,{method:"PUT",body:JSON.stringify(i)}),O1=u=>De(`/features/${u}`,{method:"DELETE"}),A1=(u,i,c)=>{const r=new URLSearchParams;i&&r.set("status",i),c&&r.set("priority",c);const o=r.toString();return De(`/projects/${u}/tasks${o?`?${o}`:""}`)},C1=(u,i)=>De(`/projects/${u}/tasks`,{method:"POST",body:JSON.stringify(i)}),R1=(u,i)=>De(`/tasks/${u}`,{method:"PUT",body:JSON.stringify(i)}),_1=u=>De(`/tasks/${u}`,{method:"DELETE"}),j1=u=>De(`/projects/${u}/logs`),z1=(u,i)=>De(`/projects/${u}/logs`,{method:"POST",body:JSON.stringify(i)}),ce={projects:{all:["projects"],stats:u=>["projects",u,"stats"]},features:{list:(u,i)=>["features",u,...i?[{status:i}]:[]]},tasks:{list:(u,i,c)=>["tasks",u,...i||c?[{status:i,priority:c}]:[]]},workLogs:{list:u=>["workLogs",u]},system:{info:["system","info"],loops:["system","loops"]}},N1="/assets/work-work-B-UWVHib.mp3",M1="/assets/zug-zug-DKYfMzK2.mp3",D1="/assets/be-happy-to-DvXuqPQa.mp3",U1="/assets/i-can-do-that-BNDhFSE0.mp3",w1="/assets/hmm-BADQaVkR.mp3",H1="/assets/i-ll-try-DMkV-I_F.mp3",q1="/assets/google-dokey-BJWrU6FE.mp3",B1="/assets/double-d7ziI7KD.mp3",Q1="/assets/PeonAngry1-BJCSor2b.wav",L1="/assets/PeonAngry2-CenRc8gi.wav",Y1="/assets/PeonAngry3-BhB4nQhQ.wav",G1="/assets/PeonAngry4-DDjl03YW.wav",X1="/assets/PeonDeath-DCYUSezc.wav",hf="/assets/PeonReady1-DaVeh4Yf.wav",K1="/assets/PeonWarcry1-VsKfzASj.wav",Z1="/assets/PeonWhat1-BvKZVnMM.wav",V1="/assets/PeonWhat2-C3kJhFBI.wav",J1="/assets/PeonWhat3-CcGCxIHZ.wav",k1="/assets/PeonWhat4-Contuaij.wav",Ty="/assets/PeonYes1-BBlgtgZe.wav",Oy="/assets/PeonYes2-CDDabnuf.wav",F1="/assets/PeonYes3-CvqpLAgn.wav",$1="/assets/PeonYes4-Bjs2_Jsy.wav",W1="/assets/PeonYesAttack1-CjFiadzM.wav",P1="/assets/PeonYesAttack2-uGGFXrNq.wav",I1="/assets/PeonYesAttack3-BKWagRX3.wav",pv={"what-do-you-want":[Z1,V1,J1,k1,hf],swobu:[Q1,L1,Y1,G1],"work-work":[Ty,Oy,F1,$1,N1],"zug-zug":[W1,P1,I1,M1],"i-can-do-that":[U1,hf],"be-happy-to":[D1,hf],"google-dokey":[q1,Ty,Oy],death:[X1],hmm:[w1],"i-ll-try":[H1],double:[B1],warcry:[K1]},tS=Object.values(pv).flat(),Nf=new Map;for(const u of tS)if(!Nf.has(u)){const i=new Audio(u);i.preload="auto",Nf.set(u,i)}function eS(u){return u[Math.floor(Math.random()*u.length)]}const gv="peon-sound-enabled";let ws=localStorage.getItem(gv)!=="false";const Mf=new Set;function lS(){return ws}function aS(u){return Mf.add(u),()=>Mf.delete(u)}function nS(u){ws=u,localStorage.setItem(gv,String(u)),Mf.forEach(i=>i())}function wt(u,i=.5){if(!ws)return;const c=eS(pv[u]),r=Nf.get(c),o=r?r.cloneNode():new Audio(c);o.volume=i,o.play().catch(()=>{})}function uS(){const u=C.useSyncExternalStore(aS,lS),i=C.useCallback(()=>nS(!ws),[]);return[u,i]}function bv(){return Wa({queryKey:ce.projects.all,queryFn:g1})}function iS(u){return Wa({queryKey:ce.projects.stats(u),queryFn:()=>S1(u),enabled:!!u})}function sS(){const u=cl();return pa({mutationFn:({id:i,path:c})=>b1(i,c),onSuccess:()=>{u.invalidateQueries({queryKey:ce.projects.all}),wt("be-happy-to")},onError:()=>{wt("hmm")}})}const cS=[{to:"",label:"Dashboard",icon:"/peon.webp"},{to:"features",label:"Features",icon:"/scroll.webp"},{to:"tasks",label:"Tasks",icon:"/shield.webp"},{to:"logs",label:"Work Logs",icon:"/project.webp"}];function rS(){const{id:u}=ni(),i=Hf(),{data:c=[]}=bv();return y.jsxs("aside",{className:"flex h-screen w-60 flex-col border-r border-[#2e3625] bg-[#0d120a]",children:[y.jsx("div",{className:"border-b border-[#2e3625] p-4",children:y.jsxs(vf,{to:"/",className:"flex items-center gap-2 text-lg font-bold text-[#7ab648]",children:[y.jsx("img",{src:"/peon.webp",alt:"peon",className:"h-7 w-7 rounded-full"}),"peon"]})}),y.jsxs("div",{className:"border-b border-[#2e3625] p-4",children:[y.jsx("label",{className:"mb-1 block text-xs text-[#8a8672]",children:"Project"}),y.jsx("select",{value:u||"",onChange:r=>i(`/projects/${r.target.value}`),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-2 py-1.5 text-sm text-[#d4d2c4] focus:border-[#5c5a4a] focus:outline-none",children:c.map(r=>y.jsx("option",{value:r.id,children:r.id},r.id))})]}),y.jsx("nav",{className:"flex-1 p-4",children:y.jsx("ul",{className:"space-y-1",children:cS.map(r=>y.jsx("li",{children:y.jsxs(vf,{to:`/projects/${u}/${r.to}`,end:r.to==="",className:({isActive:o})=>`flex items-center gap-2.5 rounded px-3 py-2 text-sm ${o?"bg-[#1a1f14] text-[#d4d2c4] font-medium":"text-[#8a8672] hover:bg-[#1a1f14] hover:text-[#d4d2c4]"}`,children:[y.jsx("img",{src:r.icon,alt:"",className:"h-4 w-4 rounded-sm opacity-70"}),r.label]})},r.to))})})]})}const fS="/peon.webp";function oS(){return Wa({queryKey:ce.system.info,queryFn:async()=>(await fetch("/api/system-info")).json(),staleTime:6e4,refetchInterval:6e4})}function dS(){return Wa({queryKey:ce.system.loops,queryFn:async()=>(await fetch("/api/loops")).json()})}function Sv(){const{data:u}=oS(),{data:i}=dS(),[c,r]=uS(),o=u!=null&&u.version?`v${u.version}`:"...",h=(u==null?void 0:u.db_path)||"...",v=(i==null?void 0:i.active_count)??null;return y.jsxs("div",{className:"fixed bottom-0 left-0 right-0 z-50 flex h-7 items-center border-t border-[#2e3625] bg-[#1a1f14] px-3 font-mono text-[11px] text-[#8a8672]",children:[y.jsx("img",{src:fS,alt:"peon",className:"mr-3 h-[22px] w-[22px] rounded-full object-cover"}),y.jsx("span",{children:o}),y.jsx("span",{className:"mx-3.5 text-[#2e3625]",children:"|"}),y.jsx("span",{className:"mr-1.5 text-[#5c5a4a]",children:"DB:"}),y.jsx("span",{children:h}),y.jsx("span",{className:"mx-3.5 text-[#2e3625]",children:"|"}),y.jsx("span",{className:`mr-1.5 inline-block h-[7px] w-[7px] rounded-full ${v&&v>0?"bg-[#7ab648]":"bg-[#5c5a4a]"}`}),y.jsx("span",{className:"mr-1.5 text-[#5c5a4a]",children:"Loops:"}),y.jsx("span",{children:v&&v>0?v:"--"}),y.jsx("span",{className:"mx-3.5 text-[#2e3625]",children:"|"}),y.jsxs("button",{onClick:r,className:"flex items-center gap-1 hover:text-[#d4d2c4]",title:c?"Mute sounds":"Unmute sounds",children:[y.jsx("span",{children:c?"🔊":"🔇"}),y.jsx("span",{children:c?"Sound":"Muted"})]})]})}function hS(){return y.jsxs("div",{className:"flex min-h-screen bg-[#000] text-[#ededed]",children:[y.jsx(rS,{}),y.jsx("main",{className:"flex-1 overflow-auto p-8",children:y.jsx(Pg,{})}),y.jsx(Sv,{})]})}function Hs({open:u,onClose:i,title:c,children:r}){if(!u)return null;const o=()=>{wt("swobu"),i()};return y.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:o,children:y.jsxs("div",{className:"w-full max-w-lg rounded-lg border border-[#2e3625] bg-[#1a1f14] p-6",onClick:h=>h.stopPropagation(),children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold text-[#d4d2c4]",children:c}),y.jsx("button",{onClick:o,className:"text-[#8a8672] hover:text-[#d4d2c4]",children:"×"})]}),r]})})}function mS(){const{data:u=[]}=bv(),i=sS(),[c,r]=C.useState(!1),[o,h]=C.useState(""),[v,S]=C.useState(""),p=Hf(),m=async()=>{try{await i.mutateAsync({id:o.trim(),path:v.trim()}),h(""),S(""),r(!1)}catch{}};return y.jsxs("div",{className:"min-h-screen bg-[#0d0f0a] p-8 text-[#d4d2c4]",children:[y.jsxs("div",{className:"mx-auto max-w-4xl",children:[y.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[y.jsxs("h1",{className:"flex items-center gap-3 text-2xl font-bold",children:[y.jsx("img",{src:"/project.webp",alt:"",className:"h-8 w-8 rounded"}),"Projects"]}),y.jsx("button",{onClick:()=>{wt("what-do-you-want"),r(!0)},className:"rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e]",children:"Register Project"})]}),u.length===0?y.jsx("p",{className:"text-[#8a8672]",children:"No projects registered yet."}):y.jsxs("table",{className:"w-full border-collapse",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"border-b border-[#2e3625] text-left text-sm text-[#8a8672]",children:[y.jsx("th",{className:"pb-3 pr-4 font-medium",children:"Project"}),y.jsx("th",{className:"pb-3 pr-4 font-medium",children:"Path"}),y.jsx("th",{className:"pb-3 font-medium",children:"Created"})]})}),y.jsx("tbody",{children:u.map(A=>y.jsxs("tr",{onClick:()=>p(`/projects/${A.id}`),className:"cursor-pointer border-b border-[#2e3625] transition-colors hover:bg-[#1a1f14]",children:[y.jsx("td",{className:"py-3 pr-4 font-semibold",children:A.id}),y.jsx("td",{className:"truncate py-3 pr-4 text-sm text-[#8a8672]",children:A.path}),y.jsx("td",{className:"py-3 text-sm text-[#5c5a4a]",children:new Date(A.created_at).toLocaleDateString()})]},A.id))})]}),y.jsx(Hs,{open:c,onClose:()=>r(!1),title:"Register Project",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Project ID"}),y.jsx("input",{value:o,onChange:A=>h(A.target.value),placeholder:"e.g. ralph-mcp",className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Path"}),y.jsx("input",{value:v,onChange:A=>S(A.target.value),placeholder:"e.g. /Users/me/projects/ralph-mcp",className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),i.error&&y.jsx("p",{className:"text-sm text-red-400",children:i.error instanceof Error?i.error.message:"Failed to create project"}),y.jsx("button",{onClick:m,disabled:!o.trim()||!v.trim(),className:"w-full rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e] disabled:opacity-50",children:"Register"})]})})]}),y.jsx(Sv,{})]})}function qs(u,i,c){const r=C.useRef(void 0),o=C.useRef(!1);C.useEffect(()=>{if(u===void 0)return;if(!o.current){r.current=u,o.current=!0;return}const h=r.current;if(r.current=u,h!==u){if(c.current){c.current=!1;return}wt(i,.3)}},[u,i,c])}const yS={planned:"bg-slate-700 text-slate-200",todo:"bg-slate-700 text-slate-200",in_progress:"bg-blue-900 text-blue-300",done:"bg-emerald-900 text-emerald-300",cancelled:"bg-stone-700 text-stone-300"};function Vf({status:u}){const i=yS[u]||"bg-slate-700 text-slate-200";return y.jsx("span",{className:`inline-block rounded-full px-2.5 py-0.5 text-xs font-medium ${i}`,children:u.replace("_"," ")})}function vS(){const{id:u}=ni(),{data:i}=iS(u),c=C.useRef(!1);if(qs(i,"zug-zug",c),!i)return y.jsx("p",{className:"text-[#8a8672]",children:"Loading..."});const r=Object.values(i.feature_counts).reduce((p,m)=>p+m,0),o=Object.values(i.task_counts).reduce((p,m)=>p+m,0),h=Object.values(i.test_counts).reduce((p,m)=>p+m,0),v=h>0?Math.round((i.test_counts.pass||0)/h*100):0,S=[{label:"Features",value:r,sub:`${i.feature_counts.done||0} done`},{label:"Tasks",value:o,sub:`${i.task_counts.done||0} done`},{label:"Work Logs",value:i.total_logs,sub:"total entries"},{label:"Test Pass Rate",value:`${v}%`,sub:`${h} results`}];return y.jsxs("div",{children:[y.jsx("h1",{className:"mb-6 text-2xl font-bold",children:u}),y.jsx("div",{className:"mb-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:S.map(p=>y.jsxs("div",{className:"rounded-lg border border-[#2e3625] bg-[#1a1f14] p-5",children:[y.jsx("p",{className:"text-sm text-[#8a8672]",children:p.label}),y.jsx("p",{className:"mt-1 text-2xl font-bold",children:p.value}),y.jsx("p",{className:"mt-1 text-xs text-[#5c5a4a]",children:p.sub})]},p.label))}),y.jsx("h2",{className:"mb-4 text-lg font-semibold",children:"Recent Activity"}),i.recent_logs.length===0?y.jsx("p",{className:"text-[#8a8672]",children:"No work logs yet."}):y.jsx("div",{className:"space-y-3",children:i.recent_logs.map(p=>y.jsxs("div",{className:"rounded-lg border border-[#2e3625] bg-[#1a1f14] p-4",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsx("p",{className:"text-sm",children:p.summary}),p.test_result&&y.jsx("span",{className:`ml-2 inline-block rounded-full px-2 py-0.5 text-xs font-medium ${p.test_result==="pass"?"bg-emerald-900 text-emerald-300":p.test_result==="fail"?"bg-red-900 text-red-300":"bg-gray-800 text-gray-400"}`,children:p.test_result})]}),y.jsxs("div",{className:"mt-2 flex items-center gap-3 text-xs text-[#5c5a4a]",children:[y.jsx(Vf,{status:`task #${p.task_id}`}),y.jsx("span",{children:new Date(p.created_at).toLocaleString()}),p.files_changed&&y.jsx("span",{className:"truncate",children:p.files_changed})]})]},p.id))})]})}function pS(u,i){return Wa({queryKey:ce.features.list(u,i),queryFn:()=>x1(u,i||void 0),enabled:!!u,placeholderData:sv})}function gS(u){const i=cl();return pa({mutationFn:c=>E1(u,c),onSuccess:()=>{i.invalidateQueries({queryKey:["features",u]}),i.invalidateQueries({queryKey:ce.projects.stats(u)}),wt("i-can-do-that")},onError:()=>{wt("hmm")}})}function bS(u){const i=cl();return pa({mutationFn:({id:c,data:r})=>T1(c,r),onSuccess:()=>{i.invalidateQueries({queryKey:["features",u]}),i.invalidateQueries({queryKey:ce.projects.stats(u)}),wt("zug-zug")},onError:()=>{wt("hmm")}})}function SS(u){const i=cl();return pa({mutationFn:c=>O1(c),onSuccess:()=>{i.invalidateQueries({queryKey:["features",u]}),i.invalidateQueries({queryKey:ce.projects.stats(u)}),wt("death")},onError:()=>{wt("hmm")}})}const Ay=["planned","in_progress","done","cancelled"];function xS(){const{id:u}=ni(),[i,c]=C.useState(""),[r,o]=C.useState(!1),[h,v]=C.useState(null),[S,p]=C.useState({name:"",description:"",status:"planned"}),m=C.useRef(!1),{data:A=[]}=pS(u,i||void 0),T=gS(u),z=bS(u),B=SS(u);qs(A,"i-ll-try",m);const X=()=>{v(null),p({name:"",description:"",status:"planned"}),o(!0),wt("what-do-you-want")},G=H=>{v(H),p({name:H.name,description:H.description,status:H.status}),o(!0),wt("what-do-you-want")},Y=async()=>{m.current=!0;try{h?await z.mutateAsync({id:h.id,data:{name:S.name,description:S.description,status:S.status}}):await T.mutateAsync(S),o(!1)}catch{}},K=async H=>{m.current=!0;try{await B.mutateAsync(H)}catch{}},k=T.error||z.error,Q=k instanceof Error?k.message:k?"Failed":"";return y.jsxs("div",{children:[y.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[y.jsxs("h1",{className:"flex items-center gap-3 text-2xl font-bold",children:[y.jsx("img",{src:"/scroll.webp",alt:"",className:"h-8 w-8 rounded"}),"Features"]}),y.jsx("button",{onClick:X,className:"rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e]",children:"New Feature"})]}),y.jsxs("div",{className:"mb-4 flex gap-2",children:[y.jsx("button",{onClick:()=>c(""),className:`rounded px-3 py-1 text-sm ${i?"text-[#8a8672] hover:text-[#d4d2c4]":"bg-[#2e3625] text-[#d4d2c4]"}`,children:"All"}),Ay.map(H=>y.jsx("button",{onClick:()=>c(H),className:`rounded px-3 py-1 text-sm ${i===H?"bg-[#2e3625] text-[#d4d2c4]":"text-[#8a8672] hover:text-[#d4d2c4]"}`,children:H.replace("_"," ")},H))]}),A.length===0?y.jsx("p",{className:"text-[#8a8672]",children:"No features found."}):y.jsx("div",{className:"overflow-hidden rounded-lg border border-[#2e3625]",children:y.jsxs("table",{className:"w-full text-left text-sm",children:[y.jsx("thead",{className:"border-b border-[#2e3625] bg-[#0d0f0a]",children:y.jsxs("tr",{children:[y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]",children:"Name"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]",children:"Status"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]",children:"Updated"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]"})]})}),y.jsx("tbody",{children:A.map(H=>y.jsxs("tr",{className:"border-b border-[#2e3625] bg-[#1a1f14] hover:bg-[#242b1c]",children:[y.jsx("td",{className:"px-4 py-3",children:y.jsxs("div",{children:[y.jsx("span",{className:"font-medium",children:H.name}),H.description&&y.jsx("p",{className:"mt-0.5 truncate text-xs text-[#8a8672]",children:H.description})]})}),y.jsx("td",{className:"px-4 py-3",children:y.jsx(Vf,{status:H.status})}),y.jsx("td",{className:"px-4 py-3 text-[#8a8672]",children:new Date(H.updated_at).toLocaleDateString()}),y.jsx("td",{className:"px-4 py-3",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx("button",{onClick:()=>G(H),className:"text-xs text-[#8a8672] hover:text-[#d4d2c4]",children:"Edit"}),y.jsx("button",{onClick:()=>K(H.id),className:"text-xs text-red-400 hover:text-red-300",children:"Delete"})]})})]},H.id))})]})}),y.jsx(Hs,{open:r,onClose:()=>o(!1),title:h?"Edit Feature":"New Feature",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Name"}),y.jsx("input",{value:S.name,onChange:H=>p({...S,name:H.target.value}),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Description"}),y.jsx("textarea",{value:S.description,onChange:H=>p({...S,description:H.target.value}),rows:3,className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Status"}),y.jsx("select",{value:S.status,onChange:H=>p({...S,status:H.target.value}),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] focus:border-[#5c5a4a] focus:outline-none",children:Ay.map(H=>y.jsx("option",{value:H,children:H.replace("_"," ")},H))})]}),Q&&y.jsx("p",{className:"text-sm text-red-400",children:Q}),y.jsx("button",{onClick:Y,disabled:!S.name.trim(),className:"w-full rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e] disabled:opacity-50",children:h?"Update":"Create"})]})})]})}function xv(u,i,c){return Wa({queryKey:ce.tasks.list(u,i,c),queryFn:()=>A1(u,i||void 0,c||void 0),enabled:!!u,placeholderData:sv})}function ES(u){const i=cl();return pa({mutationFn:c=>C1(u,c),onSuccess:()=>{i.invalidateQueries({queryKey:["tasks",u]}),i.invalidateQueries({queryKey:ce.projects.stats(u)}),wt("work-work")},onError:()=>{wt("hmm")}})}function TS(u){const i=cl();return pa({mutationFn:({id:c,data:r})=>R1(c,r),onSuccess:()=>{i.invalidateQueries({queryKey:["tasks",u]}),i.invalidateQueries({queryKey:ce.projects.stats(u)}),wt("zug-zug")},onError:()=>{wt("hmm")}})}function OS(u){const i=cl();return pa({mutationFn:c=>_1(c),onSuccess:()=>{i.invalidateQueries({queryKey:["tasks",u]}),i.invalidateQueries({queryKey:ce.projects.stats(u)}),wt("death")},onError:()=>{wt("hmm")}})}const AS={critical:"bg-red-900 text-red-300",high:"bg-orange-900 text-orange-300",medium:"bg-slate-700 text-slate-300",low:"bg-gray-800 text-gray-400"};function CS({priority:u}){const i=AS[u]||"bg-slate-700 text-slate-300";return y.jsx("span",{className:`inline-block rounded-full px-2.5 py-0.5 text-xs font-medium ${i}`,children:u})}const Cy=["todo","in_progress","done","cancelled"],Ry=["critical","high","medium","low"];function RS(){const{id:u}=ni(),[i,c]=C.useState(""),[r,o]=C.useState(""),[h,v]=C.useState(!1),[S,p]=C.useState(null),[m,A]=C.useState({title:"",description:"",priority:"medium",status:"todo",commit_base:"",commit_head:""}),T=C.useRef(!1),{data:z=[]}=xv(u,i||void 0,r||void 0),B=ES(u),X=TS(u),G=OS(u);qs(z,"i-ll-try",T);const Y=()=>{p(null),A({title:"",description:"",priority:"medium",status:"todo",commit_base:"",commit_head:""}),v(!0),wt("what-do-you-want")},K=L=>{p(L),A({title:L.title,description:L.description,priority:L.priority,status:L.status,commit_base:L.commit_base,commit_head:L.commit_head}),v(!0),wt("what-do-you-want")},k=async()=>{T.current=!0;try{S?await X.mutateAsync({id:S.id,data:{title:m.title,description:m.description,priority:m.priority,status:m.status,commit_base:m.commit_base,commit_head:m.commit_head}}):await B.mutateAsync({...m,commit_base:m.commit_base||void 0,commit_head:m.commit_head||void 0}),v(!1)}catch{}},Q=async L=>{T.current=!0;try{await G.mutateAsync(L)}catch{}},H=B.error||X.error,lt=H instanceof Error?H.message:H?"Failed":"";return y.jsxs("div",{children:[y.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[y.jsxs("h1",{className:"flex items-center gap-3 text-2xl font-bold",children:[y.jsx("img",{src:"/shield.webp",alt:"",className:"h-8 w-8 rounded"}),"Tasks"]}),y.jsx("button",{onClick:Y,className:"rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e]",children:"New Task"})]}),y.jsxs("div",{className:"mb-4 flex flex-wrap gap-4",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("span",{className:"self-center text-xs text-[#8a8672]",children:"Status:"}),y.jsx("button",{onClick:()=>c(""),className:`rounded px-3 py-1 text-sm ${i?"text-[#8a8672] hover:text-[#d4d2c4]":"bg-[#2e3625] text-[#d4d2c4]"}`,children:"All"}),Cy.map(L=>y.jsx("button",{onClick:()=>c(L),className:`rounded px-3 py-1 text-sm ${i===L?"bg-[#2e3625] text-[#d4d2c4]":"text-[#8a8672] hover:text-[#d4d2c4]"}`,children:L.replace("_"," ")},L))]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("span",{className:"self-center text-xs text-[#8a8672]",children:"Priority:"}),y.jsx("button",{onClick:()=>o(""),className:`rounded px-3 py-1 text-sm ${r?"text-[#8a8672] hover:text-[#d4d2c4]":"bg-[#2e3625] text-[#d4d2c4]"}`,children:"All"}),Ry.map(L=>y.jsx("button",{onClick:()=>o(L),className:`rounded px-3 py-1 text-sm ${r===L?"bg-[#2e3625] text-[#d4d2c4]":"text-[#8a8672] hover:text-[#d4d2c4]"}`,children:L},L))]})]}),z.length===0?y.jsx("p",{className:"text-[#8a8672]",children:"No tasks found."}):y.jsx("div",{className:"overflow-hidden rounded-lg border border-[#2e3625]",children:y.jsxs("table",{className:"w-full text-left text-sm",children:[y.jsx("thead",{className:"border-b border-[#2e3625] bg-[#0d0f0a]",children:y.jsxs("tr",{children:[y.jsx("th",{className:"w-2/5 px-4 py-3 font-medium text-[#8a8672]",children:"Title"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]",children:"Priority"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]",children:"Status"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]",children:"Commits"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]",children:"Updated"}),y.jsx("th",{className:"px-4 py-3 font-medium text-[#8a8672]"})]})}),y.jsx("tbody",{children:z.map(L=>y.jsxs("tr",{className:"border-b border-[#2e3625] bg-[#1a1f14] hover:bg-[#242b1c]",children:[y.jsx("td",{className:"max-w-0 px-4 py-3",children:y.jsxs("div",{className:"overflow-hidden",children:[y.jsx("span",{className:"block truncate font-medium",children:L.title}),L.description&&y.jsx("p",{className:"mt-0.5 truncate text-xs text-[#8a8672]",children:L.description})]})}),y.jsx("td",{className:"px-4 py-3",children:y.jsx(CS,{priority:L.priority})}),y.jsx("td",{className:"px-4 py-3",children:y.jsx(Vf,{status:L.status})}),y.jsx("td",{className:"px-4 py-3",children:L.commit_base||L.commit_head?y.jsxs("div",{className:"flex gap-1 font-mono text-xs text-[#8a8672]",children:[L.commit_base&&y.jsx("span",{title:L.commit_base,children:L.commit_base.slice(0,8)}),L.commit_base&&L.commit_head&&y.jsx("span",{children:".."}),L.commit_head&&y.jsx("span",{title:L.commit_head,children:L.commit_head.slice(0,8)})]}):y.jsx("span",{className:"text-xs text-[#5c5a4a]",children:"--"})}),y.jsx("td",{className:"px-4 py-3 text-[#8a8672]",children:new Date(L.updated_at).toLocaleDateString()}),y.jsx("td",{className:"px-4 py-3",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx("button",{onClick:()=>K(L),className:"text-xs text-[#8a8672] hover:text-[#d4d2c4]",children:"Edit"}),y.jsx("button",{onClick:()=>Q(L.id),className:"text-xs text-red-400 hover:text-red-300",children:"Delete"})]})})]},L.id))})]})}),y.jsx(Hs,{open:h,onClose:()=>v(!1),title:S?"Edit Task":"New Task",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Title"}),y.jsx("input",{value:m.title,onChange:L=>A({...m,title:L.target.value}),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Description"}),y.jsx("textarea",{value:m.description,onChange:L=>A({...m,description:L.target.value}),rows:3,className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Priority"}),y.jsx("select",{value:m.priority,onChange:L=>A({...m,priority:L.target.value}),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] focus:border-[#5c5a4a] focus:outline-none",children:Ry.map(L=>y.jsx("option",{value:L,children:L},L))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Status"}),y.jsx("select",{value:m.status,onChange:L=>A({...m,status:L.target.value}),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] focus:border-[#5c5a4a] focus:outline-none",children:Cy.map(L=>y.jsx("option",{value:L,children:L.replace("_"," ")},L))})]})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Base Commit"}),y.jsx("input",{value:m.commit_base,onChange:L=>A({...m,commit_base:L.target.value}),placeholder:"SHA",className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 font-mono text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Head Commit"}),y.jsx("input",{value:m.commit_head,onChange:L=>A({...m,commit_head:L.target.value}),placeholder:"SHA",className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 font-mono text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]})]}),lt&&y.jsx("p",{className:"text-sm text-red-400",children:lt}),y.jsx("button",{onClick:k,disabled:!m.title.trim(),className:"w-full rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e] disabled:opacity-50",children:S?"Update":"Create"})]})})]})}function _S(u){return Wa({queryKey:ce.workLogs.list(u),queryFn:()=>j1(u),enabled:!!u})}function jS(u){const i=cl();return pa({mutationFn:c=>z1(u,c),onSuccess:()=>{i.invalidateQueries({queryKey:ce.workLogs.list(u)}),i.invalidateQueries({queryKey:ce.projects.stats(u)}),wt("google-dokey")},onError:()=>{wt("hmm")}})}function zS(){const{id:u}=ni(),[i,c]=C.useState(!1),[r,o]=C.useState({task_id:"",summary:"",files_changed:"",test_result:""}),h=C.useRef(!1),{data:v=[]}=_S(u),{data:S=[]}=xv(u),p=jS(u);qs(v,"double",h);const m=()=>{o({task_id:"",summary:"",files_changed:"",test_result:""}),c(!0),wt("what-do-you-want")},A=async()=>{h.current=!0;try{await p.mutateAsync({task_id:parseInt(r.task_id),summary:r.summary,files_changed:r.files_changed,test_result:r.test_result}),c(!1)}catch{}},T=p.error instanceof Error?p.error.message:p.error?"Failed":"";return y.jsxs("div",{children:[y.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[y.jsxs("h1",{className:"flex items-center gap-3 text-2xl font-bold",children:[y.jsx("img",{src:"/project.webp",alt:"",className:"h-8 w-8 rounded"}),"Work Logs"]}),y.jsx("button",{onClick:m,className:"rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e]",children:"Log Work"})]}),v.length===0?y.jsx("p",{className:"text-[#8a8672]",children:"No work logs yet."}):y.jsx("div",{className:"space-y-3",children:v.map(z=>y.jsxs("div",{className:"rounded-lg border border-[#2e3625] bg-[#1a1f14] p-4",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsxs("div",{className:"flex-1",children:[y.jsx("p",{className:"text-sm",children:z.summary}),z.files_changed&&y.jsxs("p",{className:"mt-1 text-xs text-[#8a8672]",children:["Files: ",z.files_changed]})]}),z.test_result&&y.jsx("span",{className:`ml-3 inline-block rounded-full px-2.5 py-0.5 text-xs font-medium ${z.test_result==="pass"?"bg-emerald-900 text-emerald-300":z.test_result==="fail"?"bg-red-900 text-red-300":"bg-gray-800 text-gray-400"}`,children:z.test_result})]}),y.jsxs("div",{className:"mt-2 flex items-center gap-3 text-xs text-[#5c5a4a]",children:[y.jsxs("span",{children:["Task #",z.task_id]}),y.jsx("span",{children:new Date(z.created_at).toLocaleString()})]})]},z.id))}),y.jsx(Hs,{open:i,onClose:()=>c(!1),title:"Log Work",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Task"}),y.jsxs("select",{value:r.task_id,onChange:z=>o({...r,task_id:z.target.value}),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] focus:border-[#5c5a4a] focus:outline-none",children:[y.jsx("option",{value:"",children:"Select a task..."}),S.map(z=>y.jsxs("option",{value:z.id,children:["#",z.id," — ",z.title]},z.id))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Summary"}),y.jsx("textarea",{value:r.summary,onChange:z=>o({...r,summary:z.target.value}),rows:3,className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Files Changed"}),y.jsx("input",{value:r.files_changed,onChange:z=>o({...r,files_changed:z.target.value}),placeholder:"e.g. src/app.ts, README.md",className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] placeholder-[#5c5a4a] focus:border-[#5c5a4a] focus:outline-none"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"mb-1 block text-sm text-[#8a8672]",children:"Test Result"}),y.jsxs("select",{value:r.test_result,onChange:z=>o({...r,test_result:z.target.value}),className:"w-full rounded border border-[#2e3625] bg-[#1a1f14] px-3 py-2 text-sm text-[#d4d2c4] focus:border-[#5c5a4a] focus:outline-none",children:[y.jsx("option",{value:"",children:"N/A"}),y.jsx("option",{value:"pass",children:"Pass"}),y.jsx("option",{value:"fail",children:"Fail"}),y.jsx("option",{value:"skip",children:"Skip"})]})]}),T&&y.jsx("p",{className:"text-sm text-red-400",children:T}),y.jsx("button",{onClick:A,disabled:!r.task_id||!r.summary.trim(),className:"w-full rounded bg-[#5fa33a] px-4 py-2 text-sm font-medium text-black hover:bg-[#4d8a2e] disabled:opacity-50",children:"Save Log"})]})})]})}function NS(){return y.jsxs(tb,{children:[y.jsx(qa,{path:"/",element:y.jsx(mS,{})}),y.jsxs(qa,{path:"/projects/:id",element:y.jsx(hS,{}),children:[y.jsx(qa,{index:!0,element:y.jsx(vS,{})}),y.jsx(qa,{path:"features",element:y.jsx(xS,{})}),y.jsx(qa,{path:"tasks",element:y.jsx(RS,{})}),y.jsx(qa,{path:"logs",element:y.jsx(zS,{})})]})]})}tg.createRoot(document.getElementById("root")).render(y.jsx(C.StrictMode,{children:y.jsxs(a1,{client:v1,children:[y.jsx(Ob,{children:y.jsx(NS,{})}),y.jsx(y1,{initialIsOpen:!1})]})}));
