// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

////////////////////////////////
// THIS FILE IS AUTOGENERATED //
//    DO NOT MANUALLY EDIT    //
////////////////////////////////

(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function Tg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Pr={exports:{}},$a={};/**
 * @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 Kh;function Uv(){if(Kh)return $a;Kh=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(s,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:l,type:s,key:h,ref:c!==void 0?c:null,props:f}}return $a.Fragment=u,$a.jsx=i,$a.jsxs=i,$a}var Jh;function Nv(){return Jh||(Jh=1,Pr.exports=Uv()),Pr.exports}var F=Nv(),Ir={exports:{}},te={};/**
 * @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 kh;function Vv(){if(kh)return te;kh=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),R=Symbol.iterator;function S(_){return _===null||typeof _!="object"?null:(_=R&&_[R]||_["@@iterator"],typeof _=="function"?_:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,U={};function H(_,q,Y){this.props=_,this.context=q,this.refs=U,this.updater=Y||z}H.prototype.isReactComponent={},H.prototype.setState=function(_,q){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,q,"setState")},H.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function V(){}V.prototype=H.prototype;function G(_,q,Y){this.props=_,this.context=q,this.refs=U,this.updater=Y||z}var ne=G.prototype=new V;ne.constructor=G,T(ne,H.prototype),ne.isPureReactComponent=!0;var ee=Array.isArray;function pe(){}var K={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function ye(_,q,Y){var $=Y.ref;return{$$typeof:l,type:_,key:q,ref:$!==void 0?$:null,props:Y}}function xe(_,q){return ye(_.type,q,_.props)}function Ue(_){return typeof _=="object"&&_!==null&&_.$$typeof===l}function tt(_){var q={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Y){return q[Y]})}var Fn=/\/+/g;function Xt(_,q){return typeof _=="object"&&_!==null&&_.key!=null?tt(""+_.key):q.toString(36)}function Ht(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(pe,pe):(_.status="pending",_.then(function(q){_.status==="pending"&&(_.status="fulfilled",_.value=q)},function(q){_.status==="pending"&&(_.status="rejected",_.reason=q)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function L(_,q,Y,$,le){var ue=typeof _;(ue==="undefined"||ue==="boolean")&&(_=null);var ve=!1;if(_===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(_.$$typeof){case l:case u:ve=!0;break;case y:return ve=_._init,L(ve(_._payload),q,Y,$,le)}}if(ve)return le=le(_),ve=$===""?"."+Xt(_,0):$,ee(le)?(Y="",ve!=null&&(Y=ve.replace(Fn,"$&/")+"/"),L(le,q,Y,"",function(Wl){return Wl})):le!=null&&(Ue(le)&&(le=xe(le,Y+(le.key==null||_&&_.key===le.key?"":(""+le.key).replace(Fn,"$&/")+"/")+ve)),q.push(le)),1;ve=0;var We=$===""?".":$+":";if(ee(_))for(var Ne=0;Ne<_.length;Ne++)$=_[Ne],ue=We+Xt($,Ne),ve+=L($,q,Y,ue,le);else if(Ne=S(_),typeof Ne=="function")for(_=Ne.call(_),Ne=0;!($=_.next()).done;)$=$.value,ue=We+Xt($,Ne++),ve+=L($,q,Y,ue,le);else if(ue==="object"){if(typeof _.then=="function")return L(Ht(_),q,Y,$,le);throw q=String(_),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Q(_,q,Y){if(_==null)return _;var $=[],le=0;return L(_,$,"","",function(ue){return q.call(Y,ue,le++)}),$}function W(_){if(_._status===-1){var q=_._result;q=q(),q.then(function(Y){(_._status===0||_._status===-1)&&(_._status=1,_._result=Y)},function(Y){(_._status===0||_._status===-1)&&(_._status=2,_._result=Y)}),_._status===-1&&(_._status=0,_._result=q)}if(_._status===1)return _._result.default;throw _._result}var Re=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},Me={map:Q,forEach:function(_,q,Y){Q(_,function(){q.apply(this,arguments)},Y)},count:function(_){var q=0;return Q(_,function(){q++}),q},toArray:function(_){return Q(_,function(q){return q})||[]},only:function(_){if(!Ue(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return te.Activity=b,te.Children=Me,te.Component=H,te.Fragment=i,te.Profiler=c,te.PureComponent=G,te.StrictMode=s,te.Suspense=p,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,te.__COMPILER_RUNTIME={__proto__:null,c:function(_){return K.H.useMemoCache(_)}},te.cache=function(_){return function(){return _.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(_,q,Y){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var $=T({},_.props),le=_.key;if(q!=null)for(ue in q.key!==void 0&&(le=""+q.key),q)!fe.call(q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&q.ref===void 0||($[ue]=q[ue]);var ue=arguments.length-2;if(ue===1)$.children=Y;else if(1<ue){for(var ve=Array(ue),We=0;We<ue;We++)ve[We]=arguments[We+2];$.children=ve}return ye(_.type,le,$)},te.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},te.createElement=function(_,q,Y){var $,le={},ue=null;if(q!=null)for($ in q.key!==void 0&&(ue=""+q.key),q)fe.call(q,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(le[$]=q[$]);var ve=arguments.length-2;if(ve===1)le.children=Y;else if(1<ve){for(var We=Array(ve),Ne=0;Ne<ve;Ne++)We[Ne]=arguments[Ne+2];le.children=We}if(_&&_.defaultProps)for($ in ve=_.defaultProps,ve)le[$]===void 0&&(le[$]=ve[$]);return ye(_,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(_){return{$$typeof:g,render:_}},te.isValidElement=Ue,te.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:W}},te.memo=function(_,q){return{$$typeof:m,type:_,compare:q===void 0?null:q}},te.startTransition=function(_){var q=K.T,Y={};K.T=Y;try{var $=_(),le=K.S;le!==null&&le(Y,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(pe,Re)}catch(ue){Re(ue)}finally{q!==null&&Y.types!==null&&(q.types=Y.types),K.T=q}},te.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},te.use=function(_){return K.H.use(_)},te.useActionState=function(_,q,Y){return K.H.useActionState(_,q,Y)},te.useCallback=function(_,q){return K.H.useCallback(_,q)},te.useContext=function(_){return K.H.useContext(_)},te.useDebugValue=function(){},te.useDeferredValue=function(_,q){return K.H.useDeferredValue(_,q)},te.useEffect=function(_,q){return K.H.useEffect(_,q)},te.useEffectEvent=function(_){return K.H.useEffectEvent(_)},te.useId=function(){return K.H.useId()},te.useImperativeHandle=function(_,q,Y){return K.H.useImperativeHandle(_,q,Y)},te.useInsertionEffect=function(_,q){return K.H.useInsertionEffect(_,q)},te.useLayoutEffect=function(_,q){return K.H.useLayoutEffect(_,q)},te.useMemo=function(_,q){return K.H.useMemo(_,q)},te.useOptimistic=function(_,q){return K.H.useOptimistic(_,q)},te.useReducer=function(_,q,Y){return K.H.useReducer(_,q,Y)},te.useRef=function(_){return K.H.useRef(_)},te.useState=function(_){return K.H.useState(_)},te.useSyncExternalStore=function(_,q,Y){return K.H.useSyncExternalStore(_,q,Y)},te.useTransition=function(){return K.H.useTransition()},te.version="19.2.0",te}var Ph;function Ao(){return Ph||(Ph=1,Ir.exports=Vv()),Ir.exports}var w=Ao();const Lv=Tg(w);var Wr={exports:{}},Za={},eo={exports:{}},to={};/**
 * @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 Ih;function Bv(){return Ih||(Ih=1,(function(l){function u(L,Q){var W=L.length;L.push(Q);e:for(;0<W;){var Re=W-1>>>1,Me=L[Re];if(0<c(Me,Q))L[Re]=Q,L[W]=Me,W=Re;else break e}}function i(L){return L.length===0?null:L[0]}function s(L){if(L.length===0)return null;var Q=L[0],W=L.pop();if(W!==Q){L[0]=W;e:for(var Re=0,Me=L.length,_=Me>>>1;Re<_;){var q=2*(Re+1)-1,Y=L[q],$=q+1,le=L[$];if(0>c(Y,W))$<Me&&0>c(le,Y)?(L[Re]=le,L[$]=W,Re=$):(L[Re]=Y,L[q]=W,Re=q);else if($<Me&&0>c(le,W))L[Re]=le,L[$]=W,Re=$;else break e}}return Q}function c(L,Q){var W=L.sortIndex-Q.sortIndex;return W!==0?W:L.id-Q.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var p=[],m=[],y=1,b=null,R=3,S=!1,z=!1,T=!1,U=!1,H=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function ne(L){for(var Q=i(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=L)s(m),Q.sortIndex=Q.expirationTime,u(p,Q);else break;Q=i(m)}}function ee(L){if(T=!1,ne(L),!z)if(i(p)!==null)z=!0,pe||(pe=!0,tt());else{var Q=i(m);Q!==null&&Ht(ee,Q.startTime-L)}}var pe=!1,K=-1,fe=5,ye=-1;function xe(){return U?!0:!(l.unstable_now()-ye<fe)}function Ue(){if(U=!1,pe){var L=l.unstable_now();ye=L;var Q=!0;try{e:{z=!1,T&&(T=!1,V(K),K=-1),S=!0;var W=R;try{t:{for(ne(L),b=i(p);b!==null&&!(b.expirationTime>L&&xe());){var Re=b.callback;if(typeof Re=="function"){b.callback=null,R=b.priorityLevel;var Me=Re(b.expirationTime<=L);if(L=l.unstable_now(),typeof Me=="function"){b.callback=Me,ne(L),Q=!0;break t}b===i(p)&&s(p),ne(L)}else s(p);b=i(p)}if(b!==null)Q=!0;else{var _=i(m);_!==null&&Ht(ee,_.startTime-L),Q=!1}}break e}finally{b=null,R=W,S=!1}Q=void 0}}finally{Q?tt():pe=!1}}}var tt;if(typeof G=="function")tt=function(){G(Ue)};else if(typeof MessageChannel<"u"){var Fn=new MessageChannel,Xt=Fn.port2;Fn.port1.onmessage=Ue,tt=function(){Xt.postMessage(null)}}else tt=function(){H(Ue,0)};function Ht(L,Q){K=H(function(){L(l.unstable_now())},Q)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(L){L.callback=null},l.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<L?Math.floor(1e3/L):5},l.unstable_getCurrentPriorityLevel=function(){return R},l.unstable_next=function(L){switch(R){case 1:case 2:case 3:var Q=3;break;default:Q=R}var W=R;R=Q;try{return L()}finally{R=W}},l.unstable_requestPaint=function(){U=!0},l.unstable_runWithPriority=function(L,Q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var W=R;R=L;try{return Q()}finally{R=W}},l.unstable_scheduleCallback=function(L,Q,W){var Re=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Re+W:Re):W=Re,L){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=W+Me,L={id:y++,callback:Q,priorityLevel:L,startTime:W,expirationTime:Me,sortIndex:-1},W>Re?(L.sortIndex=W,u(m,L),i(p)===null&&L===i(m)&&(T?(V(K),K=-1):T=!0,Ht(ee,W-Re))):(L.sortIndex=Me,u(p,L),z||S||(z=!0,pe||(pe=!0,tt()))),L},l.unstable_shouldYield=xe,l.unstable_wrapCallback=function(L){var Q=R;return function(){var W=R;R=Q;try{return L.apply(this,arguments)}finally{R=W}}}})(to)),to}var Wh;function jv(){return Wh||(Wh=1,eo.exports=Bv()),eo.exports}var no={exports:{}},Pe={};/**
 * @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 eg;function qv(){if(eg)return Pe;eg=1;var l=Ao();function u(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}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 i(){}var s={d:{f:i,r:function(){throw Error(u(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,m,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:p,containerInfo:m,implementation:y}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Pe.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(u(299));return f(p,m,null,y)},Pe.flushSync=function(p){var m=h.T,y=s.p;try{if(h.T=null,s.p=2,p)return p()}finally{h.T=m,s.p=y,s.d.f()}},Pe.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(p,m))},Pe.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Pe.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,b=g(y,m.crossOrigin),R=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?s.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:R,fetchPriority:S}):y==="script"&&s.d.X(p,{crossOrigin:b,integrity:R,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Pe.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=g(m.as,m.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(p)},Pe.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,b=g(y,m.crossOrigin);s.d.L(p,y,{crossOrigin:b,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})}},Pe.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=g(m.as,m.crossOrigin);s.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(p)},Pe.requestFormReset=function(p){s.d.r(p)},Pe.unstable_batchedUpdates=function(p,m){return p(m)},Pe.useFormState=function(p,m,y){return h.H.useFormState(p,m,y)},Pe.useFormStatus=function(){return h.H.useHostTransitionStatus()},Pe.version="19.2.0",Pe}var tg;function Og(){if(tg)return no.exports;tg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),no.exports=qv(),no.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 ng;function Gv(){if(ng)return Za;ng=1;var l=jv(),u=Ao(),i=Og();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return p(r),e;if(o===a)return p(r),t;o=o.sibling}throw Error(s(188))}if(n.return!==a.return)n=r,a=o;else{for(var d=!1,v=r.child;v;){if(v===n){d=!0,n=r,a=o;break}if(v===a){d=!0,a=r,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,a=r;break}if(v===a){d=!0,a=o,n=r;break}v=v.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,R=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),G=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),Ue=Symbol.iterator;function tt(e){return e===null||typeof e!="object"?null:(e=Ue&&e[Ue]||e["@@iterator"],typeof e=="function"?e:null)}var Fn=Symbol.for("react.client.reference");function Xt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Fn?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case H:return"Profiler";case U:return"StrictMode";case ee:return"Suspense";case pe:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case G:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Xt(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Xt(e(t))}catch{}}return null}var Ht=Array.isArray,L=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},Re=[],Me=-1;function _(e){return{current:e}}function q(e){0>Me||(e.current=Re[Me],Re[Me]=null,Me--)}function Y(e,t){Me++,Re[Me]=e.current,e.current=t}var $=_(null),le=_(null),ue=_(null),ve=_(null);function We(e,t){switch(Y(ue,t),Y(le,e),Y($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vh(t),e=yh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q($),Y($,e)}function Ne(){q($),q(le),q(ue)}function Wl(e){e.memoizedState!==null&&Y(ve,e);var t=$.current,n=yh(t,e.type);t!==n&&(Y(le,e),Y($,n))}function li(e){le.current===e&&(q($),q(le)),ve.current===e&&(q(ve),Fa._currentValue=W)}var Hu,$o;function Qn(e){if(Hu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||"",$o=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Hu+e+$o}var Uu=!1;function Nu(e,t){if(!e||Uu)return"";Uu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(D){var x=D}Reflect.construct(e,[],j)}else{try{j.call()}catch(D){x=D}e.call(j.prototype)}}else{try{throw Error()}catch(D){x=D}(j=e())&&typeof j.catch=="function"&&j.catch(function(){})}}catch(D){if(D&&x&&typeof D.stack=="string")return[D.stack,x.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var C=d.split(`
`),A=v.split(`
`);for(r=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;if(a===C.length||r===A.length)for(a=C.length-1,r=A.length-1;1<=a&&0<=r&&C[a]!==A[r];)r--;for(;1<=a&&0<=r;a--,r--)if(C[a]!==A[r]){if(a!==1||r!==1)do if(a--,r--,0>r||C[a]!==A[r]){var N=`
`+C[a].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=a&&0<=r);break}}}finally{Uu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Qn(n):""}function fm(e,t){switch(e.tag){case 26:case 27:case 5:return Qn(e.type);case 16:return Qn("Lazy");case 13:return e.child!==t&&t!==null?Qn("Suspense Fallback"):Qn("Suspense");case 19:return Qn("SuspenseList");case 0:case 15:return Nu(e.type,!1);case 11:return Nu(e.type.render,!1);case 1:return Nu(e.type,!0);case 31:return Qn("Activity");default:return""}}function Zo(e){try{var t="",n=null;do t+=fm(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Vu=Object.prototype.hasOwnProperty,Lu=l.unstable_scheduleCallback,Bu=l.unstable_cancelCallback,dm=l.unstable_shouldYield,hm=l.unstable_requestPaint,ct=l.unstable_now,gm=l.unstable_getCurrentPriorityLevel,Ko=l.unstable_ImmediatePriority,Jo=l.unstable_UserBlockingPriority,ai=l.unstable_NormalPriority,mm=l.unstable_LowPriority,ko=l.unstable_IdlePriority,pm=l.log,vm=l.unstable_setDisableYieldValue,ea=null,ft=null;function gn(e){if(typeof pm=="function"&&vm(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(ea,e)}catch{}}var dt=Math.clz32?Math.clz32:Cm,ym=Math.log,Sm=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(ym(e)/Sm|0)|0}var ii=256,ui=262144,si=4194304;function Yn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ri(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?r=Yn(a):(d&=v,d!==0?r=Yn(d):n||(n=v&~e,n!==0&&(r=Yn(n))))):(v=a&~o,v!==0?r=Yn(v):d!==0?r=Yn(d):n||(n=a&~e,n!==0&&(r=Yn(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function ta(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Rm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Po(){var e=si;return si<<=1,(si&62914560)===0&&(si=4194304),e}function ju(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function na(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bm(e,t,n,a,r,o){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,C=e.expirationTimes,A=e.hiddenUpdates;for(n=d&~n;0<n;){var N=31-dt(n),j=1<<N;v[N]=0,C[N]=-1;var x=A[N];if(x!==null)for(A[N]=null,N=0;N<x.length;N++){var D=x[N];D!==null&&(D.lane&=-536870913)}n&=~j}a!==0&&Io(e,a,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function Io(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Wo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-dt(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function ec(e,t){var n=t&-t;return n=(n&42)!==0?1:qu(n),(n&(e.suspendedLanes|t))!==0?0:n}function qu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Gu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function tc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Gh(e.type))}function nc(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var mn=Math.random().toString(36).slice(2),Xe="__reactFiber$"+mn,nt="__reactProps$"+mn,fl="__reactContainer$"+mn,Fu="__reactEvents$"+mn,Em="__reactListeners$"+mn,_m="__reactHandles$"+mn,lc="__reactResources$"+mn,la="__reactMarker$"+mn;function Qu(e){delete e[Xe],delete e[nt],delete e[Fu],delete e[Em],delete e[_m]}function dl(e){var t=e[Xe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fl]||n[Xe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mh(e);e!==null;){if(n=e[Xe])return n;e=Mh(e)}return t}e=n,n=e.parentNode}return null}function hl(e){if(e=e[Xe]||e[fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function aa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function gl(e){var t=e[lc];return t||(t=e[lc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[la]=!0}var ac=new Set,ic={};function Xn(e,t){ml(e,t),ml(e+"Capture",t)}function ml(e,t){for(ic[e]=t,e=0;e<t.length;e++)ac.add(t[e])}var Mm=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]*$"),uc={},sc={};function zm(e){return Vu.call(sc,e)?!0:Vu.call(uc,e)?!1:Mm.test(e)?sc[e]=!0:(uc[e]=!0,!1)}function oi(e,t,n){if(zm(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ci(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function $t(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tm(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yu(e){if(!e._valueTracker){var t=rc(e)?"checked":"value";e._valueTracker=Tm(e,t,""+e[t])}}function oc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=rc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Om=/[\n"\\]/g;function Et(e){return e.replace(Om,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xu(e,t,n,a,r,o,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+bt(t)):e.value!==""+bt(t)&&(e.value=""+bt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?$u(e,d,bt(t)):n!=null?$u(e,d,bt(n)):a!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+bt(v):e.removeAttribute("name")}function cc(e,t,n,a,r,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Yu(e);return}n=n!=null?""+bt(n):"",t=t!=null?""+bt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Yu(e)}function $u(e,t,n){t==="number"&&fi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pl(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function fc(e,t,n){if(t!=null&&(t=""+bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+bt(n):""}function dc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Ht(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=bt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Yu(e)}function vl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Am=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 hc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Am.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function gc(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&hc(e,r,a)}else for(var o in t)t.hasOwnProperty(o)&&hc(e,o,t[o])}function Zu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wm=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"]]),xm=/^[\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 di(e){return xm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Ku=null;function Ju(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yl=null,Sl=null;function mc(e){var t=hl(e);if(t&&(e=t.stateNode)){var n=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[nt]||null;if(!r)throw Error(s(90));Xu(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&oc(a)}break e;case"textarea":fc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pl(e,!!n.multiple,t,!1)}}}var ku=!1;function pc(e,t,n){if(ku)return e(t,n);ku=!0;try{var a=e(t);return a}finally{if(ku=!1,(yl!==null||Sl!==null)&&(Wi(),yl&&(t=yl,e=Sl,Sl=yl=null,mc(t),e)))for(t=0;t<e.length;t++)mc(e[t])}}function ia(e,t){var n=e.stateNode;if(n===null)return null;var a=n[nt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pu=!1;if(Kt)try{var ua={};Object.defineProperty(ua,"passive",{get:function(){Pu=!0}}),window.addEventListener("test",ua,ua),window.removeEventListener("test",ua,ua)}catch{Pu=!1}var pn=null,Iu=null,hi=null;function vc(){if(hi)return hi;var e,t=Iu,n=t.length,a,r="value"in pn?pn.value:pn.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===r[o-a];a++);return hi=r.slice(e,1<a?1-a:void 0)}function gi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function yc(){return!1}function lt(e){function t(n,a,r,o,d){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?mi:yc,this.isPropagationStopped=yc,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var $n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pi=lt($n),sa=b({},$n,{view:0,detail:0}),Dm=lt(sa),Wu,es,ra,vi=b({},sa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ns,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ra&&(ra&&e.type==="mousemove"?(Wu=e.screenX-ra.screenX,es=e.screenY-ra.screenY):es=Wu=0,ra=e),Wu)},movementY:function(e){return"movementY"in e?e.movementY:es}}),Sc=lt(vi),Hm=b({},vi,{dataTransfer:0}),Um=lt(Hm),Nm=b({},sa,{relatedTarget:0}),ts=lt(Nm),Vm=b({},$n,{animationName:0,elapsedTime:0,pseudoElement:0}),Lm=lt(Vm),Bm=b({},$n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jm=lt(Bm),qm=b({},$n,{data:0}),Cc=lt(qm),Gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fm={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"},Qm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ym(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qm[e])?!!t[e]:!1}function ns(){return Ym}var Xm=b({},sa,{key:function(e){if(e.key){var t=Gm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ns,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$m=lt(Xm),Zm=b({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rc=lt(Zm),Km=b({},sa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ns}),Jm=lt(Km),km=b({},$n,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pm=lt(km),Im=b({},vi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Wm=lt(Im),ep=b({},$n,{newState:0,oldState:0}),tp=lt(ep),np=[9,13,27,32],ls=Kt&&"CompositionEvent"in window,oa=null;Kt&&"documentMode"in document&&(oa=document.documentMode);var lp=Kt&&"TextEvent"in window&&!oa,bc=Kt&&(!ls||oa&&8<oa&&11>=oa),Ec=" ",_c=!1;function Mc(e,t){switch(e){case"keyup":return np.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function ap(e,t){switch(e){case"compositionend":return zc(t);case"keypress":return t.which!==32?null:(_c=!0,Ec);case"textInput":return e=t.data,e===Ec&&_c?null:e;default:return null}}function ip(e,t){if(Cl)return e==="compositionend"||!ls&&Mc(e,t)?(e=vc(),hi=Iu=pn=null,Cl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bc&&t.locale!=="ko"?null:t.data;default:return null}}var up={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 Tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!up[e.type]:t==="textarea"}function Oc(e,t,n,a){yl?Sl?Sl.push(a):Sl=[a]:yl=a,t=uu(t,"onChange"),0<t.length&&(n=new pi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ca=null,fa=null;function sp(e){fh(e,0)}function yi(e){var t=aa(e);if(oc(t))return e}function Ac(e,t){if(e==="change")return t}var wc=!1;if(Kt){var as;if(Kt){var is="oninput"in document;if(!is){var xc=document.createElement("div");xc.setAttribute("oninput","return;"),is=typeof xc.oninput=="function"}as=is}else as=!1;wc=as&&(!document.documentMode||9<document.documentMode)}function Dc(){ca&&(ca.detachEvent("onpropertychange",Hc),fa=ca=null)}function Hc(e){if(e.propertyName==="value"&&yi(fa)){var t=[];Oc(t,fa,e,Ju(e)),pc(sp,t)}}function rp(e,t,n){e==="focusin"?(Dc(),ca=t,fa=n,ca.attachEvent("onpropertychange",Hc)):e==="focusout"&&Dc()}function op(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(fa)}function cp(e,t){if(e==="click")return yi(t)}function fp(e,t){if(e==="input"||e==="change")return yi(t)}function dp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:dp;function da(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!Vu.call(t,r)||!ht(e[r],t[r]))return!1}return!0}function Uc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nc(e,t){var n=Uc(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uc(n)}}function Vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fi(e.document)}return t}function us(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var hp=Kt&&"documentMode"in document&&11>=document.documentMode,Rl=null,ss=null,ha=null,rs=!1;function Bc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rs||Rl==null||Rl!==fi(a)||(a=Rl,"selectionStart"in a&&us(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}),ha&&da(ha,a)||(ha=a,a=uu(ss,"onSelect"),0<a.length&&(t=new pi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Rl)))}function Zn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bl={animationend:Zn("Animation","AnimationEnd"),animationiteration:Zn("Animation","AnimationIteration"),animationstart:Zn("Animation","AnimationStart"),transitionrun:Zn("Transition","TransitionRun"),transitionstart:Zn("Transition","TransitionStart"),transitioncancel:Zn("Transition","TransitionCancel"),transitionend:Zn("Transition","TransitionEnd")},os={},jc={};Kt&&(jc=document.createElement("div").style,"AnimationEvent"in window||(delete bl.animationend.animation,delete bl.animationiteration.animation,delete bl.animationstart.animation),"TransitionEvent"in window||delete bl.transitionend.transition);function Kn(e){if(os[e])return os[e];if(!bl[e])return e;var t=bl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jc)return os[e]=t[n];return e}var qc=Kn("animationend"),Gc=Kn("animationiteration"),Fc=Kn("animationstart"),gp=Kn("transitionrun"),mp=Kn("transitionstart"),pp=Kn("transitioncancel"),Qc=Kn("transitionend"),Yc=new Map,cs="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(" ");cs.push("scrollEnd");function Ut(e,t){Yc.set(e,t),Xn(t,[e])}var Si=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_t=[],El=0,fs=0;function Ci(){for(var e=El,t=fs=El=0;t<e;){var n=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var r=_t[t];_t[t++]=null;var o=_t[t];if(_t[t++]=null,a!==null&&r!==null){var d=a.pending;d===null?r.next=r:(r.next=d.next,d.next=r),a.pending=r}o!==0&&Xc(n,r,o)}}function Ri(e,t,n,a){_t[El++]=e,_t[El++]=t,_t[El++]=n,_t[El++]=a,fs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ds(e,t,n,a){return Ri(e,t,n,a),bi(e)}function Jn(e,t){return Ri(e,null,null,t),bi(e)}function Xc(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-dt(n),e=o.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),o):null}function bi(e){if(50<Na)throw Na=0,Rr=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _l={};function vp(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,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 gt(e,t,n,a){return new vp(e,t,n,a)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var n=e.alternate;return n===null?(n=gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function $c(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ei(e,t,n,a,r,o){var d=0;if(a=e,typeof e=="function")hs(e)&&(d=1);else if(typeof e=="string")d=bv(e,n,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=gt(31,n,t,r),e.elementType=ye,e.lanes=o,e;case T:return kn(n.children,r,o,t);case U:d=8,r|=24;break;case H:return e=gt(12,n,t,r|2),e.elementType=H,e.lanes=o,e;case ee:return e=gt(13,n,t,r),e.elementType=ee,e.lanes=o,e;case pe:return e=gt(19,n,t,r),e.elementType=pe,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:d=10;break e;case V:d=9;break e;case ne:d=11;break e;case K:d=14;break e;case fe:d=16,a=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=gt(d,n,t,r),t.elementType=e,t.type=a,t.lanes=o,t}function kn(e,t,n,a){return e=gt(7,e,a,t),e.lanes=n,e}function gs(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function Zc(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function ms(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kc=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var n=Kc.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Zo(t)},Kc.set(e,t),t)}return{value:e,source:t,stack:Zo(t)}}var Ml=[],zl=0,_i=null,ga=0,zt=[],Tt=0,vn=null,jt=1,qt="";function kt(e,t){Ml[zl++]=ga,Ml[zl++]=_i,_i=e,ga=t}function Jc(e,t,n){zt[Tt++]=jt,zt[Tt++]=qt,zt[Tt++]=vn,vn=e;var a=jt;e=qt;var r=32-dt(a)-1;a&=~(1<<r),n+=1;var o=32-dt(t)+r;if(30<o){var d=r-r%5;o=(a&(1<<d)-1).toString(32),a>>=d,r-=d,jt=1<<32-dt(t)+r|n<<r|a,qt=o+e}else jt=1<<o|n<<r|a,qt=e}function ps(e){e.return!==null&&(kt(e,1),Jc(e,1,0))}function vs(e){for(;e===_i;)_i=Ml[--zl],Ml[zl]=null,ga=Ml[--zl],Ml[zl]=null;for(;e===vn;)vn=zt[--Tt],zt[Tt]=null,qt=zt[--Tt],zt[Tt]=null,jt=zt[--Tt],zt[Tt]=null}function kc(e,t){zt[Tt++]=jt,zt[Tt++]=qt,zt[Tt++]=vn,jt=t.id,qt=t.overflow,vn=e}var $e=null,Te=null,de=!1,yn=null,Ot=!1,ys=Error(s(519));function Sn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ma(Mt(t,e)),ys}function Pc(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Xe]=e,t[nt]=a,n){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(n=0;n<La.length;n++)re(La[n],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),cc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),dc(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||mh(t.textContent,n)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||Sn(e,!0)}function Ic(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:$e=$e.return}}function Tl(e){if(e!==$e)return!1;if(!de)return Ic(e),de=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Vr(e.type,e.memoizedProps)),n=!n),n&&Te&&Sn(e),Ic(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Te=_h(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Te=_h(e)}else t===27?(t=Te,Hn(e.type)?(e=Gr,Gr=null,Te=e):Te=t):Te=$e?wt(e.stateNode.nextSibling):null;return!0}function Pn(){Te=$e=null,de=!1}function Ss(){var e=yn;return e!==null&&(st===null?st=e:st.push.apply(st,e),yn=null),e}function ma(e){yn===null?yn=[e]:yn.push(e)}var Cs=_(null),In=null,Pt=null;function Cn(e,t,n){Y(Cs,t._currentValue),t._currentValue=n}function It(e){e._currentValue=Cs.current,q(Cs)}function Rs(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function bs(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var d=r.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=r;for(var C=0;C<t.length;C++)if(v.context===t[C]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Rs(o.return,n,e),a||(d=null);break e}o=v.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Rs(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Ol(e,t,n,a){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var v=r.type;ht(r.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(r===ve.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Fa):e=[Fa])}r=r.return}e!==null&&bs(t,e,n,a),t.flags|=262144}function Mi(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wn(e){In=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ze(e){return Wc(In,e)}function zi(e,t){return In===null&&Wn(e),Wc(e,t)}function Wc(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Pt===null){if(e===null)throw Error(s(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return n}var yp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Sp=l.unstable_scheduleCallback,Cp=l.unstable_NormalPriority,Be={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Es(){return{controller:new yp,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&Sp(Cp,function(){e.controller.abort()})}var va=null,_s=0,Al=0,wl=null;function Rp(e,t){if(va===null){var n=va=[];_s=0,Al=Tr(),wl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return _s++,t.then(ef,ef),t}function ef(){if(--_s===0&&va!==null){wl!==null&&(wl.status="fulfilled");var e=va;va=null,Al=0,wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function bp(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var tf=L.S;L.S=function(e,t){jd=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rp(e,t),tf!==null&&tf(e,t)};var el=_(null);function Ms(){var e=el.current;return e!==null?e:ze.pooledCache}function Ti(e,t){t===null?Y(el,el.current):Y(el,t.pool)}function nf(){var e=Ms();return e===null?null:{parent:Be._currentValue,pool:e}}var xl=Error(s(460)),zs=Error(s(474)),Oi=Error(s(542)),Ai={then:function(){}};function lf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function af(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Zt,Zt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw nl=t,xl}}function tl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(nl=n,xl):n}}var nl=null;function uf(){if(nl===null)throw Error(s(459));var e=nl;return nl=null,e}function sf(e){if(e===xl||e===Oi)throw Error(s(483))}var Dl=null,ya=0;function wi(e){var t=ya;return ya+=1,Dl===null&&(Dl=[]),af(Dl,e,t)}function Sa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xi(e,t){throw t.$$typeof===R?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rf(e){function t(M,E){if(e){var O=M.deletions;O===null?(M.deletions=[E],M.flags|=16):O.push(E)}}function n(M,E){if(!e)return null;for(;E!==null;)t(M,E),E=E.sibling;return null}function a(M){for(var E=new Map;M!==null;)M.key!==null?E.set(M.key,M):E.set(M.index,M),M=M.sibling;return E}function r(M,E){return M=Jt(M,E),M.index=0,M.sibling=null,M}function o(M,E,O){return M.index=O,e?(O=M.alternate,O!==null?(O=O.index,O<E?(M.flags|=67108866,E):O):(M.flags|=67108866,E)):(M.flags|=1048576,E)}function d(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,E,O,B){return E===null||E.tag!==6?(E=gs(O,M.mode,B),E.return=M,E):(E=r(E,O),E.return=M,E)}function C(M,E,O,B){var J=O.type;return J===T?N(M,E,O.props.children,B,O.key):E!==null&&(E.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&tl(J)===E.type)?(E=r(E,O.props),Sa(E,O),E.return=M,E):(E=Ei(O.type,O.key,O.props,null,M.mode,B),Sa(E,O),E.return=M,E)}function A(M,E,O,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=ms(O,M.mode,B),E.return=M,E):(E=r(E,O.children||[]),E.return=M,E)}function N(M,E,O,B,J){return E===null||E.tag!==7?(E=kn(O,M.mode,B,J),E.return=M,E):(E=r(E,O),E.return=M,E)}function j(M,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=gs(""+E,M.mode,O),E.return=M,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case S:return O=Ei(E.type,E.key,E.props,null,M.mode,O),Sa(O,E),O.return=M,O;case z:return E=ms(E,M.mode,O),E.return=M,E;case fe:return E=tl(E),j(M,E,O)}if(Ht(E)||tt(E))return E=kn(E,M.mode,O,null),E.return=M,E;if(typeof E.then=="function")return j(M,wi(E),O);if(E.$$typeof===G)return j(M,zi(M,E),O);xi(M,E)}return null}function x(M,E,O,B){var J=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return J!==null?null:v(M,E,""+O,B);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return O.key===J?C(M,E,O,B):null;case z:return O.key===J?A(M,E,O,B):null;case fe:return O=tl(O),x(M,E,O,B)}if(Ht(O)||tt(O))return J!==null?null:N(M,E,O,B,null);if(typeof O.then=="function")return x(M,E,wi(O),B);if(O.$$typeof===G)return x(M,E,zi(M,O),B);xi(M,O)}return null}function D(M,E,O,B,J){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return M=M.get(O)||null,v(E,M,""+B,J);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return M=M.get(B.key===null?O:B.key)||null,C(E,M,B,J);case z:return M=M.get(B.key===null?O:B.key)||null,A(E,M,B,J);case fe:return B=tl(B),D(M,E,O,B,J)}if(Ht(B)||tt(B))return M=M.get(O)||null,N(E,M,B,J,null);if(typeof B.then=="function")return D(M,E,O,wi(B),J);if(B.$$typeof===G)return D(M,E,O,zi(E,B),J);xi(E,B)}return null}function X(M,E,O,B){for(var J=null,he=null,Z=E,ie=E=0,ce=null;Z!==null&&ie<O.length;ie++){Z.index>ie?(ce=Z,Z=null):ce=Z.sibling;var ge=x(M,Z,O[ie],B);if(ge===null){Z===null&&(Z=ce);break}e&&Z&&ge.alternate===null&&t(M,Z),E=o(ge,E,ie),he===null?J=ge:he.sibling=ge,he=ge,Z=ce}if(ie===O.length)return n(M,Z),de&&kt(M,ie),J;if(Z===null){for(;ie<O.length;ie++)Z=j(M,O[ie],B),Z!==null&&(E=o(Z,E,ie),he===null?J=Z:he.sibling=Z,he=Z);return de&&kt(M,ie),J}for(Z=a(Z);ie<O.length;ie++)ce=D(Z,M,ie,O[ie],B),ce!==null&&(e&&ce.alternate!==null&&Z.delete(ce.key===null?ie:ce.key),E=o(ce,E,ie),he===null?J=ce:he.sibling=ce,he=ce);return e&&Z.forEach(function(Bn){return t(M,Bn)}),de&&kt(M,ie),J}function k(M,E,O,B){if(O==null)throw Error(s(151));for(var J=null,he=null,Z=E,ie=E=0,ce=null,ge=O.next();Z!==null&&!ge.done;ie++,ge=O.next()){Z.index>ie?(ce=Z,Z=null):ce=Z.sibling;var Bn=x(M,Z,ge.value,B);if(Bn===null){Z===null&&(Z=ce);break}e&&Z&&Bn.alternate===null&&t(M,Z),E=o(Bn,E,ie),he===null?J=Bn:he.sibling=Bn,he=Bn,Z=ce}if(ge.done)return n(M,Z),de&&kt(M,ie),J;if(Z===null){for(;!ge.done;ie++,ge=O.next())ge=j(M,ge.value,B),ge!==null&&(E=o(ge,E,ie),he===null?J=ge:he.sibling=ge,he=ge);return de&&kt(M,ie),J}for(Z=a(Z);!ge.done;ie++,ge=O.next())ge=D(Z,M,ie,ge.value,B),ge!==null&&(e&&ge.alternate!==null&&Z.delete(ge.key===null?ie:ge.key),E=o(ge,E,ie),he===null?J=ge:he.sibling=ge,he=ge);return e&&Z.forEach(function(Hv){return t(M,Hv)}),de&&kt(M,ie),J}function _e(M,E,O,B){if(typeof O=="object"&&O!==null&&O.type===T&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case S:e:{for(var J=O.key;E!==null;){if(E.key===J){if(J=O.type,J===T){if(E.tag===7){n(M,E.sibling),B=r(E,O.props.children),B.return=M,M=B;break e}}else if(E.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&tl(J)===E.type){n(M,E.sibling),B=r(E,O.props),Sa(B,O),B.return=M,M=B;break e}n(M,E);break}else t(M,E);E=E.sibling}O.type===T?(B=kn(O.props.children,M.mode,B,O.key),B.return=M,M=B):(B=Ei(O.type,O.key,O.props,null,M.mode,B),Sa(B,O),B.return=M,M=B)}return d(M);case z:e:{for(J=O.key;E!==null;){if(E.key===J)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){n(M,E.sibling),B=r(E,O.children||[]),B.return=M,M=B;break e}else{n(M,E);break}else t(M,E);E=E.sibling}B=ms(O,M.mode,B),B.return=M,M=B}return d(M);case fe:return O=tl(O),_e(M,E,O,B)}if(Ht(O))return X(M,E,O,B);if(tt(O)){if(J=tt(O),typeof J!="function")throw Error(s(150));return O=J.call(O),k(M,E,O,B)}if(typeof O.then=="function")return _e(M,E,wi(O),B);if(O.$$typeof===G)return _e(M,E,zi(M,O),B);xi(M,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(n(M,E.sibling),B=r(E,O),B.return=M,M=B):(n(M,E),B=gs(O,M.mode,B),B.return=M,M=B),d(M)):n(M,E)}return function(M,E,O,B){try{ya=0;var J=_e(M,E,O,B);return Dl=null,J}catch(Z){if(Z===xl||Z===Oi)throw Z;var he=gt(29,Z,null,M.mode);return he.lanes=B,he.return=M,he}finally{}}}var ll=rf(!0),of=rf(!1),Rn=!1;function Ts(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Os(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function En(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=bi(e),Xc(e,null,n),t}return Ri(e,a,t,n),bi(e)}function Ca(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Wo(e,n)}}function As(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ws=!1;function Ra(){if(ws){var e=wl;if(e!==null)throw e}}function ba(e,t,n,a){ws=!1;var r=e.updateQueue;Rn=!1;var o=r.firstBaseUpdate,d=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var C=v,A=C.next;C.next=null,d===null?o=A:d.next=A,d=C;var N=e.alternate;N!==null&&(N=N.updateQueue,v=N.lastBaseUpdate,v!==d&&(v===null?N.firstBaseUpdate=A:v.next=A,N.lastBaseUpdate=C))}if(o!==null){var j=r.baseState;d=0,N=A=C=null,v=o;do{var x=v.lane&-536870913,D=x!==v.lane;if(D?(oe&x)===x:(a&x)===x){x!==0&&x===Al&&(ws=!0),N!==null&&(N=N.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var X=e,k=v;x=t;var _e=n;switch(k.tag){case 1:if(X=k.payload,typeof X=="function"){j=X.call(_e,j,x);break e}j=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=k.payload,x=typeof X=="function"?X.call(_e,j,x):X,x==null)break e;j=b({},j,x);break e;case 2:Rn=!0}}x=v.callback,x!==null&&(e.flags|=64,D&&(e.flags|=8192),D=r.callbacks,D===null?r.callbacks=[x]:D.push(x))}else D={lane:x,tag:v.tag,payload:v.payload,callback:v.callback,next:null},N===null?(A=N=D,C=j):N=N.next=D,d|=x;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;D=v,v=D.next,D.next=null,r.lastBaseUpdate=D,r.shared.pending=null}}while(!0);N===null&&(C=j),r.baseState=C,r.firstBaseUpdate=A,r.lastBaseUpdate=N,o===null&&(r.shared.lanes=0),On|=d,e.lanes=d,e.memoizedState=j}}function cf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ff(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)cf(n[e],t)}var Hl=_(null),Di=_(0);function df(e,t){e=rn,Y(Di,e),Y(Hl,t),rn=e|t.baseLanes}function xs(){Y(Di,rn),Y(Hl,Hl.current)}function Ds(){rn=Di.current,q(Hl),q(Di)}var mt=_(null),At=null;function _n(e){var t=e.alternate;Y(Ve,Ve.current&1),Y(mt,e),At===null&&(t===null||Hl.current!==null||t.memoizedState!==null)&&(At=e)}function Hs(e){Y(Ve,Ve.current),Y(mt,e),At===null&&(At=e)}function hf(e){e.tag===22?(Y(Ve,Ve.current),Y(mt,e),At===null&&(At=e)):Mn()}function Mn(){Y(Ve,Ve.current),Y(mt,mt.current)}function pt(e){q(mt),At===e&&(At=null),q(Ve)}var Ve=_(0);function Hi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||jr(n)||qr(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wt=0,ae=null,be=null,je=null,Ui=!1,Ul=!1,al=!1,Ni=0,Ea=0,Nl=null,Ep=0;function De(){throw Error(s(321))}function Us(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ht(e[n],t[n]))return!1;return!0}function Ns(e,t,n,a,r,o){return Wt=o,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?kf:ks,al=!1,o=n(a,r),al=!1,Ul&&(o=mf(t,n,a,r)),gf(e),o}function gf(e){L.H=za;var t=be!==null&&be.next!==null;if(Wt=0,je=be=ae=null,Ui=!1,Ea=0,Nl=null,t)throw Error(s(300));e===null||qe||(e=e.dependencies,e!==null&&Mi(e)&&(qe=!0))}function mf(e,t,n,a){ae=e;var r=0;do{if(Ul&&(Nl=null),Ea=0,Ul=!1,25<=r)throw Error(s(301));if(r+=1,je=be=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=Pf,o=t(n,a)}while(Ul);return o}function _p(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?_a(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(ae.flags|=1024),t}function Vs(){var e=Ni!==0;return Ni=0,e}function Ls(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bs(e){if(Ui){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ui=!1}Wt=0,je=be=ae=null,Ul=!1,Ea=Ni=0,Nl=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?ae.memoizedState=je=e:je=je.next=e,je}function Le(){if(be===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=je===null?ae.memoizedState:je.next;if(t!==null)je=t,be=e;else{if(e===null)throw ae.alternate===null?Error(s(467)):Error(s(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},je===null?ae.memoizedState=je=e:je=je.next=e}return je}function Vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _a(e){var t=Ea;return Ea+=1,Nl===null&&(Nl=[]),e=af(Nl,e,t),t=ae,(je===null?t.memoizedState:je.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?kf:ks),e}function Li(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return _a(e);if(e.$$typeof===G)return Ze(e)}throw Error(s(438,String(e)))}function js(e){var t=null,n=ae.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Vi(),ae.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=xe;return t.index++,n}function en(e,t){return typeof t=="function"?t(e):t}function Bi(e){var t=Le();return qs(t,be,e)}function qs(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var r=e.baseQueue,o=a.pending;if(o!==null){if(r!==null){var d=r.next;r.next=o.next,o.next=d}t.baseQueue=r=o,a.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var v=d=null,C=null,A=t,N=!1;do{var j=A.lane&-536870913;if(j!==A.lane?(oe&j)===j:(Wt&j)===j){var x=A.revertLane;if(x===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),j===Al&&(N=!0);else if((Wt&x)===x){A=A.next,x===Al&&(N=!0);continue}else j={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},C===null?(v=C=j,d=o):C=C.next=j,ae.lanes|=x,On|=x;j=A.action,al&&n(o,j),o=A.hasEagerState?A.eagerState:n(o,j)}else x={lane:j,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},C===null?(v=C=x,d=o):C=C.next=x,ae.lanes|=j,On|=j;A=A.next}while(A!==null&&A!==t);if(C===null?d=o:C.next=v,!ht(o,e.memoizedState)&&(qe=!0,N&&(n=wl,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=C,a.lastRenderedState=o}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Gs(e){var t=Le(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do o=e(o,d.action),d=d.next;while(d!==r);ht(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function pf(e,t,n){var a=ae,r=Le(),o=de;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!ht((be||r).memoizedState,n);if(d&&(r.memoizedState=n,qe=!0),r=r.queue,Ys(Sf.bind(null,a,r,e),[e]),r.getSnapshot!==t||d||je!==null&&je.memoizedState.tag&1){if(a.flags|=2048,Vl(9,{destroy:void 0},yf.bind(null,a,r,n,t),null),ze===null)throw Error(s(349));o||(Wt&127)!==0||vf(a,t,n)}return n}function vf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t=Vi(),ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yf(e,t,n,a){t.value=n,t.getSnapshot=a,Cf(t)&&Rf(e)}function Sf(e,t,n){return n(function(){Cf(t)&&Rf(e)})}function Cf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ht(e,n)}catch{return!0}}function Rf(e){var t=Jn(e,2);t!==null&&rt(t,e,2)}function Fs(e){var t=et();if(typeof e=="function"){var n=e;if(e=n(),al){gn(!0);try{n()}finally{gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:e},t}function bf(e,t,n,a){return e.baseState=n,qs(e,be,typeof a=="function"?a:en)}function Mp(e,t,n,a,r){if(Gi(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};L.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Ef(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ef(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var o=L.T,d={};L.T=d;try{var v=n(r,a),C=L.S;C!==null&&C(d,v),_f(e,t,v)}catch(A){Qs(e,t,A)}finally{o!==null&&d.types!==null&&(o.types=d.types),L.T=o}}else try{o=n(r,a),_f(e,t,o)}catch(A){Qs(e,t,A)}}function _f(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Mf(e,t,a)},function(a){return Qs(e,t,a)}):Mf(e,t,n)}function Mf(e,t,n){t.status="fulfilled",t.value=n,zf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ef(e,n)))}function Qs(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,zf(t),t=t.next;while(t!==a)}e.action=null}function zf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Tf(e,t){return t}function Of(e,t){if(de){var n=ze.formState;if(n!==null){e:{var a=ae;if(de){if(Te){t:{for(var r=Te,o=Ot;r.nodeType!==8;){if(!o){r=null;break t}if(r=wt(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Te=wt(r.nextSibling),a=r.data==="F!";break e}}Sn(a)}a=!1}a&&(t=n[0])}}return n=et(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tf,lastRenderedState:t},n.queue=a,n=Zf.bind(null,ae,a),a.dispatch=n,a=Fs(!1),o=Js.bind(null,ae,!1,a.queue),a=et(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=Mp.bind(null,ae,r,o,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Af(e){var t=Le();return wf(t,be,e)}function wf(e,t,n){if(t=qs(e,t,Tf)[0],e=Bi(en)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=_a(t)}catch(d){throw d===xl?Oi:d}else a=t;t=Le();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(ae.flags|=2048,Vl(9,{destroy:void 0},zp.bind(null,r,n),null)),[a,o,e]}function zp(e,t){e.action=t}function xf(e){var t=Le(),n=be;if(n!==null)return wf(t,n,e);Le(),t=t.memoizedState,n=Le();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Vl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=Vi(),ae.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Df(){return Le().memoizedState}function ji(e,t,n,a){var r=et();ae.flags|=e,r.memoizedState=Vl(1|t,{destroy:void 0},n,a===void 0?null:a)}function qi(e,t,n,a){var r=Le();a=a===void 0?null:a;var o=r.memoizedState.inst;be!==null&&a!==null&&Us(a,be.memoizedState.deps)?r.memoizedState=Vl(t,o,n,a):(ae.flags|=e,r.memoizedState=Vl(1|t,o,n,a))}function Hf(e,t){ji(8390656,8,e,t)}function Ys(e,t){qi(2048,8,e,t)}function Tp(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=Vi(),ae.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Uf(e){var t=Le().memoizedState;return Tp({ref:t,nextImpl:e}),function(){if((me&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Nf(e,t){return qi(4,2,e,t)}function Vf(e,t){return qi(4,4,e,t)}function Lf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bf(e,t,n){n=n!=null?n.concat([e]):null,qi(4,4,Lf.bind(null,t,e),n)}function Xs(){}function jf(e,t){var n=Le();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Us(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function qf(e,t){var n=Le();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Us(t,a[1]))return a[0];if(a=e(),al){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a}function $s(e,t,n){return n===void 0||(Wt&1073741824)!==0&&(oe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Gd(),ae.lanes|=e,On|=e,n)}function Gf(e,t,n,a){return ht(n,t)?n:Hl.current!==null?(e=$s(e,n,a),ht(e,t)||(qe=!0),e):(Wt&42)===0||(Wt&1073741824)!==0&&(oe&261930)===0?(qe=!0,e.memoizedState=n):(e=Gd(),ae.lanes|=e,On|=e,t)}function Ff(e,t,n,a,r){var o=Q.p;Q.p=o!==0&&8>o?o:8;var d=L.T,v={};L.T=v,Js(e,!1,t,n);try{var C=r(),A=L.S;if(A!==null&&A(v,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var N=bp(C,a);Ma(e,t,N,St(e))}else Ma(e,t,a,St(e))}catch(j){Ma(e,t,{then:function(){},status:"rejected",reason:j},St())}finally{Q.p=o,d!==null&&v.types!==null&&(d.types=v.types),L.T=d}}function Op(){}function Zs(e,t,n,a){if(e.tag!==5)throw Error(s(476));var r=Qf(e).queue;Ff(e,r,t,W,n===null?Op:function(){return Yf(e),n(a)})}function Qf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:W},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yf(e){var t=Qf(e);t.next===null&&(t=e.alternate.memoizedState),Ma(e,t.next.queue,{},St())}function Ks(){return Ze(Fa)}function Xf(){return Le().memoizedState}function $f(){return Le().memoizedState}function Ap(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=St();e=bn(n);var a=En(t,e,n);a!==null&&(rt(a,t,n),Ca(a,t,n)),t={cache:Es()},e.payload=t;return}t=t.return}}function wp(e,t,n){var a=St();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gi(e)?Kf(t,n):(n=ds(e,t,n,a),n!==null&&(rt(n,e,a),Jf(n,t,a)))}function Zf(e,t,n){var a=St();Ma(e,t,n,a)}function Ma(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gi(e))Kf(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,v=o(d,n);if(r.hasEagerState=!0,r.eagerState=v,ht(v,d))return Ri(e,t,r,0),ze===null&&Ci(),!1}catch{}finally{}if(n=ds(e,t,r,a),n!==null)return rt(n,e,a),Jf(n,t,a),!0}return!1}function Js(e,t,n,a){if(a={lane:2,revertLane:Tr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gi(e)){if(t)throw Error(s(479))}else t=ds(e,n,a,2),t!==null&&rt(t,e,2)}function Gi(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function Kf(e,t){Ul=Ui=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jf(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Wo(e,n)}}var za={readContext:Ze,use:Li,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};za.useEffectEvent=De;var kf={readContext:Ze,use:Li,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Hf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ji(4194308,4,Lf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ji(4194308,4,e,t)},useInsertionEffect:function(e,t){ji(4,2,e,t)},useMemo:function(e,t){var n=et();t=t===void 0?null:t;var a=e();if(al){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=et();if(n!==void 0){var r=n(t);if(al){gn(!0);try{n(t)}finally{gn(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=wp.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=Fs(e);var t=e.queue,n=Zf.bind(null,ae,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xs,useDeferredValue:function(e,t){var n=et();return $s(n,e,t)},useTransition:function(){var e=Fs(!1);return e=Ff.bind(null,ae,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ae,r=et();if(de){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ze===null)throw Error(s(349));(oe&127)!==0||vf(a,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Hf(Sf.bind(null,a,o,e),[e]),a.flags|=2048,Vl(9,{destroy:void 0},yf.bind(null,a,o,n,t),null),n},useId:function(){var e=et(),t=ze.identifierPrefix;if(de){var n=qt,a=jt;n=(a&~(1<<32-dt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ni++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Ep++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ks,useFormState:Of,useActionState:Of,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Js.bind(null,ae,!0,n),n.dispatch=t,[e,t]},useMemoCache:js,useCacheRefresh:function(){return et().memoizedState=Ap.bind(null,ae)},useEffectEvent:function(e){var t=et(),n={impl:e};return t.memoizedState=n,function(){if((me&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ks={readContext:Ze,use:Li,useCallback:jf,useContext:Ze,useEffect:Ys,useImperativeHandle:Bf,useInsertionEffect:Nf,useLayoutEffect:Vf,useMemo:qf,useReducer:Bi,useRef:Df,useState:function(){return Bi(en)},useDebugValue:Xs,useDeferredValue:function(e,t){var n=Le();return Gf(n,be.memoizedState,e,t)},useTransition:function(){var e=Bi(en)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:_a(e),t]},useSyncExternalStore:pf,useId:Xf,useHostTransitionStatus:Ks,useFormState:Af,useActionState:Af,useOptimistic:function(e,t){var n=Le();return bf(n,be,e,t)},useMemoCache:js,useCacheRefresh:$f};ks.useEffectEvent=Uf;var Pf={readContext:Ze,use:Li,useCallback:jf,useContext:Ze,useEffect:Ys,useImperativeHandle:Bf,useInsertionEffect:Nf,useLayoutEffect:Vf,useMemo:qf,useReducer:Gs,useRef:Df,useState:function(){return Gs(en)},useDebugValue:Xs,useDeferredValue:function(e,t){var n=Le();return be===null?$s(n,e,t):Gf(n,be.memoizedState,e,t)},useTransition:function(){var e=Gs(en)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:_a(e),t]},useSyncExternalStore:pf,useId:Xf,useHostTransitionStatus:Ks,useFormState:xf,useActionState:xf,useOptimistic:function(e,t){var n=Le();return be!==null?bf(n,be,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:js,useCacheRefresh:$f};Pf.useEffectEvent=Uf;function Ps(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Is={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=St(),r=bn(a);r.payload=t,n!=null&&(r.callback=n),t=En(e,r,a),t!==null&&(rt(t,e,a),Ca(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=St(),r=bn(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=En(e,r,a),t!==null&&(rt(t,e,a),Ca(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=St(),a=bn(n);a.tag=2,t!=null&&(a.callback=t),t=En(e,a,n),t!==null&&(rt(t,e,n),Ca(t,e,n))}};function If(e,t,n,a,r,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,d):t.prototype&&t.prototype.isPureReactComponent?!da(n,a)||!da(r,o):!0}function Wf(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Is.enqueueReplaceState(t,t.state,null)}function il(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function ed(e){Si(e)}function td(e){console.error(e)}function nd(e){Si(e)}function Fi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ld(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ws(e,t,n){return n=bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Fi(e,t)},n}function ad(e){return e=bn(e),e.tag=3,e}function id(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=a.value;e.payload=function(){return r(o)},e.callback=function(){ld(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){ld(t,n,a),typeof r!="function"&&(An===null?An=new Set([this]):An.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function xp(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ol(t,n,r,!0),n=mt.current,n!==null){switch(n.tag){case 31:case 13:return At===null?eu():n.alternate===null&&He===0&&(He=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===Ai?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),_r(e,a,r)),!1;case 22:return n.flags|=65536,a===Ai?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),_r(e,a,r)),!1}throw Error(s(435,n.tag))}return _r(e,a,r),eu(),!1}if(de)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==ys&&(e=Error(s(422),{cause:a}),ma(Mt(e,n)))):(a!==ys&&(t=Error(s(423),{cause:a}),ma(Mt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Mt(a,n),r=Ws(e.stateNode,a,r),As(e,r),He!==4&&(He=2)),!1;var o=Error(s(520),{cause:a});if(o=Mt(o,n),Ua===null?Ua=[o]:Ua.push(o),He!==4&&(He=2),t===null)return!0;a=Mt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Ws(n.stateNode,a,e),As(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(An===null||!An.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ad(r),id(r,e,n,a),As(n,r),!1}n=n.return}while(n!==null);return!1}var er=Error(s(461)),qe=!1;function Ke(e,t,n,a){t.child=e===null?of(t,null,n,a):ll(t,e.child,n,a)}function ud(e,t,n,a,r){n=n.render;var o=t.ref;if("ref"in a){var d={};for(var v in a)v!=="ref"&&(d[v]=a[v])}else d=a;return Wn(t),a=Ns(e,t,n,d,o,r),v=Vs(),e!==null&&!qe?(Ls(e,t,r),tn(e,t,r)):(de&&v&&ps(t),t.flags|=1,Ke(e,t,a,r),t.child)}function sd(e,t,n,a,r){if(e===null){var o=n.type;return typeof o=="function"&&!hs(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,rd(e,t,o,a,r)):(e=Ei(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!rr(e,r)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:da,n(d,a)&&e.ref===t.ref)return tn(e,t,r)}return t.flags|=1,e=Jt(o,a),e.ref=t.ref,e.return=t,t.child=e}function rd(e,t,n,a,r){if(e!==null){var o=e.memoizedProps;if(da(o,a)&&e.ref===t.ref)if(qe=!1,t.pendingProps=a=o,rr(e,r))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,tn(e,t,r)}return tr(e,t,n,a,r)}function od(e,t,n,a){var r=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~o}else a=0,t.child=null;return cd(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ti(t,o!==null?o.cachePool:null),o!==null?df(t,o):xs(),hf(t);else return a=t.lanes=536870912,cd(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(Ti(t,o.cachePool),df(t,o),Mn(),t.memoizedState=null):(e!==null&&Ti(t,null),xs(),Mn());return Ke(e,t,r,n),t.child}function Ta(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cd(e,t,n,a,r){var o=Ms();return o=o===null?null:{parent:Be._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Ti(t,null),xs(),hf(t),e!==null&&Ol(e,t,a,!0),t.childLanes=r,null}function Qi(e,t){return t=Xi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fd(e,t,n){return ll(t,e.child,null,n),e=Qi(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function Dp(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=Qi(t,a),t.lanes=536870912,Ta(null,e);if(Hs(t),(e=Te)?(e=Eh(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vn!==null?{id:jt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},n=Zc(e),n.return=t,t.child=n,$e=t,Te=null)):e=null,e===null)throw Sn(t);return t.lanes=536870912,null}return Qi(t,a)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(Hs(t),r)if(t.flags&256)t.flags&=-257,t=fd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(qe||Ol(e,t,n,!1),r=(n&e.childLanes)!==0,qe||r){if(a=ze,a!==null&&(d=ec(a,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,Jn(e,d),rt(a,e,d),er;eu(),t=fd(e,t,n)}else e=o.treeContext,Te=wt(d.nextSibling),$e=t,de=!0,yn=null,Ot=!1,e!==null&&kc(t,e),t=Qi(t,a),t.flags|=4096;return t}return e=Jt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yi(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function tr(e,t,n,a,r){return Wn(t),n=Ns(e,t,n,a,void 0,r),a=Vs(),e!==null&&!qe?(Ls(e,t,r),tn(e,t,r)):(de&&a&&ps(t),t.flags|=1,Ke(e,t,n,r),t.child)}function dd(e,t,n,a,r,o){return Wn(t),t.updateQueue=null,n=mf(t,a,n,r),gf(e),a=Vs(),e!==null&&!qe?(Ls(e,t,o),tn(e,t,o)):(de&&a&&ps(t),t.flags|=1,Ke(e,t,n,o),t.child)}function hd(e,t,n,a,r){if(Wn(t),t.stateNode===null){var o=_l,d=n.contextType;typeof d=="object"&&d!==null&&(o=Ze(d)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Is,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Ts(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?Ze(d):_l,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Ps(t,n,d,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&Is.enqueueReplaceState(o,o.state,null),ba(t,a,o,r),Ra(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,C=il(n,v);o.props=C;var A=o.context,N=n.contextType;d=_l,typeof N=="object"&&N!==null&&(d=Ze(N));var j=n.getDerivedStateFromProps;N=typeof j=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,N||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||A!==d)&&Wf(t,o,a,d),Rn=!1;var x=t.memoizedState;o.state=x,ba(t,a,o,r),Ra(),A=t.memoizedState,v||x!==A||Rn?(typeof j=="function"&&(Ps(t,n,j,a),A=t.memoizedState),(C=Rn||If(t,n,C,a,x,A,d))?(N||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),o.props=a,o.state=A,o.context=d,a=C):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Os(e,t),d=t.memoizedProps,N=il(n,d),o.props=N,j=t.pendingProps,x=o.context,A=n.contextType,C=_l,typeof A=="object"&&A!==null&&(C=Ze(A)),v=n.getDerivedStateFromProps,(A=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==j||x!==C)&&Wf(t,o,a,C),Rn=!1,x=t.memoizedState,o.state=x,ba(t,a,o,r),Ra();var D=t.memoizedState;d!==j||x!==D||Rn||e!==null&&e.dependencies!==null&&Mi(e.dependencies)?(typeof v=="function"&&(Ps(t,n,v,a),D=t.memoizedState),(N=Rn||If(t,n,N,a,x,D,C)||e!==null&&e.dependencies!==null&&Mi(e.dependencies))?(A||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,D,C),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,D,C)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),o.props=a,o.state=D,o.context=C,a=N):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Yi(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=ll(t,e.child,null,r),t.child=ll(t,null,n,r)):Ke(e,t,n,r),t.memoizedState=o.state,e=t.child):e=tn(e,t,r),e}function gd(e,t,n,a){return Pn(),t.flags|=256,Ke(e,t,n,a),t.child}var nr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lr(e){return{baseLanes:e,cachePool:nf()}}function ar(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=yt),e}function md(e,t,n){var a=t.pendingProps,r=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(r?_n(t):Mn(),(e=Te)?(e=Eh(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vn!==null?{id:jt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},n=Zc(e),n.return=t,t.child=n,$e=t,Te=null)):e=null,e===null)throw Sn(t);return qr(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,r?(Mn(),r=t.mode,v=Xi({mode:"hidden",children:v},r),a=kn(a,r,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=lr(n),a.childLanes=ar(e,d,n),t.memoizedState=nr,Ta(null,a)):(_n(t),ir(t,v))}var C=e.memoizedState;if(C!==null&&(v=C.dehydrated,v!==null)){if(o)t.flags&256?(_n(t),t.flags&=-257,t=ur(e,t,n)):t.memoizedState!==null?(Mn(),t.child=e.child,t.flags|=128,t=null):(Mn(),v=a.fallback,r=t.mode,a=Xi({mode:"visible",children:a.children},r),v=kn(v,r,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,ll(t,e.child,null,n),a=t.child,a.memoizedState=lr(n),a.childLanes=ar(e,d,n),t.memoizedState=nr,t=Ta(null,a));else if(_n(t),qr(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var A=d.dgst;d=A,a=Error(s(419)),a.stack="",a.digest=d,ma({value:a,source:null,stack:null}),t=ur(e,t,n)}else if(qe||Ol(e,t,n,!1),d=(n&e.childLanes)!==0,qe||d){if(d=ze,d!==null&&(a=ec(d,n),a!==0&&a!==C.retryLane))throw C.retryLane=a,Jn(e,a),rt(d,e,a),er;jr(v)||eu(),t=ur(e,t,n)}else jr(v)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Te=wt(v.nextSibling),$e=t,de=!0,yn=null,Ot=!1,e!==null&&kc(t,e),t=ir(t,a.children),t.flags|=4096);return t}return r?(Mn(),v=a.fallback,r=t.mode,C=e.child,A=C.sibling,a=Jt(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,A!==null?v=Jt(A,v):(v=kn(v,r,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,Ta(null,a),a=t.child,v=e.child.memoizedState,v===null?v=lr(n):(r=v.cachePool,r!==null?(C=Be._currentValue,r=r.parent!==C?{parent:C,pool:C}:r):r=nf(),v={baseLanes:v.baseLanes|n,cachePool:r}),a.memoizedState=v,a.childLanes=ar(e,d,n),t.memoizedState=nr,Ta(e.child,a)):(_n(t),n=e.child,e=n.sibling,n=Jt(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function ir(e,t){return t=Xi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xi(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function ur(e,t,n){return ll(t,e.child,null,n),e=ir(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Rs(e.return,t,n)}function sr(e,t,n,a,r,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=r,d.treeForkCount=o)}function vd(e,t,n){var a=t.pendingProps,r=a.revealOrder,o=a.tail;a=a.children;var d=Ve.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,Y(Ve,d),Ke(e,t,a,n),a=de?ga:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pd(e,n,t);else if(e.tag===19)pd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Hi(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),sr(t,!1,r,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Hi(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}sr(t,!0,n,null,o,a);break;case"together":sr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ol(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mi(e)))}function Hp(e,t,n){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),Cn(t,Be,e.memoizedState.cache),Pn();break;case 27:case 5:Wl(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:Cn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Hs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(_n(t),t.flags|=128,null):(n&t.child.childLanes)!==0?md(e,t,n):(_n(t),e=tn(e,t,n),e!==null?e.sibling:null);_n(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ol(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return vd(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Y(Ve,Ve.current),a)break;return null;case 22:return t.lanes=0,od(e,t,n,t.pendingProps);case 24:Cn(t,Be,e.memoizedState.cache)}return tn(e,t,n)}function yd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!rr(e,n)&&(t.flags&128)===0)return qe=!1,Hp(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,de&&(t.flags&1048576)!==0&&Jc(t,ga,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=tl(t.elementType),t.type=e,typeof e=="function")hs(e)?(a=il(e,a),t.tag=1,t=hd(null,t,e,a,n)):(t.tag=0,t=tr(null,t,e,a,n));else{if(e!=null){var r=e.$$typeof;if(r===ne){t.tag=11,t=ud(null,t,e,a,n);break e}else if(r===K){t.tag=14,t=sd(null,t,e,a,n);break e}}throw t=Xt(e)||e,Error(s(306,t,""))}}return t;case 0:return tr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=il(a,t.pendingProps),hd(e,t,a,r,n);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var o=t.memoizedState;r=o.element,Os(e,t),ba(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Cn(t,Be,a),a!==o.cache&&bs(t,[Be],n,!0),Ra(),a=d.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gd(e,t,a,n);break e}else if(a!==r){r=Mt(Error(s(424)),t),ma(r),t=gd(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Te=wt(e.firstChild),$e=t,de=!0,yn=null,Ot=!0,n=of(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pn(),a===r){t=tn(e,t,n);break e}Ke(e,t,a,n)}t=t.child}return t;case 26:return Yi(e,t),e===null?(n=Ah(t.type,null,t.pendingProps,null))?t.memoizedState=n:de||(n=t.type,e=t.pendingProps,a=su(ue.current).createElement(n),a[Xe]=t,a[nt]=e,Je(a,n,e),Qe(a),t.stateNode=a):t.memoizedState=Ah(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Wl(t),e===null&&de&&(a=t.stateNode=zh(t.type,t.pendingProps,ue.current),$e=t,Ot=!0,r=Te,Hn(t.type)?(Gr=r,Te=wt(a.firstChild)):Te=r),Ke(e,t,t.pendingProps.children,n),Yi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((r=a=Te)&&(a=ov(a,t.type,t.pendingProps,Ot),a!==null?(t.stateNode=a,$e=t,Te=wt(a.firstChild),Ot=!1,r=!0):r=!1),r||Sn(t)),Wl(t),r=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,a=o.children,Vr(r,o)?a=null:d!==null&&Vr(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Ns(e,t,_p,null,null,n),Fa._currentValue=r),Yi(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&de&&((e=n=Te)&&(n=cv(n,t.pendingProps,Ot),n!==null?(t.stateNode=n,$e=t,Te=null,e=!0):e=!1),e||Sn(t)),null;case 13:return md(e,t,n);case 4:return We(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ll(t,null,a,n):Ke(e,t,a,n),t.child;case 11:return ud(e,t,t.type,t.pendingProps,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Cn(t,t.type,a.value),Ke(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,Wn(t),r=Ze(r),a=a(r),t.flags|=1,Ke(e,t,a,n),t.child;case 14:return sd(e,t,t.type,t.pendingProps,n);case 15:return rd(e,t,t.type,t.pendingProps,n);case 19:return vd(e,t,n);case 31:return Dp(e,t,n);case 22:return od(e,t,n,t.pendingProps);case 24:return Wn(t),a=Ze(Be),e===null?(r=Ms(),r===null&&(r=ze,o=Es(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:a,cache:r},Ts(t),Cn(t,Be,r)):((e.lanes&n)!==0&&(Os(e,t),ba(t,null,null,n),Ra()),r=e.memoizedState,o=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Cn(t,Be,a)):(a=o.cache,Cn(t,Be,a),a!==r.cache&&bs(t,[Be],n,!0))),Ke(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function nn(e){e.flags|=4}function or(e,t,n,a,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Xd())e.flags|=8192;else throw nl=Ai,zs}else e.flags&=-16777217}function Sd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Uh(t))if(Xd())e.flags|=8192;else throw nl=Ai,zs}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Po():536870912,e.lanes|=t,ql|=t)}function Oa(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Up(e,t,n){var a=t.pendingProps;switch(vs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Be),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Tl(t)?nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ss())),Oe(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(nn(t),o!==null?(Oe(t),Sd(t,o)):(Oe(t),or(t,r,null,a,n))):o?o!==e.memoizedState?(nn(t),Oe(t),Sd(t,o)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&nn(t),Oe(t),or(t,r,e,a,n)),null;case 27:if(li(t),n=ue.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}e=$.current,Tl(t)?Pc(t):(e=zh(r,a,n),t.stateNode=e,nn(t))}return Oe(t),null;case 5:if(li(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}if(o=$.current,Tl(t))Pc(t);else{var d=su(ue.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}o[Xe]=t,o[nt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(Je(o,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&nn(t)}}return Oe(t),or(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Tl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=$e,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||mh(e.nodeValue,n)),e||Sn(t,!0)}else e=su(e).createTextNode(a),e[Xe]=t,t.stateNode=e}return Oe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Tl(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Xe]=t}else Pn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else n=Ss(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Tl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[Xe]=t}else Pn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),r=!1}else r=Ss(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),$i(t,t.updateQueue),Oe(t),null);case 4:return Ne(),e===null&&xr(t.stateNode.containerInfo),Oe(t),null;case 10:return It(t.type),Oe(t),null;case 19:if(q(Ve),a=t.memoizedState,a===null)return Oe(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Oa(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Hi(e),o!==null){for(t.flags|=128,Oa(a,!1),e=o.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)$c(n,e),n=n.sibling;return Y(Ve,Ve.current&1|2),de&&kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ct()>Pi&&(t.flags|=128,r=!0,Oa(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hi(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Oa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!de)return Oe(t),null}else 2*ct()-a.renderingStartTime>Pi&&n!==536870912&&(t.flags|=128,r=!0,Oa(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ct(),e.sibling=null,n=Ve.current,Y(Ve,r?n&1|2:n&1),de&&kt(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return pt(t),Ds(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),n=t.updateQueue,n!==null&&$i(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&q(el),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),It(Be),Oe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Np(e,t){switch(vs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Be),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return li(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(s(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ve),null;case 4:return Ne(),null;case 10:return It(t.type),null;case 22:case 23:return pt(t),Ds(),e!==null&&q(el),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Be),null;case 25:return null;default:return null}}function Cd(e,t){switch(vs(t),t.tag){case 3:It(Be),Ne();break;case 26:case 27:case 5:li(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:q(Ve);break;case 10:It(t.type);break;case 22:case 23:pt(t),Ds(),e!==null&&q(el);break;case 24:It(Be)}}function Aa(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var o=n.create,d=n.inst;a=o(),d.destroy=a}n=n.next}while(n!==r)}}catch(v){Ce(t,t.return,v)}}function zn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){var d=a.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,r=t;var C=n,A=v;try{A()}catch(N){Ce(r,C,N)}}}a=a.next}while(a!==o)}}catch(N){Ce(t,t.return,N)}}function Rd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ff(t,n)}catch(a){Ce(e,e.return,a)}}}function bd(e,t,n){n.props=il(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ce(e,t,a)}}function wa(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){Ce(e,t,r)}}function Gt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){Ce(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Ed(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){Ce(e,e.return,r)}}function cr(e,t,n){try{var a=e.stateNode;lv(a,e.type,n,t),a[nt]=t}catch(r){Ce(e,e.return,r)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hn(e.type)||e.tag===4}function fr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Hn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zt));else if(a!==4&&(a===27&&Hn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(dr(e,t,n),e=e.sibling;e!==null;)dr(e,t,n),e=e.sibling}function Zi(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Hn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zi(e,t,n),e=e.sibling;e!==null;)Zi(e,t,n),e=e.sibling}function Md(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Je(t,a,n),t[Xe]=e,t[nt]=n}catch(o){Ce(e,e.return,o)}}var ln=!1,Ge=!1,hr=!1,zd=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Vp(e,t){if(e=e.containerInfo,Ur=gu,e=Lc(e),us(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,v=-1,C=-1,A=0,N=0,j=e,x=null;t:for(;;){for(var D;j!==n||r!==0&&j.nodeType!==3||(v=d+r),j!==o||a!==0&&j.nodeType!==3||(C=d+a),j.nodeType===3&&(d+=j.nodeValue.length),(D=j.firstChild)!==null;)x=j,j=D;for(;;){if(j===e)break t;if(x===n&&++A===r&&(v=d),x===o&&++N===a&&(C=d),(D=j.nextSibling)!==null)break;j=x,x=j.parentNode}j=D}n=v===-1||C===-1?null:{start:v,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nr={focusedElem:e,selectionRange:n},gu=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,r=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var X=il(n.type,r);e=a.getSnapshotBeforeUpdate(X,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(k){Ce(n,n.return,k)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Br(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Br(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function Td(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:un(e,n),a&4&&Aa(5,n);break;case 1:if(un(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Ce(n,n.return,d)}else{var r=il(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ce(n,n.return,d)}}a&64&&Rd(n),a&512&&wa(n,n.return);break;case 3:if(un(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ff(e,t)}catch(d){Ce(n,n.return,d)}}break;case 27:t===null&&a&4&&Md(n);case 26:case 5:un(e,n),t===null&&a&4&&Ed(n),a&512&&wa(n,n.return);break;case 12:un(e,n);break;case 31:un(e,n),a&4&&wd(e,n);break;case 13:un(e,n),a&4&&xd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xp.bind(null,n),fv(e,n))));break;case 22:if(a=n.memoizedState!==null||ln,!a){t=t!==null&&t.memoizedState!==null||Ge,r=ln;var o=Ge;ln=a,(Ge=t)&&!o?sn(e,n,(n.subtreeFlags&8772)!==0):un(e,n),ln=r,Ge=o}break;case 30:break;default:un(e,n)}}function Od(e){var t=e.alternate;t!==null&&(e.alternate=null,Od(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ae=null,at=!1;function an(e,t,n){for(n=n.child;n!==null;)Ad(e,t,n),n=n.sibling}function Ad(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(ea,n)}catch{}switch(n.tag){case 26:Ge||Gt(n,t),an(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ge||Gt(n,t);var a=Ae,r=at;Hn(n.type)&&(Ae=n.stateNode,at=!1),an(e,t,n),ja(n.stateNode),Ae=a,at=r;break;case 5:Ge||Gt(n,t);case 6:if(a=Ae,r=at,Ae=null,an(e,t,n),Ae=a,at=r,Ae!==null)if(at)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(n.stateNode)}catch(o){Ce(n,t,o)}else try{Ae.removeChild(n.stateNode)}catch(o){Ce(n,t,o)}break;case 18:Ae!==null&&(at?(e=Ae,Rh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Kl(e)):Rh(Ae,n.stateNode));break;case 4:a=Ae,r=at,Ae=n.stateNode.containerInfo,at=!0,an(e,t,n),Ae=a,at=r;break;case 0:case 11:case 14:case 15:zn(2,n,t),Ge||zn(4,n,t),an(e,t,n);break;case 1:Ge||(Gt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&bd(n,t,a)),an(e,t,n);break;case 21:an(e,t,n);break;case 22:Ge=(a=Ge)||n.memoizedState!==null,an(e,t,n),Ge=a;break;default:an(e,t,n)}}function wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kl(e)}catch(n){Ce(t,t.return,n)}}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kl(e)}catch(n){Ce(t,t.return,n)}}function Lp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zd),t;default:throw Error(s(435,e.tag))}}function Ki(e,t){var n=Lp(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var r=$p.bind(null,e,a);a.then(r,r)}})}function it(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a],o=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Hn(v.type)){Ae=v.stateNode,at=!1;break e}break;case 5:Ae=v.stateNode,at=!1;break e;case 3:case 4:Ae=v.stateNode.containerInfo,at=!0;break e}v=v.return}if(Ae===null)throw Error(s(160));Ad(o,d,r),Ae=null,at=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dd(t,e),t=t.sibling}var Nt=null;function Dd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ut(e),a&4&&(zn(3,e,e.return),Aa(3,e),zn(5,e,e.return));break;case 1:it(t,e),ut(e),a&512&&(Ge||n===null||Gt(n,n.return)),a&64&&ln&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var r=Nt;if(it(t,e),ut(e),a&512&&(Ge||n===null||Gt(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":o=r.getElementsByTagName("title")[0],(!o||o[la]||o[Xe]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(a),r.head.insertBefore(o,r.querySelector("head > title"))),Je(o,a,n),o[Xe]=e,Qe(o),a=o;break e;case"link":var d=Dh("link","href",r).get(a+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break t}}o=r.createElement(a),Je(o,a,n),r.head.appendChild(o);break;case"meta":if(d=Dh("meta","content",r).get(a+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break t}}o=r.createElement(a),Je(o,a,n),r.head.appendChild(o);break;default:throw Error(s(468,a))}o[Xe]=e,Qe(o),a=o}e.stateNode=a}else Hh(r,e.type,e.stateNode);else e.stateNode=xh(r,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Hh(r,e.type,e.stateNode):xh(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&cr(e,e.memoizedProps,n.memoizedProps)}break;case 27:it(t,e),ut(e),a&512&&(Ge||n===null||Gt(n,n.return)),n!==null&&a&4&&cr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(it(t,e),ut(e),a&512&&(Ge||n===null||Gt(n,n.return)),e.flags&32){r=e.stateNode;try{vl(r,"")}catch(X){Ce(e,e.return,X)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,cr(e,r,n!==null?n.memoizedProps:r)),a&1024&&(hr=!0);break;case 6:if(it(t,e),ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(X){Ce(e,e.return,X)}}break;case 3:if(cu=null,r=Nt,Nt=ru(t.containerInfo),it(t,e),Nt=r,ut(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Kl(t.containerInfo)}catch(X){Ce(e,e.return,X)}hr&&(hr=!1,Hd(e));break;case 4:a=Nt,Nt=ru(e.stateNode.containerInfo),it(t,e),ut(e),Nt=a;break;case 12:it(t,e),ut(e);break;case 31:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ki(e,a)));break;case 13:it(t,e),ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ki=ct()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ki(e,a)));break;case 22:r=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,A=ln,N=Ge;if(ln=A||r,Ge=N||C,it(t,e),Ge=N,ln=A,ut(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||C||ln||Ge||ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(o=C.stateNode,r)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=C.stateNode;var j=C.memoizedProps.style,x=j!=null&&j.hasOwnProperty("display")?j.display:null;v.style.display=x==null||typeof x=="boolean"?"":(""+x).trim()}}catch(X){Ce(C,C.return,X)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=r?"":C.memoizedProps}catch(X){Ce(C,C.return,X)}}}else if(t.tag===18){if(n===null){C=t;try{var D=C.stateNode;r?bh(D,!0):bh(C.stateNode,!1)}catch(X){Ce(C,C.return,X)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ki(e,n))));break;case 19:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ki(e,a)));break;case 30:break;case 21:break;default:it(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(_d(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,o=fr(e);Zi(e,o,r);break;case 5:var d=n.stateNode;n.flags&32&&(vl(d,""),n.flags&=-33);var v=fr(e);Zi(e,v,d);break;case 3:case 4:var C=n.stateNode.containerInfo,A=fr(e);dr(e,A,C);break;default:throw Error(s(161))}}catch(N){Ce(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Td(e,t.alternate,t),t=t.sibling}function ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:zn(4,t,t.return),ul(t);break;case 1:Gt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bd(t,t.return,n),ul(t);break;case 27:ja(t.stateNode);case 26:case 5:Gt(t,t.return),ul(t);break;case 22:t.memoizedState===null&&ul(t);break;case 30:ul(t);break;default:ul(t)}e=e.sibling}}function sn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:sn(r,o,n),Aa(4,o);break;case 1:if(sn(r,o,n),a=o,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(A){Ce(a,a.return,A)}if(a=o,r=a.updateQueue,r!==null){var v=a.stateNode;try{var C=r.shared.hiddenCallbacks;if(C!==null)for(r.shared.hiddenCallbacks=null,r=0;r<C.length;r++)cf(C[r],v)}catch(A){Ce(a,a.return,A)}}n&&d&64&&Rd(o),wa(o,o.return);break;case 27:Md(o);case 26:case 5:sn(r,o,n),n&&a===null&&d&4&&Ed(o),wa(o,o.return);break;case 12:sn(r,o,n);break;case 31:sn(r,o,n),n&&d&4&&wd(r,o);break;case 13:sn(r,o,n),n&&d&4&&xd(r,o);break;case 22:o.memoizedState===null&&sn(r,o,n),wa(o,o.return);break;case 30:break;default:sn(r,o,n)}t=t.sibling}}function gr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pa(n))}function mr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e))}function Vt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ud(e,t,n,a),t=t.sibling}function Ud(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Vt(e,t,n,a),r&2048&&Aa(9,t);break;case 1:Vt(e,t,n,a);break;case 3:Vt(e,t,n,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e)));break;case 12:if(r&2048){Vt(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Ce(t,t.return,C)}}else Vt(e,t,n,a);break;case 31:Vt(e,t,n,a);break;case 13:Vt(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?Vt(e,t,n,a):xa(e,t):o._visibility&2?Vt(e,t,n,a):(o._visibility|=2,Ll(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&gr(d,t);break;case 24:Vt(e,t,n,a),r&2048&&mr(t.alternate,t);break;default:Vt(e,t,n,a)}}function Ll(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,v=n,C=a,A=d.flags;switch(d.tag){case 0:case 11:case 15:Ll(o,d,v,C,r),Aa(8,d);break;case 23:break;case 22:var N=d.stateNode;d.memoizedState!==null?N._visibility&2?Ll(o,d,v,C,r):xa(o,d):(N._visibility|=2,Ll(o,d,v,C,r)),r&&A&2048&&gr(d.alternate,d);break;case 24:Ll(o,d,v,C,r),r&&A&2048&&mr(d.alternate,d);break;default:Ll(o,d,v,C,r)}t=t.sibling}}function xa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:xa(n,a),r&2048&&gr(a.alternate,a);break;case 24:xa(n,a),r&2048&&mr(a.alternate,a);break;default:xa(n,a)}t=t.sibling}}var Da=8192;function Bl(e,t,n){if(e.subtreeFlags&Da)for(e=e.child;e!==null;)Nd(e,t,n),e=e.sibling}function Nd(e,t,n){switch(e.tag){case 26:Bl(e,t,n),e.flags&Da&&e.memoizedState!==null&&Ev(n,Nt,e.memoizedState,e.memoizedProps);break;case 5:Bl(e,t,n);break;case 3:case 4:var a=Nt;Nt=ru(e.stateNode.containerInfo),Bl(e,t,n),Nt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Da,Da=16777216,Bl(e,t,n),Da=a):Bl(e,t,n));break;default:Bl(e,t,n)}}function Vd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ha(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,Bd(a,e)}Vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ld(e),e=e.sibling}function Ld(e){switch(e.tag){case 0:case 11:case 15:Ha(e),e.flags&2048&&zn(9,e,e.return);break;case 3:Ha(e);break;case 12:Ha(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ji(e)):Ha(e);break;default:Ha(e)}}function Ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,Bd(a,e)}Vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:zn(8,t,t.return),Ji(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ji(t));break;default:Ji(t)}e=e.sibling}}function Bd(e,t){for(;Ye!==null;){var n=Ye;switch(n.tag){case 0:case 11:case 15:zn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:pa(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ye=a;else e:for(n=e;Ye!==null;){a=Ye;var r=a.sibling,o=a.return;if(Od(a),a===n){Ye=null;break e}if(r!==null){r.return=o,Ye=r;break e}Ye=o}}}var Bp={getCacheForType:function(e){var t=Ze(Be),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ze(Be).controller.signal}},jp=typeof WeakMap=="function"?WeakMap:Map,me=0,ze=null,se=null,oe=0,Se=0,vt=null,Tn=!1,jl=!1,pr=!1,rn=0,He=0,On=0,sl=0,vr=0,yt=0,ql=0,Ua=null,st=null,yr=!1,ki=0,jd=0,Pi=1/0,Ii=null,An=null,Fe=0,wn=null,Gl=null,on=0,Sr=0,Cr=null,qd=null,Na=0,Rr=null;function St(){return(me&2)!==0&&oe!==0?oe&-oe:L.T!==null?Tr():tc()}function Gd(){if(yt===0)if((oe&536870912)===0||de){var e=ui;ui<<=1,(ui&3932160)===0&&(ui=262144),yt=e}else yt=536870912;return e=mt.current,e!==null&&(e.flags|=32),yt}function rt(e,t,n){(e===ze&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(Fl(e,0),xn(e,oe,yt,!1)),na(e,n),((me&2)===0||e!==ze)&&(e===ze&&((me&2)===0&&(sl|=n),He===4&&xn(e,oe,yt,!1)),Ft(e))}function Fd(e,t,n){if((me&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ta(e,t),r=a?Fp(e,t):Er(e,t,!0),o=a;do{if(r===0){jl&&!a&&xn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!qp(n)){r=Er(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;r=Ua;var C=v.current.memoizedState.isDehydrated;if(C&&(Fl(v,d).flags|=256),d=Er(v,d,!1),d!==2){if(pr&&!C){v.errorRecoveryDisabledLanes|=o,sl|=o,r=4;break e}o=st,st=r,o!==null&&(st===null?st=o:st.push.apply(st,o))}r=d}if(o=!1,r!==2)continue}}if(r===1){Fl(e,0),xn(e,t,0,!0);break}e:{switch(a=e,o=r,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:xn(a,t,yt,!Tn);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=ki+300-ct(),10<r)){if(xn(a,t,yt,!Tn),ri(a,0,!0)!==0)break e;on=t,a.timeoutHandle=Sh(Qd.bind(null,a,n,st,Ii,yr,t,yt,sl,ql,Tn,o,"Throttled",-0,0),r);break e}Qd(a,n,st,Ii,yr,t,yt,sl,ql,Tn,o,null,-0,0)}}break}while(!0);Ft(e)}function Qd(e,t,n,a,r,o,d,v,C,A,N,j,x,D){if(e.timeoutHandle=-1,j=t.subtreeFlags,j&8192||(j&16785408)===16785408){j={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},Nd(t,o,j);var X=(o&62914560)===o?ki-ct():(o&4194048)===o?jd-ct():0;if(X=_v(j,X),X!==null){on=o,e.cancelPendingCommit=X(Pd.bind(null,e,t,o,n,a,r,d,v,C,N,j,null,x,D)),xn(e,o,d,!A);return}}Pd(e,t,o,n,a,r,d,v,C)}function qp(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var r=n[a],o=r.getSnapshot;r=r.value;try{if(!ht(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xn(e,t,n,a){t&=~vr,t&=~sl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var o=31-dt(r),d=1<<o;a[o]=-1,r&=~d}n!==0&&Io(e,n,t)}function Wi(){return(me&6)===0?(Va(0),!1):!0}function br(){if(se!==null){if(Se===0)var e=se.return;else e=se,Pt=In=null,Bs(e),Dl=null,ya=0,e=se;for(;e!==null;)Cd(e.alternate,e),e=e.return;se=null}}function Fl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,uv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),on=0,br(),ze=e,se=n=Jt(e.current,null),oe=t,Se=0,vt=null,Tn=!1,jl=ta(e,t),pr=!1,ql=yt=vr=sl=On=He=0,st=Ua=null,yr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var r=31-dt(a),o=1<<r;t|=e[r],a&=~o}return rn=t,Ci(),n}function Yd(e,t){ae=null,L.H=za,t===xl||t===Oi?(t=uf(),Se=3):t===zs?(t=uf(),Se=4):Se=t===er?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,se===null&&(He=1,Fi(e,Mt(t,e.current)))}function Xd(){var e=mt.current;return e===null?!0:(oe&4194048)===oe?At===null:(oe&62914560)===oe||(oe&536870912)!==0?e===At:!1}function $d(){var e=L.H;return L.H=za,e===null?za:e}function Zd(){var e=L.A;return L.A=Bp,e}function eu(){He=4,Tn||(oe&4194048)!==oe&&mt.current!==null||(jl=!0),(On&134217727)===0&&(sl&134217727)===0||ze===null||xn(ze,oe,yt,!1)}function Er(e,t,n){var a=me;me|=2;var r=$d(),o=Zd();(ze!==e||oe!==t)&&(Ii=null,Fl(e,t)),t=!1;var d=He;e:do try{if(Se!==0&&se!==null){var v=se,C=vt;switch(Se){case 8:br(),d=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var A=Se;if(Se=0,vt=null,Ql(e,v,C,A),n&&jl){d=0;break e}break;default:A=Se,Se=0,vt=null,Ql(e,v,C,A)}}Gp(),d=He;break}catch(N){Yd(e,N)}while(!0);return t&&e.shellSuspendCounter++,Pt=In=null,me=a,L.H=r,L.A=o,se===null&&(ze=null,oe=0,Ci()),d}function Gp(){for(;se!==null;)Kd(se)}function Fp(e,t){var n=me;me|=2;var a=$d(),r=Zd();ze!==e||oe!==t?(Ii=null,Pi=ct()+500,Fl(e,t)):jl=ta(e,t);e:do try{if(Se!==0&&se!==null){t=se;var o=vt;t:switch(Se){case 1:Se=0,vt=null,Ql(e,t,o,1);break;case 2:case 9:if(lf(o)){Se=0,vt=null,Jd(t);break}t=function(){Se!==2&&Se!==9||ze!==e||(Se=7),Ft(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:lf(o)?(Se=0,vt=null,Jd(t)):(Se=0,vt=null,Ql(e,t,o,7));break;case 5:var d=null;switch(se.tag){case 26:d=se.memoizedState;case 5:case 27:var v=se;if(d?Uh(d):v.stateNode.complete){Se=0,vt=null;var C=v.sibling;if(C!==null)se=C;else{var A=v.return;A!==null?(se=A,tu(A)):se=null}break t}}Se=0,vt=null,Ql(e,t,o,5);break;case 6:Se=0,vt=null,Ql(e,t,o,6);break;case 8:br(),He=6;break e;default:throw Error(s(462))}}Qp();break}catch(N){Yd(e,N)}while(!0);return Pt=In=null,L.H=a,L.A=r,me=n,se!==null?0:(ze=null,oe=0,Ci(),He)}function Qp(){for(;se!==null&&!dm();)Kd(se)}function Kd(e){var t=yd(e.alternate,e,rn);e.memoizedProps=e.pendingProps,t===null?tu(e):se=t}function Jd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dd(n,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=dd(n,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Bs(t);default:Cd(n,t),t=se=$c(t,rn),t=yd(n,t,rn)}e.memoizedProps=e.pendingProps,t===null?tu(e):se=t}function Ql(e,t,n,a){Pt=In=null,Bs(t),Dl=null,ya=0;var r=t.return;try{if(xp(e,r,t,n,oe)){He=1,Fi(e,Mt(n,e.current)),se=null;return}}catch(o){if(r!==null)throw se=r,o;He=1,Fi(e,Mt(n,e.current)),se=null;return}t.flags&32768?(de||a===1?e=!0:jl||(oe&536870912)!==0?e=!1:(Tn=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),kd(t,e)):tu(t)}function tu(e){var t=e;do{if((t.flags&32768)!==0){kd(t,Tn);return}e=t.return;var n=Up(t.alternate,t,rn);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);He===0&&(He=5)}function kd(e,t){do{var n=Np(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);He=6,se=null}function Pd(e,t,n,a,r,o,d,v,C){e.cancelPendingCommit=null;do nu();while(Fe!==0);if((me&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=fs,bm(e,n,o,d,v,C),e===ze&&(se=ze=null,oe=0),Gl=t,wn=e,on=n,Sr=o,Cr=r,qd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Zp(ai,function(){return nh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,r=Q.p,Q.p=2,d=me,me|=4;try{Vp(e,t,n)}finally{me=d,Q.p=r,L.T=a}}Fe=1,Id(),Wd(),eh()}}function Id(){if(Fe===1){Fe=0;var e=wn,t=Gl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var a=Q.p;Q.p=2;var r=me;me|=4;try{Dd(t,e);var o=Nr,d=Lc(e.containerInfo),v=o.focusedElem,C=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&Vc(v.ownerDocument.documentElement,v)){if(C!==null&&us(v)){var A=C.start,N=C.end;if(N===void 0&&(N=A),"selectionStart"in v)v.selectionStart=A,v.selectionEnd=Math.min(N,v.value.length);else{var j=v.ownerDocument||document,x=j&&j.defaultView||window;if(x.getSelection){var D=x.getSelection(),X=v.textContent.length,k=Math.min(C.start,X),_e=C.end===void 0?k:Math.min(C.end,X);!D.extend&&k>_e&&(d=_e,_e=k,k=d);var M=Nc(v,k),E=Nc(v,_e);if(M&&E&&(D.rangeCount!==1||D.anchorNode!==M.node||D.anchorOffset!==M.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var O=j.createRange();O.setStart(M.node,M.offset),D.removeAllRanges(),k>_e?(D.addRange(O),D.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),D.addRange(O))}}}}for(j=[],D=v;D=D.parentNode;)D.nodeType===1&&j.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<j.length;v++){var B=j[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}gu=!!Ur,Nr=Ur=null}finally{me=r,Q.p=a,L.T=n}}e.current=t,Fe=2}}function Wd(){if(Fe===2){Fe=0;var e=wn,t=Gl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var a=Q.p;Q.p=2;var r=me;me|=4;try{Td(e,t.alternate,t)}finally{me=r,Q.p=a,L.T=n}}Fe=3}}function eh(){if(Fe===4||Fe===3){Fe=0,hm();var e=wn,t=Gl,n=on,a=qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Gl=wn=null,th(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(An=null),Gu(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(ea,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=L.T,r=Q.p,Q.p=2,L.T=null;try{for(var o=e.onRecoverableError,d=0;d<a.length;d++){var v=a[d];o(v.value,{componentStack:v.stack})}}finally{L.T=t,Q.p=r}}(on&3)!==0&&nu(),Ft(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Rr?Na++:(Na=0,Rr=e):Na=0,Va(0)}}function th(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pa(t)))}function nu(){return Id(),Wd(),eh(),nh()}function nh(){if(Fe!==5)return!1;var e=wn,t=Sr;Sr=0;var n=Gu(on),a=L.T,r=Q.p;try{Q.p=32>n?32:n,L.T=null,n=Cr,Cr=null;var o=wn,d=on;if(Fe=0,Gl=wn=null,on=0,(me&6)!==0)throw Error(s(331));var v=me;if(me|=4,Ld(o.current),Ud(o,o.current,d,n),me=v,Va(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(ea,o)}catch{}return!0}finally{Q.p=r,L.T=a,th(e,t)}}function lh(e,t,n){t=Mt(n,t),t=Ws(e.stateNode,t,2),e=En(e,t,2),e!==null&&(na(e,2),Ft(e))}function Ce(e,t,n){if(e.tag===3)lh(e,e,n);else for(;t!==null;){if(t.tag===3){lh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(An===null||!An.has(a))){e=Mt(n,e),n=ad(2),a=En(t,n,2),a!==null&&(id(n,a,t,e),na(a,2),Ft(a));break}}t=t.return}}function _r(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new jp;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(pr=!0,r.add(n),e=Yp.bind(null,e,t,n),t.then(e,e))}function Yp(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(oe&n)===n&&(He===4||He===3&&(oe&62914560)===oe&&300>ct()-ki?(me&2)===0&&Fl(e,0):vr|=n,ql===oe&&(ql=0)),Ft(e)}function ah(e,t){t===0&&(t=Po()),e=Jn(e,t),e!==null&&(na(e,t),Ft(e))}function Xp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ah(e,n)}function $p(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),ah(e,n)}function Zp(e,t){return Lu(e,t)}var lu=null,Yl=null,Mr=!1,au=!1,zr=!1,Dn=0;function Ft(e){e!==Yl&&e.next===null&&(Yl===null?lu=Yl=e:Yl=Yl.next=e),au=!0,Mr||(Mr=!0,Jp())}function Va(e,t){if(!zr&&au){zr=!0;do for(var n=!1,a=lu;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var o=0;else{var d=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-dt(42|e)+1)-1,o&=r&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,rh(a,o))}else o=oe,o=ri(a,a===ze?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||ta(a,o)||(n=!0,rh(a,o));a=a.next}while(n);zr=!1}}function Kp(){ih()}function ih(){au=Mr=!1;var e=0;Dn!==0&&iv()&&(e=Dn);for(var t=ct(),n=null,a=lu;a!==null;){var r=a.next,o=uh(a,t);o===0?(a.next=null,n===null?lu=r:n.next=r,r===null&&(Yl=n)):(n=a,(e!==0||(o&3)!==0)&&(au=!0)),a=r}Fe!==0&&Fe!==5||Va(e),Dn!==0&&(Dn=0)}function uh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-dt(o),v=1<<d,C=r[d];C===-1?((v&n)===0||(v&a)!==0)&&(r[d]=Rm(v,t)):C<=t&&(e.expiredLanes|=v),o&=~v}if(t=ze,n=oe,n=ri(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Bu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ta(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Bu(a),Gu(n)){case 2:case 8:n=Jo;break;case 32:n=ai;break;case 268435456:n=ko;break;default:n=ai}return a=sh.bind(null,e),n=Lu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Bu(a),e.callbackPriority=2,e.callbackNode=null,2}function sh(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(nu()&&e.callbackNode!==n)return null;var a=oe;return a=ri(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Fd(e,a,t),uh(e,ct()),e.callbackNode!=null&&e.callbackNode===n?sh.bind(null,e):null)}function rh(e,t){if(nu())return null;Fd(e,t,!0)}function Jp(){sv(function(){(me&6)!==0?Lu(Ko,Kp):ih()})}function Tr(){if(Dn===0){var e=Al;e===0&&(e=ii,ii<<=1,(ii&261888)===0&&(ii=256)),Dn=e}return Dn}function oh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:di(""+e)}function ch(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function kp(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var o=oh((r[nt]||null).action),d=a.submitter;d&&(t=(t=d[nt]||null)?oh(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var v=new pi("action","action",null,a,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Dn!==0){var C=d?ch(r,d):new FormData(r);Zs(n,{pending:!0,data:C,method:r.method,action:o},null,C)}}else typeof o=="function"&&(v.preventDefault(),C=d?ch(r,d):new FormData(r),Zs(n,{pending:!0,data:C,method:r.method,action:o},o,C))},currentTarget:r}]})}}for(var Or=0;Or<cs.length;Or++){var Ar=cs[Or],Pp=Ar.toLowerCase(),Ip=Ar[0].toUpperCase()+Ar.slice(1);Ut(Pp,"on"+Ip)}Ut(qc,"onAnimationEnd"),Ut(Gc,"onAnimationIteration"),Ut(Fc,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(gp,"onTransitionRun"),Ut(mp,"onTransitionStart"),Ut(pp,"onTransitionCancel"),Ut(Qc,"onTransitionEnd"),ml("onMouseEnter",["mouseout","mouseover"]),ml("onMouseLeave",["mouseout","mouseover"]),ml("onPointerEnter",["pointerout","pointerover"]),ml("onPointerLeave",["pointerout","pointerover"]),Xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var La="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(" "),Wp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(La));function fh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var d=a.length-1;0<=d;d--){var v=a[d],C=v.instance,A=v.currentTarget;if(v=v.listener,C!==o&&r.isPropagationStopped())break e;o=v,r.currentTarget=A;try{o(r)}catch(N){Si(N)}r.currentTarget=null,o=C}else for(d=0;d<a.length;d++){if(v=a[d],C=v.instance,A=v.currentTarget,v=v.listener,C!==o&&r.isPropagationStopped())break e;o=v,r.currentTarget=A;try{o(r)}catch(N){Si(N)}r.currentTarget=null,o=C}}}}function re(e,t){var n=t[Fu];n===void 0&&(n=t[Fu]=new Set);var a=e+"__bubble";n.has(a)||(dh(t,e,2,!1),n.add(a))}function wr(e,t,n){var a=0;t&&(a|=4),dh(n,e,a,t)}var iu="_reactListening"+Math.random().toString(36).slice(2);function xr(e){if(!e[iu]){e[iu]=!0,ac.forEach(function(n){n!=="selectionchange"&&(Wp.has(n)||wr(n,!1,e),wr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[iu]||(t[iu]=!0,wr("selectionchange",!1,t))}}function dh(e,t,n,a){switch(Gh(t)){case 2:var r=Tv;break;case 8:r=Ov;break;default:r=$r}n=r.bind(null,t,n,e),r=void 0,!Pu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Dr(e,t,n,a,r){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var v=a.stateNode.containerInfo;if(v===r)break;if(d===4)for(d=a.return;d!==null;){var C=d.tag;if((C===3||C===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;v!==null;){if(d=dl(v),d===null)return;if(C=d.tag,C===5||C===6||C===26||C===27){a=o=d;continue e}v=v.parentNode}}a=a.return}pc(function(){var A=o,N=Ju(n),j=[];e:{var x=Yc.get(e);if(x!==void 0){var D=pi,X=e;switch(e){case"keypress":if(gi(n)===0)break e;case"keydown":case"keyup":D=$m;break;case"focusin":X="focus",D=ts;break;case"focusout":X="blur",D=ts;break;case"beforeblur":case"afterblur":D=ts;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Sc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Um;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Jm;break;case qc:case Gc:case Fc:D=Lm;break;case Qc:D=Pm;break;case"scroll":case"scrollend":D=Dm;break;case"wheel":D=Wm;break;case"copy":case"cut":case"paste":D=jm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Rc;break;case"toggle":case"beforetoggle":D=tp}var k=(t&4)!==0,_e=!k&&(e==="scroll"||e==="scrollend"),M=k?x!==null?x+"Capture":null:x;k=[];for(var E=A,O;E!==null;){var B=E;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||M===null||(B=ia(E,M),B!=null&&k.push(Ba(E,B,O))),_e)break;E=E.return}0<k.length&&(x=new D(x,X,null,n,N),j.push({event:x,listeners:k}))}}if((t&7)===0){e:{if(x=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",x&&n!==Ku&&(X=n.relatedTarget||n.fromElement)&&(dl(X)||X[fl]))break e;if((D||x)&&(x=N.window===N?N:(x=N.ownerDocument)?x.defaultView||x.parentWindow:window,D?(X=n.relatedTarget||n.toElement,D=A,X=X?dl(X):null,X!==null&&(_e=f(X),k=X.tag,X!==_e||k!==5&&k!==27&&k!==6)&&(X=null)):(D=null,X=A),D!==X)){if(k=Sc,B="onMouseLeave",M="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(k=Rc,B="onPointerLeave",M="onPointerEnter",E="pointer"),_e=D==null?x:aa(D),O=X==null?x:aa(X),x=new k(B,E+"leave",D,n,N),x.target=_e,x.relatedTarget=O,B=null,dl(N)===A&&(k=new k(M,E+"enter",X,n,N),k.target=O,k.relatedTarget=_e,B=k),_e=B,D&&X)t:{for(k=ev,M=D,E=X,O=0,B=M;B;B=k(B))O++;B=0;for(var J=E;J;J=k(J))B++;for(;0<O-B;)M=k(M),O--;for(;0<B-O;)E=k(E),B--;for(;O--;){if(M===E||E!==null&&M===E.alternate){k=M;break t}M=k(M),E=k(E)}k=null}else k=null;D!==null&&hh(j,x,D,k,!1),X!==null&&_e!==null&&hh(j,_e,X,k,!0)}}e:{if(x=A?aa(A):window,D=x.nodeName&&x.nodeName.toLowerCase(),D==="select"||D==="input"&&x.type==="file")var he=Ac;else if(Tc(x))if(wc)he=fp;else{he=op;var Z=rp}else D=x.nodeName,!D||D.toLowerCase()!=="input"||x.type!=="checkbox"&&x.type!=="radio"?A&&Zu(A.elementType)&&(he=Ac):he=cp;if(he&&(he=he(e,A))){Oc(j,he,n,N);break e}Z&&Z(e,x,A),e==="focusout"&&A&&x.type==="number"&&A.memoizedProps.value!=null&&$u(x,"number",x.value)}switch(Z=A?aa(A):window,e){case"focusin":(Tc(Z)||Z.contentEditable==="true")&&(Rl=Z,ss=A,ha=null);break;case"focusout":ha=ss=Rl=null;break;case"mousedown":rs=!0;break;case"contextmenu":case"mouseup":case"dragend":rs=!1,Bc(j,n,N);break;case"selectionchange":if(hp)break;case"keydown":case"keyup":Bc(j,n,N)}var ie;if(ls)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Cl?Mc(e,n)&&(ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ce="onCompositionStart");ce&&(bc&&n.locale!=="ko"&&(Cl||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Cl&&(ie=vc()):(pn=N,Iu="value"in pn?pn.value:pn.textContent,Cl=!0)),Z=uu(A,ce),0<Z.length&&(ce=new Cc(ce,e,null,n,N),j.push({event:ce,listeners:Z}),ie?ce.data=ie:(ie=zc(n),ie!==null&&(ce.data=ie)))),(ie=lp?ap(e,n):ip(e,n))&&(ce=uu(A,"onBeforeInput"),0<ce.length&&(Z=new Cc("onBeforeInput","beforeinput",null,n,N),j.push({event:Z,listeners:ce}),Z.data=ie)),kp(j,e,A,n,N)}fh(j,t)})}function Ba(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uu(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=ia(e,n),r!=null&&a.unshift(Ba(e,r,o)),r=ia(e,t),r!=null&&a.push(Ba(e,r,o))),e.tag===3)return a;e=e.return}return[]}function ev(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hh(e,t,n,a,r){for(var o=t._reactName,d=[];n!==null&&n!==a;){var v=n,C=v.alternate,A=v.stateNode;if(v=v.tag,C!==null&&C===a)break;v!==5&&v!==26&&v!==27||A===null||(C=A,r?(A=ia(n,o),A!=null&&d.unshift(Ba(n,A,C))):r||(A=ia(n,o),A!=null&&d.push(Ba(n,A,C)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var tv=/\r\n?/g,nv=/\u0000|\uFFFD/g;function gh(e){return(typeof e=="string"?e:""+e).replace(tv,`
`).replace(nv,"")}function mh(e,t){return t=gh(t),gh(e)===t}function Ee(e,t,n,a,r,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||vl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&vl(e,""+a);break;case"className":ci(e,"class",a);break;case"tabIndex":ci(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ci(e,n,a);break;case"style":gc(e,a,o);break;case"data":if(t!=="object"){ci(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=di(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Ee(e,t,"name",r.name,r,null),Ee(e,t,"formEncType",r.formEncType,r,null),Ee(e,t,"formMethod",r.formMethod,r,null),Ee(e,t,"formTarget",r.formTarget,r,null)):(Ee(e,t,"encType",r.encType,r,null),Ee(e,t,"method",r.method,r,null),Ee(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=di(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}n=di(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":re("beforetoggle",e),re("toggle",e),oi(e,"popover",a);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":oi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=wm.get(n)||n,oi(e,n,a))}}function Hr(e,t,n,a,r,o){switch(n){case"style":gc(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?vl(e,a):(typeof a=="number"||typeof a=="bigint")&&vl(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ic.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[nt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):oi(e,n,a)}}}function Je(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,o,d,n,null)}}r&&Ee(e,t,"srcSet",n.srcSet,n,null),a&&Ee(e,t,"src",n.src,n,null);return;case"input":re("invalid",e);var v=o=d=r=null,C=null,A=null;for(a in n)if(n.hasOwnProperty(a)){var N=n[a];if(N!=null)switch(a){case"name":r=N;break;case"type":d=N;break;case"checked":C=N;break;case"defaultChecked":A=N;break;case"value":o=N;break;case"defaultValue":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Ee(e,t,a,N,n,null)}}cc(e,o,v,C,A,d,r,!1);return;case"select":re("invalid",e),a=d=o=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":a=v;default:Ee(e,t,r,v,n,null)}t=o,n=d,e.multiple=!!a,t!=null?pl(e,!!a,t,!1):n!=null&&pl(e,!!a,n,!0);return;case"textarea":re("invalid",e),o=r=a=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":a=v;break;case"defaultValue":r=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ee(e,t,d,v,n,null)}dc(e,a,r,o);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ee(e,t,C,a,n,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<La.length;a++)re(La[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in n)if(n.hasOwnProperty(A)&&(a=n[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,A,a,n,null)}return;default:if(Zu(t)){for(N in n)n.hasOwnProperty(N)&&(a=n[N],a!==void 0&&Hr(e,t,N,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ee(e,t,v,a,n,null))}function lv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,d=null,v=null,C=null,A=null,N=null;for(D in n){var j=n[D];if(n.hasOwnProperty(D)&&j!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":C=j;default:a.hasOwnProperty(D)||Ee(e,t,D,null,a,j)}}for(var x in a){var D=a[x];if(j=n[x],a.hasOwnProperty(x)&&(D!=null||j!=null))switch(x){case"type":o=D;break;case"name":r=D;break;case"checked":A=D;break;case"defaultChecked":N=D;break;case"value":d=D;break;case"defaultValue":v=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:D!==j&&Ee(e,t,x,D,a,j)}}Xu(e,d,v,C,A,N,o,r);return;case"select":D=d=v=x=null;for(o in n)if(C=n[o],n.hasOwnProperty(o)&&C!=null)switch(o){case"value":break;case"multiple":D=C;default:a.hasOwnProperty(o)||Ee(e,t,o,null,a,C)}for(r in a)if(o=a[r],C=n[r],a.hasOwnProperty(r)&&(o!=null||C!=null))switch(r){case"value":x=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==C&&Ee(e,t,r,o,a,C)}t=v,n=d,a=D,x!=null?pl(e,!!n,x,!1):!!a!=!!n&&(t!=null?pl(e,!!n,t,!0):pl(e,!!n,n?[]:"",!1));return;case"textarea":D=x=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ee(e,t,v,null,a,r)}for(d in a)if(r=a[d],o=n[d],a.hasOwnProperty(d)&&(r!=null||o!=null))switch(d){case"value":x=r;break;case"defaultValue":D=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Ee(e,t,d,r,a,o)}fc(e,x,D);return;case"option":for(var X in n)if(x=n[X],n.hasOwnProperty(X)&&x!=null&&!a.hasOwnProperty(X))switch(X){case"selected":e.selected=!1;break;default:Ee(e,t,X,null,a,x)}for(C in a)if(x=a[C],D=n[C],a.hasOwnProperty(C)&&x!==D&&(x!=null||D!=null))switch(C){case"selected":e.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:Ee(e,t,C,x,a,D)}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 k in n)x=n[k],n.hasOwnProperty(k)&&x!=null&&!a.hasOwnProperty(k)&&Ee(e,t,k,null,a,x);for(A in a)if(x=a[A],D=n[A],a.hasOwnProperty(A)&&x!==D&&(x!=null||D!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(137,t));break;default:Ee(e,t,A,x,a,D)}return;default:if(Zu(t)){for(var _e in n)x=n[_e],n.hasOwnProperty(_e)&&x!==void 0&&!a.hasOwnProperty(_e)&&Hr(e,t,_e,void 0,a,x);for(N in a)x=a[N],D=n[N],!a.hasOwnProperty(N)||x===D||x===void 0&&D===void 0||Hr(e,t,N,x,a,D);return}}for(var M in n)x=n[M],n.hasOwnProperty(M)&&x!=null&&!a.hasOwnProperty(M)&&Ee(e,t,M,null,a,x);for(j in a)x=a[j],D=n[j],!a.hasOwnProperty(j)||x===D||x==null&&D==null||Ee(e,t,j,x,a,D)}function ph(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function av(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],o=r.transferSize,d=r.initiatorType,v=r.duration;if(o&&v&&ph(d)){for(d=0,v=r.responseEnd,a+=1;a<n.length;a++){var C=n[a],A=C.startTime;if(A>v)break;var N=C.transferSize,j=C.initiatorType;N&&ph(j)&&(C=C.responseEnd,d+=N*(C<v?1:(v-A)/(C-A)))}if(--a,t+=8*(o+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ur=null,Nr=null;function su(e){return e.nodeType===9?e:e.ownerDocument}function vh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Vr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lr=null;function iv(){var e=window.event;return e&&e.type==="popstate"?e===Lr?!1:(Lr=e,!0):(Lr=null,!1)}var Sh=typeof setTimeout=="function"?setTimeout:void 0,uv=typeof clearTimeout=="function"?clearTimeout:void 0,Ch=typeof Promise=="function"?Promise:void 0,sv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ch<"u"?function(e){return Ch.resolve(null).then(e).catch(rv)}:Sh;function rv(e){setTimeout(function(){throw e})}function Hn(e){return e==="head"}function Rh(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(r),Kl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ja(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ja(n);for(var o=n.firstChild;o;){var d=o.nextSibling,v=o.nodeName;o[la]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&ja(e.ownerDocument.body);n=r}while(n);Kl(t)}function bh(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Br(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Br(n),Qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function ov(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[la])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=wt(e.nextSibling),e===null)break}return null}function cv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=wt(e.nextSibling),e===null))return null;return e}function Eh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wt(e.nextSibling),e===null))return null;return e}function jr(e){return e.data==="$?"||e.data==="$~"}function qr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function fv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function wt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gr=null;function _h(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return wt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Mh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function zh(e,t,n){switch(t=su(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ja(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qu(e)}var xt=new Map,Th=new Set;function ru(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cn=Q.d;Q.d={f:dv,r:hv,D:gv,C:mv,L:pv,m:vv,X:Sv,S:yv,M:Cv};function dv(){var e=cn.f(),t=Wi();return e||t}function hv(e){var t=hl(e);t!==null&&t.tag===5&&t.type==="form"?Yf(t):cn.r(e)}var Xl=typeof document>"u"?null:document;function Oh(e,t,n){var a=Xl;if(a&&typeof t=="string"&&t){var r=Et(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Th.has(r)||(Th.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Je(t,"link",e),Qe(t),a.head.appendChild(t)))}}function gv(e){cn.D(e),Oh("dns-prefetch",e,null)}function mv(e,t){cn.C(e,t),Oh("preconnect",e,t)}function pv(e,t,n){cn.L(e,t,n);var a=Xl;if(a&&e&&t){var r='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Et(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Et(n.imageSizes)+'"]')):r+='[href="'+Et(e)+'"]';var o=r;switch(t){case"style":o=$l(e);break;case"script":o=Zl(e)}xt.has(o)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),xt.set(o,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(qa(o))||t==="script"&&a.querySelector(Ga(o))||(t=a.createElement("link"),Je(t,"link",e),Qe(t),a.head.appendChild(t)))}}function vv(e,t){cn.m(e,t);var n=Xl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',o=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Zl(e)}if(!xt.has(o)&&(e=b({rel:"modulepreload",href:e},t),xt.set(o,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ga(o)))return}a=n.createElement("link"),Je(a,"link",e),Qe(a),n.head.appendChild(a)}}}function yv(e,t,n){cn.S(e,t,n);var a=Xl;if(a&&e){var r=gl(a).hoistableStyles,o=$l(e);t=t||"default";var d=r.get(o);if(!d){var v={loading:0,preload:null};if(d=a.querySelector(qa(o)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=xt.get(o))&&Fr(e,n);var C=d=a.createElement("link");Qe(C),Je(C,"link",e),C._p=new Promise(function(A,N){C.onload=A,C.onerror=N}),C.addEventListener("load",function(){v.loading|=1}),C.addEventListener("error",function(){v.loading|=2}),v.loading|=4,ou(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:v},r.set(o,d)}}}function Sv(e,t){cn.X(e,t);var n=Xl;if(n&&e){var a=gl(n).hoistableScripts,r=Zl(e),o=a.get(r);o||(o=n.querySelector(Ga(r)),o||(e=b({src:e,async:!0},t),(t=xt.get(r))&&Qr(e,t),o=n.createElement("script"),Qe(o),Je(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function Cv(e,t){cn.M(e,t);var n=Xl;if(n&&e){var a=gl(n).hoistableScripts,r=Zl(e),o=a.get(r);o||(o=n.querySelector(Ga(r)),o||(e=b({src:e,async:!0,type:"module"},t),(t=xt.get(r))&&Qr(e,t),o=n.createElement("script"),Qe(o),Je(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function Ah(e,t,n,a){var r=(r=ue.current)?ru(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=$l(n.href),n=gl(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=$l(n.href);var o=gl(r).hoistableStyles,d=o.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=r.querySelector(qa(e)))&&!o._p&&(d.instance=o,d.state.loading=5),xt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xt.set(e,n),o||Rv(r,e,n,d.state))),t&&a===null)throw Error(s(528,""));return d}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zl(n),n=gl(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function $l(e){return'href="'+Et(e)+'"'}function qa(e){return'link[rel="stylesheet"]['+e+"]"}function wh(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Rv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Je(t,"link",n),Qe(t),e.head.appendChild(t))}function Zl(e){return'[src="'+Et(e)+'"]'}function Ga(e){return"script[async]"+e}function xh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(n.href)+'"]');if(a)return t.instance=a,Qe(a),a;var r=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),Je(a,"style",r),ou(a,n.precedence,e),t.instance=a;case"stylesheet":r=$l(n.href);var o=e.querySelector(qa(r));if(o)return t.state.loading|=4,t.instance=o,Qe(o),o;a=wh(n),(r=xt.get(r))&&Fr(a,r),o=(e.ownerDocument||e).createElement("link"),Qe(o);var d=o;return d._p=new Promise(function(v,C){d.onload=v,d.onerror=C}),Je(o,"link",a),t.state.loading|=4,ou(o,n.precedence,e),t.instance=o;case"script":return o=Zl(n.src),(r=e.querySelector(Ga(o)))?(t.instance=r,Qe(r),r):(a=n,(r=xt.get(o))&&(a=b({},n),Qr(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Qe(r),Je(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ou(a,n.precedence,e));return t.instance}function ou(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,o=r,d=0;d<a.length;d++){var v=a[d];if(v.dataset.precedence===t)o=v;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Fr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var cu=null;function Dh(e,t,n){if(cu===null){var a=new Map,r=cu=new Map;r.set(n,a)}else r=cu,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[la]||o[Xe]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var v=a.get(d);v?v.push(o):a.set(d,[o])}}return a}function Hh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function bv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Uh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ev(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=$l(a.href),o=t.querySelector(qa(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Qe(o);return}o=t.ownerDocument||t,a=wh(a),(r=xt.get(r))&&Fr(a,r),o=o.createElement("link"),Qe(o);var d=o;d._p=new Promise(function(v,C){d.onload=v,d.onerror=C}),Je(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Yr=0;function _v(e,t){return e.stylesheets&&e.count===0&&hu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&hu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Yr===0&&(Yr=62500*av());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Yr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function fu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var du=null;function hu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,du=new Map,t.forEach(Mv,e),du=null,fu.call(e))}function Mv(e,t){if(!(t.state.loading&4)){var n=du.get(e);if(n)var a=n.get(null);else{n=new Map,du.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var d=r[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}r=t.instance,d=r.getAttribute("data-precedence"),o=n.get(d)||a,o===a&&n.set(null,r),n.set(d,r),this.count++,a=fu.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Fa={$$typeof:G,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function zv(e,t,n,a,r,o,d,v,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Nh(e,t,n,a,r,o,d,v,C,A,N,j){return e=new zv(e,t,n,d,C,A,N,j,v),t=1,o===!0&&(t|=24),o=gt(3,null,null,t),e.current=o,o.stateNode=e,t=Es(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Ts(o),e}function Vh(e){return e?(e=_l,e):_l}function Lh(e,t,n,a,r,o){r=Vh(r),a.context===null?a.context=r:a.pendingContext=r,a=bn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=En(e,a,t),n!==null&&(rt(n,e,t),Ca(n,e,t))}function Bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xr(e,t){Bh(e,t),(e=e.alternate)&&Bh(e,t)}function jh(e){if(e.tag===13||e.tag===31){var t=Jn(e,67108864);t!==null&&rt(t,e,67108864),Xr(e,67108864)}}function qh(e){if(e.tag===13||e.tag===31){var t=St();t=qu(t);var n=Jn(e,t);n!==null&&rt(n,e,t),Xr(e,t)}}var gu=!0;function Tv(e,t,n,a){var r=L.T;L.T=null;var o=Q.p;try{Q.p=2,$r(e,t,n,a)}finally{Q.p=o,L.T=r}}function Ov(e,t,n,a){var r=L.T;L.T=null;var o=Q.p;try{Q.p=8,$r(e,t,n,a)}finally{Q.p=o,L.T=r}}function $r(e,t,n,a){if(gu){var r=Zr(a);if(r===null)Dr(e,t,a,mu,n),Fh(e,a);else if(wv(r,e,t,n,a))a.stopPropagation();else if(Fh(e,a),t&4&&-1<Av.indexOf(e)){for(;r!==null;){var o=hl(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=Yn(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var C=1<<31-dt(d);v.entanglements[1]|=C,d&=~C}Ft(o),(me&6)===0&&(Pi=ct()+500,Va(0))}}break;case 31:case 13:v=Jn(o,2),v!==null&&rt(v,o,2),Wi(),Xr(o,2)}if(o=Zr(a),o===null&&Dr(e,t,a,mu,n),o===r)break;r=o}r!==null&&a.stopPropagation()}else Dr(e,t,a,null,n)}}function Zr(e){return e=Ju(e),Kr(e)}var mu=null;function Kr(e){if(mu=null,e=dl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mu=e,null}function Gh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gm()){case Ko:return 2;case Jo:return 8;case ai:case mm:return 32;case ko:return 268435456;default:return 32}default:return 32}}var Jr=!1,Un=null,Nn=null,Vn=null,Qa=new Map,Ya=new Map,Ln=[],Av="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 Fh(e,t){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Nn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":Qa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ya.delete(t.pointerId)}}function Xa(e,t,n,a,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[r]},t!==null&&(t=hl(t),t!==null&&jh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function wv(e,t,n,a,r){switch(t){case"focusin":return Un=Xa(Un,e,t,n,a,r),!0;case"dragenter":return Nn=Xa(Nn,e,t,n,a,r),!0;case"mouseover":return Vn=Xa(Vn,e,t,n,a,r),!0;case"pointerover":var o=r.pointerId;return Qa.set(o,Xa(Qa.get(o)||null,e,t,n,a,r)),!0;case"gotpointercapture":return o=r.pointerId,Ya.set(o,Xa(Ya.get(o)||null,e,t,n,a,r)),!0}return!1}function Qh(e){var t=dl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,nc(e.priority,function(){qh(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,nc(e.priority,function(){qh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zr(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ku=a,n.target.dispatchEvent(a),Ku=null}else return t=hl(n),t!==null&&jh(t),e.blockedOn=n,!1;t.shift()}return!0}function Yh(e,t,n){pu(e)&&n.delete(t)}function xv(){Jr=!1,Un!==null&&pu(Un)&&(Un=null),Nn!==null&&pu(Nn)&&(Nn=null),Vn!==null&&pu(Vn)&&(Vn=null),Qa.forEach(Yh),Ya.forEach(Yh)}function vu(e,t){e.blockedOn===t&&(e.blockedOn=null,Jr||(Jr=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,xv)))}var yu=null;function Xh(e){yu!==e&&(yu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){yu===e&&(yu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(Kr(a||n)===null)continue;break}var o=hl(n);o!==null&&(e.splice(t,3),t-=3,Zs(o,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function Kl(e){function t(C){return vu(C,e)}Un!==null&&vu(Un,e),Nn!==null&&vu(Nn,e),Vn!==null&&vu(Vn,e),Qa.forEach(t),Ya.forEach(t);for(var n=0;n<Ln.length;n++){var a=Ln[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ln.length&&(n=Ln[0],n.blockedOn===null);)Qh(n),n.blockedOn===null&&Ln.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],o=n[a+1],d=r[nt]||null;if(typeof o=="function")d||Xh(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(r=o,d=o[nt]||null)v=d.formAction;else if(Kr(r)!==null)continue}else v=d.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Xh(n)}}}function $h(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function kr(e){this._internalRoot=e}Su.prototype.render=kr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=St();Lh(n,a,e,t,null,null)},Su.prototype.unmount=kr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lh(e.current,2,null,e,null,null),Wi(),t[fl]=null}};function Su(e){this._internalRoot=e}Su.prototype.unstable_scheduleHydration=function(e){if(e){var t=tc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ln.length&&t!==0&&t<Ln[n].priority;n++);Ln.splice(n,0,e),n===0&&Qh(e)}};var Zh=u.version;if(Zh!=="19.2.0")throw Error(s(527,Zh,"19.2.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Dv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{ea=Cu.inject(Dv),ft=Cu}catch{}}return Za.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",r=ed,o=td,d=nd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Nh(e,1,!1,null,null,n,a,null,r,o,d,$h),e[fl]=t.current,xr(e),new kr(t)},Za.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,r="",o=ed,d=td,v=nd,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Nh(e,1,!0,t,n??null,a,r,C,o,d,v,$h),t.context=Vh(null),n=t.current,a=St(),a=qu(a),r=bn(a),r.callback=null,En(n,r,a),n=a,t.current.lanes=n,na(t,n),Ft(t),e[fl]=t.current,xr(e),new Su(t)},Za.version="19.2.0",Za}var lg;function Fv(){if(lg)return Wr.exports;lg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Wr.exports=Gv(),Wr.exports}var Qv=Fv();const Yv=Tg(Qv);/**
 * react-router v7.9.4
 *
 * 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 ag="popstate";function Xv(l={}){function u(c,f){let{pathname:h="/",search:g="",hash:p=""}=cl(c.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),ho("",{pathname:h,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(c,f){let h=c.document.querySelector("base"),g="";if(h&&h.getAttribute("href")){let p=c.location.href,m=p.indexOf("#");g=m===-1?p:p.slice(0,m)}return g+"#"+(typeof f=="string"?f:Pa(f))}function s(c,f){Ct(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return Zv(u,i,s,l)}function we(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function Ct(l,u){if(!l){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function $v(){return Math.random().toString(36).substring(2,10)}function ig(l,u){return{usr:l.state,key:l.key,idx:u}}function ho(l,u,i=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof u=="string"?cl(u):u,state:i,key:u&&u.key||s||$v()}}function Pa({pathname:l="/",search:u="",hash:i=""}){return u&&u!=="?"&&(l+=u.charAt(0)==="?"?u:"?"+u),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function cl(l){let u={};if(l){let i=l.indexOf("#");i>=0&&(u.hash=l.substring(i),l=l.substring(0,i));let s=l.indexOf("?");s>=0&&(u.search=l.substring(s),l=l.substring(0,s)),l&&(u.pathname=l)}return u}function Zv(l,u,i,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,h=c.history,g="POP",p=null,m=y();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function y(){return(h.state||{idx:null}).idx}function b(){g="POP";let U=y(),H=U==null?null:U-m;m=U,p&&p({action:g,location:T.location,delta:H})}function R(U,H){g="PUSH";let V=ho(T.location,U,H);i&&i(V,U),m=y()+1;let G=ig(V,m),ne=T.createHref(V);try{h.pushState(G,"",ne)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;c.location.assign(ne)}f&&p&&p({action:g,location:T.location,delta:1})}function S(U,H){g="REPLACE";let V=ho(T.location,U,H);i&&i(V,U),m=y();let G=ig(V,m),ne=T.createHref(V);h.replaceState(G,"",ne),f&&p&&p({action:g,location:T.location,delta:0})}function z(U){return Kv(U)}let T={get action(){return g},get location(){return l(c,h)},listen(U){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(ag,b),p=U,()=>{c.removeEventListener(ag,b),p=null}},createHref(U){return u(c,U)},createURL:z,encodeLocation(U){let H=z(U);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:R,replace:S,go(U){return h.go(U)}};return T}function Kv(l,u=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),we(i,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:Pa(l);return s=s.replace(/ $/,"%20"),!u&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Ag(l,u,i="/"){return Jv(l,u,i,!1)}function Jv(l,u,i,s){let c=typeof u=="string"?cl(u):u,f=hn(c.pathname||"/",i);if(f==null)return null;let h=wg(l);kv(h);let g=null;for(let p=0;g==null&&p<h.length;++p){let m=sy(f);g=iy(h[p],m,s)}return g}function wg(l,u=[],i=[],s="",c=!1){let f=(h,g,p=c,m)=>{let y={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&p)return;we(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let b=dn([s,y.relativePath]),R=i.concat(y);h.children&&h.children.length>0&&(we(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),wg(h.children,u,R,b,p)),!(h.path==null&&!h.index)&&u.push({path:b,score:ly(b,h.index),routesMeta:R})};return l.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))f(h,g);else for(let p of xg(h.path))f(h,g,!0,p)}),u}function xg(l){let u=l.split("/");if(u.length===0)return[];let[i,...s]=u,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let h=xg(s.join("/")),g=[];return g.push(...h.map(p=>p===""?f:[f,p].join("/"))),c&&g.push(...h),g.map(p=>l.startsWith("/")&&p===""?"/":p)}function kv(l){l.sort((u,i)=>u.score!==i.score?i.score-u.score:ay(u.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var Pv=/^:[\w-]+$/,Iv=3,Wv=2,ey=1,ty=10,ny=-2,ug=l=>l==="*";function ly(l,u){let i=l.split("/"),s=i.length;return i.some(ug)&&(s+=ny),u&&(s+=Wv),i.filter(c=>!ug(c)).reduce((c,f)=>c+(Pv.test(f)?Iv:f===""?ey:ty),s)}function ay(l,u){return l.length===u.length&&l.slice(0,-1).every((s,c)=>s===u[c])?l[l.length-1]-u[u.length-1]:0}function iy(l,u,i=!1){let{routesMeta:s}=l,c={},f="/",h=[];for(let g=0;g<s.length;++g){let p=s[g],m=g===s.length-1,y=f==="/"?u:u.slice(f.length)||"/",b=Ou({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},y),R=p.route;if(!b&&m&&i&&!s[s.length-1].route.index&&(b=Ou({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(c,b.params),h.push({params:c,pathname:dn([f,b.pathname]),pathnameBase:fy(dn([f,b.pathnameBase])),route:R}),b.pathnameBase!=="/"&&(f=dn([f,b.pathnameBase]))}return h}function Ou(l,u){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,s]=uy(l.path,l.caseSensitive,l.end),c=u.match(i);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:s.reduce((m,{paramName:y,isOptional:b},R)=>{if(y==="*"){let z=g[R]||"";h=f.slice(0,f.length-z.length).replace(/(.)\/+$/,"$1")}const S=g[R];return b&&!S?m[y]=void 0:m[y]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:l}}function uy(l,u=!1,i=!0){Ct(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,p)=>(s.push({paramName:g,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,u?void 0:"i"),s]}function sy(l){try{return l.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Ct(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),l}}function hn(l,u){if(u==="/")return l;if(!l.toLowerCase().startsWith(u.toLowerCase()))return null;let i=u.endsWith("/")?u.length-1:u.length,s=l.charAt(i);return s&&s!=="/"?null:l.slice(i)||"/"}function ry(l,u="/"){let{pathname:i,search:s="",hash:c=""}=typeof l=="string"?cl(l):l;return{pathname:i?i.startsWith("/")?i:oy(i,u):u,search:dy(s),hash:hy(c)}}function oy(l,u){let i=u.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function lo(l,u,i,s){return`Cannot include a '${l}' character in a manually specified \`to.${u}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cy(l){return l.filter((u,i)=>i===0||u.route.path&&u.route.path.length>0)}function wo(l){let u=cy(l);return u.map((i,s)=>s===u.length-1?i.pathname:i.pathnameBase)}function xo(l,u,i,s=!1){let c;typeof l=="string"?c=cl(l):(c={...l},we(!c.pathname||!c.pathname.includes("?"),lo("?","pathname","search",c)),we(!c.pathname||!c.pathname.includes("#"),lo("#","pathname","hash",c)),we(!c.search||!c.search.includes("#"),lo("#","search","hash",c)));let f=l===""||c.pathname==="",h=f?"/":c.pathname,g;if(h==null)g=i;else{let b=u.length-1;if(!s&&h.startsWith("..")){let R=h.split("/");for(;R[0]==="..";)R.shift(),b-=1;c.pathname=R.join("/")}g=b>=0?u[b]:"/"}let p=ry(c,g),m=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}var dn=l=>l.join("/").replace(/\/\/+/g,"/"),fy=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),dy=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,hy=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function gy(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Dg=["POST","PUT","PATCH","DELETE"];new Set(Dg);var my=["GET",...Dg];new Set(my);var kl=w.createContext(null);kl.displayName="DataRouter";var wu=w.createContext(null);wu.displayName="DataRouterState";w.createContext(!1);var Hg=w.createContext({isTransitioning:!1});Hg.displayName="ViewTransition";var py=w.createContext(new Map);py.displayName="Fetchers";var vy=w.createContext(null);vy.displayName="Await";var Bt=w.createContext(null);Bt.displayName="Navigation";var ei=w.createContext(null);ei.displayName="Location";var Qt=w.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var Do=w.createContext(null);Do.displayName="RouteError";function yy(l,{relative:u}={}){we(Pl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=w.useContext(Bt),{hash:c,pathname:f,search:h}=ti(l,{relative:u}),g=f;return i!=="/"&&(g=f==="/"?i:dn([i,f])),s.createHref({pathname:g,search:h,hash:c})}function Pl(){return w.useContext(ei)!=null}function Yt(){return we(Pl(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(ei).location}var Ug="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ng(l){w.useContext(Bt).static||w.useLayoutEffect(l)}function Il(){let{isDataRoute:l}=w.useContext(Qt);return l?xy():Sy()}function Sy(){we(Pl(),"useNavigate() may be used only in the context of a <Router> component.");let l=w.useContext(kl),{basename:u,navigator:i}=w.useContext(Bt),{matches:s}=w.useContext(Qt),{pathname:c}=Yt(),f=JSON.stringify(wo(s)),h=w.useRef(!1);return Ng(()=>{h.current=!0}),w.useCallback((p,m={})=>{if(Ct(h.current,Ug),!h.current)return;if(typeof p=="number"){i.go(p);return}let y=xo(p,JSON.parse(f),c,m.relative==="path");l==null&&u!=="/"&&(y.pathname=y.pathname==="/"?u:dn([u,y.pathname])),(m.replace?i.replace:i.push)(y,m.state,m)},[u,i,f,c,l])}w.createContext(null);function ti(l,{relative:u}={}){let{matches:i}=w.useContext(Qt),{pathname:s}=Yt(),c=JSON.stringify(wo(i));return w.useMemo(()=>xo(l,JSON.parse(c),s,u==="path"),[l,c,s,u])}function Cy(l,u){return Vg(l,u)}function Vg(l,u,i,s,c){we(Pl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=w.useContext(Bt),{matches:h}=w.useContext(Qt),g=h[h.length-1],p=g?g.params:{},m=g?g.pathname:"/",y=g?g.pathnameBase:"/",b=g&&g.route;{let V=b&&b.path||"";Lg(m,!b||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${V}">) 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="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let R=Yt(),S;if(u){let V=typeof u=="string"?cl(u):u;we(y==="/"||V.pathname?.startsWith(y),`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 "${y}" but pathname "${V.pathname}" was given in the \`location\` prop.`),S=V}else S=R;let z=S.pathname||"/",T=z;if(y!=="/"){let V=y.replace(/^\//,"").split("/");T="/"+z.replace(/^\//,"").split("/").slice(V.length).join("/")}let U=Ag(l,{pathname:T});Ct(b||U!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Ct(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 H=My(U&&U.map(V=>Object.assign({},V,{params:Object.assign({},p,V.params),pathname:dn([y,f.encodeLocation?f.encodeLocation(V.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?y:dn([y,f.encodeLocation?f.encodeLocation(V.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathnameBase])})),h,i,s,c);return u&&H?w.createElement(ei.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},H):H}function Ry(){let l=wy(),u=gy(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:f},"ErrorBoundary")," or"," ",w.createElement("code",{style:f},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},u),i?w.createElement("pre",{style:c},i):null,h)}var by=w.createElement(Ry,null),Ey=class extends w.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,u){return u.location!==l.location||u.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:u.error,location:u.location,revalidation:l.revalidation||u.revalidation}}componentDidCatch(l,u){this.props.unstable_onError?this.props.unstable_onError(l,u):console.error("React Router caught the following error during render",l)}render(){return this.state.error!==void 0?w.createElement(Qt.Provider,{value:this.props.routeContext},w.createElement(Do.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function _y({routeContext:l,match:u,children:i}){let s=w.useContext(kl);return s&&s.static&&s.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=u.route.id),w.createElement(Qt.Provider,{value:l},i)}function My(l,u=[],i=null,s=null,c=null){if(l==null){if(!i)return null;if(i.errors)l=i.matches;else if(u.length===0&&!i.initialized&&i.matches.length>0)l=i.matches;else return null}let f=l,h=i?.errors;if(h!=null){let m=f.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);we(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,m+1))}let g=!1,p=-1;if(i)for(let m=0;m<f.length;m++){let y=f[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=m),y.route.id){let{loaderData:b,errors:R}=i,S=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!R||R[y.route.id]===void 0);if(y.route.lazy||S){g=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}return f.reduceRight((m,y,b)=>{let R,S=!1,z=null,T=null;i&&(R=h&&y.route.id?h[y.route.id]:void 0,z=y.route.errorElement||by,g&&(p<0&&b===0?(Lg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,T=null):p===b&&(S=!0,T=y.route.hydrateFallbackElement||null)));let U=u.concat(f.slice(0,b+1)),H=()=>{let V;return R?V=z:S?V=T:y.route.Component?V=w.createElement(y.route.Component,null):y.route.element?V=y.route.element:V=m,w.createElement(_y,{match:y,routeContext:{outlet:m,matches:U,isDataRoute:i!=null},children:V})};return i&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?w.createElement(Ey,{location:i.location,revalidation:i.revalidation,component:z,error:R,children:H(),routeContext:{outlet:null,matches:U,isDataRoute:!0},unstable_onError:s}):H()},null)}function Ho(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function zy(l){let u=w.useContext(kl);return we(u,Ho(l)),u}function Ty(l){let u=w.useContext(wu);return we(u,Ho(l)),u}function Oy(l){let u=w.useContext(Qt);return we(u,Ho(l)),u}function Uo(l){let u=Oy(l),i=u.matches[u.matches.length-1];return we(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function Ay(){return Uo("useRouteId")}function wy(){let l=w.useContext(Do),u=Ty("useRouteError"),i=Uo("useRouteError");return l!==void 0?l:u.errors?.[i]}function xy(){let{router:l}=zy("useNavigate"),u=Uo("useNavigate"),i=w.useRef(!1);return Ng(()=>{i.current=!0}),w.useCallback(async(c,f={})=>{Ct(i.current,Ug),i.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:u,...f}))},[l,u])}var sg={};function Lg(l,u,i){!u&&!sg[l]&&(sg[l]=!0,Ct(!1,i))}w.memo(Dy);function Dy({routes:l,future:u,state:i,unstable_onError:s}){return Vg(l,void 0,i,s,u)}function Hy({to:l,replace:u,state:i,relative:s}){we(Pl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=w.useContext(Bt);Ct(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=w.useContext(Qt),{pathname:h}=Yt(),g=Il(),p=xo(l,wo(f),h,s==="path"),m=JSON.stringify(p);return w.useEffect(()=>{g(JSON.parse(m),{replace:u,state:i,relative:s})},[g,m,s,u,i]),null}function go(l){we(!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 Uy({basename:l="/",children:u=null,location:i,navigationType:s="POP",navigator:c,static:f=!1}){we(!Pl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=l.replace(/^\/*/,"/"),g=w.useMemo(()=>({basename:h,navigator:c,static:f,future:{}}),[h,c,f]);typeof i=="string"&&(i=cl(i));let{pathname:p="/",search:m="",hash:y="",state:b=null,key:R="default"}=i,S=w.useMemo(()=>{let z=hn(p,h);return z==null?null:{location:{pathname:z,search:m,hash:y,state:b,key:R},navigationType:s}},[h,p,m,y,b,R,s]);return Ct(S!=null,`<Router basename="${h}"> is not able to match the URL "${p}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:w.createElement(Bt.Provider,{value:g},w.createElement(ei.Provider,{children:u,value:S}))}function Ny({children:l,location:u}){return Cy(mo(l),u)}function mo(l,u=[]){let i=[];return w.Children.forEach(l,(s,c)=>{if(!w.isValidElement(s))return;let f=[...u,c];if(s.type===w.Fragment){i.push.apply(i,mo(s.props.children,f));return}we(s.type===go,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),we(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=mo(s.props.children,f)),i.push(h)}),i}var zu="get",Tu="application/x-www-form-urlencoded";function xu(l){return l!=null&&typeof l.tagName=="string"}function Vy(l){return xu(l)&&l.tagName.toLowerCase()==="button"}function Ly(l){return xu(l)&&l.tagName.toLowerCase()==="form"}function By(l){return xu(l)&&l.tagName.toLowerCase()==="input"}function jy(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function qy(l,u){return l.button===0&&(!u||u==="_self")&&!jy(l)}function po(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((u,i)=>{let s=l[i];return u.concat(Array.isArray(s)?s.map(c=>[i,c]):[[i,s]])},[]))}function Gy(l,u){let i=po(l);return u&&u.forEach((s,c)=>{i.has(c)||u.getAll(c).forEach(f=>{i.append(c,f)})}),i}var Ru=null;function Fy(){if(Ru===null)try{new FormData(document.createElement("form"),0),Ru=!1}catch{Ru=!0}return Ru}var Qy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ao(l){return l!=null&&!Qy.has(l)?(Ct(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tu}"`),null):l}function Yy(l,u){let i,s,c,f,h;if(Ly(l)){let g=l.getAttribute("action");s=g?hn(g,u):null,i=l.getAttribute("method")||zu,c=ao(l.getAttribute("enctype"))||Tu,f=new FormData(l)}else if(Vy(l)||By(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=l.getAttribute("formaction")||g.getAttribute("action");if(s=p?hn(p,u):null,i=l.getAttribute("formmethod")||g.getAttribute("method")||zu,c=ao(l.getAttribute("formenctype"))||ao(g.getAttribute("enctype"))||Tu,f=new FormData(g,l),!Fy()){let{name:m,type:y,value:b}=l;if(y==="image"){let R=m?`${m}.`:"";f.append(`${R}x`,"0"),f.append(`${R}y`,"0")}else m&&f.append(m,b)}}else{if(xu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=zu,s=null,c=Tu,h=l}return f&&c==="text/plain"&&(h=f,f=void 0),{action:s,method:i.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function No(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function Xy(l,u,i){let s=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s.pathname==="/"?s.pathname=`_root.${i}`:u&&hn(s.pathname,u)==="/"?s.pathname=`${u.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function $y(l,u){if(l.id in u)return u[l.id];try{let i=await import(l.module);return u[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zy(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Ky(l,u,i){let s=await Promise.all(l.map(async c=>{let f=u.routes[c.route.id];if(f){let h=await $y(f,i);return h.links?h.links():[]}return[]}));return Iy(s.flat(1).filter(Zy).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function rg(l,u,i,s,c,f){let h=(p,m)=>i[m]?p.route.id!==i[m].route.id:!0,g=(p,m)=>i[m].pathname!==p.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==p.params["*"];return f==="assets"?u.filter((p,m)=>h(p,m)||g(p,m)):f==="data"?u.filter((p,m)=>{let y=s.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,m)||g(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Jy(l,u,{includeHydrateFallback:i}={}){return ky(l.map(s=>{let c=u.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function ky(l){return[...new Set(l)]}function Py(l){let u={},i=Object.keys(l).sort();for(let s of i)u[s]=l[s];return u}function Iy(l,u){let i=new Set;return new Set(u),l.reduce((s,c)=>{let f=JSON.stringify(Py(c));return i.has(f)||(i.add(f),s.push({key:f,link:c})),s},[])}function Bg(){let l=w.useContext(kl);return No(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Wy(){let l=w.useContext(wu);return No(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Vo=w.createContext(void 0);Vo.displayName="FrameworkContext";function jg(){let l=w.useContext(Vo);return No(l,"You must render this element inside a <HydratedRouter> element"),l}function e0(l,u){let i=w.useContext(Vo),[s,c]=w.useState(!1),[f,h]=w.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:m,onMouseLeave:y,onTouchStart:b}=u,R=w.useRef(null);w.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let T=H=>{H.forEach(V=>{h(V.isIntersecting)})},U=new IntersectionObserver(T,{threshold:.5});return R.current&&U.observe(R.current),()=>{U.disconnect()}}},[l]),w.useEffect(()=>{if(s){let T=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(T)}}},[s]);let S=()=>{c(!0)},z=()=>{c(!1),h(!1)};return i?l!=="intent"?[f,R,{}]:[f,R,{onFocus:Ka(g,S),onBlur:Ka(p,z),onMouseEnter:Ka(m,S),onMouseLeave:Ka(y,z),onTouchStart:Ka(b,S)}]:[!1,R,{}]}function Ka(l,u){return i=>{l&&l(i),i.defaultPrevented||u(i)}}function t0({page:l,...u}){let{router:i}=Bg(),s=w.useMemo(()=>Ag(i.routes,l,i.basename),[i.routes,l,i.basename]);return s?w.createElement(l0,{page:l,matches:s,...u}):null}function n0(l){let{manifest:u,routeModules:i}=jg(),[s,c]=w.useState([]);return w.useEffect(()=>{let f=!1;return Ky(l,u,i).then(h=>{f||c(h)}),()=>{f=!0}},[l,u,i]),s}function l0({page:l,matches:u,...i}){let s=Yt(),{manifest:c,routeModules:f}=jg(),{basename:h}=Bg(),{loaderData:g,matches:p}=Wy(),m=w.useMemo(()=>rg(l,u,p,c,s,"data"),[l,u,p,c,s]),y=w.useMemo(()=>rg(l,u,p,c,s,"assets"),[l,u,p,c,s]),b=w.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let z=new Set,T=!1;if(u.forEach(H=>{let V=c.routes[H.route.id];!V||!V.hasLoader||(!m.some(G=>G.route.id===H.route.id)&&H.route.id in g&&f[H.route.id]?.shouldRevalidate||V.hasClientLoader?T=!0:z.add(H.route.id))}),z.size===0)return[];let U=Xy(l,h,"data");return T&&z.size>0&&U.searchParams.set("_routes",u.filter(H=>z.has(H.route.id)).map(H=>H.route.id).join(",")),[U.pathname+U.search]},[h,g,s,c,m,u,l,f]),R=w.useMemo(()=>Jy(y,c),[y,c]),S=n0(y);return w.createElement(w.Fragment,null,b.map(z=>w.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...i})),R.map(z=>w.createElement("link",{key:z,rel:"modulepreload",href:z,...i})),S.map(({key:z,link:T})=>w.createElement("link",{key:z,nonce:i.nonce,...T})))}function a0(...l){return u=>{l.forEach(i=>{typeof i=="function"?i(u):i!=null&&(i.current=u)})}}var qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qg&&(window.__reactRouterVersion="7.9.4")}catch{}function i0({basename:l,children:u,window:i}){let s=w.useRef();s.current==null&&(s.current=Xv({window:i,v5Compat:!0}));let c=s.current,[f,h]=w.useState({action:c.action,location:c.location}),g=w.useCallback(p=>{w.startTransition(()=>h(p))},[h]);return w.useLayoutEffect(()=>c.listen(g),[c,g]),w.createElement(Uy,{basename:l,children:u,location:f.location,navigationType:f.action,navigator:c})}var Gg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Lo=w.forwardRef(function({onClick:u,discover:i="render",prefetch:s="none",relative:c,reloadDocument:f,replace:h,state:g,target:p,to:m,preventScrollReset:y,viewTransition:b,...R},S){let{basename:z}=w.useContext(Bt),T=typeof m=="string"&&Gg.test(m),U,H=!1;if(typeof m=="string"&&T&&(U=m,qg))try{let ye=new URL(window.location.href),xe=m.startsWith("//")?new URL(ye.protocol+m):new URL(m),Ue=hn(xe.pathname,z);xe.origin===ye.origin&&Ue!=null?m=Ue+xe.search+xe.hash:H=!0}catch{Ct(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let V=yy(m,{relative:c}),[G,ne,ee]=e0(s,R),pe=o0(m,{replace:h,state:g,target:p,preventScrollReset:y,relative:c,viewTransition:b});function K(ye){u&&u(ye),ye.defaultPrevented||pe(ye)}let fe=w.createElement("a",{...R,...ee,href:U||V,onClick:H||f?u:K,ref:a0(S,ne),target:p,"data-discover":!T&&i==="render"?"true":void 0});return G&&!T?w.createElement(w.Fragment,null,fe,w.createElement(t0,{page:V})):fe});Lo.displayName="Link";var u0=w.forwardRef(function({"aria-current":u="page",caseSensitive:i=!1,className:s="",end:c=!1,style:f,to:h,viewTransition:g,children:p,...m},y){let b=ti(h,{relative:m.relative}),R=Yt(),S=w.useContext(wu),{navigator:z,basename:T}=w.useContext(Bt),U=S!=null&&m0(b)&&g===!0,H=z.encodeLocation?z.encodeLocation(b).pathname:b.pathname,V=R.pathname,G=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(V=V.toLowerCase(),G=G?G.toLowerCase():null,H=H.toLowerCase()),G&&T&&(G=hn(G,T)||G);const ne=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let ee=V===H||!c&&V.startsWith(H)&&V.charAt(ne)==="/",pe=G!=null&&(G===H||!c&&G.startsWith(H)&&G.charAt(H.length)==="/"),K={isActive:ee,isPending:pe,isTransitioning:U},fe=ee?u:void 0,ye;typeof s=="function"?ye=s(K):ye=[s,ee?"active":null,pe?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let xe=typeof f=="function"?f(K):f;return w.createElement(Lo,{...m,"aria-current":fe,className:ye,ref:y,style:xe,to:h,viewTransition:g},typeof p=="function"?p(K):p)});u0.displayName="NavLink";var s0=w.forwardRef(({discover:l="render",fetcherKey:u,navigate:i,reloadDocument:s,replace:c,state:f,method:h=zu,action:g,onSubmit:p,relative:m,preventScrollReset:y,viewTransition:b,...R},S)=>{let z=h0(),T=g0(g,{relative:m}),U=h.toLowerCase()==="get"?"get":"post",H=typeof g=="string"&&Gg.test(g),V=G=>{if(p&&p(G),G.defaultPrevented)return;G.preventDefault();let ne=G.nativeEvent.submitter,ee=ne?.getAttribute("formmethod")||h;z(ne||G.currentTarget,{fetcherKey:u,method:ee,navigate:i,replace:c,state:f,relative:m,preventScrollReset:y,viewTransition:b})};return w.createElement("form",{ref:S,method:U,action:T,onSubmit:s?p:V,...R,"data-discover":!H&&l==="render"?"true":void 0})});s0.displayName="Form";function r0(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fg(l){let u=w.useContext(kl);return we(u,r0(l)),u}function o0(l,{target:u,replace:i,state:s,preventScrollReset:c,relative:f,viewTransition:h}={}){let g=Il(),p=Yt(),m=ti(l,{relative:f});return w.useCallback(y=>{if(qy(y,u)){y.preventDefault();let b=i!==void 0?i:Pa(p)===Pa(m);g(l,{replace:b,state:s,preventScrollReset:c,relative:f,viewTransition:h})}},[p,g,m,i,s,u,l,c,f,h])}function c0(l){Ct(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=w.useRef(po(l)),i=w.useRef(!1),s=Yt(),c=w.useMemo(()=>Gy(s.search,i.current?null:u.current),[s.search]),f=Il(),h=w.useCallback((g,p)=>{const m=po(typeof g=="function"?g(new URLSearchParams(c)):g);i.current=!0,f("?"+m,p)},[f,c]);return[c,h]}var f0=0,d0=()=>`__${String(++f0)}__`;function h0(){let{router:l}=Fg("useSubmit"),{basename:u}=w.useContext(Bt),i=Ay();return w.useCallback(async(s,c={})=>{let{action:f,method:h,encType:g,formData:p,body:m}=Yy(s,u);if(c.navigate===!1){let y=c.fetcherKey||d0();await l.fetch(y,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:m,formMethod:c.method||h,formEncType:c.encType||g,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:m,formMethod:c.method||h,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,u,i])}function g0(l,{relative:u}={}){let{basename:i}=w.useContext(Bt),s=w.useContext(Qt);we(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...ti(l||".",{relative:u})},h=Yt();if(l==null){f.search=h.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(y=>y==="")){g.delete("index"),p.filter(b=>b).forEach(b=>g.append("index",b));let y=g.toString();f.search=y?`?${y}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:dn([i,f.pathname])),Pa(f)}function m0(l,{relative:u}={}){let i=w.useContext(Hg);we(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fg("useViewTransitionState"),c=ti(l,{relative:u});if(!i.isTransitioning)return!1;let f=hn(i.currentLocation.pathname,s)||i.currentLocation.pathname,h=hn(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Ou(c.pathname,h)!=null||Ou(c.pathname,f)!=null}var Qg=Og(),ni=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},p0={setTimeout:(l,u)=>setTimeout(l,u),clearTimeout:l=>clearTimeout(l),setInterval:(l,u)=>setInterval(l,u),clearInterval:l=>clearInterval(l)},v0=class{#e=p0;#t=!1;setTimeoutProvider(l){this.#e=l}setTimeout(l,u){return this.#e.setTimeout(l,u)}clearTimeout(l){this.#e.clearTimeout(l)}setInterval(l,u){return this.#e.setInterval(l,u)}clearInterval(l){this.#e.clearInterval(l)}},rl=new v0;function y0(l){setTimeout(l,0)}var ol=typeof window>"u"||"Deno"in globalThis;function ot(){}function S0(l,u){return typeof l=="function"?l(u):l}function vo(l){return typeof l=="number"&&l>=0&&l!==1/0}function Yg(l,u){return Math.max(l+(u||0)-Date.now(),0)}function qn(l,u){return typeof l=="function"?l(u):l}function Dt(l,u){return typeof l=="function"?l(u):l}function og(l,u){const{type:i="all",exact:s,fetchStatus:c,predicate:f,queryKey:h,stale:g}=l;if(h){if(s){if(u.queryHash!==Bo(h,u.options))return!1}else if(!Wa(u.queryKey,h))return!1}if(i!=="all"){const p=u.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof g=="boolean"&&u.isStale()!==g||c&&c!==u.state.fetchStatus||f&&!f(u))}function cg(l,u){const{exact:i,status:s,predicate:c,mutationKey:f}=l;if(f){if(!u.options.mutationKey)return!1;if(i){if(Ia(u.options.mutationKey)!==Ia(f))return!1}else if(!Wa(u.options.mutationKey,f))return!1}return!(s&&u.state.status!==s||c&&!c(u))}function Bo(l,u){return(u?.queryKeyHashFn||Ia)(l)}function Ia(l){return JSON.stringify(l,(u,i)=>So(i)?Object.keys(i).sort().reduce((s,c)=>(s[c]=i[c],s),{}):i)}function Wa(l,u){return l===u?!0:typeof l!=typeof u?!1:l&&u&&typeof l=="object"&&typeof u=="object"?Object.keys(u).every(i=>Wa(l[i],u[i])):!1}var C0=Object.prototype.hasOwnProperty;function Xg(l,u){if(l===u)return l;const i=fg(l)&&fg(u);if(!i&&!(So(l)&&So(u)))return u;const c=(i?l:Object.keys(l)).length,f=i?u:Object.keys(u),h=f.length,g=i?new Array(h):{};let p=0;for(let m=0;m<h;m++){const y=i?m:f[m],b=l[y],R=u[y];if(b===R){g[y]=b,(i?m<c:C0.call(l,y))&&p++;continue}if(b===null||R===null||typeof b!="object"||typeof R!="object"){g[y]=R;continue}const S=Xg(b,R);g[y]=S,S===b&&p++}return c===h&&p===c?l:g}function yo(l,u){if(!u||Object.keys(l).length!==Object.keys(u).length)return!1;for(const i in l)if(l[i]!==u[i])return!1;return!0}function fg(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function So(l){if(!dg(l))return!1;const u=l.constructor;if(u===void 0)return!0;const i=u.prototype;return!(!dg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function dg(l){return Object.prototype.toString.call(l)==="[object Object]"}function R0(l){return new Promise(u=>{rl.setTimeout(u,l)})}function Co(l,u,i){return typeof i.structuralSharing=="function"?i.structuralSharing(l,u):i.structuralSharing!==!1?Xg(l,u):u}function b0(l,u,i=0){const s=[...l,u];return i&&s.length>i?s.slice(1):s}function E0(l,u,i=0){const s=[u,...l];return i&&s.length>i?s.slice(0,-1):s}var jo=Symbol();function $g(l,u){return!l.queryFn&&u?.initialPromise?()=>u.initialPromise:!l.queryFn||l.queryFn===jo?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function _0(l,u){return typeof l=="function"?l(...u):!!l}var M0=class extends ni{#e;#t;#n;constructor(){super(),this.#n=l=>{if(!ol&&window.addEventListener){const u=()=>l();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(l){this.#n=l,this.#t?.(),this.#t=l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(l){this.#e!==l&&(this.#e=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(u=>{u(l)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qo=new M0;function Ro(){let l,u;const i=new Promise((c,f)=>{l=c,u=f});i.status="pending",i.catch(()=>{});function s(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{s({status:"fulfilled",value:c}),l(c)},i.reject=c=>{s({status:"rejected",reason:c}),u(c)},i}var z0=y0;function T0(){let l=[],u=0,i=g=>{g()},s=g=>{g()},c=z0;const f=g=>{u?l.push(g):c(()=>{i(g)})},h=()=>{const g=l;l=[],g.length&&c(()=>{s(()=>{g.forEach(p=>{i(p)})})})};return{batch:g=>{let p;u++;try{p=g()}finally{u--,u||h()}return p},batchCalls:g=>(...p)=>{f(()=>{g(...p)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{s=g},setScheduler:g=>{c=g}}}var ke=T0(),O0=class extends ni{#e=!0;#t;#n;constructor(){super(),this.#n=l=>{if(!ol&&window.addEventListener){const u=()=>l(!0),i=()=>l(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(l){this.#n=l,this.#t?.(),this.#t=l(this.setOnline.bind(this))}setOnline(l){this.#e!==l&&(this.#e=l,this.listeners.forEach(i=>{i(l)}))}isOnline(){return this.#e}},Au=new O0;function A0(l){return Math.min(1e3*2**l,3e4)}function Zg(l){return(l??"online")==="online"?Au.isOnline():!0}var bo=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function Kg(l){let u=!1,i=0,s;const c=Ro(),f=()=>c.status!=="pending",h=T=>{if(!f()){const U=new bo(T);R(U),l.onCancel?.(U)}},g=()=>{u=!0},p=()=>{u=!1},m=()=>qo.isFocused()&&(l.networkMode==="always"||Au.isOnline())&&l.canRun(),y=()=>Zg(l.networkMode)&&l.canRun(),b=T=>{f()||(s?.(),c.resolve(T))},R=T=>{f()||(s?.(),c.reject(T))},S=()=>new Promise(T=>{s=U=>{(f()||m())&&T(U)},l.onPause?.()}).then(()=>{s=void 0,f()||l.onContinue?.()}),z=()=>{if(f())return;let T;const U=i===0?l.initialPromise:void 0;try{T=U??l.fn()}catch(H){T=Promise.reject(H)}Promise.resolve(T).then(b).catch(H=>{if(f())return;const V=l.retry??(ol?0:3),G=l.retryDelay??A0,ne=typeof G=="function"?G(i,H):G,ee=V===!0||typeof V=="number"&&i<V||typeof V=="function"&&V(i,H);if(u||!ee){R(H);return}i++,l.onFail?.(i,H),R0(ne).then(()=>m()?void 0:S()).then(()=>{u?R(H):z()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(s?.(),c),cancelRetry:g,continueRetry:p,canStart:y,start:()=>(y()?z():S().then(z),c)}}var Jg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vo(this.gcTime)&&(this.#e=rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ol?1/0:300*1e3))}clearGcTimeout(){this.#e&&(rl.clearTimeout(this.#e),this.#e=void 0)}},w0=class extends Jg{#e;#t;#n;#a;#l;#s;#u;constructor(l){super(),this.#u=!1,this.#s=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#a=l.client,this.#n=this.#a.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#e=hg(this.options),this.state=l.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(l){if(this.options={...this.#s,...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=hg(this.options);u.data!==void 0&&(this.setData(u.data,{updatedAt:u.dataUpdatedAt,manual:!0}),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(l,u){const i=Co(this.state.data,l,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),i}setState(l,u){this.#i({type:"setState",state:l,setStateOptions:u})}cancel(l){const u=this.#l?.promise;return this.#l?.cancel(l),u?u.then(ot).catch(ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(l=>Dt(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>qn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!Yg(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(u=>u!==l),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(l,u){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(l&&this.setOptions(l),!this.options.queryFn){const g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}const i=new AbortController,s=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#u=!0,i.signal)})},c=()=>{const g=$g(this.options,u),m=(()=>{const y={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#u=!1,this.options.persister?this.options.persister(g,m,this):g(m)},h=(()=>{const g={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:c};return s(g),g})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#l=Kg({initialPromise:u?.initialPromise,fn:h.fetchFn,onCancel:g=>{g instanceof bo&&g.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(g,p)=>{this.#i({type:"failed",failureCount:g,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const g=await this.#l.start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#n.config.onSuccess?.(g,this),this.#n.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof bo){if(g.silent)return this.#l.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#i({type:"error",error:g}),this.#n.config.onError?.(g,this),this.#n.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#i(l){const u=i=>{switch(l.type){case"failed":return{...i,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...kg(i.data,this.options),fetchMeta:l.meta??null};case"success":const s={...i,data:l.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:l.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=l.manual?s:void 0,s;case"error":const c=l.error;return{...i,error:c,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...l.state}}};this.state=u(this.state),ke.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function kg(l,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zg(u.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function hg(l){const u=typeof l.initialData=="function"?l.initialData():l.initialData,i=u!==void 0,s=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var x0=class extends ni{constructor(l,u){super(),this.options=u,this.#e=l,this.#i=null,this.#u=Ro(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#n=void 0;#a=void 0;#l;#s;#u;#i;#m;#d;#h;#o;#c;#r;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),gg(this.#t,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eo(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eo(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#C(),this.#R(),this.#t.removeObserver(this)}setOptions(l){const u=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#t.setOptions(this.options),u._defaulted&&!yo(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&mg(this.#t,i,this.options,u)&&this.#f(),this.updateResult(),s&&(this.#t!==i||Dt(this.options.enabled,this.#t)!==Dt(u.enabled,this.#t)||qn(this.options.staleTime,this.#t)!==qn(u.staleTime,this.#t))&&this.#p();const c=this.#v();s&&(this.#t!==i||Dt(this.options.enabled,this.#t)!==Dt(u.enabled,this.#t)||c!==this.#r)&&this.#y(c)}getOptimisticResult(l){const u=this.#e.getQueryCache().build(this.#e,l),i=this.createResult(u,l);return H0(this,i)&&(this.#a=i,this.#s=this.options,this.#l=this.#t.state),i}getCurrentResult(){return this.#a}trackResult(l,u){return new Proxy(l,{get:(i,s)=>(this.trackProp(s),u?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(l){this.#g.add(l)}getCurrentQuery(){return this.#t}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const u=this.#e.defaultQueryOptions(l),i=this.#e.getQueryCache().build(this.#e,u);return i.fetch().then(()=>this.createResult(i,u))}fetch(l){return this.#f({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(l){this.#b();let u=this.#t.fetch(this.options,l);return l?.throwOnError||(u=u.catch(ot)),u}#p(){this.#C();const l=qn(this.options.staleTime,this.#t);if(ol||this.#a.isStale||!vo(l))return;const i=Yg(this.#a.dataUpdatedAt,l)+1;this.#o=rl.setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(l){this.#R(),this.#r=l,!(ol||Dt(this.options.enabled,this.#t)===!1||!vo(this.#r)||this.#r===0)&&(this.#c=rl.setInterval(()=>{(this.options.refetchIntervalInBackground||qo.isFocused())&&this.#f()},this.#r))}#S(){this.#p(),this.#y(this.#v())}#C(){this.#o&&(rl.clearTimeout(this.#o),this.#o=void 0)}#R(){this.#c&&(rl.clearInterval(this.#c),this.#c=void 0)}createResult(l,u){const i=this.#t,s=this.options,c=this.#a,f=this.#l,h=this.#s,p=l!==i?l.state:this.#n,{state:m}=l;let y={...m},b=!1,R;if(u._optimisticResults){const fe=this.hasListeners(),ye=!fe&&gg(l,u),xe=fe&&mg(l,i,u,s);(ye||xe)&&(y={...y,...kg(m.data,l.options)}),u._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:z,status:T}=y;R=y.data;let U=!1;if(u.placeholderData!==void 0&&R===void 0&&T==="pending"){let fe;c?.isPlaceholderData&&u.placeholderData===h?.placeholderData?(fe=c.data,U=!0):fe=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,fe!==void 0&&(T="success",R=Co(c?.data,fe,u),b=!0)}if(u.select&&R!==void 0&&!U)if(c&&R===f?.data&&u.select===this.#m)R=this.#d;else try{this.#m=u.select,R=u.select(R),R=Co(c?.data,R,u),this.#d=R,this.#i=null}catch(fe){this.#i=fe}this.#i&&(S=this.#i,R=this.#d,z=Date.now(),T="error");const H=y.fetchStatus==="fetching",V=T==="pending",G=T==="error",ne=V&&H,ee=R!==void 0,K={status:T,fetchStatus:y.fetchStatus,isPending:V,isSuccess:T==="success",isError:G,isInitialLoading:ne,isLoading:ne,data:R,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:z,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:H,isRefetching:H&&!V,isLoadingError:G&&!ee,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:G&&ee,isStale:Go(l,u),refetch:this.refetch,promise:this.#u,isEnabled:Dt(u.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const fe=Ue=>{K.status==="error"?Ue.reject(K.error):K.data!==void 0&&Ue.resolve(K.data)},ye=()=>{const Ue=this.#u=K.promise=Ro();fe(Ue)},xe=this.#u;switch(xe.status){case"pending":l.queryHash===i.queryHash&&fe(xe);break;case"fulfilled":(K.status==="error"||K.data!==xe.value)&&ye();break;case"rejected":(K.status!=="error"||K.error!==xe.reason)&&ye();break}}return K}updateResult(){const l=this.#a,u=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#s=this.options,this.#l.data!==void 0&&(this.#h=this.#t),yo(u,l))return;this.#a=u;const i=()=>{if(!l)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#g.size)return!0;const f=new Set(c??this.#g);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(h=>{const g=h;return this.#a[g]!==l[g]&&f.has(g)})};this.#E({listeners:i()})}#b(){const l=this.#e.getQueryCache().build(this.#e,this.options);if(l===this.#t)return;const u=this.#t;this.#t=l,this.#n=l.state,this.hasListeners()&&(u?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){ke.batch(()=>{l.listeners&&this.listeners.forEach(u=>{u(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function D0(l,u){return Dt(u.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&u.retryOnMount===!1)}function gg(l,u){return D0(l,u)||l.state.data!==void 0&&Eo(l,u,u.refetchOnMount)}function Eo(l,u,i){if(Dt(u.enabled,l)!==!1&&qn(u.staleTime,l)!=="static"){const s=typeof i=="function"?i(l):i;return s==="always"||s!==!1&&Go(l,u)}return!1}function mg(l,u,i,s){return(l!==u||Dt(s.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Go(l,i)}function Go(l,u){return Dt(u.enabled,l)!==!1&&l.isStaleByTime(qn(u.staleTime,l))}function H0(l,u){return!yo(l.getCurrentResult(),u)}function pg(l){return{onFetch:(u,i)=>{const s=u.options,c=u.fetchOptions?.meta?.fetchMore?.direction,f=u.state.data?.pages||[],h=u.state.data?.pageParams||[];let g={pages:[],pageParams:[]},p=0;const m=async()=>{let y=!1;const b=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(u.signal.aborted?y=!0:u.signal.addEventListener("abort",()=>{y=!0}),u.signal)})},R=$g(u.options,u.fetchOptions),S=async(z,T,U)=>{if(y)return Promise.reject();if(T==null&&z.pages.length)return Promise.resolve(z);const V=(()=>{const pe={client:u.client,queryKey:u.queryKey,pageParam:T,direction:U?"backward":"forward",meta:u.options.meta};return b(pe),pe})(),G=await R(V),{maxPages:ne}=u.options,ee=U?E0:b0;return{pages:ee(z.pages,G,ne),pageParams:ee(z.pageParams,T,ne)}};if(c&&f.length){const z=c==="backward",T=z?U0:vg,U={pages:f,pageParams:h},H=T(s,U);g=await S(U,H,z)}else{const z=l??f.length;do{const T=p===0?h[0]??s.initialPageParam:vg(s,g);if(p>0&&T==null)break;g=await S(g,T),p++}while(p<z)}return g};u.options.persister?u.fetchFn=()=>u.options.persister?.(m,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},i):u.fetchFn=m}}}function vg(l,{pages:u,pageParams:i}){const s=u.length-1;return u.length>0?l.getNextPageParam(u[s],u,i[s],i):void 0}function U0(l,{pages:u,pageParams:i}){return u.length>0?l.getPreviousPageParam?.(u[0],u,i[0],i):void 0}var N0=class extends Jg{#e;#t;#n;#a;constructor(l){super(),this.#e=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#t=[],this.state=l.state||V0(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#t.includes(l)||(this.#t.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#t=this.#t.filter(u=>u!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(l){const u=()=>{this.#l({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=Kg({fn:()=>this.options.mutationFn?this.options.mutationFn(l,i):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#l({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#a.canStart();try{if(s)u();else{this.#l({type:"pending",variables:l,isPaused:c}),await this.#n.config.onMutate?.(l,this,i);const h=await this.options.onMutate?.(l,i);h!==this.state.context&&this.#l({type:"pending",context:h,variables:l,isPaused:c})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,l,this.state.context,this,i),await this.options.onSuccess?.(f,l,this.state.context,i),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(f,null,l,this.state.context,i),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,l,this.state.context,this,i),await this.options.onError?.(f,l,this.state.context,i),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(void 0,f,l,this.state.context,i),f}finally{this.#l({type:"error",error:f})}}finally{this.#n.runNext(this)}}#l(l){const u=i=>{switch(l.type){case"failed":return{...i,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...i,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:l.error,failureCount:i.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=u(this.state),ke.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function V0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L0=class extends ni{constructor(l={}){super(),this.config=l,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(l,u,i){const s=new N0({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(u),state:i});return this.add(s),s}add(l){this.#e.add(l);const u=bu(l);if(typeof u=="string"){const i=this.#t.get(u);i?i.push(l):this.#t.set(u,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#e.delete(l)){const u=bu(l);if(typeof u=="string"){const i=this.#t.get(u);if(i)if(i.length>1){const s=i.indexOf(l);s!==-1&&i.splice(s,1)}else i[0]===l&&this.#t.delete(u)}}this.notify({type:"removed",mutation:l})}canRun(l){const u=bu(l);if(typeof u=="string"){const s=this.#t.get(u)?.find(c=>c.state.status==="pending");return!s||s===l}else return!0}runNext(l){const u=bu(l);return typeof u=="string"?this.#t.get(u)?.find(s=>s!==l&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ke.batch(()=>{this.#e.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(l){const u={exact:!0,...l};return this.getAll().find(i=>cg(u,i))}findAll(l={}){return this.getAll().filter(u=>cg(l,u))}notify(l){ke.batch(()=>{this.listeners.forEach(u=>{u(l)})})}resumePausedMutations(){const l=this.getAll().filter(u=>u.state.isPaused);return ke.batch(()=>Promise.all(l.map(u=>u.continue().catch(ot))))}};function bu(l){return l.options.scope?.id}var B0=class extends ni{constructor(l={}){super(),this.config=l,this.#e=new Map}#e;build(l,u,i){const s=u.queryKey,c=u.queryHash??Bo(s,u);let f=this.get(c);return f||(f=new w0({client:l,queryKey:s,queryHash:c,options:l.defaultQueryOptions(u),state:i,defaultOptions:l.getQueryDefaults(s)}),this.add(f)),f}add(l){this.#e.has(l.queryHash)||(this.#e.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const u=this.#e.get(l.queryHash);u&&(l.destroy(),u===l&&this.#e.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){ke.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#e.get(l)}getAll(){return[...this.#e.values()]}find(l){const u={exact:!0,...l};return this.getAll().find(i=>og(u,i))}findAll(l={}){const u=this.getAll();return Object.keys(l).length>0?u.filter(i=>og(l,i)):u}notify(l){ke.batch(()=>{this.listeners.forEach(u=>{u(l)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},j0=class{#e;#t;#n;#a;#l;#s;#u;#i;constructor(l={}){this.#e=l.queryCache||new B0,this.#t=l.mutationCache||new L0,this.#n=l.defaultOptions||{},this.#a=new Map,this.#l=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=qo.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Au.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(l){return this.#e.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#t.findAll({...l,status:"pending"}).length}getQueryData(l){const u=this.defaultQueryOptions({queryKey:l});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(l){const u=this.defaultQueryOptions(l),i=this.#e.build(this,u),s=i.state.data;return s===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(qn(u.staleTime,i))&&this.prefetchQuery(u),Promise.resolve(s))}getQueriesData(l){return this.#e.findAll(l).map(({queryKey:u,state:i})=>{const s=i.data;return[u,s]})}setQueryData(l,u,i){const s=this.defaultQueryOptions({queryKey:l}),f=this.#e.get(s.queryHash)?.state.data,h=S0(u,f);if(h!==void 0)return this.#e.build(this,s).setData(h,{...i,manual:!0})}setQueriesData(l,u,i){return ke.batch(()=>this.#e.findAll(l).map(({queryKey:s})=>[s,this.setQueryData(s,u,i)]))}getQueryState(l){const u=this.defaultQueryOptions({queryKey:l});return this.#e.get(u.queryHash)?.state}removeQueries(l){const u=this.#e;ke.batch(()=>{u.findAll(l).forEach(i=>{u.remove(i)})})}resetQueries(l,u){const i=this.#e;return ke.batch(()=>(i.findAll(l).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...l},u)))}cancelQueries(l,u={}){const i={revert:!0,...u},s=ke.batch(()=>this.#e.findAll(l).map(c=>c.cancel(i)));return Promise.all(s).then(ot).catch(ot)}invalidateQueries(l,u={}){return ke.batch(()=>(this.#e.findAll(l).forEach(i=>{i.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},u)))}refetchQueries(l,u={}){const i={...u,cancelRefetch:u.cancelRefetch??!0},s=ke.batch(()=>this.#e.findAll(l).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(ot)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(ot)}fetchQuery(l){const u=this.defaultQueryOptions(l);u.retry===void 0&&(u.retry=!1);const i=this.#e.build(this,u);return i.isStaleByTime(qn(u.staleTime,i))?i.fetch(u):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ot).catch(ot)}fetchInfiniteQuery(l){return l.behavior=pg(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ot).catch(ot)}ensureInfiniteQueryData(l){return l.behavior=pg(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Au.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,u){this.#a.set(Ia(l),{queryKey:l,defaultOptions:u})}getQueryDefaults(l){const u=[...this.#a.values()],i={};return u.forEach(s=>{Wa(l,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(l,u){this.#l.set(Ia(l),{mutationKey:l,defaultOptions:u})}getMutationDefaults(l){const u=[...this.#l.values()],i={};return u.forEach(s=>{Wa(l,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const u={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return u.queryHash||(u.queryHash=Bo(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===jo&&(u.enabled=!1),u}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Pg=w.createContext(void 0),q0=l=>{const u=w.useContext(Pg);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},G0=({client:l,children:u})=>(w.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),F.jsx(Pg.Provider,{value:l,children:u})),Ig=w.createContext(!1),F0=()=>w.useContext(Ig);Ig.Provider;function Q0(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Y0=w.createContext(Q0()),X0=()=>w.useContext(Y0),$0=(l,u)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(u.isReset()||(l.retryOnMount=!1))},Z0=l=>{w.useEffect(()=>{l.clearReset()},[l])},K0=({result:l,errorResetBoundary:u,throwOnError:i,query:s,suspense:c})=>l.isError&&!u.isReset()&&!l.isFetching&&s&&(c&&l.data===void 0||_0(i,[l.error,s])),J0=l=>{if(l.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=l.staleTime;l.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},k0=(l,u)=>l.isLoading&&l.isFetching&&!u,P0=(l,u)=>l?.suspense&&u.isPending,yg=(l,u,i)=>u.fetchOptimistic(l).catch(()=>{i.clearReset()});function I0(l,u,i){const s=F0(),c=X0(),f=q0(),h=f.defaultQueryOptions(l);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=s?"isRestoring":"optimistic",J0(h),$0(h,c),Z0(c);const g=!f.getQueryCache().get(h.queryHash),[p]=w.useState(()=>new u(f,h)),m=p.getOptimisticResult(h),y=!s&&l.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(b=>{const R=y?p.subscribe(ke.batchCalls(b)):ot;return p.updateResult(),R},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(h)},[h,p]),P0(h,m))throw yg(h,p,c);if(K0({result:m,errorResetBoundary:c,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw m.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(h,m),h.experimental_prefetchInRender&&!ol&&k0(m,s)&&(g?yg(h,p,c):f.getQueryCache().get(h.queryHash)?.promise)?.catch(ot).finally(()=>{p.updateResult()}),h.notifyOnChangeProps?m:p.trackResult(m)}function W0(l,u){return I0(l,x0)}const eS="https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&include=metadata&prefix=runs/",tS="https://api.github.com/repos/microsoft/openvmm/pulls/";function nS(l){l.prefetchQuery({queryKey:["runs"],queryFn:()=>Wg(l),staleTime:180*1e3,gcTime:1/0}),setInterval(()=>{l.refetchQueries({queryKey:["runs"],type:"all"})},120*1e3)}async function Wg(l){try{const i=await(await fetch(eS)).text(),s=aS(i,l),c=s.map(f=>f.metadata.ghPr).filter(f=>f!==void 0);if(c.length>0){const f=Array.from(new Set(c)),h=await Promise.all(f.map(async p=>{const m=await l.ensureQueryData({queryKey:["prTitle",p],queryFn:()=>lS(p),staleTime:1/0,gcTime:1/0});return[p,m]})),g=new Map(h);s.forEach(p=>{const m=p.metadata.ghPr;if(m&&g.has(m)){const y=g.get(m);y&&(p.metadata.prTitle=y)}})}return s}catch(u){throw console.error("Error fetching run data:",u),u}}async function lS(l){try{const u=await fetch(`${tS}${l}`);if(u.status===403)return null;if(u.ok){const i=await u.json();return typeof i.title=="string"?i.title:null}}catch{}return null}function aS(l,u){const c=new DOMParser().parseFromString(l,"text/xml").getElementsByTagName("Blob"),f=[];for(const h of c){const g=h.getElementsByTagName("Name")[0]?.textContent||"",p=new Date(h.getElementsByTagName("Creation-Time")[0]?.textContent||""),m=new Date(h.getElementsByTagName("Last-Modified")[0]?.textContent||""),y=h.getElementsByTagName("Etag")[0]?.textContent||"",b=parseInt(h.getElementsByTagName("Content-Length")[0]?.textContent||"0"),R=h.getElementsByTagName("Metadata")[0],S={petriFailed:parseInt(R?.getElementsByTagName("petrifailed")[0]?.textContent||"0"),petriPassed:parseInt(R?.getElementsByTagName("petripassed")[0]?.textContent||"0"),ghBranch:R?.getElementsByTagName("ghbranch")[0]?.textContent||"",ghPr:R?.getElementsByTagName("ghpr")[0]?.textContent||void 0};f.push({name:g,creationTime:p,lastModified:m,etag:y,contentLength:b,metadata:S})}return f}function iS(){const[l,u]=w.useState(!1),i=Il(),s=w.useCallback(()=>u(f=>!f),[]);w.useEffect(()=>{if(l){const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=f}}},[l]);function c(f){i(f),s()}return F.jsxs(F.Fragment,{children:[F.jsx("button",{type:"button","aria-label":l?"Close navigation menu":"Open navigation menu",className:"menu-trigger",onClick:s,children:F.jsxs("span",{className:"menu-lines","aria-hidden":"true",children:[F.jsx("span",{}),F.jsx("span",{}),F.jsx("span",{})]})}),l&&Qg.createPortal(F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"menu-overlay",onClick:s,role:"presentation"}),F.jsxs("nav",{className:l?"menu-drawer open":"menu-drawer","aria-hidden":!l,"aria-label":"Primary",children:[F.jsx("div",{className:"menu-drawer-header",children:"Petri Test Viewer"}),F.jsxs("ul",{className:"menu-nav-list",role:"list",children:[F.jsx("li",{children:F.jsx("button",{className:"drawer-link",onClick:()=>c("/runs"),children:"Runs"})}),F.jsx("li",{children:F.jsx("button",{className:"drawer-link",children:"Tests"})}),F.jsx("li",{className:"drawer-separator","aria-hidden":"true"}),F.jsx("li",{children:F.jsx("a",{className:"drawer-link external",href:"https://github.com/microsoft/openvmm",target:"_blank",rel:"noopener noreferrer",children:"Repo"})}),F.jsx("li",{children:F.jsx("a",{className:"drawer-link external",href:"http://openvmm.dev/",target:"_blank",rel:"noopener noreferrer",children:"Guide"})})]})]})]}),document.body)]})}function Jl(l,u,i){let s=i.initialDeps??[],c;function f(){var h,g,p,m;let y;i.key&&((h=i.debug)!=null&&h.call(i))&&(y=Date.now());const b=l();if(!(b.length!==s.length||b.some((z,T)=>s[T]!==z)))return c;s=b;let S;if(i.key&&((g=i.debug)!=null&&g.call(i))&&(S=Date.now()),c=u(...b),i.key&&((p=i.debug)!=null&&p.call(i))){const z=Math.round((Date.now()-y)*100)/100,T=Math.round((Date.now()-S)*100)/100,U=T/16,H=(V,G)=>{for(V=String(V);V.length<G;)V=" "+V;return V};console.info(`%c⏱ ${H(T,5)} /${H(z,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*U,120))}deg 100% 31%);`,i?.key)}return(m=i?.onChange)==null||m.call(i,c),c}return f.updateDeps=h=>{s=h},f}function Sg(l,u){if(l===void 0)throw new Error("Unexpected undefined");return l}const uS=(l,u)=>Math.abs(l-u)<1.01,sS=(l,u,i)=>{let s;return function(...c){l.clearTimeout(s),s=l.setTimeout(()=>u.apply(this,c),i)}},Cg=l=>{const{offsetWidth:u,offsetHeight:i}=l;return{width:u,height:i}},rS=l=>l,oS=l=>{const u=Math.max(l.startIndex-l.overscan,0),i=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let c=u;c<=i;c++)s.push(c);return s},cS=(l,u)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;const c=h=>{const{width:g,height:p}=h;u({width:Math.round(g),height:Math.round(p)})};if(c(Cg(i)),!s.ResizeObserver)return()=>{};const f=new s.ResizeObserver(h=>{const g=()=>{const p=h[0];if(p?.borderBoxSize){const m=p.borderBoxSize[0];if(m){c({width:m.inlineSize,height:m.blockSize});return}}c(Cg(i))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(g):g()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},Rg={passive:!0},bg=typeof window>"u"?!0:"onscrollend"in window,fS=(l,u)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;let c=0;const f=l.options.useScrollendEvent&&bg?()=>{}:sS(s,()=>{u(c,!1)},l.options.isScrollingResetDelay),h=y=>()=>{const{horizontal:b,isRtl:R}=l.options;c=b?i.scrollLeft*(R&&-1||1):i.scrollTop,f(),u(c,y)},g=h(!0),p=h(!1);p(),i.addEventListener("scroll",g,Rg);const m=l.options.useScrollendEvent&&bg;return m&&i.addEventListener("scrollend",p,Rg),()=>{i.removeEventListener("scroll",g),m&&i.removeEventListener("scrollend",p)}},dS=(l,u,i)=>{if(u?.borderBoxSize){const s=u.borderBoxSize[0];if(s)return Math.round(s[i.options.horizontal?"inlineSize":"blockSize"])}return l[i.options.horizontal?"offsetWidth":"offsetHeight"]},hS=(l,{adjustments:u=0,behavior:i},s)=>{var c,f;const h=l+u;(f=(c=s.scrollElement)==null?void 0:c.scrollTo)==null||f.call(c,{[s.options.horizontal?"left":"top"]:h,behavior:i})};class gS{constructor(u){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const s=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(c=>{c.forEach(f=>{const h=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()})}));return{disconnect:()=>{var c;(c=s())==null||c.disconnect(),i=null},observe:c=>{var f;return(f=s())==null?void 0:f.observe(c,{box:"border-box"})},unobserve:c=>{var f;return(f=s())==null?void 0:f.unobserve(c)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([s,c])=>{typeof c>"u"&&delete i[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:rS,rangeExtractor:oS,onChange:()=>{},measureElement:dS,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var s,c;(c=(s=this.options).onChange)==null||c.call(s,this,i)},this.maybeNotify=Jl(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(c=>{this.observer.observe(c)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,c=>{this.scrollRect=c,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(c,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<c?"forward":"backward":null,this.scrollOffset=c,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,s)=>{const c=new Map,f=new Map;for(let h=s-1;h>=0;h--){const g=i[h];if(c.has(g.lane))continue;const p=f.get(g.lane);if(p==null||g.end>p.end?f.set(g.lane,g):g.end<p.end&&c.set(g.lane,!0),c.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((h,g)=>h.end===g.end?h.index-g.index:h.end-g.end)[0]:void 0},this.getMeasurementOptions=Jl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,s,c,f,h)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:h}),{key:!1}),this.getMeasurements=Jl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:h},g)=>{if(!h)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(y=>{this.itemSizeCache.set(y.key,y.size)}));const p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const m=this.measurementsCache.slice(0,p);for(let y=p;y<i;y++){const b=f(y),R=this.options.lanes===1?m[y-1]:this.getFurthestMeasurement(m,y),S=R?R.end+this.options.gap:s+c,z=g.get(b),T=typeof z=="number"?z:this.options.estimateSize(y),U=S+T,H=R?R.lane:y%this.options.lanes;m[y]={index:y,start:S,size:T,end:U,key:b,lane:H}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Jl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,s,c,f)=>this.range=i.length>0&&s>0?mS({measurements:i,outerSize:s,scrollOffset:c,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Jl(()=>{let i=null,s=null;const c=this.calculateRange();return c&&(i=c.startIndex,s=c.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,s]},(i,s,c,f,h)=>f===null||h===null?[]:i({startIndex:f,endIndex:h,overscan:s,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const s=this.options.indexAttribute,c=i.getAttribute(s);return c?parseInt(c,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(i,s)=>{const c=this.indexFromElement(i),f=this.measurementsCache[c];if(!f)return;const h=f.key,g=this.elementsCache.get(h);g!==i&&(g&&this.observer.unobserve(g),this.observer.observe(i),this.elementsCache.set(h,i)),i.isConnected&&this.resizeItem(c,this.options.measureElement(i,s,this))},this.resizeItem=(i,s)=>{const c=this.measurementsCache[i];if(!c)return;const f=this.itemSizeCache.get(c.key)??c.size,h=s-f;h!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(c,h,this):c.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=h,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(c.index),this.itemSizeCache=new Map(this.itemSizeCache.set(c.key,s)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,c)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(c))});return}this._measureElement(i,void 0)},this.getVirtualItems=Jl(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,s)=>{const c=[];for(let f=0,h=i.length;f<h;f++){const g=i[f],p=s[g];c.push(p)}return c},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const s=this.getMeasurements();if(s.length!==0)return Sg(s[em(0,s.length-1,c=>Sg(s[c]).start,i)])},this.getOffsetForAlignment=(i,s,c=0)=>{const f=this.getSize(),h=this.getScrollOffset();s==="auto"&&(s=i>=h+f?"end":"start"),s==="center"?i+=(c-f)/2:s==="end"&&(i-=f);const g=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(g,i),0)},this.getOffsetForIndex=(i,s="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const c=this.measurementsCache[i];if(!c)return;const f=this.getSize(),h=this.getScrollOffset();if(s==="auto")if(c.end>=h+f-this.options.scrollPaddingEnd)s="end";else if(c.start<=h+this.options.scrollPaddingStart)s="start";else return[h,s];const g=s==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(g,s,c.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:s="start",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,s),{adjustments:void 0,behavior:c})},this.scrollToIndex=(i,{align:s="auto",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1));let f=0;const h=10,g=m=>{if(!this.targetWindow)return;const y=this.getOffsetForIndex(i,m);if(!y){console.warn("Failed to get offset for index:",i);return}const[b,R]=y;this._scrollToOffset(b,{adjustments:void 0,behavior:c}),this.targetWindow.requestAnimationFrame(()=>{const S=this.getScrollOffset(),z=this.getOffsetForIndex(i,R);if(!z){console.warn("Failed to get offset for index:",i);return}uS(z[0],S)||p(R)})},p=m=>{this.targetWindow&&(f++,f<h?this.targetWindow.requestAnimationFrame(()=>g(m)):console.warn(`Failed to scroll to index ${i} after ${h} attempts.`))};g(s)},this.scrollBy=(i,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var i;const s=this.getMeasurements();let c;if(s.length===0)c=this.options.paddingStart;else if(this.options.lanes===1)c=((i=s[s.length-1])==null?void 0:i.end)??0;else{const f=Array(this.options.lanes).fill(null);let h=s.length-1;for(;h>=0&&f.some(g=>g===null);){const g=s[h];f[g.lane]===null&&(f[g.lane]=g.end),h--}c=Math.max(...f.filter(g=>g!==null))}return Math.max(c-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:s,behavior:c})=>{this.options.scrollToFn(i,{behavior:c,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(u)}}const em=(l,u,i,s)=>{for(;l<=u;){const c=(l+u)/2|0,f=i(c);if(f<s)l=c+1;else if(f>s)u=c-1;else return c}return l>0?l-1:0};function mS({measurements:l,outerSize:u,scrollOffset:i,lanes:s}){const c=l.length-1,f=p=>l[p].start;if(l.length<=s)return{startIndex:0,endIndex:c};let h=em(0,c,f,i),g=h;if(s===1)for(;g<c&&l[g].end<i+u;)g++;else if(s>1){const p=Array(s).fill(0);for(;g<c&&p.some(y=>y<i+u);){const y=l[g];p[y.lane]=y.end,g++}const m=Array(s).fill(i+u);for(;h>=0&&m.some(y=>y>=i);){const y=l[h];m[y.lane]=y.start,h--}h=Math.max(0,h-h%s),g=Math.min(c,g+(s-1-g%s))}return{startIndex:h,endIndex:g}}const Eg=typeof document<"u"?w.useLayoutEffect:w.useEffect;function pS(l){const u=w.useReducer(()=>({}),{})[1],i={...l,onChange:(c,f)=>{var h;f?Qg.flushSync(u):u(),(h=l.onChange)==null||h.call(l,c,f)}},[s]=w.useState(()=>new gS(i));return s.setOptions(i),Eg(()=>s._didMount(),[]),Eg(()=>s._willUpdate()),s}function vS(l){return pS({observeElementRect:cS,observeElementOffset:fS,scrollToFn:hS,...l})}/**
   * table-core
   *
   * Copyright (c) TanStack
   *
   * 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
   */function jn(l,u){return typeof l=="function"?l(u):l}function Rt(l,u){return i=>{u.setState(s=>({...s,[l]:jn(i,s[l])}))}}function Du(l){return l instanceof Function}function yS(l){return Array.isArray(l)&&l.every(u=>typeof u=="number")}function SS(l,u){const i=[],s=c=>{c.forEach(f=>{i.push(f);const h=u(f);h!=null&&h.length&&s(h)})};return s(l),i}function P(l,u,i){let s=[],c;return f=>{let h;i.key&&i.debug&&(h=Date.now());const g=l(f);if(!(g.length!==s.length||g.some((y,b)=>s[b]!==y)))return c;s=g;let m;if(i.key&&i.debug&&(m=Date.now()),c=u(...g),i==null||i.onChange==null||i.onChange(c),i.key&&i.debug&&i!=null&&i.debug()){const y=Math.round((Date.now()-h)*100)/100,b=Math.round((Date.now()-m)*100)/100,R=b/16,S=(z,T)=>{for(z=String(z);z.length<T;)z=" "+z;return z};console.info(`%c⏱ ${S(b,5)} /${S(y,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,i?.key)}return c}}function I(l,u,i,s){return{debug:()=>{var c;return(c=l?.debugAll)!=null?c:l[u]},key:!1,onChange:s}}function CS(l,u,i,s){const c=()=>{var h;return(h=f.getValue())!=null?h:l.options.renderFallbackValue},f={id:`${u.id}_${i.id}`,row:u,column:i,getValue:()=>u.getValue(s),renderValue:c,getContext:P(()=>[l,i,u,f],(h,g,p,m)=>({table:h,column:g,row:p,cell:m,getValue:m.getValue,renderValue:m.renderValue}),I(l.options,"debugCells"))};return l._features.forEach(h=>{h.createCell==null||h.createCell(f,i,u,l)},{}),f}function RS(l,u,i,s){var c,f;const g={...l._getDefaultColumnDef(),...u},p=g.accessorKey;let m=(c=(f=g.id)!=null?f:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?c:typeof g.header=="string"?g.header:void 0,y;if(g.accessorFn?y=g.accessorFn:p&&(p.includes(".")?y=R=>{let S=R;for(const T of p.split(".")){var z;S=(z=S)==null?void 0:z[T]}return S}:y=R=>R[g.accessorKey]),!m)throw new Error;let b={id:`${String(m)}`,accessorFn:y,parent:s,depth:i,columnDef:g,columns:[],getFlatColumns:P(()=>[!0],()=>{var R;return[b,...(R=b.columns)==null?void 0:R.flatMap(S=>S.getFlatColumns())]},I(l.options,"debugColumns")),getLeafColumns:P(()=>[l._getOrderColumnsFn()],R=>{var S;if((S=b.columns)!=null&&S.length){let z=b.columns.flatMap(T=>T.getLeafColumns());return R(z)}return[b]},I(l.options,"debugColumns"))};for(const R of l._features)R.createColumn==null||R.createColumn(b,l);return b}const Ie="debugHeaders";function _g(l,u,i){var s;let f={id:(s=i.id)!=null?s:u.id,column:u,index:i.index,isPlaceholder:!!i.isPlaceholder,placeholderId:i.placeholderId,depth:i.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const h=[],g=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(g),h.push(p)};return g(f),h},getContext:()=>({table:l,header:f,column:u})};return l._features.forEach(h=>{h.createHeader==null||h.createHeader(f,l)}),f}const bS={createTable:l=>{l.getHeaderGroups=P(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.left,l.getState().columnPinning.right],(u,i,s,c)=>{var f,h;const g=(f=s?.map(b=>i.find(R=>R.id===b)).filter(Boolean))!=null?f:[],p=(h=c?.map(b=>i.find(R=>R.id===b)).filter(Boolean))!=null?h:[],m=i.filter(b=>!(s!=null&&s.includes(b.id))&&!(c!=null&&c.includes(b.id)));return Eu(u,[...g,...m,...p],l)},I(l.options,Ie)),l.getCenterHeaderGroups=P(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.left,l.getState().columnPinning.right],(u,i,s,c)=>(i=i.filter(f=>!(s!=null&&s.includes(f.id))&&!(c!=null&&c.includes(f.id))),Eu(u,i,l,"center")),I(l.options,Ie)),l.getLeftHeaderGroups=P(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.left],(u,i,s)=>{var c;const f=(c=s?.map(h=>i.find(g=>g.id===h)).filter(Boolean))!=null?c:[];return Eu(u,f,l,"left")},I(l.options,Ie)),l.getRightHeaderGroups=P(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.right],(u,i,s)=>{var c;const f=(c=s?.map(h=>i.find(g=>g.id===h)).filter(Boolean))!=null?c:[];return Eu(u,f,l,"right")},I(l.options,Ie)),l.getFooterGroups=P(()=>[l.getHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getLeftFooterGroups=P(()=>[l.getLeftHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getCenterFooterGroups=P(()=>[l.getCenterHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getRightFooterGroups=P(()=>[l.getRightHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getFlatHeaders=P(()=>[l.getHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getLeftFlatHeaders=P(()=>[l.getLeftHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getCenterFlatHeaders=P(()=>[l.getCenterHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getRightFlatHeaders=P(()=>[l.getRightHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getCenterLeafHeaders=P(()=>[l.getCenterFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),I(l.options,Ie)),l.getLeftLeafHeaders=P(()=>[l.getLeftFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),I(l.options,Ie)),l.getRightLeafHeaders=P(()=>[l.getRightFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),I(l.options,Ie)),l.getLeafHeaders=P(()=>[l.getLeftHeaderGroups(),l.getCenterHeaderGroups(),l.getRightHeaderGroups()],(u,i,s)=>{var c,f,h,g,p,m;return[...(c=(f=u[0])==null?void 0:f.headers)!=null?c:[],...(h=(g=i[0])==null?void 0:g.headers)!=null?h:[],...(p=(m=s[0])==null?void 0:m.headers)!=null?p:[]].map(y=>y.getLeafHeaders()).flat()},I(l.options,Ie))}};function Eu(l,u,i,s){var c,f;let h=0;const g=function(R,S){S===void 0&&(S=1),h=Math.max(h,S),R.filter(z=>z.getIsVisible()).forEach(z=>{var T;(T=z.columns)!=null&&T.length&&g(z.columns,S+1)},0)};g(l);let p=[];const m=(R,S)=>{const z={depth:S,id:[s,`${S}`].filter(Boolean).join("_"),headers:[]},T=[];R.forEach(U=>{const H=[...T].reverse()[0],V=U.column.depth===z.depth;let G,ne=!1;if(V&&U.column.parent?G=U.column.parent:(G=U.column,ne=!0),H&&H?.column===G)H.subHeaders.push(U);else{const ee=_g(i,G,{id:[s,S,G.id,U?.id].filter(Boolean).join("_"),isPlaceholder:ne,placeholderId:ne?`${T.filter(pe=>pe.column===G).length}`:void 0,depth:S,index:T.length});ee.subHeaders.push(U),T.push(ee)}z.headers.push(U),U.headerGroup=z}),p.push(z),S>0&&m(T,S-1)},y=u.map((R,S)=>_g(i,R,{depth:h,index:S}));m(y,h-1),p.reverse();const b=R=>R.filter(z=>z.column.getIsVisible()).map(z=>{let T=0,U=0,H=[0];z.subHeaders&&z.subHeaders.length?(H=[],b(z.subHeaders).forEach(G=>{let{colSpan:ne,rowSpan:ee}=G;T+=ne,H.push(ee)})):T=1;const V=Math.min(...H);return U=U+V,z.colSpan=T,z.rowSpan=U,{colSpan:T,rowSpan:U}});return b((c=(f=p[0])==null?void 0:f.headers)!=null?c:[]),p}const Fo=(l,u,i,s,c,f,h)=>{let g={id:u,index:s,original:i,depth:c,parentId:h,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(g._valuesCache.hasOwnProperty(p))return g._valuesCache[p];const m=l.getColumn(p);if(m!=null&&m.accessorFn)return g._valuesCache[p]=m.accessorFn(g.original,s),g._valuesCache[p]},getUniqueValues:p=>{if(g._uniqueValuesCache.hasOwnProperty(p))return g._uniqueValuesCache[p];const m=l.getColumn(p);if(m!=null&&m.accessorFn)return m.columnDef.getUniqueValues?(g._uniqueValuesCache[p]=m.columnDef.getUniqueValues(g.original,s),g._uniqueValuesCache[p]):(g._uniqueValuesCache[p]=[g.getValue(p)],g._uniqueValuesCache[p])},renderValue:p=>{var m;return(m=g.getValue(p))!=null?m:l.options.renderFallbackValue},subRows:[],getLeafRows:()=>SS(g.subRows,p=>p.subRows),getParentRow:()=>g.parentId?l.getRow(g.parentId,!0):void 0,getParentRows:()=>{let p=[],m=g;for(;;){const y=m.getParentRow();if(!y)break;p.push(y),m=y}return p.reverse()},getAllCells:P(()=>[l.getAllLeafColumns()],p=>p.map(m=>CS(l,g,m,m.id)),I(l.options,"debugRows")),_getAllCellsByColumnId:P(()=>[g.getAllCells()],p=>p.reduce((m,y)=>(m[y.column.id]=y,m),{}),I(l.options,"debugRows"))};for(let p=0;p<l._features.length;p++){const m=l._features[p];m==null||m.createRow==null||m.createRow(g,l)}return g},ES={createColumn:(l,u)=>{l._getFacetedRowModel=u.options.getFacetedRowModel&&u.options.getFacetedRowModel(u,l.id),l.getFacetedRowModel=()=>l._getFacetedRowModel?l._getFacetedRowModel():u.getPreFilteredRowModel(),l._getFacetedUniqueValues=u.options.getFacetedUniqueValues&&u.options.getFacetedUniqueValues(u,l.id),l.getFacetedUniqueValues=()=>l._getFacetedUniqueValues?l._getFacetedUniqueValues():new Map,l._getFacetedMinMaxValues=u.options.getFacetedMinMaxValues&&u.options.getFacetedMinMaxValues(u,l.id),l.getFacetedMinMaxValues=()=>{if(l._getFacetedMinMaxValues)return l._getFacetedMinMaxValues()}}},tm=(l,u,i)=>{var s,c;const f=i==null||(s=i.toString())==null?void 0:s.toLowerCase();return!!(!((c=l.getValue(u))==null||(c=c.toString())==null||(c=c.toLowerCase())==null)&&c.includes(f))};tm.autoRemove=l=>Lt(l);const nm=(l,u,i)=>{var s;return!!(!((s=l.getValue(u))==null||(s=s.toString())==null)&&s.includes(i))};nm.autoRemove=l=>Lt(l);const lm=(l,u,i)=>{var s;return((s=l.getValue(u))==null||(s=s.toString())==null?void 0:s.toLowerCase())===i?.toLowerCase()};lm.autoRemove=l=>Lt(l);const am=(l,u,i)=>{var s;return(s=l.getValue(u))==null?void 0:s.includes(i)};am.autoRemove=l=>Lt(l);const im=(l,u,i)=>!i.some(s=>{var c;return!((c=l.getValue(u))!=null&&c.includes(s))});im.autoRemove=l=>Lt(l)||!(l!=null&&l.length);const um=(l,u,i)=>i.some(s=>{var c;return(c=l.getValue(u))==null?void 0:c.includes(s)});um.autoRemove=l=>Lt(l)||!(l!=null&&l.length);const sm=(l,u,i)=>l.getValue(u)===i;sm.autoRemove=l=>Lt(l);const rm=(l,u,i)=>l.getValue(u)==i;rm.autoRemove=l=>Lt(l);const Qo=(l,u,i)=>{let[s,c]=i;const f=l.getValue(u);return f>=s&&f<=c};Qo.resolveFilterValue=l=>{let[u,i]=l,s=typeof u!="number"?parseFloat(u):u,c=typeof i!="number"?parseFloat(i):i,f=u===null||Number.isNaN(s)?-1/0:s,h=i===null||Number.isNaN(c)?1/0:c;if(f>h){const g=f;f=h,h=g}return[f,h]};Qo.autoRemove=l=>Lt(l)||Lt(l[0])&&Lt(l[1]);const fn={includesString:tm,includesStringSensitive:nm,equalsString:lm,arrIncludes:am,arrIncludesAll:im,arrIncludesSome:um,equals:sm,weakEquals:rm,inNumberRange:Qo};function Lt(l){return l==null||l===""}const _S={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:l=>({columnFilters:[],...l}),getDefaultOptions:l=>({onColumnFiltersChange:Rt("columnFilters",l),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(l,u)=>{l.getAutoFilterFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(l.id);return typeof s=="string"?fn.includesString:typeof s=="number"?fn.inNumberRange:typeof s=="boolean"||s!==null&&typeof s=="object"?fn.equals:Array.isArray(s)?fn.arrIncludes:fn.weakEquals},l.getFilterFn=()=>{var i,s;return Du(l.columnDef.filterFn)?l.columnDef.filterFn:l.columnDef.filterFn==="auto"?l.getAutoFilterFn():(i=(s=u.options.filterFns)==null?void 0:s[l.columnDef.filterFn])!=null?i:fn[l.columnDef.filterFn]},l.getCanFilter=()=>{var i,s,c;return((i=l.columnDef.enableColumnFilter)!=null?i:!0)&&((s=u.options.enableColumnFilters)!=null?s:!0)&&((c=u.options.enableFilters)!=null?c:!0)&&!!l.accessorFn},l.getIsFiltered=()=>l.getFilterIndex()>-1,l.getFilterValue=()=>{var i;return(i=u.getState().columnFilters)==null||(i=i.find(s=>s.id===l.id))==null?void 0:i.value},l.getFilterIndex=()=>{var i,s;return(i=(s=u.getState().columnFilters)==null?void 0:s.findIndex(c=>c.id===l.id))!=null?i:-1},l.setFilterValue=i=>{u.setColumnFilters(s=>{const c=l.getFilterFn(),f=s?.find(y=>y.id===l.id),h=jn(i,f?f.value:void 0);if(Mg(c,h,l)){var g;return(g=s?.filter(y=>y.id!==l.id))!=null?g:[]}const p={id:l.id,value:h};if(f){var m;return(m=s?.map(y=>y.id===l.id?p:y))!=null?m:[]}return s!=null&&s.length?[...s,p]:[p]})}},createRow:(l,u)=>{l.columnFilters={},l.columnFiltersMeta={}},createTable:l=>{l.setColumnFilters=u=>{const i=l.getAllLeafColumns(),s=c=>{var f;return(f=jn(u,c))==null?void 0:f.filter(h=>{const g=i.find(p=>p.id===h.id);if(g){const p=g.getFilterFn();if(Mg(p,h.value,g))return!1}return!0})};l.options.onColumnFiltersChange==null||l.options.onColumnFiltersChange(s)},l.resetColumnFilters=u=>{var i,s;l.setColumnFilters(u?[]:(i=(s=l.initialState)==null?void 0:s.columnFilters)!=null?i:[])},l.getPreFilteredRowModel=()=>l.getCoreRowModel(),l.getFilteredRowModel=()=>(!l._getFilteredRowModel&&l.options.getFilteredRowModel&&(l._getFilteredRowModel=l.options.getFilteredRowModel(l)),l.options.manualFiltering||!l._getFilteredRowModel?l.getPreFilteredRowModel():l._getFilteredRowModel())}};function Mg(l,u,i){return(l&&l.autoRemove?l.autoRemove(u,i):!1)||typeof u>"u"||typeof u=="string"&&!u}const MS=(l,u,i)=>i.reduce((s,c)=>{const f=c.getValue(l);return s+(typeof f=="number"?f:0)},0),zS=(l,u,i)=>{let s;return i.forEach(c=>{const f=c.getValue(l);f!=null&&(s>f||s===void 0&&f>=f)&&(s=f)}),s},TS=(l,u,i)=>{let s;return i.forEach(c=>{const f=c.getValue(l);f!=null&&(s<f||s===void 0&&f>=f)&&(s=f)}),s},OS=(l,u,i)=>{let s,c;return i.forEach(f=>{const h=f.getValue(l);h!=null&&(s===void 0?h>=h&&(s=c=h):(s>h&&(s=h),c<h&&(c=h)))}),[s,c]},AS=(l,u)=>{let i=0,s=0;if(u.forEach(c=>{let f=c.getValue(l);f!=null&&(f=+f)>=f&&(++i,s+=f)}),i)return s/i},wS=(l,u)=>{if(!u.length)return;const i=u.map(f=>f.getValue(l));if(!yS(i))return;if(i.length===1)return i[0];const s=Math.floor(i.length/2),c=i.sort((f,h)=>f-h);return i.length%2!==0?c[s]:(c[s-1]+c[s])/2},xS=(l,u)=>Array.from(new Set(u.map(i=>i.getValue(l))).values()),DS=(l,u)=>new Set(u.map(i=>i.getValue(l))).size,HS=(l,u)=>u.length,io={sum:MS,min:zS,max:TS,extent:OS,mean:AS,median:wS,unique:xS,uniqueCount:DS,count:HS},US={getDefaultColumnDef:()=>({aggregatedCell:l=>{var u,i;return(u=(i=l.getValue())==null||i.toString==null?void 0:i.toString())!=null?u:null},aggregationFn:"auto"}),getInitialState:l=>({grouping:[],...l}),getDefaultOptions:l=>({onGroupingChange:Rt("grouping",l),groupedColumnMode:"reorder"}),createColumn:(l,u)=>{l.toggleGrouping=()=>{u.setGrouping(i=>i!=null&&i.includes(l.id)?i.filter(s=>s!==l.id):[...i??[],l.id])},l.getCanGroup=()=>{var i,s;return((i=l.columnDef.enableGrouping)!=null?i:!0)&&((s=u.options.enableGrouping)!=null?s:!0)&&(!!l.accessorFn||!!l.columnDef.getGroupingValue)},l.getIsGrouped=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.includes(l.id)},l.getGroupedIndex=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.indexOf(l.id)},l.getToggleGroupingHandler=()=>{const i=l.getCanGroup();return()=>{i&&l.toggleGrouping()}},l.getAutoAggregationFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(l.id);if(typeof s=="number")return io.sum;if(Object.prototype.toString.call(s)==="[object Date]")return io.extent},l.getAggregationFn=()=>{var i,s;if(!l)throw new Error;return Du(l.columnDef.aggregationFn)?l.columnDef.aggregationFn:l.columnDef.aggregationFn==="auto"?l.getAutoAggregationFn():(i=(s=u.options.aggregationFns)==null?void 0:s[l.columnDef.aggregationFn])!=null?i:io[l.columnDef.aggregationFn]}},createTable:l=>{l.setGrouping=u=>l.options.onGroupingChange==null?void 0:l.options.onGroupingChange(u),l.resetGrouping=u=>{var i,s;l.setGrouping(u?[]:(i=(s=l.initialState)==null?void 0:s.grouping)!=null?i:[])},l.getPreGroupedRowModel=()=>l.getFilteredRowModel(),l.getGroupedRowModel=()=>(!l._getGroupedRowModel&&l.options.getGroupedRowModel&&(l._getGroupedRowModel=l.options.getGroupedRowModel(l)),l.options.manualGrouping||!l._getGroupedRowModel?l.getPreGroupedRowModel():l._getGroupedRowModel())},createRow:(l,u)=>{l.getIsGrouped=()=>!!l.groupingColumnId,l.getGroupingValue=i=>{if(l._groupingValuesCache.hasOwnProperty(i))return l._groupingValuesCache[i];const s=u.getColumn(i);return s!=null&&s.columnDef.getGroupingValue?(l._groupingValuesCache[i]=s.columnDef.getGroupingValue(l.original),l._groupingValuesCache[i]):l.getValue(i)},l._groupingValuesCache={}},createCell:(l,u,i,s)=>{l.getIsGrouped=()=>u.getIsGrouped()&&u.id===i.groupingColumnId,l.getIsPlaceholder=()=>!l.getIsGrouped()&&u.getIsGrouped(),l.getIsAggregated=()=>{var c;return!l.getIsGrouped()&&!l.getIsPlaceholder()&&!!((c=i.subRows)!=null&&c.length)}}};function NS(l,u,i){if(!(u!=null&&u.length)||!i)return l;const s=l.filter(f=>!u.includes(f.id));return i==="remove"?s:[...u.map(f=>l.find(h=>h.id===f)).filter(Boolean),...s]}const VS={getInitialState:l=>({columnOrder:[],...l}),getDefaultOptions:l=>({onColumnOrderChange:Rt("columnOrder",l)}),createColumn:(l,u)=>{l.getIndex=P(i=>[ka(u,i)],i=>i.findIndex(s=>s.id===l.id),I(u.options,"debugColumns")),l.getIsFirstColumn=i=>{var s;return((s=ka(u,i)[0])==null?void 0:s.id)===l.id},l.getIsLastColumn=i=>{var s;const c=ka(u,i);return((s=c[c.length-1])==null?void 0:s.id)===l.id}},createTable:l=>{l.setColumnOrder=u=>l.options.onColumnOrderChange==null?void 0:l.options.onColumnOrderChange(u),l.resetColumnOrder=u=>{var i;l.setColumnOrder(u?[]:(i=l.initialState.columnOrder)!=null?i:[])},l._getOrderColumnsFn=P(()=>[l.getState().columnOrder,l.getState().grouping,l.options.groupedColumnMode],(u,i,s)=>c=>{let f=[];if(!(u!=null&&u.length))f=c;else{const h=[...u],g=[...c];for(;g.length&&h.length;){const p=h.shift(),m=g.findIndex(y=>y.id===p);m>-1&&f.push(g.splice(m,1)[0])}f=[...f,...g]}return NS(f,i,s)},I(l.options,"debugTable"))}},uo=()=>({left:[],right:[]}),LS={getInitialState:l=>({columnPinning:uo(),...l}),getDefaultOptions:l=>({onColumnPinningChange:Rt("columnPinning",l)}),createColumn:(l,u)=>{l.pin=i=>{const s=l.getLeafColumns().map(c=>c.id).filter(Boolean);u.setColumnPinning(c=>{var f,h;if(i==="right"){var g,p;return{left:((g=c?.left)!=null?g:[]).filter(b=>!(s!=null&&s.includes(b))),right:[...((p=c?.right)!=null?p:[]).filter(b=>!(s!=null&&s.includes(b))),...s]}}if(i==="left"){var m,y;return{left:[...((m=c?.left)!=null?m:[]).filter(b=>!(s!=null&&s.includes(b))),...s],right:((y=c?.right)!=null?y:[]).filter(b=>!(s!=null&&s.includes(b)))}}return{left:((f=c?.left)!=null?f:[]).filter(b=>!(s!=null&&s.includes(b))),right:((h=c?.right)!=null?h:[]).filter(b=>!(s!=null&&s.includes(b)))}})},l.getCanPin=()=>l.getLeafColumns().some(s=>{var c,f,h;return((c=s.columnDef.enablePinning)!=null?c:!0)&&((f=(h=u.options.enableColumnPinning)!=null?h:u.options.enablePinning)!=null?f:!0)}),l.getIsPinned=()=>{const i=l.getLeafColumns().map(g=>g.id),{left:s,right:c}=u.getState().columnPinning,f=i.some(g=>s?.includes(g)),h=i.some(g=>c?.includes(g));return f?"left":h?"right":!1},l.getPinnedIndex=()=>{var i,s;const c=l.getIsPinned();return c?(i=(s=u.getState().columnPinning)==null||(s=s[c])==null?void 0:s.indexOf(l.id))!=null?i:-1:0}},createRow:(l,u)=>{l.getCenterVisibleCells=P(()=>[l._getAllVisibleCells(),u.getState().columnPinning.left,u.getState().columnPinning.right],(i,s,c)=>{const f=[...s??[],...c??[]];return i.filter(h=>!f.includes(h.column.id))},I(u.options,"debugRows")),l.getLeftVisibleCells=P(()=>[l._getAllVisibleCells(),u.getState().columnPinning.left],(i,s)=>(s??[]).map(f=>i.find(h=>h.column.id===f)).filter(Boolean).map(f=>({...f,position:"left"})),I(u.options,"debugRows")),l.getRightVisibleCells=P(()=>[l._getAllVisibleCells(),u.getState().columnPinning.right],(i,s)=>(s??[]).map(f=>i.find(h=>h.column.id===f)).filter(Boolean).map(f=>({...f,position:"right"})),I(u.options,"debugRows"))},createTable:l=>{l.setColumnPinning=u=>l.options.onColumnPinningChange==null?void 0:l.options.onColumnPinningChange(u),l.resetColumnPinning=u=>{var i,s;return l.setColumnPinning(u?uo():(i=(s=l.initialState)==null?void 0:s.columnPinning)!=null?i:uo())},l.getIsSomeColumnsPinned=u=>{var i;const s=l.getState().columnPinning;if(!u){var c,f;return!!((c=s.left)!=null&&c.length||(f=s.right)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},l.getLeftLeafColumns=P(()=>[l.getAllLeafColumns(),l.getState().columnPinning.left],(u,i)=>(i??[]).map(s=>u.find(c=>c.id===s)).filter(Boolean),I(l.options,"debugColumns")),l.getRightLeafColumns=P(()=>[l.getAllLeafColumns(),l.getState().columnPinning.right],(u,i)=>(i??[]).map(s=>u.find(c=>c.id===s)).filter(Boolean),I(l.options,"debugColumns")),l.getCenterLeafColumns=P(()=>[l.getAllLeafColumns(),l.getState().columnPinning.left,l.getState().columnPinning.right],(u,i,s)=>{const c=[...i??[],...s??[]];return u.filter(f=>!c.includes(f.id))},I(l.options,"debugColumns"))}};function BS(l){return l||(typeof document<"u"?document:null)}const _u={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},so=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),jS={getDefaultColumnDef:()=>_u,getInitialState:l=>({columnSizing:{},columnSizingInfo:so(),...l}),getDefaultOptions:l=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Rt("columnSizing",l),onColumnSizingInfoChange:Rt("columnSizingInfo",l)}),createColumn:(l,u)=>{l.getSize=()=>{var i,s,c;const f=u.getState().columnSizing[l.id];return Math.min(Math.max((i=l.columnDef.minSize)!=null?i:_u.minSize,(s=f??l.columnDef.size)!=null?s:_u.size),(c=l.columnDef.maxSize)!=null?c:_u.maxSize)},l.getStart=P(i=>[i,ka(u,i),u.getState().columnSizing],(i,s)=>s.slice(0,l.getIndex(i)).reduce((c,f)=>c+f.getSize(),0),I(u.options,"debugColumns")),l.getAfter=P(i=>[i,ka(u,i),u.getState().columnSizing],(i,s)=>s.slice(l.getIndex(i)+1).reduce((c,f)=>c+f.getSize(),0),I(u.options,"debugColumns")),l.resetSize=()=>{u.setColumnSizing(i=>{let{[l.id]:s,...c}=i;return c})},l.getCanResize=()=>{var i,s;return((i=l.columnDef.enableResizing)!=null?i:!0)&&((s=u.options.enableColumnResizing)!=null?s:!0)},l.getIsResizing=()=>u.getState().columnSizingInfo.isResizingColumn===l.id},createHeader:(l,u)=>{l.getSize=()=>{let i=0;const s=c=>{if(c.subHeaders.length)c.subHeaders.forEach(s);else{var f;i+=(f=c.column.getSize())!=null?f:0}};return s(l),i},l.getStart=()=>{if(l.index>0){const i=l.headerGroup.headers[l.index-1];return i.getStart()+i.getSize()}return 0},l.getResizeHandler=i=>{const s=u.getColumn(l.column.id),c=s?.getCanResize();return f=>{if(!s||!c||(f.persist==null||f.persist(),ro(f)&&f.touches&&f.touches.length>1))return;const h=l.getSize(),g=l?l.getLeafHeaders().map(H=>[H.column.id,H.column.getSize()]):[[s.id,s.getSize()]],p=ro(f)?Math.round(f.touches[0].clientX):f.clientX,m={},y=(H,V)=>{typeof V=="number"&&(u.setColumnSizingInfo(G=>{var ne,ee;const pe=u.options.columnResizeDirection==="rtl"?-1:1,K=(V-((ne=G?.startOffset)!=null?ne:0))*pe,fe=Math.max(K/((ee=G?.startSize)!=null?ee:0),-.999999);return G.columnSizingStart.forEach(ye=>{let[xe,Ue]=ye;m[xe]=Math.round(Math.max(Ue+Ue*fe,0)*100)/100}),{...G,deltaOffset:K,deltaPercentage:fe}}),(u.options.columnResizeMode==="onChange"||H==="end")&&u.setColumnSizing(G=>({...G,...m})))},b=H=>y("move",H),R=H=>{y("end",H),u.setColumnSizingInfo(V=>({...V,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},S=BS(i),z={moveHandler:H=>b(H.clientX),upHandler:H=>{S?.removeEventListener("mousemove",z.moveHandler),S?.removeEventListener("mouseup",z.upHandler),R(H.clientX)}},T={moveHandler:H=>(H.cancelable&&(H.preventDefault(),H.stopPropagation()),b(H.touches[0].clientX),!1),upHandler:H=>{var V;S?.removeEventListener("touchmove",T.moveHandler),S?.removeEventListener("touchend",T.upHandler),H.cancelable&&(H.preventDefault(),H.stopPropagation()),R((V=H.touches[0])==null?void 0:V.clientX)}},U=qS()?{passive:!1}:!1;ro(f)?(S?.addEventListener("touchmove",T.moveHandler,U),S?.addEventListener("touchend",T.upHandler,U)):(S?.addEventListener("mousemove",z.moveHandler,U),S?.addEventListener("mouseup",z.upHandler,U)),u.setColumnSizingInfo(H=>({...H,startOffset:p,startSize:h,deltaOffset:0,deltaPercentage:0,columnSizingStart:g,isResizingColumn:s.id}))}}},createTable:l=>{l.setColumnSizing=u=>l.options.onColumnSizingChange==null?void 0:l.options.onColumnSizingChange(u),l.setColumnSizingInfo=u=>l.options.onColumnSizingInfoChange==null?void 0:l.options.onColumnSizingInfoChange(u),l.resetColumnSizing=u=>{var i;l.setColumnSizing(u?{}:(i=l.initialState.columnSizing)!=null?i:{})},l.resetHeaderSizeInfo=u=>{var i;l.setColumnSizingInfo(u?so():(i=l.initialState.columnSizingInfo)!=null?i:so())},l.getTotalSize=()=>{var u,i;return(u=(i=l.getHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0},l.getLeftTotalSize=()=>{var u,i;return(u=(i=l.getLeftHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0},l.getCenterTotalSize=()=>{var u,i;return(u=(i=l.getCenterHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0},l.getRightTotalSize=()=>{var u,i;return(u=(i=l.getRightHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0}}};let Mu=null;function qS(){if(typeof Mu=="boolean")return Mu;let l=!1;try{const u={get passive(){return l=!0,!1}},i=()=>{};window.addEventListener("test",i,u),window.removeEventListener("test",i)}catch{l=!1}return Mu=l,Mu}function ro(l){return l.type==="touchstart"}const GS={getInitialState:l=>({columnVisibility:{},...l}),getDefaultOptions:l=>({onColumnVisibilityChange:Rt("columnVisibility",l)}),createColumn:(l,u)=>{l.toggleVisibility=i=>{l.getCanHide()&&u.setColumnVisibility(s=>({...s,[l.id]:i??!l.getIsVisible()}))},l.getIsVisible=()=>{var i,s;const c=l.columns;return(i=c.length?c.some(f=>f.getIsVisible()):(s=u.getState().columnVisibility)==null?void 0:s[l.id])!=null?i:!0},l.getCanHide=()=>{var i,s;return((i=l.columnDef.enableHiding)!=null?i:!0)&&((s=u.options.enableHiding)!=null?s:!0)},l.getToggleVisibilityHandler=()=>i=>{l.toggleVisibility==null||l.toggleVisibility(i.target.checked)}},createRow:(l,u)=>{l._getAllVisibleCells=P(()=>[l.getAllCells(),u.getState().columnVisibility],i=>i.filter(s=>s.column.getIsVisible()),I(u.options,"debugRows")),l.getVisibleCells=P(()=>[l.getLeftVisibleCells(),l.getCenterVisibleCells(),l.getRightVisibleCells()],(i,s,c)=>[...i,...s,...c],I(u.options,"debugRows"))},createTable:l=>{const u=(i,s)=>P(()=>[s(),s().filter(c=>c.getIsVisible()).map(c=>c.id).join("_")],c=>c.filter(f=>f.getIsVisible==null?void 0:f.getIsVisible()),I(l.options,"debugColumns"));l.getVisibleFlatColumns=u("getVisibleFlatColumns",()=>l.getAllFlatColumns()),l.getVisibleLeafColumns=u("getVisibleLeafColumns",()=>l.getAllLeafColumns()),l.getLeftVisibleLeafColumns=u("getLeftVisibleLeafColumns",()=>l.getLeftLeafColumns()),l.getRightVisibleLeafColumns=u("getRightVisibleLeafColumns",()=>l.getRightLeafColumns()),l.getCenterVisibleLeafColumns=u("getCenterVisibleLeafColumns",()=>l.getCenterLeafColumns()),l.setColumnVisibility=i=>l.options.onColumnVisibilityChange==null?void 0:l.options.onColumnVisibilityChange(i),l.resetColumnVisibility=i=>{var s;l.setColumnVisibility(i?{}:(s=l.initialState.columnVisibility)!=null?s:{})},l.toggleAllColumnsVisible=i=>{var s;i=(s=i)!=null?s:!l.getIsAllColumnsVisible(),l.setColumnVisibility(l.getAllLeafColumns().reduce((c,f)=>({...c,[f.id]:i||!(f.getCanHide!=null&&f.getCanHide())}),{}))},l.getIsAllColumnsVisible=()=>!l.getAllLeafColumns().some(i=>!(i.getIsVisible!=null&&i.getIsVisible())),l.getIsSomeColumnsVisible=()=>l.getAllLeafColumns().some(i=>i.getIsVisible==null?void 0:i.getIsVisible()),l.getToggleAllColumnsVisibilityHandler=()=>i=>{var s;l.toggleAllColumnsVisible((s=i.target)==null?void 0:s.checked)}}};function ka(l,u){return u?u==="center"?l.getCenterVisibleLeafColumns():u==="left"?l.getLeftVisibleLeafColumns():l.getRightVisibleLeafColumns():l.getVisibleLeafColumns()}const FS={createTable:l=>{l._getGlobalFacetedRowModel=l.options.getFacetedRowModel&&l.options.getFacetedRowModel(l,"__global__"),l.getGlobalFacetedRowModel=()=>l.options.manualFiltering||!l._getGlobalFacetedRowModel?l.getPreFilteredRowModel():l._getGlobalFacetedRowModel(),l._getGlobalFacetedUniqueValues=l.options.getFacetedUniqueValues&&l.options.getFacetedUniqueValues(l,"__global__"),l.getGlobalFacetedUniqueValues=()=>l._getGlobalFacetedUniqueValues?l._getGlobalFacetedUniqueValues():new Map,l._getGlobalFacetedMinMaxValues=l.options.getFacetedMinMaxValues&&l.options.getFacetedMinMaxValues(l,"__global__"),l.getGlobalFacetedMinMaxValues=()=>{if(l._getGlobalFacetedMinMaxValues)return l._getGlobalFacetedMinMaxValues()}}},QS={getInitialState:l=>({globalFilter:void 0,...l}),getDefaultOptions:l=>({onGlobalFilterChange:Rt("globalFilter",l),globalFilterFn:"auto",getColumnCanGlobalFilter:u=>{var i;const s=(i=l.getCoreRowModel().flatRows[0])==null||(i=i._getAllCellsByColumnId()[u.id])==null?void 0:i.getValue();return typeof s=="string"||typeof s=="number"}}),createColumn:(l,u)=>{l.getCanGlobalFilter=()=>{var i,s,c,f;return((i=l.columnDef.enableGlobalFilter)!=null?i:!0)&&((s=u.options.enableGlobalFilter)!=null?s:!0)&&((c=u.options.enableFilters)!=null?c:!0)&&((f=u.options.getColumnCanGlobalFilter==null?void 0:u.options.getColumnCanGlobalFilter(l))!=null?f:!0)&&!!l.accessorFn}},createTable:l=>{l.getGlobalAutoFilterFn=()=>fn.includesString,l.getGlobalFilterFn=()=>{var u,i;const{globalFilterFn:s}=l.options;return Du(s)?s:s==="auto"?l.getGlobalAutoFilterFn():(u=(i=l.options.filterFns)==null?void 0:i[s])!=null?u:fn[s]},l.setGlobalFilter=u=>{l.options.onGlobalFilterChange==null||l.options.onGlobalFilterChange(u)},l.resetGlobalFilter=u=>{l.setGlobalFilter(u?void 0:l.initialState.globalFilter)}}},YS={getInitialState:l=>({expanded:{},...l}),getDefaultOptions:l=>({onExpandedChange:Rt("expanded",l),paginateExpandedRows:!0}),createTable:l=>{let u=!1,i=!1;l._autoResetExpanded=()=>{var s,c;if(!u){l._queue(()=>{u=!0});return}if((s=(c=l.options.autoResetAll)!=null?c:l.options.autoResetExpanded)!=null?s:!l.options.manualExpanding){if(i)return;i=!0,l._queue(()=>{l.resetExpanded(),i=!1})}},l.setExpanded=s=>l.options.onExpandedChange==null?void 0:l.options.onExpandedChange(s),l.toggleAllRowsExpanded=s=>{s??!l.getIsAllRowsExpanded()?l.setExpanded(!0):l.setExpanded({})},l.resetExpanded=s=>{var c,f;l.setExpanded(s?{}:(c=(f=l.initialState)==null?void 0:f.expanded)!=null?c:{})},l.getCanSomeRowsExpand=()=>l.getPrePaginationRowModel().flatRows.some(s=>s.getCanExpand()),l.getToggleAllRowsExpandedHandler=()=>s=>{s.persist==null||s.persist(),l.toggleAllRowsExpanded()},l.getIsSomeRowsExpanded=()=>{const s=l.getState().expanded;return s===!0||Object.values(s).some(Boolean)},l.getIsAllRowsExpanded=()=>{const s=l.getState().expanded;return typeof s=="boolean"?s===!0:!(!Object.keys(s).length||l.getRowModel().flatRows.some(c=>!c.getIsExpanded()))},l.getExpandedDepth=()=>{let s=0;return(l.getState().expanded===!0?Object.keys(l.getRowModel().rowsById):Object.keys(l.getState().expanded)).forEach(f=>{const h=f.split(".");s=Math.max(s,h.length)}),s},l.getPreExpandedRowModel=()=>l.getSortedRowModel(),l.getExpandedRowModel=()=>(!l._getExpandedRowModel&&l.options.getExpandedRowModel&&(l._getExpandedRowModel=l.options.getExpandedRowModel(l)),l.options.manualExpanding||!l._getExpandedRowModel?l.getPreExpandedRowModel():l._getExpandedRowModel())},createRow:(l,u)=>{l.toggleExpanded=i=>{u.setExpanded(s=>{var c;const f=s===!0?!0:!!(s!=null&&s[l.id]);let h={};if(s===!0?Object.keys(u.getRowModel().rowsById).forEach(g=>{h[g]=!0}):h=s,i=(c=i)!=null?c:!f,!f&&i)return{...h,[l.id]:!0};if(f&&!i){const{[l.id]:g,...p}=h;return p}return s})},l.getIsExpanded=()=>{var i;const s=u.getState().expanded;return!!((i=u.options.getIsRowExpanded==null?void 0:u.options.getIsRowExpanded(l))!=null?i:s===!0||s?.[l.id])},l.getCanExpand=()=>{var i,s,c;return(i=u.options.getRowCanExpand==null?void 0:u.options.getRowCanExpand(l))!=null?i:((s=u.options.enableExpanding)!=null?s:!0)&&!!((c=l.subRows)!=null&&c.length)},l.getIsAllParentsExpanded=()=>{let i=!0,s=l;for(;i&&s.parentId;)s=u.getRow(s.parentId,!0),i=s.getIsExpanded();return i},l.getToggleExpandedHandler=()=>{const i=l.getCanExpand();return()=>{i&&l.toggleExpanded()}}}},_o=0,Mo=10,oo=()=>({pageIndex:_o,pageSize:Mo}),XS={getInitialState:l=>({...l,pagination:{...oo(),...l?.pagination}}),getDefaultOptions:l=>({onPaginationChange:Rt("pagination",l)}),createTable:l=>{let u=!1,i=!1;l._autoResetPageIndex=()=>{var s,c;if(!u){l._queue(()=>{u=!0});return}if((s=(c=l.options.autoResetAll)!=null?c:l.options.autoResetPageIndex)!=null?s:!l.options.manualPagination){if(i)return;i=!0,l._queue(()=>{l.resetPageIndex(),i=!1})}},l.setPagination=s=>{const c=f=>jn(s,f);return l.options.onPaginationChange==null?void 0:l.options.onPaginationChange(c)},l.resetPagination=s=>{var c;l.setPagination(s?oo():(c=l.initialState.pagination)!=null?c:oo())},l.setPageIndex=s=>{l.setPagination(c=>{let f=jn(s,c.pageIndex);const h=typeof l.options.pageCount>"u"||l.options.pageCount===-1?Number.MAX_SAFE_INTEGER:l.options.pageCount-1;return f=Math.max(0,Math.min(f,h)),{...c,pageIndex:f}})},l.resetPageIndex=s=>{var c,f;l.setPageIndex(s?_o:(c=(f=l.initialState)==null||(f=f.pagination)==null?void 0:f.pageIndex)!=null?c:_o)},l.resetPageSize=s=>{var c,f;l.setPageSize(s?Mo:(c=(f=l.initialState)==null||(f=f.pagination)==null?void 0:f.pageSize)!=null?c:Mo)},l.setPageSize=s=>{l.setPagination(c=>{const f=Math.max(1,jn(s,c.pageSize)),h=c.pageSize*c.pageIndex,g=Math.floor(h/f);return{...c,pageIndex:g,pageSize:f}})},l.setPageCount=s=>l.setPagination(c=>{var f;let h=jn(s,(f=l.options.pageCount)!=null?f:-1);return typeof h=="number"&&(h=Math.max(-1,h)),{...c,pageCount:h}}),l.getPageOptions=P(()=>[l.getPageCount()],s=>{let c=[];return s&&s>0&&(c=[...new Array(s)].fill(null).map((f,h)=>h)),c},I(l.options,"debugTable")),l.getCanPreviousPage=()=>l.getState().pagination.pageIndex>0,l.getCanNextPage=()=>{const{pageIndex:s}=l.getState().pagination,c=l.getPageCount();return c===-1?!0:c===0?!1:s<c-1},l.previousPage=()=>l.setPageIndex(s=>s-1),l.nextPage=()=>l.setPageIndex(s=>s+1),l.firstPage=()=>l.setPageIndex(0),l.lastPage=()=>l.setPageIndex(l.getPageCount()-1),l.getPrePaginationRowModel=()=>l.getExpandedRowModel(),l.getPaginationRowModel=()=>(!l._getPaginationRowModel&&l.options.getPaginationRowModel&&(l._getPaginationRowModel=l.options.getPaginationRowModel(l)),l.options.manualPagination||!l._getPaginationRowModel?l.getPrePaginationRowModel():l._getPaginationRowModel()),l.getPageCount=()=>{var s;return(s=l.options.pageCount)!=null?s:Math.ceil(l.getRowCount()/l.getState().pagination.pageSize)},l.getRowCount=()=>{var s;return(s=l.options.rowCount)!=null?s:l.getPrePaginationRowModel().rows.length}}},co=()=>({top:[],bottom:[]}),$S={getInitialState:l=>({rowPinning:co(),...l}),getDefaultOptions:l=>({onRowPinningChange:Rt("rowPinning",l)}),createRow:(l,u)=>{l.pin=(i,s,c)=>{const f=s?l.getLeafRows().map(p=>{let{id:m}=p;return m}):[],h=c?l.getParentRows().map(p=>{let{id:m}=p;return m}):[],g=new Set([...h,l.id,...f]);u.setRowPinning(p=>{var m,y;if(i==="bottom"){var b,R;return{top:((b=p?.top)!=null?b:[]).filter(T=>!(g!=null&&g.has(T))),bottom:[...((R=p?.bottom)!=null?R:[]).filter(T=>!(g!=null&&g.has(T))),...Array.from(g)]}}if(i==="top"){var S,z;return{top:[...((S=p?.top)!=null?S:[]).filter(T=>!(g!=null&&g.has(T))),...Array.from(g)],bottom:((z=p?.bottom)!=null?z:[]).filter(T=>!(g!=null&&g.has(T)))}}return{top:((m=p?.top)!=null?m:[]).filter(T=>!(g!=null&&g.has(T))),bottom:((y=p?.bottom)!=null?y:[]).filter(T=>!(g!=null&&g.has(T)))}})},l.getCanPin=()=>{var i;const{enableRowPinning:s,enablePinning:c}=u.options;return typeof s=="function"?s(l):(i=s??c)!=null?i:!0},l.getIsPinned=()=>{const i=[l.id],{top:s,bottom:c}=u.getState().rowPinning,f=i.some(g=>s?.includes(g)),h=i.some(g=>c?.includes(g));return f?"top":h?"bottom":!1},l.getPinnedIndex=()=>{var i,s;const c=l.getIsPinned();if(!c)return-1;const f=(i=c==="top"?u.getTopRows():u.getBottomRows())==null?void 0:i.map(h=>{let{id:g}=h;return g});return(s=f?.indexOf(l.id))!=null?s:-1}},createTable:l=>{l.setRowPinning=u=>l.options.onRowPinningChange==null?void 0:l.options.onRowPinningChange(u),l.resetRowPinning=u=>{var i,s;return l.setRowPinning(u?co():(i=(s=l.initialState)==null?void 0:s.rowPinning)!=null?i:co())},l.getIsSomeRowsPinned=u=>{var i;const s=l.getState().rowPinning;if(!u){var c,f;return!!((c=s.top)!=null&&c.length||(f=s.bottom)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},l._getPinnedRows=(u,i,s)=>{var c;return((c=l.options.keepPinnedRows)==null||c?(i??[]).map(h=>{const g=l.getRow(h,!0);return g.getIsAllParentsExpanded()?g:null}):(i??[]).map(h=>u.find(g=>g.id===h))).filter(Boolean).map(h=>({...h,position:s}))},l.getTopRows=P(()=>[l.getRowModel().rows,l.getState().rowPinning.top],(u,i)=>l._getPinnedRows(u,i,"top"),I(l.options,"debugRows")),l.getBottomRows=P(()=>[l.getRowModel().rows,l.getState().rowPinning.bottom],(u,i)=>l._getPinnedRows(u,i,"bottom"),I(l.options,"debugRows")),l.getCenterRows=P(()=>[l.getRowModel().rows,l.getState().rowPinning.top,l.getState().rowPinning.bottom],(u,i,s)=>{const c=new Set([...i??[],...s??[]]);return u.filter(f=>!c.has(f.id))},I(l.options,"debugRows"))}},ZS={getInitialState:l=>({rowSelection:{},...l}),getDefaultOptions:l=>({onRowSelectionChange:Rt("rowSelection",l),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:l=>{l.setRowSelection=u=>l.options.onRowSelectionChange==null?void 0:l.options.onRowSelectionChange(u),l.resetRowSelection=u=>{var i;return l.setRowSelection(u?{}:(i=l.initialState.rowSelection)!=null?i:{})},l.toggleAllRowsSelected=u=>{l.setRowSelection(i=>{u=typeof u<"u"?u:!l.getIsAllRowsSelected();const s={...i},c=l.getPreGroupedRowModel().flatRows;return u?c.forEach(f=>{f.getCanSelect()&&(s[f.id]=!0)}):c.forEach(f=>{delete s[f.id]}),s})},l.toggleAllPageRowsSelected=u=>l.setRowSelection(i=>{const s=typeof u<"u"?u:!l.getIsAllPageRowsSelected(),c={...i};return l.getRowModel().rows.forEach(f=>{zo(c,f.id,s,!0,l)}),c}),l.getPreSelectedRowModel=()=>l.getCoreRowModel(),l.getSelectedRowModel=P(()=>[l.getState().rowSelection,l.getCoreRowModel()],(u,i)=>Object.keys(u).length?fo(l,i):{rows:[],flatRows:[],rowsById:{}},I(l.options,"debugTable")),l.getFilteredSelectedRowModel=P(()=>[l.getState().rowSelection,l.getFilteredRowModel()],(u,i)=>Object.keys(u).length?fo(l,i):{rows:[],flatRows:[],rowsById:{}},I(l.options,"debugTable")),l.getGroupedSelectedRowModel=P(()=>[l.getState().rowSelection,l.getSortedRowModel()],(u,i)=>Object.keys(u).length?fo(l,i):{rows:[],flatRows:[],rowsById:{}},I(l.options,"debugTable")),l.getIsAllRowsSelected=()=>{const u=l.getFilteredRowModel().flatRows,{rowSelection:i}=l.getState();let s=!!(u.length&&Object.keys(i).length);return s&&u.some(c=>c.getCanSelect()&&!i[c.id])&&(s=!1),s},l.getIsAllPageRowsSelected=()=>{const u=l.getPaginationRowModel().flatRows.filter(c=>c.getCanSelect()),{rowSelection:i}=l.getState();let s=!!u.length;return s&&u.some(c=>!i[c.id])&&(s=!1),s},l.getIsSomeRowsSelected=()=>{var u;const i=Object.keys((u=l.getState().rowSelection)!=null?u:{}).length;return i>0&&i<l.getFilteredRowModel().flatRows.length},l.getIsSomePageRowsSelected=()=>{const u=l.getPaginationRowModel().flatRows;return l.getIsAllPageRowsSelected()?!1:u.filter(i=>i.getCanSelect()).some(i=>i.getIsSelected()||i.getIsSomeSelected())},l.getToggleAllRowsSelectedHandler=()=>u=>{l.toggleAllRowsSelected(u.target.checked)},l.getToggleAllPageRowsSelectedHandler=()=>u=>{l.toggleAllPageRowsSelected(u.target.checked)}},createRow:(l,u)=>{l.toggleSelected=(i,s)=>{const c=l.getIsSelected();u.setRowSelection(f=>{var h;if(i=typeof i<"u"?i:!c,l.getCanSelect()&&c===i)return f;const g={...f};return zo(g,l.id,i,(h=s?.selectChildren)!=null?h:!0,u),g})},l.getIsSelected=()=>{const{rowSelection:i}=u.getState();return Yo(l,i)},l.getIsSomeSelected=()=>{const{rowSelection:i}=u.getState();return To(l,i)==="some"},l.getIsAllSubRowsSelected=()=>{const{rowSelection:i}=u.getState();return To(l,i)==="all"},l.getCanSelect=()=>{var i;return typeof u.options.enableRowSelection=="function"?u.options.enableRowSelection(l):(i=u.options.enableRowSelection)!=null?i:!0},l.getCanSelectSubRows=()=>{var i;return typeof u.options.enableSubRowSelection=="function"?u.options.enableSubRowSelection(l):(i=u.options.enableSubRowSelection)!=null?i:!0},l.getCanMultiSelect=()=>{var i;return typeof u.options.enableMultiRowSelection=="function"?u.options.enableMultiRowSelection(l):(i=u.options.enableMultiRowSelection)!=null?i:!0},l.getToggleSelectedHandler=()=>{const i=l.getCanSelect();return s=>{var c;i&&l.toggleSelected((c=s.target)==null?void 0:c.checked)}}}},zo=(l,u,i,s,c)=>{var f;const h=c.getRow(u,!0);i?(h.getCanMultiSelect()||Object.keys(l).forEach(g=>delete l[g]),h.getCanSelect()&&(l[u]=!0)):delete l[u],s&&(f=h.subRows)!=null&&f.length&&h.getCanSelectSubRows()&&h.subRows.forEach(g=>zo(l,g.id,i,s,c))};function fo(l,u){const i=l.getState().rowSelection,s=[],c={},f=function(h,g){return h.map(p=>{var m;const y=Yo(p,i);if(y&&(s.push(p),c[p.id]=p),(m=p.subRows)!=null&&m.length&&(p={...p,subRows:f(p.subRows)}),y)return p}).filter(Boolean)};return{rows:f(u.rows),flatRows:s,rowsById:c}}function Yo(l,u){var i;return(i=u[l.id])!=null?i:!1}function To(l,u,i){var s;if(!((s=l.subRows)!=null&&s.length))return!1;let c=!0,f=!1;return l.subRows.forEach(h=>{if(!(f&&!c)&&(h.getCanSelect()&&(Yo(h,u)?f=!0:c=!1),h.subRows&&h.subRows.length)){const g=To(h,u);g==="all"?f=!0:(g==="some"&&(f=!0),c=!1)}}),c?"all":f?"some":!1}const Oo=/([0-9]+)/gm,KS=(l,u,i)=>om(Gn(l.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),JS=(l,u,i)=>om(Gn(l.getValue(i)),Gn(u.getValue(i))),kS=(l,u,i)=>Xo(Gn(l.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),PS=(l,u,i)=>Xo(Gn(l.getValue(i)),Gn(u.getValue(i))),IS=(l,u,i)=>{const s=l.getValue(i),c=u.getValue(i);return s>c?1:s<c?-1:0},WS=(l,u,i)=>Xo(l.getValue(i),u.getValue(i));function Xo(l,u){return l===u?0:l>u?1:-1}function Gn(l){return typeof l=="number"?isNaN(l)||l===1/0||l===-1/0?"":String(l):typeof l=="string"?l:""}function om(l,u){const i=l.split(Oo).filter(Boolean),s=u.split(Oo).filter(Boolean);for(;i.length&&s.length;){const c=i.shift(),f=s.shift(),h=parseInt(c,10),g=parseInt(f,10),p=[h,g].sort();if(isNaN(p[0])){if(c>f)return 1;if(f>c)return-1;continue}if(isNaN(p[1]))return isNaN(h)?-1:1;if(h>g)return 1;if(g>h)return-1}return i.length-s.length}const Ja={alphanumeric:KS,alphanumericCaseSensitive:JS,text:kS,textCaseSensitive:PS,datetime:IS,basic:WS},e1={getInitialState:l=>({sorting:[],...l}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:l=>({onSortingChange:Rt("sorting",l),isMultiSortEvent:u=>u.shiftKey}),createColumn:(l,u)=>{l.getAutoSortingFn=()=>{const i=u.getFilteredRowModel().flatRows.slice(10);let s=!1;for(const c of i){const f=c?.getValue(l.id);if(Object.prototype.toString.call(f)==="[object Date]")return Ja.datetime;if(typeof f=="string"&&(s=!0,f.split(Oo).length>1))return Ja.alphanumeric}return s?Ja.text:Ja.basic},l.getAutoSortDir=()=>{const i=u.getFilteredRowModel().flatRows[0];return typeof i?.getValue(l.id)=="string"?"asc":"desc"},l.getSortingFn=()=>{var i,s;if(!l)throw new Error;return Du(l.columnDef.sortingFn)?l.columnDef.sortingFn:l.columnDef.sortingFn==="auto"?l.getAutoSortingFn():(i=(s=u.options.sortingFns)==null?void 0:s[l.columnDef.sortingFn])!=null?i:Ja[l.columnDef.sortingFn]},l.toggleSorting=(i,s)=>{const c=l.getNextSortingOrder(),f=typeof i<"u"&&i!==null;u.setSorting(h=>{const g=h?.find(S=>S.id===l.id),p=h?.findIndex(S=>S.id===l.id);let m=[],y,b=f?i:c==="desc";if(h!=null&&h.length&&l.getCanMultiSort()&&s?g?y="toggle":y="add":h!=null&&h.length&&p!==h.length-1?y="replace":g?y="toggle":y="replace",y==="toggle"&&(f||c||(y="remove")),y==="add"){var R;m=[...h,{id:l.id,desc:b}],m.splice(0,m.length-((R=u.options.maxMultiSortColCount)!=null?R:Number.MAX_SAFE_INTEGER))}else y==="toggle"?m=h.map(S=>S.id===l.id?{...S,desc:b}:S):y==="remove"?m=h.filter(S=>S.id!==l.id):m=[{id:l.id,desc:b}];return m})},l.getFirstSortDir=()=>{var i,s;return((i=(s=l.columnDef.sortDescFirst)!=null?s:u.options.sortDescFirst)!=null?i:l.getAutoSortDir()==="desc")?"desc":"asc"},l.getNextSortingOrder=i=>{var s,c;const f=l.getFirstSortDir(),h=l.getIsSorted();return h?h!==f&&((s=u.options.enableSortingRemoval)==null||s)&&(!(i&&(c=u.options.enableMultiRemove)!=null)||c)?!1:h==="desc"?"asc":"desc":f},l.getCanSort=()=>{var i,s;return((i=l.columnDef.enableSorting)!=null?i:!0)&&((s=u.options.enableSorting)!=null?s:!0)&&!!l.accessorFn},l.getCanMultiSort=()=>{var i,s;return(i=(s=l.columnDef.enableMultiSort)!=null?s:u.options.enableMultiSort)!=null?i:!!l.accessorFn},l.getIsSorted=()=>{var i;const s=(i=u.getState().sorting)==null?void 0:i.find(c=>c.id===l.id);return s?s.desc?"desc":"asc":!1},l.getSortIndex=()=>{var i,s;return(i=(s=u.getState().sorting)==null?void 0:s.findIndex(c=>c.id===l.id))!=null?i:-1},l.clearSorting=()=>{u.setSorting(i=>i!=null&&i.length?i.filter(s=>s.id!==l.id):[])},l.getToggleSortingHandler=()=>{const i=l.getCanSort();return s=>{i&&(s.persist==null||s.persist(),l.toggleSorting==null||l.toggleSorting(void 0,l.getCanMultiSort()?u.options.isMultiSortEvent==null?void 0:u.options.isMultiSortEvent(s):!1))}}},createTable:l=>{l.setSorting=u=>l.options.onSortingChange==null?void 0:l.options.onSortingChange(u),l.resetSorting=u=>{var i,s;l.setSorting(u?[]:(i=(s=l.initialState)==null?void 0:s.sorting)!=null?i:[])},l.getPreSortedRowModel=()=>l.getGroupedRowModel(),l.getSortedRowModel=()=>(!l._getSortedRowModel&&l.options.getSortedRowModel&&(l._getSortedRowModel=l.options.getSortedRowModel(l)),l.options.manualSorting||!l._getSortedRowModel?l.getPreSortedRowModel():l._getSortedRowModel())}},t1=[bS,GS,VS,LS,ES,_S,FS,QS,e1,US,YS,XS,$S,ZS,jS];function n1(l){var u,i;const s=[...t1,...(u=l._features)!=null?u:[]];let c={_features:s};const f=c._features.reduce((R,S)=>Object.assign(R,S.getDefaultOptions==null?void 0:S.getDefaultOptions(c)),{}),h=R=>c.options.mergeOptions?c.options.mergeOptions(f,R):{...f,...R};let p={...{},...(i=l.initialState)!=null?i:{}};c._features.forEach(R=>{var S;p=(S=R.getInitialState==null?void 0:R.getInitialState(p))!=null?S:p});const m=[];let y=!1;const b={_features:s,options:{...f,...l},initialState:p,_queue:R=>{m.push(R),y||(y=!0,Promise.resolve().then(()=>{for(;m.length;)m.shift()();y=!1}).catch(S=>setTimeout(()=>{throw S})))},reset:()=>{c.setState(c.initialState)},setOptions:R=>{const S=jn(R,c.options);c.options=h(S)},getState:()=>c.options.state,setState:R=>{c.options.onStateChange==null||c.options.onStateChange(R)},_getRowId:(R,S,z)=>{var T;return(T=c.options.getRowId==null?void 0:c.options.getRowId(R,S,z))!=null?T:`${z?[z.id,S].join("."):S}`},getCoreRowModel:()=>(c._getCoreRowModel||(c._getCoreRowModel=c.options.getCoreRowModel(c)),c._getCoreRowModel()),getRowModel:()=>c.getPaginationRowModel(),getRow:(R,S)=>{let z=(S?c.getPrePaginationRowModel():c.getRowModel()).rowsById[R];if(!z&&(z=c.getCoreRowModel().rowsById[R],!z))throw new Error;return z},_getDefaultColumnDef:P(()=>[c.options.defaultColumn],R=>{var S;return R=(S=R)!=null?S:{},{header:z=>{const T=z.header.column.columnDef;return T.accessorKey?T.accessorKey:T.accessorFn?T.id:null},cell:z=>{var T,U;return(T=(U=z.renderValue())==null||U.toString==null?void 0:U.toString())!=null?T:null},...c._features.reduce((z,T)=>Object.assign(z,T.getDefaultColumnDef==null?void 0:T.getDefaultColumnDef()),{}),...R}},I(l,"debugColumns")),_getColumnDefs:()=>c.options.columns,getAllColumns:P(()=>[c._getColumnDefs()],R=>{const S=function(z,T,U){return U===void 0&&(U=0),z.map(H=>{const V=RS(c,H,U,T),G=H;return V.columns=G.columns?S(G.columns,V,U+1):[],V})};return S(R)},I(l,"debugColumns")),getAllFlatColumns:P(()=>[c.getAllColumns()],R=>R.flatMap(S=>S.getFlatColumns()),I(l,"debugColumns")),_getAllFlatColumnsById:P(()=>[c.getAllFlatColumns()],R=>R.reduce((S,z)=>(S[z.id]=z,S),{}),I(l,"debugColumns")),getAllLeafColumns:P(()=>[c.getAllColumns(),c._getOrderColumnsFn()],(R,S)=>{let z=R.flatMap(T=>T.getLeafColumns());return S(z)},I(l,"debugColumns")),getColumn:R=>c._getAllFlatColumnsById()[R]};Object.assign(c,b);for(let R=0;R<c._features.length;R++){const S=c._features[R];S==null||S.createTable==null||S.createTable(c)}return c}function l1(){return l=>P(()=>[l.options.data],u=>{const i={rows:[],flatRows:[],rowsById:{}},s=function(c,f,h){f===void 0&&(f=0);const g=[];for(let m=0;m<c.length;m++){const y=Fo(l,l._getRowId(c[m],m,h),c[m],m,f,void 0,h?.id);if(i.flatRows.push(y),i.rowsById[y.id]=y,g.push(y),l.options.getSubRows){var p;y.originalSubRows=l.options.getSubRows(c[m],m),(p=y.originalSubRows)!=null&&p.length&&(y.subRows=s(y.originalSubRows,f+1,y))}}return g};return i.rows=s(u),i},I(l.options,"debugTable","getRowModel",()=>l._autoResetPageIndex()))}function a1(l,u,i){return i.options.filterFromLeafRows?i1(l,u,i):u1(l,u,i)}function i1(l,u,i){var s;const c=[],f={},h=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const y=[];for(let R=0;R<p.length;R++){var b;let S=p[R];const z=Fo(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);if(z.columnFilters=S.columnFilters,(b=S.subRows)!=null&&b.length&&m<h){if(z.subRows=g(S.subRows,m+1),S=z,u(S)&&!z.subRows.length){y.push(S),f[S.id]=S,c.push(S);continue}if(u(S)||z.subRows.length){y.push(S),f[S.id]=S,c.push(S);continue}}else S=z,u(S)&&(y.push(S),f[S.id]=S,c.push(S))}return y};return{rows:g(l),flatRows:c,rowsById:f}}function u1(l,u,i){var s;const c=[],f={},h=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const y=[];for(let R=0;R<p.length;R++){let S=p[R];if(u(S)){var b;if((b=S.subRows)!=null&&b.length&&m<h){const T=Fo(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);T.subRows=g(S.subRows,m+1),S=T}y.push(S),c.push(S),f[S.id]=S}}return y};return{rows:g(l),flatRows:c,rowsById:f}}function s1(){return l=>P(()=>[l.getPreFilteredRowModel(),l.getState().columnFilters,l.getState().globalFilter],(u,i,s)=>{if(!u.rows.length||!(i!=null&&i.length)&&!s){for(let R=0;R<u.flatRows.length;R++)u.flatRows[R].columnFilters={},u.flatRows[R].columnFiltersMeta={};return u}const c=[],f=[];(i??[]).forEach(R=>{var S;const z=l.getColumn(R.id);if(!z)return;const T=z.getFilterFn();T&&c.push({id:R.id,filterFn:T,resolvedValue:(S=T.resolveFilterValue==null?void 0:T.resolveFilterValue(R.value))!=null?S:R.value})});const h=(i??[]).map(R=>R.id),g=l.getGlobalFilterFn(),p=l.getAllLeafColumns().filter(R=>R.getCanGlobalFilter());s&&g&&p.length&&(h.push("__global__"),p.forEach(R=>{var S;f.push({id:R.id,filterFn:g,resolvedValue:(S=g.resolveFilterValue==null?void 0:g.resolveFilterValue(s))!=null?S:s})}));let m,y;for(let R=0;R<u.flatRows.length;R++){const S=u.flatRows[R];if(S.columnFilters={},c.length)for(let z=0;z<c.length;z++){m=c[z];const T=m.id;S.columnFilters[T]=m.filterFn(S,T,m.resolvedValue,U=>{S.columnFiltersMeta[T]=U})}if(f.length){for(let z=0;z<f.length;z++){y=f[z];const T=y.id;if(y.filterFn(S,T,y.resolvedValue,U=>{S.columnFiltersMeta[T]=U})){S.columnFilters.__global__=!0;break}}S.columnFilters.__global__!==!0&&(S.columnFilters.__global__=!1)}}const b=R=>{for(let S=0;S<h.length;S++)if(R.columnFilters[h[S]]===!1)return!1;return!0};return a1(u.rows,b,l)},I(l.options,"debugTable","getFilteredRowModel",()=>l._autoResetPageIndex()))}function r1(){return l=>P(()=>[l.getState().sorting,l.getPreSortedRowModel()],(u,i)=>{if(!i.rows.length||!(u!=null&&u.length))return i;const s=l.getState().sorting,c=[],f=s.filter(p=>{var m;return(m=l.getColumn(p.id))==null?void 0:m.getCanSort()}),h={};f.forEach(p=>{const m=l.getColumn(p.id);m&&(h[p.id]={sortUndefined:m.columnDef.sortUndefined,invertSorting:m.columnDef.invertSorting,sortingFn:m.getSortingFn()})});const g=p=>{const m=p.map(y=>({...y}));return m.sort((y,b)=>{for(let S=0;S<f.length;S+=1){var R;const z=f[S],T=h[z.id],U=T.sortUndefined,H=(R=z?.desc)!=null?R:!1;let V=0;if(U){const G=y.getValue(z.id),ne=b.getValue(z.id),ee=G===void 0,pe=ne===void 0;if(ee||pe){if(U==="first")return ee?-1:1;if(U==="last")return ee?1:-1;V=ee&&pe?0:ee?U:-U}}if(V===0&&(V=T.sortingFn(y,b,z.id)),V!==0)return H&&(V*=-1),T.invertSorting&&(V*=-1),V}return y.index-b.index}),m.forEach(y=>{var b;c.push(y),(b=y.subRows)!=null&&b.length&&(y.subRows=g(y.subRows))}),m};return{rows:g(i.rows),flatRows:c,rowsById:i.rowsById}},I(l.options,"debugTable","getSortedRowModel",()=>l._autoResetPageIndex()))}/**
   * react-table
   *
   * Copyright (c) TanStack
   *
   * 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
   */function zg(l,u){return l?o1(l)?w.createElement(l,u):l:null}function o1(l){return c1(l)||typeof l=="function"||f1(l)}function c1(l){return typeof l=="function"&&(()=>{const u=Object.getPrototypeOf(l);return u.prototype&&u.prototype.isReactComponent})()}function f1(l){return typeof l=="object"&&typeof l.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(l.$$typeof.description)}function d1(l){const u={state:{},onStateChange:()=>{},renderFallbackValue:null,...l},[i]=w.useState(()=>({current:n1(u)})),[s,c]=w.useState(()=>i.current.initialState);return i.current.setOptions(f=>({...f,...l,state:{...s,...l.state},onStateChange:h=>{c(h),l.onStateChange==null||l.onStateChange(h)}})),i.current}function h1(l){const u=l?.original?.metadata?.petriFailed;return typeof u=="number"&&u>0?"failed-row":"passed-row"}function g1({data:l,columns:u,sorting:i,onSortingChange:s,columnWidthMap:c,estimatedRowHeight:f=100,overscan:h=20,getRowClassName:g,onRowClick:p,scrollToIndex:m}){const y=d1({data:l,columns:u,state:{sorting:i},onSortingChange:s,getCoreRowModel:l1(),getSortedRowModel:r1(),getFilteredRowModel:s1(),enableSorting:!0,enableSortingRemoval:!1,debugTable:!1}),{rows:b}=y.getRowModel(),R=w.useRef(null),S=w.useRef(null),[z,T]=w.useState(25.5);w.useLayoutEffect(()=>{const H=S.current;H&&T(H.getBoundingClientRect().height)},[]);const U=vS({count:b.length,getScrollElement:()=>R.current,estimateSize:()=>f,overscan:h,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?H=>H?.getBoundingClientRect().height:void 0});return w.useEffect(()=>{U.calculateRange(),U.getVirtualItems().forEach(H=>{const V=document.querySelector(`[data-index="${H.index}"]`);V&&U.measureElement(V)})},[b.length,l,U]),w.useEffect(()=>{if(m!=null&&!(m<0||m>=b.length))try{U.scrollToIndex(m,{align:"center"})}catch{}},[m,U,b.length]),F.jsxs("div",{children:[F.jsx("div",{ref:S,className:"virtualized-table-header-container",children:F.jsx("table",{className:"virtualized-table",children:F.jsx("thead",{children:y.getHeaderGroups().map(H=>F.jsx("tr",{children:H.headers.map(V=>F.jsx("th",{className:V.column.getCanSort()?"sortable":"",onClick:V.column.getToggleSortingHandler(),style:{width:c[V.column.id]},children:F.jsxs("div",{className:"virtualized-table-header-content",children:[V.isPlaceholder?null:zg(V.column.columnDef.header,V.getContext()),V.column.getCanSort()&&F.jsx("span",{className:"sort-indicator",children:{asc:"↑",desc:"↓"}[V.column.getIsSorted()]??"⇅"})]})},V.id))},H.id))})})}),F.jsx("div",{ref:R,className:"virtualized-table-body",style:{height:`calc(100vh - 4rem - ${z}px)`},children:F.jsx("div",{style:{height:`${U.getTotalSize()}px`},children:U.getVirtualItems().map(H=>{const V=b[H.index];return F.jsx("div",{"data-index":H.index,ref:U.measureElement,className:`virtualized-table-row ${g?g(V):h1(V)}`,style:{position:"absolute",width:"100%",transform:`translateY(${H.start}px)`},onClick:p?G=>p(V,G):void 0,children:F.jsx("table",{className:"virtualized-table",children:F.jsx("tbody",{children:F.jsx("tr",{children:V.getVisibleCells().map(G=>F.jsx("td",{style:{boxSizing:"border-box",width:c[G.column.id]},children:zg(G.column.columnDef.cell,G.getContext())},G.id))})})})},V.id)})})})]})}function m1({value:l,onChange:u,inputRef:i,usePersistentSearching:s=!0}){const c=Yt(),f=Il(),h=w.useRef(!0),g=w.useRef(null),p=i||g;return w.useEffect(()=>{if(!s){h.current=!1;return}const y=new URLSearchParams(c.search).get("search");y!==null&&y!==l&&u(y),h.current=!1},[]),w.useEffect(()=>{if(!s||h.current)return;const m=new URLSearchParams(c.search);l?m.set("search",l):m.delete("search");const y=m.toString(),b=y?`${c.pathname}?${y}`:c.pathname;c.pathname+c.search!==b&&f(b,{replace:!0})},[l,c.pathname,f,c.search,s]),w.useEffect(()=>{const m=y=>{const b=navigator.platform.toUpperCase().includes("MAC");(y.key==="f"||y.key==="F")&&(b&&y.metaKey||!b&&y.ctrlKey)&&document.activeElement!==p.current&&(y.preventDefault(),p.current?.focus(),p.current?.select()),y.key==="Escape"&&l&&u("")};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[l,u]),F.jsxs("div",{style:{display:"inline-block"},children:[F.jsx("input",{ref:p,value:l,onChange:m=>u(m.target.value),placeholder:"Filter ...",className:"common-search-input"}),l&&F.jsx("button",{onClick:()=>u(""),className:"common-search-clear-btn",title:"Clear filter",children:"×"})]})}const p1=[{id:"creationTime",desc:!0}],v1={name:105,creationTime:190,status:60,failed:50,total:60,ghRun:105},y1=l=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:u=>u.metadata.petriFailed===0?"passed":"failed",cell:u=>{const i=u.getValue();return F.jsx("div",{className:"common-status-cell",children:F.jsx("div",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"failed",accessorKey:"metadata.petriFailed",header:"Fail",enableSorting:!0,cell:u=>F.jsx("div",{className:"common-failed-count",children:u.getValue()})},{id:"total",header:"Total",enableSorting:!0,accessorFn:u=>u.metadata.petriPassed+u.metadata.petriFailed,cell:u=>F.jsx("div",{className:"common-total-count",children:u.getValue()})},{accessorKey:"name",header:"Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return F.jsx("a",{href:"#",onClick:s=>{s.preventDefault()},className:"common-table-link",children:i})},sortingFn:(u,i,s)=>{const c=u.getValue(s),f=i.getValue(s);return c.localeCompare(f)}},{accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:u=>F.jsx("div",{className:"created-date",children:u.getValue().toLocaleString()}),sortingFn:(u,i,s)=>{const c=u.getValue(s),f=i.getValue(s);return c.getTime()-f.getTime()}},{accessorKey:"metadata.ghBranch",header:"Branch",enableSorting:!0,cell:u=>{const i=u.getValue()||"";return F.jsx("div",{className:"branch-name",title:i,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"1.25rem"},children:i})}},{accessorKey:"metadata.ghPr",header:"PR",enableSorting:!0,accessorFn:u=>{const i=u.metadata.ghPr,s=u.metadata.prTitle;return i?`${i} ${s||""}`.trim():""},cell:u=>{const i=u.row.original,s=i.metadata.ghPr,c=i.metadata.prTitle,f=s?`#${s}${c?` ${c}`:""}`:"";return s?F.jsx("div",{className:"pr-cell",children:F.jsx("a",{href:`https://github.com/microsoft/openvmm/pull/${s}`,target:"_blank",rel:"noopener noreferrer",className:"pr-link",title:c?`#${s} ${c}`:`PR #${s}`,children:f})}):F.jsx("div",{className:"no-pr",children:"-"})},sortingFn:(u,i)=>{const s=u.original.metadata.ghPr,c=i.original.metadata.ghPr;return!s&&!c?0:s?c?parseInt(s)-parseInt(c):-1:1}},{id:"ghRun",accessorKey:"name",header:"GH Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return F.jsx("a",{href:`https://github.com/microsoft/openvmm/actions/runs/${i}`,target:"_blank",rel:"noopener noreferrer",className:"common-table-link",children:i})},sortingFn:(u,i,s)=>{const c=u.getValue(s),f=i.getValue(s);return c.localeCompare(f)}}];function S1(){const l=Il(),[u,i]=c0(),s=u.get("branchFilter")||"all",[c,f]=w.useState(s),[h,g]=w.useState("");w.useEffect(()=>{f(s)},[s]);const p=U=>{f(U);const H=new URLSearchParams(u);H.set("branchFilter",U),i(H,{replace:!0})},{data:m=[],isSuccess:y}=W0({queryKey:["runs"],queryFn:U=>Wg(U.client),staleTime:120*1e3,gcTime:1/0,refetchInterval:120*1e3}),b=y&&m.length===0,[R,S]=w.useState(p1),z=w.useMemo(()=>y1(),[l]),T=w.useMemo(()=>R1(m,c,h),[m,c,h]);return F.jsxs("div",{className:"common-page-display",children:[F.jsx("div",{className:"common-page-header",children:F.jsx(C1,{branchFilter:c,setBranchFilter:p,searchFilter:h,setSearchFilter:g,resultCount:T.length})}),b?F.jsx("div",{className:"common-no-data",children:"Table contains no data."}):F.jsx(g1,{data:T,columns:z,sorting:R,onSortingChange:S,columnWidthMap:v1})]})}function C1({branchFilter:l,setBranchFilter:u,searchFilter:i,setSearchFilter:s,resultCount:c}){return F.jsxs(F.Fragment,{children:[F.jsxs("div",{className:"common-header-left",children:[F.jsxs("div",{className:"common-header-title",children:[F.jsx(iS,{}),F.jsx(Lo,{to:"/runs",className:"common-header-path",children:"Runs"})]}),F.jsxs("div",{className:"common-header-filter-buttons",children:[F.jsx("button",{className:`common-header-filter-btn ${l==="all"?"active":""}`,onClick:()=>u("all"),children:"all"}),F.jsx("button",{className:`common-header-filter-btn ${l==="main"?"active":""}`,onClick:()=>u("main"),children:"main"})]})]}),F.jsxs("div",{className:"common-header-right",children:[F.jsx(m1,{value:i,onChange:s}),F.jsxs("span",{className:"common-result-count",children:[c," runs"]})]})]})}function R1(l,u,i){let s=u==="all"?l:l.filter(f=>f.metadata.ghBranch===u);const c=i.trim().toLowerCase().split(/\s+/).filter(Boolean);return c.length===0?s:s.filter(f=>{const h=f.metadata.petriFailed===0?"passed":"failed",g=f.metadata.ghPr?`${f.metadata.ghPr} ${f.metadata.prTitle||""}`:"",p=`${f.name} ${h} ${f.metadata.ghBranch||""} ${g}`.toLowerCase();return c.every(m=>p.includes(m))})}const cm=new j0;nS(cm);Yv.createRoot(document.getElementById("root")).render(F.jsx(Lv.StrictMode,{children:F.jsx(i0,{children:F.jsx(G0,{client:cm,children:F.jsx(b1,{})})})}));function b1(){return F.jsxs(Ny,{children:[F.jsx(go,{path:"/",element:F.jsx(Hy,{to:"/runs",replace:!0})}),F.jsx(go,{path:"runs",element:F.jsx(S1,{})})]})}
