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

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

(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function u(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(o){if(o.ep)return;o.ep=!0;const f=u(o);fetch(o.href,f)}})();function qg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var io={exports:{}},ka={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ug;function Iv(){if(ug)return ka;ug=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(s,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var h in o)h!=="key"&&(f[h]=o[h])}else f=o;return o=f.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:f}}return ka.Fragment=i,ka.jsx=u,ka.jsxs=u,ka}var sg;function Pv(){return sg||(sg=1,io.exports=Iv()),io.exports}var _=Pv(),uo={exports:{}},re={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rg;function Wv(){if(rg)return re;rg=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),R=Symbol.iterator;function S(M){return M===null||typeof M!="object"?null:(M=R&&M[R]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,O={};function z(M,B,X){this.props=M,this.context=B,this.refs=O,this.updater=X||x}z.prototype.isReactComponent={},z.prototype.setState=function(M,B){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,B,"setState")},z.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function U(){}U.prototype=z.prototype;function G(M,B,X){this.props=M,this.context=B,this.refs=O,this.updater=X||x}var K=G.prototype=new U;K.constructor=G,w(K,z.prototype),K.isPureReactComponent=!0;var $=Array.isArray;function Y(){}var Z={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function se(M,B,X){var k=X.ref;return{$$typeof:n,type:M,key:B,ref:k!==void 0?k:null,props:X}}function ee(M,B){return se(M.type,B,M.props)}function P(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function ie(M){var B={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(X){return B[X]})}var ze=/\/+/g;function ye(M,B){return typeof M=="object"&&M!==null&&M.key!=null?ie(""+M.key):B.toString(36)}function Ye(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(Y,Y):(M.status="pending",M.then(function(B){M.status==="pending"&&(M.status="fulfilled",M.value=B)},function(B){M.status==="pending"&&(M.status="rejected",M.reason=B)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function L(M,B,X,k,oe){var de=typeof M;(de==="undefined"||de==="boolean")&&(M=null);var be=!1;if(M===null)be=!0;else switch(de){case"bigint":case"string":case"number":be=!0;break;case"object":switch(M.$$typeof){case n:case i:be=!0;break;case v:return be=M._init,L(be(M._payload),B,X,k,oe)}}if(be)return oe=oe(M),be=k===""?"."+ye(M,0):k,$(oe)?(X="",be!=null&&(X=be.replace(ze,"$&/")+"/"),L(oe,B,X,"",function(la){return la})):oe!=null&&(P(oe)&&(oe=ee(oe,X+(oe.key==null||M&&M.key===oe.key?"":(""+oe.key).replace(ze,"$&/")+"/")+be)),B.push(oe)),1;be=0;var lt=k===""?".":k+":";if($(M))for(var Ve=0;Ve<M.length;Ve++)k=M[Ve],de=lt+ye(k,Ve),be+=L(k,B,X,de,oe);else if(Ve=S(M),typeof Ve=="function")for(M=Ve.call(M),Ve=0;!(k=M.next()).done;)k=k.value,de=lt+ye(k,Ve++),be+=L(k,B,X,de,oe);else if(de==="object"){if(typeof M.then=="function")return L(Ye(M),B,X,k,oe);throw B=String(M),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(M,B,X){if(M==null)return M;var k=[],oe=0;return L(M,k,"","",function(de){return B.call(X,de,oe++)}),k}function ae(M){if(M._status===-1){var B=M._result;B=B(),B.then(function(X){(M._status===0||M._status===-1)&&(M._status=1,M._result=X)},function(X){(M._status===0||M._status===-1)&&(M._status=2,M._result=X)}),M._status===-1&&(M._status=0,M._result=B)}if(M._status===1)return M._result.default;throw M._result}var we=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Ae={map:Q,forEach:function(M,B,X){Q(M,function(){B.apply(this,arguments)},X)},count:function(M){var B=0;return Q(M,function(){B++}),B},toArray:function(M){return Q(M,function(B){return B})||[]},only:function(M){if(!P(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return re.Activity=C,re.Children=Ae,re.Component=z,re.Fragment=u,re.Profiler=o,re.PureComponent=G,re.StrictMode=s,re.Suspense=m,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,re.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Z.H.useMemoCache(M)}},re.cache=function(M){return function(){return M.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(M,B,X){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var k=w({},M.props),oe=M.key;if(B!=null)for(de in B.key!==void 0&&(oe=""+B.key),B)!ue.call(B,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&B.ref===void 0||(k[de]=B[de]);var de=arguments.length-2;if(de===1)k.children=X;else if(1<de){for(var be=Array(de),lt=0;lt<de;lt++)be[lt]=arguments[lt+2];k.children=be}return se(M.type,oe,k)},re.createContext=function(M){return M={$$typeof:d,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:f,_context:M},M},re.createElement=function(M,B,X){var k,oe={},de=null;if(B!=null)for(k in B.key!==void 0&&(de=""+B.key),B)ue.call(B,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(oe[k]=B[k]);var be=arguments.length-2;if(be===1)oe.children=X;else if(1<be){for(var lt=Array(be),Ve=0;Ve<be;Ve++)lt[Ve]=arguments[Ve+2];oe.children=lt}if(M&&M.defaultProps)for(k in be=M.defaultProps,be)oe[k]===void 0&&(oe[k]=be[k]);return se(M,de,oe)},re.createRef=function(){return{current:null}},re.forwardRef=function(M){return{$$typeof:h,render:M}},re.isValidElement=P,re.lazy=function(M){return{$$typeof:v,_payload:{_status:-1,_result:M},_init:ae}},re.memo=function(M,B){return{$$typeof:p,type:M,compare:B===void 0?null:B}},re.startTransition=function(M){var B=Z.T,X={};Z.T=X;try{var k=M(),oe=Z.S;oe!==null&&oe(X,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(Y,we)}catch(de){we(de)}finally{B!==null&&X.types!==null&&(B.types=X.types),Z.T=B}},re.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},re.use=function(M){return Z.H.use(M)},re.useActionState=function(M,B,X){return Z.H.useActionState(M,B,X)},re.useCallback=function(M,B){return Z.H.useCallback(M,B)},re.useContext=function(M){return Z.H.useContext(M)},re.useDebugValue=function(){},re.useDeferredValue=function(M,B){return Z.H.useDeferredValue(M,B)},re.useEffect=function(M,B){return Z.H.useEffect(M,B)},re.useEffectEvent=function(M){return Z.H.useEffectEvent(M)},re.useId=function(){return Z.H.useId()},re.useImperativeHandle=function(M,B,X){return Z.H.useImperativeHandle(M,B,X)},re.useInsertionEffect=function(M,B){return Z.H.useInsertionEffect(M,B)},re.useLayoutEffect=function(M,B){return Z.H.useLayoutEffect(M,B)},re.useMemo=function(M,B){return Z.H.useMemo(M,B)},re.useOptimistic=function(M,B){return Z.H.useOptimistic(M,B)},re.useReducer=function(M,B,X){return Z.H.useReducer(M,B,X)},re.useRef=function(M){return Z.H.useRef(M)},re.useState=function(M){return Z.H.useState(M)},re.useSyncExternalStore=function(M,B,X){return Z.H.useSyncExternalStore(M,B,X)},re.useTransition=function(){return Z.H.useTransition()},re.version="19.2.0",re}var og;function Ho(){return og||(og=1,uo.exports=Wv()),uo.exports}var E=Ho();const ey=qg(E);var so={exports:{}},Ia={},ro={exports:{}},oo={};/**
 * @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 cg;function ty(){return cg||(cg=1,(function(n){function i(L,Q){var ae=L.length;L.push(Q);e:for(;0<ae;){var we=ae-1>>>1,Ae=L[we];if(0<o(Ae,Q))L[we]=Q,L[ae]=Ae,ae=we;else break e}}function u(L){return L.length===0?null:L[0]}function s(L){if(L.length===0)return null;var Q=L[0],ae=L.pop();if(ae!==Q){L[0]=ae;e:for(var we=0,Ae=L.length,M=Ae>>>1;we<M;){var B=2*(we+1)-1,X=L[B],k=B+1,oe=L[k];if(0>o(X,ae))k<Ae&&0>o(oe,X)?(L[we]=oe,L[k]=ae,we=k):(L[we]=X,L[B]=ae,we=B);else if(k<Ae&&0>o(oe,ae))L[we]=oe,L[k]=ae,we=k;else break e}}return Q}function o(L,Q){var ae=L.sortIndex-Q.sortIndex;return ae!==0?ae:L.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],p=[],v=1,C=null,R=3,S=!1,x=!1,w=!1,O=!1,z=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function K(L){for(var Q=u(p);Q!==null;){if(Q.callback===null)s(p);else if(Q.startTime<=L)s(p),Q.sortIndex=Q.expirationTime,i(m,Q);else break;Q=u(p)}}function $(L){if(w=!1,K(L),!x)if(u(m)!==null)x=!0,Y||(Y=!0,ie());else{var Q=u(p);Q!==null&&Ye($,Q.startTime-L)}}var Y=!1,Z=-1,ue=5,se=-1;function ee(){return O?!0:!(n.unstable_now()-se<ue)}function P(){if(O=!1,Y){var L=n.unstable_now();se=L;var Q=!0;try{e:{x=!1,w&&(w=!1,U(Z),Z=-1),S=!0;var ae=R;try{t:{for(K(L),C=u(m);C!==null&&!(C.expirationTime>L&&ee());){var we=C.callback;if(typeof we=="function"){C.callback=null,R=C.priorityLevel;var Ae=we(C.expirationTime<=L);if(L=n.unstable_now(),typeof Ae=="function"){C.callback=Ae,K(L),Q=!0;break t}C===u(m)&&s(m),K(L)}else s(m);C=u(m)}if(C!==null)Q=!0;else{var M=u(p);M!==null&&Ye($,M.startTime-L),Q=!1}}break e}finally{C=null,R=ae,S=!1}Q=void 0}}finally{Q?ie():Y=!1}}}var ie;if(typeof G=="function")ie=function(){G(P)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,ye=ze.port2;ze.port1.onmessage=P,ie=function(){ye.postMessage(null)}}else ie=function(){z(P,0)};function Ye(L,Q){Z=z(function(){L(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.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"):ue=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_next=function(L){switch(R){case 1:case 2:case 3:var Q=3;break;default:Q=R}var ae=R;R=Q;try{return L()}finally{R=ae}},n.unstable_requestPaint=function(){O=!0},n.unstable_runWithPriority=function(L,Q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ae=R;R=L;try{return Q()}finally{R=ae}},n.unstable_scheduleCallback=function(L,Q,ae){var we=n.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?we+ae:we):ae=we,L){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=ae+Ae,L={id:v++,callback:Q,priorityLevel:L,startTime:ae,expirationTime:Ae,sortIndex:-1},ae>we?(L.sortIndex=ae,i(p,L),u(m)===null&&L===u(p)&&(w?(U(Z),Z=-1):w=!0,Ye($,ae-we))):(L.sortIndex=Ae,i(m,L),x||S||(x=!0,Y||(Y=!0,ie()))),L},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(L){var Q=R;return function(){var ae=R;R=Q;try{return L.apply(this,arguments)}finally{R=ae}}}})(oo)),oo}var fg;function ny(){return fg||(fg=1,ro.exports=ty()),ro.exports}var co={exports:{}},tt={};/**
 * @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 dg;function ly(){if(dg)return tt;dg=1;var n=Ho();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(m,p,v){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:C==null?null:""+C,children:m,containerInfo:p,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,tt.createPortal=function(m,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(m,p,null,v)},tt.flushSync=function(m){var p=d.T,v=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=p,s.p=v,s.d.f()}},tt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},tt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},tt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var v=p.as,C=h(v,p.crossOrigin),R=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:C,integrity:R,fetchPriority:S}):v==="script"&&s.d.X(m,{crossOrigin:C,integrity:R,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},tt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,C=h(v,p.crossOrigin);s.d.L(m,v,{crossOrigin:C,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(m,p){if(typeof m=="string")if(p){var v=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},tt.requestFormReset=function(m){s.d.r(m)},tt.unstable_batchedUpdates=function(m,p){return m(p)},tt.useFormState=function(m,p,v){return d.H.useFormState(m,p,v)},tt.useFormStatus=function(){return d.H.useHostTransitionStatus()},tt.version="19.2.0",tt}var hg;function Bg(){if(hg)return co.exports;hg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),co.exports=ly(),co.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 gg;function ay(){if(gg)return Ia;gg=1;var n=ny(),i=Ho(),u=Bg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(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 h(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 m(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,a=t;;){var r=l.return;if(r===null)break;var c=r.alternate;if(c===null){if(a=r.return,a!==null){l=a;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===l)return m(r),e;if(c===a)return m(r),t;c=c.sibling}throw Error(s(188))}if(l.return!==a.return)l=r,a=c;else{for(var g=!1,y=r.child;y;){if(y===l){g=!0,l=r,a=c;break}if(y===a){g=!0,a=r,l=c;break}y=y.sibling}if(!g){for(y=c.child;y;){if(y===l){g=!0,l=c,a=r;break}if(y===a){g=!0,a=c,l=r;break}y=y.sibling}if(!g)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var C=Object.assign,R=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),G=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case z:return"Profiler";case O:return"StrictMode";case $:return"Suspense";case Y:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case G:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var Ye=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},we=[],Ae=-1;function M(e){return{current:e}}function B(e){0>Ae||(e.current=we[Ae],we[Ae]=null,Ae--)}function X(e,t){Ae++,we[Ae]=e.current,e.current=t}var k=M(null),oe=M(null),de=M(null),be=M(null);function lt(e,t){switch(X(de,t),X(oe,e),X(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ah(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ah(t),e=Oh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(k),X(k,e)}function Ve(){B(k),B(oe),B(de)}function la(e){e.memoizedState!==null&&X(be,e);var t=k.current,l=Oh(t,e.type);t!==l&&(X(oe,e),X(k,l))}function oi(e){oe.current===e&&(B(k),B(oe)),be.current===e&&(B(be),Xa._currentValue=ae)}var Bu,ac;function Yn(e){if(Bu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||"",ac=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Bu+e+ac}var Gu=!1;function $u(e,t){if(!e||Gu)return"";Gu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(H){var j=H}Reflect.construct(e,[],q)}else{try{q.call()}catch(H){j=H}e.call(q.prototype)}}else{try{throw Error()}catch(H){j=H}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(H){if(H&&j&&typeof H.stack=="string")return[H.stack,j.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 c=a.DetermineComponentFrameRoot(),g=c[0],y=c[1];if(g&&y){var b=g.split(`
`),N=y.split(`
`);for(r=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;if(a===b.length||r===N.length)for(a=b.length-1,r=N.length-1;1<=a&&0<=r&&b[a]!==N[r];)r--;for(;1<=a&&0<=r;a--,r--)if(b[a]!==N[r]){if(a!==1||r!==1)do if(a--,r--,0>r||b[a]!==N[r]){var V=`
`+b[a].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=a&&0<=r);break}}}finally{Gu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Yn(l):""}function Mm(e,t){switch(e.tag){case 26:case 27:case 5:return Yn(e.type);case 16:return Yn("Lazy");case 13:return e.child!==t&&t!==null?Yn("Suspense Fallback"):Yn("Suspense");case 19:return Yn("SuspenseList");case 0:case 15:return $u(e.type,!1);case 11:return $u(e.type.render,!1);case 1:return $u(e.type,!0);case 31:return Yn("Activity");default:return""}}function ic(e){try{var t="",l=null;do t+=Mm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Qu=Object.prototype.hasOwnProperty,Yu=n.unstable_scheduleCallback,Xu=n.unstable_cancelCallback,Am=n.unstable_shouldYield,Om=n.unstable_requestPaint,ht=n.unstable_now,zm=n.unstable_getCurrentPriorityLevel,uc=n.unstable_ImmediatePriority,sc=n.unstable_UserBlockingPriority,ci=n.unstable_NormalPriority,Dm=n.unstable_LowPriority,rc=n.unstable_IdlePriority,Nm=n.log,jm=n.unstable_setDisableYieldValue,aa=null,gt=null;function vn(e){if(typeof Nm=="function"&&jm(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(aa,e)}catch{}}var mt=Math.clz32?Math.clz32:Lm,Um=Math.log,Hm=Math.LN2;function Lm(e){return e>>>=0,e===0?32:31-(Um(e)/Hm|0)|0}var fi=256,di=262144,hi=4194304;function Xn(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 gi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var r=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~c,a!==0?r=Xn(a):(g&=y,g!==0?r=Xn(g):l||(l=y&~e,l!==0&&(r=Xn(l))))):(y=a&~c,y!==0?r=Xn(y):g!==0?r=Xn(g):l||(l=a&~e,l!==0&&(r=Xn(l)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:r}function ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Vm(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 oc(){var e=hi;return hi<<=1,(hi&62914560)===0&&(hi=4194304),e}function Ku(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fm(e,t,l,a,r,c){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var y=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(l=g&~l;0<l;){var V=31-mt(l),q=1<<V;y[V]=0,b[V]=-1;var j=N[V];if(j!==null)for(N[V]=null,V=0;V<j.length;V++){var H=j[V];H!==null&&(H.lane&=-536870913)}l&=~q}a!==0&&cc(e,a,0),c!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function cc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-mt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function fc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-mt(l),r=1<<a;r&t|e[a]&t&&(e[a]|=t),l&=~r}}function dc(e,t){var l=t&-t;return l=(l&42)!==0?1:Zu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Zu(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 Ju(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Wh(e.type))}function gc(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var yn=Math.random().toString(36).slice(2),Je="__reactFiber$"+yn,it="__reactProps$"+yn,ml="__reactContainer$"+yn,ku="__reactEvents$"+yn,qm="__reactListeners$"+yn,Bm="__reactHandles$"+yn,mc="__reactResources$"+yn,sa="__reactMarker$"+yn;function Iu(e){delete e[Je],delete e[it],delete e[ku],delete e[qm],delete e[Bm]}function pl(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ml]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Lh(e);e!==null;){if(l=e[Je])return l;e=Lh(e)}return t}e=l,l=e.parentNode}return null}function vl(e){if(e=e[Je]||e[ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ra(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function yl(e){var t=e[mc];return t||(t=e[mc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[sa]=!0}var pc=new Set,vc={};function Kn(e,t){Sl(e,t),Sl(e+"Capture",t)}function Sl(e,t){for(vc[e]=t,e=0;e<t.length;e++)pc.add(t[e])}var Gm=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]*$"),yc={},Sc={};function $m(e){return Qu.call(Sc,e)?!0:Qu.call(yc,e)?!1:Gm.test(e)?Sc[e]=!0:(yc[e]=!0,!1)}function mi(e,t,l){if($m(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){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,""+l)}}function pi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Jt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qm(e,t,l){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,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pu(e){if(!e._valueTracker){var t=Cc(e)?"checked":"value";e._valueTracker=Qm(e,t,""+e[t])}}function Rc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Cc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function vi(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 Ym=/[\n"\\]/g;function _t(e){return e.replace(Ym,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Wu(e,t,l,a,r,c,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?es(e,g,Tt(t)):l!=null?es(e,g,Tt(l)):a!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Tt(y):e.removeAttribute("name")}function bc(e,t,l,a,r,c,g,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Pu(e);return}l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Pu(e)}function es(e,t,l){t==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Cl(e,t,l,a){if(e=e.options,t){t={};for(var r=0;r<l.length;r++)t["$"+l[r]]=!0;for(l=0;l<e.length;l++)r=t.hasOwnProperty("$"+e[l].value),e[l].selected!==r&&(e[l].selected=r),r&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,r=0;r<e.length;r++){if(e[r].value===l){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Ec(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function xc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(Ye(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Pu(e)}function Rl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Xm=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 wc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Xm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Tc(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var a in l)!l.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)&&l[r]!==a&&wc(e,r,a)}else for(var c in t)t.hasOwnProperty(c)&&wc(e,c,t[c])}function ts(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 Km=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"]]),Zm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function yi(e){return Zm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kt(){}var ns=null;function ls(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,El=null;function _c(e){var t=vl(e);if(t&&(e=t.stateNode)){var l=e[it]||null;e:switch(e=t.stateNode,t.type){case"input":if(Wu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var r=a[it]||null;if(!r)throw Error(s(90));Wu(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Rc(a)}break e;case"textarea":Ec(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Cl(e,!!l.multiple,t,!1)}}}var as=!1;function Mc(e,t,l){if(as)return e(t,l);as=!0;try{var a=e(t);return a}finally{if(as=!1,(bl!==null||El!==null)&&(iu(),bl&&(t=bl,e=El,El=bl=null,_c(t),e)))for(t=0;t<e.length;t++)_c(e[t])}}function oa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[it]||null;if(a===null)return null;l=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(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var It=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),is=!1;if(It)try{var ca={};Object.defineProperty(ca,"passive",{get:function(){is=!0}}),window.addEventListener("test",ca,ca),window.removeEventListener("test",ca,ca)}catch{is=!1}var Sn=null,us=null,Si=null;function Ac(){if(Si)return Si;var e,t=us,l=t.length,a,r="value"in Sn?Sn.value:Sn.textContent,c=r.length;for(e=0;e<l&&t[e]===r[e];e++);var g=l-e;for(a=1;a<=g&&t[l-a]===r[c-a];a++);return Si=r.slice(e,1<a?1-a:void 0)}function Ci(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 Ri(){return!0}function Oc(){return!1}function ut(e){function t(l,a,r,c,g){this._reactName=l,this._targetInst=r,this.type=a,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(l=e[y],this[y]=l?l(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ri:Oc,this.isPropagationStopped=Oc,this}return C(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var Zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bi=ut(Zn),fa=C({},Zn,{view:0,detail:0}),Jm=ut(fa),ss,rs,da,Ei=C({},fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cs,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!==da&&(da&&e.type==="mousemove"?(ss=e.screenX-da.screenX,rs=e.screenY-da.screenY):rs=ss=0,da=e),ss)},movementY:function(e){return"movementY"in e?e.movementY:rs}}),zc=ut(Ei),km=C({},Ei,{dataTransfer:0}),Im=ut(km),Pm=C({},fa,{relatedTarget:0}),os=ut(Pm),Wm=C({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),ep=ut(Wm),tp=C({},Zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),np=ut(tp),lp=C({},Zn,{data:0}),Dc=ut(lp),ap={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ip={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"},up={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=up[e])?!!t[e]:!1}function cs(){return sp}var rp=C({},fa,{key:function(e){if(e.key){var t=ap[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ip[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cs,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),op=ut(rp),cp=C({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nc=ut(cp),fp=C({},fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cs}),dp=ut(fp),hp=C({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),gp=ut(hp),mp=C({},Ei,{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}),pp=ut(mp),vp=C({},Zn,{newState:0,oldState:0}),yp=ut(vp),Sp=[9,13,27,32],fs=It&&"CompositionEvent"in window,ha=null;It&&"documentMode"in document&&(ha=document.documentMode);var Cp=It&&"TextEvent"in window&&!ha,jc=It&&(!fs||ha&&8<ha&&11>=ha),Uc=" ",Hc=!1;function Lc(e,t){switch(e){case"keyup":return Sp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xl=!1;function Rp(e,t){switch(e){case"compositionend":return Vc(t);case"keypress":return t.which!==32?null:(Hc=!0,Uc);case"textInput":return e=t.data,e===Uc&&Hc?null:e;default:return null}}function bp(e,t){if(xl)return e==="compositionend"||!fs&&Lc(e,t)?(e=Ac(),Si=us=Sn=null,xl=!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 jc&&t.locale!=="ko"?null:t.data;default:return null}}var Ep={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 Fc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ep[e.type]:t==="textarea"}function qc(e,t,l,a){bl?El?El.push(a):El=[a]:bl=a,t=du(t,"onChange"),0<t.length&&(l=new bi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ga=null,ma=null;function xp(e){Eh(e,0)}function xi(e){var t=ra(e);if(Rc(t))return e}function Bc(e,t){if(e==="change")return t}var Gc=!1;if(It){var ds;if(It){var hs="oninput"in document;if(!hs){var $c=document.createElement("div");$c.setAttribute("oninput","return;"),hs=typeof $c.oninput=="function"}ds=hs}else ds=!1;Gc=ds&&(!document.documentMode||9<document.documentMode)}function Qc(){ga&&(ga.detachEvent("onpropertychange",Yc),ma=ga=null)}function Yc(e){if(e.propertyName==="value"&&xi(ma)){var t=[];qc(t,ma,e,ls(e)),Mc(xp,t)}}function wp(e,t,l){e==="focusin"?(Qc(),ga=t,ma=l,ga.attachEvent("onpropertychange",Yc)):e==="focusout"&&Qc()}function Tp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(ma)}function _p(e,t){if(e==="click")return xi(t)}function Mp(e,t){if(e==="input"||e==="change")return xi(t)}function Ap(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:Ap;function pa(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var r=l[a];if(!Qu.call(t,r)||!pt(e[r],t[r]))return!1}return!0}function Xc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kc(e,t){var l=Xc(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Xc(l)}}function Zc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=vi(e.document)}return t}function gs(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 Op=It&&"documentMode"in document&&11>=document.documentMode,wl=null,ms=null,va=null,ps=!1;function kc(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ps||wl==null||wl!==vi(a)||(a=wl,"selectionStart"in a&&gs(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}),va&&pa(va,a)||(va=a,a=du(ms,"onSelect"),0<a.length&&(t=new bi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=wl)))}function Jn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Tl={animationend:Jn("Animation","AnimationEnd"),animationiteration:Jn("Animation","AnimationIteration"),animationstart:Jn("Animation","AnimationStart"),transitionrun:Jn("Transition","TransitionRun"),transitionstart:Jn("Transition","TransitionStart"),transitioncancel:Jn("Transition","TransitionCancel"),transitionend:Jn("Transition","TransitionEnd")},vs={},Ic={};It&&(Ic=document.createElement("div").style,"AnimationEvent"in window||(delete Tl.animationend.animation,delete Tl.animationiteration.animation,delete Tl.animationstart.animation),"TransitionEvent"in window||delete Tl.transitionend.transition);function kn(e){if(vs[e])return vs[e];if(!Tl[e])return e;var t=Tl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ic)return vs[e]=t[l];return e}var Pc=kn("animationend"),Wc=kn("animationiteration"),ef=kn("animationstart"),zp=kn("transitionrun"),Dp=kn("transitionstart"),Np=kn("transitioncancel"),tf=kn("transitionend"),nf=new Map,ys="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(" ");ys.push("scrollEnd");function Lt(e,t){nf.set(e,t),Kn(t,[e])}var wi=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)},Mt=[],_l=0,Ss=0;function Ti(){for(var e=_l,t=Ss=_l=0;t<e;){var l=Mt[t];Mt[t++]=null;var a=Mt[t];Mt[t++]=null;var r=Mt[t];Mt[t++]=null;var c=Mt[t];if(Mt[t++]=null,a!==null&&r!==null){var g=a.pending;g===null?r.next=r:(r.next=g.next,g.next=r),a.pending=r}c!==0&&lf(l,r,c)}}function _i(e,t,l,a){Mt[_l++]=e,Mt[_l++]=t,Mt[_l++]=l,Mt[_l++]=a,Ss|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Cs(e,t,l,a){return _i(e,t,l,a),Mi(e)}function In(e,t){return _i(e,null,null,t),Mi(e)}function lf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var r=!1,c=e.return;c!==null;)c.childLanes|=l,a=c.alternate,a!==null&&(a.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(r=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,r&&t!==null&&(r=31-mt(l),e=c.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=l|536870912),c):null}function Mi(e){if(50<Fa)throw Fa=0,Ar=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ml={};function jp(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=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 vt(e,t,l,a){return new jp(e,t,l,a)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pt(e,t){var l=e.alternate;return l===null?(l=vt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function af(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ai(e,t,l,a,r,c){var g=0;if(a=e,typeof e=="function")Rs(e)&&(g=1);else if(typeof e=="string")g=Fv(e,l,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=vt(31,l,t,r),e.elementType=se,e.lanes=c,e;case w:return Pn(l.children,r,c,t);case O:g=8,r|=24;break;case z:return e=vt(12,l,t,r|2),e.elementType=z,e.lanes=c,e;case $:return e=vt(13,l,t,r),e.elementType=$,e.lanes=c,e;case Y:return e=vt(19,l,t,r),e.elementType=Y,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:g=10;break e;case U:g=9;break e;case K:g=11;break e;case Z:g=14;break e;case ue:g=16,a=null;break e}g=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=vt(g,l,t,r),t.elementType=e,t.type=a,t.lanes=c,t}function Pn(e,t,l,a){return e=vt(7,e,a,t),e.lanes=l,e}function bs(e,t,l){return e=vt(6,e,null,t),e.lanes=l,e}function uf(e){var t=vt(18,null,null,0);return t.stateNode=e,t}function Es(e,t,l){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sf=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var l=sf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ic(t)},sf.set(e,t),t)}return{value:e,source:t,stack:ic(t)}}var Al=[],Ol=0,Oi=null,ya=0,Ot=[],zt=0,Cn=null,Qt=1,Yt="";function Wt(e,t){Al[Ol++]=ya,Al[Ol++]=Oi,Oi=e,ya=t}function rf(e,t,l){Ot[zt++]=Qt,Ot[zt++]=Yt,Ot[zt++]=Cn,Cn=e;var a=Qt;e=Yt;var r=32-mt(a)-1;a&=~(1<<r),l+=1;var c=32-mt(t)+r;if(30<c){var g=r-r%5;c=(a&(1<<g)-1).toString(32),a>>=g,r-=g,Qt=1<<32-mt(t)+r|l<<r|a,Yt=c+e}else Qt=1<<c|l<<r|a,Yt=e}function xs(e){e.return!==null&&(Wt(e,1),rf(e,1,0))}function ws(e){for(;e===Oi;)Oi=Al[--Ol],Al[Ol]=null,ya=Al[--Ol],Al[Ol]=null;for(;e===Cn;)Cn=Ot[--zt],Ot[zt]=null,Yt=Ot[--zt],Ot[zt]=null,Qt=Ot[--zt],Ot[zt]=null}function of(e,t){Ot[zt++]=Qt,Ot[zt++]=Yt,Ot[zt++]=Cn,Qt=t.id,Yt=t.overflow,Cn=e}var ke=null,De=null,ve=!1,Rn=null,Dt=!1,Ts=Error(s(519));function bn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sa(At(t,e)),Ts}function cf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[it]=a,l){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(l=0;l<Ba.length;l++)ge(Ba[l],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),bc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),xc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||_h(t.textContent,l)?(a.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),a.onScroll!=null&&ge("scroll",t),a.onScrollEnd!=null&&ge("scrollend",t),a.onClick!=null&&(t.onclick=kt),t=!0):t=!1,t||bn(e,!0)}function ff(e){for(ke=e.return;ke;)switch(ke.tag){case 5:case 31:case 13:Dt=!1;return;case 27:case 3:Dt=!0;return;default:ke=ke.return}}function zl(e){if(e!==ke)return!1;if(!ve)return ff(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Qr(e.type,e.memoizedProps)),l=!l),l&&De&&bn(e),ff(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=Hh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=Hh(e)}else t===27?(t=De,Hn(e.type)?(e=Jr,Jr=null,De=e):De=t):De=ke?jt(e.stateNode.nextSibling):null;return!0}function Wn(){De=ke=null,ve=!1}function _s(){var e=Rn;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),Rn=null),e}function Sa(e){Rn===null?Rn=[e]:Rn.push(e)}var Ms=M(null),el=null,en=null;function En(e,t,l){X(Ms,t._currentValue),t._currentValue=l}function tn(e){e._currentValue=Ms.current,B(Ms)}function As(e,t,l){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===l)break;e=e.return}}function Os(e,t,l,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var c=r.dependencies;if(c!==null){var g=r.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=r;for(var b=0;b<t.length;b++)if(y.context===t[b]){c.lanes|=l,y=c.alternate,y!==null&&(y.lanes|=l),As(c.return,l,e),a||(g=null);break e}c=y.next}}else if(r.tag===18){if(g=r.return,g===null)throw Error(s(341));g.lanes|=l,c=g.alternate,c!==null&&(c.lanes|=l),As(g,l,e),g=null}else g=r.child;if(g!==null)g.return=r;else for(g=r;g!==null;){if(g===e){g=null;break}if(r=g.sibling,r!==null){r.return=g.return,g=r;break}g=g.return}r=g}}function Dl(e,t,l,a){e=null;for(var r=t,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var g=r.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var y=r.type;pt(r.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(r===be.current){if(g=r.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Xa):e=[Xa])}r=r.return}e!==null&&Os(t,e,l,a),t.flags|=262144}function zi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){el=e,en=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return df(el,e)}function Di(e,t){return el===null&&tl(e),df(e,t)}function df(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},en===null){if(e===null)throw Error(s(308));en=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else en=en.next=t;return l}var Up=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Hp=n.unstable_scheduleCallback,Lp=n.unstable_NormalPriority,Be={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zs(){return{controller:new Up,data:new Map,refCount:0}}function Ca(e){e.refCount--,e.refCount===0&&Hp(Lp,function(){e.controller.abort()})}var Ra=null,Ds=0,Nl=0,jl=null;function Vp(e,t){if(Ra===null){var l=Ra=[];Ds=0,Nl=Ur(),jl={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ds++,t.then(hf,hf),t}function hf(){if(--Ds===0&&Ra!==null){jl!==null&&(jl.status="fulfilled");var e=Ra;Ra=null,Nl=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Fp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(r){l.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<l.length;r++)(0,l[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<l.length;r++)(0,l[r])(void 0)}),a}var gf=L.S;L.S=function(e,t){Id=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Vp(e,t),gf!==null&&gf(e,t)};var nl=M(null);function Ns(){var e=nl.current;return e!==null?e:Oe.pooledCache}function Ni(e,t){t===null?X(nl,nl.current):X(nl,t.pool)}function mf(){var e=Ns();return e===null?null:{parent:Be._currentValue,pool:e}}var Ul=Error(s(460)),js=Error(s(474)),ji=Error(s(542)),Ui={then:function(){}};function pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kt,kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sf(e),e;default:if(typeof t.status=="string")t.then(kt,kt);else{if(e=Oe,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 al=t,Ul}}function ll(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(al=l,Ul):l}}var al=null;function yf(){if(al===null)throw Error(s(459));var e=al;return al=null,e}function Sf(e){if(e===Ul||e===ji)throw Error(s(483))}var Hl=null,ba=0;function Hi(e){var t=ba;return ba+=1,Hl===null&&(Hl=[]),vf(Hl,e,t)}function Ea(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Li(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 Cf(e){function t(A,T){if(e){var D=A.deletions;D===null?(A.deletions=[T],A.flags|=16):D.push(T)}}function l(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function a(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function r(A,T){return A=Pt(A,T),A.index=0,A.sibling=null,A}function c(A,T,D){return A.index=D,e?(D=A.alternate,D!==null?(D=D.index,D<T?(A.flags|=67108866,T):D):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function g(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function y(A,T,D,F){return T===null||T.tag!==6?(T=bs(D,A.mode,F),T.return=A,T):(T=r(T,D),T.return=A,T)}function b(A,T,D,F){var W=D.type;return W===w?V(A,T,D.props.children,F,D.key):T!==null&&(T.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ue&&ll(W)===T.type)?(T=r(T,D.props),Ea(T,D),T.return=A,T):(T=Ai(D.type,D.key,D.props,null,A.mode,F),Ea(T,D),T.return=A,T)}function N(A,T,D,F){return T===null||T.tag!==4||T.stateNode.containerInfo!==D.containerInfo||T.stateNode.implementation!==D.implementation?(T=Es(D,A.mode,F),T.return=A,T):(T=r(T,D.children||[]),T.return=A,T)}function V(A,T,D,F,W){return T===null||T.tag!==7?(T=Pn(D,A.mode,F,W),T.return=A,T):(T=r(T,D),T.return=A,T)}function q(A,T,D){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=bs(""+T,A.mode,D),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case S:return D=Ai(T.type,T.key,T.props,null,A.mode,D),Ea(D,T),D.return=A,D;case x:return T=Es(T,A.mode,D),T.return=A,T;case ue:return T=ll(T),q(A,T,D)}if(Ye(T)||ie(T))return T=Pn(T,A.mode,D,null),T.return=A,T;if(typeof T.then=="function")return q(A,Hi(T),D);if(T.$$typeof===G)return q(A,Di(A,T),D);Li(A,T)}return null}function j(A,T,D,F){var W=T!==null?T.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return W!==null?null:y(A,T,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===W?b(A,T,D,F):null;case x:return D.key===W?N(A,T,D,F):null;case ue:return D=ll(D),j(A,T,D,F)}if(Ye(D)||ie(D))return W!==null?null:V(A,T,D,F,null);if(typeof D.then=="function")return j(A,T,Hi(D),F);if(D.$$typeof===G)return j(A,T,Di(A,D),F);Li(A,D)}return null}function H(A,T,D,F,W){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return A=A.get(D)||null,y(T,A,""+F,W);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return A=A.get(F.key===null?D:F.key)||null,b(T,A,F,W);case x:return A=A.get(F.key===null?D:F.key)||null,N(T,A,F,W);case ue:return F=ll(F),H(A,T,D,F,W)}if(Ye(F)||ie(F))return A=A.get(D)||null,V(T,A,F,W,null);if(typeof F.then=="function")return H(A,T,D,Hi(F),W);if(F.$$typeof===G)return H(A,T,D,Di(T,F),W);Li(T,F)}return null}function J(A,T,D,F){for(var W=null,Se=null,I=T,fe=T=0,pe=null;I!==null&&fe<D.length;fe++){I.index>fe?(pe=I,I=null):pe=I.sibling;var Ce=j(A,I,D[fe],F);if(Ce===null){I===null&&(I=pe);break}e&&I&&Ce.alternate===null&&t(A,I),T=c(Ce,T,fe),Se===null?W=Ce:Se.sibling=Ce,Se=Ce,I=pe}if(fe===D.length)return l(A,I),ve&&Wt(A,fe),W;if(I===null){for(;fe<D.length;fe++)I=q(A,D[fe],F),I!==null&&(T=c(I,T,fe),Se===null?W=I:Se.sibling=I,Se=I);return ve&&Wt(A,fe),W}for(I=a(I);fe<D.length;fe++)pe=H(I,A,fe,D[fe],F),pe!==null&&(e&&pe.alternate!==null&&I.delete(pe.key===null?fe:pe.key),T=c(pe,T,fe),Se===null?W=pe:Se.sibling=pe,Se=pe);return e&&I.forEach(function(Bn){return t(A,Bn)}),ve&&Wt(A,fe),W}function te(A,T,D,F){if(D==null)throw Error(s(151));for(var W=null,Se=null,I=T,fe=T=0,pe=null,Ce=D.next();I!==null&&!Ce.done;fe++,Ce=D.next()){I.index>fe?(pe=I,I=null):pe=I.sibling;var Bn=j(A,I,Ce.value,F);if(Bn===null){I===null&&(I=pe);break}e&&I&&Bn.alternate===null&&t(A,I),T=c(Bn,T,fe),Se===null?W=Bn:Se.sibling=Bn,Se=Bn,I=pe}if(Ce.done)return l(A,I),ve&&Wt(A,fe),W;if(I===null){for(;!Ce.done;fe++,Ce=D.next())Ce=q(A,Ce.value,F),Ce!==null&&(T=c(Ce,T,fe),Se===null?W=Ce:Se.sibling=Ce,Se=Ce);return ve&&Wt(A,fe),W}for(I=a(I);!Ce.done;fe++,Ce=D.next())Ce=H(I,A,fe,Ce.value,F),Ce!==null&&(e&&Ce.alternate!==null&&I.delete(Ce.key===null?fe:Ce.key),T=c(Ce,T,fe),Se===null?W=Ce:Se.sibling=Ce,Se=Ce);return e&&I.forEach(function(kv){return t(A,kv)}),ve&&Wt(A,fe),W}function Me(A,T,D,F){if(typeof D=="object"&&D!==null&&D.type===w&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var W=D.key;T!==null;){if(T.key===W){if(W=D.type,W===w){if(T.tag===7){l(A,T.sibling),F=r(T,D.props.children),F.return=A,A=F;break e}}else if(T.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ue&&ll(W)===T.type){l(A,T.sibling),F=r(T,D.props),Ea(F,D),F.return=A,A=F;break e}l(A,T);break}else t(A,T);T=T.sibling}D.type===w?(F=Pn(D.props.children,A.mode,F,D.key),F.return=A,A=F):(F=Ai(D.type,D.key,D.props,null,A.mode,F),Ea(F,D),F.return=A,A=F)}return g(A);case x:e:{for(W=D.key;T!==null;){if(T.key===W)if(T.tag===4&&T.stateNode.containerInfo===D.containerInfo&&T.stateNode.implementation===D.implementation){l(A,T.sibling),F=r(T,D.children||[]),F.return=A,A=F;break e}else{l(A,T);break}else t(A,T);T=T.sibling}F=Es(D,A.mode,F),F.return=A,A=F}return g(A);case ue:return D=ll(D),Me(A,T,D,F)}if(Ye(D))return J(A,T,D,F);if(ie(D)){if(W=ie(D),typeof W!="function")throw Error(s(150));return D=W.call(D),te(A,T,D,F)}if(typeof D.then=="function")return Me(A,T,Hi(D),F);if(D.$$typeof===G)return Me(A,T,Di(A,D),F);Li(A,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,T!==null&&T.tag===6?(l(A,T.sibling),F=r(T,D),F.return=A,A=F):(l(A,T),F=bs(D,A.mode,F),F.return=A,A=F),g(A)):l(A,T)}return function(A,T,D,F){try{ba=0;var W=Me(A,T,D,F);return Hl=null,W}catch(I){if(I===Ul||I===ji)throw I;var Se=vt(29,I,null,A.mode);return Se.lanes=F,Se.return=A,Se}finally{}}}var il=Cf(!0),Rf=Cf(!1),xn=!1;function Us(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hs(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 wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tn(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Mi(e),lf(e,null,l),t}return _i(e,a,t,l),Mi(e)}function xa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,fc(e,l)}}function Ls(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var r=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?r=c=g:c=c.next=g,l=l.next}while(l!==null);c===null?r=c=t:c=c.next=t}else r=c=t;l={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Vs=!1;function wa(){if(Vs){var e=jl;if(e!==null)throw e}}function Ta(e,t,l,a){Vs=!1;var r=e.updateQueue;xn=!1;var c=r.firstBaseUpdate,g=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var b=y,N=b.next;b.next=null,g===null?c=N:g.next=N,g=b;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==g&&(y===null?V.firstBaseUpdate=N:y.next=N,V.lastBaseUpdate=b))}if(c!==null){var q=r.baseState;g=0,V=N=b=null,y=c;do{var j=y.lane&-536870913,H=j!==y.lane;if(H?(me&j)===j:(a&j)===j){j!==0&&j===Nl&&(Vs=!0),V!==null&&(V=V.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var J=e,te=y;j=t;var Me=l;switch(te.tag){case 1:if(J=te.payload,typeof J=="function"){q=J.call(Me,q,j);break e}q=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=te.payload,j=typeof J=="function"?J.call(Me,q,j):J,j==null)break e;q=C({},q,j);break e;case 2:xn=!0}}j=y.callback,j!==null&&(e.flags|=64,H&&(e.flags|=8192),H=r.callbacks,H===null?r.callbacks=[j]:H.push(j))}else H={lane:j,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(N=V=H,b=q):V=V.next=H,g|=j;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;H=y,y=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);V===null&&(b=q),r.baseState=b,r.firstBaseUpdate=N,r.lastBaseUpdate=V,c===null&&(r.shared.lanes=0),zn|=g,e.lanes=g,e.memoizedState=q}}function bf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Ef(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)bf(l[e],t)}var Ll=M(null),Vi=M(0);function xf(e,t){e=fn,X(Vi,e),X(Ll,t),fn=e|t.baseLanes}function Fs(){X(Vi,fn),X(Ll,Ll.current)}function qs(){fn=Vi.current,B(Ll),B(Vi)}var yt=M(null),Nt=null;function _n(e){var t=e.alternate;X(Fe,Fe.current&1),X(yt,e),Nt===null&&(t===null||Ll.current!==null||t.memoizedState!==null)&&(Nt=e)}function Bs(e){X(Fe,Fe.current),X(yt,e),Nt===null&&(Nt=e)}function wf(e){e.tag===22?(X(Fe,Fe.current),X(yt,e),Nt===null&&(Nt=e)):Mn()}function Mn(){X(Fe,Fe.current),X(yt,yt.current)}function St(e){B(yt),Nt===e&&(Nt=null),B(Fe)}var Fe=M(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kr(l)||Zr(l)))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 nn=0,ce=null,Te=null,Ge=null,qi=!1,Vl=!1,ul=!1,Bi=0,_a=0,Fl=null,qp=0;function He(){throw Error(s(321))}function Gs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function $s(e,t,l,a,r,c){return nn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?rd:ar,ul=!1,c=l(a,r),ul=!1,Vl&&(c=_f(t,l,a,r)),Tf(e),c}function Tf(e){L.H=Oa;var t=Te!==null&&Te.next!==null;if(nn=0,Ge=Te=ce=null,qi=!1,_a=0,Fl=null,t)throw Error(s(300));e===null||$e||(e=e.dependencies,e!==null&&zi(e)&&($e=!0))}function _f(e,t,l,a){ce=e;var r=0;do{if(Vl&&(Fl=null),_a=0,Vl=!1,25<=r)throw Error(s(301));if(r+=1,Ge=Te=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=od,c=t(l,a)}while(Vl);return c}function Bp(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?Ma(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(ce.flags|=1024),t}function Qs(){var e=Bi!==0;return Bi=0,e}function Ys(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Xs(e){if(qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qi=!1}nn=0,Ge=Te=ce=null,Vl=!1,_a=Bi=0,Fl=null}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?ce.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function qe(){if(Te===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ge===null?ce.memoizedState:Ge.next;if(t!==null)Ge=t,Te=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ge===null?ce.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ma(e){var t=_a;return _a+=1,Fl===null&&(Fl=[]),e=vf(Fl,e,t),t=ce,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?rd:ar),e}function $i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ma(e);if(e.$$typeof===G)return Ie(e)}throw Error(s(438,String(e)))}function Ks(e){var t=null,l=ce.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ce.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}),l===null&&(l=Gi(),ce.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ee;return t.index++,l}function ln(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=qe();return Zs(t,Te,e)}function Zs(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var r=e.baseQueue,c=a.pending;if(c!==null){if(r!==null){var g=r.next;r.next=c.next,c.next=g}t.baseQueue=r=c,a.pending=null}if(c=e.baseState,r===null)e.memoizedState=c;else{t=r.next;var y=g=null,b=null,N=t,V=!1;do{var q=N.lane&-536870913;if(q!==N.lane?(me&q)===q:(nn&q)===q){var j=N.revertLane;if(j===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),q===Nl&&(V=!0);else if((nn&j)===j){N=N.next,j===Nl&&(V=!0);continue}else q={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=q,g=c):b=b.next=q,ce.lanes|=j,zn|=j;q=N.action,ul&&l(c,q),c=N.hasEagerState?N.eagerState:l(c,q)}else j={lane:q,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=j,g=c):b=b.next=j,ce.lanes|=q,zn|=q;N=N.next}while(N!==null&&N!==t);if(b===null?g=c:b.next=y,!pt(c,e.memoizedState)&&($e=!0,V&&(l=jl,l!==null)))throw l;e.memoizedState=c,e.baseState=g,e.baseQueue=b,a.lastRenderedState=c}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Js(e){var t=qe(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,r=l.pending,c=t.memoizedState;if(r!==null){l.pending=null;var g=r=r.next;do c=e(c,g.action),g=g.next;while(g!==r);pt(c,t.memoizedState)||($e=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,a]}function Mf(e,t,l){var a=ce,r=qe(),c=ve;if(c){if(l===void 0)throw Error(s(407));l=l()}else l=t();var g=!pt((Te||r).memoizedState,l);if(g&&(r.memoizedState=l,$e=!0),r=r.queue,Ps(zf.bind(null,a,r,e),[e]),r.getSnapshot!==t||g||Ge!==null&&Ge.memoizedState.tag&1){if(a.flags|=2048,ql(9,{destroy:void 0},Of.bind(null,a,r,l,t),null),Oe===null)throw Error(s(349));c||(nn&127)!==0||Af(a,t,l)}return l}function Af(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ce.updateQueue,t===null?(t=Gi(),ce.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Of(e,t,l,a){t.value=l,t.getSnapshot=a,Df(t)&&Nf(e)}function zf(e,t,l){return l(function(){Df(t)&&Nf(e)})}function Df(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function Nf(e){var t=In(e,2);t!==null&&ft(t,e,2)}function ks(e){var t=at();if(typeof e=="function"){var l=e;if(e=l(),ul){vn(!0);try{l()}finally{vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,lastRenderedState:e},t}function jf(e,t,l,a){return e.baseState=l,Zs(e,Te,typeof a=="function"?a:ln)}function Gp(e,t,l,a,r){if(Ki(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};L.T!==null?l(!0):c.isTransition=!1,a(c),l=t.pending,l===null?(c.next=t.pending=c,Uf(t,c)):(c.next=l.next,t.pending=l.next=c)}}function Uf(e,t){var l=t.action,a=t.payload,r=e.state;if(t.isTransition){var c=L.T,g={};L.T=g;try{var y=l(r,a),b=L.S;b!==null&&b(g,y),Hf(e,t,y)}catch(N){Is(e,t,N)}finally{c!==null&&g.types!==null&&(c.types=g.types),L.T=c}}else try{c=l(r,a),Hf(e,t,c)}catch(N){Is(e,t,N)}}function Hf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Lf(e,t,a)},function(a){return Is(e,t,a)}):Lf(e,t,l)}function Lf(e,t,l){t.status="fulfilled",t.value=l,Vf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Uf(e,l)))}function Is(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Vf(t),t=t.next;while(t!==a)}e.action=null}function Vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ff(e,t){return t}function qf(e,t){if(ve){var l=Oe.formState;if(l!==null){e:{var a=ce;if(ve){if(De){t:{for(var r=De,c=Dt;r.nodeType!==8;){if(!c){r=null;break t}if(r=jt(r.nextSibling),r===null){r=null;break t}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){De=jt(r.nextSibling),a=r.data==="F!";break e}}bn(a)}a=!1}a&&(t=l[0])}}return l=at(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ff,lastRenderedState:t},l.queue=a,l=id.bind(null,ce,a),a.dispatch=l,a=ks(!1),c=lr.bind(null,ce,!1,a.queue),a=at(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,l=Gp.bind(null,ce,r,c,l),r.dispatch=l,a.memoizedState=e,[t,l,!1]}function Bf(e){var t=qe();return Gf(t,Te,e)}function Gf(e,t,l){if(t=Zs(e,t,Ff)[0],e=Qi(ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ma(t)}catch(g){throw g===Ul?ji:g}else a=t;t=qe();var r=t.queue,c=r.dispatch;return l!==t.memoizedState&&(ce.flags|=2048,ql(9,{destroy:void 0},$p.bind(null,r,l),null)),[a,c,e]}function $p(e,t){e.action=t}function $f(e){var t=qe(),l=Te;if(l!==null)return Gf(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ql(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Gi(),ce.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Qf(){return qe().memoizedState}function Yi(e,t,l,a){var r=at();ce.flags|=e,r.memoizedState=ql(1|t,{destroy:void 0},l,a===void 0?null:a)}function Xi(e,t,l,a){var r=qe();a=a===void 0?null:a;var c=r.memoizedState.inst;Te!==null&&a!==null&&Gs(a,Te.memoizedState.deps)?r.memoizedState=ql(t,c,l,a):(ce.flags|=e,r.memoizedState=ql(1|t,c,l,a))}function Yf(e,t){Yi(8390656,8,e,t)}function Ps(e,t){Xi(2048,8,e,t)}function Qp(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Gi(),ce.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Xf(e){var t=qe().memoizedState;return Qp({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Kf(e,t){return Xi(4,2,e,t)}function Zf(e,t){return Xi(4,4,e,t)}function Jf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kf(e,t,l){l=l!=null?l.concat([e]):null,Xi(4,4,Jf.bind(null,t,e),l)}function Ws(){}function If(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Gs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Pf(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Gs(t,a[1]))return a[0];if(a=e(),ul){vn(!0);try{e()}finally{vn(!1)}}return l.memoizedState=[a,t],a}function er(e,t,l){return l===void 0||(nn&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Wd(),ce.lanes|=e,zn|=e,l)}function Wf(e,t,l,a){return pt(l,t)?l:Ll.current!==null?(e=er(e,l,a),pt(e,t)||($e=!0),e):(nn&42)===0||(nn&1073741824)!==0&&(me&261930)===0?($e=!0,e.memoizedState=l):(e=Wd(),ce.lanes|=e,zn|=e,t)}function ed(e,t,l,a,r){var c=Q.p;Q.p=c!==0&&8>c?c:8;var g=L.T,y={};L.T=y,lr(e,!1,t,l);try{var b=r(),N=L.S;if(N!==null&&N(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var V=Fp(b,a);Aa(e,t,V,bt(e))}else Aa(e,t,a,bt(e))}catch(q){Aa(e,t,{then:function(){},status:"rejected",reason:q},bt())}finally{Q.p=c,g!==null&&y.types!==null&&(g.types=y.types),L.T=g}}function Yp(){}function tr(e,t,l,a){if(e.tag!==5)throw Error(s(476));var r=td(e).queue;ed(e,r,t,ae,l===null?Yp:function(){return nd(e),l(a)})}function td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nd(e){var t=td(e);t.next===null&&(t=e.alternate.memoizedState),Aa(e,t.next.queue,{},bt())}function nr(){return Ie(Xa)}function ld(){return qe().memoizedState}function ad(){return qe().memoizedState}function Xp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bt();e=wn(l);var a=Tn(t,e,l);a!==null&&(ft(a,t,l),xa(a,t,l)),t={cache:zs()},e.payload=t;return}t=t.return}}function Kp(e,t,l){var a=bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)?ud(t,l):(l=Cs(e,t,l,a),l!==null&&(ft(l,e,a),sd(l,t,a)))}function id(e,t,l){var a=bt();Aa(e,t,l,a)}function Aa(e,t,l,a){var r={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))ud(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,y=c(g,l);if(r.hasEagerState=!0,r.eagerState=y,pt(y,g))return _i(e,t,r,0),Oe===null&&Ti(),!1}catch{}finally{}if(l=Cs(e,t,r,a),l!==null)return ft(l,e,a),sd(l,t,a),!0}return!1}function lr(e,t,l,a){if(a={lane:2,revertLane:Ur(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(s(479))}else t=Cs(e,l,a,2),t!==null&&ft(t,e,2)}function Ki(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function ud(e,t){Vl=qi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function sd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,fc(e,l)}}var Oa={readContext:Ie,use:$i,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Oa.useEffectEvent=He;var rd={readContext:Ie,use:$i,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Yf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Yi(4194308,4,Jf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){Yi(4,2,e,t)},useMemo:function(e,t){var l=at();t=t===void 0?null:t;var a=e();if(ul){vn(!0);try{e()}finally{vn(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=at();if(l!==void 0){var r=l(t);if(ul){vn(!0);try{l(t)}finally{vn(!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=Kp.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:function(e){e=ks(e);var t=e.queue,l=id.bind(null,ce,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ws,useDeferredValue:function(e,t){var l=at();return er(l,e,t)},useTransition:function(){var e=ks(!1);return e=ed.bind(null,ce,e.queue,!0,!1),at().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ce,r=at();if(ve){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Oe===null)throw Error(s(349));(me&127)!==0||Af(a,t,l)}r.memoizedState=l;var c={value:l,getSnapshot:t};return r.queue=c,Yf(zf.bind(null,a,c,e),[e]),a.flags|=2048,ql(9,{destroy:void 0},Of.bind(null,a,c,l,t),null),l},useId:function(){var e=at(),t=Oe.identifierPrefix;if(ve){var l=Yt,a=Qt;l=(a&~(1<<32-mt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Bi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=qp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:nr,useFormState:qf,useActionState:qf,useOptimistic:function(e){var t=at();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=lr.bind(null,ce,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ks,useCacheRefresh:function(){return at().memoizedState=Xp.bind(null,ce)},useEffectEvent:function(e){var t=at(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},ar={readContext:Ie,use:$i,useCallback:If,useContext:Ie,useEffect:Ps,useImperativeHandle:kf,useInsertionEffect:Kf,useLayoutEffect:Zf,useMemo:Pf,useReducer:Qi,useRef:Qf,useState:function(){return Qi(ln)},useDebugValue:Ws,useDeferredValue:function(e,t){var l=qe();return Wf(l,Te.memoizedState,e,t)},useTransition:function(){var e=Qi(ln)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Ma(e),t]},useSyncExternalStore:Mf,useId:ld,useHostTransitionStatus:nr,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var l=qe();return jf(l,Te,e,t)},useMemoCache:Ks,useCacheRefresh:ad};ar.useEffectEvent=Xf;var od={readContext:Ie,use:$i,useCallback:If,useContext:Ie,useEffect:Ps,useImperativeHandle:kf,useInsertionEffect:Kf,useLayoutEffect:Zf,useMemo:Pf,useReducer:Js,useRef:Qf,useState:function(){return Js(ln)},useDebugValue:Ws,useDeferredValue:function(e,t){var l=qe();return Te===null?er(l,e,t):Wf(l,Te.memoizedState,e,t)},useTransition:function(){var e=Js(ln)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Ma(e),t]},useSyncExternalStore:Mf,useId:ld,useHostTransitionStatus:nr,useFormState:$f,useActionState:$f,useOptimistic:function(e,t){var l=qe();return Te!==null?jf(l,Te,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ks,useCacheRefresh:ad};od.useEffectEvent=Xf;function ir(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:C({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ur={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bt(),r=wn(a);r.payload=t,l!=null&&(r.callback=l),t=Tn(e,r,a),t!==null&&(ft(t,e,a),xa(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bt(),r=wn(a);r.tag=1,r.payload=t,l!=null&&(r.callback=l),t=Tn(e,r,a),t!==null&&(ft(t,e,a),xa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bt(),a=wn(l);a.tag=2,t!=null&&(a.callback=t),t=Tn(e,a,l),t!==null&&(ft(t,e,l),xa(t,e,l))}};function cd(e,t,l,a,r,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):t.prototype&&t.prototype.isPureReactComponent?!pa(l,a)||!pa(r,c):!0}function fd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&ur.enqueueReplaceState(t,t.state,null)}function sl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=C({},l));for(var r in e)l[r]===void 0&&(l[r]=e[r])}return l}function dd(e){wi(e)}function hd(e){console.error(e)}function gd(e){wi(e)}function Zi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function md(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function sr(e,t,l){return l=wn(l),l.tag=3,l.payload={element:null},l.callback=function(){Zi(e,t)},l}function pd(e){return e=wn(e),e.tag=3,e}function vd(e,t,l,a){var r=l.type.getDerivedStateFromError;if(typeof r=="function"){var c=a.value;e.payload=function(){return r(c)},e.callback=function(){md(t,l,a)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){md(t,l,a),typeof r!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Zp(e,t,l,a,r){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Dl(t,l,r,!0),l=yt.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?uu():l.alternate===null&&Le===0&&(Le=3),l.flags&=-257,l.flags|=65536,l.lanes=r,a===Ui?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Dr(e,a,r)),!1;case 22:return l.flags|=65536,a===Ui?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Dr(e,a,r)),!1}throw Error(s(435,l.tag))}return Dr(e,a,r),uu(),!1}if(ve)return t=yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==Ts&&(e=Error(s(422),{cause:a}),Sa(At(e,l)))):(a!==Ts&&(t=Error(s(423),{cause:a}),Sa(At(t,l))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=At(a,l),r=sr(e.stateNode,a,r),Ls(e,r),Le!==4&&(Le=2)),!1;var c=Error(s(520),{cause:a});if(c=At(c,l),Va===null?Va=[c]:Va.push(c),Le!==4&&(Le=2),t===null)return!0;a=At(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=r&-r,l.lanes|=e,e=sr(l.stateNode,a,e),Ls(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Dn===null||!Dn.has(c))))return l.flags|=65536,r&=-r,l.lanes|=r,r=pd(r),vd(r,e,l,a),Ls(l,r),!1}l=l.return}while(l!==null);return!1}var rr=Error(s(461)),$e=!1;function Pe(e,t,l,a){t.child=e===null?Rf(t,null,l,a):il(t,e.child,l,a)}function yd(e,t,l,a,r){l=l.render;var c=t.ref;if("ref"in a){var g={};for(var y in a)y!=="ref"&&(g[y]=a[y])}else g=a;return tl(t),a=$s(e,t,l,g,c,r),y=Qs(),e!==null&&!$e?(Ys(e,t,r),an(e,t,r)):(ve&&y&&xs(t),t.flags|=1,Pe(e,t,a,r),t.child)}function Sd(e,t,l,a,r){if(e===null){var c=l.type;return typeof c=="function"&&!Rs(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Cd(e,t,c,a,r)):(e=Ai(l.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!pr(e,r)){var g=c.memoizedProps;if(l=l.compare,l=l!==null?l:pa,l(g,a)&&e.ref===t.ref)return an(e,t,r)}return t.flags|=1,e=Pt(c,a),e.ref=t.ref,e.return=t,t.child=e}function Cd(e,t,l,a,r){if(e!==null){var c=e.memoizedProps;if(pa(c,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=c,pr(e,r))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,an(e,t,r)}return or(e,t,l,a,r)}function Rd(e,t,l,a){var r=a.children,c=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(c=c!==null?c.baseLanes|l:l,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~c}else a=0,t.child=null;return bd(e,t,c,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ni(t,c!==null?c.cachePool:null),c!==null?xf(t,c):Fs(),wf(t);else return a=t.lanes=536870912,bd(e,t,c!==null?c.baseLanes|l:l,l,a)}else c!==null?(Ni(t,c.cachePool),xf(t,c),Mn(),t.memoizedState=null):(e!==null&&Ni(t,null),Fs(),Mn());return Pe(e,t,r,l),t.child}function za(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bd(e,t,l,a,r){var c=Ns();return c=c===null?null:{parent:Be._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&Ni(t,null),Fs(),wf(t),e!==null&&Dl(e,t,a,!0),t.childLanes=r,null}function Ji(e,t){return t=Ii({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ed(e,t,l){return il(t,e.child,null,l),e=Ji(t,t.pendingProps),e.flags|=2,St(t),t.memoizedState=null,e}function Jp(e,t,l){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Ji(t,a),t.lanes=536870912,za(null,e);if(Bs(t),(e=De)?(e=Uh(e,Dt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=uf(e),l.return=t,t.child=l,ke=t,De=null)):e=null,e===null)throw bn(t);return t.lanes=536870912,null}return Ji(t,a)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(Bs(t),r)if(t.flags&256)t.flags&=-257,t=Ed(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if($e||Dl(e,t,l,!1),r=(l&e.childLanes)!==0,$e||r){if(a=Oe,a!==null&&(g=dc(a,l),g!==0&&g!==c.retryLane))throw c.retryLane=g,In(e,g),ft(a,e,g),rr;uu(),t=Ed(e,t,l)}else e=c.treeContext,De=jt(g.nextSibling),ke=t,ve=!0,Rn=null,Dt=!1,e!==null&&of(t,e),t=Ji(t,a),t.flags|=4096;return t}return e=Pt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ki(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function or(e,t,l,a,r){return tl(t),l=$s(e,t,l,a,void 0,r),a=Qs(),e!==null&&!$e?(Ys(e,t,r),an(e,t,r)):(ve&&a&&xs(t),t.flags|=1,Pe(e,t,l,r),t.child)}function xd(e,t,l,a,r,c){return tl(t),t.updateQueue=null,l=_f(t,a,l,r),Tf(e),a=Qs(),e!==null&&!$e?(Ys(e,t,c),an(e,t,c)):(ve&&a&&xs(t),t.flags|=1,Pe(e,t,l,c),t.child)}function wd(e,t,l,a,r){if(tl(t),t.stateNode===null){var c=Ml,g=l.contextType;typeof g=="object"&&g!==null&&(c=Ie(g)),c=new l(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ur,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Us(t),g=l.contextType,c.context=typeof g=="object"&&g!==null?Ie(g):Ml,c.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(ir(t,l,g,a),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&ur.enqueueReplaceState(c,c.state,null),Ta(t,a,c,r),wa(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,b=sl(l,y);c.props=b;var N=c.context,V=l.contextType;g=Ml,typeof V=="object"&&V!==null&&(g=Ie(V));var q=l.getDerivedStateFromProps;V=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,V||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||N!==g)&&fd(t,c,a,g),xn=!1;var j=t.memoizedState;c.state=j,Ta(t,a,c,r),wa(),N=t.memoizedState,y||j!==N||xn?(typeof q=="function"&&(ir(t,l,q,a),N=t.memoizedState),(b=xn||cd(t,l,b,a,j,N,g))?(V||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=N),c.props=a,c.state=N,c.context=g,a=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Hs(e,t),g=t.memoizedProps,V=sl(l,g),c.props=V,q=t.pendingProps,j=c.context,N=l.contextType,b=Ml,typeof N=="object"&&N!==null&&(b=Ie(N)),y=l.getDerivedStateFromProps,(N=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==q||j!==b)&&fd(t,c,a,b),xn=!1,j=t.memoizedState,c.state=j,Ta(t,a,c,r),wa();var H=t.memoizedState;g!==q||j!==H||xn||e!==null&&e.dependencies!==null&&zi(e.dependencies)?(typeof y=="function"&&(ir(t,l,y,a),H=t.memoizedState),(V=xn||cd(t,l,V,a,j,H,b)||e!==null&&e.dependencies!==null&&zi(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,H,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,H,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=H),c.props=a,c.state=H,c.context=b,a=V):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,ki(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=il(t,e.child,null,r),t.child=il(t,null,l,r)):Pe(e,t,l,r),t.memoizedState=c.state,e=t.child):e=an(e,t,r),e}function Td(e,t,l,a){return Wn(),t.flags|=256,Pe(e,t,l,a),t.child}var cr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fr(e){return{baseLanes:e,cachePool:mf()}}function dr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Rt),e}function _d(e,t,l){var a=t.pendingProps,r=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),g&&(r=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(r?_n(t):Mn(),(e=De)?(e=Uh(e,Dt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=uf(e),l.return=t,t.child=l,ke=t,De=null)):e=null,e===null)throw bn(t);return Zr(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,r?(Mn(),r=t.mode,y=Ii({mode:"hidden",children:y},r),a=Pn(a,r,l,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=fr(l),a.childLanes=dr(e,g,l),t.memoizedState=cr,za(null,a)):(_n(t),hr(t,y))}var b=e.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(c)t.flags&256?(_n(t),t.flags&=-257,t=gr(e,t,l)):t.memoizedState!==null?(Mn(),t.child=e.child,t.flags|=128,t=null):(Mn(),y=a.fallback,r=t.mode,a=Ii({mode:"visible",children:a.children},r),y=Pn(y,r,l,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,il(t,e.child,null,l),a=t.child,a.memoizedState=fr(l),a.childLanes=dr(e,g,l),t.memoizedState=cr,t=za(null,a));else if(_n(t),Zr(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var N=g.dgst;g=N,a=Error(s(419)),a.stack="",a.digest=g,Sa({value:a,source:null,stack:null}),t=gr(e,t,l)}else if($e||Dl(e,t,l,!1),g=(l&e.childLanes)!==0,$e||g){if(g=Oe,g!==null&&(a=dc(g,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,In(e,a),ft(g,e,a),rr;Kr(y)||uu(),t=gr(e,t,l)}else Kr(y)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,De=jt(y.nextSibling),ke=t,ve=!0,Rn=null,Dt=!1,e!==null&&of(t,e),t=hr(t,a.children),t.flags|=4096);return t}return r?(Mn(),y=a.fallback,r=t.mode,b=e.child,N=b.sibling,a=Pt(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,N!==null?y=Pt(N,y):(y=Pn(y,r,l,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,za(null,a),a=t.child,y=e.child.memoizedState,y===null?y=fr(l):(r=y.cachePool,r!==null?(b=Be._currentValue,r=r.parent!==b?{parent:b,pool:b}:r):r=mf(),y={baseLanes:y.baseLanes|l,cachePool:r}),a.memoizedState=y,a.childLanes=dr(e,g,l),t.memoizedState=cr,za(e.child,a)):(_n(t),l=e.child,e=l.sibling,l=Pt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function hr(e,t){return t=Ii({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ii(e,t){return e=vt(22,e,null,t),e.lanes=0,e}function gr(e,t,l){return il(t,e.child,null,l),e=hr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Md(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),As(e.return,t,l)}function mr(e,t,l,a,r,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:r,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=l,g.tailMode=r,g.treeForkCount=c)}function Ad(e,t,l){var a=t.pendingProps,r=a.revealOrder,c=a.tail;a=a.children;var g=Fe.current,y=(g&2)!==0;if(y?(g=g&1|2,t.flags|=128):g&=1,X(Fe,g),Pe(e,t,a,l),a=ve?ya:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Md(e,l,t);else if(e.tag===19)Md(e,l,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(l=t.child,r=null;l!==null;)e=l.alternate,e!==null&&Fi(e)===null&&(r=l),l=l.sibling;l=r,l===null?(r=t.child,t.child=null):(r=l.sibling,l.sibling=null),mr(t,!1,r,l,c,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Fi(e)===null){t.child=r;break}e=r.sibling,r.sibling=l,l=r,r=e}mr(t,!0,l,null,c,a);break;case"together":mr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function an(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Dl(e,t,l,!1),(l&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,l=Pt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Pt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function pr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zi(e)))}function kp(e,t,l){switch(t.tag){case 3:lt(t,t.stateNode.containerInfo),En(t,Be,e.memoizedState.cache),Wn();break;case 27:case 5:la(t);break;case 4:lt(t,t.stateNode.containerInfo);break;case 10:En(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(_n(t),t.flags|=128,null):(l&t.child.childLanes)!==0?_d(e,t,l):(_n(t),e=an(e,t,l),e!==null?e.sibling:null);_n(t);break;case 19:var r=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Dl(e,t,l,!1),a=(l&t.childLanes)!==0),r){if(a)return Ad(e,t,l);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),X(Fe,Fe.current),a)break;return null;case 22:return t.lanes=0,Rd(e,t,l,t.pendingProps);case 24:En(t,Be,e.memoizedState.cache)}return an(e,t,l)}function Od(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!pr(e,l)&&(t.flags&128)===0)return $e=!1,kp(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,ve&&(t.flags&1048576)!==0&&rf(t,ya,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ll(t.elementType),t.type=e,typeof e=="function")Rs(e)?(a=sl(e,a),t.tag=1,t=wd(null,t,e,a,l)):(t.tag=0,t=or(null,t,e,a,l));else{if(e!=null){var r=e.$$typeof;if(r===K){t.tag=11,t=yd(null,t,e,a,l);break e}else if(r===Z){t.tag=14,t=Sd(null,t,e,a,l);break e}}throw t=ye(e)||e,Error(s(306,t,""))}}return t;case 0:return or(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,r=sl(a,t.pendingProps),wd(e,t,a,r,l);case 3:e:{if(lt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;r=c.element,Hs(e,t),Ta(t,a,null,l);var g=t.memoizedState;if(a=g.cache,En(t,Be,a),a!==c.cache&&Os(t,[Be],l,!0),wa(),a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Td(e,t,a,l);break e}else if(a!==r){r=At(Error(s(424)),t),Sa(r),t=Td(e,t,a,l);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(De=jt(e.firstChild),ke=t,ve=!0,Rn=null,Dt=!0,l=Rf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Wn(),a===r){t=an(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return ki(e,t),e===null?(l=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=hu(de.current).createElement(l),a[Je]=t,a[it]=e,We(a,l,e),Ke(a),t.stateNode=a):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return la(t),e===null&&ve&&(a=t.stateNode=Vh(t.type,t.pendingProps,de.current),ke=t,Dt=!0,r=De,Hn(t.type)?(Jr=r,De=jt(a.firstChild)):De=r),Pe(e,t,t.pendingProps.children,l),ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((r=a=De)&&(a=Tv(a,t.type,t.pendingProps,Dt),a!==null?(t.stateNode=a,ke=t,De=jt(a.firstChild),Dt=!1,r=!0):r=!1),r||bn(t)),la(t),r=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,a=c.children,Qr(r,c)?a=null:g!==null&&Qr(r,g)&&(t.flags|=32),t.memoizedState!==null&&(r=$s(e,t,Bp,null,null,l),Xa._currentValue=r),ki(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=De)&&(l=_v(l,t.pendingProps,Dt),l!==null?(t.stateNode=l,ke=t,De=null,e=!0):e=!1),e||bn(t)),null;case 13:return _d(e,t,l);case 4:return lt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=il(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return yd(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,En(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,tl(t),r=Ie(r),a=a(r),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return Sd(e,t,t.type,t.pendingProps,l);case 15:return Cd(e,t,t.type,t.pendingProps,l);case 19:return Ad(e,t,l);case 31:return Jp(e,t,l);case 22:return Rd(e,t,l,t.pendingProps);case 24:return tl(t),a=Ie(Be),e===null?(r=Ns(),r===null&&(r=Oe,c=zs(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=l),r=c),t.memoizedState={parent:a,cache:r},Us(t),En(t,Be,r)):((e.lanes&l)!==0&&(Hs(e,t),Ta(t,null,null,l),wa()),r=e.memoizedState,c=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),En(t,Be,a)):(a=c.cache,En(t,Be,a),a!==r.cache&&Os(t,[Be],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function un(e){e.flags|=4}function vr(e,t,l,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(lh())e.flags|=8192;else throw al=Ui,js}else e.flags&=-16777217}function zd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xh(t))if(lh())e.flags|=8192;else throw al=Ui,js}function Pi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?oc():536870912,e.lanes|=t,Ql|=t)}function Da(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var r=e.child;r!==null;)l|=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;)l|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Ip(e,t,l){var a=t.pendingProps;switch(ws(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),tn(Be),Ve(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(zl(t)?un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_s())),Ne(t),null;case 26:var r=t.type,c=t.memoizedState;return e===null?(un(t),c!==null?(Ne(t),zd(t,c)):(Ne(t),vr(t,r,null,a,l))):c?c!==e.memoizedState?(un(t),Ne(t),zd(t,c)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&un(t),Ne(t),vr(t,r,e,a,l)),null;case 27:if(oi(t),l=de.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&un(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ne(t),null}e=k.current,zl(t)?cf(t):(e=Vh(r,a,l),t.stateNode=e,un(t))}return Ne(t),null;case 5:if(oi(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&un(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ne(t),null}if(c=k.current,zl(t))cf(t);else{var g=hu(de.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?g.createElement(r,{is:a.is}):g.createElement(r)}}c[Je]=t,c[it]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(We(c,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&&un(t)}}return Ne(t),vr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&un(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=de.current,zl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,r=ke,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||_h(e.nodeValue,l)),e||bn(t,!0)}else e=hu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Ne(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=zl(t),l!==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[Je]=t}else Wn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else l=_s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(St(t),t):(St(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=zl(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[Je]=t}else Wn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),r=!1}else r=_s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(St(t),t):(St(t),null)}return St(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==r&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Pi(t,t.updateQueue),Ne(t),null);case 4:return Ve(),e===null&&Fr(t.stateNode.containerInfo),Ne(t),null;case 10:return tn(t.type),Ne(t),null;case 19:if(B(Fe),a=t.memoizedState,a===null)return Ne(t),null;if(r=(t.flags&128)!==0,c=a.rendering,c===null)if(r)Da(a,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Fi(e),c!==null){for(t.flags|=128,Da(a,!1),e=c.updateQueue,t.updateQueue=e,Pi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)af(l,e),l=l.sibling;return X(Fe,Fe.current&1|2),ve&&Wt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ht()>lu&&(t.flags|=128,r=!0,Da(a,!1),t.lanes=4194304)}else{if(!r)if(e=Fi(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Pi(t,e),Da(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!ve)return Ne(t),null}else 2*ht()-a.renderingStartTime>lu&&l!==536870912&&(t.flags|=128,r=!0,Da(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ht(),e.sibling=null,l=Fe.current,X(Fe,r?l&1|2:l&1),ve&&Wt(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return St(t),qs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),l=t.updateQueue,l!==null&&Pi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&B(nl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),tn(Be),Ne(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Pp(e,t){switch(ws(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(Be),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oi(t),null;case 31:if(t.memoizedState!==null){if(St(t),t.alternate===null)throw Error(s(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(St(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Fe),null;case 4:return Ve(),null;case 10:return tn(t.type),null;case 22:case 23:return St(t),qs(),e!==null&&B(nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tn(Be),null;case 25:return null;default:return null}}function Dd(e,t){switch(ws(t),t.tag){case 3:tn(Be),Ve();break;case 26:case 27:case 5:oi(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&St(t);break;case 13:St(t);break;case 19:B(Fe);break;case 10:tn(t.type);break;case 22:case 23:St(t),qs(),e!==null&&B(nl);break;case 24:tn(Be)}}function Na(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var r=a.next;l=r;do{if((l.tag&e)===e){a=void 0;var c=l.create,g=l.inst;a=c(),g.destroy=a}l=l.next}while(l!==r)}}catch(y){xe(t,t.return,y)}}function An(e,t,l){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var c=r.next;a=c;do{if((a.tag&e)===e){var g=a.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,r=t;var b=l,N=y;try{N()}catch(V){xe(r,b,V)}}}a=a.next}while(a!==c)}}catch(V){xe(t,t.return,V)}}function Nd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ef(t,l)}catch(a){xe(e,e.return,a)}}}function jd(e,t,l){l.props=sl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){xe(e,t,a)}}function ja(e,t){try{var l=e.ref;if(l!==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 l=="function"?e.refCleanup=l(a):l.current=a}}catch(r){xe(e,t,r)}}function Xt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(r){xe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(r){xe(e,t,r)}else l.current=null}function Ud(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(r){xe(e,e.return,r)}}function yr(e,t,l){try{var a=e.stateNode;Cv(a,e.type,l,t),a[it]=t}catch(r){xe(e,e.return,r)}}function Hd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hn(e.type)||e.tag===4}function Sr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(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 Cr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=kt));else if(a!==4&&(a===27&&Hn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Cr(e,t,l),e=e.sibling;e!==null;)Cr(e,t,l),e=e.sibling}function Wi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Hn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wi(e,t,l),e=e.sibling;e!==null;)Wi(e,t,l),e=e.sibling}function Ld(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);We(t,a,l),t[Je]=e,t[it]=l}catch(c){xe(e,e.return,c)}}var sn=!1,Qe=!1,Rr=!1,Vd=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Wp(e,t){if(e=e.containerInfo,Gr=Cu,e=Jc(e),gs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var r=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var g=0,y=-1,b=-1,N=0,V=0,q=e,j=null;t:for(;;){for(var H;q!==l||r!==0&&q.nodeType!==3||(y=g+r),q!==c||a!==0&&q.nodeType!==3||(b=g+a),q.nodeType===3&&(g+=q.nodeValue.length),(H=q.firstChild)!==null;)j=q,q=H;for(;;){if(q===e)break t;if(j===l&&++N===r&&(y=g),j===c&&++V===a&&(b=g),(H=q.nextSibling)!==null)break;q=j,j=q.parentNode}q=H}l=y===-1||b===-1?null:{start:y,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for($r={focusedElem:e,selectionRange:l},Cu=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)r=e[l],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,r=c.memoizedProps,c=c.memoizedState,a=l.stateNode;try{var J=sl(l.type,r);e=a.getSnapshotBeforeUpdate(J,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){xe(l,l.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Xr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xr(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,Ze=e;break}Ze=t.return}}function Fd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:on(e,l),a&4&&Na(5,l);break;case 1:if(on(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){xe(l,l.return,g)}else{var r=sl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){xe(l,l.return,g)}}a&64&&Nd(l),a&512&&ja(l,l.return);break;case 3:if(on(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ef(e,t)}catch(g){xe(l,l.return,g)}}break;case 27:t===null&&a&4&&Ld(l);case 26:case 5:on(e,l),t===null&&a&4&&Ud(l),a&512&&ja(l,l.return);break;case 12:on(e,l);break;case 31:on(e,l),a&4&&Gd(e,l);break;case 13:on(e,l),a&4&&$d(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=rv.bind(null,l),Mv(e,l))));break;case 22:if(a=l.memoizedState!==null||sn,!a){t=t!==null&&t.memoizedState!==null||Qe,r=sn;var c=Qe;sn=a,(Qe=t)&&!c?cn(e,l,(l.subtreeFlags&8772)!==0):on(e,l),sn=r,Qe=c}break;case 30:break;default:on(e,l)}}function qd(e){var t=e.alternate;t!==null&&(e.alternate=null,qd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Iu(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 je=null,st=!1;function rn(e,t,l){for(l=l.child;l!==null;)Bd(e,t,l),l=l.sibling}function Bd(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(aa,l)}catch{}switch(l.tag){case 26:Qe||Xt(l,t),rn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qe||Xt(l,t);var a=je,r=st;Hn(l.type)&&(je=l.stateNode,st=!1),rn(e,t,l),$a(l.stateNode),je=a,st=r;break;case 5:Qe||Xt(l,t);case 6:if(a=je,r=st,je=null,rn(e,t,l),je=a,st=r,je!==null)if(st)try{(je.nodeType===9?je.body:je.nodeName==="HTML"?je.ownerDocument.body:je).removeChild(l.stateNode)}catch(c){xe(l,t,c)}else try{je.removeChild(l.stateNode)}catch(c){xe(l,t,c)}break;case 18:je!==null&&(st?(e=je,Nh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Pl(e)):Nh(je,l.stateNode));break;case 4:a=je,r=st,je=l.stateNode.containerInfo,st=!0,rn(e,t,l),je=a,st=r;break;case 0:case 11:case 14:case 15:An(2,l,t),Qe||An(4,l,t),rn(e,t,l);break;case 1:Qe||(Xt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&jd(l,t,a)),rn(e,t,l);break;case 21:rn(e,t,l);break;case 22:Qe=(a=Qe)||l.memoizedState!==null,rn(e,t,l),Qe=a;break;default:rn(e,t,l)}}function Gd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pl(e)}catch(l){xe(t,t.return,l)}}}function $d(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pl(e)}catch(l){xe(t,t.return,l)}}function ev(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vd),t;default:throw Error(s(435,e.tag))}}function eu(e,t){var l=ev(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var r=ov.bind(null,e,a);a.then(r,r)}})}function rt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var r=l[a],c=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(Hn(y.type)){je=y.stateNode,st=!1;break e}break;case 5:je=y.stateNode,st=!1;break e;case 3:case 4:je=y.stateNode.containerInfo,st=!0;break e}y=y.return}if(je===null)throw Error(s(160));Bd(c,g,r),je=null,st=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Qd(t,e),t=t.sibling}var Vt=null;function Qd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rt(t,e),ot(e),a&4&&(An(3,e,e.return),Na(3,e),An(5,e,e.return));break;case 1:rt(t,e),ot(e),a&512&&(Qe||l===null||Xt(l,l.return)),a&64&&sn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var r=Vt;if(rt(t,e),ot(e),a&512&&(Qe||l===null||Xt(l,l.return)),a&4){var c=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":c=r.getElementsByTagName("title")[0],(!c||c[sa]||c[Je]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(a),r.head.insertBefore(c,r.querySelector("head > title"))),We(c,a,l),c[Je]=e,Ke(c),a=c;break e;case"link":var g=Qh("link","href",r).get(a+(l.href||""));if(g){for(var y=0;y<g.length;y++)if(c=g[y],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(y,1);break t}}c=r.createElement(a),We(c,a,l),r.head.appendChild(c);break;case"meta":if(g=Qh("meta","content",r).get(a+(l.content||""))){for(y=0;y<g.length;y++)if(c=g[y],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(y,1);break t}}c=r.createElement(a),We(c,a,l),r.head.appendChild(c);break;default:throw Error(s(468,a))}c[Je]=e,Ke(c),a=c}e.stateNode=a}else Yh(r,e.type,e.stateNode);else e.stateNode=$h(r,a,e.memoizedProps);else c!==a?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,a===null?Yh(r,e.type,e.stateNode):$h(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&yr(e,e.memoizedProps,l.memoizedProps)}break;case 27:rt(t,e),ot(e),a&512&&(Qe||l===null||Xt(l,l.return)),l!==null&&a&4&&yr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(rt(t,e),ot(e),a&512&&(Qe||l===null||Xt(l,l.return)),e.flags&32){r=e.stateNode;try{Rl(r,"")}catch(J){xe(e,e.return,J)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,yr(e,r,l!==null?l.memoizedProps:r)),a&1024&&(Rr=!0);break;case 6:if(rt(t,e),ot(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){xe(e,e.return,J)}}break;case 3:if(pu=null,r=Vt,Vt=gu(t.containerInfo),rt(t,e),Vt=r,ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Pl(t.containerInfo)}catch(J){xe(e,e.return,J)}Rr&&(Rr=!1,Yd(e));break;case 4:a=Vt,Vt=gu(e.stateNode.containerInfo),rt(t,e),ot(e),Vt=a;break;case 12:rt(t,e),ot(e);break;case 31:rt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,eu(e,a)));break;case 13:rt(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(nu=ht()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,eu(e,a)));break;case 22:r=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,N=sn,V=Qe;if(sn=N||r,Qe=V||b,rt(t,e),Qe=V,sn=N,ot(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(l===null||b||sn||Qe||rl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(c=b.stateNode,r)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=b.stateNode;var q=b.memoizedProps.style,j=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(J){xe(b,b.return,J)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=r?"":b.memoizedProps}catch(J){xe(b,b.return,J)}}}else if(t.tag===18){if(l===null){b=t;try{var H=b.stateNode;r?jh(H,!0):jh(b.stateNode,!1)}catch(J){xe(b,b.return,J)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,eu(e,l))));break;case 19:rt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,eu(e,a)));break;case 30:break;case 21:break;default:rt(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Hd(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var r=l.stateNode,c=Sr(e);Wi(e,c,r);break;case 5:var g=l.stateNode;l.flags&32&&(Rl(g,""),l.flags&=-33);var y=Sr(e);Wi(e,y,g);break;case 3:case 4:var b=l.stateNode.containerInfo,N=Sr(e);Cr(e,N,b);break;default:throw Error(s(161))}}catch(V){xe(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function on(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fd(e,t.alternate,t),t=t.sibling}function rl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:An(4,t,t.return),rl(t);break;case 1:Xt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&jd(t,t.return,l),rl(t);break;case 27:$a(t.stateNode);case 26:case 5:Xt(t,t.return),rl(t);break;case 22:t.memoizedState===null&&rl(t);break;case 30:rl(t);break;default:rl(t)}e=e.sibling}}function cn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:cn(r,c,l),Na(4,c);break;case 1:if(cn(r,c,l),a=c,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(N){xe(a,a.return,N)}if(a=c,r=a.updateQueue,r!==null){var y=a.stateNode;try{var b=r.shared.hiddenCallbacks;if(b!==null)for(r.shared.hiddenCallbacks=null,r=0;r<b.length;r++)bf(b[r],y)}catch(N){xe(a,a.return,N)}}l&&g&64&&Nd(c),ja(c,c.return);break;case 27:Ld(c);case 26:case 5:cn(r,c,l),l&&a===null&&g&4&&Ud(c),ja(c,c.return);break;case 12:cn(r,c,l);break;case 31:cn(r,c,l),l&&g&4&&Gd(r,c);break;case 13:cn(r,c,l),l&&g&4&&$d(r,c);break;case 22:c.memoizedState===null&&cn(r,c,l),ja(c,c.return);break;case 30:break;default:cn(r,c,l)}t=t.sibling}}function br(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ca(l))}function Er(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ca(e))}function Ft(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xd(e,t,l,a),t=t.sibling}function Xd(e,t,l,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,l,a),r&2048&&Na(9,t);break;case 1:Ft(e,t,l,a);break;case 3:Ft(e,t,l,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ca(e)));break;case 12:if(r&2048){Ft(e,t,l,a),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,y=c.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){xe(t,t.return,b)}}else Ft(e,t,l,a);break;case 31:Ft(e,t,l,a);break;case 13:Ft(e,t,l,a);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?Ft(e,t,l,a):Ua(e,t):c._visibility&2?Ft(e,t,l,a):(c._visibility|=2,Bl(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&br(g,t);break;case 24:Ft(e,t,l,a),r&2048&&Er(t.alternate,t);break;default:Ft(e,t,l,a)}}function Bl(e,t,l,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,y=l,b=a,N=g.flags;switch(g.tag){case 0:case 11:case 15:Bl(c,g,y,b,r),Na(8,g);break;case 23:break;case 22:var V=g.stateNode;g.memoizedState!==null?V._visibility&2?Bl(c,g,y,b,r):Ua(c,g):(V._visibility|=2,Bl(c,g,y,b,r)),r&&N&2048&&br(g.alternate,g);break;case 24:Bl(c,g,y,b,r),r&&N&2048&&Er(g.alternate,g);break;default:Bl(c,g,y,b,r)}t=t.sibling}}function Ua(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,r=a.flags;switch(a.tag){case 22:Ua(l,a),r&2048&&br(a.alternate,a);break;case 24:Ua(l,a),r&2048&&Er(a.alternate,a);break;default:Ua(l,a)}t=t.sibling}}var Ha=8192;function Gl(e,t,l){if(e.subtreeFlags&Ha)for(e=e.child;e!==null;)Kd(e,t,l),e=e.sibling}function Kd(e,t,l){switch(e.tag){case 26:Gl(e,t,l),e.flags&Ha&&e.memoizedState!==null&&qv(l,Vt,e.memoizedState,e.memoizedProps);break;case 5:Gl(e,t,l);break;case 3:case 4:var a=Vt;Vt=gu(e.stateNode.containerInfo),Gl(e,t,l),Vt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ha,Ha=16777216,Gl(e,t,l),Ha=a):Gl(e,t,l));break;default:Gl(e,t,l)}}function Zd(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 La(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,kd(a,e)}Zd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jd(e),e=e.sibling}function Jd(e){switch(e.tag){case 0:case 11:case 15:La(e),e.flags&2048&&An(9,e,e.return);break;case 3:La(e);break;case 12:La(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tu(e)):La(e);break;default:La(e)}}function tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,kd(a,e)}Zd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:An(8,t,t.return),tu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,tu(t));break;default:tu(t)}e=e.sibling}}function kd(e,t){for(;Ze!==null;){var l=Ze;switch(l.tag){case 0:case 11:case 15:An(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ca(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ze=a;else e:for(l=e;Ze!==null;){a=Ze;var r=a.sibling,c=a.return;if(qd(a),a===l){Ze=null;break e}if(r!==null){r.return=c,Ze=r;break e}Ze=c}}}var tv={getCacheForType:function(e){var t=Ie(Be),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(Be).controller.signal}},nv=typeof WeakMap=="function"?WeakMap:Map,Re=0,Oe=null,he=null,me=0,Ee=0,Ct=null,On=!1,$l=!1,xr=!1,fn=0,Le=0,zn=0,ol=0,wr=0,Rt=0,Ql=0,Va=null,ct=null,Tr=!1,nu=0,Id=0,lu=1/0,au=null,Dn=null,Xe=0,Nn=null,Yl=null,dn=0,_r=0,Mr=null,Pd=null,Fa=0,Ar=null;function bt(){return(Re&2)!==0&&me!==0?me&-me:L.T!==null?Ur():hc()}function Wd(){if(Rt===0)if((me&536870912)===0||ve){var e=di;di<<=1,(di&3932160)===0&&(di=262144),Rt=e}else Rt=536870912;return e=yt.current,e!==null&&(e.flags|=32),Rt}function ft(e,t,l){(e===Oe&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Xl(e,0),jn(e,me,Rt,!1)),ua(e,l),((Re&2)===0||e!==Oe)&&(e===Oe&&((Re&2)===0&&(ol|=l),Le===4&&jn(e,me,Rt,!1)),Kt(e))}function eh(e,t,l){if((Re&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ia(e,t),r=a?iv(e,t):zr(e,t,!0),c=a;do{if(r===0){$l&&!a&&jn(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!lv(l)){r=zr(e,t,!1),c=!1;continue}if(r===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;r=Va;var b=y.current.memoizedState.isDehydrated;if(b&&(Xl(y,g).flags|=256),g=zr(y,g,!1),g!==2){if(xr&&!b){y.errorRecoveryDisabledLanes|=c,ol|=c,r=4;break e}c=ct,ct=r,c!==null&&(ct===null?ct=c:ct.push.apply(ct,c))}r=g}if(c=!1,r!==2)continue}}if(r===1){Xl(e,0),jn(e,t,0,!0);break}e:{switch(a=e,c=r,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:jn(a,t,Rt,!On);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=nu+300-ht(),10<r)){if(jn(a,t,Rt,!On),gi(a,0,!0)!==0)break e;dn=t,a.timeoutHandle=zh(th.bind(null,a,l,ct,au,Tr,t,Rt,ol,Ql,On,c,"Throttled",-0,0),r);break e}th(a,l,ct,au,Tr,t,Rt,ol,Ql,On,c,null,-0,0)}}break}while(!0);Kt(e)}function th(e,t,l,a,r,c,g,y,b,N,V,q,j,H){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kt},Kd(t,c,q);var J=(c&62914560)===c?nu-ht():(c&4194048)===c?Id-ht():0;if(J=Bv(q,J),J!==null){dn=c,e.cancelPendingCommit=J(oh.bind(null,e,t,c,l,a,r,g,y,b,V,q,null,j,H)),jn(e,c,g,!N);return}}oh(e,t,c,l,a,r,g,y,b)}function lv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var r=l[a],c=r.getSnapshot;r=r.value;try{if(!pt(c(),r))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 jn(e,t,l,a){t&=~wr,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var c=31-mt(r),g=1<<c;a[c]=-1,r&=~g}l!==0&&cc(e,l,t)}function iu(){return(Re&6)===0?(qa(0),!1):!0}function Or(){if(he!==null){if(Ee===0)var e=he.return;else e=he,en=el=null,Xs(e),Hl=null,ba=0,e=he;for(;e!==null;)Dd(e.alternate,e),e=e.return;he=null}}function Xl(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Ev(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),dn=0,Or(),Oe=e,he=l=Pt(e.current,null),me=t,Ee=0,Ct=null,On=!1,$l=ia(e,t),xr=!1,Ql=Rt=wr=ol=zn=Le=0,ct=Va=null,Tr=!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-mt(a),c=1<<r;t|=e[r],a&=~c}return fn=t,Ti(),l}function nh(e,t){ce=null,L.H=Oa,t===Ul||t===ji?(t=yf(),Ee=3):t===js?(t=yf(),Ee=4):Ee=t===rr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ct=t,he===null&&(Le=1,Zi(e,At(t,e.current)))}function lh(){var e=yt.current;return e===null?!0:(me&4194048)===me?Nt===null:(me&62914560)===me||(me&536870912)!==0?e===Nt:!1}function ah(){var e=L.H;return L.H=Oa,e===null?Oa:e}function ih(){var e=L.A;return L.A=tv,e}function uu(){Le=4,On||(me&4194048)!==me&&yt.current!==null||($l=!0),(zn&134217727)===0&&(ol&134217727)===0||Oe===null||jn(Oe,me,Rt,!1)}function zr(e,t,l){var a=Re;Re|=2;var r=ah(),c=ih();(Oe!==e||me!==t)&&(au=null,Xl(e,t)),t=!1;var g=Le;e:do try{if(Ee!==0&&he!==null){var y=he,b=Ct;switch(Ee){case 8:Or(),g=6;break e;case 3:case 2:case 9:case 6:yt.current===null&&(t=!0);var N=Ee;if(Ee=0,Ct=null,Kl(e,y,b,N),l&&$l){g=0;break e}break;default:N=Ee,Ee=0,Ct=null,Kl(e,y,b,N)}}av(),g=Le;break}catch(V){nh(e,V)}while(!0);return t&&e.shellSuspendCounter++,en=el=null,Re=a,L.H=r,L.A=c,he===null&&(Oe=null,me=0,Ti()),g}function av(){for(;he!==null;)uh(he)}function iv(e,t){var l=Re;Re|=2;var a=ah(),r=ih();Oe!==e||me!==t?(au=null,lu=ht()+500,Xl(e,t)):$l=ia(e,t);e:do try{if(Ee!==0&&he!==null){t=he;var c=Ct;t:switch(Ee){case 1:Ee=0,Ct=null,Kl(e,t,c,1);break;case 2:case 9:if(pf(c)){Ee=0,Ct=null,sh(t);break}t=function(){Ee!==2&&Ee!==9||Oe!==e||(Ee=7),Kt(e)},c.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:pf(c)?(Ee=0,Ct=null,sh(t)):(Ee=0,Ct=null,Kl(e,t,c,7));break;case 5:var g=null;switch(he.tag){case 26:g=he.memoizedState;case 5:case 27:var y=he;if(g?Xh(g):y.stateNode.complete){Ee=0,Ct=null;var b=y.sibling;if(b!==null)he=b;else{var N=y.return;N!==null?(he=N,su(N)):he=null}break t}}Ee=0,Ct=null,Kl(e,t,c,5);break;case 6:Ee=0,Ct=null,Kl(e,t,c,6);break;case 8:Or(),Le=6;break e;default:throw Error(s(462))}}uv();break}catch(V){nh(e,V)}while(!0);return en=el=null,L.H=a,L.A=r,Re=l,he!==null?0:(Oe=null,me=0,Ti(),Le)}function uv(){for(;he!==null&&!Am();)uh(he)}function uh(e){var t=Od(e.alternate,e,fn);e.memoizedProps=e.pendingProps,t===null?su(e):he=t}function sh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=xd(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=xd(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Xs(t);default:Dd(l,t),t=he=af(t,fn),t=Od(l,t,fn)}e.memoizedProps=e.pendingProps,t===null?su(e):he=t}function Kl(e,t,l,a){en=el=null,Xs(t),Hl=null,ba=0;var r=t.return;try{if(Zp(e,r,t,l,me)){Le=1,Zi(e,At(l,e.current)),he=null;return}}catch(c){if(r!==null)throw he=r,c;Le=1,Zi(e,At(l,e.current)),he=null;return}t.flags&32768?(ve||a===1?e=!0:$l||(me&536870912)!==0?e=!1:(On=e=!0,(a===2||a===9||a===3||a===6)&&(a=yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),rh(t,e)):su(t)}function su(e){var t=e;do{if((t.flags&32768)!==0){rh(t,On);return}e=t.return;var l=Ip(t.alternate,t,fn);if(l!==null){he=l;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Le===0&&(Le=5)}function rh(e,t){do{var l=Pp(e.alternate,e);if(l!==null){l.flags&=32767,he=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=l}while(e!==null);Le=6,he=null}function oh(e,t,l,a,r,c,g,y,b){e.cancelPendingCommit=null;do ru();while(Xe!==0);if((Re&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Ss,Fm(e,l,c,g,y,b),e===Oe&&(he=Oe=null,me=0),Yl=t,Nn=e,dn=l,_r=c,Mr=r,Pd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cv(ci,function(){return gh(),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,g=Re,Re|=4;try{Wp(e,t,l)}finally{Re=g,Q.p=r,L.T=a}}Xe=1,ch(),fh(),dh()}}function ch(){if(Xe===1){Xe=0;var e=Nn,t=Yl,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var a=Q.p;Q.p=2;var r=Re;Re|=4;try{Qd(t,e);var c=$r,g=Jc(e.containerInfo),y=c.focusedElem,b=c.selectionRange;if(g!==y&&y&&y.ownerDocument&&Zc(y.ownerDocument.documentElement,y)){if(b!==null&&gs(y)){var N=b.start,V=b.end;if(V===void 0&&(V=N),"selectionStart"in y)y.selectionStart=N,y.selectionEnd=Math.min(V,y.value.length);else{var q=y.ownerDocument||document,j=q&&q.defaultView||window;if(j.getSelection){var H=j.getSelection(),J=y.textContent.length,te=Math.min(b.start,J),Me=b.end===void 0?te:Math.min(b.end,J);!H.extend&&te>Me&&(g=Me,Me=te,te=g);var A=Kc(y,te),T=Kc(y,Me);if(A&&T&&(H.rangeCount!==1||H.anchorNode!==A.node||H.anchorOffset!==A.offset||H.focusNode!==T.node||H.focusOffset!==T.offset)){var D=q.createRange();D.setStart(A.node,A.offset),H.removeAllRanges(),te>Me?(H.addRange(D),H.extend(T.node,T.offset)):(D.setEnd(T.node,T.offset),H.addRange(D))}}}}for(q=[],H=y;H=H.parentNode;)H.nodeType===1&&q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var F=q[y];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}Cu=!!Gr,$r=Gr=null}finally{Re=r,Q.p=a,L.T=l}}e.current=t,Xe=2}}function fh(){if(Xe===2){Xe=0;var e=Nn,t=Yl,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var a=Q.p;Q.p=2;var r=Re;Re|=4;try{Fd(e,t.alternate,t)}finally{Re=r,Q.p=a,L.T=l}}Xe=3}}function dh(){if(Xe===4||Xe===3){Xe=0,Om();var e=Nn,t=Yl,l=dn,a=Pd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,Yl=Nn=null,hh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Dn=null),Ju(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(aa,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 c=e.onRecoverableError,g=0;g<a.length;g++){var y=a[g];c(y.value,{componentStack:y.stack})}}finally{L.T=t,Q.p=r}}(dn&3)!==0&&ru(),Kt(e),r=e.pendingLanes,(l&261930)!==0&&(r&42)!==0?e===Ar?Fa++:(Fa=0,Ar=e):Fa=0,qa(0)}}function hh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ca(t)))}function ru(){return ch(),fh(),dh(),gh()}function gh(){if(Xe!==5)return!1;var e=Nn,t=_r;_r=0;var l=Ju(dn),a=L.T,r=Q.p;try{Q.p=32>l?32:l,L.T=null,l=Mr,Mr=null;var c=Nn,g=dn;if(Xe=0,Yl=Nn=null,dn=0,(Re&6)!==0)throw Error(s(331));var y=Re;if(Re|=4,Jd(c.current),Xd(c,c.current,g,l),Re=y,qa(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(aa,c)}catch{}return!0}finally{Q.p=r,L.T=a,hh(e,t)}}function mh(e,t,l){t=At(l,t),t=sr(e.stateNode,t,2),e=Tn(e,t,2),e!==null&&(ua(e,2),Kt(e))}function xe(e,t,l){if(e.tag===3)mh(e,e,l);else for(;t!==null;){if(t.tag===3){mh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Dn===null||!Dn.has(a))){e=At(l,e),l=pd(2),a=Tn(t,l,2),a!==null&&(vd(l,a,t,e),ua(a,2),Kt(a));break}}t=t.return}}function Dr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new nv;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(l)||(xr=!0,r.add(l),e=sv.bind(null,e,t,l),t.then(e,e))}function sv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Oe===e&&(me&l)===l&&(Le===4||Le===3&&(me&62914560)===me&&300>ht()-nu?(Re&2)===0&&Xl(e,0):wr|=l,Ql===me&&(Ql=0)),Kt(e)}function ph(e,t){t===0&&(t=oc()),e=In(e,t),e!==null&&(ua(e,t),Kt(e))}function rv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),ph(e,l)}function ov(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(l=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),ph(e,l)}function cv(e,t){return Yu(e,t)}var ou=null,Zl=null,Nr=!1,cu=!1,jr=!1,Un=0;function Kt(e){e!==Zl&&e.next===null&&(Zl===null?ou=Zl=e:Zl=Zl.next=e),cu=!0,Nr||(Nr=!0,dv())}function qa(e,t){if(!jr&&cu){jr=!0;do for(var l=!1,a=ou;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var c=0;else{var g=a.suspendedLanes,y=a.pingedLanes;c=(1<<31-mt(42|e)+1)-1,c&=r&~(g&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Ch(a,c))}else c=me,c=gi(a,a===Oe?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ia(a,c)||(l=!0,Ch(a,c));a=a.next}while(l);jr=!1}}function fv(){vh()}function vh(){cu=Nr=!1;var e=0;Un!==0&&bv()&&(e=Un);for(var t=ht(),l=null,a=ou;a!==null;){var r=a.next,c=yh(a,t);c===0?(a.next=null,l===null?ou=r:l.next=r,r===null&&(Zl=l)):(l=a,(e!==0||(c&3)!==0)&&(cu=!0)),a=r}Xe!==0&&Xe!==5||qa(e),Un!==0&&(Un=0)}function yh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-mt(c),y=1<<g,b=r[g];b===-1?((y&l)===0||(y&a)!==0)&&(r[g]=Vm(y,t)):b<=t&&(e.expiredLanes|=y),c&=~y}if(t=Oe,l=me,l=gi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Xu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ia(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Xu(a),Ju(l)){case 2:case 8:l=sc;break;case 32:l=ci;break;case 268435456:l=rc;break;default:l=ci}return a=Sh.bind(null,e),l=Yu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Xu(a),e.callbackPriority=2,e.callbackNode=null,2}function Sh(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ru()&&e.callbackNode!==l)return null;var a=me;return a=gi(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(eh(e,a,t),yh(e,ht()),e.callbackNode!=null&&e.callbackNode===l?Sh.bind(null,e):null)}function Ch(e,t){if(ru())return null;eh(e,t,!0)}function dv(){xv(function(){(Re&6)!==0?Yu(uc,fv):vh()})}function Ur(){if(Un===0){var e=Nl;e===0&&(e=fi,fi<<=1,(fi&261888)===0&&(fi=256)),Un=e}return Un}function Rh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yi(""+e)}function bh(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function hv(e,t,l,a,r){if(t==="submit"&&l&&l.stateNode===r){var c=Rh((r[it]||null).action),g=a.submitter;g&&(t=(t=g[it]||null)?Rh(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var y=new bi("action","action",null,a,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Un!==0){var b=g?bh(r,g):new FormData(r);tr(l,{pending:!0,data:b,method:r.method,action:c},null,b)}}else typeof c=="function"&&(y.preventDefault(),b=g?bh(r,g):new FormData(r),tr(l,{pending:!0,data:b,method:r.method,action:c},c,b))},currentTarget:r}]})}}for(var Hr=0;Hr<ys.length;Hr++){var Lr=ys[Hr],gv=Lr.toLowerCase(),mv=Lr[0].toUpperCase()+Lr.slice(1);Lt(gv,"on"+mv)}Lt(Pc,"onAnimationEnd"),Lt(Wc,"onAnimationIteration"),Lt(ef,"onAnimationStart"),Lt("dblclick","onDoubleClick"),Lt("focusin","onFocus"),Lt("focusout","onBlur"),Lt(zp,"onTransitionRun"),Lt(Dp,"onTransitionStart"),Lt(Np,"onTransitionCancel"),Lt(tf,"onTransitionEnd"),Sl("onMouseEnter",["mouseout","mouseover"]),Sl("onMouseLeave",["mouseout","mouseover"]),Sl("onPointerEnter",["pointerout","pointerover"]),Sl("onPointerLeave",["pointerout","pointerover"]),Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ba="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(" "),pv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ba));function Eh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],r=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var g=a.length-1;0<=g;g--){var y=a[g],b=y.instance,N=y.currentTarget;if(y=y.listener,b!==c&&r.isPropagationStopped())break e;c=y,r.currentTarget=N;try{c(r)}catch(V){wi(V)}r.currentTarget=null,c=b}else for(g=0;g<a.length;g++){if(y=a[g],b=y.instance,N=y.currentTarget,y=y.listener,b!==c&&r.isPropagationStopped())break e;c=y,r.currentTarget=N;try{c(r)}catch(V){wi(V)}r.currentTarget=null,c=b}}}}function ge(e,t){var l=t[ku];l===void 0&&(l=t[ku]=new Set);var a=e+"__bubble";l.has(a)||(xh(t,e,2,!1),l.add(a))}function Vr(e,t,l){var a=0;t&&(a|=4),xh(l,e,a,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[fu]){e[fu]=!0,pc.forEach(function(l){l!=="selectionchange"&&(pv.has(l)||Vr(l,!1,e),Vr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Vr("selectionchange",!1,t))}}function xh(e,t,l,a){switch(Wh(t)){case 2:var r=Qv;break;case 8:r=Yv;break;default:r=eo}l=r.bind(null,t,l,e),r=void 0,!is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,l,{capture:!0,passive:r}):e.addEventListener(t,l,!0):r!==void 0?e.addEventListener(t,l,{passive:r}):e.addEventListener(t,l,!1)}function qr(e,t,l,a,r){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var y=a.stateNode.containerInfo;if(y===r)break;if(g===4)for(g=a.return;g!==null;){var b=g.tag;if((b===3||b===4)&&g.stateNode.containerInfo===r)return;g=g.return}for(;y!==null;){if(g=pl(y),g===null)return;if(b=g.tag,b===5||b===6||b===26||b===27){a=c=g;continue e}y=y.parentNode}}a=a.return}Mc(function(){var N=c,V=ls(l),q=[];e:{var j=nf.get(e);if(j!==void 0){var H=bi,J=e;switch(e){case"keypress":if(Ci(l)===0)break e;case"keydown":case"keyup":H=op;break;case"focusin":J="focus",H=os;break;case"focusout":J="blur",H=os;break;case"beforeblur":case"afterblur":H=os;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=zc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Im;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=dp;break;case Pc:case Wc:case ef:H=ep;break;case tf:H=gp;break;case"scroll":case"scrollend":H=Jm;break;case"wheel":H=pp;break;case"copy":case"cut":case"paste":H=np;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Nc;break;case"toggle":case"beforetoggle":H=yp}var te=(t&4)!==0,Me=!te&&(e==="scroll"||e==="scrollend"),A=te?j!==null?j+"Capture":null:j;te=[];for(var T=N,D;T!==null;){var F=T;if(D=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||D===null||A===null||(F=oa(T,A),F!=null&&te.push(Ga(T,F,D))),Me)break;T=T.return}0<te.length&&(j=new H(j,J,null,l,V),q.push({event:j,listeners:te}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",j&&l!==ns&&(J=l.relatedTarget||l.fromElement)&&(pl(J)||J[ml]))break e;if((H||j)&&(j=V.window===V?V:(j=V.ownerDocument)?j.defaultView||j.parentWindow:window,H?(J=l.relatedTarget||l.toElement,H=N,J=J?pl(J):null,J!==null&&(Me=f(J),te=J.tag,J!==Me||te!==5&&te!==27&&te!==6)&&(J=null)):(H=null,J=N),H!==J)){if(te=zc,F="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(te=Nc,F="onPointerLeave",A="onPointerEnter",T="pointer"),Me=H==null?j:ra(H),D=J==null?j:ra(J),j=new te(F,T+"leave",H,l,V),j.target=Me,j.relatedTarget=D,F=null,pl(V)===N&&(te=new te(A,T+"enter",J,l,V),te.target=D,te.relatedTarget=Me,F=te),Me=F,H&&J)t:{for(te=vv,A=H,T=J,D=0,F=A;F;F=te(F))D++;F=0;for(var W=T;W;W=te(W))F++;for(;0<D-F;)A=te(A),D--;for(;0<F-D;)T=te(T),F--;for(;D--;){if(A===T||T!==null&&A===T.alternate){te=A;break t}A=te(A),T=te(T)}te=null}else te=null;H!==null&&wh(q,j,H,te,!1),J!==null&&Me!==null&&wh(q,Me,J,te,!0)}}e:{if(j=N?ra(N):window,H=j.nodeName&&j.nodeName.toLowerCase(),H==="select"||H==="input"&&j.type==="file")var Se=Bc;else if(Fc(j))if(Gc)Se=Mp;else{Se=Tp;var I=wp}else H=j.nodeName,!H||H.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?N&&ts(N.elementType)&&(Se=Bc):Se=_p;if(Se&&(Se=Se(e,N))){qc(q,Se,l,V);break e}I&&I(e,j,N),e==="focusout"&&N&&j.type==="number"&&N.memoizedProps.value!=null&&es(j,"number",j.value)}switch(I=N?ra(N):window,e){case"focusin":(Fc(I)||I.contentEditable==="true")&&(wl=I,ms=N,va=null);break;case"focusout":va=ms=wl=null;break;case"mousedown":ps=!0;break;case"contextmenu":case"mouseup":case"dragend":ps=!1,kc(q,l,V);break;case"selectionchange":if(Op)break;case"keydown":case"keyup":kc(q,l,V)}var fe;if(fs)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else xl?Lc(e,l)&&(pe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(pe="onCompositionStart");pe&&(jc&&l.locale!=="ko"&&(xl||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&xl&&(fe=Ac()):(Sn=V,us="value"in Sn?Sn.value:Sn.textContent,xl=!0)),I=du(N,pe),0<I.length&&(pe=new Dc(pe,e,null,l,V),q.push({event:pe,listeners:I}),fe?pe.data=fe:(fe=Vc(l),fe!==null&&(pe.data=fe)))),(fe=Cp?Rp(e,l):bp(e,l))&&(pe=du(N,"onBeforeInput"),0<pe.length&&(I=new Dc("onBeforeInput","beforeinput",null,l,V),q.push({event:I,listeners:pe}),I.data=fe)),hv(q,e,N,l,V)}Eh(q,t)})}function Ga(e,t,l){return{instance:e,listener:t,currentTarget:l}}function du(e,t){for(var l=t+"Capture",a=[];e!==null;){var r=e,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=oa(e,l),r!=null&&a.unshift(Ga(e,r,c)),r=oa(e,t),r!=null&&a.push(Ga(e,r,c))),e.tag===3)return a;e=e.return}return[]}function vv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wh(e,t,l,a,r){for(var c=t._reactName,g=[];l!==null&&l!==a;){var y=l,b=y.alternate,N=y.stateNode;if(y=y.tag,b!==null&&b===a)break;y!==5&&y!==26&&y!==27||N===null||(b=N,r?(N=oa(l,c),N!=null&&g.unshift(Ga(l,N,b))):r||(N=oa(l,c),N!=null&&g.push(Ga(l,N,b)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var yv=/\r\n?/g,Sv=/\u0000|\uFFFD/g;function Th(e){return(typeof e=="string"?e:""+e).replace(yv,`
`).replace(Sv,"")}function _h(e,t){return t=Th(t),Th(e)===t}function _e(e,t,l,a,r,c){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Rl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Rl(e,""+a);break;case"className":pi(e,"class",a);break;case"tabIndex":pi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(e,l,a);break;case"style":Tc(e,a,c);break;case"data":if(t!=="object"){pi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=yi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&_e(e,t,"name",r.name,r,null),_e(e,t,"formEncType",r.formEncType,r,null),_e(e,t,"formMethod",r.formMethod,r,null),_e(e,t,"formTarget",r.formTarget,r,null)):(_e(e,t,"encType",r.encType,r,null),_e(e,t,"method",r.method,r,null),_e(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=yi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=kt);break;case"onScroll":a!=null&&ge("scroll",e);break;case"onScrollEnd":a!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}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}l=yi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ge("beforetoggle",e),ge("toggle",e),mi(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":mi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Km.get(l)||l,mi(e,l,a))}}function Br(e,t,l,a,r,c){switch(l){case"style":Tc(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Rl(e,a):(typeof a=="number"||typeof a=="bigint")&&Rl(e,""+a);break;case"onScroll":a!=null&&ge("scroll",e);break;case"onScrollEnd":a!=null&&ge("scrollend",e);break;case"onClick":a!=null&&(e.onclick=kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(r=l.endsWith("Capture"),t=l.slice(2,r?l.length-7:void 0),c=e[it]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,r),typeof a=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,r);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):mi(e,l,a)}}}function We(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var a=!1,r=!1,c;for(c in l)if(l.hasOwnProperty(c)){var g=l[c];if(g!=null)switch(c){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,c,g,l,null)}}r&&_e(e,t,"srcSet",l.srcSet,l,null),a&&_e(e,t,"src",l.src,l,null);return;case"input":ge("invalid",e);var y=c=g=r=null,b=null,N=null;for(a in l)if(l.hasOwnProperty(a)){var V=l[a];if(V!=null)switch(a){case"name":r=V;break;case"type":g=V;break;case"checked":b=V;break;case"defaultChecked":N=V;break;case"value":c=V;break;case"defaultValue":y=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:_e(e,t,a,V,l,null)}}bc(e,c,y,b,N,g,r,!1);return;case"select":ge("invalid",e),a=g=c=null;for(r in l)if(l.hasOwnProperty(r)&&(y=l[r],y!=null))switch(r){case"value":c=y;break;case"defaultValue":g=y;break;case"multiple":a=y;default:_e(e,t,r,y,l,null)}t=c,l=g,e.multiple=!!a,t!=null?Cl(e,!!a,t,!1):l!=null&&Cl(e,!!a,l,!0);return;case"textarea":ge("invalid",e),c=r=a=null;for(g in l)if(l.hasOwnProperty(g)&&(y=l[g],y!=null))switch(g){case"value":a=y;break;case"defaultValue":r=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:_e(e,t,g,y,l,null)}xc(e,a,r,c);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:_e(e,t,b,a,l,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(a=0;a<Ba.length;a++)ge(Ba[a],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("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(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,N,a,l,null)}return;default:if(ts(t)){for(V in l)l.hasOwnProperty(V)&&(a=l[V],a!==void 0&&Br(e,t,V,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&_e(e,t,y,a,l,null))}function Cv(e,t,l,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,c=null,g=null,y=null,b=null,N=null,V=null;for(H in l){var q=l[H];if(l.hasOwnProperty(H)&&q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":b=q;default:a.hasOwnProperty(H)||_e(e,t,H,null,a,q)}}for(var j in a){var H=a[j];if(q=l[j],a.hasOwnProperty(j)&&(H!=null||q!=null))switch(j){case"type":c=H;break;case"name":r=H;break;case"checked":N=H;break;case"defaultChecked":V=H;break;case"value":g=H;break;case"defaultValue":y=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:H!==q&&_e(e,t,j,H,a,q)}}Wu(e,g,y,b,N,V,c,r);return;case"select":H=g=y=j=null;for(c in l)if(b=l[c],l.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":H=b;default:a.hasOwnProperty(c)||_e(e,t,c,null,a,b)}for(r in a)if(c=a[r],b=l[r],a.hasOwnProperty(r)&&(c!=null||b!=null))switch(r){case"value":j=c;break;case"defaultValue":y=c;break;case"multiple":g=c;default:c!==b&&_e(e,t,r,c,a,b)}t=y,l=g,a=H,j!=null?Cl(e,!!l,j,!1):!!a!=!!l&&(t!=null?Cl(e,!!l,t,!0):Cl(e,!!l,l?[]:"",!1));return;case"textarea":H=j=null;for(y in l)if(r=l[y],l.hasOwnProperty(y)&&r!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:_e(e,t,y,null,a,r)}for(g in a)if(r=a[g],c=l[g],a.hasOwnProperty(g)&&(r!=null||c!=null))switch(g){case"value":j=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==c&&_e(e,t,g,r,a,c)}Ec(e,j,H);return;case"option":for(var J in l)if(j=l[J],l.hasOwnProperty(J)&&j!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:_e(e,t,J,null,a,j)}for(b in a)if(j=a[b],H=l[b],a.hasOwnProperty(b)&&j!==H&&(j!=null||H!=null))switch(b){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:_e(e,t,b,j,a,H)}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 te in l)j=l[te],l.hasOwnProperty(te)&&j!=null&&!a.hasOwnProperty(te)&&_e(e,t,te,null,a,j);for(N in a)if(j=a[N],H=l[N],a.hasOwnProperty(N)&&j!==H&&(j!=null||H!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:_e(e,t,N,j,a,H)}return;default:if(ts(t)){for(var Me in l)j=l[Me],l.hasOwnProperty(Me)&&j!==void 0&&!a.hasOwnProperty(Me)&&Br(e,t,Me,void 0,a,j);for(V in a)j=a[V],H=l[V],!a.hasOwnProperty(V)||j===H||j===void 0&&H===void 0||Br(e,t,V,j,a,H);return}}for(var A in l)j=l[A],l.hasOwnProperty(A)&&j!=null&&!a.hasOwnProperty(A)&&_e(e,t,A,null,a,j);for(q in a)j=a[q],H=l[q],!a.hasOwnProperty(q)||j===H||j==null&&H==null||_e(e,t,q,j,a,H)}function Mh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var r=l[a],c=r.transferSize,g=r.initiatorType,y=r.duration;if(c&&y&&Mh(g)){for(g=0,y=r.responseEnd,a+=1;a<l.length;a++){var b=l[a],N=b.startTime;if(N>y)break;var V=b.transferSize,q=b.initiatorType;V&&Mh(q)&&(b=b.responseEnd,g+=V*(b<y?1:(y-N)/(b-N)))}if(--a,t+=8*(c+g)/(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 Gr=null,$r=null;function hu(e){return e.nodeType===9?e:e.ownerDocument}function Ah(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 Oh(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 Qr(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 Yr=null;function bv(){var e=window.event;return e&&e.type==="popstate"?e===Yr?!1:(Yr=e,!0):(Yr=null,!1)}var zh=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,xv=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(wv)}:zh;function wv(e){setTimeout(function(){throw e})}function Hn(e){return e==="head"}function Nh(e,t){var l=t,a=0;do{var r=l.nextSibling;if(e.removeChild(l),r&&r.nodeType===8)if(l=r.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(r),Pl(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")$a(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,$a(l);for(var c=l.firstChild;c;){var g=c.nextSibling,y=c.nodeName;c[sa]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=g}}else l==="body"&&$a(e.ownerDocument.body);l=r}while(l);Pl(t)}function jh(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Xr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Xr(l),Iu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Tv(e,t,l,a){for(;e.nodeType===1;){var r=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[sa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==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(c=e.getAttribute("src"),(c!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=jt(e.nextSibling),e===null)break}return null}function _v(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=jt(e.nextSibling),e===null))return null;return e}function Uh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jt(e.nextSibling),e===null))return null;return e}function Kr(e){return e.data==="$?"||e.data==="$~"}function Zr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Mv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jr=null;function Hh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return jt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Lh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Vh(e,t,l){switch(t=hu(l),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 $a(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Iu(e)}var Ut=new Map,Fh=new Set;function gu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var hn=Q.d;Q.d={f:Av,r:Ov,D:zv,C:Dv,L:Nv,m:jv,X:Hv,S:Uv,M:Lv};function Av(){var e=hn.f(),t=iu();return e||t}function Ov(e){var t=vl(e);t!==null&&t.tag===5&&t.type==="form"?nd(t):hn.r(e)}var Jl=typeof document>"u"?null:document;function qh(e,t,l){var a=Jl;if(a&&typeof t=="string"&&t){var r=_t(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof l=="string"&&(r+='[crossorigin="'+l+'"]'),Fh.has(r)||(Fh.add(r),e={rel:e,crossOrigin:l,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),We(t,"link",e),Ke(t),a.head.appendChild(t)))}}function zv(e){hn.D(e),qh("dns-prefetch",e,null)}function Dv(e,t){hn.C(e,t),qh("preconnect",e,t)}function Nv(e,t,l){hn.L(e,t,l);var a=Jl;if(a&&e&&t){var r='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(r+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(r+='[imagesizes="'+_t(l.imageSizes)+'"]')):r+='[href="'+_t(e)+'"]';var c=r;switch(t){case"style":c=kl(e);break;case"script":c=Il(e)}Ut.has(c)||(e=C({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(c,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Qa(c))||t==="script"&&a.querySelector(Ya(c))||(t=a.createElement("link"),We(t,"link",e),Ke(t),a.head.appendChild(t)))}}function jv(e,t){hn.m(e,t);var l=Jl;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',c=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Il(e)}if(!Ut.has(c)&&(e=C({rel:"modulepreload",href:e},t),Ut.set(c,e),l.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ya(c)))return}a=l.createElement("link"),We(a,"link",e),Ke(a),l.head.appendChild(a)}}}function Uv(e,t,l){hn.S(e,t,l);var a=Jl;if(a&&e){var r=yl(a).hoistableStyles,c=kl(e);t=t||"default";var g=r.get(c);if(!g){var y={loading:0,preload:null};if(g=a.querySelector(Qa(c)))y.loading=5;else{e=C({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(c))&&kr(e,l);var b=g=a.createElement("link");Ke(b),We(b,"link",e),b._p=new Promise(function(N,V){b.onload=N,b.onerror=V}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,mu(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:y},r.set(c,g)}}}function Hv(e,t){hn.X(e,t);var l=Jl;if(l&&e){var a=yl(l).hoistableScripts,r=Il(e),c=a.get(r);c||(c=l.querySelector(Ya(r)),c||(e=C({src:e,async:!0},t),(t=Ut.get(r))&&Ir(e,t),c=l.createElement("script"),Ke(c),We(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function Lv(e,t){hn.M(e,t);var l=Jl;if(l&&e){var a=yl(l).hoistableScripts,r=Il(e),c=a.get(r);c||(c=l.querySelector(Ya(r)),c||(e=C({src:e,async:!0,type:"module"},t),(t=Ut.get(r))&&Ir(e,t),c=l.createElement("script"),Ke(c),We(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function Bh(e,t,l,a){var r=(r=de.current)?gu(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=kl(l.href),l=yl(r).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=kl(l.href);var c=yl(r).hoistableStyles,g=c.get(e);if(g||(r=r.ownerDocument||r,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=r.querySelector(Qa(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Ut.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ut.set(e,l),c||Vv(r,e,l,g.state))),t&&a===null)throw Error(s(528,""));return g}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Il(l),l=yl(r).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function kl(e){return'href="'+_t(e)+'"'}function Qa(e){return'link[rel="stylesheet"]['+e+"]"}function Gh(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function Vv(e,t,l,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}),We(t,"link",l),Ke(t),e.head.appendChild(t))}function Il(e){return'[src="'+_t(e)+'"]'}function Ya(e){return"script[async]"+e}function $h(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(a)return t.instance=a,Ke(a),a;var r=C({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ke(a),We(a,"style",r),mu(a,l.precedence,e),t.instance=a;case"stylesheet":r=kl(l.href);var c=e.querySelector(Qa(r));if(c)return t.state.loading|=4,t.instance=c,Ke(c),c;a=Gh(l),(r=Ut.get(r))&&kr(a,r),c=(e.ownerDocument||e).createElement("link"),Ke(c);var g=c;return g._p=new Promise(function(y,b){g.onload=y,g.onerror=b}),We(c,"link",a),t.state.loading|=4,mu(c,l.precedence,e),t.instance=c;case"script":return c=Il(l.src),(r=e.querySelector(Ya(c)))?(t.instance=r,Ke(r),r):(a=l,(r=Ut.get(c))&&(a=C({},l),Ir(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ke(r),We(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,mu(a,l.precedence,e));return t.instance}function mu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,c=r,g=0;g<a.length;g++){var y=a[g];if(y.dataset.precedence===t)c=y;else if(c!==r)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function kr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ir(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pu=null;function Qh(e,t,l){if(pu===null){var a=new Map,r=pu=new Map;r.set(l,a)}else r=pu,a=r.get(l),a||(a=new Map,r.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),r=0;r<l.length;r++){var c=l[r];if(!(c[sa]||c[Je]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var y=a.get(g);y?y.push(c):a.set(g,[c])}}return a}function Yh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Fv(e,t,l){if(l===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 Xh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qv(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var r=kl(a.href),c=t.querySelector(Qa(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,Ke(c);return}c=t.ownerDocument||t,a=Gh(a),(r=Ut.get(r))&&kr(a,r),c=c.createElement("link"),Ke(c);var g=c;g._p=new Promise(function(y,b){g.onload=y,g.onerror=b}),We(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=vu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Pr=0;function Bv(e,t){return e.stylesheets&&e.count===0&&Su(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Pr===0&&(Pr=62500*Rv());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Pr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Su(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yu=null;function Su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yu=new Map,t.forEach(Gv,e),yu=null,vu.call(e))}function Gv(e,t){if(!(t.state.loading&4)){var l=yu.get(e);if(l)var a=l.get(null);else{l=new Map,yu.set(e,l);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var g=r[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),a=g)}a&&l.set(null,a)}r=t.instance,g=r.getAttribute("data-precedence"),c=l.get(g)||a,c===a&&l.set(null,r),l.set(g,r),this.count++,a=vu.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),c?c.parentNode.insertBefore(r,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Xa={$$typeof:G,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function $v(e,t,l,a,r,c,g,y,b){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=Ku(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ku(0),this.hiddenUpdates=Ku(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Kh(e,t,l,a,r,c,g,y,b,N,V,q){return e=new $v(e,t,l,g,b,N,V,q,y),t=1,c===!0&&(t|=24),c=vt(3,null,null,t),e.current=c,c.stateNode=e,t=zs(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:l,cache:t},Us(c),e}function Zh(e){return e?(e=Ml,e):Ml}function Jh(e,t,l,a,r,c){r=Zh(r),a.context===null?a.context=r:a.pendingContext=r,a=wn(t),a.payload={element:l},c=c===void 0?null:c,c!==null&&(a.callback=c),l=Tn(e,a,t),l!==null&&(ft(l,e,t),xa(l,e,t))}function kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Wr(e,t){kh(e,t),(e=e.alternate)&&kh(e,t)}function Ih(e){if(e.tag===13||e.tag===31){var t=In(e,67108864);t!==null&&ft(t,e,67108864),Wr(e,67108864)}}function Ph(e){if(e.tag===13||e.tag===31){var t=bt();t=Zu(t);var l=In(e,t);l!==null&&ft(l,e,t),Wr(e,t)}}var Cu=!0;function Qv(e,t,l,a){var r=L.T;L.T=null;var c=Q.p;try{Q.p=2,eo(e,t,l,a)}finally{Q.p=c,L.T=r}}function Yv(e,t,l,a){var r=L.T;L.T=null;var c=Q.p;try{Q.p=8,eo(e,t,l,a)}finally{Q.p=c,L.T=r}}function eo(e,t,l,a){if(Cu){var r=to(a);if(r===null)qr(e,t,a,Ru,l),eg(e,a);else if(Kv(r,e,t,l,a))a.stopPropagation();else if(eg(e,a),t&4&&-1<Xv.indexOf(e)){for(;r!==null;){var c=vl(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Xn(c.pendingLanes);if(g!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var b=1<<31-mt(g);y.entanglements[1]|=b,g&=~b}Kt(c),(Re&6)===0&&(lu=ht()+500,qa(0))}}break;case 31:case 13:y=In(c,2),y!==null&&ft(y,c,2),iu(),Wr(c,2)}if(c=to(a),c===null&&qr(e,t,a,Ru,l),c===r)break;r=c}r!==null&&a.stopPropagation()}else qr(e,t,a,null,l)}}function to(e){return e=ls(e),no(e)}var Ru=null;function no(e){if(Ru=null,e=pl(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=h(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ru=e,null}function Wh(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(zm()){case uc:return 2;case sc:return 8;case ci:case Dm:return 32;case rc:return 268435456;default:return 32}default:return 32}}var lo=!1,Ln=null,Vn=null,Fn=null,Ka=new Map,Za=new Map,qn=[],Xv="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 eg(e,t){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":Ka.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Za.delete(t.pointerId)}}function Ja(e,t,l,a,r,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:c,targetContainers:[r]},t!==null&&(t=vl(t),t!==null&&Ih(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Kv(e,t,l,a,r){switch(t){case"focusin":return Ln=Ja(Ln,e,t,l,a,r),!0;case"dragenter":return Vn=Ja(Vn,e,t,l,a,r),!0;case"mouseover":return Fn=Ja(Fn,e,t,l,a,r),!0;case"pointerover":var c=r.pointerId;return Ka.set(c,Ja(Ka.get(c)||null,e,t,l,a,r)),!0;case"gotpointercapture":return c=r.pointerId,Za.set(c,Ja(Za.get(c)||null,e,t,l,a,r)),!0}return!1}function tg(e){var t=pl(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,gc(e.priority,function(){Ph(l)});return}}else if(t===31){if(t=h(l),t!==null){e.blockedOn=t,gc(e.priority,function(){Ph(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=to(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ns=a,l.target.dispatchEvent(a),ns=null}else return t=vl(l),t!==null&&Ih(t),e.blockedOn=l,!1;t.shift()}return!0}function ng(e,t,l){bu(e)&&l.delete(t)}function Zv(){lo=!1,Ln!==null&&bu(Ln)&&(Ln=null),Vn!==null&&bu(Vn)&&(Vn=null),Fn!==null&&bu(Fn)&&(Fn=null),Ka.forEach(ng),Za.forEach(ng)}function Eu(e,t){e.blockedOn===t&&(e.blockedOn=null,lo||(lo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zv)))}var xu=null;function lg(e){xu!==e&&(xu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){xu===e&&(xu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(no(a||l)===null)continue;break}var c=vl(l);c!==null&&(e.splice(t,3),t-=3,tr(c,{pending:!0,data:r,method:l.method,action:a},a,r))}}))}function Pl(e){function t(b){return Eu(b,e)}Ln!==null&&Eu(Ln,e),Vn!==null&&Eu(Vn,e),Fn!==null&&Eu(Fn,e),Ka.forEach(t),Za.forEach(t);for(var l=0;l<qn.length;l++){var a=qn[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<qn.length&&(l=qn[0],l.blockedOn===null);)tg(l),l.blockedOn===null&&qn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var r=l[a],c=l[a+1],g=r[it]||null;if(typeof c=="function")g||lg(l);else if(g){var y=null;if(c&&c.hasAttribute("formAction")){if(r=c,g=c[it]||null)y=g.formAction;else if(no(r)!==null)continue}else y=g.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),lg(l)}}}function ag(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return r=g})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function ao(e){this._internalRoot=e}wu.prototype.render=ao.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=bt();Jh(l,a,e,t,null,null)},wu.prototype.unmount=ao.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jh(e.current,2,null,e,null,null),iu(),t[ml]=null}};function wu(e){this._internalRoot=e}wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=hc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<qn.length&&t!==0&&t<qn[l].priority;l++);qn.splice(l,0,e),l===0&&tg(e)}};var ig=i.version;if(ig!=="19.2.0")throw Error(s(527,ig,"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=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Jv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{aa=Tu.inject(Jv),gt=Tu}catch{}}return Ia.createRoot=function(e,t){if(!o(e))throw Error(s(299));var l=!1,a="",r=dd,c=hd,g=gd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Kh(e,1,!1,null,null,l,a,null,r,c,g,ag),e[ml]=t.current,Fr(e),new ao(t)},Ia.hydrateRoot=function(e,t,l){if(!o(e))throw Error(s(299));var a=!1,r="",c=dd,g=hd,y=gd,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(r=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=Kh(e,1,!0,t,l??null,a,r,b,c,g,y,ag),t.context=Zh(null),l=t.current,a=bt(),a=Zu(a),r=wn(a),r.callback=null,Tn(l,r,a),l=a,t.current.lanes=l,ua(t,l),Kt(t),e[ml]=t.current,Fr(e),new wu(t)},Ia.version="19.2.0",Ia}var mg;function iy(){if(mg)return so.exports;mg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),so.exports=ay(),so.exports}var uy=iy();const sy=qg(uy);/**
 * 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 pg="popstate";function ry(n={}){function i(o,f){let{pathname:d="/",search:h="",hash:m=""}=hl(o.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Ro("",{pathname:d,search:h,hash:m},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function u(o,f){let d=o.document.querySelector("base"),h="";if(d&&d.getAttribute("href")){let m=o.location.href,p=m.indexOf("#");h=p===-1?m:m.slice(0,p)}return h+"#"+(typeof f=="string"?f:ti(f))}function s(o,f){Et(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return cy(i,u,s,n)}function Ue(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Et(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function oy(){return Math.random().toString(36).substring(2,10)}function vg(n,i){return{usr:n.state,key:n.key,idx:i}}function Ro(n,i,u=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?hl(i):i,state:u,key:i&&i.key||s||oy()}}function ti({pathname:n="/",search:i="",hash:u=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(n+=u.charAt(0)==="#"?u:"#"+u),n}function hl(n){let i={};if(n){let u=n.indexOf("#");u>=0&&(i.hash=n.substring(u),n=n.substring(0,u));let s=n.indexOf("?");s>=0&&(i.search=n.substring(s),n=n.substring(0,s)),n&&(i.pathname=n)}return i}function cy(n,i,u,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,d=o.history,h="POP",m=null,p=v();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function v(){return(d.state||{idx:null}).idx}function C(){h="POP";let O=v(),z=O==null?null:O-p;p=O,m&&m({action:h,location:w.location,delta:z})}function R(O,z){h="PUSH";let U=Ro(w.location,O,z);u&&u(U,O),p=v()+1;let G=vg(U,p),K=w.createHref(U);try{d.pushState(G,"",K)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(K)}f&&m&&m({action:h,location:w.location,delta:1})}function S(O,z){h="REPLACE";let U=Ro(w.location,O,z);u&&u(U,O),p=v();let G=vg(U,p),K=w.createHref(U);d.replaceState(G,"",K),f&&m&&m({action:h,location:w.location,delta:0})}function x(O){return fy(O)}let w={get action(){return h},get location(){return n(o,d)},listen(O){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(pg,C),m=O,()=>{o.removeEventListener(pg,C),m=null}},createHref(O){return i(o,O)},createURL:x,encodeLocation(O){let z=x(O);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:R,replace:S,go(O){return d.go(O)}};return w}function fy(n,i=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(u,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:ti(n);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=u+s),new URL(s,u)}function Gg(n,i,u="/"){return dy(n,i,u,!1)}function dy(n,i,u,s){let o=typeof i=="string"?hl(i):i,f=pn(o.pathname||"/",u);if(f==null)return null;let d=$g(n);hy(d);let h=null;for(let m=0;h==null&&m<d.length;++m){let p=xy(f);h=by(d[m],p,s)}return h}function $g(n,i=[],u=[],s="",o=!1){let f=(d,h,m=o,p)=>{let v={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(s)&&m)return;Ue(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length)}let C=mn([s,v.relativePath]),R=u.concat(v);d.children&&d.children.length>0&&(Ue(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${C}".`),$g(d.children,i,R,C,m)),!(d.path==null&&!d.index)&&i.push({path:C,score:Cy(C,d.index),routesMeta:R})};return n.forEach((d,h)=>{if(d.path===""||!d.path?.includes("?"))f(d,h);else for(let m of Qg(d.path))f(d,h,!0,m)}),i}function Qg(n){let i=n.split("/");if(i.length===0)return[];let[u,...s]=i,o=u.endsWith("?"),f=u.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let d=Qg(s.join("/")),h=[];return h.push(...d.map(m=>m===""?f:[f,m].join("/"))),o&&h.push(...d),h.map(m=>n.startsWith("/")&&m===""?"/":m)}function hy(n){n.sort((i,u)=>i.score!==u.score?u.score-i.score:Ry(i.routesMeta.map(s=>s.childrenIndex),u.routesMeta.map(s=>s.childrenIndex)))}var gy=/^:[\w-]+$/,my=3,py=2,vy=1,yy=10,Sy=-2,yg=n=>n==="*";function Cy(n,i){let u=n.split("/"),s=u.length;return u.some(yg)&&(s+=Sy),i&&(s+=py),u.filter(o=>!yg(o)).reduce((o,f)=>o+(gy.test(f)?my:f===""?vy:yy),s)}function Ry(n,i){return n.length===i.length&&n.slice(0,-1).every((s,o)=>s===i[o])?n[n.length-1]-i[i.length-1]:0}function by(n,i,u=!1){let{routesMeta:s}=n,o={},f="/",d=[];for(let h=0;h<s.length;++h){let m=s[h],p=h===s.length-1,v=f==="/"?i:i.slice(f.length)||"/",C=ju({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},v),R=m.route;if(!C&&p&&u&&!s[s.length-1].route.index&&(C=ju({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!C)return null;Object.assign(o,C.params),d.push({params:o,pathname:mn([f,C.pathname]),pathnameBase:My(mn([f,C.pathnameBase])),route:R}),C.pathnameBase!=="/"&&(f=mn([f,C.pathnameBase]))}return d}function ju(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[u,s]=Ey(n.path,n.caseSensitive,n.end),o=i.match(u);if(!o)return null;let f=o[0],d=f.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:s.reduce((p,{paramName:v,isOptional:C},R)=>{if(v==="*"){let x=h[R]||"";d=f.slice(0,f.length-x.length).replace(/(.)\/+$/,"$1")}const S=h[R];return C&&!S?p[v]=void 0:p[v]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:n}}function Ey(n,i=!1,u=!0){Et(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,m)=>(s.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),s]}function xy(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Et(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function pn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,s=n.charAt(u);return s&&s!=="/"?null:n.slice(u)||"/"}function wy(n,i="/"){let{pathname:u,search:s="",hash:o=""}=typeof n=="string"?hl(n):n;return{pathname:u?u.startsWith("/")?u:Ty(u,i):i,search:Ay(s),hash:Oy(o)}}function Ty(n,i){let u=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?u.length>1&&u.pop():o!=="."&&u.push(o)}),u.length>1?u.join("/"):"/"}function fo(n,i,u,s){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _y(n){return n.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function Lo(n){let i=_y(n);return i.map((u,s)=>s===i.length-1?u.pathname:u.pathnameBase)}function Vo(n,i,u,s=!1){let o;typeof n=="string"?o=hl(n):(o={...n},Ue(!o.pathname||!o.pathname.includes("?"),fo("?","pathname","search",o)),Ue(!o.pathname||!o.pathname.includes("#"),fo("#","pathname","hash",o)),Ue(!o.search||!o.search.includes("#"),fo("#","search","hash",o)));let f=n===""||o.pathname==="",d=f?"/":o.pathname,h;if(d==null)h=u;else{let C=i.length-1;if(!s&&d.startsWith("..")){let R=d.split("/");for(;R[0]==="..";)R.shift(),C-=1;o.pathname=R.join("/")}h=C>=0?i[C]:"/"}let m=wy(o,h),p=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&u.endsWith("/");return!m.pathname.endsWith("/")&&(p||v)&&(m.pathname+="/"),m}var mn=n=>n.join("/").replace(/\/\/+/g,"/"),My=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Ay=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Oy=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zy(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Yg=["POST","PUT","PATCH","DELETE"];new Set(Yg);var Dy=["GET",...Yg];new Set(Dy);var ea=E.createContext(null);ea.displayName="DataRouter";var Vu=E.createContext(null);Vu.displayName="DataRouterState";E.createContext(!1);var Xg=E.createContext({isTransitioning:!1});Xg.displayName="ViewTransition";var Ny=E.createContext(new Map);Ny.displayName="Fetchers";var jy=E.createContext(null);jy.displayName="Await";var Bt=E.createContext(null);Bt.displayName="Navigation";var ai=E.createContext(null);ai.displayName="Location";var Gt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Fo=E.createContext(null);Fo.displayName="RouteError";function Uy(n,{relative:i}={}){Ue(ta(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:s}=E.useContext(Bt),{hash:o,pathname:f,search:d}=ii(n,{relative:i}),h=f;return u!=="/"&&(h=f==="/"?u:mn([u,f])),s.createHref({pathname:h,search:d,hash:o})}function ta(){return E.useContext(ai)!=null}function $t(){return Ue(ta(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ai).location}var Kg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zg(n){E.useContext(Bt).static||E.useLayoutEffect(n)}function gl(){let{isDataRoute:n}=E.useContext(Gt);return n?Zy():Hy()}function Hy(){Ue(ta(),"useNavigate() may be used only in the context of a <Router> component.");let n=E.useContext(ea),{basename:i,navigator:u}=E.useContext(Bt),{matches:s}=E.useContext(Gt),{pathname:o}=$t(),f=JSON.stringify(Lo(s)),d=E.useRef(!1);return Zg(()=>{d.current=!0}),E.useCallback((m,p={})=>{if(Et(d.current,Kg),!d.current)return;if(typeof m=="number"){u.go(m);return}let v=Vo(m,JSON.parse(f),o,p.relative==="path");n==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:mn([i,v.pathname])),(p.replace?u.replace:u.push)(v,p.state,p)},[i,u,f,o,n])}E.createContext(null);function qo(){let{matches:n}=E.useContext(Gt),i=n[n.length-1];return i?i.params:{}}function ii(n,{relative:i}={}){let{matches:u}=E.useContext(Gt),{pathname:s}=$t(),o=JSON.stringify(Lo(u));return E.useMemo(()=>Vo(n,JSON.parse(o),s,i==="path"),[n,o,s,i])}function Ly(n,i){return Jg(n,i)}function Jg(n,i,u,s,o){Ue(ta(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=E.useContext(Bt),{matches:d}=E.useContext(Gt),h=d[d.length-1],m=h?h.params:{},p=h?h.pathname:"/",v=h?h.pathnameBase:"/",C=h&&h.route;{let U=C&&C.path||"";kg(p,!C||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${U}">) 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="${U}"> to <Route path="${U==="/"?"*":`${U}/*`}">.`)}let R=$t(),S;if(i){let U=typeof i=="string"?hl(i):i;Ue(v==="/"||U.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${U.pathname}" was given in the \`location\` prop.`),S=U}else S=R;let x=S.pathname||"/",w=x;if(v!=="/"){let U=v.replace(/^\//,"").split("/");w="/"+x.replace(/^\//,"").split("/").slice(U.length).join("/")}let O=Gg(n,{pathname:w});Et(C||O!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Et(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.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 z=Gy(O&&O.map(U=>Object.assign({},U,{params:Object.assign({},m,U.params),pathname:mn([v,f.encodeLocation?f.encodeLocation(U.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?v:mn([v,f.encodeLocation?f.encodeLocation(U.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathnameBase])})),d,u,s,o);return i&&z?E.createElement(ai.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},z):z}function Vy(){let n=Ky(),i=zy(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),u=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:f},"ErrorBoundary")," or"," ",E.createElement("code",{style:f},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),u?E.createElement("pre",{style:o},u):null,d)}var Fy=E.createElement(Vy,null),qy=class extends E.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.unstable_onError?this.props.unstable_onError(n,i):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?E.createElement(Gt.Provider,{value:this.props.routeContext},E.createElement(Fo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function By({routeContext:n,match:i,children:u}){let s=E.useContext(ea);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(Gt.Provider,{value:n},u)}function Gy(n,i=[],u=null,s=null,o=null){if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(i.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let f=n,d=u?.errors;if(d!=null){let p=f.findIndex(v=>v.route.id&&d?.[v.route.id]!==void 0);Ue(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,p+1))}let h=!1,m=-1;if(u)for(let p=0;p<f.length;p++){let v=f[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=p),v.route.id){let{loaderData:C,errors:R}=u,S=v.route.loader&&!C.hasOwnProperty(v.route.id)&&(!R||R[v.route.id]===void 0);if(v.route.lazy||S){h=!0,m>=0?f=f.slice(0,m+1):f=[f[0]];break}}}return f.reduceRight((p,v,C)=>{let R,S=!1,x=null,w=null;u&&(R=d&&v.route.id?d[v.route.id]:void 0,x=v.route.errorElement||Fy,h&&(m<0&&C===0?(kg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):m===C&&(S=!0,w=v.route.hydrateFallbackElement||null)));let O=i.concat(f.slice(0,C+1)),z=()=>{let U;return R?U=x:S?U=w:v.route.Component?U=E.createElement(v.route.Component,null):v.route.element?U=v.route.element:U=p,E.createElement(By,{match:v,routeContext:{outlet:p,matches:O,isDataRoute:u!=null},children:U})};return u&&(v.route.ErrorBoundary||v.route.errorElement||C===0)?E.createElement(qy,{location:u.location,revalidation:u.revalidation,component:x,error:R,children:z(),routeContext:{outlet:null,matches:O,isDataRoute:!0},unstable_onError:s}):z()},null)}function Bo(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function $y(n){let i=E.useContext(ea);return Ue(i,Bo(n)),i}function Qy(n){let i=E.useContext(Vu);return Ue(i,Bo(n)),i}function Yy(n){let i=E.useContext(Gt);return Ue(i,Bo(n)),i}function Go(n){let i=Yy(n),u=i.matches[i.matches.length-1];return Ue(u.route.id,`${n} can only be used on routes that contain a unique "id"`),u.route.id}function Xy(){return Go("useRouteId")}function Ky(){let n=E.useContext(Fo),i=Qy("useRouteError"),u=Go("useRouteError");return n!==void 0?n:i.errors?.[u]}function Zy(){let{router:n}=$y("useNavigate"),i=Go("useNavigate"),u=E.useRef(!1);return Zg(()=>{u.current=!0}),E.useCallback(async(o,f={})=>{Et(u.current,Kg),u.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:i,...f}))},[n,i])}var Sg={};function kg(n,i,u){!i&&!Sg[n]&&(Sg[n]=!0,Et(!1,u))}E.memo(Jy);function Jy({routes:n,future:i,state:u,unstable_onError:s}){return Jg(n,void 0,u,s,i)}function ky({to:n,replace:i,state:u,relative:s}){Ue(ta(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=E.useContext(Bt);Et(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=E.useContext(Gt),{pathname:d}=$t(),h=gl(),m=Vo(n,Lo(f),d,s==="path"),p=JSON.stringify(m);return E.useEffect(()=>{h(JSON.parse(p),{replace:i,state:u,relative:s})},[h,p,s,i,u]),null}function cl(n){Ue(!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 Iy({basename:n="/",children:i=null,location:u,navigationType:s="POP",navigator:o,static:f=!1}){Ue(!ta(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),h=E.useMemo(()=>({basename:d,navigator:o,static:f,future:{}}),[d,o,f]);typeof u=="string"&&(u=hl(u));let{pathname:m="/",search:p="",hash:v="",state:C=null,key:R="default"}=u,S=E.useMemo(()=>{let x=pn(m,d);return x==null?null:{location:{pathname:x,search:p,hash:v,state:C,key:R},navigationType:s}},[d,m,p,v,C,R,s]);return Et(S!=null,`<Router basename="${d}"> is not able to match the URL "${m}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:E.createElement(Bt.Provider,{value:h},E.createElement(ai.Provider,{children:i,value:S}))}function Py({children:n,location:i}){return Ly(bo(n),i)}function bo(n,i=[]){let u=[];return E.Children.forEach(n,(s,o)=>{if(!E.isValidElement(s))return;let f=[...i,o];if(s.type===E.Fragment){u.push.apply(u,bo(s.props.children,f));return}Ue(s.type===cl,`[${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>`),Ue(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={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&&(d.children=bo(s.props.children,f)),u.push(d)}),u}var Du="get",Nu="application/x-www-form-urlencoded";function Fu(n){return n!=null&&typeof n.tagName=="string"}function Wy(n){return Fu(n)&&n.tagName.toLowerCase()==="button"}function e0(n){return Fu(n)&&n.tagName.toLowerCase()==="form"}function t0(n){return Fu(n)&&n.tagName.toLowerCase()==="input"}function n0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function l0(n,i){return n.button===0&&(!i||i==="_self")&&!n0(n)}function Eo(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((i,u)=>{let s=n[u];return i.concat(Array.isArray(s)?s.map(o=>[u,o]):[[u,s]])},[]))}function a0(n,i){let u=Eo(n);return i&&i.forEach((s,o)=>{u.has(o)||i.getAll(o).forEach(f=>{u.append(o,f)})}),u}var _u=null;function i0(){if(_u===null)try{new FormData(document.createElement("form"),0),_u=!1}catch{_u=!0}return _u}var u0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ho(n){return n!=null&&!u0.has(n)?(Et(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nu}"`),null):n}function s0(n,i){let u,s,o,f,d;if(e0(n)){let h=n.getAttribute("action");s=h?pn(h,i):null,u=n.getAttribute("method")||Du,o=ho(n.getAttribute("enctype"))||Nu,f=new FormData(n)}else if(Wy(n)||t0(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||h.getAttribute("action");if(s=m?pn(m,i):null,u=n.getAttribute("formmethod")||h.getAttribute("method")||Du,o=ho(n.getAttribute("formenctype"))||ho(h.getAttribute("enctype"))||Nu,f=new FormData(h,n),!i0()){let{name:p,type:v,value:C}=n;if(v==="image"){let R=p?`${p}.`:"";f.append(`${R}x`,"0"),f.append(`${R}y`,"0")}else p&&f.append(p,C)}}else{if(Fu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Du,s=null,o=Nu,d=n}return f&&o==="text/plain"&&(d=f,f=void 0),{action:s,method:u.toLowerCase(),encType:o,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $o(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function r0(n,i,u){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s.pathname==="/"?s.pathname=`_root.${u}`:i&&pn(s.pathname,i)==="/"?s.pathname=`${i.replace(/\/$/,"")}/_root.${u}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${u}`,s}async function o0(n,i){if(n.id in i)return i[n.id];try{let u=await import(n.module);return i[n.id]=u,u}catch(u){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function c0(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function f0(n,i,u){let s=await Promise.all(n.map(async o=>{let f=i.routes[o.route.id];if(f){let d=await o0(f,u);return d.links?d.links():[]}return[]}));return m0(s.flat(1).filter(c0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Cg(n,i,u,s,o,f){let d=(m,p)=>u[p]?m.route.id!==u[p].route.id:!0,h=(m,p)=>u[p].pathname!==m.pathname||u[p].route.path?.endsWith("*")&&u[p].params["*"]!==m.params["*"];return f==="assets"?i.filter((m,p)=>d(m,p)||h(m,p)):f==="data"?i.filter((m,p)=>{let v=s.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(d(m,p)||h(m,p))return!0;if(m.route.shouldRevalidate){let C=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function d0(n,i,{includeHydrateFallback:u}={}){return h0(n.map(s=>{let o=i.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),u&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function h0(n){return[...new Set(n)]}function g0(n){let i={},u=Object.keys(n).sort();for(let s of u)i[s]=n[s];return i}function m0(n,i){let u=new Set;return new Set(i),n.reduce((s,o)=>{let f=JSON.stringify(g0(o));return u.has(f)||(u.add(f),s.push({key:f,link:o})),s},[])}function Ig(){let n=E.useContext(ea);return $o(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function p0(){let n=E.useContext(Vu);return $o(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Qo=E.createContext(void 0);Qo.displayName="FrameworkContext";function Pg(){let n=E.useContext(Qo);return $o(n,"You must render this element inside a <HydratedRouter> element"),n}function v0(n,i){let u=E.useContext(Qo),[s,o]=E.useState(!1),[f,d]=E.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:v,onTouchStart:C}=i,R=E.useRef(null);E.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let w=z=>{z.forEach(U=>{d(U.isIntersecting)})},O=new IntersectionObserver(w,{threshold:.5});return R.current&&O.observe(R.current),()=>{O.disconnect()}}},[n]),E.useEffect(()=>{if(s){let w=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(w)}}},[s]);let S=()=>{o(!0)},x=()=>{o(!1),d(!1)};return u?n!=="intent"?[f,R,{}]:[f,R,{onFocus:Pa(h,S),onBlur:Pa(m,x),onMouseEnter:Pa(p,S),onMouseLeave:Pa(v,x),onTouchStart:Pa(C,S)}]:[!1,R,{}]}function Pa(n,i){return u=>{n&&n(u),u.defaultPrevented||i(u)}}function y0({page:n,...i}){let{router:u}=Ig(),s=E.useMemo(()=>Gg(u.routes,n,u.basename),[u.routes,n,u.basename]);return s?E.createElement(C0,{page:n,matches:s,...i}):null}function S0(n){let{manifest:i,routeModules:u}=Pg(),[s,o]=E.useState([]);return E.useEffect(()=>{let f=!1;return f0(n,i,u).then(d=>{f||o(d)}),()=>{f=!0}},[n,i,u]),s}function C0({page:n,matches:i,...u}){let s=$t(),{manifest:o,routeModules:f}=Pg(),{basename:d}=Ig(),{loaderData:h,matches:m}=p0(),p=E.useMemo(()=>Cg(n,i,m,o,s,"data"),[n,i,m,o,s]),v=E.useMemo(()=>Cg(n,i,m,o,s,"assets"),[n,i,m,o,s]),C=E.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let x=new Set,w=!1;if(i.forEach(z=>{let U=o.routes[z.route.id];!U||!U.hasLoader||(!p.some(G=>G.route.id===z.route.id)&&z.route.id in h&&f[z.route.id]?.shouldRevalidate||U.hasClientLoader?w=!0:x.add(z.route.id))}),x.size===0)return[];let O=r0(n,d,"data");return w&&x.size>0&&O.searchParams.set("_routes",i.filter(z=>x.has(z.route.id)).map(z=>z.route.id).join(",")),[O.pathname+O.search]},[d,h,s,o,p,i,n,f]),R=E.useMemo(()=>d0(v,o),[v,o]),S=S0(v);return E.createElement(E.Fragment,null,C.map(x=>E.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...u})),R.map(x=>E.createElement("link",{key:x,rel:"modulepreload",href:x,...u})),S.map(({key:x,link:w})=>E.createElement("link",{key:x,nonce:u.nonce,...w})))}function R0(...n){return i=>{n.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var Wg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Wg&&(window.__reactRouterVersion="7.9.4")}catch{}function b0({basename:n,children:i,window:u}){let s=E.useRef();s.current==null&&(s.current=ry({window:u,v5Compat:!0}));let o=s.current,[f,d]=E.useState({action:o.action,location:o.location}),h=E.useCallback(m=>{E.startTransition(()=>d(m))},[d]);return E.useLayoutEffect(()=>o.listen(h),[o,h]),E.createElement(Iy,{basename:n,children:i,location:f.location,navigationType:f.action,navigator:o})}var em=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=E.forwardRef(function({onClick:i,discover:u="render",prefetch:s="none",relative:o,reloadDocument:f,replace:d,state:h,target:m,to:p,preventScrollReset:v,viewTransition:C,...R},S){let{basename:x}=E.useContext(Bt),w=typeof p=="string"&&em.test(p),O,z=!1;if(typeof p=="string"&&w&&(O=p,Wg))try{let se=new URL(window.location.href),ee=p.startsWith("//")?new URL(se.protocol+p):new URL(p),P=pn(ee.pathname,x);ee.origin===se.origin&&P!=null?p=P+ee.search+ee.hash:z=!0}catch{Et(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let U=Uy(p,{relative:o}),[G,K,$]=v0(s,R),Y=T0(p,{replace:d,state:h,target:m,preventScrollReset:v,relative:o,viewTransition:C});function Z(se){i&&i(se),se.defaultPrevented||Y(se)}let ue=E.createElement("a",{...R,...$,href:O||U,onClick:z||f?i:Z,ref:R0(S,K),target:m,"data-discover":!w&&u==="render"?"true":void 0});return G&&!w?E.createElement(E.Fragment,null,ue,E.createElement(y0,{page:U})):ue});xt.displayName="Link";var E0=E.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:s="",end:o=!1,style:f,to:d,viewTransition:h,children:m,...p},v){let C=ii(d,{relative:p.relative}),R=$t(),S=E.useContext(Vu),{navigator:x,basename:w}=E.useContext(Bt),O=S!=null&&z0(C)&&h===!0,z=x.encodeLocation?x.encodeLocation(C).pathname:C.pathname,U=R.pathname,G=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;u||(U=U.toLowerCase(),G=G?G.toLowerCase():null,z=z.toLowerCase()),G&&w&&(G=pn(G,w)||G);const K=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let $=U===z||!o&&U.startsWith(z)&&U.charAt(K)==="/",Y=G!=null&&(G===z||!o&&G.startsWith(z)&&G.charAt(z.length)==="/"),Z={isActive:$,isPending:Y,isTransitioning:O},ue=$?i:void 0,se;typeof s=="function"?se=s(Z):se=[s,$?"active":null,Y?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let ee=typeof f=="function"?f(Z):f;return E.createElement(xt,{...p,"aria-current":ue,className:se,ref:v,style:ee,to:d,viewTransition:h},typeof m=="function"?m(Z):m)});E0.displayName="NavLink";var x0=E.forwardRef(({discover:n="render",fetcherKey:i,navigate:u,reloadDocument:s,replace:o,state:f,method:d=Du,action:h,onSubmit:m,relative:p,preventScrollReset:v,viewTransition:C,...R},S)=>{let x=A0(),w=O0(h,{relative:p}),O=d.toLowerCase()==="get"?"get":"post",z=typeof h=="string"&&em.test(h),U=G=>{if(m&&m(G),G.defaultPrevented)return;G.preventDefault();let K=G.nativeEvent.submitter,$=K?.getAttribute("formmethod")||d;x(K||G.currentTarget,{fetcherKey:i,method:$,navigate:u,replace:o,state:f,relative:p,preventScrollReset:v,viewTransition:C})};return E.createElement("form",{ref:S,method:O,action:w,onSubmit:s?m:U,...R,"data-discover":!z&&n==="render"?"true":void 0})});x0.displayName="Form";function w0(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function tm(n){let i=E.useContext(ea);return Ue(i,w0(n)),i}function T0(n,{target:i,replace:u,state:s,preventScrollReset:o,relative:f,viewTransition:d}={}){let h=gl(),m=$t(),p=ii(n,{relative:f});return E.useCallback(v=>{if(l0(v,i)){v.preventDefault();let C=u!==void 0?u:ti(m)===ti(p);h(n,{replace:C,state:s,preventScrollReset:o,relative:f,viewTransition:d})}},[m,h,p,u,s,i,n,o,f,d])}function Yo(n){Et(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 i=E.useRef(Eo(n)),u=E.useRef(!1),s=$t(),o=E.useMemo(()=>a0(s.search,u.current?null:i.current),[s.search]),f=gl(),d=E.useCallback((h,m)=>{const p=Eo(typeof h=="function"?h(new URLSearchParams(o)):h);u.current=!0,f("?"+p,m)},[f,o]);return[o,d]}var _0=0,M0=()=>`__${String(++_0)}__`;function A0(){let{router:n}=tm("useSubmit"),{basename:i}=E.useContext(Bt),u=Xy();return E.useCallback(async(s,o={})=>{let{action:f,method:d,encType:h,formData:m,body:p}=s0(s,i);if(o.navigate===!1){let v=o.fetcherKey||M0();await n.fetch(v,u,o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:p,formMethod:o.method||d,formEncType:o.encType||h,flushSync:o.flushSync})}else await n.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:p,formMethod:o.method||d,formEncType:o.encType||h,replace:o.replace,state:o.state,fromRouteId:u,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,i,u])}function O0(n,{relative:i}={}){let{basename:u}=E.useContext(Bt),s=E.useContext(Gt);Ue(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...ii(n||".",{relative:i})},d=$t();if(n==null){f.search=d.search;let h=new URLSearchParams(f.search),m=h.getAll("index");if(m.some(v=>v==="")){h.delete("index"),m.filter(C=>C).forEach(C=>h.append("index",C));let v=h.toString();f.search=v?`?${v}`:""}}return(!n||n===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:mn([u,f.pathname])),ti(f)}function z0(n,{relative:i}={}){let u=E.useContext(Xg);Ue(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=tm("useViewTransitionState"),o=ii(n,{relative:i});if(!u.isTransitioning)return!1;let f=pn(u.currentLocation.pathname,s)||u.currentLocation.pathname,d=pn(u.nextLocation.pathname,s)||u.nextLocation.pathname;return ju(o.pathname,d)!=null||ju(o.pathname,f)!=null}var nm=Bg(),ui=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},D0={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},N0=class{#e=D0;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},fl=new N0;function j0(n){setTimeout(n,0)}var dl=typeof window>"u"||"Deno"in globalThis;function dt(){}function U0(n,i){return typeof n=="function"?n(i):n}function xo(n){return typeof n=="number"&&n>=0&&n!==1/0}function lm(n,i){return Math.max(n+(i||0)-Date.now(),0)}function $n(n,i){return typeof n=="function"?n(i):n}function Ht(n,i){return typeof n=="function"?n(i):n}function Rg(n,i){const{type:u="all",exact:s,fetchStatus:o,predicate:f,queryKey:d,stale:h}=n;if(d){if(s){if(i.queryHash!==Xo(d,i.options))return!1}else if(!li(i.queryKey,d))return!1}if(u!=="all"){const m=i.isActive();if(u==="active"&&!m||u==="inactive"&&m)return!1}return!(typeof h=="boolean"&&i.isStale()!==h||o&&o!==i.state.fetchStatus||f&&!f(i))}function bg(n,i){const{exact:u,status:s,predicate:o,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(u){if(ni(i.options.mutationKey)!==ni(f))return!1}else if(!li(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||o&&!o(i))}function Xo(n,i){return(i?.queryKeyHashFn||ni)(n)}function ni(n){return JSON.stringify(n,(i,u)=>To(u)?Object.keys(u).sort().reduce((s,o)=>(s[o]=u[o],s),{}):u)}function li(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(u=>li(n[u],i[u])):!1}var H0=Object.prototype.hasOwnProperty;function am(n,i){if(n===i)return n;const u=Eg(n)&&Eg(i);if(!u&&!(To(n)&&To(i)))return i;const o=(u?n:Object.keys(n)).length,f=u?i:Object.keys(i),d=f.length,h=u?new Array(d):{};let m=0;for(let p=0;p<d;p++){const v=u?p:f[p],C=n[v],R=i[v];if(C===R){h[v]=C,(u?p<o:H0.call(n,v))&&m++;continue}if(C===null||R===null||typeof C!="object"||typeof R!="object"){h[v]=R;continue}const S=am(C,R);h[v]=S,S===C&&m++}return o===d&&m===o?n:h}function wo(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const u in n)if(n[u]!==i[u])return!1;return!0}function Eg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function To(n){if(!xg(n))return!1;const i=n.constructor;if(i===void 0)return!0;const u=i.prototype;return!(!xg(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function xg(n){return Object.prototype.toString.call(n)==="[object Object]"}function L0(n){return new Promise(i=>{fl.setTimeout(i,n)})}function _o(n,i,u){return typeof u.structuralSharing=="function"?u.structuralSharing(n,i):u.structuralSharing!==!1?am(n,i):i}function V0(n,i,u=0){const s=[...n,i];return u&&s.length>u?s.slice(1):s}function F0(n,i,u=0){const s=[i,...n];return u&&s.length>u?s.slice(0,-1):s}var Ko=Symbol();function im(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Ko?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function q0(n,i){return typeof n=="function"?n(...i):!!n}var B0=class extends ui{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!dl&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Zo=new B0;function Mo(){let n,i;const u=new Promise((o,f)=>{n=o,i=f});u.status="pending",u.catch(()=>{});function s(o){Object.assign(u,o),delete u.resolve,delete u.reject}return u.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},u.reject=o=>{s({status:"rejected",reason:o}),i(o)},u}var G0=j0;function $0(){let n=[],i=0,u=h=>{h()},s=h=>{h()},o=G0;const f=h=>{i?n.push(h):o(()=>{u(h)})},d=()=>{const h=n;n=[],h.length&&o(()=>{s(()=>{h.forEach(m=>{u(m)})})})};return{batch:h=>{let m;i++;try{m=h()}finally{i--,i||d()}return m},batchCalls:h=>(...m)=>{f(()=>{h(...m)})},schedule:f,setNotifyFunction:h=>{u=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{o=h}}}var et=$0(),Q0=class extends ui{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!dl&&window.addEventListener){const i=()=>n(!0),u=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(u=>{u(n)}))}isOnline(){return this.#e}},Uu=new Q0;function Y0(n){return Math.min(1e3*2**n,3e4)}function um(n){return(n??"online")==="online"?Uu.isOnline():!0}var Ao=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function sm(n){let i=!1,u=0,s;const o=Mo(),f=()=>o.status!=="pending",d=w=>{if(!f()){const O=new Ao(w);R(O),n.onCancel?.(O)}},h=()=>{i=!0},m=()=>{i=!1},p=()=>Zo.isFocused()&&(n.networkMode==="always"||Uu.isOnline())&&n.canRun(),v=()=>um(n.networkMode)&&n.canRun(),C=w=>{f()||(s?.(),o.resolve(w))},R=w=>{f()||(s?.(),o.reject(w))},S=()=>new Promise(w=>{s=O=>{(f()||p())&&w(O)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),x=()=>{if(f())return;let w;const O=u===0?n.initialPromise:void 0;try{w=O??n.fn()}catch(z){w=Promise.reject(z)}Promise.resolve(w).then(C).catch(z=>{if(f())return;const U=n.retry??(dl?0:3),G=n.retryDelay??Y0,K=typeof G=="function"?G(u,z):G,$=U===!0||typeof U=="number"&&u<U||typeof U=="function"&&U(u,z);if(i||!$){R(z);return}u++,n.onFail?.(u,z),L0(K).then(()=>p()?void 0:S()).then(()=>{i?R(z):x()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:h,continueRetry:m,canStart:v,start:()=>(v()?x():S().then(x),o)}}var rm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xo(this.gcTime)&&(this.#e=fl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(dl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(fl.clearTimeout(this.#e),this.#e=void 0)}},X0=class extends rm{#e;#t;#n;#a;#l;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=wg(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=wg(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const u=_o(this.state.data,n,this.options);return this.#i({data:u,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),u}setState(n,i){this.#i({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#l?.promise;return this.#l?.cancel(n),i?i.then(dt).catch(dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Ht(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ko||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>$n(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!lm(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),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:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const u=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#u=!0,u.signal)})},o=()=>{const h=im(this.options,i),p=(()=>{const v={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(v),v})();return this.#u=!1,this.options.persister?this.options.persister(h,p,this):h(p)},d=(()=>{const h={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return s(h),h})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#l=sm({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:h=>{h instanceof Ao&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),u.abort()},onFail:(h,m)=>{this.#i({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#l.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Ao){if(h.silent)return this.#l.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const i=u=>{switch(n.type){case"failed":return{...u,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...om(u.data,this.options),fetchMeta:n.meta??null};case"success":const s={...u,data:n.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const o=n.error;return{...u,error:o,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...n.state}}};this.state=i(this.state),et.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function om(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:um(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function wg(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,u=i!==void 0,s=u?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:u?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var K0=class extends ui{constructor(n,i){super(),this.options=i,this.#e=n,this.#i=null,this.#u=Mo(),this.bindMethods(),this.setOptions(i)}#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),Tg(this.#t,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oo(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oo(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#C(),this.#R(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,u=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ht(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),i._defaulted&&!wo(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&_g(this.#t,u,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==u||Ht(this.options.enabled,this.#t)!==Ht(i.enabled,this.#t)||$n(this.options.staleTime,this.#t)!==$n(i.staleTime,this.#t))&&this.#p();const o=this.#v();s&&(this.#t!==u||Ht(this.options.enabled,this.#t)!==Ht(i.enabled,this.#t)||o!==this.#r)&&this.#y(o)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),u=this.createResult(i,n);return J0(this,u)&&(this.#a=u,this.#s=this.options,this.#l=this.#t.state),u}getCurrentResult(){return this.#a}trackResult(n,i){return new Proxy(n,{get:(u,s)=>(this.trackProp(s),i?.(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(u,s))})}trackProp(n){this.#g.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),u=this.#e.getQueryCache().build(this.#e,i);return u.fetch().then(()=>this.createResult(u,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#b();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(dt)),i}#p(){this.#C();const n=$n(this.options.staleTime,this.#t);if(dl||this.#a.isStale||!xo(n))return;const u=lm(this.#a.dataUpdatedAt,n)+1;this.#o=fl.setTimeout(()=>{this.#a.isStale||this.updateResult()},u)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#R(),this.#r=n,!(dl||Ht(this.options.enabled,this.#t)===!1||!xo(this.#r)||this.#r===0)&&(this.#c=fl.setInterval(()=>{(this.options.refetchIntervalInBackground||Zo.isFocused())&&this.#f()},this.#r))}#S(){this.#p(),this.#y(this.#v())}#C(){this.#o&&(fl.clearTimeout(this.#o),this.#o=void 0)}#R(){this.#c&&(fl.clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const u=this.#t,s=this.options,o=this.#a,f=this.#l,d=this.#s,m=n!==u?n.state:this.#n,{state:p}=n;let v={...p},C=!1,R;if(i._optimisticResults){const ue=this.hasListeners(),se=!ue&&Tg(n,i),ee=ue&&_g(n,u,i,s);(se||ee)&&(v={...v,...om(p.data,n.options)}),i._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:S,errorUpdatedAt:x,status:w}=v;R=v.data;let O=!1;if(i.placeholderData!==void 0&&R===void 0&&w==="pending"){let ue;o?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(ue=o.data,O=!0):ue=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,ue!==void 0&&(w="success",R=_o(o?.data,ue,i),C=!0)}if(i.select&&R!==void 0&&!O)if(o&&R===f?.data&&i.select===this.#m)R=this.#d;else try{this.#m=i.select,R=i.select(R),R=_o(o?.data,R,i),this.#d=R,this.#i=null}catch(ue){this.#i=ue}this.#i&&(S=this.#i,R=this.#d,x=Date.now(),w="error");const z=v.fetchStatus==="fetching",U=w==="pending",G=w==="error",K=U&&z,$=R!==void 0,Z={status:w,fetchStatus:v.fetchStatus,isPending:U,isSuccess:w==="success",isError:G,isInitialLoading:K,isLoading:K,data:R,dataUpdatedAt:v.dataUpdatedAt,error:S,errorUpdatedAt:x,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:z,isRefetching:z&&!U,isLoadingError:G&&!$,isPaused:v.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:G&&$,isStale:Jo(n,i),refetch:this.refetch,promise:this.#u,isEnabled:Ht(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ue=P=>{Z.status==="error"?P.reject(Z.error):Z.data!==void 0&&P.resolve(Z.data)},se=()=>{const P=this.#u=Z.promise=Mo();ue(P)},ee=this.#u;switch(ee.status){case"pending":n.queryHash===u.queryHash&&ue(ee);break;case"fulfilled":(Z.status==="error"||Z.data!==ee.value)&&se();break;case"rejected":(Z.status!=="error"||Z.error!==ee.reason)&&se();break}}return Z}updateResult(){const n=this.#a,i=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),wo(i,n))return;this.#a=i;const u=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#g.size)return!0;const f=new Set(o??this.#g);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&f.has(h)})};this.#E({listeners:u()})}#b(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(n){et.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Z0(n,i){return Ht(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function Tg(n,i){return Z0(n,i)||n.state.data!==void 0&&Oo(n,i,i.refetchOnMount)}function Oo(n,i,u){if(Ht(i.enabled,n)!==!1&&$n(i.staleTime,n)!=="static"){const s=typeof u=="function"?u(n):u;return s==="always"||s!==!1&&Jo(n,i)}return!1}function _g(n,i,u,s){return(n!==i||Ht(s.enabled,n)===!1)&&(!u.suspense||n.state.status!=="error")&&Jo(n,u)}function Jo(n,i){return Ht(i.enabled,n)!==!1&&n.isStaleByTime($n(i.staleTime,n))}function J0(n,i){return!wo(n.getCurrentResult(),i)}function Mg(n){return{onFetch:(i,u)=>{const s=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const p=async()=>{let v=!1;const C=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(i.signal.aborted?v=!0:i.signal.addEventListener("abort",()=>{v=!0}),i.signal)})},R=im(i.options,i.fetchOptions),S=async(x,w,O)=>{if(v)return Promise.reject();if(w==null&&x.pages.length)return Promise.resolve(x);const U=(()=>{const Y={client:i.client,queryKey:i.queryKey,pageParam:w,direction:O?"backward":"forward",meta:i.options.meta};return C(Y),Y})(),G=await R(U),{maxPages:K}=i.options,$=O?F0:V0;return{pages:$(x.pages,G,K),pageParams:$(x.pageParams,w,K)}};if(o&&f.length){const x=o==="backward",w=x?k0:Ag,O={pages:f,pageParams:d},z=w(s,O);h=await S(O,z,x)}else{const x=n??f.length;do{const w=m===0?d[0]??s.initialPageParam:Ag(s,h);if(m>0&&w==null)break;h=await S(h,w),m++}while(m<x)}return h};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},u):i.fetchFn=p}}}function Ag(n,{pages:i,pageParams:u}){const s=i.length-1;return i.length>0?n.getNextPageParam(i[s],i,u[s],u):void 0}function k0(n,{pages:i,pageParams:u}){return i.length>0?n.getPreviousPageParam?.(i[0],i,u[0],u):void 0}var I0=class extends rm{#e;#t;#n;#a;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||P0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}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(n){const i=()=>{this.#l({type:"continue"})},u={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=sm({fn:()=>this.options.mutationFn?this.options.mutationFn(n,u):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#l({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#l({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#a.canStart();try{if(s)i();else{this.#l({type:"pending",variables:n,isPaused:o}),await this.#n.config.onMutate?.(n,this,u);const d=await this.options.onMutate?.(n,u);d!==this.state.context&&this.#l({type:"pending",context:d,variables:n,isPaused:o})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,u),await this.options.onSuccess?.(f,n,this.state.context,u),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(f,null,n,this.state.context,u),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,n,this.state.context,this,u),await this.options.onError?.(f,n,this.state.context,u),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(void 0,f,n,this.state.context,u),f}finally{this.#l({type:"error",error:f})}}finally{this.#n.runNext(this)}}#l(n){const i=u=>{switch(n.type){case"failed":return{...u,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...u,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:n.error,failureCount:u.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),et.batch(()=>{this.#t.forEach(u=>{u.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function P0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var W0=class extends ui{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,u){const s=new I0({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:u});return this.add(s),s}add(n){this.#e.add(n);const i=Mu(n);if(typeof i=="string"){const u=this.#t.get(i);u?u.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=Mu(n);if(typeof i=="string"){const u=this.#t.get(i);if(u)if(u.length>1){const s=u.indexOf(n);s!==-1&&u.splice(s,1)}else u[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Mu(n);if(typeof i=="string"){const s=this.#t.get(i)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const i=Mu(n);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){et.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(u=>bg(i,u))}findAll(n={}){return this.getAll().filter(i=>bg(n,i))}notify(n){et.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return et.batch(()=>Promise.all(n.map(i=>i.continue().catch(dt))))}};function Mu(n){return n.options.scope?.id}var eS=class extends ui{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,u){const s=i.queryKey,o=i.queryHash??Xo(s,i);let f=this.get(o);return f||(f=new X0({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(i),state:u,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){et.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(u=>Rg(i,u))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(u=>Rg(n,u)):i}notify(n){et.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){et.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){et.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},tS=class{#e;#t;#n;#a;#l;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new eS,this.#t=n.mutationCache||new W0,this.#n=n.defaultOptions||{},this.#a=new Map,this.#l=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=Zo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Uu.subscribe(async n=>{n&&(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(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),u=this.#e.build(this,i),s=u.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&u.isStaleByTime($n(i.staleTime,u))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:u})=>{const s=u.data;return[i,s]})}setQueryData(n,i,u){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,d=U0(i,f);if(d!==void 0)return this.#e.build(this,s).setData(d,{...u,manual:!0})}setQueriesData(n,i,u){return et.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,i,u)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;et.batch(()=>{i.findAll(n).forEach(u=>{i.remove(u)})})}resetQueries(n,i){const u=this.#e;return et.batch(()=>(u.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const u={revert:!0,...i},s=et.batch(()=>this.#e.findAll(n).map(o=>o.cancel(u)));return Promise.all(s).then(dt).catch(dt)}invalidateQueries(n,i={}){return et.batch(()=>(this.#e.findAll(n).forEach(u=>{u.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const u={...i,cancelRefetch:i.cancelRefetch??!0},s=et.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,u);return u.throwOnError||(f=f.catch(dt)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(dt)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const u=this.#e.build(this,i);return u.isStaleByTime($n(i.staleTime,u))?u.fetch(i):Promise.resolve(u.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(dt).catch(dt)}fetchInfiniteQuery(n){return n.behavior=Mg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(dt).catch(dt)}ensureInfiniteQueryData(n){return n.behavior=Mg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Uu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#a.set(ni(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#a.values()],u={};return i.forEach(s=>{li(n,s.queryKey)&&Object.assign(u,s.defaultOptions)}),u}setMutationDefaults(n,i){this.#l.set(ni(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#l.values()],u={};return i.forEach(s=>{li(n,s.mutationKey)&&Object.assign(u,s.defaultOptions)}),u}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Xo(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Ko&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},cm=E.createContext(void 0),ko=n=>{const i=E.useContext(cm);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},nS=({client:n,children:i})=>(E.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),_.jsx(cm.Provider,{value:n,children:i})),fm=E.createContext(!1),lS=()=>E.useContext(fm);fm.Provider;function aS(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var iS=E.createContext(aS()),uS=()=>E.useContext(iS),sS=(n,i)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(i.isReset()||(n.retryOnMount=!1))},rS=n=>{E.useEffect(()=>{n.clearReset()},[n])},oS=({result:n,errorResetBoundary:i,throwOnError:u,query:s,suspense:o})=>n.isError&&!i.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||q0(u,[n.error,s])),cS=n=>{if(n.suspense){const u=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>u(s(...o)):u(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},fS=(n,i)=>n.isLoading&&n.isFetching&&!i,dS=(n,i)=>n?.suspense&&i.isPending,Og=(n,i,u)=>i.fetchOptimistic(n).catch(()=>{u.clearReset()});function hS(n,i,u){const s=lS(),o=uS(),f=ko(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",cS(d),sS(d,o),rS(o);const h=!f.getQueryCache().get(d.queryHash),[m]=E.useState(()=>new i(f,d)),p=m.getOptimisticResult(d),v=!s&&n.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(C=>{const R=v?m.subscribe(et.batchCalls(C)):dt;return m.updateResult(),R},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),E.useEffect(()=>{m.setOptions(d)},[d,m]),dS(d,p))throw Og(d,m,o);if(oS({result:p,errorResetBoundary:o,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw p.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,p),d.experimental_prefetchInRender&&!dl&&fS(p,s)&&(h?Og(d,m,o):f.getQueryCache().get(d.queryHash)?.promise)?.catch(dt).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?p:m.trackResult(p)}function Io(n,i){return hS(n,K0)}const gS="https://api.github.com/repos/microsoft/openvmm/pulls/",mS="https://api.github.com/repos/microsoft/openvmm/pulls?state=all&sort=updated&direction=desc",pS=50;async function dm(){try{const n=[1,2,3,4].map(s=>vS(s,pS).catch(()=>({}))),i=await Promise.all(n),u={};for(const s of i)for(const o in s)Object.prototype.hasOwnProperty.call(u,o)||(u[o]=s[o]);return u}catch(n){return console.warn("[getGithubPullRequests] Failed to aggregate pages",n),{}}}async function vS(n,i){const u=`${mS}&per_page=${i}&page=${n}`;try{const s=await fetch(u,{headers:{Accept:"application/vnd.github+json"}});if(!s.ok)return console.warn("[getGithubPullRequests] Non-OK response"),{};const o=await s.json();if(!Array.isArray(o))return{};const f={};for(const d of o)d&&typeof d.title=="string"&&typeof d.number=="number"&&(f[d.number]=d.title);return f}catch(s){return console.warn("[getGithubPullRequests] Failed to fetch PRs",s),{}}}async function yS(n,i){console.warn("[fetchMissingPRTitles] Fetching missing PR titles individually:",n);const u=Array.from(new Set(n)),s=await Promise.all(u.map(async o=>{const f=await i.ensureQueryData({queryKey:["prTitle",o],queryFn:()=>SS(o),staleTime:1/0,gcTime:1/0});return[o,f]}));return new Map(s)}async function SS(n){try{const i=await fetch(`${gS}${n}`);if(i.status===403)return null;if(i.ok){const u=await i.json();return typeof u.title=="string"?u.title:null}}catch{}return null}async function CS(n,i,u){if(!n)throw new Error("runId required");const s=[n];i&&s.push(i),u&&s.push(u);const o=`https://openvmmghtestresults.blob.core.windows.net/results/${s.join("/")}/petri.jsonl`,f=await fetch(o);if(!f.ok)throw new Error(`Failed to fetch log (${f.status} ${f.statusText}) for ${o}`);const d=await f.text();return{url:o,text:d}}function RS(n){if(!n)return[];const i=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0),u=[];for(let s=0;s<i.length;s++){const o=i[s];try{const f=JSON.parse(o);u.push(f)}catch{console.error("Failed to parse log")}}return u.sort((s,o)=>{const f=new Date(s.timestamp||0).getTime(),d=new Date(o.timestamp||0).getTime();return f-d}),u}function zg(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function bS(n,i){const u=n.trim(),s=u.indexOf(" ");if(s===-1)return n;let o=u.slice(0,s);if(o.endsWith("s")){const h=parseFloat(o.slice(0,-1));if(!isNaN(h))return u.slice(s+1)}o.startsWith("[")&&(o=o.slice(1,-1));const f=new Date(o);if(isNaN(f.getTime()))return n;f.setMilliseconds(0);const d=new Date(i.getTime());return d.setMilliseconds(0),f.getTime()!==d.getTime()?n:u.slice(s+1)}function ES(n,i){const u=["ERROR","WARN","INFO","DEBUG"],s=n.trim();for(const o of u)if(s.startsWith(o))return{message:s.slice(o.length+1),severity:o};return{message:n,severity:i}}function xS(n,i){const u=new Date(i).getTime()-new Date(n).getTime(),s=(u/1e3%60).toFixed(3),o=Math.floor(u/6e4%60),f=Math.floor(u/36e5);return`${f>0?f+"h ":""}${o}m ${s}s`}async function hm(n,i,u){const{url:s,text:o}=await CS(n,i,u);if(!o)return[];const f=RS(o),d=[];let h=null;for(let m=0;m<f.length;m++){const p=f[m],v=p.timestamp;h||(h=v);let C=p.message||"",R=p.severity||"INFO";const S=p.source||(p.attachment?"attachment":"unknown");C=bS(C,new Date(v));const x=ES(C,R);C=x.message,R=x.severity;let w=null;if(p.attachment){const O=new URL(p.attachment,s).toString();if(p.attachment.endsWith(".png")&&!p.attachment.includes("inspect")&&d.length>0){d[d.length-1].screenshot=O;continue}p.attachment.includes("inspect")?C+=(C?" ":"")+`<a href="${O}" class="attachment" target="_blank" data-inspect="true">${zg(p.attachment)}</a> <a href="${O}" class="attachment" target="_blank" data-inspect-raw="true">[raw]</a>`:C+=(C?" ":"")+`<a href="${O}" class="attachment" target="_blank">${zg(p.attachment)}</a>`}d.push({index:m,timestamp:v,relative:h?xS(h,v):"0m 0.000s",severity:R,source:S,message:C,screenshot:w})}return d}const wS="https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&include=metadata&prefix=runs/";function TS(n){n.prefetchQuery({queryKey:["runs"],queryFn:()=>Po(n),staleTime:180*1e3,gcTime:1/0}),n.prefetchQuery({queryKey:["prs"],queryFn:()=>dm(),staleTime:1/0,gcTime:1/0}),setInterval(()=>{n.refetchQueries({queryKey:["runs"],type:"all"})},120*1e3)}async function Po(n){try{const u=await(await fetch(wS)).text(),s=_S(u,n);if(s.map(f=>f.metadata.ghPr).filter(f=>f!==void 0).length>0){const f=await n.ensureQueryData({queryKey:["prs"],queryFn:()=>dm(),staleTime:1/0,gcTime:1/0}),d=[];if(s.forEach(h=>{const m=h.metadata.ghPr;m&&(f[m]?h.metadata.prTitle=f[m]:d.push(m))}),d.length>0){const h=await yS(d,n);s.forEach(m=>{const p=m.metadata.ghPr;if(p&&h.has(p)){const v=h.get(p);v&&(m.metadata.prTitle=v)}})}}return s}catch(i){throw console.error("Error fetching run data:",i),i}}function _S(n,i){const o=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("Blob"),f=[];for(const d of o){const h=d.getElementsByTagName("Name")[0]?.textContent||"",m=new Date(d.getElementsByTagName("Creation-Time")[0]?.textContent||""),p=new Date(d.getElementsByTagName("Last-Modified")[0]?.textContent||""),v=d.getElementsByTagName("Etag")[0]?.textContent||"",C=parseInt(d.getElementsByTagName("Content-Length")[0]?.textContent||"0"),R=d.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:h,creationTime:m,lastModified:p,etag:v,contentLength:C,metadata:S})}return MS(f,i),f}function MS(n,i){try{const u=[...n].sort((o,f)=>f.creationTime.getTime()-o.creationTime.getTime()),s=o=>o.replace(/^runs\//,"").split("/")[0];(async()=>{const o=new Set,f=[],h=u.filter(R=>R.metadata.petriFailed>0).slice(0,7);for(const R of h){const S=s(R.name);S&&(f.push(S),o.add(S))}const m=u.slice(0,10);for(const R of m){const S=s(R.name);S&&!o.has(S)&&(f.push(S),o.add(S))}const p=u.filter(R=>R.metadata.ghBranch==="main").slice(0,7);for(const R of p){const S=s(R.name);S&&!o.has(S)&&(f.push(S),o.add(S))}const v=5,C=async R=>{const S=["runDetails",R];if(!i.getQueryData(S))try{await i.prefetchQuery({queryKey:S,queryFn:()=>Wo(R,i),staleTime:1/0,gcTime:1/0})}catch(x){console.warn("[opportunisticPrefetching] Prefetch failed for run",x)}};for(let R=0;R<f.length;R+=v){const S=f.slice(R,R+v);await Promise.allSettled(S.map(x=>C(x)))}})()}catch(u){console.warn("[opportunisticPrefetching] Failed to schedule runDetails prefetch",u)}}function AS(n,i,u){const s=new Map;let o=null;if(n.length>0)try{const h=n[0].match(/<Creation-Time>([^<]+)<\/Creation-Time>/);if(h){const m=new Date(h[1]);isNaN(m.getTime())||(o=m)}}catch{}const f=/<Name>([^<]+)<\/Name>/g;for(const h of n){let m;for(f.lastIndex=0;(m=f.exec(h))!==null;){const v=m[1].split("/"),C=v[v.length-1];if(C!=="petri.jsonl"&&C!=="petri.passed")continue;const R=v.slice(0,-1).join("/");s.has(R)||s.set(R,{hasJsonl:!1,hasPassed:!1});const S=s.get(R);C==="petri.jsonl"?S.hasJsonl=!0:C==="petri.passed"&&(S.hasPassed=!0)}}const d=[];for(const[h,m]of s){if(!m.hasJsonl)continue;const p=h.split("/");if(p.length>=2){const v=p.slice(1);if(v.length>=2){const C=v[0],R=v.slice(1).join("/"),S=m.hasPassed?"passed":"failed",x=`${C}/${R}`;d.push({name:x,status:S,path:h})}}}d.sort((h,m)=>h.name.localeCompare(m.name));try{const h=[];for(const m of d){if(m.status!=="failed")continue;const p=m.name.indexOf("/");if(p===-1)continue;const v=m.name.slice(0,p),C=m.name.slice(p+1),R=["petriLog",i,v,C];h.push(u.prefetchQuery({queryKey:R,queryFn:()=>hm(i,v,C),staleTime:1/0,gcTime:1/0}))}h.length&&Promise.allSettled(h).then(m=>{const p=m.filter(v=>v.status==="rejected").length;p&&console.warn(`[parseRunDetails] ${p} petri.jsonl prefetches failed`)})}catch(h){console.warn("[parseRunDetails] Prefetch phase error",h)}return{creationTime:o??void 0,runNumber:i,tests:d}}async function Wo(n,i){try{const u=[];let s=null;do{let o=`https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&prefix=${encodeURIComponent(n)}`;s&&(o+=`&marker=${encodeURIComponent(s)}`);const f=await fetch(o);if(!f.ok)throw new Error(`Failed to fetch run details: ${f.status} ${f.statusText}`);const d=await f.text();u.push(d);const h=d.match(/<NextMarker>([^<]+)<\/NextMarker>/);s=h?h[1]:null}while(s);return AS(u,n,i)}catch(u){throw console.error("Error fetching run details",u),u}}async function gm(n,i,u,s){const f=(await i.ensureQueryData({queryKey:["runs"],queryFn:()=>Po(i),staleTime:12e4,gcTime:1/0})).filter(x=>x.metadata.ghBranch===n),d=f.length;let h=0;const m=async x=>{const w=x.name.split("/")[1],O=["runDetails",w];if(i.getQueryData(O))return h++,u&&u(h,d),w;try{return await i.prefetchQuery({queryKey:O,queryFn:()=>Wo(w,i),staleTime:1/0,gcTime:1/0}),h++,u&&u(h,d),w}catch(z){return console.warn("[fetchTestAnalysis] Prefetch failed for run",z),h++,u&&u(h,d),w}};let p=0;const v=new Set,C=[];for(;p<f.length||v.size>0;){const x=s?s():5;for(;p<f.length&&v.size<x;){const w=m(f[p]);v.add(w),p++,w.then(O=>{v.delete(w),O&&C.push(O)},()=>{v.delete(w)})}v.size>0&&await Promise.race(v)}const R=new Map;C.forEach(x=>{const w=i.getQueryData(["runDetails",x]);w&&R.set(x,w)});const S=new Map;return R.forEach(x=>{x.tests.forEach(w=>{const O=w.name,z={runNumber:x.runNumber,status:w.status,creationTime:x.creationTime};S.has(O)||S.set(O,[]),S.get(O).push(z)})}),S}function OS(n){const i=[];return n.forEach((u,s)=>{const o=u.filter(p=>p.status==="failed").length,f=s.split("/"),d=f[0],h=f.length>1?f[1]:"-",m=u.length;i.push({architecture:d,name:h,failedCount:o,totalCount:m})}),i}function zS(n,i){return n.get(i)||[]}function si(){const[n,i]=E.useState(!1),u=gl(),s=E.useCallback(()=>i(f=>!f),[]);E.useEffect(()=>{if(n){const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=f}}},[n]);function o(f){u(f),s()}return _.jsxs(_.Fragment,{children:[_.jsx("button",{type:"button","aria-label":n?"Close navigation menu":"Open navigation menu",className:"menu-trigger",onClick:s,children:_.jsxs("span",{className:"menu-lines","aria-hidden":"true",children:[_.jsx("span",{}),_.jsx("span",{}),_.jsx("span",{})]})}),n&&nm.createPortal(_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"menu-overlay",onClick:s,role:"presentation"}),_.jsxs("nav",{className:n?"menu-drawer open":"menu-drawer","aria-hidden":!n,"aria-label":"Primary",children:[_.jsx("div",{className:"menu-drawer-header",children:"Petri Test Viewer"}),_.jsxs("ul",{className:"menu-nav-list",role:"list",children:[_.jsx("li",{children:_.jsx("button",{className:"drawer-link",onClick:()=>o("/runs"),children:"Runs"})}),_.jsx("li",{children:_.jsx("button",{className:"drawer-link",onClick:()=>o("/tests"),children:"Tests"})}),_.jsx("li",{className:"drawer-separator","aria-hidden":"true"}),_.jsx("li",{children:_.jsx("a",{className:"drawer-link external",href:"https://github.com/microsoft/openvmm",target:"_blank",rel:"noopener noreferrer",children:"Repo"})}),_.jsx("li",{children:_.jsx("a",{className:"drawer-link external",href:"http://openvmm.dev/",target:"_blank",rel:"noopener noreferrer",children:"Guide"})})]})]})]}),document.body)]})}function Wl(n,i,u){let s=u.initialDeps??[],o;function f(){var d,h,m,p;let v;u.key&&((d=u.debug)!=null&&d.call(u))&&(v=Date.now());const C=n();if(!(C.length!==s.length||C.some((x,w)=>s[w]!==x)))return o;s=C;let S;if(u.key&&((h=u.debug)!=null&&h.call(u))&&(S=Date.now()),o=i(...C),u.key&&((m=u.debug)!=null&&m.call(u))){const x=Math.round((Date.now()-v)*100)/100,w=Math.round((Date.now()-S)*100)/100,O=w/16,z=(U,G)=>{for(U=String(U);U.length<G;)U=" "+U;return U};console.info(`%c⏱ ${z(w,5)} /${z(x,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*O,120))}deg 100% 31%);`,u?.key)}return(p=u?.onChange)==null||p.call(u,o),o}return f.updateDeps=d=>{s=d},f}function Dg(n,i){if(n===void 0)throw new Error("Unexpected undefined");return n}const DS=(n,i)=>Math.abs(n-i)<1.01,NS=(n,i,u)=>{let s;return function(...o){n.clearTimeout(s),s=n.setTimeout(()=>i.apply(this,o),u)}},Ng=n=>{const{offsetWidth:i,offsetHeight:u}=n;return{width:i,height:u}},jS=n=>n,US=n=>{const i=Math.max(n.startIndex-n.overscan,0),u=Math.min(n.endIndex+n.overscan,n.count-1),s=[];for(let o=i;o<=u;o++)s.push(o);return s},HS=(n,i)=>{const u=n.scrollElement;if(!u)return;const s=n.targetWindow;if(!s)return;const o=d=>{const{width:h,height:m}=d;i({width:Math.round(h),height:Math.round(m)})};if(o(Ng(u)),!s.ResizeObserver)return()=>{};const f=new s.ResizeObserver(d=>{const h=()=>{const m=d[0];if(m?.borderBoxSize){const p=m.borderBoxSize[0];if(p){o({width:p.inlineSize,height:p.blockSize});return}}o(Ng(u))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()});return f.observe(u,{box:"border-box"}),()=>{f.unobserve(u)}},jg={passive:!0},Ug=typeof window>"u"?!0:"onscrollend"in window,LS=(n,i)=>{const u=n.scrollElement;if(!u)return;const s=n.targetWindow;if(!s)return;let o=0;const f=n.options.useScrollendEvent&&Ug?()=>{}:NS(s,()=>{i(o,!1)},n.options.isScrollingResetDelay),d=v=>()=>{const{horizontal:C,isRtl:R}=n.options;o=C?u.scrollLeft*(R&&-1||1):u.scrollTop,f(),i(o,v)},h=d(!0),m=d(!1);m(),u.addEventListener("scroll",h,jg);const p=n.options.useScrollendEvent&&Ug;return p&&u.addEventListener("scrollend",m,jg),()=>{u.removeEventListener("scroll",h),p&&u.removeEventListener("scrollend",m)}},VS=(n,i,u)=>{if(i?.borderBoxSize){const s=i.borderBoxSize[0];if(s)return Math.round(s[u.options.horizontal?"inlineSize":"blockSize"])}return n[u.options.horizontal?"offsetWidth":"offsetHeight"]},FS=(n,{adjustments:i=0,behavior:u},s)=>{var o,f;const d=n+i;(f=(o=s.scrollElement)==null?void 0:o.scrollTo)==null||f.call(o,{[s.options.horizontal?"left":"top"]:d,behavior:u})};class qS{constructor(i){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 u=null;const s=()=>u||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:u=new this.targetWindow.ResizeObserver(o=>{o.forEach(f=>{const d=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var o;(o=s())==null||o.disconnect(),u=null},observe:o=>{var f;return(f=s())==null?void 0:f.observe(o,{box:"border-box"})},unobserve:o=>{var f;return(f=s())==null?void 0:f.unobserve(o)}}})(),this.range=null,this.setOptions=u=>{Object.entries(u).forEach(([s,o])=>{typeof o>"u"&&delete u[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:jS,rangeExtractor:US,onChange:()=>{},measureElement:VS,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,...u}},this.notify=u=>{var s,o;(o=(s=this.options).onChange)==null||o.call(s,this,u)},this.maybeNotify=Wl(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),u=>{this.notify(u)},{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(u=>u()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var u;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=((u=this.scrollElement)==null?void 0:u.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,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=(u,s)=>{const o=new Map,f=new Map;for(let d=s-1;d>=0;d--){const h=u[d];if(o.has(h.lane))continue;const m=f.get(h.lane);if(m==null||h.end>m.end?f.set(h.lane,h):h.end<m.end&&o.set(h.lane,!0),o.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((d,h)=>d.end===h.end?d.index-h.index:d.end-h.end)[0]:void 0},this.getMeasurementOptions=Wl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(u,s,o,f,d)=>(this.pendingMeasuredCacheIndexes=[],{count:u,paddingStart:s,scrollMargin:o,getItemKey:f,enabled:d}),{key:!1}),this.getMeasurements=Wl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:u,paddingStart:s,scrollMargin:o,getItemKey:f,enabled:d},h)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const m=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,m);for(let v=m;v<u;v++){const C=f(v),R=this.options.lanes===1?p[v-1]:this.getFurthestMeasurement(p,v),S=R?R.end+this.options.gap:s+o,x=h.get(C),w=typeof x=="number"?x:this.options.estimateSize(v),O=S+w,z=R?R.lane:v%this.options.lanes;p[v]={index:v,start:S,size:w,end:O,key:C,lane:z}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Wl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(u,s,o,f)=>this.range=u.length>0&&s>0?BS({measurements:u,outerSize:s,scrollOffset:o,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Wl(()=>{let u=null,s=null;const o=this.calculateRange();return o&&(u=o.startIndex,s=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,u,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,u,s]},(u,s,o,f,d)=>f===null||d===null?[]:u({startIndex:f,endIndex:d,overscan:s,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=u=>{const s=this.options.indexAttribute,o=u.getAttribute(s);return o?parseInt(o,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(u,s)=>{const o=this.indexFromElement(u),f=this.measurementsCache[o];if(!f)return;const d=f.key,h=this.elementsCache.get(d);h!==u&&(h&&this.observer.unobserve(h),this.observer.observe(u),this.elementsCache.set(d,u)),u.isConnected&&this.resizeItem(o,this.options.measureElement(u,s,this))},this.resizeItem=(u,s)=>{const o=this.measurementsCache[u];if(!o)return;const f=this.itemSizeCache.get(o.key)??o.size,d=s-f;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,d,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,s)),this.notify(!1))},this.measureElement=u=>{if(!u){this.elementsCache.forEach((s,o)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(o))});return}this._measureElement(u,void 0)},this.getVirtualItems=Wl(()=>[this.getVirtualIndexes(),this.getMeasurements()],(u,s)=>{const o=[];for(let f=0,d=u.length;f<d;f++){const h=u[f],m=s[h];o.push(m)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=u=>{const s=this.getMeasurements();if(s.length!==0)return Dg(s[mm(0,s.length-1,o=>Dg(s[o]).start,u)])},this.getOffsetForAlignment=(u,s,o=0)=>{const f=this.getSize(),d=this.getScrollOffset();s==="auto"&&(s=u>=d+f?"end":"start"),s==="center"?u+=(o-f)/2:s==="end"&&(u-=f);const h=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(h,u),0)},this.getOffsetForIndex=(u,s="auto")=>{u=Math.max(0,Math.min(u,this.options.count-1));const o=this.measurementsCache[u];if(!o)return;const f=this.getSize(),d=this.getScrollOffset();if(s==="auto")if(o.end>=d+f-this.options.scrollPaddingEnd)s="end";else if(o.start<=d+this.options.scrollPaddingStart)s="start";else return[d,s];const h=s==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(h,s,o.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(u,{align:s="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(u,s),{adjustments:void 0,behavior:o})},this.scrollToIndex=(u,{align:s="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),u=Math.max(0,Math.min(u,this.options.count-1));let f=0;const d=10,h=p=>{if(!this.targetWindow)return;const v=this.getOffsetForIndex(u,p);if(!v){console.warn("Failed to get offset for index:",u);return}const[C,R]=v;this._scrollToOffset(C,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{const S=this.getScrollOffset(),x=this.getOffsetForIndex(u,R);if(!x){console.warn("Failed to get offset for index:",u);return}DS(x[0],S)||m(R)})},m=p=>{this.targetWindow&&(f++,f<d?this.targetWindow.requestAnimationFrame(()=>h(p)):console.warn(`Failed to scroll to index ${u} after ${d} attempts.`))};h(s)},this.scrollBy=(u,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+u,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var u;const s=this.getMeasurements();let o;if(s.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((u=s[s.length-1])==null?void 0:u.end)??0;else{const f=Array(this.options.lanes).fill(null);let d=s.length-1;for(;d>=0&&f.some(h=>h===null);){const h=s[d];f[h.lane]===null&&(f[h.lane]=h.end),d--}o=Math.max(...f.filter(h=>h!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(u,{adjustments:s,behavior:o})=>{this.options.scrollToFn(u,{behavior:o,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}}const mm=(n,i,u,s)=>{for(;n<=i;){const o=(n+i)/2|0,f=u(o);if(f<s)n=o+1;else if(f>s)i=o-1;else return o}return n>0?n-1:0};function BS({measurements:n,outerSize:i,scrollOffset:u,lanes:s}){const o=n.length-1,f=m=>n[m].start;if(n.length<=s)return{startIndex:0,endIndex:o};let d=mm(0,o,f,u),h=d;if(s===1)for(;h<o&&n[h].end<u+i;)h++;else if(s>1){const m=Array(s).fill(0);for(;h<o&&m.some(v=>v<u+i);){const v=n[h];m[v.lane]=v.end,h++}const p=Array(s).fill(u+i);for(;d>=0&&p.some(v=>v>=u);){const v=n[d];p[v.lane]=v.start,d--}d=Math.max(0,d-d%s),h=Math.min(o,h+(s-1-h%s))}return{startIndex:d,endIndex:h}}const Hg=typeof document<"u"?E.useLayoutEffect:E.useEffect;function GS(n){const i=E.useReducer(()=>({}),{})[1],u={...n,onChange:(o,f)=>{var d;f?nm.flushSync(i):i(),(d=n.onChange)==null||d.call(n,o,f)}},[s]=E.useState(()=>new qS(u));return s.setOptions(u),Hg(()=>s._didMount(),[]),Hg(()=>s._willUpdate()),s}function $S(n){return GS({observeElementRect:HS,observeElementOffset:LS,scrollToFn:FS,...n})}/**
   * 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 Gn(n,i){return typeof n=="function"?n(i):n}function wt(n,i){return u=>{i.setState(s=>({...s,[n]:Gn(u,s[n])}))}}function qu(n){return n instanceof Function}function QS(n){return Array.isArray(n)&&n.every(i=>typeof i=="number")}function YS(n,i){const u=[],s=o=>{o.forEach(f=>{u.push(f);const d=i(f);d!=null&&d.length&&s(d)})};return s(n),u}function ne(n,i,u){let s=[],o;return f=>{let d;u.key&&u.debug&&(d=Date.now());const h=n(f);if(!(h.length!==s.length||h.some((v,C)=>s[C]!==v)))return o;s=h;let p;if(u.key&&u.debug&&(p=Date.now()),o=i(...h),u==null||u.onChange==null||u.onChange(o),u.key&&u.debug&&u!=null&&u.debug()){const v=Math.round((Date.now()-d)*100)/100,C=Math.round((Date.now()-p)*100)/100,R=C/16,S=(x,w)=>{for(x=String(x);x.length<w;)x=" "+x;return x};console.info(`%c⏱ ${S(C,5)} /${S(v,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,u?.key)}return o}}function le(n,i,u,s){return{debug:()=>{var o;return(o=n?.debugAll)!=null?o:n[i]},key:!1,onChange:s}}function XS(n,i,u,s){const o=()=>{var d;return(d=f.getValue())!=null?d:n.options.renderFallbackValue},f={id:`${i.id}_${u.id}`,row:i,column:u,getValue:()=>i.getValue(s),renderValue:o,getContext:ne(()=>[n,u,i,f],(d,h,m,p)=>({table:d,column:h,row:m,cell:p,getValue:p.getValue,renderValue:p.renderValue}),le(n.options,"debugCells"))};return n._features.forEach(d=>{d.createCell==null||d.createCell(f,u,i,n)},{}),f}function KS(n,i,u,s){var o,f;const h={...n._getDefaultColumnDef(),...i},m=h.accessorKey;let p=(o=(f=h.id)!=null?f:m?typeof String.prototype.replaceAll=="function"?m.replaceAll(".","_"):m.replace(/\./g,"_"):void 0)!=null?o:typeof h.header=="string"?h.header:void 0,v;if(h.accessorFn?v=h.accessorFn:m&&(m.includes(".")?v=R=>{let S=R;for(const w of m.split(".")){var x;S=(x=S)==null?void 0:x[w]}return S}:v=R=>R[h.accessorKey]),!p)throw new Error;let C={id:`${String(p)}`,accessorFn:v,parent:s,depth:u,columnDef:h,columns:[],getFlatColumns:ne(()=>[!0],()=>{var R;return[C,...(R=C.columns)==null?void 0:R.flatMap(S=>S.getFlatColumns())]},le(n.options,"debugColumns")),getLeafColumns:ne(()=>[n._getOrderColumnsFn()],R=>{var S;if((S=C.columns)!=null&&S.length){let x=C.columns.flatMap(w=>w.getLeafColumns());return R(x)}return[C]},le(n.options,"debugColumns"))};for(const R of n._features)R.createColumn==null||R.createColumn(C,n);return C}const nt="debugHeaders";function Lg(n,i,u){var s;let f={id:(s=u.id)!=null?s:i.id,column:i,index:u.index,isPlaceholder:!!u.isPlaceholder,placeholderId:u.placeholderId,depth:u.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const d=[],h=m=>{m.subHeaders&&m.subHeaders.length&&m.subHeaders.map(h),d.push(m)};return h(f),d},getContext:()=>({table:n,header:f,column:i})};return n._features.forEach(d=>{d.createHeader==null||d.createHeader(f,n)}),f}const ZS={createTable:n=>{n.getHeaderGroups=ne(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(i,u,s,o)=>{var f,d;const h=(f=s?.map(C=>u.find(R=>R.id===C)).filter(Boolean))!=null?f:[],m=(d=o?.map(C=>u.find(R=>R.id===C)).filter(Boolean))!=null?d:[],p=u.filter(C=>!(s!=null&&s.includes(C.id))&&!(o!=null&&o.includes(C.id)));return Au(i,[...h,...p,...m],n)},le(n.options,nt)),n.getCenterHeaderGroups=ne(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(i,u,s,o)=>(u=u.filter(f=>!(s!=null&&s.includes(f.id))&&!(o!=null&&o.includes(f.id))),Au(i,u,n,"center")),le(n.options,nt)),n.getLeftHeaderGroups=ne(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left],(i,u,s)=>{var o;const f=(o=s?.map(d=>u.find(h=>h.id===d)).filter(Boolean))!=null?o:[];return Au(i,f,n,"left")},le(n.options,nt)),n.getRightHeaderGroups=ne(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.right],(i,u,s)=>{var o;const f=(o=s?.map(d=>u.find(h=>h.id===d)).filter(Boolean))!=null?o:[];return Au(i,f,n,"right")},le(n.options,nt)),n.getFooterGroups=ne(()=>[n.getHeaderGroups()],i=>[...i].reverse(),le(n.options,nt)),n.getLeftFooterGroups=ne(()=>[n.getLeftHeaderGroups()],i=>[...i].reverse(),le(n.options,nt)),n.getCenterFooterGroups=ne(()=>[n.getCenterHeaderGroups()],i=>[...i].reverse(),le(n.options,nt)),n.getRightFooterGroups=ne(()=>[n.getRightHeaderGroups()],i=>[...i].reverse(),le(n.options,nt)),n.getFlatHeaders=ne(()=>[n.getHeaderGroups()],i=>i.map(u=>u.headers).flat(),le(n.options,nt)),n.getLeftFlatHeaders=ne(()=>[n.getLeftHeaderGroups()],i=>i.map(u=>u.headers).flat(),le(n.options,nt)),n.getCenterFlatHeaders=ne(()=>[n.getCenterHeaderGroups()],i=>i.map(u=>u.headers).flat(),le(n.options,nt)),n.getRightFlatHeaders=ne(()=>[n.getRightHeaderGroups()],i=>i.map(u=>u.headers).flat(),le(n.options,nt)),n.getCenterLeafHeaders=ne(()=>[n.getCenterFlatHeaders()],i=>i.filter(u=>{var s;return!((s=u.subHeaders)!=null&&s.length)}),le(n.options,nt)),n.getLeftLeafHeaders=ne(()=>[n.getLeftFlatHeaders()],i=>i.filter(u=>{var s;return!((s=u.subHeaders)!=null&&s.length)}),le(n.options,nt)),n.getRightLeafHeaders=ne(()=>[n.getRightFlatHeaders()],i=>i.filter(u=>{var s;return!((s=u.subHeaders)!=null&&s.length)}),le(n.options,nt)),n.getLeafHeaders=ne(()=>[n.getLeftHeaderGroups(),n.getCenterHeaderGroups(),n.getRightHeaderGroups()],(i,u,s)=>{var o,f,d,h,m,p;return[...(o=(f=i[0])==null?void 0:f.headers)!=null?o:[],...(d=(h=u[0])==null?void 0:h.headers)!=null?d:[],...(m=(p=s[0])==null?void 0:p.headers)!=null?m:[]].map(v=>v.getLeafHeaders()).flat()},le(n.options,nt))}};function Au(n,i,u,s){var o,f;let d=0;const h=function(R,S){S===void 0&&(S=1),d=Math.max(d,S),R.filter(x=>x.getIsVisible()).forEach(x=>{var w;(w=x.columns)!=null&&w.length&&h(x.columns,S+1)},0)};h(n);let m=[];const p=(R,S)=>{const x={depth:S,id:[s,`${S}`].filter(Boolean).join("_"),headers:[]},w=[];R.forEach(O=>{const z=[...w].reverse()[0],U=O.column.depth===x.depth;let G,K=!1;if(U&&O.column.parent?G=O.column.parent:(G=O.column,K=!0),z&&z?.column===G)z.subHeaders.push(O);else{const $=Lg(u,G,{id:[s,S,G.id,O?.id].filter(Boolean).join("_"),isPlaceholder:K,placeholderId:K?`${w.filter(Y=>Y.column===G).length}`:void 0,depth:S,index:w.length});$.subHeaders.push(O),w.push($)}x.headers.push(O),O.headerGroup=x}),m.push(x),S>0&&p(w,S-1)},v=i.map((R,S)=>Lg(u,R,{depth:d,index:S}));p(v,d-1),m.reverse();const C=R=>R.filter(x=>x.column.getIsVisible()).map(x=>{let w=0,O=0,z=[0];x.subHeaders&&x.subHeaders.length?(z=[],C(x.subHeaders).forEach(G=>{let{colSpan:K,rowSpan:$}=G;w+=K,z.push($)})):w=1;const U=Math.min(...z);return O=O+U,x.colSpan=w,x.rowSpan=O,{colSpan:w,rowSpan:O}});return C((o=(f=m[0])==null?void 0:f.headers)!=null?o:[]),m}const ec=(n,i,u,s,o,f,d)=>{let h={id:i,index:s,original:u,depth:o,parentId:d,_valuesCache:{},_uniqueValuesCache:{},getValue:m=>{if(h._valuesCache.hasOwnProperty(m))return h._valuesCache[m];const p=n.getColumn(m);if(p!=null&&p.accessorFn)return h._valuesCache[m]=p.accessorFn(h.original,s),h._valuesCache[m]},getUniqueValues:m=>{if(h._uniqueValuesCache.hasOwnProperty(m))return h._uniqueValuesCache[m];const p=n.getColumn(m);if(p!=null&&p.accessorFn)return p.columnDef.getUniqueValues?(h._uniqueValuesCache[m]=p.columnDef.getUniqueValues(h.original,s),h._uniqueValuesCache[m]):(h._uniqueValuesCache[m]=[h.getValue(m)],h._uniqueValuesCache[m])},renderValue:m=>{var p;return(p=h.getValue(m))!=null?p:n.options.renderFallbackValue},subRows:[],getLeafRows:()=>YS(h.subRows,m=>m.subRows),getParentRow:()=>h.parentId?n.getRow(h.parentId,!0):void 0,getParentRows:()=>{let m=[],p=h;for(;;){const v=p.getParentRow();if(!v)break;m.push(v),p=v}return m.reverse()},getAllCells:ne(()=>[n.getAllLeafColumns()],m=>m.map(p=>XS(n,h,p,p.id)),le(n.options,"debugRows")),_getAllCellsByColumnId:ne(()=>[h.getAllCells()],m=>m.reduce((p,v)=>(p[v.column.id]=v,p),{}),le(n.options,"debugRows"))};for(let m=0;m<n._features.length;m++){const p=n._features[m];p==null||p.createRow==null||p.createRow(h,n)}return h},JS={createColumn:(n,i)=>{n._getFacetedRowModel=i.options.getFacetedRowModel&&i.options.getFacetedRowModel(i,n.id),n.getFacetedRowModel=()=>n._getFacetedRowModel?n._getFacetedRowModel():i.getPreFilteredRowModel(),n._getFacetedUniqueValues=i.options.getFacetedUniqueValues&&i.options.getFacetedUniqueValues(i,n.id),n.getFacetedUniqueValues=()=>n._getFacetedUniqueValues?n._getFacetedUniqueValues():new Map,n._getFacetedMinMaxValues=i.options.getFacetedMinMaxValues&&i.options.getFacetedMinMaxValues(i,n.id),n.getFacetedMinMaxValues=()=>{if(n._getFacetedMinMaxValues)return n._getFacetedMinMaxValues()}}},pm=(n,i,u)=>{var s,o;const f=u==null||(s=u.toString())==null?void 0:s.toLowerCase();return!!(!((o=n.getValue(i))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(f))};pm.autoRemove=n=>qt(n);const vm=(n,i,u)=>{var s;return!!(!((s=n.getValue(i))==null||(s=s.toString())==null)&&s.includes(u))};vm.autoRemove=n=>qt(n);const ym=(n,i,u)=>{var s;return((s=n.getValue(i))==null||(s=s.toString())==null?void 0:s.toLowerCase())===u?.toLowerCase()};ym.autoRemove=n=>qt(n);const Sm=(n,i,u)=>{var s;return(s=n.getValue(i))==null?void 0:s.includes(u)};Sm.autoRemove=n=>qt(n);const Cm=(n,i,u)=>!u.some(s=>{var o;return!((o=n.getValue(i))!=null&&o.includes(s))});Cm.autoRemove=n=>qt(n)||!(n!=null&&n.length);const Rm=(n,i,u)=>u.some(s=>{var o;return(o=n.getValue(i))==null?void 0:o.includes(s)});Rm.autoRemove=n=>qt(n)||!(n!=null&&n.length);const bm=(n,i,u)=>n.getValue(i)===u;bm.autoRemove=n=>qt(n);const Em=(n,i,u)=>n.getValue(i)==u;Em.autoRemove=n=>qt(n);const tc=(n,i,u)=>{let[s,o]=u;const f=n.getValue(i);return f>=s&&f<=o};tc.resolveFilterValue=n=>{let[i,u]=n,s=typeof i!="number"?parseFloat(i):i,o=typeof u!="number"?parseFloat(u):u,f=i===null||Number.isNaN(s)?-1/0:s,d=u===null||Number.isNaN(o)?1/0:o;if(f>d){const h=f;f=d,d=h}return[f,d]};tc.autoRemove=n=>qt(n)||qt(n[0])&&qt(n[1]);const gn={includesString:pm,includesStringSensitive:vm,equalsString:ym,arrIncludes:Sm,arrIncludesAll:Cm,arrIncludesSome:Rm,equals:bm,weakEquals:Em,inNumberRange:tc};function qt(n){return n==null||n===""}const kS={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:n=>({columnFilters:[],...n}),getDefaultOptions:n=>({onColumnFiltersChange:wt("columnFilters",n),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(n,i)=>{n.getAutoFilterFn=()=>{const u=i.getCoreRowModel().flatRows[0],s=u?.getValue(n.id);return typeof s=="string"?gn.includesString:typeof s=="number"?gn.inNumberRange:typeof s=="boolean"||s!==null&&typeof s=="object"?gn.equals:Array.isArray(s)?gn.arrIncludes:gn.weakEquals},n.getFilterFn=()=>{var u,s;return qu(n.columnDef.filterFn)?n.columnDef.filterFn:n.columnDef.filterFn==="auto"?n.getAutoFilterFn():(u=(s=i.options.filterFns)==null?void 0:s[n.columnDef.filterFn])!=null?u:gn[n.columnDef.filterFn]},n.getCanFilter=()=>{var u,s,o;return((u=n.columnDef.enableColumnFilter)!=null?u:!0)&&((s=i.options.enableColumnFilters)!=null?s:!0)&&((o=i.options.enableFilters)!=null?o:!0)&&!!n.accessorFn},n.getIsFiltered=()=>n.getFilterIndex()>-1,n.getFilterValue=()=>{var u;return(u=i.getState().columnFilters)==null||(u=u.find(s=>s.id===n.id))==null?void 0:u.value},n.getFilterIndex=()=>{var u,s;return(u=(s=i.getState().columnFilters)==null?void 0:s.findIndex(o=>o.id===n.id))!=null?u:-1},n.setFilterValue=u=>{i.setColumnFilters(s=>{const o=n.getFilterFn(),f=s?.find(v=>v.id===n.id),d=Gn(u,f?f.value:void 0);if(Vg(o,d,n)){var h;return(h=s?.filter(v=>v.id!==n.id))!=null?h:[]}const m={id:n.id,value:d};if(f){var p;return(p=s?.map(v=>v.id===n.id?m:v))!=null?p:[]}return s!=null&&s.length?[...s,m]:[m]})}},createRow:(n,i)=>{n.columnFilters={},n.columnFiltersMeta={}},createTable:n=>{n.setColumnFilters=i=>{const u=n.getAllLeafColumns(),s=o=>{var f;return(f=Gn(i,o))==null?void 0:f.filter(d=>{const h=u.find(m=>m.id===d.id);if(h){const m=h.getFilterFn();if(Vg(m,d.value,h))return!1}return!0})};n.options.onColumnFiltersChange==null||n.options.onColumnFiltersChange(s)},n.resetColumnFilters=i=>{var u,s;n.setColumnFilters(i?[]:(u=(s=n.initialState)==null?void 0:s.columnFilters)!=null?u:[])},n.getPreFilteredRowModel=()=>n.getCoreRowModel(),n.getFilteredRowModel=()=>(!n._getFilteredRowModel&&n.options.getFilteredRowModel&&(n._getFilteredRowModel=n.options.getFilteredRowModel(n)),n.options.manualFiltering||!n._getFilteredRowModel?n.getPreFilteredRowModel():n._getFilteredRowModel())}};function Vg(n,i,u){return(n&&n.autoRemove?n.autoRemove(i,u):!1)||typeof i>"u"||typeof i=="string"&&!i}const IS=(n,i,u)=>u.reduce((s,o)=>{const f=o.getValue(n);return s+(typeof f=="number"?f:0)},0),PS=(n,i,u)=>{let s;return u.forEach(o=>{const f=o.getValue(n);f!=null&&(s>f||s===void 0&&f>=f)&&(s=f)}),s},WS=(n,i,u)=>{let s;return u.forEach(o=>{const f=o.getValue(n);f!=null&&(s<f||s===void 0&&f>=f)&&(s=f)}),s},e1=(n,i,u)=>{let s,o;return u.forEach(f=>{const d=f.getValue(n);d!=null&&(s===void 0?d>=d&&(s=o=d):(s>d&&(s=d),o<d&&(o=d)))}),[s,o]},t1=(n,i)=>{let u=0,s=0;if(i.forEach(o=>{let f=o.getValue(n);f!=null&&(f=+f)>=f&&(++u,s+=f)}),u)return s/u},n1=(n,i)=>{if(!i.length)return;const u=i.map(f=>f.getValue(n));if(!QS(u))return;if(u.length===1)return u[0];const s=Math.floor(u.length/2),o=u.sort((f,d)=>f-d);return u.length%2!==0?o[s]:(o[s-1]+o[s])/2},l1=(n,i)=>Array.from(new Set(i.map(u=>u.getValue(n))).values()),a1=(n,i)=>new Set(i.map(u=>u.getValue(n))).size,i1=(n,i)=>i.length,go={sum:IS,min:PS,max:WS,extent:e1,mean:t1,median:n1,unique:l1,uniqueCount:a1,count:i1},u1={getDefaultColumnDef:()=>({aggregatedCell:n=>{var i,u;return(i=(u=n.getValue())==null||u.toString==null?void 0:u.toString())!=null?i:null},aggregationFn:"auto"}),getInitialState:n=>({grouping:[],...n}),getDefaultOptions:n=>({onGroupingChange:wt("grouping",n),groupedColumnMode:"reorder"}),createColumn:(n,i)=>{n.toggleGrouping=()=>{i.setGrouping(u=>u!=null&&u.includes(n.id)?u.filter(s=>s!==n.id):[...u??[],n.id])},n.getCanGroup=()=>{var u,s;return((u=n.columnDef.enableGrouping)!=null?u:!0)&&((s=i.options.enableGrouping)!=null?s:!0)&&(!!n.accessorFn||!!n.columnDef.getGroupingValue)},n.getIsGrouped=()=>{var u;return(u=i.getState().grouping)==null?void 0:u.includes(n.id)},n.getGroupedIndex=()=>{var u;return(u=i.getState().grouping)==null?void 0:u.indexOf(n.id)},n.getToggleGroupingHandler=()=>{const u=n.getCanGroup();return()=>{u&&n.toggleGrouping()}},n.getAutoAggregationFn=()=>{const u=i.getCoreRowModel().flatRows[0],s=u?.getValue(n.id);if(typeof s=="number")return go.sum;if(Object.prototype.toString.call(s)==="[object Date]")return go.extent},n.getAggregationFn=()=>{var u,s;if(!n)throw new Error;return qu(n.columnDef.aggregationFn)?n.columnDef.aggregationFn:n.columnDef.aggregationFn==="auto"?n.getAutoAggregationFn():(u=(s=i.options.aggregationFns)==null?void 0:s[n.columnDef.aggregationFn])!=null?u:go[n.columnDef.aggregationFn]}},createTable:n=>{n.setGrouping=i=>n.options.onGroupingChange==null?void 0:n.options.onGroupingChange(i),n.resetGrouping=i=>{var u,s;n.setGrouping(i?[]:(u=(s=n.initialState)==null?void 0:s.grouping)!=null?u:[])},n.getPreGroupedRowModel=()=>n.getFilteredRowModel(),n.getGroupedRowModel=()=>(!n._getGroupedRowModel&&n.options.getGroupedRowModel&&(n._getGroupedRowModel=n.options.getGroupedRowModel(n)),n.options.manualGrouping||!n._getGroupedRowModel?n.getPreGroupedRowModel():n._getGroupedRowModel())},createRow:(n,i)=>{n.getIsGrouped=()=>!!n.groupingColumnId,n.getGroupingValue=u=>{if(n._groupingValuesCache.hasOwnProperty(u))return n._groupingValuesCache[u];const s=i.getColumn(u);return s!=null&&s.columnDef.getGroupingValue?(n._groupingValuesCache[u]=s.columnDef.getGroupingValue(n.original),n._groupingValuesCache[u]):n.getValue(u)},n._groupingValuesCache={}},createCell:(n,i,u,s)=>{n.getIsGrouped=()=>i.getIsGrouped()&&i.id===u.groupingColumnId,n.getIsPlaceholder=()=>!n.getIsGrouped()&&i.getIsGrouped(),n.getIsAggregated=()=>{var o;return!n.getIsGrouped()&&!n.getIsPlaceholder()&&!!((o=u.subRows)!=null&&o.length)}}};function s1(n,i,u){if(!(i!=null&&i.length)||!u)return n;const s=n.filter(f=>!i.includes(f.id));return u==="remove"?s:[...i.map(f=>n.find(d=>d.id===f)).filter(Boolean),...s]}const r1={getInitialState:n=>({columnOrder:[],...n}),getDefaultOptions:n=>({onColumnOrderChange:wt("columnOrder",n)}),createColumn:(n,i)=>{n.getIndex=ne(u=>[ei(i,u)],u=>u.findIndex(s=>s.id===n.id),le(i.options,"debugColumns")),n.getIsFirstColumn=u=>{var s;return((s=ei(i,u)[0])==null?void 0:s.id)===n.id},n.getIsLastColumn=u=>{var s;const o=ei(i,u);return((s=o[o.length-1])==null?void 0:s.id)===n.id}},createTable:n=>{n.setColumnOrder=i=>n.options.onColumnOrderChange==null?void 0:n.options.onColumnOrderChange(i),n.resetColumnOrder=i=>{var u;n.setColumnOrder(i?[]:(u=n.initialState.columnOrder)!=null?u:[])},n._getOrderColumnsFn=ne(()=>[n.getState().columnOrder,n.getState().grouping,n.options.groupedColumnMode],(i,u,s)=>o=>{let f=[];if(!(i!=null&&i.length))f=o;else{const d=[...i],h=[...o];for(;h.length&&d.length;){const m=d.shift(),p=h.findIndex(v=>v.id===m);p>-1&&f.push(h.splice(p,1)[0])}f=[...f,...h]}return s1(f,u,s)},le(n.options,"debugTable"))}},mo=()=>({left:[],right:[]}),o1={getInitialState:n=>({columnPinning:mo(),...n}),getDefaultOptions:n=>({onColumnPinningChange:wt("columnPinning",n)}),createColumn:(n,i)=>{n.pin=u=>{const s=n.getLeafColumns().map(o=>o.id).filter(Boolean);i.setColumnPinning(o=>{var f,d;if(u==="right"){var h,m;return{left:((h=o?.left)!=null?h:[]).filter(C=>!(s!=null&&s.includes(C))),right:[...((m=o?.right)!=null?m:[]).filter(C=>!(s!=null&&s.includes(C))),...s]}}if(u==="left"){var p,v;return{left:[...((p=o?.left)!=null?p:[]).filter(C=>!(s!=null&&s.includes(C))),...s],right:((v=o?.right)!=null?v:[]).filter(C=>!(s!=null&&s.includes(C)))}}return{left:((f=o?.left)!=null?f:[]).filter(C=>!(s!=null&&s.includes(C))),right:((d=o?.right)!=null?d:[]).filter(C=>!(s!=null&&s.includes(C)))}})},n.getCanPin=()=>n.getLeafColumns().some(s=>{var o,f,d;return((o=s.columnDef.enablePinning)!=null?o:!0)&&((f=(d=i.options.enableColumnPinning)!=null?d:i.options.enablePinning)!=null?f:!0)}),n.getIsPinned=()=>{const u=n.getLeafColumns().map(h=>h.id),{left:s,right:o}=i.getState().columnPinning,f=u.some(h=>s?.includes(h)),d=u.some(h=>o?.includes(h));return f?"left":d?"right":!1},n.getPinnedIndex=()=>{var u,s;const o=n.getIsPinned();return o?(u=(s=i.getState().columnPinning)==null||(s=s[o])==null?void 0:s.indexOf(n.id))!=null?u:-1:0}},createRow:(n,i)=>{n.getCenterVisibleCells=ne(()=>[n._getAllVisibleCells(),i.getState().columnPinning.left,i.getState().columnPinning.right],(u,s,o)=>{const f=[...s??[],...o??[]];return u.filter(d=>!f.includes(d.column.id))},le(i.options,"debugRows")),n.getLeftVisibleCells=ne(()=>[n._getAllVisibleCells(),i.getState().columnPinning.left],(u,s)=>(s??[]).map(f=>u.find(d=>d.column.id===f)).filter(Boolean).map(f=>({...f,position:"left"})),le(i.options,"debugRows")),n.getRightVisibleCells=ne(()=>[n._getAllVisibleCells(),i.getState().columnPinning.right],(u,s)=>(s??[]).map(f=>u.find(d=>d.column.id===f)).filter(Boolean).map(f=>({...f,position:"right"})),le(i.options,"debugRows"))},createTable:n=>{n.setColumnPinning=i=>n.options.onColumnPinningChange==null?void 0:n.options.onColumnPinningChange(i),n.resetColumnPinning=i=>{var u,s;return n.setColumnPinning(i?mo():(u=(s=n.initialState)==null?void 0:s.columnPinning)!=null?u:mo())},n.getIsSomeColumnsPinned=i=>{var u;const s=n.getState().columnPinning;if(!i){var o,f;return!!((o=s.left)!=null&&o.length||(f=s.right)!=null&&f.length)}return!!((u=s[i])!=null&&u.length)},n.getLeftLeafColumns=ne(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left],(i,u)=>(u??[]).map(s=>i.find(o=>o.id===s)).filter(Boolean),le(n.options,"debugColumns")),n.getRightLeafColumns=ne(()=>[n.getAllLeafColumns(),n.getState().columnPinning.right],(i,u)=>(u??[]).map(s=>i.find(o=>o.id===s)).filter(Boolean),le(n.options,"debugColumns")),n.getCenterLeafColumns=ne(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(i,u,s)=>{const o=[...u??[],...s??[]];return i.filter(f=>!o.includes(f.id))},le(n.options,"debugColumns"))}};function c1(n){return n||(typeof document<"u"?document:null)}const Ou={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},po=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),f1={getDefaultColumnDef:()=>Ou,getInitialState:n=>({columnSizing:{},columnSizingInfo:po(),...n}),getDefaultOptions:n=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:wt("columnSizing",n),onColumnSizingInfoChange:wt("columnSizingInfo",n)}),createColumn:(n,i)=>{n.getSize=()=>{var u,s,o;const f=i.getState().columnSizing[n.id];return Math.min(Math.max((u=n.columnDef.minSize)!=null?u:Ou.minSize,(s=f??n.columnDef.size)!=null?s:Ou.size),(o=n.columnDef.maxSize)!=null?o:Ou.maxSize)},n.getStart=ne(u=>[u,ei(i,u),i.getState().columnSizing],(u,s)=>s.slice(0,n.getIndex(u)).reduce((o,f)=>o+f.getSize(),0),le(i.options,"debugColumns")),n.getAfter=ne(u=>[u,ei(i,u),i.getState().columnSizing],(u,s)=>s.slice(n.getIndex(u)+1).reduce((o,f)=>o+f.getSize(),0),le(i.options,"debugColumns")),n.resetSize=()=>{i.setColumnSizing(u=>{let{[n.id]:s,...o}=u;return o})},n.getCanResize=()=>{var u,s;return((u=n.columnDef.enableResizing)!=null?u:!0)&&((s=i.options.enableColumnResizing)!=null?s:!0)},n.getIsResizing=()=>i.getState().columnSizingInfo.isResizingColumn===n.id},createHeader:(n,i)=>{n.getSize=()=>{let u=0;const s=o=>{if(o.subHeaders.length)o.subHeaders.forEach(s);else{var f;u+=(f=o.column.getSize())!=null?f:0}};return s(n),u},n.getStart=()=>{if(n.index>0){const u=n.headerGroup.headers[n.index-1];return u.getStart()+u.getSize()}return 0},n.getResizeHandler=u=>{const s=i.getColumn(n.column.id),o=s?.getCanResize();return f=>{if(!s||!o||(f.persist==null||f.persist(),vo(f)&&f.touches&&f.touches.length>1))return;const d=n.getSize(),h=n?n.getLeafHeaders().map(z=>[z.column.id,z.column.getSize()]):[[s.id,s.getSize()]],m=vo(f)?Math.round(f.touches[0].clientX):f.clientX,p={},v=(z,U)=>{typeof U=="number"&&(i.setColumnSizingInfo(G=>{var K,$;const Y=i.options.columnResizeDirection==="rtl"?-1:1,Z=(U-((K=G?.startOffset)!=null?K:0))*Y,ue=Math.max(Z/(($=G?.startSize)!=null?$:0),-.999999);return G.columnSizingStart.forEach(se=>{let[ee,P]=se;p[ee]=Math.round(Math.max(P+P*ue,0)*100)/100}),{...G,deltaOffset:Z,deltaPercentage:ue}}),(i.options.columnResizeMode==="onChange"||z==="end")&&i.setColumnSizing(G=>({...G,...p})))},C=z=>v("move",z),R=z=>{v("end",z),i.setColumnSizingInfo(U=>({...U,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},S=c1(u),x={moveHandler:z=>C(z.clientX),upHandler:z=>{S?.removeEventListener("mousemove",x.moveHandler),S?.removeEventListener("mouseup",x.upHandler),R(z.clientX)}},w={moveHandler:z=>(z.cancelable&&(z.preventDefault(),z.stopPropagation()),C(z.touches[0].clientX),!1),upHandler:z=>{var U;S?.removeEventListener("touchmove",w.moveHandler),S?.removeEventListener("touchend",w.upHandler),z.cancelable&&(z.preventDefault(),z.stopPropagation()),R((U=z.touches[0])==null?void 0:U.clientX)}},O=d1()?{passive:!1}:!1;vo(f)?(S?.addEventListener("touchmove",w.moveHandler,O),S?.addEventListener("touchend",w.upHandler,O)):(S?.addEventListener("mousemove",x.moveHandler,O),S?.addEventListener("mouseup",x.upHandler,O)),i.setColumnSizingInfo(z=>({...z,startOffset:m,startSize:d,deltaOffset:0,deltaPercentage:0,columnSizingStart:h,isResizingColumn:s.id}))}}},createTable:n=>{n.setColumnSizing=i=>n.options.onColumnSizingChange==null?void 0:n.options.onColumnSizingChange(i),n.setColumnSizingInfo=i=>n.options.onColumnSizingInfoChange==null?void 0:n.options.onColumnSizingInfoChange(i),n.resetColumnSizing=i=>{var u;n.setColumnSizing(i?{}:(u=n.initialState.columnSizing)!=null?u:{})},n.resetHeaderSizeInfo=i=>{var u;n.setColumnSizingInfo(i?po():(u=n.initialState.columnSizingInfo)!=null?u:po())},n.getTotalSize=()=>{var i,u;return(i=(u=n.getHeaderGroups()[0])==null?void 0:u.headers.reduce((s,o)=>s+o.getSize(),0))!=null?i:0},n.getLeftTotalSize=()=>{var i,u;return(i=(u=n.getLeftHeaderGroups()[0])==null?void 0:u.headers.reduce((s,o)=>s+o.getSize(),0))!=null?i:0},n.getCenterTotalSize=()=>{var i,u;return(i=(u=n.getCenterHeaderGroups()[0])==null?void 0:u.headers.reduce((s,o)=>s+o.getSize(),0))!=null?i:0},n.getRightTotalSize=()=>{var i,u;return(i=(u=n.getRightHeaderGroups()[0])==null?void 0:u.headers.reduce((s,o)=>s+o.getSize(),0))!=null?i:0}}};let zu=null;function d1(){if(typeof zu=="boolean")return zu;let n=!1;try{const i={get passive(){return n=!0,!1}},u=()=>{};window.addEventListener("test",u,i),window.removeEventListener("test",u)}catch{n=!1}return zu=n,zu}function vo(n){return n.type==="touchstart"}const h1={getInitialState:n=>({columnVisibility:{},...n}),getDefaultOptions:n=>({onColumnVisibilityChange:wt("columnVisibility",n)}),createColumn:(n,i)=>{n.toggleVisibility=u=>{n.getCanHide()&&i.setColumnVisibility(s=>({...s,[n.id]:u??!n.getIsVisible()}))},n.getIsVisible=()=>{var u,s;const o=n.columns;return(u=o.length?o.some(f=>f.getIsVisible()):(s=i.getState().columnVisibility)==null?void 0:s[n.id])!=null?u:!0},n.getCanHide=()=>{var u,s;return((u=n.columnDef.enableHiding)!=null?u:!0)&&((s=i.options.enableHiding)!=null?s:!0)},n.getToggleVisibilityHandler=()=>u=>{n.toggleVisibility==null||n.toggleVisibility(u.target.checked)}},createRow:(n,i)=>{n._getAllVisibleCells=ne(()=>[n.getAllCells(),i.getState().columnVisibility],u=>u.filter(s=>s.column.getIsVisible()),le(i.options,"debugRows")),n.getVisibleCells=ne(()=>[n.getLeftVisibleCells(),n.getCenterVisibleCells(),n.getRightVisibleCells()],(u,s,o)=>[...u,...s,...o],le(i.options,"debugRows"))},createTable:n=>{const i=(u,s)=>ne(()=>[s(),s().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(f=>f.getIsVisible==null?void 0:f.getIsVisible()),le(n.options,"debugColumns"));n.getVisibleFlatColumns=i("getVisibleFlatColumns",()=>n.getAllFlatColumns()),n.getVisibleLeafColumns=i("getVisibleLeafColumns",()=>n.getAllLeafColumns()),n.getLeftVisibleLeafColumns=i("getLeftVisibleLeafColumns",()=>n.getLeftLeafColumns()),n.getRightVisibleLeafColumns=i("getRightVisibleLeafColumns",()=>n.getRightLeafColumns()),n.getCenterVisibleLeafColumns=i("getCenterVisibleLeafColumns",()=>n.getCenterLeafColumns()),n.setColumnVisibility=u=>n.options.onColumnVisibilityChange==null?void 0:n.options.onColumnVisibilityChange(u),n.resetColumnVisibility=u=>{var s;n.setColumnVisibility(u?{}:(s=n.initialState.columnVisibility)!=null?s:{})},n.toggleAllColumnsVisible=u=>{var s;u=(s=u)!=null?s:!n.getIsAllColumnsVisible(),n.setColumnVisibility(n.getAllLeafColumns().reduce((o,f)=>({...o,[f.id]:u||!(f.getCanHide!=null&&f.getCanHide())}),{}))},n.getIsAllColumnsVisible=()=>!n.getAllLeafColumns().some(u=>!(u.getIsVisible!=null&&u.getIsVisible())),n.getIsSomeColumnsVisible=()=>n.getAllLeafColumns().some(u=>u.getIsVisible==null?void 0:u.getIsVisible()),n.getToggleAllColumnsVisibilityHandler=()=>u=>{var s;n.toggleAllColumnsVisible((s=u.target)==null?void 0:s.checked)}}};function ei(n,i){return i?i==="center"?n.getCenterVisibleLeafColumns():i==="left"?n.getLeftVisibleLeafColumns():n.getRightVisibleLeafColumns():n.getVisibleLeafColumns()}const g1={createTable:n=>{n._getGlobalFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,"__global__"),n.getGlobalFacetedRowModel=()=>n.options.manualFiltering||!n._getGlobalFacetedRowModel?n.getPreFilteredRowModel():n._getGlobalFacetedRowModel(),n._getGlobalFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,"__global__"),n.getGlobalFacetedUniqueValues=()=>n._getGlobalFacetedUniqueValues?n._getGlobalFacetedUniqueValues():new Map,n._getGlobalFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,"__global__"),n.getGlobalFacetedMinMaxValues=()=>{if(n._getGlobalFacetedMinMaxValues)return n._getGlobalFacetedMinMaxValues()}}},m1={getInitialState:n=>({globalFilter:void 0,...n}),getDefaultOptions:n=>({onGlobalFilterChange:wt("globalFilter",n),globalFilterFn:"auto",getColumnCanGlobalFilter:i=>{var u;const s=(u=n.getCoreRowModel().flatRows[0])==null||(u=u._getAllCellsByColumnId()[i.id])==null?void 0:u.getValue();return typeof s=="string"||typeof s=="number"}}),createColumn:(n,i)=>{n.getCanGlobalFilter=()=>{var u,s,o,f;return((u=n.columnDef.enableGlobalFilter)!=null?u:!0)&&((s=i.options.enableGlobalFilter)!=null?s:!0)&&((o=i.options.enableFilters)!=null?o:!0)&&((f=i.options.getColumnCanGlobalFilter==null?void 0:i.options.getColumnCanGlobalFilter(n))!=null?f:!0)&&!!n.accessorFn}},createTable:n=>{n.getGlobalAutoFilterFn=()=>gn.includesString,n.getGlobalFilterFn=()=>{var i,u;const{globalFilterFn:s}=n.options;return qu(s)?s:s==="auto"?n.getGlobalAutoFilterFn():(i=(u=n.options.filterFns)==null?void 0:u[s])!=null?i:gn[s]},n.setGlobalFilter=i=>{n.options.onGlobalFilterChange==null||n.options.onGlobalFilterChange(i)},n.resetGlobalFilter=i=>{n.setGlobalFilter(i?void 0:n.initialState.globalFilter)}}},p1={getInitialState:n=>({expanded:{},...n}),getDefaultOptions:n=>({onExpandedChange:wt("expanded",n),paginateExpandedRows:!0}),createTable:n=>{let i=!1,u=!1;n._autoResetExpanded=()=>{var s,o;if(!i){n._queue(()=>{i=!0});return}if((s=(o=n.options.autoResetAll)!=null?o:n.options.autoResetExpanded)!=null?s:!n.options.manualExpanding){if(u)return;u=!0,n._queue(()=>{n.resetExpanded(),u=!1})}},n.setExpanded=s=>n.options.onExpandedChange==null?void 0:n.options.onExpandedChange(s),n.toggleAllRowsExpanded=s=>{s??!n.getIsAllRowsExpanded()?n.setExpanded(!0):n.setExpanded({})},n.resetExpanded=s=>{var o,f;n.setExpanded(s?{}:(o=(f=n.initialState)==null?void 0:f.expanded)!=null?o:{})},n.getCanSomeRowsExpand=()=>n.getPrePaginationRowModel().flatRows.some(s=>s.getCanExpand()),n.getToggleAllRowsExpandedHandler=()=>s=>{s.persist==null||s.persist(),n.toggleAllRowsExpanded()},n.getIsSomeRowsExpanded=()=>{const s=n.getState().expanded;return s===!0||Object.values(s).some(Boolean)},n.getIsAllRowsExpanded=()=>{const s=n.getState().expanded;return typeof s=="boolean"?s===!0:!(!Object.keys(s).length||n.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},n.getExpandedDepth=()=>{let s=0;return(n.getState().expanded===!0?Object.keys(n.getRowModel().rowsById):Object.keys(n.getState().expanded)).forEach(f=>{const d=f.split(".");s=Math.max(s,d.length)}),s},n.getPreExpandedRowModel=()=>n.getSortedRowModel(),n.getExpandedRowModel=()=>(!n._getExpandedRowModel&&n.options.getExpandedRowModel&&(n._getExpandedRowModel=n.options.getExpandedRowModel(n)),n.options.manualExpanding||!n._getExpandedRowModel?n.getPreExpandedRowModel():n._getExpandedRowModel())},createRow:(n,i)=>{n.toggleExpanded=u=>{i.setExpanded(s=>{var o;const f=s===!0?!0:!!(s!=null&&s[n.id]);let d={};if(s===!0?Object.keys(i.getRowModel().rowsById).forEach(h=>{d[h]=!0}):d=s,u=(o=u)!=null?o:!f,!f&&u)return{...d,[n.id]:!0};if(f&&!u){const{[n.id]:h,...m}=d;return m}return s})},n.getIsExpanded=()=>{var u;const s=i.getState().expanded;return!!((u=i.options.getIsRowExpanded==null?void 0:i.options.getIsRowExpanded(n))!=null?u:s===!0||s?.[n.id])},n.getCanExpand=()=>{var u,s,o;return(u=i.options.getRowCanExpand==null?void 0:i.options.getRowCanExpand(n))!=null?u:((s=i.options.enableExpanding)!=null?s:!0)&&!!((o=n.subRows)!=null&&o.length)},n.getIsAllParentsExpanded=()=>{let u=!0,s=n;for(;u&&s.parentId;)s=i.getRow(s.parentId,!0),u=s.getIsExpanded();return u},n.getToggleExpandedHandler=()=>{const u=n.getCanExpand();return()=>{u&&n.toggleExpanded()}}}},zo=0,Do=10,yo=()=>({pageIndex:zo,pageSize:Do}),v1={getInitialState:n=>({...n,pagination:{...yo(),...n?.pagination}}),getDefaultOptions:n=>({onPaginationChange:wt("pagination",n)}),createTable:n=>{let i=!1,u=!1;n._autoResetPageIndex=()=>{var s,o;if(!i){n._queue(()=>{i=!0});return}if((s=(o=n.options.autoResetAll)!=null?o:n.options.autoResetPageIndex)!=null?s:!n.options.manualPagination){if(u)return;u=!0,n._queue(()=>{n.resetPageIndex(),u=!1})}},n.setPagination=s=>{const o=f=>Gn(s,f);return n.options.onPaginationChange==null?void 0:n.options.onPaginationChange(o)},n.resetPagination=s=>{var o;n.setPagination(s?yo():(o=n.initialState.pagination)!=null?o:yo())},n.setPageIndex=s=>{n.setPagination(o=>{let f=Gn(s,o.pageIndex);const d=typeof n.options.pageCount>"u"||n.options.pageCount===-1?Number.MAX_SAFE_INTEGER:n.options.pageCount-1;return f=Math.max(0,Math.min(f,d)),{...o,pageIndex:f}})},n.resetPageIndex=s=>{var o,f;n.setPageIndex(s?zo:(o=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageIndex)!=null?o:zo)},n.resetPageSize=s=>{var o,f;n.setPageSize(s?Do:(o=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageSize)!=null?o:Do)},n.setPageSize=s=>{n.setPagination(o=>{const f=Math.max(1,Gn(s,o.pageSize)),d=o.pageSize*o.pageIndex,h=Math.floor(d/f);return{...o,pageIndex:h,pageSize:f}})},n.setPageCount=s=>n.setPagination(o=>{var f;let d=Gn(s,(f=n.options.pageCount)!=null?f:-1);return typeof d=="number"&&(d=Math.max(-1,d)),{...o,pageCount:d}}),n.getPageOptions=ne(()=>[n.getPageCount()],s=>{let o=[];return s&&s>0&&(o=[...new Array(s)].fill(null).map((f,d)=>d)),o},le(n.options,"debugTable")),n.getCanPreviousPage=()=>n.getState().pagination.pageIndex>0,n.getCanNextPage=()=>{const{pageIndex:s}=n.getState().pagination,o=n.getPageCount();return o===-1?!0:o===0?!1:s<o-1},n.previousPage=()=>n.setPageIndex(s=>s-1),n.nextPage=()=>n.setPageIndex(s=>s+1),n.firstPage=()=>n.setPageIndex(0),n.lastPage=()=>n.setPageIndex(n.getPageCount()-1),n.getPrePaginationRowModel=()=>n.getExpandedRowModel(),n.getPaginationRowModel=()=>(!n._getPaginationRowModel&&n.options.getPaginationRowModel&&(n._getPaginationRowModel=n.options.getPaginationRowModel(n)),n.options.manualPagination||!n._getPaginationRowModel?n.getPrePaginationRowModel():n._getPaginationRowModel()),n.getPageCount=()=>{var s;return(s=n.options.pageCount)!=null?s:Math.ceil(n.getRowCount()/n.getState().pagination.pageSize)},n.getRowCount=()=>{var s;return(s=n.options.rowCount)!=null?s:n.getPrePaginationRowModel().rows.length}}},So=()=>({top:[],bottom:[]}),y1={getInitialState:n=>({rowPinning:So(),...n}),getDefaultOptions:n=>({onRowPinningChange:wt("rowPinning",n)}),createRow:(n,i)=>{n.pin=(u,s,o)=>{const f=s?n.getLeafRows().map(m=>{let{id:p}=m;return p}):[],d=o?n.getParentRows().map(m=>{let{id:p}=m;return p}):[],h=new Set([...d,n.id,...f]);i.setRowPinning(m=>{var p,v;if(u==="bottom"){var C,R;return{top:((C=m?.top)!=null?C:[]).filter(w=>!(h!=null&&h.has(w))),bottom:[...((R=m?.bottom)!=null?R:[]).filter(w=>!(h!=null&&h.has(w))),...Array.from(h)]}}if(u==="top"){var S,x;return{top:[...((S=m?.top)!=null?S:[]).filter(w=>!(h!=null&&h.has(w))),...Array.from(h)],bottom:((x=m?.bottom)!=null?x:[]).filter(w=>!(h!=null&&h.has(w)))}}return{top:((p=m?.top)!=null?p:[]).filter(w=>!(h!=null&&h.has(w))),bottom:((v=m?.bottom)!=null?v:[]).filter(w=>!(h!=null&&h.has(w)))}})},n.getCanPin=()=>{var u;const{enableRowPinning:s,enablePinning:o}=i.options;return typeof s=="function"?s(n):(u=s??o)!=null?u:!0},n.getIsPinned=()=>{const u=[n.id],{top:s,bottom:o}=i.getState().rowPinning,f=u.some(h=>s?.includes(h)),d=u.some(h=>o?.includes(h));return f?"top":d?"bottom":!1},n.getPinnedIndex=()=>{var u,s;const o=n.getIsPinned();if(!o)return-1;const f=(u=o==="top"?i.getTopRows():i.getBottomRows())==null?void 0:u.map(d=>{let{id:h}=d;return h});return(s=f?.indexOf(n.id))!=null?s:-1}},createTable:n=>{n.setRowPinning=i=>n.options.onRowPinningChange==null?void 0:n.options.onRowPinningChange(i),n.resetRowPinning=i=>{var u,s;return n.setRowPinning(i?So():(u=(s=n.initialState)==null?void 0:s.rowPinning)!=null?u:So())},n.getIsSomeRowsPinned=i=>{var u;const s=n.getState().rowPinning;if(!i){var o,f;return!!((o=s.top)!=null&&o.length||(f=s.bottom)!=null&&f.length)}return!!((u=s[i])!=null&&u.length)},n._getPinnedRows=(i,u,s)=>{var o;return((o=n.options.keepPinnedRows)==null||o?(u??[]).map(d=>{const h=n.getRow(d,!0);return h.getIsAllParentsExpanded()?h:null}):(u??[]).map(d=>i.find(h=>h.id===d))).filter(Boolean).map(d=>({...d,position:s}))},n.getTopRows=ne(()=>[n.getRowModel().rows,n.getState().rowPinning.top],(i,u)=>n._getPinnedRows(i,u,"top"),le(n.options,"debugRows")),n.getBottomRows=ne(()=>[n.getRowModel().rows,n.getState().rowPinning.bottom],(i,u)=>n._getPinnedRows(i,u,"bottom"),le(n.options,"debugRows")),n.getCenterRows=ne(()=>[n.getRowModel().rows,n.getState().rowPinning.top,n.getState().rowPinning.bottom],(i,u,s)=>{const o=new Set([...u??[],...s??[]]);return i.filter(f=>!o.has(f.id))},le(n.options,"debugRows"))}},S1={getInitialState:n=>({rowSelection:{},...n}),getDefaultOptions:n=>({onRowSelectionChange:wt("rowSelection",n),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:n=>{n.setRowSelection=i=>n.options.onRowSelectionChange==null?void 0:n.options.onRowSelectionChange(i),n.resetRowSelection=i=>{var u;return n.setRowSelection(i?{}:(u=n.initialState.rowSelection)!=null?u:{})},n.toggleAllRowsSelected=i=>{n.setRowSelection(u=>{i=typeof i<"u"?i:!n.getIsAllRowsSelected();const s={...u},o=n.getPreGroupedRowModel().flatRows;return i?o.forEach(f=>{f.getCanSelect()&&(s[f.id]=!0)}):o.forEach(f=>{delete s[f.id]}),s})},n.toggleAllPageRowsSelected=i=>n.setRowSelection(u=>{const s=typeof i<"u"?i:!n.getIsAllPageRowsSelected(),o={...u};return n.getRowModel().rows.forEach(f=>{No(o,f.id,s,!0,n)}),o}),n.getPreSelectedRowModel=()=>n.getCoreRowModel(),n.getSelectedRowModel=ne(()=>[n.getState().rowSelection,n.getCoreRowModel()],(i,u)=>Object.keys(i).length?Co(n,u):{rows:[],flatRows:[],rowsById:{}},le(n.options,"debugTable")),n.getFilteredSelectedRowModel=ne(()=>[n.getState().rowSelection,n.getFilteredRowModel()],(i,u)=>Object.keys(i).length?Co(n,u):{rows:[],flatRows:[],rowsById:{}},le(n.options,"debugTable")),n.getGroupedSelectedRowModel=ne(()=>[n.getState().rowSelection,n.getSortedRowModel()],(i,u)=>Object.keys(i).length?Co(n,u):{rows:[],flatRows:[],rowsById:{}},le(n.options,"debugTable")),n.getIsAllRowsSelected=()=>{const i=n.getFilteredRowModel().flatRows,{rowSelection:u}=n.getState();let s=!!(i.length&&Object.keys(u).length);return s&&i.some(o=>o.getCanSelect()&&!u[o.id])&&(s=!1),s},n.getIsAllPageRowsSelected=()=>{const i=n.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:u}=n.getState();let s=!!i.length;return s&&i.some(o=>!u[o.id])&&(s=!1),s},n.getIsSomeRowsSelected=()=>{var i;const u=Object.keys((i=n.getState().rowSelection)!=null?i:{}).length;return u>0&&u<n.getFilteredRowModel().flatRows.length},n.getIsSomePageRowsSelected=()=>{const i=n.getPaginationRowModel().flatRows;return n.getIsAllPageRowsSelected()?!1:i.filter(u=>u.getCanSelect()).some(u=>u.getIsSelected()||u.getIsSomeSelected())},n.getToggleAllRowsSelectedHandler=()=>i=>{n.toggleAllRowsSelected(i.target.checked)},n.getToggleAllPageRowsSelectedHandler=()=>i=>{n.toggleAllPageRowsSelected(i.target.checked)}},createRow:(n,i)=>{n.toggleSelected=(u,s)=>{const o=n.getIsSelected();i.setRowSelection(f=>{var d;if(u=typeof u<"u"?u:!o,n.getCanSelect()&&o===u)return f;const h={...f};return No(h,n.id,u,(d=s?.selectChildren)!=null?d:!0,i),h})},n.getIsSelected=()=>{const{rowSelection:u}=i.getState();return nc(n,u)},n.getIsSomeSelected=()=>{const{rowSelection:u}=i.getState();return jo(n,u)==="some"},n.getIsAllSubRowsSelected=()=>{const{rowSelection:u}=i.getState();return jo(n,u)==="all"},n.getCanSelect=()=>{var u;return typeof i.options.enableRowSelection=="function"?i.options.enableRowSelection(n):(u=i.options.enableRowSelection)!=null?u:!0},n.getCanSelectSubRows=()=>{var u;return typeof i.options.enableSubRowSelection=="function"?i.options.enableSubRowSelection(n):(u=i.options.enableSubRowSelection)!=null?u:!0},n.getCanMultiSelect=()=>{var u;return typeof i.options.enableMultiRowSelection=="function"?i.options.enableMultiRowSelection(n):(u=i.options.enableMultiRowSelection)!=null?u:!0},n.getToggleSelectedHandler=()=>{const u=n.getCanSelect();return s=>{var o;u&&n.toggleSelected((o=s.target)==null?void 0:o.checked)}}}},No=(n,i,u,s,o)=>{var f;const d=o.getRow(i,!0);u?(d.getCanMultiSelect()||Object.keys(n).forEach(h=>delete n[h]),d.getCanSelect()&&(n[i]=!0)):delete n[i],s&&(f=d.subRows)!=null&&f.length&&d.getCanSelectSubRows()&&d.subRows.forEach(h=>No(n,h.id,u,s,o))};function Co(n,i){const u=n.getState().rowSelection,s=[],o={},f=function(d,h){return d.map(m=>{var p;const v=nc(m,u);if(v&&(s.push(m),o[m.id]=m),(p=m.subRows)!=null&&p.length&&(m={...m,subRows:f(m.subRows)}),v)return m}).filter(Boolean)};return{rows:f(i.rows),flatRows:s,rowsById:o}}function nc(n,i){var u;return(u=i[n.id])!=null?u:!1}function jo(n,i,u){var s;if(!((s=n.subRows)!=null&&s.length))return!1;let o=!0,f=!1;return n.subRows.forEach(d=>{if(!(f&&!o)&&(d.getCanSelect()&&(nc(d,i)?f=!0:o=!1),d.subRows&&d.subRows.length)){const h=jo(d,i);h==="all"?f=!0:(h==="some"&&(f=!0),o=!1)}}),o?"all":f?"some":!1}const Uo=/([0-9]+)/gm,C1=(n,i,u)=>xm(Qn(n.getValue(u)).toLowerCase(),Qn(i.getValue(u)).toLowerCase()),R1=(n,i,u)=>xm(Qn(n.getValue(u)),Qn(i.getValue(u))),b1=(n,i,u)=>lc(Qn(n.getValue(u)).toLowerCase(),Qn(i.getValue(u)).toLowerCase()),E1=(n,i,u)=>lc(Qn(n.getValue(u)),Qn(i.getValue(u))),x1=(n,i,u)=>{const s=n.getValue(u),o=i.getValue(u);return s>o?1:s<o?-1:0},w1=(n,i,u)=>lc(n.getValue(u),i.getValue(u));function lc(n,i){return n===i?0:n>i?1:-1}function Qn(n){return typeof n=="number"?isNaN(n)||n===1/0||n===-1/0?"":String(n):typeof n=="string"?n:""}function xm(n,i){const u=n.split(Uo).filter(Boolean),s=i.split(Uo).filter(Boolean);for(;u.length&&s.length;){const o=u.shift(),f=s.shift(),d=parseInt(o,10),h=parseInt(f,10),m=[d,h].sort();if(isNaN(m[0])){if(o>f)return 1;if(f>o)return-1;continue}if(isNaN(m[1]))return isNaN(d)?-1:1;if(d>h)return 1;if(h>d)return-1}return u.length-s.length}const Wa={alphanumeric:C1,alphanumericCaseSensitive:R1,text:b1,textCaseSensitive:E1,datetime:x1,basic:w1},T1={getInitialState:n=>({sorting:[],...n}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:n=>({onSortingChange:wt("sorting",n),isMultiSortEvent:i=>i.shiftKey}),createColumn:(n,i)=>{n.getAutoSortingFn=()=>{const u=i.getFilteredRowModel().flatRows.slice(10);let s=!1;for(const o of u){const f=o?.getValue(n.id);if(Object.prototype.toString.call(f)==="[object Date]")return Wa.datetime;if(typeof f=="string"&&(s=!0,f.split(Uo).length>1))return Wa.alphanumeric}return s?Wa.text:Wa.basic},n.getAutoSortDir=()=>{const u=i.getFilteredRowModel().flatRows[0];return typeof u?.getValue(n.id)=="string"?"asc":"desc"},n.getSortingFn=()=>{var u,s;if(!n)throw new Error;return qu(n.columnDef.sortingFn)?n.columnDef.sortingFn:n.columnDef.sortingFn==="auto"?n.getAutoSortingFn():(u=(s=i.options.sortingFns)==null?void 0:s[n.columnDef.sortingFn])!=null?u:Wa[n.columnDef.sortingFn]},n.toggleSorting=(u,s)=>{const o=n.getNextSortingOrder(),f=typeof u<"u"&&u!==null;i.setSorting(d=>{const h=d?.find(S=>S.id===n.id),m=d?.findIndex(S=>S.id===n.id);let p=[],v,C=f?u:o==="desc";if(d!=null&&d.length&&n.getCanMultiSort()&&s?h?v="toggle":v="add":d!=null&&d.length&&m!==d.length-1?v="replace":h?v="toggle":v="replace",v==="toggle"&&(f||o||(v="remove")),v==="add"){var R;p=[...d,{id:n.id,desc:C}],p.splice(0,p.length-((R=i.options.maxMultiSortColCount)!=null?R:Number.MAX_SAFE_INTEGER))}else v==="toggle"?p=d.map(S=>S.id===n.id?{...S,desc:C}:S):v==="remove"?p=d.filter(S=>S.id!==n.id):p=[{id:n.id,desc:C}];return p})},n.getFirstSortDir=()=>{var u,s;return((u=(s=n.columnDef.sortDescFirst)!=null?s:i.options.sortDescFirst)!=null?u:n.getAutoSortDir()==="desc")?"desc":"asc"},n.getNextSortingOrder=u=>{var s,o;const f=n.getFirstSortDir(),d=n.getIsSorted();return d?d!==f&&((s=i.options.enableSortingRemoval)==null||s)&&(!(u&&(o=i.options.enableMultiRemove)!=null)||o)?!1:d==="desc"?"asc":"desc":f},n.getCanSort=()=>{var u,s;return((u=n.columnDef.enableSorting)!=null?u:!0)&&((s=i.options.enableSorting)!=null?s:!0)&&!!n.accessorFn},n.getCanMultiSort=()=>{var u,s;return(u=(s=n.columnDef.enableMultiSort)!=null?s:i.options.enableMultiSort)!=null?u:!!n.accessorFn},n.getIsSorted=()=>{var u;const s=(u=i.getState().sorting)==null?void 0:u.find(o=>o.id===n.id);return s?s.desc?"desc":"asc":!1},n.getSortIndex=()=>{var u,s;return(u=(s=i.getState().sorting)==null?void 0:s.findIndex(o=>o.id===n.id))!=null?u:-1},n.clearSorting=()=>{i.setSorting(u=>u!=null&&u.length?u.filter(s=>s.id!==n.id):[])},n.getToggleSortingHandler=()=>{const u=n.getCanSort();return s=>{u&&(s.persist==null||s.persist(),n.toggleSorting==null||n.toggleSorting(void 0,n.getCanMultiSort()?i.options.isMultiSortEvent==null?void 0:i.options.isMultiSortEvent(s):!1))}}},createTable:n=>{n.setSorting=i=>n.options.onSortingChange==null?void 0:n.options.onSortingChange(i),n.resetSorting=i=>{var u,s;n.setSorting(i?[]:(u=(s=n.initialState)==null?void 0:s.sorting)!=null?u:[])},n.getPreSortedRowModel=()=>n.getGroupedRowModel(),n.getSortedRowModel=()=>(!n._getSortedRowModel&&n.options.getSortedRowModel&&(n._getSortedRowModel=n.options.getSortedRowModel(n)),n.options.manualSorting||!n._getSortedRowModel?n.getPreSortedRowModel():n._getSortedRowModel())}},_1=[ZS,h1,r1,o1,JS,kS,g1,m1,T1,u1,p1,v1,y1,S1,f1];function M1(n){var i,u;const s=[..._1,...(i=n._features)!=null?i:[]];let o={_features:s};const f=o._features.reduce((R,S)=>Object.assign(R,S.getDefaultOptions==null?void 0:S.getDefaultOptions(o)),{}),d=R=>o.options.mergeOptions?o.options.mergeOptions(f,R):{...f,...R};let m={...{},...(u=n.initialState)!=null?u:{}};o._features.forEach(R=>{var S;m=(S=R.getInitialState==null?void 0:R.getInitialState(m))!=null?S:m});const p=[];let v=!1;const C={_features:s,options:{...f,...n},initialState:m,_queue:R=>{p.push(R),v||(v=!0,Promise.resolve().then(()=>{for(;p.length;)p.shift()();v=!1}).catch(S=>setTimeout(()=>{throw S})))},reset:()=>{o.setState(o.initialState)},setOptions:R=>{const S=Gn(R,o.options);o.options=d(S)},getState:()=>o.options.state,setState:R=>{o.options.onStateChange==null||o.options.onStateChange(R)},_getRowId:(R,S,x)=>{var w;return(w=o.options.getRowId==null?void 0:o.options.getRowId(R,S,x))!=null?w:`${x?[x.id,S].join("."):S}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(R,S)=>{let x=(S?o.getPrePaginationRowModel():o.getRowModel()).rowsById[R];if(!x&&(x=o.getCoreRowModel().rowsById[R],!x))throw new Error;return x},_getDefaultColumnDef:ne(()=>[o.options.defaultColumn],R=>{var S;return R=(S=R)!=null?S:{},{header:x=>{const w=x.header.column.columnDef;return w.accessorKey?w.accessorKey:w.accessorFn?w.id:null},cell:x=>{var w,O;return(w=(O=x.renderValue())==null||O.toString==null?void 0:O.toString())!=null?w:null},...o._features.reduce((x,w)=>Object.assign(x,w.getDefaultColumnDef==null?void 0:w.getDefaultColumnDef()),{}),...R}},le(n,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:ne(()=>[o._getColumnDefs()],R=>{const S=function(x,w,O){return O===void 0&&(O=0),x.map(z=>{const U=KS(o,z,O,w),G=z;return U.columns=G.columns?S(G.columns,U,O+1):[],U})};return S(R)},le(n,"debugColumns")),getAllFlatColumns:ne(()=>[o.getAllColumns()],R=>R.flatMap(S=>S.getFlatColumns()),le(n,"debugColumns")),_getAllFlatColumnsById:ne(()=>[o.getAllFlatColumns()],R=>R.reduce((S,x)=>(S[x.id]=x,S),{}),le(n,"debugColumns")),getAllLeafColumns:ne(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(R,S)=>{let x=R.flatMap(w=>w.getLeafColumns());return S(x)},le(n,"debugColumns")),getColumn:R=>o._getAllFlatColumnsById()[R]};Object.assign(o,C);for(let R=0;R<o._features.length;R++){const S=o._features[R];S==null||S.createTable==null||S.createTable(o)}return o}function A1(){return n=>ne(()=>[n.options.data],i=>{const u={rows:[],flatRows:[],rowsById:{}},s=function(o,f,d){f===void 0&&(f=0);const h=[];for(let p=0;p<o.length;p++){const v=ec(n,n._getRowId(o[p],p,d),o[p],p,f,void 0,d?.id);if(u.flatRows.push(v),u.rowsById[v.id]=v,h.push(v),n.options.getSubRows){var m;v.originalSubRows=n.options.getSubRows(o[p],p),(m=v.originalSubRows)!=null&&m.length&&(v.subRows=s(v.originalSubRows,f+1,v))}}return h};return u.rows=s(i),u},le(n.options,"debugTable","getRowModel",()=>n._autoResetPageIndex()))}function O1(n,i,u){return u.options.filterFromLeafRows?z1(n,i,u):D1(n,i,u)}function z1(n,i,u){var s;const o=[],f={},d=(s=u.options.maxLeafRowFilterDepth)!=null?s:100,h=function(m,p){p===void 0&&(p=0);const v=[];for(let R=0;R<m.length;R++){var C;let S=m[R];const x=ec(u,S.id,S.original,S.index,S.depth,void 0,S.parentId);if(x.columnFilters=S.columnFilters,(C=S.subRows)!=null&&C.length&&p<d){if(x.subRows=h(S.subRows,p+1),S=x,i(S)&&!x.subRows.length){v.push(S),f[S.id]=S,o.push(S);continue}if(i(S)||x.subRows.length){v.push(S),f[S.id]=S,o.push(S);continue}}else S=x,i(S)&&(v.push(S),f[S.id]=S,o.push(S))}return v};return{rows:h(n),flatRows:o,rowsById:f}}function D1(n,i,u){var s;const o=[],f={},d=(s=u.options.maxLeafRowFilterDepth)!=null?s:100,h=function(m,p){p===void 0&&(p=0);const v=[];for(let R=0;R<m.length;R++){let S=m[R];if(i(S)){var C;if((C=S.subRows)!=null&&C.length&&p<d){const w=ec(u,S.id,S.original,S.index,S.depth,void 0,S.parentId);w.subRows=h(S.subRows,p+1),S=w}v.push(S),o.push(S),f[S.id]=S}}return v};return{rows:h(n),flatRows:o,rowsById:f}}function N1(){return n=>ne(()=>[n.getPreFilteredRowModel(),n.getState().columnFilters,n.getState().globalFilter],(i,u,s)=>{if(!i.rows.length||!(u!=null&&u.length)&&!s){for(let R=0;R<i.flatRows.length;R++)i.flatRows[R].columnFilters={},i.flatRows[R].columnFiltersMeta={};return i}const o=[],f=[];(u??[]).forEach(R=>{var S;const x=n.getColumn(R.id);if(!x)return;const w=x.getFilterFn();w&&o.push({id:R.id,filterFn:w,resolvedValue:(S=w.resolveFilterValue==null?void 0:w.resolveFilterValue(R.value))!=null?S:R.value})});const d=(u??[]).map(R=>R.id),h=n.getGlobalFilterFn(),m=n.getAllLeafColumns().filter(R=>R.getCanGlobalFilter());s&&h&&m.length&&(d.push("__global__"),m.forEach(R=>{var S;f.push({id:R.id,filterFn:h,resolvedValue:(S=h.resolveFilterValue==null?void 0:h.resolveFilterValue(s))!=null?S:s})}));let p,v;for(let R=0;R<i.flatRows.length;R++){const S=i.flatRows[R];if(S.columnFilters={},o.length)for(let x=0;x<o.length;x++){p=o[x];const w=p.id;S.columnFilters[w]=p.filterFn(S,w,p.resolvedValue,O=>{S.columnFiltersMeta[w]=O})}if(f.length){for(let x=0;x<f.length;x++){v=f[x];const w=v.id;if(v.filterFn(S,w,v.resolvedValue,O=>{S.columnFiltersMeta[w]=O})){S.columnFilters.__global__=!0;break}}S.columnFilters.__global__!==!0&&(S.columnFilters.__global__=!1)}}const C=R=>{for(let S=0;S<d.length;S++)if(R.columnFilters[d[S]]===!1)return!1;return!0};return O1(i.rows,C,n)},le(n.options,"debugTable","getFilteredRowModel",()=>n._autoResetPageIndex()))}function j1(){return n=>ne(()=>[n.getState().sorting,n.getPreSortedRowModel()],(i,u)=>{if(!u.rows.length||!(i!=null&&i.length))return u;const s=n.getState().sorting,o=[],f=s.filter(m=>{var p;return(p=n.getColumn(m.id))==null?void 0:p.getCanSort()}),d={};f.forEach(m=>{const p=n.getColumn(m.id);p&&(d[m.id]={sortUndefined:p.columnDef.sortUndefined,invertSorting:p.columnDef.invertSorting,sortingFn:p.getSortingFn()})});const h=m=>{const p=m.map(v=>({...v}));return p.sort((v,C)=>{for(let S=0;S<f.length;S+=1){var R;const x=f[S],w=d[x.id],O=w.sortUndefined,z=(R=x?.desc)!=null?R:!1;let U=0;if(O){const G=v.getValue(x.id),K=C.getValue(x.id),$=G===void 0,Y=K===void 0;if($||Y){if(O==="first")return $?-1:1;if(O==="last")return $?1:-1;U=$&&Y?0:$?O:-O}}if(U===0&&(U=w.sortingFn(v,C,x.id)),U!==0)return z&&(U*=-1),w.invertSorting&&(U*=-1),U}return v.index-C.index}),p.forEach(v=>{var C;o.push(v),(C=v.subRows)!=null&&C.length&&(v.subRows=h(v.subRows))}),p};return{rows:h(u.rows),flatRows:o,rowsById:u.rowsById}},le(n.options,"debugTable","getSortedRowModel",()=>n._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 Fg(n,i){return n?U1(n)?E.createElement(n,i):n:null}function U1(n){return H1(n)||typeof n=="function"||L1(n)}function H1(n){return typeof n=="function"&&(()=>{const i=Object.getPrototypeOf(n);return i.prototype&&i.prototype.isReactComponent})()}function L1(n){return typeof n=="object"&&typeof n.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(n.$$typeof.description)}function V1(n){const i={state:{},onStateChange:()=>{},renderFallbackValue:null,...n},[u]=E.useState(()=>({current:M1(i)})),[s,o]=E.useState(()=>u.current.initialState);return u.current.setOptions(f=>({...f,...n,state:{...s,...n.state},onStateChange:d=>{o(d),n.onStateChange==null||n.onStateChange(d)}})),u.current}function F1(n){const i=n?.original?.metadata?.petriFailed;return typeof i=="number"&&i>0?"failed-row":"passed-row"}function ri({data:n,columns:i,sorting:u,onSortingChange:s,columnWidthMap:o,estimatedRowHeight:f=100,overscan:d=20,getRowClassName:h,onRowClick:m,scrollToIndex:p}){const v=V1({data:n,columns:i,state:{sorting:u},onSortingChange:s,getCoreRowModel:A1(),getSortedRowModel:j1(),getFilteredRowModel:N1(),enableSorting:!0,enableSortingRemoval:!1,debugTable:!1}),{rows:C}=v.getRowModel(),R=E.useRef(null),S=E.useRef(null),[x,w]=E.useState(25.5);E.useLayoutEffect(()=>{const z=S.current;z&&w(z.getBoundingClientRect().height)},[]);const O=$S({count:C.length,getScrollElement:()=>R.current,estimateSize:()=>f,overscan:d,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?z=>z?.getBoundingClientRect().height:void 0});return E.useEffect(()=>{O.calculateRange(),O.getVirtualItems().forEach(z=>{const U=document.querySelector(`[data-index="${z.index}"]`);U&&O.measureElement(U)})},[C.length,n,O,u]),E.useEffect(()=>{if(p!=null&&!(p<0||p>=C.length))try{O.scrollToIndex(p,{align:"center"})}catch{}},[p,O,C.length]),_.jsxs("div",{children:[_.jsx("div",{ref:S,className:"virtualized-table-header-container",children:_.jsx("table",{className:"virtualized-table",children:_.jsx("thead",{children:v.getHeaderGroups().map(z=>_.jsx("tr",{children:z.headers.map(U=>_.jsx("th",{className:U.column.getCanSort()?"sortable":"",onClick:U.column.getToggleSortingHandler(),style:{width:o[U.column.id]},children:_.jsxs("div",{className:"virtualized-table-header-content",children:[U.isPlaceholder?null:Fg(U.column.columnDef.header,U.getContext()),U.column.getCanSort()&&_.jsx("span",{className:"sort-indicator",children:{asc:"↑",desc:"↓"}[U.column.getIsSorted()]??"⇅"})]})},U.id))},z.id))})})}),_.jsx("div",{ref:R,className:"virtualized-table-body",style:{height:`calc(100vh - 3.2rem - ${x}px)`},children:_.jsx("div",{style:{height:`${O.getTotalSize()}px`},children:O.getVirtualItems().map(z=>{const U=C[z.index];return _.jsx("div",{"data-index":z.index,ref:O.measureElement,className:`virtualized-table-row ${h?h(U):F1(U)}`,style:{position:"absolute",width:"100%",transform:`translateY(${z.start}px)`},onClick:m?G=>m(U,G):void 0,children:_.jsx("table",{className:"virtualized-table",children:_.jsx("tbody",{children:_.jsx("tr",{children:U.getVisibleCells().map(G=>_.jsx("td",{style:{boxSizing:"border-box",width:o[G.column.id]},children:Fg(G.column.columnDef.cell,G.getContext())},G.id))})})})},U.id)})})})]})}function na({value:n,onChange:i,inputRef:u,active:s=!0,usePersistentSearching:o=!0}){const f=$t(),d=gl(),h=E.useRef(!0),m=E.useRef(null),p=u||m;return E.useEffect(()=>{if(!o){h.current=!1;return}const C=new URLSearchParams(f.search).get("search");C!==null&&C!==n&&i(C),h.current=!1},[]),E.useEffect(()=>{if(!o||h.current)return;const v=new URLSearchParams(f.search);n?v.set("search",n):v.delete("search");const C=v.toString(),R=C?`${f.pathname}?${C}`:f.pathname;f.pathname+f.search!==R&&d(R,{replace:!0})},[n,f.pathname,d,f.search,o]),E.useEffect(()=>{if(!s)return;const v=C=>{const R=navigator.platform.toUpperCase().includes("MAC");(C.key==="f"||C.key==="F")&&(R&&C.metaKey||!R&&C.ctrlKey)&&document.activeElement!==p.current&&(C.preventDefault(),p.current?.focus(),p.current?.select()),C.key==="Escape"&&(n?i(""):document.activeElement===p.current&&p.current?.blur())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n,i,s]),_.jsxs("div",{style:{display:"inline-block"},children:[_.jsx("input",{ref:p,value:n,onChange:v=>i(v.target.value),placeholder:"Filter ...",className:"common-search-input","aria-disabled":!s}),n&&_.jsx("button",{onClick:()=>i(""),className:"common-search-clear-btn",title:"Clear filter",children:"×"})]})}const q1=[{id:"creationTime",desc:!0}],B1={name:115,creationTime:210,status:60,failed:50,total:60,ghRun:115},G1=n=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:i=>i.metadata.petriFailed===0?"passed":"failed",cell:i=>{const u=i.getValue();return _.jsx("div",{className:"common-status-cell",children:_.jsx("div",{className:u==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"failed",accessorKey:"metadata.petriFailed",header:"Fail",enableSorting:!0,cell:i=>_.jsx("div",{className:"common-failed-count",children:i.getValue()})},{id:"total",header:"Total",enableSorting:!0,accessorFn:i=>i.metadata.petriPassed+i.metadata.petriFailed,cell:i=>_.jsx("div",{className:"common-total-count",children:i.getValue()})},{accessorKey:"name",header:"Run",enableSorting:!0,cell:i=>{const u=i.getValue().replace("runs/","");return _.jsx("a",{href:"#",onClick:s=>{s.preventDefault(),n(u)},className:"common-table-link",children:u})},sortingFn:(i,u,s)=>{const o=i.getValue(s),f=u.getValue(s);return o.localeCompare(f)}},{accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:i=>_.jsx("div",{className:"created-date",children:i.getValue().toLocaleString()}),sortingFn:(i,u,s)=>{const o=i.getValue(s),f=u.getValue(s);return o.getTime()-f.getTime()}},{accessorKey:"metadata.ghBranch",header:"Branch",enableSorting:!0,cell:i=>{const u=i.getValue()||"";return _.jsx("div",{className:"branch-name",title:u,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"1.25rem"},children:u})}},{accessorKey:"metadata.ghPr",header:"PR",enableSorting:!0,accessorFn:i=>{const u=i.metadata.ghPr,s=i.metadata.prTitle;return u?`${u} ${s||""}`.trim():""},cell:i=>{const u=i.row.original,s=u.metadata.ghPr,o=u.metadata.prTitle,f=s?`#${s}${o?` ${o}`:""}`:"";return s?_.jsx("div",{className:"pr-cell",children:_.jsx("a",{href:`https://github.com/microsoft/openvmm/pull/${s}`,target:"_blank",rel:"noopener noreferrer",className:"pr-link",title:o?`#${s} ${o}`:`PR #${s}`,children:f})}):_.jsx("div",{className:"no-pr",children:"-"})},sortingFn:(i,u)=>{const s=i.original.metadata.ghPr,o=u.original.metadata.ghPr;return!s&&!o?0:s?o?parseInt(s)-parseInt(o):-1:1}},{id:"ghRun",accessorKey:"name",header:"GH Run",enableSorting:!0,cell:i=>{const u=i.getValue().replace("runs/","");return _.jsx("a",{href:`https://github.com/microsoft/openvmm/actions/runs/${u}`,target:"_blank",rel:"noopener noreferrer",className:"common-table-link",children:u})},sortingFn:(i,u,s)=>{const o=i.getValue(s),f=u.getValue(s);return o.localeCompare(f)}}];function $1(){const n=gl(),[i,u]=Yo(),s=i.get("branchFilter")||"all",[o,f]=E.useState(s),[d,h]=E.useState("");E.useEffect(()=>{f(s)},[s]);const m=O=>{f(O);const z=new URLSearchParams(i);z.set("branchFilter",O),u(z,{replace:!0})},{data:p=[],isSuccess:v}=Io({queryKey:["runs"],queryFn:O=>Po(O.client),staleTime:120*1e3,gcTime:1/0,refetchInterval:120*1e3}),C=v&&p.length===0,[R,S]=E.useState(q1),x=E.useMemo(()=>G1(O=>{n(`/runs/${O}`)}),[n]),w=E.useMemo(()=>Y1(p,o,d),[p,o,d]);return _.jsxs("div",{className:"common-page-display",children:[_.jsx("div",{className:"common-page-header",children:_.jsx(Q1,{branchFilter:o,setBranchFilter:m,searchFilter:d,setSearchFilter:h,resultCount:w.length,loadingSuccess:v})}),C?_.jsx("div",{className:"common-no-data",children:"Table contains no data."}):_.jsx(ri,{data:w,columns:x,sorting:R,onSortingChange:S,columnWidthMap:B1})]})}function Q1({branchFilter:n,setBranchFilter:i,searchFilter:u,setSearchFilter:s,resultCount:o,loadingSuccess:f}){return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"common-header-left",children:[_.jsxs("div",{className:"common-header-title",children:[_.jsx(si,{}),_.jsx(xt,{to:"/runs",className:"common-header-path",children:"Runs"})]}),_.jsxs("div",{className:"common-header-filter-buttons",children:[_.jsx("button",{className:`common-header-filter-btn ${n==="all"?"active":""}`,onClick:()=>i("all"),children:"all"}),_.jsx("button",{className:`common-header-filter-btn ${n==="main"?"active":""}`,onClick:()=>i("main"),children:"main"})]}),!f&&_.jsxs("div",{className:"header-loading-indicator",children:[_.jsx("div",{className:"header-loading-spinner"}),_.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]})]}),_.jsxs("div",{className:"common-header-right",children:[_.jsx(na,{value:u,onChange:s}),_.jsxs("span",{className:"common-result-count",children:[o," runs"]})]})]})}function Y1(n,i,u){let s=i==="all"?n:n.filter(f=>f.metadata.ghBranch===i);const o=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return o.length===0?s:s.filter(f=>{const d=f.metadata.petriFailed===0?"passed":"failed",h=f.metadata.ghPr?`${f.metadata.ghPr} ${f.metadata.prTitle||""}`:"",m=`${f.name} ${d} ${f.metadata.ghBranch||""} ${h}`.toLowerCase();return o.every(p=>m.includes(p))})}const X1=[{id:"status",desc:!1}],K1={architecture:320,status:60},Z1=n=>[{accessorKey:"status",header:"Status",enableSorting:!0,cell:i=>{const u=i.getValue();return _.jsx("div",{className:"common-status-cell",children:_.jsx("span",{className:u==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"architecture",header:"Architecture",accessorFn:i=>{const u=i.name.split("/");return u.length>1?u[0]:"Other"},cell:i=>_.jsx("div",{className:"common-architecture-name",children:i.getValue()}),enableSorting:!0},{id:"testName",header:"Test Name",accessorFn:i=>{const u=i.name.split("/");return u.length>1?u.slice(1).join("/"):i.name},cell:i=>{const u=i.getValue(),s=i.row.original.name,[o,...f]=s.split("/"),d=encodeURIComponent(o),h=encodeURIComponent(f.join("/"));return _.jsx(xt,{to:`/runs/${n}/${d}/${h}`,state:{testResult:i.row.original},className:"common-table-link",title:`${s}`,children:u})},enableSorting:!0}];function J1(){const[n,i]=E.useState(""),[u,s]=E.useState(X1);let{runId:o}=qo();o=o?decodeURIComponent(o):"";const{data:f,isSuccess:d}=Io({queryKey:["runDetails",o],queryFn:v=>Wo(o,v.client),staleTime:1/0,gcTime:1/0}),h=E.useMemo(()=>Z1(o),[o]),m=E.useMemo(()=>I1(f?.tests,n),[f?.tests,n]),p=f?.tests&&f.tests.length===0;return _.jsxs("div",{className:"common-page-display",children:[_.jsx("div",{className:"common-page-header",children:_.jsx(k1,{resultCount:m.length,runId:o,searchFilter:n,setSearchFilter:i,loadingSuccess:d})}),p?_.jsx("div",{className:"common-no-data",children:"Table contains no data."}):_.jsx(ri,{data:m,columns:h,sorting:u,onSortingChange:s,columnWidthMap:K1,estimatedRowHeight:44,getRowClassName:v=>v.original.status==="failed"?"failed-row":"passed-row"})]})}function k1({resultCount:n,runId:i,searchFilter:u,setSearchFilter:s,loadingSuccess:o}){return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"common-header-left",children:[_.jsxs("div",{className:"common-header-title",children:[_.jsx(si,{}),_.jsx(xt,{to:"/runs",className:"common-header-path",children:"Runs"}),_.jsx("span",{children:"/"}),_.jsx(xt,{to:`/runs/${i}`,className:"common-header-path",children:i})]}),!o&&_.jsxs("div",{className:"header-loading-indicator",children:[_.jsx("div",{className:"header-loading-spinner"}),_.jsx("div",{className:"header-loading-text",children:"Fetching run details ..."})]})]}),_.jsxs("div",{className:"common-header-right",children:[_.jsx(na,{value:u,onChange:s}),_.jsxs("span",{className:"common-result-count",children:[n," tests"]})]})]})}function I1(n,i){if(!n)return[];const u=i.trim().toLowerCase().split(/\s+/).filter(Boolean);return u.length===0?n:n.filter(s=>{const o=`${s.name} ${s.status}`.toLowerCase();return u.every(f=>o.includes(f))})}const Hu=15,wm=5,P1=[{id:"failedCount",desc:!0}],W1={architecture:300,failedCount:50,totalCount:60,status:60},eC=()=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:n=>n.failedCount===0?"passed":"failed",cell:n=>{const i=n.getValue();return _.jsx("div",{className:"common-status-cell",children:_.jsx("div",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{accessorKey:"failedCount",header:"Fail",enableSorting:!0,cell:n=>_.jsx("div",{className:"common-failed-count",children:n.getValue()})},{accessorKey:"totalCount",header:"Total",enableSorting:!0,cell:n=>_.jsx("div",{className:"common-total-count",children:n.getValue()})},{id:"architecture",accessorKey:"architecture",header:"Architecture",enableSorting:!0,cell:n=>_.jsx("div",{className:"common-architecture-name",title:n.getValue(),children:n.getValue()}),sortingFn:(n,i,u)=>{const s=n.getValue(u),o=i.getValue(u);return s.localeCompare(o)}},{accessorKey:"name",header:"Test Name",enableSorting:!0,cell:n=>{const i=n.getValue(),u=n.row.original.architecture,s=encodeURIComponent(u),o=encodeURIComponent(i);return _.jsx(xt,{to:`/tests/${s}/${o}`,state:{testData:n.row.original},className:"common-table-link",title:i,children:i})},sortingFn:(n,i,u)=>{const s=n.getValue(u),o=i.getValue(u);return s.localeCompare(o)}}];function tC(){const[n,i]=Yo(),u=n.get("branchFilter")||"main",[s,o]=E.useState(u),[f,d]=E.useState(""),[h,m]=E.useState([]),[p,v]=E.useState(0),[C,R]=E.useState(null),S=ko(),x=E.useRef(Hu);E.useEffect(()=>(x.current=Hu,()=>{x.current=wm}),[]),E.useEffect(()=>{o(u)},[u]);const w=K=>{o(K);const $=new URLSearchParams(n);$.set("branchFilter",K),i($,{replace:!0})};E.useEffect(()=>{v(0),gm(s,S,(K,$)=>{v(K),R($)},()=>x.current).then(K=>{m(OS(K))}).catch(K=>{console.error("Error fetching test analysis:",K)})},[s,S]);const[O,z]=E.useState(P1),U=E.useMemo(()=>eC(),[]),G=E.useMemo(()=>lC(h,f),[h,f]);return _.jsxs("div",{className:"common-page-display",children:[_.jsx("div",{className:"common-page-header",children:_.jsx(nC,{branchFilter:s,setBranchFilter:w,searchFilter:f,setSearchFilter:d,resultCount:G.length,fetchedCount:p,totalToFetch:C})}),_.jsx(ri,{data:G,columns:U,sorting:O,columnWidthMap:W1,onSortingChange:z})]})}function nC({branchFilter:n,setBranchFilter:i,searchFilter:u,setSearchFilter:s,resultCount:o,fetchedCount:f,totalToFetch:d}){return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"common-header-left",children:[_.jsxs("div",{className:"common-header-title",children:[_.jsx(si,{}),_.jsx(xt,{to:"/tests",className:"common-header-path",children:"Tests"})]}),_.jsx("div",{className:"common-header-filter-buttons",children:_.jsx("button",{className:`common-header-filter-btn ${n==="main"?"active":""}`,onClick:()=>i("main"),children:"main"})}),d===null&&_.jsxs("div",{className:"header-loading-indicator",children:[_.jsx("div",{className:"header-loading-spinner"}),_.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]}),f!==d&&d!==null&&_.jsxs("div",{className:"header-loading-indicator",children:[_.jsx("div",{className:"header-loading-spinner"}),_.jsxs("div",{className:"header-loading-text",children:["Analyzed ",f,"/",d]})]})]}),_.jsxs("div",{className:"common-header-right",children:[_.jsx(na,{value:u,onChange:s}),_.jsxs("span",{className:"common-result-count",children:[o," tests"]})]})]})}function lC(n,i){const u=i.trim().toLowerCase().split(/\s+/).filter(Boolean);return u.length===0?n:n.filter(s=>{const f=`${s.failedCount===0?"passed":"failed"} ${s.architecture} ${s.name}`.toLowerCase();return u.every(d=>f.includes(d))})}const aC=[{id:"creationTime",desc:!0}],iC={creationTime:210,status:60},uC=n=>[{id:"status",header:"Status",accessorKey:"status",enableSorting:!0,cell:i=>{const u=i.getValue();return _.jsx("div",{className:"common-status-cell",children:_.jsx("div",{className:u==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"creationTime",accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:i=>{const u=i.getValue();return _.jsx("div",{className:"created-date",title:u?.toLocaleString(),children:u?.toLocaleString()})},sortingFn:(i,u,s)=>{const o=i.getValue(s),f=u.getValue(s);return!o&&!f?0:o?f?o.getTime()-f.getTime():-1:1}},{id:"runNumber",accessorKey:"runNumber",header:"Run Number",enableSorting:!0,cell:i=>{const u=i.getValue(),s=n?`?search=${encodeURIComponent(n)}`:"";return _.jsx(xt,{to:`/runs/${u}${s}`,className:"common-table-link",title:u,children:u})},sortingFn:(i,u,s)=>{const o=i.getValue(s),f=u.getValue(s);return o.localeCompare(f)}}];function sC(){const[n,i]=Yo(),u=n.get("branchFilter")||"main",[s,o]=E.useState(u),[f,d]=E.useState(""),[h,m]=E.useState([]),[p,v]=E.useState(0),[C,R]=E.useState(null),S=ko(),{architecture:x,testName:w}=qo(),O=x?decodeURIComponent(x):"",z=w?decodeURIComponent(w):"",U=O+"/"+z,G=E.useRef(Hu);E.useEffect(()=>(G.current=Hu,()=>{G.current=wm}),[]),E.useEffect(()=>{o(u)},[u]);const K=se=>{o(se);const ee=new URLSearchParams(n);ee.set("branchFilter",se),i(ee,{replace:!0})};E.useEffect(()=>{v(0),gm(s,S,(se,ee)=>{v(se),R(ee)},()=>G.current).then(se=>{m(zS(se,U))})},[U,s,S]);const[$,Y]=E.useState(aC),Z=E.useMemo(()=>uC(U),[U]),ue=E.useMemo(()=>oC(h,f),[h,f]);return _.jsxs("div",{className:"common-page-display",children:[_.jsx("div",{className:"common-page-header",children:_.jsx(rC,{architecture:O,testNameRemainder:z,fullTestName:U,branchFilter:s,setBranchFilter:K,searchFilter:f,setSearchFilter:d,resultCount:ue.length,fetchedCount:p,totalToFetch:C})}),_.jsx(ri,{data:ue,columns:Z,sorting:$,columnWidthMap:iC,onSortingChange:Y})]})}function rC({architecture:n,testNameRemainder:i,fullTestName:u,branchFilter:s,setBranchFilter:o,searchFilter:f,setSearchFilter:d,resultCount:h,fetchedCount:m,totalToFetch:p}){const v=encodeURIComponent(n),C=encodeURIComponent(i);return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"common-header-left",style:{minWidth:0,flex:1,display:"flex"},children:[_.jsxs("div",{className:"common-header-title",style:{minWidth:0},children:[_.jsx(si,{}),_.jsx(xt,{to:"/tests",className:"common-header-path",children:"Tests"}),_.jsx("span",{children:"/"}),_.jsx(xt,{to:`/tests/${v}/${C}`,className:"common-header-path-long",title:u,children:i}),n&&_.jsx("div",{className:"common-sub-header",children:n})]}),_.jsx("div",{className:"common-header-filter-buttons",children:_.jsx("button",{className:`common-header-filter-btn ${s==="main"?"active":""}`,onClick:()=>o("main"),children:"main"})}),p===null&&_.jsxs("div",{className:"header-loading-indicator",children:[_.jsx("div",{className:"header-loading-spinner"}),_.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]}),m!==p&&p!==null&&_.jsxs("div",{className:"header-loading-indicator",children:[_.jsx("div",{className:"header-loading-spinner"}),_.jsxs("div",{className:"header-loading-text",children:["Analysed ",m,"/",p]})]})]}),_.jsxs("div",{className:"common-header-right",children:[_.jsx(na,{value:f,onChange:d}),_.jsxs("span",{className:"common-result-count",children:[h," tests"]})]})]})}function oC(n,i){const u=i.trim().toLowerCase().split(/\s+/).filter(Boolean);return u.length===0?n:n.filter(s=>{const o=`${s.runNumber} ${s.status}`.toLowerCase();return u.every(f=>o.includes(f))})}const cC=[{id:"relative",desc:!1}],fC={relative:110,severity:80,source:100,screenshot:100};function dC(n){return[{accessorKey:"relative",header:"Timestamp",cell:i=>_.jsx("span",{title:i.row.original.timestamp,children:i.getValue()}),enableSorting:!0},{accessorKey:"severity",header:"Severity",enableSorting:!1},{accessorKey:"source",header:"Source",enableSorting:!1},{id:"message",accessorFn:i=>i.message,header:"Message",cell:i=>_.jsx("div",{dangerouslySetInnerHTML:{__html:i.row.original.message}}),enableSorting:!1},{id:"screenshot",header:"Screenshot",cell:i=>{const u=i.row.original.screenshot;return u?_.jsx("img",{src:u,alt:"Screenshot",style:{maxWidth:"100px",maxHeight:"50px",cursor:"pointer",objectFit:"contain"},onClick:s=>{s.stopPropagation(),n(u)}}):""},enableSorting:!1}]}function hC(n){let i=0;function u(){for(;/\s/.test(n[i]);)i++}function s(){u();const m=/^(.+?):\s/.exec(n.slice(i));if(!m)throw new Error(`Invalid key at position ${i}: '${n.slice(i,i+10)}'`);return i+=m[0].length,m[1]}function o(){i++;let m="";for(;i<n.length&&n[i]!=='"';)n[i]==="\\"&&(m+=n[i++]),m+=n[i++];if(n[i]!=='"')throw new Error("Unterminated string");return i++,m}function f(){if(u(),n[i]==="{")return d();if(n[i]==='"')return{type:"string",value:o()};if(n[i]==="<"){const p=i;for(;i<n.length&&n[i]!==">";)i++;return i++,{type:"bytes",value:n.slice(p,i)}}if(n[i]==="_")return i++,{type:"unevaluated"};if(n[i]==="t"){if(n.slice(i,i+4)!=="true")throw new Error(`Expected 'true' at ${i}`);return i+=4,{type:"boolean",value:!0}}if(n[i]==="f"){if(n.slice(i,i+5)!=="false")throw new Error(`Expected 'false' at ${i}`);return i+=5,{type:"boolean",value:!1}}if(n[i]==="e"){if(n.slice(i,i+7)!=="error (")throw new Error(`Expected 'error (' at ${i}`);i+=7;let p=1;const v=i;for(;i<n.length&&p>0;)n[i]==="("?p++:n[i]===")"&&p--,i++;if(n[i-1]!==")")throw new Error("Unterminated error");return{type:"error",value:n.slice(v,i-1)}}const m=/^[+-]?((0x[0-9a-fA-F]+)|(0b[01]+)|([0-9]+(\.[0-9]*)?))/.exec(n.slice(i));if(m)return i+=m[0].length,{type:"number",value:m[0]};throw new Error(`Unexpected token at ${i}: '${n.slice(i,i+10)}'`)}function d(){if(n[i]!=="{")throw new Error(`Expected '{' at ${i}`);i++,u();const m=[];for(;i<n.length&&n[i]!=="}";){const p=s();u();const v=f();if(m.push({key:p,value:v}),u(),n[i]===",")i++,u();else if(n[i]!=="}")throw new Error(`Expected ',' or '}' at ${i}`)}if(n[i]!=="}")throw new Error(`Unterminated object at ${i}`);return i++,{type:"object",children:m}}u();const h=d();if(u(),i<n.length)throw new Error(`Trailing content at ${i}`);return h}async function gC(n){const i=await fetch(n);if(!i.ok)throw new Error(`HTTP ${i.status}`);const u=await i.text();return hC(u)}const mC=({fileUrl:n,onClose:i,rawMode:u=!1})=>{const[s,o]=E.useState(null),[f,d]=E.useState(null),[h,m]=E.useState(""),[p,v]=E.useState(!1),C=E.useRef(null),R=E.useRef(""),S=E.useRef([]),[x,w]=E.useState(""),O=E.useRef(new Set),z=E.useRef(""),U=E.useRef(!1),G=(()=>{try{return new URL(n).pathname.split("/").filter(Boolean).slice(-1)[0]||n}catch{return n}})();E.useEffect(()=>{o(null),u?fetch(n).then($=>{if(!$.ok)throw new Error(`Failed to fetch "${n}": ${$.status} ${$.statusText}. Please check the file path or network connection.`);return $.text()}).then($=>w($)).catch($=>o($.message||String($))):gC(n).then($=>{d($)}).catch($=>{o($.message||String($))})},[]),E.useEffect(()=>{const $=h.trim(),Y=z.current.trim();Y===""&&$!==""?(O.current.clear(),S.current.forEach(Z=>{Z.isExpanded&&Z.isExpanded()&&Z.path&&O.current.add(Z.path)})):Y!==""&&$===""&&(U.current=!0),z.current=h},[h]),E.useEffect(()=>{u?vC(C,x,h):yC(f,s,h,C,R,S,O,U,v)},[f,s,h,u,x]),E.useEffect(()=>{if(u||!C.current)return;const $=SC(C,R);return C.current.addEventListener("click",$),()=>{C.current?.removeEventListener("click",$)}},[s,u]),E.useEffect(()=>{if(u)return;const $=Y=>{if((Y.ctrlKey||Y.metaKey)&&Y.key.toLowerCase()==="c"){const P=window.getSelection();if(P&&P.toString().length>0)return;const ie=R.current;if(ie&&f){const ze=xC(f,ie);if(ze){const ye=ie.split(".").slice(-1)[0],Ye=wC(ye,ze);(async()=>{try{await navigator.clipboard.writeText(Ye)}catch{const Q=document.createElement("textarea");Q.value=Ye,Q.style.position="fixed",Q.style.left="-1000px",document.body.appendChild(Q),Q.select();try{document.execCommand("copy")}catch{}document.body.removeChild(Q)}})(),Y.preventDefault(),Y.stopPropagation();return}}}if(Y.altKey||Y.ctrlKey||Y.metaKey)return;const Z=Y.target;if(Z){const P=Z.tagName;if(P==="INPUT"||P==="TEXTAREA"||Z.isContentEditable)return}if(Y.key==="ArrowRight"||Y.key==="ArrowLeft"){const P=R.current;if(!P)return;const ie=S.current.find(L=>L.path===P);if(!ie)return;const ze=Y.key==="ArrowRight";if(ze&&!ie.isExpanded())ie.setExpanded(!0);else if(!ze&&ie.isExpanded())ie.setExpanded(!1);else return;const ye=S.current.length,Ye=S.current.reduce((L,Q)=>L+(Q.isExpanded&&Q.isExpanded()?1:0),0);v(ye>0&&Ye===ye),Y.preventDefault(),Y.stopPropagation();return}if(Y.key==="ArrowUp"||Y.key==="ArrowDown"){if(!C.current)return;const P=Array.from(C.current.querySelectorAll(".tree-node")).filter(ye=>ye.offsetParent!==null);if(!P.length)return;let ie=P.findIndex(ye=>ye.getAttribute("data-path")===R.current);ie===-1&&(ie=Y.key==="ArrowDown"?-1:P.length);const ze=Y.key==="ArrowDown"?Math.min(ie+1,P.length-1):Math.max(ie-1,0);if(ze!==ie){if(R.current){const Ye=C.current.querySelector(".tree-node.selected");Ye&&Ye.classList.remove("selected")}const ye=P[ze];ye.classList.add("selected"),R.current=ye.getAttribute("data-path")||"",ye.scrollIntoView({block:"nearest"}),Y.preventDefault(),Y.stopPropagation()}return}if(Y.key!=="+"&&Y.key!=="="&&Y.key!=="-")return;const ue=R.current;if(!ue)return;const se=Y.key==="+"||Y.key==="=";let ee=0;if(S.current.forEach(P=>{P.path&&(P.path===ue||P.path.startsWith(ue+"."))&&(P.setExpanded(se),ee++)}),ee>0){const P=S.current.length,ie=S.current.reduce((ze,ye)=>ze+(ye.isExpanded&&ye.isExpanded()?1:0),0);v(P>0&&ie===P),Y.preventDefault(),Y.stopPropagation()}};return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[u,f]);const K=()=>{const $=!p;v($),S.current.forEach(Y=>{Y.setExpanded($)})};return _.jsx("div",{className:"inspect-overlay",onClick:$=>{$.target===$.currentTarget&&i()},children:_.jsxs("div",{className:"inspect-container",children:[_.jsxs("div",{className:"inspect-filter-bar",children:[_.jsxs("div",{className:"inspect-filter-left",children:[_.jsx("button",{type:"button",className:"inspect-close",onClick:i,"aria-label":"Close inspect view",title:"Close",children:"×"}),_.jsx("div",{className:"inspect-test-name",title:G,children:G})]}),_.jsxs("div",{className:"inspect-search-controls",children:[!u&&_.jsx("button",{className:"inspect-toggle-all",onClick:K,title:p?"Collapse all":"Expand all",children:p?"><":"<>"}),_.jsx(na,{value:h,onChange:m,usePersistentSearching:!1})]})]}),_.jsx("div",{className:"inspect-scroll",ref:C})]})})};function pC(n){switch(n.type){case"string":case"boolean":case"number":case"bytes":return String(n.value);case"unevaluated":return"⏳";case"error":return`❌ ${n.value}`}}function Zt(n,i,...u){const s=document.createElement(n);for(const[o,f]of Object.entries(i))o==="class"?s.className=f:o==="style"?Object.assign(s.style,f):s.setAttribute(o,f);for(const o of u)typeof o=="string"?s.appendChild(document.createTextNode(o)):s.appendChild(o);return s}function Lu(n,i){if(!i)return n;const u=i.trim().split(/\s+/).filter(m=>m.length>0);if(u.length===0)return n;const s=n.toLowerCase(),o=[];for(const m of u){const p=m.toLowerCase();let v=0;for(;;){const C=s.indexOf(p,v);if(C===-1)break;o.push({start:C,end:C+p.length,term:m}),v=C+1}}if(o.length===0)return n;o.sort((m,p)=>m.start-p.start);const f=[];for(const m of o)f.length===0||m.start>f[f.length-1].end?f.push({start:m.start,end:m.end}):f[f.length-1].end=Math.max(f[f.length-1].end,m.end);const d=Zt("span",{});let h=0;for(const m of f)m.start>h&&d.appendChild(document.createTextNode(n.slice(h,m.start))),d.appendChild(Zt("span",{class:"highlight"},n.slice(m.start,m.end))),h=m.end;return h<n.length&&d.appendChild(document.createTextNode(n.slice(h))),d}function vC(n,i,u){if(!n.current)return;const s=document.createElement("div");s.style.fontFamily="monospace";const f=u.trim().split(/\s+/).filter(h=>h.length>0).map(h=>h.toLowerCase()),d=i?i.split(/\r?\n/):[];for(let h=0;h<d.length;h++){const m=d[h];if(f.length>0&&!f.every(R=>m.toLowerCase().includes(R)))continue;const p=document.createElement("div");p.style.whiteSpace="pre";const v=Lu(m,u);typeof v=="string"?p.textContent=v:p.appendChild(v),s.appendChild(p)}if(!s.childElementCount){const h=document.createElement("div");h.textContent="No matches",s.appendChild(h)}n.current.replaceChildren(s)}function yC(n,i,u,s,o,f,d,h,m){if(!s.current||!n||i)return;f.current=[];const p=u.trim().length>0;if(EC(n,u,s,o,f),p){f.current.forEach(v=>{v.setExpanded(!0)}),m(!0);return}if(h.current){f.current.forEach(R=>{R.path&&d.current.has(R.path)&&R.setExpanded(!0)});const v=f.current.length,C=f.current.reduce((R,S)=>R+(S.isExpanded&&S.isExpanded()?1:0),0);m(v>0&&C===v),h.current=!1}else m(!1)}function SC(n,i){return u=>{const o=u.target.closest(".tree-node");if(o){const f=o.getAttribute("data-path");if(f&&n.current){if(i.current){const d=n.current.querySelector(`.tree-node[data-path="${CSS.escape(i.current)}"]`);d&&d.classList.remove("selected")}i.current=f,o.classList.add("selected")}}}}function CC(n,i){let u=!1;return{toggle:n,subtree:i,setExpanded:s=>{u=s,n.textContent=u?"[-]":"[+]",i.style.display=u?"":"none"},isExpanded:()=>u,path:void 0}}function RC(n,i,u,s,o,f,d,h){const m=Zt("span",{class:"tree-expander",style:{cursor:"pointer"}},"[+]"),p=Zt("div",{class:"tree-node",style:{marginLeft:u},"data-path":s},m,Zt("span",{class:"tree-key"},Lu(n,i))),v=CC(m,o);return v.path=s,h.current.push(v),v.setExpanded(!1),m.addEventListener("click",C=>{C.stopPropagation();const R=m.textContent==="[-]";if(v.setExpanded(!R),f.current&&d.current){const S=f.current.querySelector(`.tree-node[data-path="${CSS.escape(d.current)}"]`);S&&S.classList.remove("selected")}d.current=s,p.classList.add("selected")}),{header:p,toggleControl:v}}function bC(n,i,u,s,o){return Zt("div",{class:"tree-node",style:{marginLeft:s},"data-path":o},Zt("span",{class:"tree-key"},Lu(`${n}: `,u)),Zt("span",{},Lu(i,u)))}function Tm(n,i,u,s,o,f,d,h){if(n.type!=="object")return null;const m=Zt("div",{class:"tree-children"}),p=i?i.split(/\s+/).filter(v=>v.length>0):[];for(const v of n.children){const C=v.key,R=v.value,S=C.toLowerCase(),x=R.type==="object"?"":pC(R),w=x.toLowerCase(),O=`${S} ${w}`,z=p.length===0||p.every(K=>O.includes(K)),U=`${o*1.2}em`,G=u?`${u}.${C}`:C;if(R.type==="object"){const K=Tm(R,i,G,z||s,o+1,f,d,h);if(K){const{header:$}=RC(C,i,U,G,K,f,d,h);m.append($,K)}}else(p.length===0||z||s)&&m.append(bC(C,x,i,U,G))}return m.children.length>0?m:null}function EC(n,i,u,s,o){if(!u.current||!n)return;const f=i.trim().toLowerCase(),d=Tm(n,f,"",!1,0,u,s,o);if(u.current.replaceChildren(d||Zt("div",{},"No matches")),s.current){const h=u.current.querySelector(`.tree-node[data-path="${CSS.escape(s.current)}"]`);h&&(h.classList.add("selected"),requestAnimationFrame(()=>{h&&h.scrollIntoView({block:"center"})}))}}function xC(n,i){if(i==="")return n;const u=i.split(".");let s=n;for(let o=0;o<u.length;o++){const f=u[o];if(s.type!=="object")return null;const h=s.children.find(m=>m.key===f);if(!h)return null;s=h.value}return s}function wC(n,i){const u=[];function o(d,h,m){let p;switch(h.type){case"string":p=JSON.stringify(h.value);break;case"bytes":p=JSON.stringify(h.value);break;case"boolean":p=String(h.value);break;case"number":p=h.value;break;case"error":p=`ERROR(${JSON.stringify(h.value)})`;break;case"unevaluated":p="(unevaluated)";break}u.push(`${"  ".repeat(m)}${d}: ${p}`)}function f(d,h,m){if(h.type==="object"){u.push(`${"  ".repeat(m)}${d} {`);for(const p of h.children)f(p.key,p.value,m+1);u.push(`${"  ".repeat(m)}}`)}else o(d,h,m)}return f(n,i,0),u.join(`
`)}function TC({runId:n,architecture:i,testNameRemainder:u,fullTestName:s,searchFilter:o,setSearchFilter:f,searchInputRef:d,searchActive:h=!0}){const m=encodeURIComponent(i),p=encodeURIComponent(u);return _.jsxs(_.Fragment,{children:[_.jsx("div",{className:"common-header-left",style:{minWidth:0,flex:1,display:"flex"},children:_.jsxs("div",{className:"common-header-title",style:{minWidth:0},children:[_.jsx(si,{}),_.jsx(xt,{to:`/runs/${n}`,className:"common-header-path",children:n}),_.jsx("span",{style:{flexShrink:0},children:"/"}),_.jsx(xt,{to:`/runs/${n}/${m}/${p}`,className:"common-header-path-long",title:s,children:u}),i&&_.jsx("div",{className:"common-sub-header",children:i})]})}),_.jsx("div",{className:"runs-header-right-section",children:_.jsx(na,{value:o,onChange:f,inputRef:d,active:h})})]})}function _C(){const n=$t(),i=gl(),[u,s]=E.useState(""),[o,f]=E.useState(null),[d,h]=E.useState(null),[m,p]=E.useState(null),[v,C]=E.useState(cC),R=E.useRef(null),S=E.useRef(null),x=E.useRef(null),w=E.useRef(!1),[O,z]=E.useState(null);let{runId:U,architecture:G,testName:K}=qo();U=U?decodeURIComponent(U):"",G=G?decodeURIComponent(G):"",K=K?decodeURIComponent(K):"";const $=`${G}/${K}`,{data:Y,isSuccess:Z}=Io({queryKey:["petriLog",U,G,K],queryFn:()=>hm(U,G,K),staleTime:1/0,gcTime:1/0}),ue=E.useMemo(()=>dC(p),[]),se=E.useMemo(()=>OC(Y,u),[Y,u]);return E.useEffect(()=>{const ee=AC(o,Y);return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[o,Y]),E.useEffect(()=>{w.current=!1;const P=new URLSearchParams(n.search).get("log");if(P==null){x.current=null,w.current=!0;return}const ie=parseInt(P,10);if(isNaN(ie)){x.current=null,w.current=!0;return}x.current=ie},[U,$]),E.useEffect(()=>{if(w.current)return;const ee=x.current;if(ee==null||!Y||!Y.length)return;if(!Y.some(ye=>ye.index===ee)){w.current=!0;return}const ie=`log-${ee}`;f(ie);const ze=se.findIndex(ye=>ye.index===ee);ze>=0&&h(ze),w.current=!0},[Y,se]),E.useEffect(()=>{if(d==null)return;const ee=requestAnimationFrame(()=>h(null));return()=>cancelAnimationFrame(ee)},[d]),E.useEffect(()=>{if(!o)return;const ee=parseInt(o.replace("log-",""),10);if(isNaN(ee))return;const P=se.findIndex(ie=>ie.index===ee);P>=0&&h(P)},[u]),E.useEffect(()=>{const ee=P=>{const ie=P.target;if(!ie)return;const ze=ie.closest('a[data-inspect="true"]');if(ze){P.preventDefault(),z({url:ze.href,raw:!1});return}const ye=ie.closest('a[data-inspect-raw="true"]');if(ye){P.preventDefault(),z({url:ye.href,raw:!0});return}};return document.addEventListener("click",ee),()=>document.removeEventListener("click",ee)},[]),_.jsxs("div",{className:"common-page-display",children:[_.jsx("div",{className:"common-page-header",children:_.jsx(TC,{runId:U||"unknown",architecture:G,testNameRemainder:K,fullTestName:$,searchFilter:u,setSearchFilter:s,searchInputRef:R,searchActive:O==null})}),_.jsx("div",{ref:S,style:{fontFamily:"monospace",fontSize:"14px",position:"relative"},children:se.length===0&&Z?_.jsx("div",{className:"common-no-data",children:"No log entries found"}):_.jsx(ri,{data:se,columns:ue,sorting:v,onSortingChange:C,columnWidthMap:fC,estimatedRowHeight:50,getRowClassName:ee=>{const P=`log-${ee.original.index}`,ie=o===P;return`${`severity-${ee.original.severity}`} ${ie?"selected":""}`},onRowClick:(ee,P)=>{const ie=`log-${ee.original.index}`;MC(ee.original.index,ie,P,o,f,n,i)},scrollToIndex:d})}),m&&_.jsx("div",{className:"logviewer-image-div",onClick:()=>p(null),children:_.jsx("img",{src:m,alt:"screenshot",className:"logviewer-image-content"})}),O&&_.jsx(mC,{fileUrl:O.url,rawMode:O.raw,onClose:()=>z(null)})]})}function MC(n,i,u,s,o,f,d){if(u.target.closest("a"))return;const h=window.getSelection(),m=!!h&&!h.isCollapsed&&h.toString().trim().length>0,p=u.currentTarget;let v=!1;if(m&&p&&h&&h.rangeCount>0){const S=h.getRangeAt(0).commonAncestorContainer;v=p.contains(S.nodeType===1?S:S.parentElement);return}const C=new URLSearchParams(f.search);if(s===i&&v){C.get("log")||(C.set("log",n.toString()),d(`${f.pathname}?${C.toString()}`,{replace:!0}));return}if(s===i){o(null),C.delete("log"),d(C.toString()?`${f.pathname}?${C.toString()}`:f.pathname,{replace:!0});return}o(i),C.set("log",n.toString()),d(`${f.pathname}?${C.toString()}`,{replace:!0})}function AC(n,i){return u=>{if(!((u.key==="c"||u.key==="C")&&(u.metaKey||u.ctrlKey)))return;const o=document.activeElement;if(o&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable))return;const f=window.getSelection();if(f&&!f.isCollapsed&&f.toString().trim().length>0||!n)return;const d=parseInt(n.replace("log-",""),10);if(isNaN(d))return;const h=i?.find(v=>v.index===d);if(!h)return;if(u.shiftKey){u.preventDefault();const{origin:v,pathname:C,hash:R}=window.location,S=R.split("?"),x=S[0]||"#/",w=S[1]?new URLSearchParams(S[1]):new URLSearchParams;w.set("log",String(h.index));const O=`${v}${C}${x}?${w.toString()}`;navigator.clipboard?.writeText(O).catch(()=>{try{const z=document.createElement("textarea");z.value=O,z.style.position="fixed",z.style.opacity="0",document.body.appendChild(z),z.select(),document.execCommand("copy"),document.body.removeChild(z)}catch{}});return}u.preventDefault();const m=v=>{const C=document.createElement("textarea");return C.innerHTML=v,C.value};let p=`timestamp: ${h.timestamp}
`;p+=`relative: ${h.relative}
`,p+=`severity: ${h.severity}
`,p+=`source: ${m(h.source)}
`,p+=`message: ${m(h.message.trim())}`,h.screenshot&&(p+=`
screenshot: ${h.screenshot}`),navigator.clipboard?.writeText(p).catch(()=>{try{const v=document.createElement("textarea");v.value=p,v.style.position="fixed",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),document.body.removeChild(v)}catch{}})}}function OC(n,i){if(!n)return[];if(!i.trim())return n;let u=i;(i.match(/"/g)||[]).length%2!==0&&(u+='"');const o=/"([^"]+)"|(\S+)/g,f=[];let d;for(;d=o.exec(u);)f.push(d[1]||d[2]);return n.filter(h=>f.every(m=>{const[p,...v]=m.split(":"),C=v.join(":").toLowerCase();return p==="source"?h.source.toLowerCase().includes(C):p==="severity"?h.severity.toLowerCase().includes(C):p==="message"?h.message.toLowerCase().includes(C):h.source.toLowerCase().includes(m.toLowerCase())||h.severity.toLowerCase().includes(m.toLowerCase())||h.message.toLowerCase().includes(m.toLowerCase())}))}const _m=new tS;TS(_m);sy.createRoot(document.getElementById("root")).render(_.jsx(ey.StrictMode,{children:_.jsx(b0,{children:_.jsx(nS,{client:_m,children:_.jsx(zC,{})})})}));function zC(){return _.jsxs(Py,{children:[_.jsx(cl,{path:"/",element:_.jsx(ky,{to:"/runs",replace:!0})}),_.jsx(cl,{path:"runs",element:_.jsx($1,{})}),_.jsx(cl,{path:"runs/:runId",element:_.jsx(J1,{})}),_.jsx(cl,{path:"tests",element:_.jsx(tC,{})}),_.jsx(cl,{path:"tests/:architecture/:testName",element:_.jsx(sC,{})}),_.jsx(cl,{path:"runs/:runId/:architecture/:testName",element:_.jsx(_C,{})})]})}
