var I0=Object.defineProperty;var jm=c=>{throw TypeError(c)};var P0=(c,i,s)=>i in c?I0(c,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[i]=s;var Bf=(c,i,s)=>P0(c,typeof i!="symbol"?i+"":i,s),Yf=(c,i,s)=>i.has(c)||jm("Cannot "+s);var m=(c,i,s)=>(Yf(c,i,"read from private field"),s?s.call(c):i.get(c)),V=(c,i,s)=>i.has(c)?jm("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(c):i.set(c,s),q=(c,i,s,r)=>(Yf(c,i,"write to private field"),r?r.call(c,s):i.set(c,s),s),it=(c,i,s)=>(Yf(c,i,"access private method"),s);var rc=(c,i,s,r)=>({set _(y){q(c,i,y,s)},get _(){return m(c,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const y of document.querySelectorAll('link[rel="modulepreload"]'))r(y);new MutationObserver(y=>{for(const T of y)if(T.type==="childList")for(const D of T.addedNodes)D.tagName==="LINK"&&D.rel==="modulepreload"&&r(D)}).observe(document,{childList:!0,subtree:!0});function s(y){const T={};return y.integrity&&(T.integrity=y.integrity),y.referrerPolicy&&(T.referrerPolicy=y.referrerPolicy),y.crossOrigin==="use-credentials"?T.credentials="include":y.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function r(y){if(y.ep)return;y.ep=!0;const T=s(y);fetch(y.href,T)}})();var Gf={exports:{}},Cu={};/**
 * @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 Am;function tg(){if(Am)return Cu;Am=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,y,T){var D=null;if(T!==void 0&&(D=""+T),y.key!==void 0&&(D=""+y.key),"key"in y){T={};for(var R in y)R!=="key"&&(T[R]=y[R])}else T=y;return y=T.ref,{$$typeof:c,type:r,key:D,ref:y!==void 0?y:null,props:T}}return Cu.Fragment=i,Cu.jsx=s,Cu.jsxs=s,Cu}var Om;function eg(){return Om||(Om=1,Gf.exports=tg()),Gf.exports}var h=eg(),Xf={exports:{}},I={};/**
 * @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 zm;function lg(){if(zm)return I;zm=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),D=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),Z=Symbol.iterator;function K(g){return g===null||typeof g!="object"?null:(g=Z&&g[Z]||g["@@iterator"],typeof g=="function"?g:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,P={};function tt(g,M,Q){this.props=g,this.context=M,this.refs=P,this.updater=Q||F}tt.prototype.isReactComponent={},tt.prototype.setState=function(g,M){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,M,"setState")},tt.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function St(){}St.prototype=tt.prototype;function et(g,M,Q){this.props=g,this.context=M,this.refs=P,this.updater=Q||F}var X=et.prototype=new St;X.constructor=et,Y(X,tt.prototype),X.isPureReactComponent=!0;var pt=Array.isArray;function Et(){}var W={H:null,A:null,T:null,S:null},nt=Object.prototype.hasOwnProperty;function Tt(g,M,Q){var G=Q.ref;return{$$typeof:c,type:g,key:M,ref:G!==void 0?G:null,props:Q}}function Ut(g,M){return Tt(g.type,M,g.props)}function Vt(g){return typeof g=="object"&&g!==null&&g.$$typeof===c}function wt(g){var M={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(Q){return M[Q]})}var Je=/\/+/g;function re(g,M){return typeof g=="object"&&g!==null&&g.key!=null?wt(""+g.key):M.toString(36)}function ae(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Et,Et):(g.status="pending",g.then(function(M){g.status==="pending"&&(g.status="fulfilled",g.value=M)},function(M){g.status==="pending"&&(g.status="rejected",g.reason=M)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function z(g,M,Q,G,lt){var ct=typeof g;(ct==="undefined"||ct==="boolean")&&(g=null);var gt=!1;if(g===null)gt=!0;else switch(ct){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(g.$$typeof){case c:case i:gt=!0;break;case U:return gt=g._init,z(gt(g._payload),M,Q,G,lt)}}if(gt)return lt=lt(g),gt=G===""?"."+re(g,0):G,pt(lt)?(Q="",gt!=null&&(Q=gt.replace(Je,"$&/")+"/"),z(lt,M,Q,"",function(Yn){return Yn})):lt!=null&&(Vt(lt)&&(lt=Ut(lt,Q+(lt.key==null||g&&g.key===lt.key?"":(""+lt.key).replace(Je,"$&/")+"/")+gt)),M.push(lt)),1;gt=0;var ie=G===""?".":G+":";if(pt(g))for(var Bt=0;Bt<g.length;Bt++)G=g[Bt],ct=ie+re(G,Bt),gt+=z(G,M,Q,ct,lt);else if(Bt=K(g),typeof Bt=="function")for(g=Bt.call(g),Bt=0;!(G=g.next()).done;)G=G.value,ct=ie+re(G,Bt++),gt+=z(G,M,Q,ct,lt);else if(ct==="object"){if(typeof g.then=="function")return z(ae(g),M,Q,G,lt);throw M=String(g),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return gt}function H(g,M,Q){if(g==null)return g;var G=[],lt=0;return z(g,G,"","",function(ct){return M.call(Q,ct,lt++)}),G}function k(g){if(g._status===-1){var M=g._result;M=M(),M.then(function(Q){(g._status===0||g._status===-1)&&(g._status=1,g._result=Q)},function(Q){(g._status===0||g._status===-1)&&(g._status=2,g._result=Q)}),g._status===-1&&(g._status=0,g._result=M)}if(g._status===1)return g._result.default;throw g._result}var Ot=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},Mt={map:H,forEach:function(g,M,Q){H(g,function(){M.apply(this,arguments)},Q)},count:function(g){var M=0;return H(g,function(){M++}),M},toArray:function(g){return H(g,function(M){return M})||[]},only:function(g){if(!Vt(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return I.Activity=C,I.Children=Mt,I.Component=tt,I.Fragment=s,I.Profiler=y,I.PureComponent=et,I.StrictMode=r,I.Suspense=N,I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,I.__COMPILER_RUNTIME={__proto__:null,c:function(g){return W.H.useMemoCache(g)}},I.cache=function(g){return function(){return g.apply(null,arguments)}},I.cacheSignal=function(){return null},I.cloneElement=function(g,M,Q){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var G=Y({},g.props),lt=g.key;if(M!=null)for(ct in M.key!==void 0&&(lt=""+M.key),M)!nt.call(M,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&M.ref===void 0||(G[ct]=M[ct]);var ct=arguments.length-2;if(ct===1)G.children=Q;else if(1<ct){for(var gt=Array(ct),ie=0;ie<ct;ie++)gt[ie]=arguments[ie+2];G.children=gt}return Tt(g.type,lt,G)},I.createContext=function(g){return g={$$typeof:D,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:T,_context:g},g},I.createElement=function(g,M,Q){var G,lt={},ct=null;if(M!=null)for(G in M.key!==void 0&&(ct=""+M.key),M)nt.call(M,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(lt[G]=M[G]);var gt=arguments.length-2;if(gt===1)lt.children=Q;else if(1<gt){for(var ie=Array(gt),Bt=0;Bt<gt;Bt++)ie[Bt]=arguments[Bt+2];lt.children=ie}if(g&&g.defaultProps)for(G in gt=g.defaultProps,gt)lt[G]===void 0&&(lt[G]=gt[G]);return Tt(g,ct,lt)},I.createRef=function(){return{current:null}},I.forwardRef=function(g){return{$$typeof:R,render:g}},I.isValidElement=Vt,I.lazy=function(g){return{$$typeof:U,_payload:{_status:-1,_result:g},_init:k}},I.memo=function(g,M){return{$$typeof:A,type:g,compare:M===void 0?null:M}},I.startTransition=function(g){var M=W.T,Q={};W.T=Q;try{var G=g(),lt=W.S;lt!==null&&lt(Q,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(Et,Ot)}catch(ct){Ot(ct)}finally{M!==null&&Q.types!==null&&(M.types=Q.types),W.T=M}},I.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},I.use=function(g){return W.H.use(g)},I.useActionState=function(g,M,Q){return W.H.useActionState(g,M,Q)},I.useCallback=function(g,M){return W.H.useCallback(g,M)},I.useContext=function(g){return W.H.useContext(g)},I.useDebugValue=function(){},I.useDeferredValue=function(g,M){return W.H.useDeferredValue(g,M)},I.useEffect=function(g,M){return W.H.useEffect(g,M)},I.useEffectEvent=function(g){return W.H.useEffectEvent(g)},I.useId=function(){return W.H.useId()},I.useImperativeHandle=function(g,M,Q){return W.H.useImperativeHandle(g,M,Q)},I.useInsertionEffect=function(g,M){return W.H.useInsertionEffect(g,M)},I.useLayoutEffect=function(g,M){return W.H.useLayoutEffect(g,M)},I.useMemo=function(g,M){return W.H.useMemo(g,M)},I.useOptimistic=function(g,M){return W.H.useOptimistic(g,M)},I.useReducer=function(g,M,Q){return W.H.useReducer(g,M,Q)},I.useRef=function(g){return W.H.useRef(g)},I.useState=function(g){return W.H.useState(g)},I.useSyncExternalStore=function(g,M,Q){return W.H.useSyncExternalStore(g,M,Q)},I.useTransition=function(){return W.H.useTransition()},I.version="19.2.6",I}var _m;function or(){return _m||(_m=1,Xf.exports=lg()),Xf.exports}var $=or(),Lf={exports:{}},Ru={},Zf={exports:{}},Kf={};/**
 * @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 xm;function ag(){return xm||(xm=1,(function(c){function i(z,H){var k=z.length;z.push(H);t:for(;0<k;){var Ot=k-1>>>1,Mt=z[Ot];if(0<y(Mt,H))z[Ot]=H,z[k]=Mt,k=Ot;else break t}}function s(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var H=z[0],k=z.pop();if(k!==H){z[0]=k;t:for(var Ot=0,Mt=z.length,g=Mt>>>1;Ot<g;){var M=2*(Ot+1)-1,Q=z[M],G=M+1,lt=z[G];if(0>y(Q,k))G<Mt&&0>y(lt,Q)?(z[Ot]=lt,z[G]=k,Ot=G):(z[Ot]=Q,z[M]=k,Ot=M);else if(G<Mt&&0>y(lt,k))z[Ot]=lt,z[G]=k,Ot=G;else break t}}return H}function y(z,H){var k=z.sortIndex-H.sortIndex;return k!==0?k:z.id-H.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;c.unstable_now=function(){return T.now()}}else{var D=Date,R=D.now();c.unstable_now=function(){return D.now()-R}}var N=[],A=[],U=1,C=null,Z=3,K=!1,F=!1,Y=!1,P=!1,tt=typeof setTimeout=="function"?setTimeout:null,St=typeof clearTimeout=="function"?clearTimeout:null,et=typeof setImmediate<"u"?setImmediate:null;function X(z){for(var H=s(A);H!==null;){if(H.callback===null)r(A);else if(H.startTime<=z)r(A),H.sortIndex=H.expirationTime,i(N,H);else break;H=s(A)}}function pt(z){if(Y=!1,X(z),!F)if(s(N)!==null)F=!0,Et||(Et=!0,wt());else{var H=s(A);H!==null&&ae(pt,H.startTime-z)}}var Et=!1,W=-1,nt=5,Tt=-1;function Ut(){return P?!0:!(c.unstable_now()-Tt<nt)}function Vt(){if(P=!1,Et){var z=c.unstable_now();Tt=z;var H=!0;try{t:{F=!1,Y&&(Y=!1,St(W),W=-1),K=!0;var k=Z;try{e:{for(X(z),C=s(N);C!==null&&!(C.expirationTime>z&&Ut());){var Ot=C.callback;if(typeof Ot=="function"){C.callback=null,Z=C.priorityLevel;var Mt=Ot(C.expirationTime<=z);if(z=c.unstable_now(),typeof Mt=="function"){C.callback=Mt,X(z),H=!0;break e}C===s(N)&&r(N),X(z)}else r(N);C=s(N)}if(C!==null)H=!0;else{var g=s(A);g!==null&&ae(pt,g.startTime-z),H=!1}}break t}finally{C=null,Z=k,K=!1}H=void 0}}finally{H?wt():Et=!1}}}var wt;if(typeof et=="function")wt=function(){et(Vt)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,re=Je.port2;Je.port1.onmessage=Vt,wt=function(){re.postMessage(null)}}else wt=function(){tt(Vt,0)};function ae(z,H){W=tt(function(){z(c.unstable_now())},H)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(z){z.callback=null},c.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<z?Math.floor(1e3/z):5},c.unstable_getCurrentPriorityLevel=function(){return Z},c.unstable_next=function(z){switch(Z){case 1:case 2:case 3:var H=3;break;default:H=Z}var k=Z;Z=H;try{return z()}finally{Z=k}},c.unstable_requestPaint=function(){P=!0},c.unstable_runWithPriority=function(z,H){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var k=Z;Z=z;try{return H()}finally{Z=k}},c.unstable_scheduleCallback=function(z,H,k){var Ot=c.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?Ot+k:Ot):k=Ot,z){case 1:var Mt=-1;break;case 2:Mt=250;break;case 5:Mt=1073741823;break;case 4:Mt=1e4;break;default:Mt=5e3}return Mt=k+Mt,z={id:U++,callback:H,priorityLevel:z,startTime:k,expirationTime:Mt,sortIndex:-1},k>Ot?(z.sortIndex=k,i(A,z),s(N)===null&&z===s(A)&&(Y?(St(W),W=-1):Y=!0,ae(pt,k-Ot))):(z.sortIndex=Mt,i(N,z),F||K||(F=!0,Et||(Et=!0,wt()))),z},c.unstable_shouldYield=Ut,c.unstable_wrapCallback=function(z){var H=Z;return function(){var k=Z;Z=H;try{return z.apply(this,arguments)}finally{Z=k}}}})(Kf)),Kf}var Mm;function ng(){return Mm||(Mm=1,Zf.exports=ag()),Zf.exports}var Vf={exports:{}},ne={};/**
 * @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 Nm;function ug(){if(Nm)return ne;Nm=1;var c=or();function i(N){var A="https://react.dev/errors/"+N;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var U=2;U<arguments.length;U++)A+="&args[]="+encodeURIComponent(arguments[U])}return"Minified React error #"+N+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},y=Symbol.for("react.portal");function T(N,A,U){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y,key:C==null?null:""+C,children:N,containerInfo:A,implementation:U}}var D=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(N,A){if(N==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ne.createPortal=function(N,A){var U=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(i(299));return T(N,A,null,U)},ne.flushSync=function(N){var A=D.T,U=r.p;try{if(D.T=null,r.p=2,N)return N()}finally{D.T=A,r.p=U,r.d.f()}},ne.preconnect=function(N,A){typeof N=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,r.d.C(N,A))},ne.prefetchDNS=function(N){typeof N=="string"&&r.d.D(N)},ne.preinit=function(N,A){if(typeof N=="string"&&A&&typeof A.as=="string"){var U=A.as,C=R(U,A.crossOrigin),Z=typeof A.integrity=="string"?A.integrity:void 0,K=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;U==="style"?r.d.S(N,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:C,integrity:Z,fetchPriority:K}):U==="script"&&r.d.X(N,{crossOrigin:C,integrity:Z,fetchPriority:K,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},ne.preinitModule=function(N,A){if(typeof N=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var U=R(A.as,A.crossOrigin);r.d.M(N,{crossOrigin:U,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&r.d.M(N)},ne.preload=function(N,A){if(typeof N=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var U=A.as,C=R(U,A.crossOrigin);r.d.L(N,U,{crossOrigin:C,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},ne.preloadModule=function(N,A){if(typeof N=="string")if(A){var U=R(A.as,A.crossOrigin);r.d.m(N,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:U,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else r.d.m(N)},ne.requestFormReset=function(N){r.d.r(N)},ne.unstable_batchedUpdates=function(N,A){return N(A)},ne.useFormState=function(N,A,U){return D.H.useFormState(N,A,U)},ne.useFormStatus=function(){return D.H.useHostTransitionStatus()},ne.version="19.2.6",ne}var Dm;function ig(){if(Dm)return Vf.exports;Dm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),Vf.exports=ug(),Vf.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 Cm;function cg(){if(Cm)return Ru;Cm=1;var c=ng(),i=or(),s=ig();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function T(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function D(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function R(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function N(t){if(T(t)!==t)throw Error(r(188))}function A(t){var e=t.alternate;if(!e){if(e=T(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return N(n),t;if(u===a)return N(n),e;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var f=!1,o=n.child;o;){if(o===l){f=!0,l=n,a=u;break}if(o===a){f=!0,a=n,l=u;break}o=o.sibling}if(!f){for(o=u.child;o;){if(o===l){f=!0,l=u,a=n;break}if(o===a){f=!0,a=u,l=n;break}o=o.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function U(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=U(t),e!==null)return e;t=t.sibling}return null}var C=Object.assign,Z=Symbol.for("react.element"),K=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),St=Symbol.for("react.consumer"),et=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Tt=Symbol.for("react.activity"),Ut=Symbol.for("react.memo_cache_sentinel"),Vt=Symbol.iterator;function wt(t){return t===null||typeof t!="object"?null:(t=Vt&&t[Vt]||t["@@iterator"],typeof t=="function"?t:null)}var Je=Symbol.for("react.client.reference");function re(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Je?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case tt:return"Profiler";case P:return"StrictMode";case pt:return"Suspense";case Et:return"SuspenseList";case Tt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case F:return"Portal";case et:return t.displayName||"Context";case St:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case W:return e=t.displayName||null,e!==null?e:re(t.type)||"Memo";case nt:e=t._payload,t=t._init;try{return re(t(e))}catch{}}return null}var ae=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},Ot=[],Mt=-1;function g(t){return{current:t}}function M(t){0>Mt||(t.current=Ot[Mt],Ot[Mt]=null,Mt--)}function Q(t,e){Mt++,Ot[Mt]=t.current,t.current=e}var G=g(null),lt=g(null),ct=g(null),gt=g(null);function ie(t,e){switch(Q(ct,e),Q(lt,t),Q(G,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?wd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=wd(e),t=Jd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}M(G),Q(G,t)}function Bt(){M(G),M(lt),M(ct)}function Yn(t){t.memoizedState!==null&&Q(gt,t);var e=G.current,l=Jd(e,t.type);e!==l&&(Q(lt,t),Q(G,l))}function wu(t){lt.current===t&&(M(G),M(lt)),gt.current===t&&(M(gt),xu._currentValue=k)}var Sc,Er;function sa(t){if(Sc===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Sc=e&&e[1]||"",Er=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Sc+t+Er}var pc=!1;function Ec(t,e){if(!t||pc)return"";pc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(j){var E=j}Reflect.construct(t,[],x)}else{try{x.call()}catch(j){E=j}t.call(x.prototype)}}else{try{throw Error()}catch(j){E=j}(x=t())&&typeof x.catch=="function"&&x.catch(function(){})}}catch(j){if(j&&E&&typeof j.stack=="string")return[j.stack,E.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),f=u[0],o=u[1];if(f&&o){var d=f.split(`
`),p=o.split(`
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===p.length)for(a=d.length-1,n=p.length-1;1<=a&&0<=n&&d[a]!==p[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==p[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==p[n]){var O=`
`+d[a].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=a&&0<=n);break}}}finally{pc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?sa(l):""}function My(t,e){switch(t.tag){case 26:case 27:case 5:return sa(t.type);case 16:return sa("Lazy");case 13:return t.child!==e&&e!==null?sa("Suspense Fallback"):sa("Suspense");case 19:return sa("SuspenseList");case 0:case 15:return Ec(t.type,!1);case 11:return Ec(t.type.render,!1);case 1:return Ec(t.type,!0);case 31:return sa("Activity");default:return""}}function Tr(t){try{var e="",l=null;do e+=My(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Tc=Object.prototype.hasOwnProperty,jc=c.unstable_scheduleCallback,Ac=c.unstable_cancelCallback,Ny=c.unstable_shouldYield,Dy=c.unstable_requestPaint,pe=c.unstable_now,Cy=c.unstable_getCurrentPriorityLevel,jr=c.unstable_ImmediatePriority,Ar=c.unstable_UserBlockingPriority,Ju=c.unstable_NormalPriority,Ry=c.unstable_LowPriority,Or=c.unstable_IdlePriority,Uy=c.log,Hy=c.unstable_setDisableYieldValue,Gn=null,Ee=null;function zl(t){if(typeof Uy=="function"&&Hy(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(Gn,t)}catch{}}var Te=Math.clz32?Math.clz32:By,qy=Math.log,Qy=Math.LN2;function By(t){return t>>>=0,t===0?32:31-(qy(t)/Qy|0)|0}var ku=256,Fu=262144,$u=4194304;function fa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Wu(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=fa(a):(f&=o,f!==0?n=fa(f):l||(l=o&~t,l!==0&&(n=fa(l))))):(o=a&~u,o!==0?n=fa(o):f!==0?n=fa(f):l||(l=a&~t,l!==0&&(n=fa(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function Xn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Yy(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zr(){var t=$u;return $u<<=1,($u&62914560)===0&&($u=4194304),t}function Oc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ln(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Gy(t,e,l,a,n,u){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,d=t.expirationTimes,p=t.hiddenUpdates;for(l=f&~l;0<l;){var O=31-Te(l),x=1<<O;o[O]=0,d[O]=-1;var E=p[O];if(E!==null)for(p[O]=null,O=0;O<E.length;O++){var j=E[O];j!==null&&(j.lane&=-536870913)}l&=~x}a!==0&&_r(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function _r(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Te(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function xr(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Te(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function Mr(t,e){var l=e&-e;return l=(l&42)!==0?1:zc(l),(l&(t.suspendedLanes|e))!==0?0:l}function zc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function _c(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Nr(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:vm(t.type))}function Dr(t,e){var l=H.p;try{return H.p=t,e()}finally{H.p=l}}var _l=Math.random().toString(36).slice(2),It="__reactFiber$"+_l,oe="__reactProps$"+_l,Ba="__reactContainer$"+_l,xc="__reactEvents$"+_l,Xy="__reactListeners$"+_l,Ly="__reactHandles$"+_l,Cr="__reactResources$"+_l,Zn="__reactMarker$"+_l;function Mc(t){delete t[It],delete t[oe],delete t[xc],delete t[Xy],delete t[Ly]}function Ya(t){var e=t[It];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Ba]||l[It]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=tm(t);t!==null;){if(l=t[It])return l;t=tm(t)}return e}t=l,l=t.parentNode}return null}function Ga(t){if(t=t[It]||t[Ba]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Kn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Xa(t){var e=t[Cr];return e||(e=t[Cr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Zn]=!0}var Rr=new Set,Ur={};function ra(t,e){La(t,e),La(t+"Capture",e)}function La(t,e){for(Ur[t]=e,t=0;t<e.length;t++)Rr.add(e[t])}var Zy=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]*$"),Hr={},qr={};function Ky(t){return Tc.call(qr,t)?!0:Tc.call(Hr,t)?!1:Zy.test(t)?qr[t]=!0:(Hr[t]=!0,!1)}function Iu(t,e,l){if(Ky(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Pu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function ll(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Ce(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Qr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Vy(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Nc(t){if(!t._valueTracker){var e=Qr(t)?"checked":"value";t._valueTracker=Vy(t,e,""+t[e])}}function Br(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Qr(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function ti(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var wy=/[\n"\\]/g;function Re(t){return t.replace(wy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Dc(t,e,l,a,n,u,f,o){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ce(e)):t.value!==""+Ce(e)&&(t.value=""+Ce(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Cc(t,f,Ce(e)):l!=null?Cc(t,f,Ce(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+Ce(o):t.removeAttribute("name")}function Yr(t,e,l,a,n,u,f,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Nc(t);return}l=l!=null?""+Ce(l):"",e=e!=null?""+Ce(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Nc(t)}function Cc(t,e,l){e==="number"&&ti(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Za(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ce(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Gr(t,e,l){if(e!=null&&(e=""+Ce(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ce(l):""}function Xr(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(ae(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Ce(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Nc(t)}function Ka(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Jy=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 Lr(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Jy.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Zr(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&Lr(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&Lr(t,u,e[u])}function Rc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ky=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"]]),Fy=/^[\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 ei(t){return Fy.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function al(){}var Uc=null;function Hc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Va=null,wa=null;function Kr(t){var e=Ga(t);if(e&&(t=e.stateNode)){var l=t[oe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Dc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Re(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[oe]||null;if(!n)throw Error(r(90));Dc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Br(a)}break t;case"textarea":Gr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Za(t,!!l.multiple,e,!1)}}}var qc=!1;function Vr(t,e,l){if(qc)return t(e,l);qc=!0;try{var a=t(e);return a}finally{if(qc=!1,(Va!==null||wa!==null)&&(Li(),Va&&(e=Va,t=wa,wa=Va=null,Kr(e),t)))for(e=0;e<t.length;e++)Kr(t[e])}}function Vn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[oe]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=!1;if(nl)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){Qc=!0}}),window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{Qc=!1}var xl=null,Bc=null,li=null;function wr(){if(li)return li;var t,e=Bc,l=e.length,a,n="value"in xl?xl.value:xl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var f=l-t;for(a=1;a<=f&&e[l-a]===n[u-a];a++);return li=n.slice(t,1<a?1-a:void 0)}function ai(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ni(){return!0}function Jr(){return!1}function he(t){function e(l,a,n,u,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ni:Jr,this.isPropagationStopped=Jr,this}return C(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ni)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ni)},persist:function(){},isPersistent:ni}),e}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=he(oa),Jn=C({},oa,{view:0,detail:0}),$y=he(Jn),Yc,Gc,kn,ii=C({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==kn&&(kn&&t.type==="mousemove"?(Yc=t.screenX-kn.screenX,Gc=t.screenY-kn.screenY):Gc=Yc=0,kn=t),Yc)},movementY:function(t){return"movementY"in t?t.movementY:Gc}}),kr=he(ii),Wy=C({},ii,{dataTransfer:0}),Iy=he(Wy),Py=C({},Jn,{relatedTarget:0}),Xc=he(Py),tv=C({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),ev=he(tv),lv=C({},oa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),av=he(lv),nv=C({},oa,{data:0}),Fr=he(nv),uv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=cv[t])?!!e[t]:!1}function Lc(){return sv}var fv=C({},Jn,{key:function(t){if(t.key){var e=uv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ai(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?iv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(t){return t.type==="keypress"?ai(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ai(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),rv=he(fv),ov=C({},ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$r=he(ov),hv=C({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),dv=he(hv),mv=C({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),yv=he(mv),vv=C({},ii,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),gv=he(vv),bv=C({},oa,{newState:0,oldState:0}),Sv=he(bv),pv=[9,13,27,32],Zc=nl&&"CompositionEvent"in window,Fn=null;nl&&"documentMode"in document&&(Fn=document.documentMode);var Ev=nl&&"TextEvent"in window&&!Fn,Wr=nl&&(!Zc||Fn&&8<Fn&&11>=Fn),Ir=" ",Pr=!1;function to(t,e){switch(t){case"keyup":return pv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ja=!1;function Tv(t,e){switch(t){case"compositionend":return eo(e);case"keypress":return e.which!==32?null:(Pr=!0,Ir);case"textInput":return t=e.data,t===Ir&&Pr?null:t;default:return null}}function jv(t,e){if(Ja)return t==="compositionend"||!Zc&&to(t,e)?(t=wr(),li=Bc=xl=null,Ja=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Wr&&e.locale!=="ko"?null:e.data;default:return null}}var Av={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 lo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Av[t.type]:e==="textarea"}function ao(t,e,l,a){Va?wa?wa.push(a):wa=[a]:Va=a,e=Fi(e,"onChange"),0<e.length&&(l=new ui("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var $n=null,Wn=null;function Ov(t){Gd(t,0)}function ci(t){var e=Kn(t);if(Br(e))return t}function no(t,e){if(t==="change")return e}var uo=!1;if(nl){var Kc;if(nl){var Vc="oninput"in document;if(!Vc){var io=document.createElement("div");io.setAttribute("oninput","return;"),Vc=typeof io.oninput=="function"}Kc=Vc}else Kc=!1;uo=Kc&&(!document.documentMode||9<document.documentMode)}function co(){$n&&($n.detachEvent("onpropertychange",so),Wn=$n=null)}function so(t){if(t.propertyName==="value"&&ci(Wn)){var e=[];ao(e,Wn,t,Hc(t)),Vr(Ov,e)}}function zv(t,e,l){t==="focusin"?(co(),$n=e,Wn=l,$n.attachEvent("onpropertychange",so)):t==="focusout"&&co()}function _v(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ci(Wn)}function xv(t,e){if(t==="click")return ci(e)}function Mv(t,e){if(t==="input"||t==="change")return ci(e)}function Nv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var je=typeof Object.is=="function"?Object.is:Nv;function In(t,e){if(je(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Tc.call(e,n)||!je(t[n],e[n]))return!1}return!0}function fo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ro(t,e){var l=fo(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=fo(l)}}function oo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?oo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ho(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ti(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=ti(t.document)}return e}function wc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Dv=nl&&"documentMode"in document&&11>=document.documentMode,ka=null,Jc=null,Pn=null,kc=!1;function mo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;kc||ka==null||ka!==ti(a)||(a=ka,"selectionStart"in a&&wc(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}),Pn&&In(Pn,a)||(Pn=a,a=Fi(Jc,"onSelect"),0<a.length&&(e=new ui("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=ka)))}function ha(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Fa={animationend:ha("Animation","AnimationEnd"),animationiteration:ha("Animation","AnimationIteration"),animationstart:ha("Animation","AnimationStart"),transitionrun:ha("Transition","TransitionRun"),transitionstart:ha("Transition","TransitionStart"),transitioncancel:ha("Transition","TransitionCancel"),transitionend:ha("Transition","TransitionEnd")},Fc={},yo={};nl&&(yo=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function da(t){if(Fc[t])return Fc[t];if(!Fa[t])return t;var e=Fa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in yo)return Fc[t]=e[l];return t}var vo=da("animationend"),go=da("animationiteration"),bo=da("animationstart"),Cv=da("transitionrun"),Rv=da("transitionstart"),Uv=da("transitioncancel"),So=da("transitionend"),po=new Map,$c="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(" ");$c.push("scrollEnd");function Ze(t,e){po.set(t,e),ra(e,[t])}var si=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ue=[],$a=0,Wc=0;function fi(){for(var t=$a,e=Wc=$a=0;e<t;){var l=Ue[e];Ue[e++]=null;var a=Ue[e];Ue[e++]=null;var n=Ue[e];Ue[e++]=null;var u=Ue[e];if(Ue[e++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}u!==0&&Eo(l,n,u)}}function ri(t,e,l,a){Ue[$a++]=t,Ue[$a++]=e,Ue[$a++]=l,Ue[$a++]=a,Wc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ic(t,e,l,a){return ri(t,e,l,a),oi(t)}function ma(t,e){return ri(t,null,null,e),oi(t)}function Eo(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-Te(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function oi(t){if(50<Eu)throw Eu=0,sf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Wa={};function Hv(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ae(t,e,l,a){return new Hv(t,e,l,a)}function Pc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ul(t,e){var l=t.alternate;return l===null?(l=Ae(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function To(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function hi(t,e,l,a,n,u){var f=0;if(a=t,typeof t=="function")Pc(t)&&(f=1);else if(typeof t=="string")f=G0(t,l,G.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Tt:return t=Ae(31,l,e,n),t.elementType=Tt,t.lanes=u,t;case Y:return ya(l.children,n,u,e);case P:f=8,n|=24;break;case tt:return t=Ae(12,l,e,n|2),t.elementType=tt,t.lanes=u,t;case pt:return t=Ae(13,l,e,n),t.elementType=pt,t.lanes=u,t;case Et:return t=Ae(19,l,e,n),t.elementType=Et,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case et:f=10;break t;case St:f=9;break t;case X:f=11;break t;case W:f=14;break t;case nt:f=16,a=null;break t}f=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=Ae(f,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function ya(t,e,l,a){return t=Ae(7,t,a,e),t.lanes=l,t}function ts(t,e,l){return t=Ae(6,t,null,e),t.lanes=l,t}function jo(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function es(t,e,l){return e=Ae(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ao=new WeakMap;function He(t,e){if(typeof t=="object"&&t!==null){var l=Ao.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Tr(e)},Ao.set(t,e),e)}return{value:t,source:e,stack:Tr(e)}}var Ia=[],Pa=0,di=null,tu=0,qe=[],Qe=0,Ml=null,ke=1,Fe="";function il(t,e){Ia[Pa++]=tu,Ia[Pa++]=di,di=t,tu=e}function Oo(t,e,l){qe[Qe++]=ke,qe[Qe++]=Fe,qe[Qe++]=Ml,Ml=t;var a=ke;t=Fe;var n=32-Te(a)-1;a&=~(1<<n),l+=1;var u=32-Te(e)+n;if(30<u){var f=n-n%5;u=(a&(1<<f)-1).toString(32),a>>=f,n-=f,ke=1<<32-Te(e)+n|l<<n|a,Fe=u+t}else ke=1<<u|l<<n|a,Fe=t}function ls(t){t.return!==null&&(il(t,1),Oo(t,1,0))}function as(t){for(;t===di;)di=Ia[--Pa],Ia[Pa]=null,tu=Ia[--Pa],Ia[Pa]=null;for(;t===Ml;)Ml=qe[--Qe],qe[Qe]=null,Fe=qe[--Qe],qe[Qe]=null,ke=qe[--Qe],qe[Qe]=null}function zo(t,e){qe[Qe++]=ke,qe[Qe++]=Fe,qe[Qe++]=Ml,ke=e.id,Fe=e.overflow,Ml=t}var Pt=null,Dt=null,ht=!1,Nl=null,Be=!1,ns=Error(r(519));function Dl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eu(He(e,t)),ns}function _o(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[It]=t,e[oe]=a,l){case"dialog":ft("cancel",e),ft("close",e);break;case"iframe":case"object":case"embed":ft("load",e);break;case"video":case"audio":for(l=0;l<ju.length;l++)ft(ju[l],e);break;case"source":ft("error",e);break;case"img":case"image":case"link":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"input":ft("invalid",e),Yr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ft("invalid",e);break;case"textarea":ft("invalid",e),Xr(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Kd(e.textContent,l)?(a.popover!=null&&(ft("beforetoggle",e),ft("toggle",e)),a.onScroll!=null&&ft("scroll",e),a.onScrollEnd!=null&&ft("scrollend",e),a.onClick!=null&&(e.onclick=al),e=!0):e=!1,e||Dl(t,!0)}function xo(t){for(Pt=t.return;Pt;)switch(Pt.tag){case 5:case 31:case 13:Be=!1;return;case 27:case 3:Be=!0;return;default:Pt=Pt.return}}function tn(t){if(t!==Pt)return!1;if(!ht)return xo(t),ht=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||jf(t.type,t.memoizedProps)),l=!l),l&&Dt&&Dl(t),xo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Dt=Pd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Dt=Pd(t)}else e===27?(e=Dt,Vl(t.type)?(t=xf,xf=null,Dt=t):Dt=e):Dt=Pt?Ge(t.stateNode.nextSibling):null;return!0}function va(){Dt=Pt=null,ht=!1}function us(){var t=Nl;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),Nl=null),t}function eu(t){Nl===null?Nl=[t]:Nl.push(t)}var is=g(null),ga=null,cl=null;function Cl(t,e,l){Q(is,e._currentValue),e._currentValue=l}function sl(t){t._currentValue=is.current,M(is)}function cs(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function ss(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var f=n.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=n;for(var d=0;d<e.length;d++)if(o.context===e[d]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),cs(u.return,l,t),a||(f=null);break t}u=o.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(r(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),cs(f,l,t),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===t){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function en(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var o=n.type;je(n.pendingProps.value,f.value)||(t!==null?t.push(o):t=[o])}}else if(n===gt.current){if(f=n.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(xu):t=[xu])}n=n.return}t!==null&&ss(e,t,l,a),e.flags|=262144}function mi(t){for(t=t.firstContext;t!==null;){if(!je(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ba(t){ga=t,cl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function te(t){return Mo(ga,t)}function yi(t,e){return ga===null&&ba(t),Mo(t,e)}function Mo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},cl===null){if(t===null)throw Error(r(308));cl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else cl=cl.next=e;return l}var qv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Qv=c.unstable_scheduleCallback,Bv=c.unstable_NormalPriority,Xt={$$typeof:et,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fs(){return{controller:new qv,data:new Map,refCount:0}}function lu(t){t.refCount--,t.refCount===0&&Qv(Bv,function(){t.controller.abort()})}var au=null,rs=0,ln=0,an=null;function Yv(t,e){if(au===null){var l=au=[];rs=0,ln=mf(),an={status:"pending",value:void 0,then:function(a){l.push(a)}}}return rs++,e.then(No,No),e}function No(){if(--rs===0&&au!==null){an!==null&&(an.status="fulfilled");var t=au;au=null,ln=0,an=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Gv(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Do=z.S;z.S=function(t,e){md=pe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Yv(t,e),Do!==null&&Do(t,e)};var Sa=g(null);function os(){var t=Sa.current;return t!==null?t:Nt.pooledCache}function vi(t,e){e===null?Q(Sa,Sa.current):Q(Sa,e.pool)}function Co(){var t=os();return t===null?null:{parent:Xt._currentValue,pool:t}}var nn=Error(r(460)),hs=Error(r(474)),gi=Error(r(542)),bi={then:function(){}};function Ro(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Uo(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(al,al),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,qo(t),t;default:if(typeof e.status=="string")e.then(al,al);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,qo(t),t}throw Ea=e,nn}}function pa(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ea=l,nn):l}}var Ea=null;function Ho(){if(Ea===null)throw Error(r(459));var t=Ea;return Ea=null,t}function qo(t){if(t===nn||t===gi)throw Error(r(483))}var un=null,nu=0;function Si(t){var e=nu;return nu+=1,un===null&&(un=[]),Uo(un,t,e)}function uu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function pi(t,e){throw e.$$typeof===Z?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qo(t){function e(b,v){if(t){var S=b.deletions;S===null?(b.deletions=[v],b.flags|=16):S.push(v)}}function l(b,v){if(!t)return null;for(;v!==null;)e(b,v),v=v.sibling;return null}function a(b){for(var v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function n(b,v){return b=ul(b,v),b.index=0,b.sibling=null,b}function u(b,v,S){return b.index=S,t?(S=b.alternate,S!==null?(S=S.index,S<v?(b.flags|=67108866,v):S):(b.flags|=67108866,v)):(b.flags|=1048576,v)}function f(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function o(b,v,S,_){return v===null||v.tag!==6?(v=ts(S,b.mode,_),v.return=b,v):(v=n(v,S),v.return=b,v)}function d(b,v,S,_){var w=S.type;return w===Y?O(b,v,S.props.children,_,S.key):v!==null&&(v.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===nt&&pa(w)===v.type)?(v=n(v,S.props),uu(v,S),v.return=b,v):(v=hi(S.type,S.key,S.props,null,b.mode,_),uu(v,S),v.return=b,v)}function p(b,v,S,_){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=es(S,b.mode,_),v.return=b,v):(v=n(v,S.children||[]),v.return=b,v)}function O(b,v,S,_,w){return v===null||v.tag!==7?(v=ya(S,b.mode,_,w),v.return=b,v):(v=n(v,S),v.return=b,v)}function x(b,v,S){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=ts(""+v,b.mode,S),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case K:return S=hi(v.type,v.key,v.props,null,b.mode,S),uu(S,v),S.return=b,S;case F:return v=es(v,b.mode,S),v.return=b,v;case nt:return v=pa(v),x(b,v,S)}if(ae(v)||wt(v))return v=ya(v,b.mode,S,null),v.return=b,v;if(typeof v.then=="function")return x(b,Si(v),S);if(v.$$typeof===et)return x(b,yi(b,v),S);pi(b,v)}return null}function E(b,v,S,_){var w=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return w!==null?null:o(b,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case K:return S.key===w?d(b,v,S,_):null;case F:return S.key===w?p(b,v,S,_):null;case nt:return S=pa(S),E(b,v,S,_)}if(ae(S)||wt(S))return w!==null?null:O(b,v,S,_,null);if(typeof S.then=="function")return E(b,v,Si(S),_);if(S.$$typeof===et)return E(b,v,yi(b,S),_);pi(b,S)}return null}function j(b,v,S,_,w){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return b=b.get(S)||null,o(v,b,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case K:return b=b.get(_.key===null?S:_.key)||null,d(v,b,_,w);case F:return b=b.get(_.key===null?S:_.key)||null,p(v,b,_,w);case nt:return _=pa(_),j(b,v,S,_,w)}if(ae(_)||wt(_))return b=b.get(S)||null,O(v,b,_,w,null);if(typeof _.then=="function")return j(b,v,S,Si(_),w);if(_.$$typeof===et)return j(b,v,S,yi(v,_),w);pi(v,_)}return null}function B(b,v,S,_){for(var w=null,mt=null,L=v,ut=v=0,ot=null;L!==null&&ut<S.length;ut++){L.index>ut?(ot=L,L=null):ot=L.sibling;var yt=E(b,L,S[ut],_);if(yt===null){L===null&&(L=ot);break}t&&L&&yt.alternate===null&&e(b,L),v=u(yt,v,ut),mt===null?w=yt:mt.sibling=yt,mt=yt,L=ot}if(ut===S.length)return l(b,L),ht&&il(b,ut),w;if(L===null){for(;ut<S.length;ut++)L=x(b,S[ut],_),L!==null&&(v=u(L,v,ut),mt===null?w=L:mt.sibling=L,mt=L);return ht&&il(b,ut),w}for(L=a(L);ut<S.length;ut++)ot=j(L,b,ut,S[ut],_),ot!==null&&(t&&ot.alternate!==null&&L.delete(ot.key===null?ut:ot.key),v=u(ot,v,ut),mt===null?w=ot:mt.sibling=ot,mt=ot);return t&&L.forEach(function($l){return e(b,$l)}),ht&&il(b,ut),w}function J(b,v,S,_){if(S==null)throw Error(r(151));for(var w=null,mt=null,L=v,ut=v=0,ot=null,yt=S.next();L!==null&&!yt.done;ut++,yt=S.next()){L.index>ut?(ot=L,L=null):ot=L.sibling;var $l=E(b,L,yt.value,_);if($l===null){L===null&&(L=ot);break}t&&L&&$l.alternate===null&&e(b,L),v=u($l,v,ut),mt===null?w=$l:mt.sibling=$l,mt=$l,L=ot}if(yt.done)return l(b,L),ht&&il(b,ut),w;if(L===null){for(;!yt.done;ut++,yt=S.next())yt=x(b,yt.value,_),yt!==null&&(v=u(yt,v,ut),mt===null?w=yt:mt.sibling=yt,mt=yt);return ht&&il(b,ut),w}for(L=a(L);!yt.done;ut++,yt=S.next())yt=j(L,b,ut,yt.value,_),yt!==null&&(t&&yt.alternate!==null&&L.delete(yt.key===null?ut:yt.key),v=u(yt,v,ut),mt===null?w=yt:mt.sibling=yt,mt=yt);return t&&L.forEach(function(W0){return e(b,W0)}),ht&&il(b,ut),w}function xt(b,v,S,_){if(typeof S=="object"&&S!==null&&S.type===Y&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case K:t:{for(var w=S.key;v!==null;){if(v.key===w){if(w=S.type,w===Y){if(v.tag===7){l(b,v.sibling),_=n(v,S.props.children),_.return=b,b=_;break t}}else if(v.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===nt&&pa(w)===v.type){l(b,v.sibling),_=n(v,S.props),uu(_,S),_.return=b,b=_;break t}l(b,v);break}else e(b,v);v=v.sibling}S.type===Y?(_=ya(S.props.children,b.mode,_,S.key),_.return=b,b=_):(_=hi(S.type,S.key,S.props,null,b.mode,_),uu(_,S),_.return=b,b=_)}return f(b);case F:t:{for(w=S.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){l(b,v.sibling),_=n(v,S.children||[]),_.return=b,b=_;break t}else{l(b,v);break}else e(b,v);v=v.sibling}_=es(S,b.mode,_),_.return=b,b=_}return f(b);case nt:return S=pa(S),xt(b,v,S,_)}if(ae(S))return B(b,v,S,_);if(wt(S)){if(w=wt(S),typeof w!="function")throw Error(r(150));return S=w.call(S),J(b,v,S,_)}if(typeof S.then=="function")return xt(b,v,Si(S),_);if(S.$$typeof===et)return xt(b,v,yi(b,S),_);pi(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,v!==null&&v.tag===6?(l(b,v.sibling),_=n(v,S),_.return=b,b=_):(l(b,v),_=ts(S,b.mode,_),_.return=b,b=_),f(b)):l(b,v)}return function(b,v,S,_){try{nu=0;var w=xt(b,v,S,_);return un=null,w}catch(L){if(L===nn||L===gi)throw L;var mt=Ae(29,L,null,b.mode);return mt.lanes=_,mt.return=b,mt}finally{}}}var Ta=Qo(!0),Bo=Qo(!1),Rl=!1;function ds(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ms(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ul(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Hl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(vt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=oi(t),Eo(t,null,l),e}return ri(t,a,e,l),oi(t)}function iu(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,xr(t,l)}}function ys(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=f:u=u.next=f,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var vs=!1;function cu(){if(vs){var t=an;if(t!==null)throw t}}function su(t,e,l,a){vs=!1;var n=t.updateQueue;Rl=!1;var u=n.firstBaseUpdate,f=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var d=o,p=d.next;d.next=null,f===null?u=p:f.next=p,f=d;var O=t.alternate;O!==null&&(O=O.updateQueue,o=O.lastBaseUpdate,o!==f&&(o===null?O.firstBaseUpdate=p:o.next=p,O.lastBaseUpdate=d))}if(u!==null){var x=n.baseState;f=0,O=p=d=null,o=u;do{var E=o.lane&-536870913,j=E!==o.lane;if(j?(rt&E)===E:(a&E)===E){E!==0&&E===ln&&(vs=!0),O!==null&&(O=O.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var B=t,J=o;E=e;var xt=l;switch(J.tag){case 1:if(B=J.payload,typeof B=="function"){x=B.call(xt,x,E);break t}x=B;break t;case 3:B.flags=B.flags&-65537|128;case 0:if(B=J.payload,E=typeof B=="function"?B.call(xt,x,E):B,E==null)break t;x=C({},x,E);break t;case 2:Rl=!0}}E=o.callback,E!==null&&(t.flags|=64,j&&(t.flags|=8192),j=n.callbacks,j===null?n.callbacks=[E]:j.push(E))}else j={lane:E,tag:o.tag,payload:o.payload,callback:o.callback,next:null},O===null?(p=O=j,d=x):O=O.next=j,f|=E;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;j=o,o=j.next,j.next=null,n.lastBaseUpdate=j,n.shared.pending=null}}while(!0);O===null&&(d=x),n.baseState=d,n.firstBaseUpdate=p,n.lastBaseUpdate=O,u===null&&(n.shared.lanes=0),Gl|=f,t.lanes=f,t.memoizedState=x}}function Yo(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Go(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Yo(l[t],e)}var cn=g(null),Ei=g(0);function Xo(t,e){t=gl,Q(Ei,t),Q(cn,e),gl=t|e.baseLanes}function gs(){Q(Ei,gl),Q(cn,cn.current)}function bs(){gl=Ei.current,M(cn),M(Ei)}var Oe=g(null),Ye=null;function ql(t){var e=t.alternate;Q(Yt,Yt.current&1),Q(Oe,t),Ye===null&&(e===null||cn.current!==null||e.memoizedState!==null)&&(Ye=t)}function Ss(t){Q(Yt,Yt.current),Q(Oe,t),Ye===null&&(Ye=t)}function Lo(t){t.tag===22?(Q(Yt,Yt.current),Q(Oe,t),Ye===null&&(Ye=t)):Ql()}function Ql(){Q(Yt,Yt.current),Q(Oe,Oe.current)}function ze(t){M(Oe),Ye===t&&(Ye=null),M(Yt)}var Yt=g(0);function Ti(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||zf(l)||_f(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fl=0,at=null,zt=null,Lt=null,ji=!1,sn=!1,ja=!1,Ai=0,fu=0,fn=null,Xv=0;function Ht(){throw Error(r(321))}function ps(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!je(t[l],e[l]))return!1;return!0}function Es(t,e,l,a,n,u){return fl=u,at=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Oh:qs,ja=!1,u=l(a,n),ja=!1,sn&&(u=Ko(e,l,a,n)),Zo(t),u}function Zo(t){z.H=hu;var e=zt!==null&&zt.next!==null;if(fl=0,Lt=zt=at=null,ji=!1,fu=0,fn=null,e)throw Error(r(300));t===null||Zt||(t=t.dependencies,t!==null&&mi(t)&&(Zt=!0))}function Ko(t,e,l,a){at=t;var n=0;do{if(sn&&(fn=null),fu=0,sn=!1,25<=n)throw Error(r(301));if(n+=1,Lt=zt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=zh,u=e(l,a)}while(sn);return u}function Lv(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?ru(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(at.flags|=1024),e}function Ts(){var t=Ai!==0;return Ai=0,t}function js(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function As(t){if(ji){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ji=!1}fl=0,Lt=zt=at=null,sn=!1,fu=Ai=0,fn=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?at.memoizedState=Lt=t:Lt=Lt.next=t,Lt}function Gt(){if(zt===null){var t=at.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Lt===null?at.memoizedState:Lt.next;if(e!==null)Lt=e,zt=t;else{if(t===null)throw at.alternate===null?Error(r(467)):Error(r(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Lt===null?at.memoizedState=Lt=t:Lt=Lt.next=t}return Lt}function Oi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ru(t){var e=fu;return fu+=1,fn===null&&(fn=[]),t=Uo(fn,t,e),e=at,(Lt===null?e.memoizedState:Lt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Oh:qs),t}function zi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ru(t);if(t.$$typeof===et)return te(t)}throw Error(r(438,String(t)))}function Os(t){var e=null,l=at.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=at.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Oi(),at.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Ut;return e.index++,l}function rl(t,e){return typeof e=="function"?e(t):e}function _i(t){var e=Gt();return zs(e,zt,t)}function zs(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var f=n.next;n.next=u.next,u.next=f}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var o=f=null,d=null,p=e,O=!1;do{var x=p.lane&-536870913;if(x!==p.lane?(rt&x)===x:(fl&x)===x){var E=p.revertLane;if(E===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),x===ln&&(O=!0);else if((fl&E)===E){p=p.next,E===ln&&(O=!0);continue}else x={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},d===null?(o=d=x,f=u):d=d.next=x,at.lanes|=E,Gl|=E;x=p.action,ja&&l(u,x),u=p.hasEagerState?p.eagerState:l(u,x)}else E={lane:x,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},d===null?(o=d=E,f=u):d=d.next=E,at.lanes|=x,Gl|=x;p=p.next}while(p!==null&&p!==e);if(d===null?f=u:d.next=o,!je(u,t.memoizedState)&&(Zt=!0,O&&(l=an,l!==null)))throw l;t.memoizedState=u,t.baseState=f,t.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function _s(t){var e=Gt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do u=t(u,f.action),f=f.next;while(f!==n);je(u,e.memoizedState)||(Zt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function Vo(t,e,l){var a=at,n=Gt(),u=ht;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=e();var f=!je((zt||n).memoizedState,l);if(f&&(n.memoizedState=l,Zt=!0),n=n.queue,Ns(ko.bind(null,a,n,t),[t]),n.getSnapshot!==e||f||Lt!==null&&Lt.memoizedState.tag&1){if(a.flags|=2048,rn(9,{destroy:void 0},Jo.bind(null,a,n,l,e),null),Nt===null)throw Error(r(349));u||(fl&127)!==0||wo(a,e,l)}return l}function wo(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=at.updateQueue,e===null?(e=Oi(),at.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Jo(t,e,l,a){e.value=l,e.getSnapshot=a,Fo(e)&&$o(t)}function ko(t,e,l){return l(function(){Fo(e)&&$o(t)})}function Fo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!je(t,l)}catch{return!0}}function $o(t){var e=ma(t,2);e!==null&&ge(e,t,2)}function xs(t){var e=ce();if(typeof t=="function"){var l=t;if(t=l(),ja){zl(!0);try{l()}finally{zl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:t},e}function Wo(t,e,l,a){return t.baseState=l,zs(t,zt,typeof a=="function"?a:rl)}function Zv(t,e,l,a,n){if(Ni(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};z.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,Io(e,u)):(u.next=l.next,e.pending=l.next=u)}}function Io(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=z.T,f={};z.T=f;try{var o=l(n,a),d=z.S;d!==null&&d(f,o),Po(t,e,o)}catch(p){Ms(t,e,p)}finally{u!==null&&f.types!==null&&(u.types=f.types),z.T=u}}else try{u=l(n,a),Po(t,e,u)}catch(p){Ms(t,e,p)}}function Po(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){th(t,e,a)},function(a){return Ms(t,e,a)}):th(t,e,l)}function th(t,e,l){e.status="fulfilled",e.value=l,eh(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Io(t,l)))}function Ms(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,eh(e),e=e.next;while(e!==a)}t.action=null}function eh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function lh(t,e){return e}function ah(t,e){if(ht){var l=Nt.formState;if(l!==null){t:{var a=at;if(ht){if(Dt){e:{for(var n=Dt,u=Be;n.nodeType!==8;){if(!u){n=null;break e}if(n=Ge(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Dt=Ge(n.nextSibling),a=n.data==="F!";break t}}Dl(a)}a=!1}a&&(e=l[0])}}return l=ce(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lh,lastRenderedState:e},l.queue=a,l=Th.bind(null,at,a),a.dispatch=l,a=xs(!1),u=Hs.bind(null,at,!1,a.queue),a=ce(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Zv.bind(null,at,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function nh(t){var e=Gt();return uh(e,zt,t)}function uh(t,e,l){if(e=zs(t,e,lh)[0],t=_i(rl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=ru(e)}catch(f){throw f===nn?gi:f}else a=e;e=Gt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(at.flags|=2048,rn(9,{destroy:void 0},Kv.bind(null,n,l),null)),[a,u,t]}function Kv(t,e){t.action=e}function ih(t){var e=Gt(),l=zt;if(l!==null)return uh(e,l,t);Gt(),e=e.memoizedState,l=Gt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function rn(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=at.updateQueue,e===null&&(e=Oi(),at.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function ch(){return Gt().memoizedState}function xi(t,e,l,a){var n=ce();at.flags|=t,n.memoizedState=rn(1|e,{destroy:void 0},l,a===void 0?null:a)}function Mi(t,e,l,a){var n=Gt();a=a===void 0?null:a;var u=n.memoizedState.inst;zt!==null&&a!==null&&ps(a,zt.memoizedState.deps)?n.memoizedState=rn(e,u,l,a):(at.flags|=t,n.memoizedState=rn(1|e,u,l,a))}function sh(t,e){xi(8390656,8,t,e)}function Ns(t,e){Mi(2048,8,t,e)}function Vv(t){at.flags|=4;var e=at.updateQueue;if(e===null)e=Oi(),at.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function fh(t){var e=Gt().memoizedState;return Vv({ref:e,nextImpl:t}),function(){if((vt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function rh(t,e){return Mi(4,2,t,e)}function oh(t,e){return Mi(4,4,t,e)}function hh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function dh(t,e,l){l=l!=null?l.concat([t]):null,Mi(4,4,hh.bind(null,e,t),l)}function Ds(){}function mh(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&ps(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function yh(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&ps(e,a[1]))return a[0];if(a=t(),ja){zl(!0);try{t()}finally{zl(!1)}}return l.memoizedState=[a,e],a}function Cs(t,e,l){return l===void 0||(fl&1073741824)!==0&&(rt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=vd(),at.lanes|=t,Gl|=t,l)}function vh(t,e,l,a){return je(l,e)?l:cn.current!==null?(t=Cs(t,l,a),je(t,e)||(Zt=!0),t):(fl&42)===0||(fl&1073741824)!==0&&(rt&261930)===0?(Zt=!0,t.memoizedState=l):(t=vd(),at.lanes|=t,Gl|=t,e)}function gh(t,e,l,a,n){var u=H.p;H.p=u!==0&&8>u?u:8;var f=z.T,o={};z.T=o,Hs(t,!1,e,l);try{var d=n(),p=z.S;if(p!==null&&p(o,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var O=Gv(d,a);ou(t,e,O,Me(t))}else ou(t,e,a,Me(t))}catch(x){ou(t,e,{then:function(){},status:"rejected",reason:x},Me())}finally{H.p=u,f!==null&&o.types!==null&&(f.types=o.types),z.T=f}}function wv(){}function Rs(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=bh(t).queue;gh(t,n,e,k,l===null?wv:function(){return Sh(t),l(a)})}function bh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:k},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Sh(t){var e=bh(t);e.next===null&&(e=t.alternate.memoizedState),ou(t,e.next.queue,{},Me())}function Us(){return te(xu)}function ph(){return Gt().memoizedState}function Eh(){return Gt().memoizedState}function Jv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Me();t=Ul(l);var a=Hl(e,t,l);a!==null&&(ge(a,e,l),iu(a,e,l)),e={cache:fs()},t.payload=e;return}e=e.return}}function kv(t,e,l){var a=Me();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ni(t)?jh(e,l):(l=Ic(t,e,l,a),l!==null&&(ge(l,t,a),Ah(l,e,a)))}function Th(t,e,l){var a=Me();ou(t,e,l,a)}function ou(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ni(t))jh(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,o=u(f,l);if(n.hasEagerState=!0,n.eagerState=o,je(o,f))return ri(t,e,n,0),Nt===null&&fi(),!1}catch{}finally{}if(l=Ic(t,e,n,a),l!==null)return ge(l,t,a),Ah(l,e,a),!0}return!1}function Hs(t,e,l,a){if(a={lane:2,revertLane:mf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ni(t)){if(e)throw Error(r(479))}else e=Ic(t,l,a,2),e!==null&&ge(e,t,2)}function Ni(t){var e=t.alternate;return t===at||e!==null&&e===at}function jh(t,e){sn=ji=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Ah(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,xr(t,l)}}var hu={readContext:te,use:zi,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};hu.useEffectEvent=Ht;var Oh={readContext:te,use:zi,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:te,useEffect:sh,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,xi(4194308,4,hh.bind(null,e,t),l)},useLayoutEffect:function(t,e){return xi(4194308,4,t,e)},useInsertionEffect:function(t,e){xi(4,2,t,e)},useMemo:function(t,e){var l=ce();e=e===void 0?null:e;var a=t();if(ja){zl(!0);try{t()}finally{zl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=ce();if(l!==void 0){var n=l(e);if(ja){zl(!0);try{l(e)}finally{zl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=kv.bind(null,at,t),[a.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=xs(t);var e=t.queue,l=Th.bind(null,at,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ds,useDeferredValue:function(t,e){var l=ce();return Cs(l,t,e)},useTransition:function(){var t=xs(!1);return t=gh.bind(null,at,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=at,n=ce();if(ht){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Nt===null)throw Error(r(349));(rt&127)!==0||wo(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,sh(ko.bind(null,a,u,t),[t]),a.flags|=2048,rn(9,{destroy:void 0},Jo.bind(null,a,u,l,e),null),l},useId:function(){var t=ce(),e=Nt.identifierPrefix;if(ht){var l=Fe,a=ke;l=(a&~(1<<32-Te(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Ai++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Xv++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Us,useFormState:ah,useActionState:ah,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Hs.bind(null,at,!0,l),l.dispatch=e,[t,e]},useMemoCache:Os,useCacheRefresh:function(){return ce().memoizedState=Jv.bind(null,at)},useEffectEvent:function(t){var e=ce(),l={impl:t};return e.memoizedState=l,function(){if((vt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},qs={readContext:te,use:zi,useCallback:mh,useContext:te,useEffect:Ns,useImperativeHandle:dh,useInsertionEffect:rh,useLayoutEffect:oh,useMemo:yh,useReducer:_i,useRef:ch,useState:function(){return _i(rl)},useDebugValue:Ds,useDeferredValue:function(t,e){var l=Gt();return vh(l,zt.memoizedState,t,e)},useTransition:function(){var t=_i(rl)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:ru(t),e]},useSyncExternalStore:Vo,useId:ph,useHostTransitionStatus:Us,useFormState:nh,useActionState:nh,useOptimistic:function(t,e){var l=Gt();return Wo(l,zt,t,e)},useMemoCache:Os,useCacheRefresh:Eh};qs.useEffectEvent=fh;var zh={readContext:te,use:zi,useCallback:mh,useContext:te,useEffect:Ns,useImperativeHandle:dh,useInsertionEffect:rh,useLayoutEffect:oh,useMemo:yh,useReducer:_s,useRef:ch,useState:function(){return _s(rl)},useDebugValue:Ds,useDeferredValue:function(t,e){var l=Gt();return zt===null?Cs(l,t,e):vh(l,zt.memoizedState,t,e)},useTransition:function(){var t=_s(rl)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:ru(t),e]},useSyncExternalStore:Vo,useId:ph,useHostTransitionStatus:Us,useFormState:ih,useActionState:ih,useOptimistic:function(t,e){var l=Gt();return zt!==null?Wo(l,zt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Os,useCacheRefresh:Eh};zh.useEffectEvent=fh;function Qs(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:C({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Bs={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=Me(),n=Ul(a);n.payload=e,l!=null&&(n.callback=l),e=Hl(t,n,a),e!==null&&(ge(e,t,a),iu(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=Me(),n=Ul(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Hl(t,n,a),e!==null&&(ge(e,t,a),iu(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Me(),a=Ul(l);a.tag=2,e!=null&&(a.callback=e),e=Hl(t,a,l),e!==null&&(ge(e,t,l),iu(e,t,l))}};function _h(t,e,l,a,n,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,f):e.prototype&&e.prototype.isPureReactComponent?!In(l,a)||!In(n,u):!0}function xh(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Bs.enqueueReplaceState(e,e.state,null)}function Aa(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=C({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Mh(t){si(t)}function Nh(t){console.error(t)}function Dh(t){si(t)}function Di(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Ch(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ys(t,e,l){return l=Ul(l),l.tag=3,l.payload={element:null},l.callback=function(){Di(t,e)},l}function Rh(t){return t=Ul(t),t.tag=3,t}function Uh(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){Ch(e,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Ch(e,l,a),typeof n!="function"&&(Xl===null?Xl=new Set([this]):Xl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function Fv(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&en(e,l,n,!0),l=Oe.current,l!==null){switch(l.tag){case 31:case 13:return Ye===null?Zi():l.alternate===null&&qt===0&&(qt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===bi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),of(t,a,n)),!1;case 22:return l.flags|=65536,a===bi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),of(t,a,n)),!1}throw Error(r(435,l.tag))}return of(t,a,n),Zi(),!1}if(ht)return e=Oe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==ns&&(t=Error(r(422),{cause:a}),eu(He(t,l)))):(a!==ns&&(e=Error(r(423),{cause:a}),eu(He(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=He(a,l),n=Ys(t.stateNode,a,n),ys(t,n),qt!==4&&(qt=2)),!1;var u=Error(r(520),{cause:a});if(u=He(u,l),pu===null?pu=[u]:pu.push(u),qt!==4&&(qt=2),e===null)return!0;a=He(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Ys(l.stateNode,a,t),ys(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Xl===null||!Xl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Rh(n),Uh(n,t,l,a),ys(l,n),!1}l=l.return}while(l!==null);return!1}var Gs=Error(r(461)),Zt=!1;function ee(t,e,l,a){e.child=t===null?Bo(e,null,l,a):Ta(e,t.child,l,a)}function Hh(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var f={};for(var o in a)o!=="ref"&&(f[o]=a[o])}else f=a;return ba(e),a=Es(t,e,l,f,u,n),o=Ts(),t!==null&&!Zt?(js(t,e,n),ol(t,e,n)):(ht&&o&&ls(e),e.flags|=1,ee(t,e,a,n),e.child)}function qh(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Pc(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Qh(t,e,u,a,n)):(t=hi(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!ks(t,n)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:In,l(f,a)&&t.ref===e.ref)return ol(t,e,n)}return e.flags|=1,t=ul(u,a),t.ref=e.ref,t.return=e,e.child=t}function Qh(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(In(u,a)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=a=u,ks(t,n))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,ol(t,e,n)}return Xs(t,e,l,a,n)}function Bh(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return Yh(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&vi(e,u!==null?u.cachePool:null),u!==null?Xo(e,u):gs(),Lo(e);else return a=e.lanes=536870912,Yh(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(vi(e,u.cachePool),Xo(e,u),Ql(),e.memoizedState=null):(t!==null&&vi(e,null),gs(),Ql());return ee(t,e,n,l),e.child}function du(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Yh(t,e,l,a,n){var u=os();return u=u===null?null:{parent:Xt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&vi(e,null),gs(),Lo(e),t!==null&&en(t,e,a,!0),e.childLanes=n,null}function Ci(t,e){return e=Ui({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Gh(t,e,l){return Ta(e,t.child,null,l),t=Ci(e,e.pendingProps),t.flags|=2,ze(e),e.memoizedState=null,t}function $v(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ht){if(a.mode==="hidden")return t=Ci(e,a),e.lanes=536870912,du(null,t);if(Ss(e),(t=Dt)?(t=Id(t,Be),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ml!==null?{id:ke,overflow:Fe}:null,retryLane:536870912,hydrationErrors:null},l=jo(t),l.return=e,e.child=l,Pt=e,Dt=null)):t=null,t===null)throw Dl(e);return e.lanes=536870912,null}return Ci(e,a)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(Ss(e),n)if(e.flags&256)e.flags&=-257,e=Gh(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Zt||en(t,e,l,!1),n=(l&t.childLanes)!==0,Zt||n){if(a=Nt,a!==null&&(f=Mr(a,l),f!==0&&f!==u.retryLane))throw u.retryLane=f,ma(t,f),ge(a,t,f),Gs;Zi(),e=Gh(t,e,l)}else t=u.treeContext,Dt=Ge(f.nextSibling),Pt=e,ht=!0,Nl=null,Be=!1,t!==null&&zo(e,t),e=Ci(e,a),e.flags|=4096;return e}return t=ul(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ri(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Xs(t,e,l,a,n){return ba(e),l=Es(t,e,l,a,void 0,n),a=Ts(),t!==null&&!Zt?(js(t,e,n),ol(t,e,n)):(ht&&a&&ls(e),e.flags|=1,ee(t,e,l,n),e.child)}function Xh(t,e,l,a,n,u){return ba(e),e.updateQueue=null,l=Ko(e,a,l,n),Zo(t),a=Ts(),t!==null&&!Zt?(js(t,e,u),ol(t,e,u)):(ht&&a&&ls(e),e.flags|=1,ee(t,e,l,u),e.child)}function Lh(t,e,l,a,n){if(ba(e),e.stateNode===null){var u=Wa,f=l.contextType;typeof f=="object"&&f!==null&&(u=te(f)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},ds(e),f=l.contextType,u.context=typeof f=="object"&&f!==null?te(f):Wa,u.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Qs(e,l,f,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Bs.enqueueReplaceState(u,u.state,null),su(e,a,u,n),cu(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,d=Aa(l,o);u.props=d;var p=u.context,O=l.contextType;f=Wa,typeof O=="object"&&O!==null&&(f=te(O));var x=l.getDerivedStateFromProps;O=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||p!==f)&&xh(e,u,a,f),Rl=!1;var E=e.memoizedState;u.state=E,su(e,a,u,n),cu(),p=e.memoizedState,o||E!==p||Rl?(typeof x=="function"&&(Qs(e,l,x,a),p=e.memoizedState),(d=Rl||_h(e,l,d,a,E,p,f))?(O||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=p),u.props=a,u.state=p,u.context=f,a=d):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,ms(t,e),f=e.memoizedProps,O=Aa(l,f),u.props=O,x=e.pendingProps,E=u.context,p=l.contextType,d=Wa,typeof p=="object"&&p!==null&&(d=te(p)),o=l.getDerivedStateFromProps,(p=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==x||E!==d)&&xh(e,u,a,d),Rl=!1,E=e.memoizedState,u.state=E,su(e,a,u,n),cu();var j=e.memoizedState;f!==x||E!==j||Rl||t!==null&&t.dependencies!==null&&mi(t.dependencies)?(typeof o=="function"&&(Qs(e,l,o,a),j=e.memoizedState),(O=Rl||_h(e,l,O,a,E,j,d)||t!==null&&t.dependencies!==null&&mi(t.dependencies))?(p||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,j,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,j,d)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=j),u.props=a,u.state=j,u.context=d,a=O):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Ri(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=Ta(e,t.child,null,n),e.child=Ta(e,null,l,n)):ee(t,e,l,n),e.memoizedState=u.state,t=e.child):t=ol(t,e,n),t}function Zh(t,e,l,a){return va(),e.flags|=256,ee(t,e,l,a),e.child}var Ls={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(t){return{baseLanes:t,cachePool:Co()}}function Ks(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=xe),t}function Kh(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),f&&(n=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(ht){if(n?ql(e):Ql(),(t=Dt)?(t=Id(t,Be),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ml!==null?{id:ke,overflow:Fe}:null,retryLane:536870912,hydrationErrors:null},l=jo(t),l.return=e,e.child=l,Pt=e,Dt=null)):t=null,t===null)throw Dl(e);return _f(t)?e.lanes=32:e.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Ql(),n=e.mode,o=Ui({mode:"hidden",children:o},n),a=ya(a,n,l,null),o.return=e,a.return=e,o.sibling=a,e.child=o,a=e.child,a.memoizedState=Zs(l),a.childLanes=Ks(t,f,l),e.memoizedState=Ls,du(null,a)):(ql(e),Vs(e,o))}var d=t.memoizedState;if(d!==null&&(o=d.dehydrated,o!==null)){if(u)e.flags&256?(ql(e),e.flags&=-257,e=ws(t,e,l)):e.memoizedState!==null?(Ql(),e.child=t.child,e.flags|=128,e=null):(Ql(),o=a.fallback,n=e.mode,a=Ui({mode:"visible",children:a.children},n),o=ya(o,n,l,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,Ta(e,t.child,null,l),a=e.child,a.memoizedState=Zs(l),a.childLanes=Ks(t,f,l),e.memoizedState=Ls,e=du(null,a));else if(ql(e),_f(o)){if(f=o.nextSibling&&o.nextSibling.dataset,f)var p=f.dgst;f=p,a=Error(r(419)),a.stack="",a.digest=f,eu({value:a,source:null,stack:null}),e=ws(t,e,l)}else if(Zt||en(t,e,l,!1),f=(l&t.childLanes)!==0,Zt||f){if(f=Nt,f!==null&&(a=Mr(f,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,ma(t,a),ge(f,t,a),Gs;zf(o)||Zi(),e=ws(t,e,l)}else zf(o)?(e.flags|=192,e.child=t.child,e=null):(t=d.treeContext,Dt=Ge(o.nextSibling),Pt=e,ht=!0,Nl=null,Be=!1,t!==null&&zo(e,t),e=Vs(e,a.children),e.flags|=4096);return e}return n?(Ql(),o=a.fallback,n=e.mode,d=t.child,p=d.sibling,a=ul(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,p!==null?o=ul(p,o):(o=ya(o,n,l,null),o.flags|=2),o.return=e,a.return=e,a.sibling=o,e.child=a,du(null,a),a=e.child,o=t.child.memoizedState,o===null?o=Zs(l):(n=o.cachePool,n!==null?(d=Xt._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Co(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=Ks(t,f,l),e.memoizedState=Ls,du(t.child,a)):(ql(e),l=t.child,t=l.sibling,l=ul(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function Vs(t,e){return e=Ui({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ui(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function ws(t,e,l){return Ta(e,t.child,null,l),t=Vs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Vh(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),cs(t.return,e,l)}function Js(t,e,l,a,n,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=u)}function wh(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var f=Yt.current,o=(f&2)!==0;if(o?(f=f&1|2,e.flags|=128):f&=1,Q(Yt,f),ee(t,e,a,l),a=ht?tu:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vh(t,l,e);else if(t.tag===19)Vh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&Ti(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Js(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Ti(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Js(e,!0,l,null,u,a);break;case"together":Js(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function ol(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Gl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(en(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=ul(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ul(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ks(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&mi(t)))}function Wv(t,e,l){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),Cl(e,Xt,t.memoizedState.cache),va();break;case 27:case 5:Yn(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:Cl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ss(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ql(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Kh(t,e,l):(ql(e),t=ol(t,e,l),t!==null?t.sibling:null);ql(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(en(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return wh(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Q(Yt,Yt.current),a)break;return null;case 22:return e.lanes=0,Bh(t,e,l,e.pendingProps);case 24:Cl(e,Xt,t.memoizedState.cache)}return ol(t,e,l)}function Jh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!ks(t,l)&&(e.flags&128)===0)return Zt=!1,Wv(t,e,l);Zt=(t.flags&131072)!==0}else Zt=!1,ht&&(e.flags&1048576)!==0&&Oo(e,tu,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=pa(e.elementType),e.type=t,typeof t=="function")Pc(t)?(a=Aa(t,a),e.tag=1,e=Lh(null,e,t,a,l)):(e.tag=0,e=Xs(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===X){e.tag=11,e=Hh(null,e,t,a,l);break t}else if(n===W){e.tag=14,e=qh(null,e,t,a,l);break t}}throw e=re(t)||t,Error(r(306,e,""))}}return e;case 0:return Xs(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Aa(a,e.pendingProps),Lh(t,e,a,n,l);case 3:t:{if(ie(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,ms(t,e),su(e,a,null,l);var f=e.memoizedState;if(a=f.cache,Cl(e,Xt,a),a!==u.cache&&ss(e,[Xt],l,!0),cu(),a=f.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Zh(t,e,a,l);break t}else if(a!==n){n=He(Error(r(424)),e),eu(n),e=Zh(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Dt=Ge(t.firstChild),Pt=e,ht=!0,Nl=null,Be=!0,l=Bo(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(va(),a===n){e=ol(t,e,l);break t}ee(t,e,a,l)}e=e.child}return e;case 26:return Ri(t,e),t===null?(l=nm(e.type,null,e.pendingProps,null))?e.memoizedState=l:ht||(l=e.type,t=e.pendingProps,a=$i(ct.current).createElement(l),a[It]=e,a[oe]=t,le(a,l,t),Ft(a),e.stateNode=a):e.memoizedState=nm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Yn(e),t===null&&ht&&(a=e.stateNode=em(e.type,e.pendingProps,ct.current),Pt=e,Be=!0,n=Dt,Vl(e.type)?(xf=n,Dt=Ge(a.firstChild)):Dt=n),ee(t,e,e.pendingProps.children,l),Ri(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ht&&((n=a=Dt)&&(a=_0(a,e.type,e.pendingProps,Be),a!==null?(e.stateNode=a,Pt=e,Dt=Ge(a.firstChild),Be=!1,n=!0):n=!1),n||Dl(e)),Yn(e),n=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,a=u.children,jf(n,u)?a=null:f!==null&&jf(n,f)&&(e.flags|=32),e.memoizedState!==null&&(n=Es(t,e,Lv,null,null,l),xu._currentValue=n),Ri(t,e),ee(t,e,a,l),e.child;case 6:return t===null&&ht&&((t=l=Dt)&&(l=x0(l,e.pendingProps,Be),l!==null?(e.stateNode=l,Pt=e,Dt=null,t=!0):t=!1),t||Dl(e)),null;case 13:return Kh(t,e,l);case 4:return ie(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Ta(e,null,a,l):ee(t,e,a,l),e.child;case 11:return Hh(t,e,e.type,e.pendingProps,l);case 7:return ee(t,e,e.pendingProps,l),e.child;case 8:return ee(t,e,e.pendingProps.children,l),e.child;case 12:return ee(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Cl(e,e.type,a.value),ee(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,ba(e),n=te(n),a=a(n),e.flags|=1,ee(t,e,a,l),e.child;case 14:return qh(t,e,e.type,e.pendingProps,l);case 15:return Qh(t,e,e.type,e.pendingProps,l);case 19:return wh(t,e,l);case 31:return $v(t,e,l);case 22:return Bh(t,e,l,e.pendingProps);case 24:return ba(e),a=te(Xt),t===null?(n=os(),n===null&&(n=Nt,u=fs(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},ds(e),Cl(e,Xt,n)):((t.lanes&l)!==0&&(ms(t,e),su(e,null,null,l),cu()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Cl(e,Xt,a)):(a=u.cache,Cl(e,Xt,a),a!==n.cache&&ss(e,[Xt],l,!0))),ee(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function hl(t){t.flags|=4}function Fs(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(pd())t.flags|=8192;else throw Ea=bi,hs}else t.flags&=-16777217}function kh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!fm(e))if(pd())t.flags|=8192;else throw Ea=bi,hs}function Hi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?zr():536870912,t.lanes|=e,mn|=e)}function mu(t,e){if(!ht)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Ct(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Iv(t,e,l){var a=e.pendingProps;switch(as(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(e),null;case 1:return Ct(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),sl(Xt),Bt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(tn(e)?hl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,us())),Ct(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(hl(e),u!==null?(Ct(e),kh(e,u)):(Ct(e),Fs(e,n,null,a,l))):u?u!==t.memoizedState?(hl(e),Ct(e),kh(e,u)):(Ct(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&hl(e),Ct(e),Fs(e,n,t,a,l)),null;case 27:if(wu(e),l=ct.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&hl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Ct(e),null}t=G.current,tn(e)?_o(e):(t=em(n,a,l),e.stateNode=t,hl(e))}return Ct(e),null;case 5:if(wu(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&hl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Ct(e),null}if(u=G.current,tn(e))_o(e);else{var f=$i(ct.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}u[It]=e,u[oe]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(le(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&hl(e)}}return Ct(e),Fs(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&hl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=ct.current,tn(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Pt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[It]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Kd(t.nodeValue,l)),t||Dl(e,!0)}else t=$i(t).createTextNode(a),t[It]=e,e.stateNode=t}return Ct(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=tn(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[It]=e}else va(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ct(e),t=!1}else l=us(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ct(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=tn(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[It]=e}else va(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ct(e),n=!1}else n=us(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Hi(e,e.updateQueue),Ct(e),null);case 4:return Bt(),t===null&&bf(e.stateNode.containerInfo),Ct(e),null;case 10:return sl(e.type),Ct(e),null;case 19:if(M(Yt),a=e.memoizedState,a===null)return Ct(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)mu(a,!1);else{if(qt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ti(t),u!==null){for(e.flags|=128,mu(a,!1),t=u.updateQueue,e.updateQueue=t,Hi(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)To(l,t),l=l.sibling;return Q(Yt,Yt.current&1|2),ht&&il(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&pe()>Gi&&(e.flags|=128,n=!0,mu(a,!1),e.lanes=4194304)}else{if(!n)if(t=Ti(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Hi(e,t),mu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ht)return Ct(e),null}else 2*pe()-a.renderingStartTime>Gi&&l!==536870912&&(e.flags|=128,n=!0,mu(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=pe(),t.sibling=null,l=Yt.current,Q(Yt,n?l&1|2:l&1),ht&&il(e,a.treeForkCount),t):(Ct(e),null);case 22:case 23:return ze(e),bs(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Ct(e),e.subtreeFlags&6&&(e.flags|=8192)):Ct(e),l=e.updateQueue,l!==null&&Hi(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&M(Sa),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),sl(Xt),Ct(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Pv(t,e){switch(as(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sl(Xt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return wu(e),null;case 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(r(340));va()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));va()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return M(Yt),null;case 4:return Bt(),null;case 10:return sl(e.type),null;case 22:case 23:return ze(e),bs(),t!==null&&M(Sa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return sl(Xt),null;case 25:return null;default:return null}}function Fh(t,e){switch(as(e),e.tag){case 3:sl(Xt),Bt();break;case 26:case 27:case 5:wu(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:M(Yt);break;case 10:sl(e.type);break;case 22:case 23:ze(e),bs(),t!==null&&M(Sa);break;case 24:sl(Xt)}}function yu(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,f=l.inst;a=u(),f.destroy=a}l=l.next}while(l!==n)}}catch(o){At(e,e.return,o)}}function Bl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var f=a.inst,o=f.destroy;if(o!==void 0){f.destroy=void 0,n=e;var d=l,p=o;try{p()}catch(O){At(n,d,O)}}}a=a.next}while(a!==u)}}catch(O){At(e,e.return,O)}}function $h(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Go(e,l)}catch(a){At(t,t.return,a)}}}function Wh(t,e,l){l.props=Aa(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){At(t,e,a)}}function vu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){At(t,e,n)}}function $e(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){At(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){At(t,e,n)}else l.current=null}function Ih(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){At(t,t.return,n)}}function $s(t,e,l){try{var a=t.stateNode;E0(a,t.type,l,e),a[oe]=e}catch(n){At(t,t.return,n)}}function Ph(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vl(t.type)||t.tag===4}function Ws(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ph(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Vl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Is(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=al));else if(a!==4&&(a===27&&Vl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Is(t,e,l),t=t.sibling;t!==null;)Is(t,e,l),t=t.sibling}function qi(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Vl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(qi(t,e,l),t=t.sibling;t!==null;)qi(t,e,l),t=t.sibling}function td(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);le(e,a,l),e[It]=t,e[oe]=l}catch(u){At(t,t.return,u)}}var dl=!1,Kt=!1,Ps=!1,ed=typeof WeakSet=="function"?WeakSet:Set,$t=null;function t0(t,e){if(t=t.containerInfo,Ef=ac,t=ho(t),wc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var f=0,o=-1,d=-1,p=0,O=0,x=t,E=null;e:for(;;){for(var j;x!==l||n!==0&&x.nodeType!==3||(o=f+n),x!==u||a!==0&&x.nodeType!==3||(d=f+a),x.nodeType===3&&(f+=x.nodeValue.length),(j=x.firstChild)!==null;)E=x,x=j;for(;;){if(x===t)break e;if(E===l&&++p===n&&(o=f),E===u&&++O===a&&(d=f),(j=x.nextSibling)!==null)break;x=E,E=x.parentNode}x=j}l=o===-1||d===-1?null:{start:o,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(Tf={focusedElem:t,selectionRange:l},ac=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var B=Aa(l.type,n);t=a.getSnapshotBeforeUpdate(B,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(J){At(l,l.return,J)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Of(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Of(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function ld(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:yl(t,l),a&4&&yu(5,l);break;case 1:if(yl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){At(l,l.return,f)}else{var n=Aa(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){At(l,l.return,f)}}a&64&&$h(l),a&512&&vu(l,l.return);break;case 3:if(yl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Go(t,e)}catch(f){At(l,l.return,f)}}break;case 27:e===null&&a&4&&td(l);case 26:case 5:yl(t,l),e===null&&a&4&&Ih(l),a&512&&vu(l,l.return);break;case 12:yl(t,l);break;case 31:yl(t,l),a&4&&ud(t,l);break;case 13:yl(t,l),a&4&&id(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=f0.bind(null,l),M0(t,l))));break;case 22:if(a=l.memoizedState!==null||dl,!a){e=e!==null&&e.memoizedState!==null||Kt,n=dl;var u=Kt;dl=a,(Kt=e)&&!u?vl(t,l,(l.subtreeFlags&8772)!==0):yl(t,l),dl=n,Kt=u}break;case 30:break;default:yl(t,l)}}function ad(t){var e=t.alternate;e!==null&&(t.alternate=null,ad(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Mc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Rt=null,de=!1;function ml(t,e,l){for(l=l.child;l!==null;)nd(t,e,l),l=l.sibling}function nd(t,e,l){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(Gn,l)}catch{}switch(l.tag){case 26:Kt||$e(l,e),ml(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Kt||$e(l,e);var a=Rt,n=de;Vl(l.type)&&(Rt=l.stateNode,de=!1),ml(t,e,l),Ou(l.stateNode),Rt=a,de=n;break;case 5:Kt||$e(l,e);case 6:if(a=Rt,n=de,Rt=null,ml(t,e,l),Rt=a,de=n,Rt!==null)if(de)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(l.stateNode)}catch(u){At(l,e,u)}else try{Rt.removeChild(l.stateNode)}catch(u){At(l,e,u)}break;case 18:Rt!==null&&(de?(t=Rt,$d(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Tn(t)):$d(Rt,l.stateNode));break;case 4:a=Rt,n=de,Rt=l.stateNode.containerInfo,de=!0,ml(t,e,l),Rt=a,de=n;break;case 0:case 11:case 14:case 15:Bl(2,l,e),Kt||Bl(4,l,e),ml(t,e,l);break;case 1:Kt||($e(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Wh(l,e,a)),ml(t,e,l);break;case 21:ml(t,e,l);break;case 22:Kt=(a=Kt)||l.memoizedState!==null,ml(t,e,l),Kt=a;break;default:ml(t,e,l)}}function ud(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Tn(t)}catch(l){At(e,e.return,l)}}}function id(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Tn(t)}catch(l){At(e,e.return,l)}}function e0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ed),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ed),e;default:throw Error(r(435,t.tag))}}function Qi(t,e){var l=e0(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=r0.bind(null,t,a);a.then(n,n)}})}function me(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,f=e,o=f;t:for(;o!==null;){switch(o.tag){case 27:if(Vl(o.type)){Rt=o.stateNode,de=!1;break t}break;case 5:Rt=o.stateNode,de=!1;break t;case 3:case 4:Rt=o.stateNode.containerInfo,de=!0;break t}o=o.return}if(Rt===null)throw Error(r(160));nd(u,f,n),Rt=null,de=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)cd(e,t),e=e.sibling}var Ke=null;function cd(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:me(e,t),ye(t),a&4&&(Bl(3,t,t.return),yu(3,t),Bl(5,t,t.return));break;case 1:me(e,t),ye(t),a&512&&(Kt||l===null||$e(l,l.return)),a&64&&dl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ke;if(me(e,t),ye(t),a&512&&(Kt||l===null||$e(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Zn]||u[It]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),le(u,a,l),u[It]=t,Ft(u),a=u;break t;case"link":var f=cm("link","href",n).get(a+(l.href||""));if(f){for(var o=0;o<f.length;o++)if(u=f[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(o,1);break e}}u=n.createElement(a),le(u,a,l),n.head.appendChild(u);break;case"meta":if(f=cm("meta","content",n).get(a+(l.content||""))){for(o=0;o<f.length;o++)if(u=f[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(o,1);break e}}u=n.createElement(a),le(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[It]=t,Ft(u),a=u}t.stateNode=a}else sm(n,t.type,t.stateNode);else t.stateNode=im(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?sm(n,t.type,t.stateNode):im(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&$s(t,t.memoizedProps,l.memoizedProps)}break;case 27:me(e,t),ye(t),a&512&&(Kt||l===null||$e(l,l.return)),l!==null&&a&4&&$s(t,t.memoizedProps,l.memoizedProps);break;case 5:if(me(e,t),ye(t),a&512&&(Kt||l===null||$e(l,l.return)),t.flags&32){n=t.stateNode;try{Ka(n,"")}catch(B){At(t,t.return,B)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,$s(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Ps=!0);break;case 6:if(me(e,t),ye(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(B){At(t,t.return,B)}}break;case 3:if(Pi=null,n=Ke,Ke=Wi(e.containerInfo),me(e,t),Ke=n,ye(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Tn(e.containerInfo)}catch(B){At(t,t.return,B)}Ps&&(Ps=!1,sd(t));break;case 4:a=Ke,Ke=Wi(t.stateNode.containerInfo),me(e,t),ye(t),Ke=a;break;case 12:me(e,t),ye(t);break;case 31:me(e,t),ye(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Qi(t,a)));break;case 13:me(e,t),ye(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Yi=pe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Qi(t,a)));break;case 22:n=t.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,p=dl,O=Kt;if(dl=p||n,Kt=O||d,me(e,t),Kt=O,dl=p,ye(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||d||dl||Kt||Oa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){d=l=e;try{if(u=d.stateNode,n)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{o=d.stateNode;var x=d.memoizedProps.style,E=x!=null&&x.hasOwnProperty("display")?x.display:null;o.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(B){At(d,d.return,B)}}}else if(e.tag===6){if(l===null){d=e;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(B){At(d,d.return,B)}}}else if(e.tag===18){if(l===null){d=e;try{var j=d.stateNode;n?Wd(j,!0):Wd(d.stateNode,!1)}catch(B){At(d,d.return,B)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Qi(t,l))));break;case 19:me(e,t),ye(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Qi(t,a)));break;case 30:break;case 21:break;default:me(e,t),ye(t)}}function ye(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Ph(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Ws(t);qi(t,u,n);break;case 5:var f=l.stateNode;l.flags&32&&(Ka(f,""),l.flags&=-33);var o=Ws(t);qi(t,o,f);break;case 3:case 4:var d=l.stateNode.containerInfo,p=Ws(t);Is(t,p,d);break;default:throw Error(r(161))}}catch(O){At(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function sd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;sd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function yl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ld(t,e.alternate,e),e=e.sibling}function Oa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Bl(4,e,e.return),Oa(e);break;case 1:$e(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Wh(e,e.return,l),Oa(e);break;case 27:Ou(e.stateNode);case 26:case 5:$e(e,e.return),Oa(e);break;case 22:e.memoizedState===null&&Oa(e);break;case 30:Oa(e);break;default:Oa(e)}t=t.sibling}}function vl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:vl(n,u,l),yu(4,u);break;case 1:if(vl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(p){At(a,a.return,p)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)Yo(d[n],o)}catch(p){At(a,a.return,p)}}l&&f&64&&$h(u),vu(u,u.return);break;case 27:td(u);case 26:case 5:vl(n,u,l),l&&a===null&&f&4&&Ih(u),vu(u,u.return);break;case 12:vl(n,u,l);break;case 31:vl(n,u,l),l&&f&4&&ud(n,u);break;case 13:vl(n,u,l),l&&f&4&&id(n,u);break;case 22:u.memoizedState===null&&vl(n,u,l),vu(u,u.return);break;case 30:break;default:vl(n,u,l)}e=e.sibling}}function tf(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&lu(l))}function ef(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&lu(t))}function Ve(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fd(t,e,l,a),e=e.sibling}function fd(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ve(t,e,l,a),n&2048&&yu(9,e);break;case 1:Ve(t,e,l,a);break;case 3:Ve(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&lu(t)));break;case 12:if(n&2048){Ve(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,o=u.onPostCommit;typeof o=="function"&&o(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(d){At(e,e.return,d)}}else Ve(t,e,l,a);break;case 31:Ve(t,e,l,a);break;case 13:Ve(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?Ve(t,e,l,a):gu(t,e):u._visibility&2?Ve(t,e,l,a):(u._visibility|=2,on(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&tf(f,e);break;case 24:Ve(t,e,l,a),n&2048&&ef(e.alternate,e);break;default:Ve(t,e,l,a)}}function on(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,o=l,d=a,p=f.flags;switch(f.tag){case 0:case 11:case 15:on(u,f,o,d,n),yu(8,f);break;case 23:break;case 22:var O=f.stateNode;f.memoizedState!==null?O._visibility&2?on(u,f,o,d,n):gu(u,f):(O._visibility|=2,on(u,f,o,d,n)),n&&p&2048&&tf(f.alternate,f);break;case 24:on(u,f,o,d,n),n&&p&2048&&ef(f.alternate,f);break;default:on(u,f,o,d,n)}e=e.sibling}}function gu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:gu(l,a),n&2048&&tf(a.alternate,a);break;case 24:gu(l,a),n&2048&&ef(a.alternate,a);break;default:gu(l,a)}e=e.sibling}}var bu=8192;function hn(t,e,l){if(t.subtreeFlags&bu)for(t=t.child;t!==null;)rd(t,e,l),t=t.sibling}function rd(t,e,l){switch(t.tag){case 26:hn(t,e,l),t.flags&bu&&t.memoizedState!==null&&X0(l,Ke,t.memoizedState,t.memoizedProps);break;case 5:hn(t,e,l);break;case 3:case 4:var a=Ke;Ke=Wi(t.stateNode.containerInfo),hn(t,e,l),Ke=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=bu,bu=16777216,hn(t,e,l),bu=a):hn(t,e,l));break;default:hn(t,e,l)}}function od(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Su(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];$t=a,dd(a,t)}od(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hd(t),t=t.sibling}function hd(t){switch(t.tag){case 0:case 11:case 15:Su(t),t.flags&2048&&Bl(9,t,t.return);break;case 3:Su(t);break;case 12:Su(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Bi(t)):Su(t);break;default:Su(t)}}function Bi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];$t=a,dd(a,t)}od(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Bl(8,e,e.return),Bi(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Bi(e));break;default:Bi(e)}t=t.sibling}}function dd(t,e){for(;$t!==null;){var l=$t;switch(l.tag){case 0:case 11:case 15:Bl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:lu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$t=a;else t:for(l=t;$t!==null;){a=$t;var n=a.sibling,u=a.return;if(ad(a),a===l){$t=null;break t}if(n!==null){n.return=u,$t=n;break t}$t=u}}}var l0={getCacheForType:function(t){var e=te(Xt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return te(Xt).controller.signal}},a0=typeof WeakMap=="function"?WeakMap:Map,vt=0,Nt=null,st=null,rt=0,jt=0,_e=null,Yl=!1,dn=!1,lf=!1,gl=0,qt=0,Gl=0,za=0,af=0,xe=0,mn=0,pu=null,ve=null,nf=!1,Yi=0,md=0,Gi=1/0,Xi=null,Xl=null,Jt=0,Ll=null,yn=null,bl=0,uf=0,cf=null,yd=null,Eu=0,sf=null;function Me(){return(vt&2)!==0&&rt!==0?rt&-rt:z.T!==null?mf():Nr()}function vd(){if(xe===0)if((rt&536870912)===0||ht){var t=Fu;Fu<<=1,(Fu&3932160)===0&&(Fu=262144),xe=t}else xe=536870912;return t=Oe.current,t!==null&&(t.flags|=32),xe}function ge(t,e,l){(t===Nt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(vn(t,0),Zl(t,rt,xe,!1)),Ln(t,l),((vt&2)===0||t!==Nt)&&(t===Nt&&((vt&2)===0&&(za|=l),qt===4&&Zl(t,rt,xe,!1)),We(t))}function gd(t,e,l){if((vt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Xn(t,e),n=a?i0(t,e):rf(t,e,!0),u=a;do{if(n===0){dn&&!a&&Zl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!n0(l)){n=rf(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var o=t;n=pu;var d=o.current.memoizedState.isDehydrated;if(d&&(vn(o,f).flags|=256),f=rf(o,f,!1),f!==2){if(lf&&!d){o.errorRecoveryDisabledLanes|=u,za|=u,n=4;break t}u=ve,ve=n,u!==null&&(ve===null?ve=u:ve.push.apply(ve,u))}n=f}if(u=!1,n!==2)continue}}if(n===1){vn(t,0),Zl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Zl(a,e,xe,!Yl);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=Yi+300-pe(),10<n)){if(Zl(a,e,xe,!Yl),Wu(a,0,!0)!==0)break t;bl=e,a.timeoutHandle=kd(bd.bind(null,a,l,ve,Xi,nf,e,xe,za,mn,Yl,u,"Throttled",-0,0),n);break t}bd(a,l,ve,Xi,nf,e,xe,za,mn,Yl,u,null,-0,0)}}break}while(!0);We(t)}function bd(t,e,l,a,n,u,f,o,d,p,O,x,E,j){if(t.timeoutHandle=-1,x=e.subtreeFlags,x&8192||(x&16785408)===16785408){x={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:al},rd(e,u,x);var B=(u&62914560)===u?Yi-pe():(u&4194048)===u?md-pe():0;if(B=L0(x,B),B!==null){bl=u,t.cancelPendingCommit=B(zd.bind(null,t,e,u,l,a,n,f,o,d,O,x,null,E,j)),Zl(t,u,f,!p);return}}zd(t,e,u,l,a,n,f,o,d)}function n0(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!je(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Zl(t,e,l,a){e&=~af,e&=~za,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-Te(n),f=1<<u;a[u]=-1,n&=~f}l!==0&&_r(t,l,e)}function Li(){return(vt&6)===0?(Tu(0),!1):!0}function ff(){if(st!==null){if(jt===0)var t=st.return;else t=st,cl=ga=null,As(t),un=null,nu=0,t=st;for(;t!==null;)Fh(t.alternate,t),t=t.return;st=null}}function vn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,A0(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),bl=0,ff(),Nt=t,st=l=ul(t.current,null),rt=e,jt=0,_e=null,Yl=!1,dn=Xn(t,e),lf=!1,mn=xe=af=za=Gl=qt=0,ve=pu=null,nf=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Te(a),u=1<<n;e|=t[n],a&=~u}return gl=e,fi(),l}function Sd(t,e){at=null,z.H=hu,e===nn||e===gi?(e=Ho(),jt=3):e===hs?(e=Ho(),jt=4):jt=e===Gs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,st===null&&(qt=1,Di(t,He(e,t.current)))}function pd(){var t=Oe.current;return t===null?!0:(rt&4194048)===rt?Ye===null:(rt&62914560)===rt||(rt&536870912)!==0?t===Ye:!1}function Ed(){var t=z.H;return z.H=hu,t===null?hu:t}function Td(){var t=z.A;return z.A=l0,t}function Zi(){qt=4,Yl||(rt&4194048)!==rt&&Oe.current!==null||(dn=!0),(Gl&134217727)===0&&(za&134217727)===0||Nt===null||Zl(Nt,rt,xe,!1)}function rf(t,e,l){var a=vt;vt|=2;var n=Ed(),u=Td();(Nt!==t||rt!==e)&&(Xi=null,vn(t,e)),e=!1;var f=qt;t:do try{if(jt!==0&&st!==null){var o=st,d=_e;switch(jt){case 8:ff(),f=6;break t;case 3:case 2:case 9:case 6:Oe.current===null&&(e=!0);var p=jt;if(jt=0,_e=null,gn(t,o,d,p),l&&dn){f=0;break t}break;default:p=jt,jt=0,_e=null,gn(t,o,d,p)}}u0(),f=qt;break}catch(O){Sd(t,O)}while(!0);return e&&t.shellSuspendCounter++,cl=ga=null,vt=a,z.H=n,z.A=u,st===null&&(Nt=null,rt=0,fi()),f}function u0(){for(;st!==null;)jd(st)}function i0(t,e){var l=vt;vt|=2;var a=Ed(),n=Td();Nt!==t||rt!==e?(Xi=null,Gi=pe()+500,vn(t,e)):dn=Xn(t,e);t:do try{if(jt!==0&&st!==null){e=st;var u=_e;e:switch(jt){case 1:jt=0,_e=null,gn(t,e,u,1);break;case 2:case 9:if(Ro(u)){jt=0,_e=null,Ad(e);break}e=function(){jt!==2&&jt!==9||Nt!==t||(jt=7),We(t)},u.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:Ro(u)?(jt=0,_e=null,Ad(e)):(jt=0,_e=null,gn(t,e,u,7));break;case 5:var f=null;switch(st.tag){case 26:f=st.memoizedState;case 5:case 27:var o=st;if(f?fm(f):o.stateNode.complete){jt=0,_e=null;var d=o.sibling;if(d!==null)st=d;else{var p=o.return;p!==null?(st=p,Ki(p)):st=null}break e}}jt=0,_e=null,gn(t,e,u,5);break;case 6:jt=0,_e=null,gn(t,e,u,6);break;case 8:ff(),qt=6;break t;default:throw Error(r(462))}}c0();break}catch(O){Sd(t,O)}while(!0);return cl=ga=null,z.H=a,z.A=n,vt=l,st!==null?0:(Nt=null,rt=0,fi(),qt)}function c0(){for(;st!==null&&!Ny();)jd(st)}function jd(t){var e=Jh(t.alternate,t,gl);t.memoizedProps=t.pendingProps,e===null?Ki(t):st=e}function Ad(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Xh(l,e,e.pendingProps,e.type,void 0,rt);break;case 11:e=Xh(l,e,e.pendingProps,e.type.render,e.ref,rt);break;case 5:As(e);default:Fh(l,e),e=st=To(e,gl),e=Jh(l,e,gl)}t.memoizedProps=t.pendingProps,e===null?Ki(t):st=e}function gn(t,e,l,a){cl=ga=null,As(e),un=null,nu=0;var n=e.return;try{if(Fv(t,n,e,l,rt)){qt=1,Di(t,He(l,t.current)),st=null;return}}catch(u){if(n!==null)throw st=n,u;qt=1,Di(t,He(l,t.current)),st=null;return}e.flags&32768?(ht||a===1?t=!0:dn||(rt&536870912)!==0?t=!1:(Yl=t=!0,(a===2||a===9||a===3||a===6)&&(a=Oe.current,a!==null&&a.tag===13&&(a.flags|=16384))),Od(e,t)):Ki(e)}function Ki(t){var e=t;do{if((e.flags&32768)!==0){Od(e,Yl);return}t=e.return;var l=Iv(e.alternate,e,gl);if(l!==null){st=l;return}if(e=e.sibling,e!==null){st=e;return}st=e=t}while(e!==null);qt===0&&(qt=5)}function Od(t,e){do{var l=Pv(t.alternate,t);if(l!==null){l.flags&=32767,st=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){st=t;return}st=t=l}while(t!==null);qt=6,st=null}function zd(t,e,l,a,n,u,f,o,d){t.cancelPendingCommit=null;do Vi();while(Jt!==0);if((vt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=Wc,Gy(t,l,u,f,o,d),t===Nt&&(st=Nt=null,rt=0),yn=e,Ll=t,bl=l,uf=u,cf=n,yd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,o0(Ju,function(){return Dd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=H.p,H.p=2,f=vt,vt|=4;try{t0(t,e,l)}finally{vt=f,H.p=n,z.T=a}}Jt=1,_d(),xd(),Md()}}function _d(){if(Jt===1){Jt=0;var t=Ll,e=yn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=H.p;H.p=2;var n=vt;vt|=4;try{cd(e,t);var u=Tf,f=ho(t.containerInfo),o=u.focusedElem,d=u.selectionRange;if(f!==o&&o&&o.ownerDocument&&oo(o.ownerDocument.documentElement,o)){if(d!==null&&wc(o)){var p=d.start,O=d.end;if(O===void 0&&(O=p),"selectionStart"in o)o.selectionStart=p,o.selectionEnd=Math.min(O,o.value.length);else{var x=o.ownerDocument||document,E=x&&x.defaultView||window;if(E.getSelection){var j=E.getSelection(),B=o.textContent.length,J=Math.min(d.start,B),xt=d.end===void 0?J:Math.min(d.end,B);!j.extend&&J>xt&&(f=xt,xt=J,J=f);var b=ro(o,J),v=ro(o,xt);if(b&&v&&(j.rangeCount!==1||j.anchorNode!==b.node||j.anchorOffset!==b.offset||j.focusNode!==v.node||j.focusOffset!==v.offset)){var S=x.createRange();S.setStart(b.node,b.offset),j.removeAllRanges(),J>xt?(j.addRange(S),j.extend(v.node,v.offset)):(S.setEnd(v.node,v.offset),j.addRange(S))}}}}for(x=[],j=o;j=j.parentNode;)j.nodeType===1&&x.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<x.length;o++){var _=x[o];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}ac=!!Ef,Tf=Ef=null}finally{vt=n,H.p=a,z.T=l}}t.current=e,Jt=2}}function xd(){if(Jt===2){Jt=0;var t=Ll,e=yn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=H.p;H.p=2;var n=vt;vt|=4;try{ld(t,e.alternate,e)}finally{vt=n,H.p=a,z.T=l}}Jt=3}}function Md(){if(Jt===4||Jt===3){Jt=0,Dy();var t=Ll,e=yn,l=bl,a=yd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,yn=Ll=null,Nd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Xl=null),_c(l),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(Gn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=z.T,n=H.p,H.p=2,z.T=null;try{for(var u=t.onRecoverableError,f=0;f<a.length;f++){var o=a[f];u(o.value,{componentStack:o.stack})}}finally{z.T=e,H.p=n}}(bl&3)!==0&&Vi(),We(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===sf?Eu++:(Eu=0,sf=t):Eu=0,Tu(0)}}function Nd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,lu(e)))}function Vi(){return _d(),xd(),Md(),Dd()}function Dd(){if(Jt!==5)return!1;var t=Ll,e=uf;uf=0;var l=_c(bl),a=z.T,n=H.p;try{H.p=32>l?32:l,z.T=null,l=cf,cf=null;var u=Ll,f=bl;if(Jt=0,yn=Ll=null,bl=0,(vt&6)!==0)throw Error(r(331));var o=vt;if(vt|=4,hd(u.current),fd(u,u.current,f,l),vt=o,Tu(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(Gn,u)}catch{}return!0}finally{H.p=n,z.T=a,Nd(t,e)}}function Cd(t,e,l){e=He(l,e),e=Ys(t.stateNode,e,2),t=Hl(t,e,2),t!==null&&(Ln(t,2),We(t))}function At(t,e,l){if(t.tag===3)Cd(t,t,l);else for(;e!==null;){if(e.tag===3){Cd(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Xl===null||!Xl.has(a))){t=He(l,t),l=Rh(2),a=Hl(e,l,2),a!==null&&(Uh(l,a,e,t),Ln(a,2),We(a));break}}e=e.return}}function of(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new a0;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(lf=!0,n.add(l),t=s0.bind(null,t,e,l),e.then(t,t))}function s0(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(rt&l)===l&&(qt===4||qt===3&&(rt&62914560)===rt&&300>pe()-Yi?(vt&2)===0&&vn(t,0):af|=l,mn===rt&&(mn=0)),We(t)}function Rd(t,e){e===0&&(e=zr()),t=ma(t,e),t!==null&&(Ln(t,e),We(t))}function f0(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Rd(t,l)}function r0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),Rd(t,l)}function o0(t,e){return jc(t,e)}var wi=null,bn=null,hf=!1,Ji=!1,df=!1,Kl=0;function We(t){t!==bn&&t.next===null&&(bn===null?wi=bn=t:bn=bn.next=t),Ji=!0,hf||(hf=!0,d0())}function Tu(t,e){if(!df&&Ji){df=!0;do for(var l=!1,a=wi;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var f=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-Te(42|t)+1)-1,u&=n&~(f&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Qd(a,u))}else u=rt,u=Wu(a,a===Nt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Xn(a,u)||(l=!0,Qd(a,u));a=a.next}while(l);df=!1}}function h0(){Ud()}function Ud(){Ji=hf=!1;var t=0;Kl!==0&&j0()&&(t=Kl);for(var e=pe(),l=null,a=wi;a!==null;){var n=a.next,u=Hd(a,e);u===0?(a.next=null,l===null?wi=n:l.next=n,n===null&&(bn=l)):(l=a,(t!==0||(u&3)!==0)&&(Ji=!0)),a=n}Jt!==0&&Jt!==5||Tu(t),Kl!==0&&(Kl=0)}function Hd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-Te(u),o=1<<f,d=n[f];d===-1?((o&l)===0||(o&a)!==0)&&(n[f]=Yy(o,e)):d<=e&&(t.expiredLanes|=o),u&=~o}if(e=Nt,l=rt,l=Wu(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ac(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Xn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Ac(a),_c(l)){case 2:case 8:l=Ar;break;case 32:l=Ju;break;case 268435456:l=Or;break;default:l=Ju}return a=qd.bind(null,t),l=jc(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Ac(a),t.callbackPriority=2,t.callbackNode=null,2}function qd(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Vi()&&t.callbackNode!==l)return null;var a=rt;return a=Wu(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(gd(t,a,e),Hd(t,pe()),t.callbackNode!=null&&t.callbackNode===l?qd.bind(null,t):null)}function Qd(t,e){if(Vi())return null;gd(t,e,!0)}function d0(){O0(function(){(vt&6)!==0?jc(jr,h0):Ud()})}function mf(){if(Kl===0){var t=ln;t===0&&(t=ku,ku<<=1,(ku&261888)===0&&(ku=256)),Kl=t}return Kl}function Bd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ei(""+t)}function Yd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function m0(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Bd((n[oe]||null).action),f=a.submitter;f&&(e=(e=f[oe]||null)?Bd(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var o=new ui("action","action",null,a,n);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Kl!==0){var d=f?Yd(n,f):new FormData(n);Rs(l,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(o.preventDefault(),d=f?Yd(n,f):new FormData(n),Rs(l,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var yf=0;yf<$c.length;yf++){var vf=$c[yf],y0=vf.toLowerCase(),v0=vf[0].toUpperCase()+vf.slice(1);Ze(y0,"on"+v0)}Ze(vo,"onAnimationEnd"),Ze(go,"onAnimationIteration"),Ze(bo,"onAnimationStart"),Ze("dblclick","onDoubleClick"),Ze("focusin","onFocus"),Ze("focusout","onBlur"),Ze(Cv,"onTransitionRun"),Ze(Rv,"onTransitionStart"),Ze(Uv,"onTransitionCancel"),Ze(So,"onTransitionEnd"),La("onMouseEnter",["mouseout","mouseover"]),La("onMouseLeave",["mouseout","mouseover"]),La("onPointerEnter",["pointerout","pointerover"]),La("onPointerLeave",["pointerout","pointerover"]),ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ju="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(" "),g0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ju));function Gd(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var f=a.length-1;0<=f;f--){var o=a[f],d=o.instance,p=o.currentTarget;if(o=o.listener,d!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=p;try{u(n)}catch(O){si(O)}n.currentTarget=null,u=d}else for(f=0;f<a.length;f++){if(o=a[f],d=o.instance,p=o.currentTarget,o=o.listener,d!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=p;try{u(n)}catch(O){si(O)}n.currentTarget=null,u=d}}}}function ft(t,e){var l=e[xc];l===void 0&&(l=e[xc]=new Set);var a=t+"__bubble";l.has(a)||(Xd(e,t,2,!1),l.add(a))}function gf(t,e,l){var a=0;e&&(a|=4),Xd(l,t,a,e)}var ki="_reactListening"+Math.random().toString(36).slice(2);function bf(t){if(!t[ki]){t[ki]=!0,Rr.forEach(function(l){l!=="selectionchange"&&(g0.has(l)||gf(l,!1,t),gf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ki]||(e[ki]=!0,gf("selectionchange",!1,e))}}function Xd(t,e,l,a){switch(vm(e)){case 2:var n=V0;break;case 8:n=w0;break;default:n=Rf}l=n.bind(null,e,l,t),n=void 0,!Qc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function Sf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var o=a.stateNode.containerInfo;if(o===n)break;if(f===4)for(f=a.return;f!==null;){var d=f.tag;if((d===3||d===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;o!==null;){if(f=Ya(o),f===null)return;if(d=f.tag,d===5||d===6||d===26||d===27){a=u=f;continue t}o=o.parentNode}}a=a.return}Vr(function(){var p=u,O=Hc(l),x=[];t:{var E=po.get(t);if(E!==void 0){var j=ui,B=t;switch(t){case"keypress":if(ai(l)===0)break t;case"keydown":case"keyup":j=rv;break;case"focusin":B="focus",j=Xc;break;case"focusout":B="blur",j=Xc;break;case"beforeblur":case"afterblur":j=Xc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Iy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=dv;break;case vo:case go:case bo:j=ev;break;case So:j=yv;break;case"scroll":case"scrollend":j=$y;break;case"wheel":j=gv;break;case"copy":case"cut":case"paste":j=av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=$r;break;case"toggle":case"beforetoggle":j=Sv}var J=(e&4)!==0,xt=!J&&(t==="scroll"||t==="scrollend"),b=J?E!==null?E+"Capture":null:E;J=[];for(var v=p,S;v!==null;){var _=v;if(S=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||S===null||b===null||(_=Vn(v,b),_!=null&&J.push(Au(v,_,S))),xt)break;v=v.return}0<J.length&&(E=new j(E,B,null,l,O),x.push({event:E,listeners:J}))}}if((e&7)===0){t:{if(E=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout",E&&l!==Uc&&(B=l.relatedTarget||l.fromElement)&&(Ya(B)||B[Ba]))break t;if((j||E)&&(E=O.window===O?O:(E=O.ownerDocument)?E.defaultView||E.parentWindow:window,j?(B=l.relatedTarget||l.toElement,j=p,B=B?Ya(B):null,B!==null&&(xt=T(B),J=B.tag,B!==xt||J!==5&&J!==27&&J!==6)&&(B=null)):(j=null,B=p),j!==B)){if(J=kr,_="onMouseLeave",b="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(J=$r,_="onPointerLeave",b="onPointerEnter",v="pointer"),xt=j==null?E:Kn(j),S=B==null?E:Kn(B),E=new J(_,v+"leave",j,l,O),E.target=xt,E.relatedTarget=S,_=null,Ya(O)===p&&(J=new J(b,v+"enter",B,l,O),J.target=S,J.relatedTarget=xt,_=J),xt=_,j&&B)e:{for(J=b0,b=j,v=B,S=0,_=b;_;_=J(_))S++;_=0;for(var w=v;w;w=J(w))_++;for(;0<S-_;)b=J(b),S--;for(;0<_-S;)v=J(v),_--;for(;S--;){if(b===v||v!==null&&b===v.alternate){J=b;break e}b=J(b),v=J(v)}J=null}else J=null;j!==null&&Ld(x,E,j,J,!1),B!==null&&xt!==null&&Ld(x,xt,B,J,!0)}}t:{if(E=p?Kn(p):window,j=E.nodeName&&E.nodeName.toLowerCase(),j==="select"||j==="input"&&E.type==="file")var mt=no;else if(lo(E))if(uo)mt=Mv;else{mt=_v;var L=zv}else j=E.nodeName,!j||j.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?p&&Rc(p.elementType)&&(mt=no):mt=xv;if(mt&&(mt=mt(t,p))){ao(x,mt,l,O);break t}L&&L(t,E,p),t==="focusout"&&p&&E.type==="number"&&p.memoizedProps.value!=null&&Cc(E,"number",E.value)}switch(L=p?Kn(p):window,t){case"focusin":(lo(L)||L.contentEditable==="true")&&(ka=L,Jc=p,Pn=null);break;case"focusout":Pn=Jc=ka=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,mo(x,l,O);break;case"selectionchange":if(Dv)break;case"keydown":case"keyup":mo(x,l,O)}var ut;if(Zc)t:{switch(t){case"compositionstart":var ot="onCompositionStart";break t;case"compositionend":ot="onCompositionEnd";break t;case"compositionupdate":ot="onCompositionUpdate";break t}ot=void 0}else Ja?to(t,l)&&(ot="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ot="onCompositionStart");ot&&(Wr&&l.locale!=="ko"&&(Ja||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&Ja&&(ut=wr()):(xl=O,Bc="value"in xl?xl.value:xl.textContent,Ja=!0)),L=Fi(p,ot),0<L.length&&(ot=new Fr(ot,t,null,l,O),x.push({event:ot,listeners:L}),ut?ot.data=ut:(ut=eo(l),ut!==null&&(ot.data=ut)))),(ut=Ev?Tv(t,l):jv(t,l))&&(ot=Fi(p,"onBeforeInput"),0<ot.length&&(L=new Fr("onBeforeInput","beforeinput",null,l,O),x.push({event:L,listeners:ot}),L.data=ut)),m0(x,t,p,l,O)}Gd(x,e)})}function Au(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Fi(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Vn(t,l),n!=null&&a.unshift(Au(t,n,u)),n=Vn(t,e),n!=null&&a.push(Au(t,n,u))),t.tag===3)return a;t=t.return}return[]}function b0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ld(t,e,l,a,n){for(var u=e._reactName,f=[];l!==null&&l!==a;){var o=l,d=o.alternate,p=o.stateNode;if(o=o.tag,d!==null&&d===a)break;o!==5&&o!==26&&o!==27||p===null||(d=p,n?(p=Vn(l,u),p!=null&&f.unshift(Au(l,p,d))):n||(p=Vn(l,u),p!=null&&f.push(Au(l,p,d)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var S0=/\r\n?/g,p0=/\u0000|\uFFFD/g;function Zd(t){return(typeof t=="string"?t:""+t).replace(S0,`
`).replace(p0,"")}function Kd(t,e){return e=Zd(e),Zd(t)===e}function _t(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ka(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ka(t,""+a);break;case"className":Pu(t,"class",a);break;case"tabIndex":Pu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pu(t,l,a);break;case"style":Zr(t,a,u);break;case"data":if(e!=="object"){Pu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ei(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&_t(t,e,"name",n.name,n,null),_t(t,e,"formEncType",n.formEncType,n,null),_t(t,e,"formMethod",n.formMethod,n,null),_t(t,e,"formTarget",n.formTarget,n,null)):(_t(t,e,"encType",n.encType,n,null),_t(t,e,"method",n.method,n,null),_t(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ei(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=al);break;case"onScroll":a!=null&&ft("scroll",t);break;case"onScrollEnd":a!=null&&ft("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=ei(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":ft("beforetoggle",t),ft("toggle",t),Iu(t,"popover",a);break;case"xlinkActuate":ll(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ll(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ll(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ll(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ll(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ll(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ll(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ll(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ll(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Iu(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ky.get(l)||l,Iu(t,l,a))}}function pf(t,e,l,a,n,u){switch(l){case"style":Zr(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Ka(t,a):(typeof a=="number"||typeof a=="bigint")&&Ka(t,""+a);break;case"onScroll":a!=null&&ft("scroll",t);break;case"onScrollEnd":a!=null&&ft("scrollend",t);break;case"onClick":a!=null&&(t.onclick=al);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ur.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[oe]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Iu(t,l,a)}}}function le(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",t),ft("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,u,f,l,null)}}n&&_t(t,e,"srcSet",l.srcSet,l,null),a&&_t(t,e,"src",l.src,l,null);return;case"input":ft("invalid",t);var o=u=f=n=null,d=null,p=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":f=O;break;case"checked":d=O;break;case"defaultChecked":p=O;break;case"value":u=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:_t(t,e,a,O,l,null)}}Yr(t,u,o,d,p,f,n,!1);return;case"select":ft("invalid",t),a=f=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":f=o;break;case"multiple":a=o;default:_t(t,e,n,o,l,null)}e=u,l=f,t.multiple=!!a,e!=null?Za(t,!!a,e,!1):l!=null&&Za(t,!!a,l,!0);return;case"textarea":ft("invalid",t),u=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(o=l[f],o!=null))switch(f){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:_t(t,e,f,o,l,null)}Xr(t,a,n,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:_t(t,e,d,a,l,null)}return;case"dialog":ft("beforetoggle",t),ft("toggle",t),ft("cancel",t),ft("close",t);break;case"iframe":case"object":ft("load",t);break;case"video":case"audio":for(a=0;a<ju.length;a++)ft(ju[a],t);break;case"image":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"embed":case"source":case"link":ft("error",t),ft("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,p,a,l,null)}return;default:if(Rc(e)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&pf(t,e,O,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&_t(t,e,o,a,l,null))}function E0(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,f=null,o=null,d=null,p=null,O=null;for(j in l){var x=l[j];if(l.hasOwnProperty(j)&&x!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":d=x;default:a.hasOwnProperty(j)||_t(t,e,j,null,a,x)}}for(var E in a){var j=a[E];if(x=l[E],a.hasOwnProperty(E)&&(j!=null||x!=null))switch(E){case"type":u=j;break;case"name":n=j;break;case"checked":p=j;break;case"defaultChecked":O=j;break;case"value":f=j;break;case"defaultValue":o=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:j!==x&&_t(t,e,E,j,a,x)}}Dc(t,f,o,d,p,O,u,n);return;case"select":j=f=o=E=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":j=d;default:a.hasOwnProperty(u)||_t(t,e,u,null,a,d)}for(n in a)if(u=a[n],d=l[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":E=u;break;case"defaultValue":o=u;break;case"multiple":f=u;default:u!==d&&_t(t,e,n,u,a,d)}e=o,l=f,a=j,E!=null?Za(t,!!l,E,!1):!!a!=!!l&&(e!=null?Za(t,!!l,e,!0):Za(t,!!l,l?[]:"",!1));return;case"textarea":j=E=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:_t(t,e,o,null,a,n)}for(f in a)if(n=a[f],u=l[f],a.hasOwnProperty(f)&&(n!=null||u!=null))switch(f){case"value":E=n;break;case"defaultValue":j=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&_t(t,e,f,n,a,u)}Gr(t,E,j);return;case"option":for(var B in l)if(E=l[B],l.hasOwnProperty(B)&&E!=null&&!a.hasOwnProperty(B))switch(B){case"selected":t.selected=!1;break;default:_t(t,e,B,null,a,E)}for(d in a)if(E=a[d],j=l[d],a.hasOwnProperty(d)&&E!==j&&(E!=null||j!=null))switch(d){case"selected":t.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:_t(t,e,d,E,a,j)}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 J in l)E=l[J],l.hasOwnProperty(J)&&E!=null&&!a.hasOwnProperty(J)&&_t(t,e,J,null,a,E);for(p in a)if(E=a[p],j=l[p],a.hasOwnProperty(p)&&E!==j&&(E!=null||j!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,e));break;default:_t(t,e,p,E,a,j)}return;default:if(Rc(e)){for(var xt in l)E=l[xt],l.hasOwnProperty(xt)&&E!==void 0&&!a.hasOwnProperty(xt)&&pf(t,e,xt,void 0,a,E);for(O in a)E=a[O],j=l[O],!a.hasOwnProperty(O)||E===j||E===void 0&&j===void 0||pf(t,e,O,E,a,j);return}}for(var b in l)E=l[b],l.hasOwnProperty(b)&&E!=null&&!a.hasOwnProperty(b)&&_t(t,e,b,null,a,E);for(x in a)E=a[x],j=l[x],!a.hasOwnProperty(x)||E===j||E==null&&j==null||_t(t,e,x,E,a,j)}function Vd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function T0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,f=n.initiatorType,o=n.duration;if(u&&o&&Vd(f)){for(f=0,o=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],p=d.startTime;if(p>o)break;var O=d.transferSize,x=d.initiatorType;O&&Vd(x)&&(d=d.responseEnd,f+=O*(d<o?1:(o-p)/(d-p)))}if(--a,e+=8*(u+f)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ef=null,Tf=null;function $i(t){return t.nodeType===9?t:t.ownerDocument}function wd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function jf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Af=null;function j0(){var t=window.event;return t&&t.type==="popstate"?t===Af?!1:(Af=t,!0):(Af=null,!1)}var kd=typeof setTimeout=="function"?setTimeout:void 0,A0=typeof clearTimeout=="function"?clearTimeout:void 0,Fd=typeof Promise=="function"?Promise:void 0,O0=typeof queueMicrotask=="function"?queueMicrotask:typeof Fd<"u"?function(t){return Fd.resolve(null).then(t).catch(z0)}:kd;function z0(t){setTimeout(function(){throw t})}function Vl(t){return t==="head"}function $d(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Tn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Ou(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Ou(l);for(var u=l.firstChild;u;){var f=u.nextSibling,o=u.nodeName;u[Zn]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=f}}else l==="body"&&Ou(t.ownerDocument.body);l=n}while(l);Tn(e)}function Wd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Of(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Of(l),Mc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function _0(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Zn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function x0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ge(t.nextSibling),t===null))return null;return t}function Id(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ge(t.nextSibling),t===null))return null;return t}function zf(t){return t.data==="$?"||t.data==="$~"}function _f(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function M0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var xf=null;function Pd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ge(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function tm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function em(t,e,l){switch(e=$i(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ou(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Mc(t)}var Xe=new Map,lm=new Set;function Wi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sl=H.d;H.d={f:N0,r:D0,D:C0,C:R0,L:U0,m:H0,X:Q0,S:q0,M:B0};function N0(){var t=Sl.f(),e=Li();return t||e}function D0(t){var e=Ga(t);e!==null&&e.tag===5&&e.type==="form"?Sh(e):Sl.r(t)}var Sn=typeof document>"u"?null:document;function am(t,e,l){var a=Sn;if(a&&typeof e=="string"&&e){var n=Re(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),lm.has(n)||(lm.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),le(e,"link",t),Ft(e),a.head.appendChild(e)))}}function C0(t){Sl.D(t),am("dns-prefetch",t,null)}function R0(t,e){Sl.C(t,e),am("preconnect",t,e)}function U0(t,e,l){Sl.L(t,e,l);var a=Sn;if(a&&t&&e){var n='link[rel="preload"][as="'+Re(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Re(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Re(l.imageSizes)+'"]')):n+='[href="'+Re(t)+'"]';var u=n;switch(e){case"style":u=pn(t);break;case"script":u=En(t)}Xe.has(u)||(t=C({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Xe.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(zu(u))||e==="script"&&a.querySelector(_u(u))||(e=a.createElement("link"),le(e,"link",t),Ft(e),a.head.appendChild(e)))}}function H0(t,e){Sl.m(t,e);var l=Sn;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Re(a)+'"][href="'+Re(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=En(t)}if(!Xe.has(u)&&(t=C({rel:"modulepreload",href:t},e),Xe.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_u(u)))return}a=l.createElement("link"),le(a,"link",t),Ft(a),l.head.appendChild(a)}}}function q0(t,e,l){Sl.S(t,e,l);var a=Sn;if(a&&t){var n=Xa(a).hoistableStyles,u=pn(t);e=e||"default";var f=n.get(u);if(!f){var o={loading:0,preload:null};if(f=a.querySelector(zu(u)))o.loading=5;else{t=C({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Xe.get(u))&&Mf(t,l);var d=f=a.createElement("link");Ft(d),le(d,"link",t),d._p=new Promise(function(p,O){d.onload=p,d.onerror=O}),d.addEventListener("load",function(){o.loading|=1}),d.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ii(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:o},n.set(u,f)}}}function Q0(t,e){Sl.X(t,e);var l=Sn;if(l&&t){var a=Xa(l).hoistableScripts,n=En(t),u=a.get(n);u||(u=l.querySelector(_u(n)),u||(t=C({src:t,async:!0},e),(e=Xe.get(n))&&Nf(t,e),u=l.createElement("script"),Ft(u),le(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function B0(t,e){Sl.M(t,e);var l=Sn;if(l&&t){var a=Xa(l).hoistableScripts,n=En(t),u=a.get(n);u||(u=l.querySelector(_u(n)),u||(t=C({src:t,async:!0,type:"module"},e),(e=Xe.get(n))&&Nf(t,e),u=l.createElement("script"),Ft(u),le(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function nm(t,e,l,a){var n=(n=ct.current)?Wi(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=pn(l.href),l=Xa(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=pn(l.href);var u=Xa(n).hoistableStyles,f=u.get(t);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=n.querySelector(zu(t)))&&!u._p&&(f.instance=u,f.state.loading=5),Xe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Xe.set(t,l),u||Y0(n,t,l,f.state))),e&&a===null)throw Error(r(528,""));return f}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=En(l),l=Xa(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function pn(t){return'href="'+Re(t)+'"'}function zu(t){return'link[rel="stylesheet"]['+t+"]"}function um(t){return C({},t,{"data-precedence":t.precedence,precedence:null})}function Y0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),le(e,"link",l),Ft(e),t.head.appendChild(e))}function En(t){return'[src="'+Re(t)+'"]'}function _u(t){return"script[async]"+t}function im(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Re(l.href)+'"]');if(a)return e.instance=a,Ft(a),a;var n=C({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ft(a),le(a,"style",n),Ii(a,l.precedence,t),e.instance=a;case"stylesheet":n=pn(l.href);var u=t.querySelector(zu(n));if(u)return e.state.loading|=4,e.instance=u,Ft(u),u;a=um(l),(n=Xe.get(n))&&Mf(a,n),u=(t.ownerDocument||t).createElement("link"),Ft(u);var f=u;return f._p=new Promise(function(o,d){f.onload=o,f.onerror=d}),le(u,"link",a),e.state.loading|=4,Ii(u,l.precedence,t),e.instance=u;case"script":return u=En(l.src),(n=t.querySelector(_u(u)))?(e.instance=n,Ft(n),n):(a=l,(n=Xe.get(u))&&(a=C({},l),Nf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ft(n),le(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Ii(a,l.precedence,t));return e.instance}function Ii(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,f=0;f<a.length;f++){var o=a[f];if(o.dataset.precedence===e)u=o;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Mf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Nf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Pi=null;function cm(t,e,l){if(Pi===null){var a=new Map,n=Pi=new Map;n.set(l,a)}else n=Pi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[Zn]||u[It]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var o=a.get(f);o?o.push(u):a.set(f,[u])}}return a}function sm(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function G0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function fm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function X0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=pn(a.href),u=e.querySelector(zu(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=tc.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Ft(u);return}u=e.ownerDocument||e,a=um(a),(n=Xe.get(n))&&Mf(a,n),u=u.createElement("link"),Ft(u);var f=u;f._p=new Promise(function(o,d){f.onload=o,f.onerror=d}),le(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=tc.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Df=0;function L0(t,e){return t.stylesheets&&t.count===0&&lc(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&lc(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Df===0&&(Df=62500*T0());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&lc(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Df?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ec=null;function lc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ec=new Map,e.forEach(Z0,t),ec=null,tc.call(t))}function Z0(t,e){if(!(e.state.loading&4)){var l=ec.get(t);if(l)var a=l.get(null);else{l=new Map,ec.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var f=n[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=e.instance,f=n.getAttribute("data-precedence"),u=l.get(f)||a,u===a&&l.set(null,n),l.set(f,n),this.count++,a=tc.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var xu={$$typeof:et,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function K0(t,e,l,a,n,u,f,o,d){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oc(0),this.hiddenUpdates=Oc(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function rm(t,e,l,a,n,u,f,o,d,p,O,x){return t=new K0(t,e,l,f,d,p,O,x,o),e=1,u===!0&&(e|=24),u=Ae(3,null,null,e),t.current=u,u.stateNode=t,e=fs(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},ds(u),t}function om(t){return t?(t=Wa,t):Wa}function hm(t,e,l,a,n,u){n=om(n),a.context===null?a.context=n:a.pendingContext=n,a=Ul(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Hl(t,a,e),l!==null&&(ge(l,t,e),iu(l,t,e))}function dm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Cf(t,e){dm(t,e),(t=t.alternate)&&dm(t,e)}function mm(t){if(t.tag===13||t.tag===31){var e=ma(t,67108864);e!==null&&ge(e,t,67108864),Cf(t,67108864)}}function ym(t){if(t.tag===13||t.tag===31){var e=Me();e=zc(e);var l=ma(t,e);l!==null&&ge(l,t,e),Cf(t,e)}}var ac=!0;function V0(t,e,l,a){var n=z.T;z.T=null;var u=H.p;try{H.p=2,Rf(t,e,l,a)}finally{H.p=u,z.T=n}}function w0(t,e,l,a){var n=z.T;z.T=null;var u=H.p;try{H.p=8,Rf(t,e,l,a)}finally{H.p=u,z.T=n}}function Rf(t,e,l,a){if(ac){var n=Uf(a);if(n===null)Sf(t,e,a,nc,l),gm(t,a);else if(k0(n,t,e,l,a))a.stopPropagation();else if(gm(t,a),e&4&&-1<J0.indexOf(t)){for(;n!==null;){var u=Ga(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=fa(u.pendingLanes);if(f!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;f;){var d=1<<31-Te(f);o.entanglements[1]|=d,f&=~d}We(u),(vt&6)===0&&(Gi=pe()+500,Tu(0))}}break;case 31:case 13:o=ma(u,2),o!==null&&ge(o,u,2),Li(),Cf(u,2)}if(u=Uf(a),u===null&&Sf(t,e,a,nc,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Sf(t,e,a,null,l)}}function Uf(t){return t=Hc(t),Hf(t)}var nc=null;function Hf(t){if(nc=null,t=Ya(t),t!==null){var e=T(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=D(e),t!==null)return t;t=null}else if(l===31){if(t=R(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return nc=t,null}function vm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Cy()){case jr:return 2;case Ar:return 8;case Ju:case Ry:return 32;case Or:return 268435456;default:return 32}default:return 32}}var qf=!1,wl=null,Jl=null,kl=null,Mu=new Map,Nu=new Map,Fl=[],J0="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 gm(t,e){switch(t){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":Jl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":Mu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nu.delete(e.pointerId)}}function Du(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=Ga(e),e!==null&&mm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function k0(t,e,l,a,n){switch(e){case"focusin":return wl=Du(wl,t,e,l,a,n),!0;case"dragenter":return Jl=Du(Jl,t,e,l,a,n),!0;case"mouseover":return kl=Du(kl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Mu.set(u,Du(Mu.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Nu.set(u,Du(Nu.get(u)||null,t,e,l,a,n)),!0}return!1}function bm(t){var e=Ya(t.target);if(e!==null){var l=T(e);if(l!==null){if(e=l.tag,e===13){if(e=D(l),e!==null){t.blockedOn=e,Dr(t.priority,function(){ym(l)});return}}else if(e===31){if(e=R(l),e!==null){t.blockedOn=e,Dr(t.priority,function(){ym(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function uc(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Uf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Uc=a,l.target.dispatchEvent(a),Uc=null}else return e=Ga(l),e!==null&&mm(e),t.blockedOn=l,!1;e.shift()}return!0}function Sm(t,e,l){uc(t)&&l.delete(e)}function F0(){qf=!1,wl!==null&&uc(wl)&&(wl=null),Jl!==null&&uc(Jl)&&(Jl=null),kl!==null&&uc(kl)&&(kl=null),Mu.forEach(Sm),Nu.forEach(Sm)}function ic(t,e){t.blockedOn===e&&(t.blockedOn=null,qf||(qf=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,F0)))}var cc=null;function pm(t){cc!==t&&(cc=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){cc===t&&(cc=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Hf(a||l)===null)continue;break}var u=Ga(l);u!==null&&(t.splice(e,3),e-=3,Rs(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Tn(t){function e(d){return ic(d,t)}wl!==null&&ic(wl,t),Jl!==null&&ic(Jl,t),kl!==null&&ic(kl,t),Mu.forEach(e),Nu.forEach(e);for(var l=0;l<Fl.length;l++){var a=Fl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Fl.length&&(l=Fl[0],l.blockedOn===null);)bm(l),l.blockedOn===null&&Fl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],f=n[oe]||null;if(typeof u=="function")f||pm(l);else if(f){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,f=u[oe]||null)o=f.formAction;else if(Hf(n)!==null)continue}else o=f.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),pm(l)}}}function Em(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Qf(t){this._internalRoot=t}sc.prototype.render=Qf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=Me();hm(l,a,t,e,null,null)},sc.prototype.unmount=Qf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;hm(t.current,2,null,t,null,null),Li(),e[Ba]=null}};function sc(t){this._internalRoot=t}sc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Nr();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Fl.length&&e!==0&&e<Fl[l].priority;l++);Fl.splice(l,0,t),l===0&&bm(t)}};var Tm=i.version;if(Tm!=="19.2.6")throw Error(r(527,Tm,"19.2.6"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=A(e),t=t!==null?U(t):null,t=t===null?null:t.stateNode,t};var $0={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{Gn=fc.inject($0),Ee=fc}catch{}}return Ru.createRoot=function(t,e){if(!y(t))throw Error(r(299));var l=!1,a="",n=Mh,u=Nh,f=Dh;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=rm(t,1,!1,null,null,l,a,null,n,u,f,Em),t[Ba]=e.current,bf(t),new Qf(e)},Ru.hydrateRoot=function(t,e,l){if(!y(t))throw Error(r(299));var a=!1,n="",u=Mh,f=Nh,o=Dh,d=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),e=rm(t,1,!0,e,l??null,a,n,d,u,f,o,Em),e.context=om(null),l=e.current,a=Me(),a=zc(a),n=Ul(a),n.callback=null,Hl(l,n,a),l=a,e.current.lanes=l,Ln(e,l),We(e),t[Ba]=e.current,bf(t),new sc(e)},Ru.version="19.2.6",Ru}var Rm;function sg(){if(Rm)return Lf.exports;Rm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),Lf.exports=cg(),Lf.exports}var fg=sg(),Qn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(c){return this.listeners.add(c),this.onSubscribe(),()=>{this.listeners.delete(c),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xa,Il,An,km,rg=(km=class extends Qn{constructor(){super();V(this,xa);V(this,Il);V(this,An);q(this,An,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){m(this,Il)||this.setEventListener(m(this,An))}onUnsubscribe(){var i;this.hasListeners()||((i=m(this,Il))==null||i.call(this),q(this,Il,void 0))}setEventListener(i){var s;q(this,An,i),(s=m(this,Il))==null||s.call(this),q(this,Il,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){m(this,xa)!==i&&(q(this,xa,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(s=>{s(i)})}isFocused(){var i;return typeof m(this,xa)=="boolean"?m(this,xa):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},xa=new WeakMap,Il=new WeakMap,An=new WeakMap,km),hr=new rg,og={setTimeout:(c,i)=>setTimeout(c,i),clearTimeout:c=>clearTimeout(c),setInterval:(c,i)=>setInterval(c,i),clearInterval:c=>clearInterval(c)},Pl,rr,Fm,hg=(Fm=class{constructor(){V(this,Pl,og);V(this,rr,!1)}setTimeoutProvider(c){q(this,Pl,c)}setTimeout(c,i){return m(this,Pl).setTimeout(c,i)}clearTimeout(c){m(this,Pl).clearTimeout(c)}setInterval(c,i){return m(this,Pl).setInterval(c,i)}clearInterval(c){m(this,Pl).clearInterval(c)}},Pl=new WeakMap,rr=new WeakMap,Fm),_a=new hg;function dg(c){setTimeout(c,0)}var mg=typeof window>"u"||"Deno"in globalThis;function fe(){}function yg(c,i){return typeof c=="function"?c(i):c}function wf(c){return typeof c=="number"&&c>=0&&c!==1/0}function uy(c,i){return Math.max(c+(i||0)-Date.now(),0)}function ca(c,i){return typeof c=="function"?c(i):c}function De(c,i){return typeof c=="function"?c(i):c}function Um(c,i){const{type:s="all",exact:r,fetchStatus:y,predicate:T,queryKey:D,stale:R}=c;if(D){if(r){if(i.queryHash!==dr(D,i.options))return!1}else if(!Hu(i.queryKey,D))return!1}if(s!=="all"){const N=i.isActive();if(s==="active"&&!N||s==="inactive"&&N)return!1}return!(typeof R=="boolean"&&i.isStale()!==R||y&&y!==i.state.fetchStatus||T&&!T(i))}function Hm(c,i){const{exact:s,status:r,predicate:y,mutationKey:T}=c;if(T){if(!i.options.mutationKey)return!1;if(s){if(Qa(i.options.mutationKey)!==Qa(T))return!1}else if(!Hu(i.options.mutationKey,T))return!1}return!(r&&i.state.status!==r||y&&!y(i))}function dr(c,i){return((i==null?void 0:i.queryKeyHashFn)||Qa)(c)}function Qa(c){return JSON.stringify(c,(i,s)=>Jf(s)?Object.keys(s).sort().reduce((r,y)=>(r[y]=s[y],r),{}):s)}function Hu(c,i){return c===i?!0:typeof c!=typeof i?!1:c&&i&&typeof c=="object"&&typeof i=="object"?Object.keys(i).every(s=>Hu(c[s],i[s])):!1}var vg=Object.prototype.hasOwnProperty;function iy(c,i,s=0){if(c===i)return c;if(s>500)return i;const r=qm(c)&&qm(i);if(!r&&!(Jf(c)&&Jf(i)))return i;const T=(r?c:Object.keys(c)).length,D=r?i:Object.keys(i),R=D.length,N=r?new Array(R):{};let A=0;for(let U=0;U<R;U++){const C=r?U:D[U],Z=c[C],K=i[C];if(Z===K){N[C]=Z,(r?U<T:vg.call(c,C))&&A++;continue}if(Z===null||K===null||typeof Z!="object"||typeof K!="object"){N[C]=K;continue}const F=iy(Z,K,s+1);N[C]=F,F===Z&&A++}return T===R&&A===T?c:N}function dc(c,i){if(!i||Object.keys(c).length!==Object.keys(i).length)return!1;for(const s in c)if(c[s]!==i[s])return!1;return!0}function qm(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function Jf(c){if(!Qm(c))return!1;const i=c.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Qm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(c)!==Object.prototype)}function Qm(c){return Object.prototype.toString.call(c)==="[object Object]"}function gg(c){return new Promise(i=>{_a.setTimeout(i,c)})}function kf(c,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(c,i):s.structuralSharing!==!1?iy(c,i):i}function bg(c,i,s=0){const r=[...c,i];return s&&r.length>s?r.slice(1):r}function Sg(c,i,s=0){const r=[i,...c];return s&&r.length>s?r.slice(0,-1):r}var mr=Symbol();function cy(c,i){return!c.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!c.queryFn||c.queryFn===mr?()=>Promise.reject(new Error(`Missing queryFn: '${c.queryHash}'`)):c.queryFn}function yr(c,i){return typeof c=="function"?c(...i):!!c}function pg(c,i,s){let r=!1,y;return Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(y??(y=i()),r||(r=!0,y.aborted?s():y.addEventListener("abort",s,{once:!0})),y)}),c}var qu=(()=>{let c=()=>mg;return{isServer(){return c()},setIsServer(i){c=i}}})();function Ff(){let c,i;const s=new Promise((y,T)=>{c=y,i=T});s.status="pending",s.catch(()=>{});function r(y){Object.assign(s,y),delete s.resolve,delete s.reject}return s.resolve=y=>{r({status:"fulfilled",value:y}),c(y)},s.reject=y=>{r({status:"rejected",reason:y}),i(y)},s}var Eg=dg;function Tg(){let c=[],i=0,s=R=>{R()},r=R=>{R()},y=Eg;const T=R=>{i?c.push(R):y(()=>{s(R)})},D=()=>{const R=c;c=[],R.length&&y(()=>{r(()=>{R.forEach(N=>{s(N)})})})};return{batch:R=>{let N;i++;try{N=R()}finally{i--,i||D()}return N},batchCalls:R=>(...N)=>{T(()=>{R(...N)})},schedule:T,setNotifyFunction:R=>{s=R},setBatchNotifyFunction:R=>{r=R},setScheduler:R=>{y=R}}}var kt=Tg(),On,ta,zn,$m,jg=($m=class extends Qn{constructor(){super();V(this,On,!0);V(this,ta);V(this,zn);q(this,zn,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){m(this,ta)||this.setEventListener(m(this,zn))}onUnsubscribe(){var i;this.hasListeners()||((i=m(this,ta))==null||i.call(this),q(this,ta,void 0))}setEventListener(i){var s;q(this,zn,i),(s=m(this,ta))==null||s.call(this),q(this,ta,i(this.setOnline.bind(this)))}setOnline(i){m(this,On)!==i&&(q(this,On,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return m(this,On)}},On=new WeakMap,ta=new WeakMap,zn=new WeakMap,$m),mc=new jg;function Ag(c){return Math.min(1e3*2**c,3e4)}function sy(c){return(c??"online")==="online"?mc.isOnline():!0}var $f=class extends Error{constructor(c){super("CancelledError"),this.revert=c==null?void 0:c.revert,this.silent=c==null?void 0:c.silent}};function fy(c){let i=!1,s=0,r;const y=Ff(),T=()=>y.status!=="pending",D=Y=>{var P;if(!T()){const tt=new $f(Y);Z(tt),(P=c.onCancel)==null||P.call(c,tt)}},R=()=>{i=!0},N=()=>{i=!1},A=()=>hr.isFocused()&&(c.networkMode==="always"||mc.isOnline())&&c.canRun(),U=()=>sy(c.networkMode)&&c.canRun(),C=Y=>{T()||(r==null||r(),y.resolve(Y))},Z=Y=>{T()||(r==null||r(),y.reject(Y))},K=()=>new Promise(Y=>{var P;r=tt=>{(T()||A())&&Y(tt)},(P=c.onPause)==null||P.call(c)}).then(()=>{var Y;r=void 0,T()||(Y=c.onContinue)==null||Y.call(c)}),F=()=>{if(T())return;let Y;const P=s===0?c.initialPromise:void 0;try{Y=P??c.fn()}catch(tt){Y=Promise.reject(tt)}Promise.resolve(Y).then(C).catch(tt=>{var Et;if(T())return;const St=c.retry??(qu.isServer()?0:3),et=c.retryDelay??Ag,X=typeof et=="function"?et(s,tt):et,pt=St===!0||typeof St=="number"&&s<St||typeof St=="function"&&St(s,tt);if(i||!pt){Z(tt);return}s++,(Et=c.onFail)==null||Et.call(c,s,tt),gg(X).then(()=>A()?void 0:K()).then(()=>{i?Z(tt):F()})})};return{promise:y,status:()=>y.status,cancel:D,continue:()=>(r==null||r(),y),cancelRetry:R,continueRetry:N,canStart:U,start:()=>(U()?F():K().then(F),y)}}var Ma,Wm,ry=(Wm=class{constructor(){V(this,Ma)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wf(this.gcTime)&&q(this,Ma,_a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(c){this.gcTime=Math.max(this.gcTime||0,c??(qu.isServer()?1/0:300*1e3))}clearGcTimeout(){m(this,Ma)!==void 0&&(_a.clearTimeout(m(this,Ma)),q(this,Ma,void 0))}},Ma=new WeakMap,Wm);function Og(c){return{onFetch:(i,s)=>{var U,C,Z,K,F;const r=i.options,y=(Z=(C=(U=i.fetchOptions)==null?void 0:U.meta)==null?void 0:C.fetchMore)==null?void 0:Z.direction,T=((K=i.state.data)==null?void 0:K.pages)||[],D=((F=i.state.data)==null?void 0:F.pageParams)||[];let R={pages:[],pageParams:[]},N=0;const A=async()=>{let Y=!1;const P=et=>{pg(et,()=>i.signal,()=>Y=!0)},tt=cy(i.options,i.fetchOptions),St=async(et,X,pt)=>{if(Y)return Promise.reject(i.signal.reason);if(X==null&&et.pages.length)return Promise.resolve(et);const W=(()=>{const Vt={client:i.client,queryKey:i.queryKey,pageParam:X,direction:pt?"backward":"forward",meta:i.options.meta};return P(Vt),Vt})(),nt=await tt(W),{maxPages:Tt}=i.options,Ut=pt?Sg:bg;return{pages:Ut(et.pages,nt,Tt),pageParams:Ut(et.pageParams,X,Tt)}};if(y&&T.length){const et=y==="backward",X=et?zg:Bm,pt={pages:T,pageParams:D},Et=X(r,pt);R=await St(pt,Et,et)}else{const et=c??T.length;do{const X=N===0?D[0]??r.initialPageParam:Bm(r,R);if(N>0&&X==null)break;R=await St(R,X),N++}while(N<et)}return R};i.options.persister?i.fetchFn=()=>{var Y,P;return(P=(Y=i.options).persister)==null?void 0:P.call(Y,A,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s)}:i.fetchFn=A}}}function Bm(c,{pages:i,pageParams:s}){const r=i.length-1;return i.length>0?c.getNextPageParam(i[r],i,s[r],s):void 0}function zg(c,{pages:i,pageParams:s}){var r;return i.length>0?(r=c.getPreviousPageParam)==null?void 0:r.call(c,i[0],i,s[0],s):void 0}var _n,Na,xn,Le,Da,Wt,Qu,Ca,Ne,oy,pl,Im,_g=(Im=class extends ry{constructor(i){super();V(this,Ne);V(this,_n);V(this,Na);V(this,xn);V(this,Le);V(this,Da);V(this,Wt);V(this,Qu);V(this,Ca);q(this,Ca,!1),q(this,Qu,i.defaultOptions),this.setOptions(i.options),this.observers=[],q(this,Da,i.client),q(this,Le,m(this,Da).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,q(this,Na,Gm(this.options)),this.state=i.state??m(this,Na),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return m(this,_n)}get promise(){var i;return(i=m(this,Wt))==null?void 0:i.promise}setOptions(i){if(this.options={...m(this,Qu),...i},i!=null&&i._type&&q(this,_n,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Gm(this.options);s.data!==void 0&&(this.setState(Ym(s.data,s.dataUpdatedAt)),q(this,Na,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&m(this,Le).remove(this)}setData(i,s){const r=kf(this.state.data,i,this.options);return it(this,Ne,pl).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(i){it(this,Ne,pl).call(this,{type:"setState",state:i})}cancel(i){var r,y;const s=(r=m(this,Wt))==null?void 0:r.promise;return(y=m(this,Wt))==null||y.cancel(i),s?s.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return m(this,Na)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>De(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>ca(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!uy(this.state.dataUpdatedAt,i)}onFocus(){var s;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(s=m(this,Wt))==null||s.continue()}onOnline(){var s;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(s=m(this,Wt))==null||s.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),m(this,Le).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(m(this,Wt)&&(m(this,Ca)||it(this,Ne,oy).call(this)?m(this,Wt).cancel({revert:!0}):m(this,Wt).cancelRetry()),this.scheduleGc()),m(this,Le).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||it(this,Ne,pl).call(this,{type:"invalidate"})}async fetch(i,s){var A,U,C,Z,K,F,Y,P,tt,St,et;if(this.state.fetchStatus!=="idle"&&((A=m(this,Wt))==null?void 0:A.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(m(this,Wt))return m(this,Wt).continueRetry(),m(this,Wt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const X=this.observers.find(pt=>pt.options.queryFn);X&&this.setOptions(X.options)}const r=new AbortController,y=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>(q(this,Ca,!0),r.signal)})},T=()=>{const X=cy(this.options,s),Et=(()=>{const W={client:m(this,Da),queryKey:this.queryKey,meta:this.meta};return y(W),W})();return q(this,Ca,!1),this.options.persister?this.options.persister(X,Et,this):X(Et)},R=(()=>{const X={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:m(this,Da),state:this.state,fetchFn:T};return y(X),X})(),N=m(this,_n)==="infinite"?Og(this.options.pages):this.options.behavior;N==null||N.onFetch(R,this),q(this,xn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((U=R.fetchOptions)==null?void 0:U.meta))&&it(this,Ne,pl).call(this,{type:"fetch",meta:(C=R.fetchOptions)==null?void 0:C.meta}),q(this,Wt,fy({initialPromise:s==null?void 0:s.initialPromise,fn:R.fetchFn,onCancel:X=>{X instanceof $f&&X.revert&&this.setState({...m(this,xn),fetchStatus:"idle"}),r.abort()},onFail:(X,pt)=>{it(this,Ne,pl).call(this,{type:"failed",failureCount:X,error:pt})},onPause:()=>{it(this,Ne,pl).call(this,{type:"pause"})},onContinue:()=>{it(this,Ne,pl).call(this,{type:"continue"})},retry:R.options.retry,retryDelay:R.options.retryDelay,networkMode:R.options.networkMode,canRun:()=>!0}));try{const X=await m(this,Wt).start();if(X===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(X),(K=(Z=m(this,Le).config).onSuccess)==null||K.call(Z,X,this),(Y=(F=m(this,Le).config).onSettled)==null||Y.call(F,X,this.state.error,this),X}catch(X){if(X instanceof $f){if(X.silent)return m(this,Wt).promise;if(X.revert){if(this.state.data===void 0)throw X;return this.state.data}}throw it(this,Ne,pl).call(this,{type:"error",error:X}),(tt=(P=m(this,Le).config).onError)==null||tt.call(P,X,this),(et=(St=m(this,Le).config).onSettled)==null||et.call(St,this.state.data,X,this),X}finally{this.scheduleGc()}}},_n=new WeakMap,Na=new WeakMap,xn=new WeakMap,Le=new WeakMap,Da=new WeakMap,Wt=new WeakMap,Qu=new WeakMap,Ca=new WeakMap,Ne=new WeakSet,oy=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},pl=function(i){const s=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...hy(r.data,this.options),fetchMeta:i.meta??null};case"success":const y={...r,...Ym(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,xn,i.manual?y:void 0),y;case"error":const T=i.error;return{...r,error:T,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:T,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=s(this.state),kt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),m(this,Le).notify({query:this,type:"updated",action:i})})},Im);function hy(c,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sy(i.networkMode)?"fetching":"paused",...c===void 0&&{error:null,status:"pending"}}}function Ym(c,i){return{data:c,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Gm(c){const i=typeof c.initialData=="function"?c.initialData():c.initialData,s=i!==void 0,r=s?typeof c.initialDataUpdatedAt=="function"?c.initialDataUpdatedAt():c.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var be,dt,Bu,se,Ra,Mn,El,ea,Yu,Nn,Dn,Ua,Ha,la,Cn,bt,Uu,Wf,If,Pf,tr,er,lr,ar,dy,Pm,xg=(Pm=class extends Qn{constructor(i,s){super();V(this,bt);V(this,be);V(this,dt);V(this,Bu);V(this,se);V(this,Ra);V(this,Mn);V(this,El);V(this,ea);V(this,Yu);V(this,Nn);V(this,Dn);V(this,Ua);V(this,Ha);V(this,la);V(this,Cn,new Set);this.options=s,q(this,be,i),q(this,ea,null),q(this,El,Ff()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(m(this,dt).addObserver(this),Xm(m(this,dt),this.options)?it(this,bt,Uu).call(this):this.updateResult(),it(this,bt,tr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nr(m(this,dt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nr(m(this,dt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,it(this,bt,er).call(this),it(this,bt,lr).call(this),m(this,dt).removeObserver(this)}setOptions(i){const s=this.options,r=m(this,dt);if(this.options=m(this,be).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof De(this.options.enabled,m(this,dt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");it(this,bt,ar).call(this),m(this,dt).setOptions(this.options),s._defaulted&&!dc(this.options,s)&&m(this,be).getQueryCache().notify({type:"observerOptionsUpdated",query:m(this,dt),observer:this});const y=this.hasListeners();y&&Lm(m(this,dt),r,this.options,s)&&it(this,bt,Uu).call(this),this.updateResult(),y&&(m(this,dt)!==r||De(this.options.enabled,m(this,dt))!==De(s.enabled,m(this,dt))||ca(this.options.staleTime,m(this,dt))!==ca(s.staleTime,m(this,dt)))&&it(this,bt,Wf).call(this);const T=it(this,bt,If).call(this);y&&(m(this,dt)!==r||De(this.options.enabled,m(this,dt))!==De(s.enabled,m(this,dt))||T!==m(this,la))&&it(this,bt,Pf).call(this,T)}getOptimisticResult(i){const s=m(this,be).getQueryCache().build(m(this,be),i),r=this.createResult(s,i);return Ng(this,r)&&(q(this,se,r),q(this,Mn,this.options),q(this,Ra,m(this,dt).state)),r}getCurrentResult(){return m(this,se)}trackResult(i,s){return new Proxy(i,{get:(r,y)=>(this.trackProp(y),s==null||s(y),y==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&m(this,El).status==="pending"&&m(this,El).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,y))})}trackProp(i){m(this,Cn).add(i)}getCurrentQuery(){return m(this,dt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const s=m(this,be).defaultQueryOptions(i),r=m(this,be).getQueryCache().build(m(this,be),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(i){return it(this,bt,Uu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),m(this,se)))}createResult(i,s){var Tt;const r=m(this,dt),y=this.options,T=m(this,se),D=m(this,Ra),R=m(this,Mn),A=i!==r?i.state:m(this,Bu),{state:U}=i;let C={...U},Z=!1,K;if(s._optimisticResults){const Ut=this.hasListeners(),Vt=!Ut&&Xm(i,s),wt=Ut&&Lm(i,r,s,y);(Vt||wt)&&(C={...C,...hy(U.data,i.options)}),s._optimisticResults==="isRestoring"&&(C.fetchStatus="idle")}let{error:F,errorUpdatedAt:Y,status:P}=C;K=C.data;let tt=!1;if(s.placeholderData!==void 0&&K===void 0&&P==="pending"){let Ut;T!=null&&T.isPlaceholderData&&s.placeholderData===(R==null?void 0:R.placeholderData)?(Ut=T.data,tt=!0):Ut=typeof s.placeholderData=="function"?s.placeholderData((Tt=m(this,Dn))==null?void 0:Tt.state.data,m(this,Dn)):s.placeholderData,Ut!==void 0&&(P="success",K=kf(T==null?void 0:T.data,Ut,s),Z=!0)}if(s.select&&K!==void 0&&!tt)if(T&&K===(D==null?void 0:D.data)&&s.select===m(this,Yu))K=m(this,Nn);else try{q(this,Yu,s.select),K=s.select(K),K=kf(T==null?void 0:T.data,K,s),q(this,Nn,K),q(this,ea,null)}catch(Ut){q(this,ea,Ut)}m(this,ea)&&(F=m(this,ea),K=m(this,Nn),Y=Date.now(),P="error");const St=C.fetchStatus==="fetching",et=P==="pending",X=P==="error",pt=et&&St,Et=K!==void 0,nt={status:P,fetchStatus:C.fetchStatus,isPending:et,isSuccess:P==="success",isError:X,isInitialLoading:pt,isLoading:pt,data:K,dataUpdatedAt:C.dataUpdatedAt,error:F,errorUpdatedAt:Y,failureCount:C.fetchFailureCount,failureReason:C.fetchFailureReason,errorUpdateCount:C.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:C.dataUpdateCount>A.dataUpdateCount||C.errorUpdateCount>A.errorUpdateCount,isFetching:St,isRefetching:St&&!et,isLoadingError:X&&!Et,isPaused:C.fetchStatus==="paused",isPlaceholderData:Z,isRefetchError:X&&Et,isStale:vr(i,s),refetch:this.refetch,promise:m(this,El),isEnabled:De(s.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Ut=nt.data!==void 0,Vt=nt.status==="error"&&!Ut,wt=ae=>{Vt?ae.reject(nt.error):Ut&&ae.resolve(nt.data)},Je=()=>{const ae=q(this,El,nt.promise=Ff());wt(ae)},re=m(this,El);switch(re.status){case"pending":i.queryHash===r.queryHash&&wt(re);break;case"fulfilled":(Vt||nt.data!==re.value)&&Je();break;case"rejected":(!Vt||nt.error!==re.reason)&&Je();break}}return nt}updateResult(){const i=m(this,se),s=this.createResult(m(this,dt),this.options);if(q(this,Ra,m(this,dt).state),q(this,Mn,this.options),m(this,Ra).data!==void 0&&q(this,Dn,m(this,dt)),dc(s,i))return;q(this,se,s);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:y}=this.options,T=typeof y=="function"?y():y;if(T==="all"||!T&&!m(this,Cn).size)return!0;const D=new Set(T??m(this,Cn));return this.options.throwOnError&&D.add("error"),Object.keys(m(this,se)).some(R=>{const N=R;return m(this,se)[N]!==i[N]&&D.has(N)})};it(this,bt,dy).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&it(this,bt,tr).call(this)}},be=new WeakMap,dt=new WeakMap,Bu=new WeakMap,se=new WeakMap,Ra=new WeakMap,Mn=new WeakMap,El=new WeakMap,ea=new WeakMap,Yu=new WeakMap,Nn=new WeakMap,Dn=new WeakMap,Ua=new WeakMap,Ha=new WeakMap,la=new WeakMap,Cn=new WeakMap,bt=new WeakSet,Uu=function(i){it(this,bt,ar).call(this);let s=m(this,dt).fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(fe)),s},Wf=function(){it(this,bt,er).call(this);const i=ca(this.options.staleTime,m(this,dt));if(qu.isServer()||m(this,se).isStale||!wf(i))return;const r=uy(m(this,se).dataUpdatedAt,i)+1;q(this,Ua,_a.setTimeout(()=>{m(this,se).isStale||this.updateResult()},r))},If=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(m(this,dt)):this.options.refetchInterval)??!1},Pf=function(i){it(this,bt,lr).call(this),q(this,la,i),!(qu.isServer()||De(this.options.enabled,m(this,dt))===!1||!wf(m(this,la))||m(this,la)===0)&&q(this,Ha,_a.setInterval(()=>{(this.options.refetchIntervalInBackground||hr.isFocused())&&it(this,bt,Uu).call(this)},m(this,la)))},tr=function(){it(this,bt,Wf).call(this),it(this,bt,Pf).call(this,it(this,bt,If).call(this))},er=function(){m(this,Ua)!==void 0&&(_a.clearTimeout(m(this,Ua)),q(this,Ua,void 0))},lr=function(){m(this,Ha)!==void 0&&(_a.clearInterval(m(this,Ha)),q(this,Ha,void 0))},ar=function(){const i=m(this,be).getQueryCache().build(m(this,be),this.options);if(i===m(this,dt))return;const s=m(this,dt);q(this,dt,i),q(this,Bu,i.state),this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))},dy=function(i){kt.batch(()=>{i.listeners&&this.listeners.forEach(s=>{s(m(this,se))}),m(this,be).getQueryCache().notify({query:m(this,dt),type:"observerResultsUpdated"})})},Pm);function Mg(c,i){return De(i.enabled,c)!==!1&&c.state.data===void 0&&!(c.state.status==="error"&&De(i.retryOnMount,c)===!1)}function Xm(c,i){return Mg(c,i)||c.state.data!==void 0&&nr(c,i,i.refetchOnMount)}function nr(c,i,s){if(De(i.enabled,c)!==!1&&ca(i.staleTime,c)!=="static"){const r=typeof s=="function"?s(c):s;return r==="always"||r!==!1&&vr(c,i)}return!1}function Lm(c,i,s,r){return(c!==i||De(r.enabled,c)===!1)&&(!s.suspense||c.state.status!=="error")&&vr(c,s)}function vr(c,i){return De(i.enabled,c)!==!1&&c.isStaleByTime(ca(i.staleTime,c))}function Ng(c,i){return!dc(c.getCurrentResult(),i)}var Gu,Ie,ue,qa,Pe,Wl,ty,Dg=(ty=class extends ry{constructor(i){super();V(this,Pe);V(this,Gu);V(this,Ie);V(this,ue);V(this,qa);q(this,Gu,i.client),this.mutationId=i.mutationId,q(this,ue,i.mutationCache),q(this,Ie,[]),this.state=i.state||my(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){m(this,Ie).includes(i)||(m(this,Ie).push(i),this.clearGcTimeout(),m(this,ue).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){q(this,Ie,m(this,Ie).filter(s=>s!==i)),this.scheduleGc(),m(this,ue).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){m(this,Ie).length||(this.state.status==="pending"?this.scheduleGc():m(this,ue).remove(this))}continue(){var i;return((i=m(this,qa))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var D,R,N,A,U,C,Z,K,F,Y,P,tt,St,et,X,pt,Et,W;const s=()=>{it(this,Pe,Wl).call(this,{type:"continue"})},r={client:m(this,Gu),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,qa,fy({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(nt,Tt)=>{it(this,Pe,Wl).call(this,{type:"failed",failureCount:nt,error:Tt})},onPause:()=>{it(this,Pe,Wl).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>m(this,ue).canRun(this)}));const y=this.state.status==="pending",T=!m(this,qa).canStart();try{if(y)s();else{it(this,Pe,Wl).call(this,{type:"pending",variables:i,isPaused:T}),m(this,ue).config.onMutate&&await m(this,ue).config.onMutate(i,this,r);const Tt=await((R=(D=this.options).onMutate)==null?void 0:R.call(D,i,r));Tt!==this.state.context&&it(this,Pe,Wl).call(this,{type:"pending",context:Tt,variables:i,isPaused:T})}const nt=await m(this,qa).start();return await((A=(N=m(this,ue).config).onSuccess)==null?void 0:A.call(N,nt,i,this.state.context,this,r)),await((C=(U=this.options).onSuccess)==null?void 0:C.call(U,nt,i,this.state.context,r)),await((K=(Z=m(this,ue).config).onSettled)==null?void 0:K.call(Z,nt,null,this.state.variables,this.state.context,this,r)),await((Y=(F=this.options).onSettled)==null?void 0:Y.call(F,nt,null,i,this.state.context,r)),it(this,Pe,Wl).call(this,{type:"success",data:nt}),nt}catch(nt){try{await((tt=(P=m(this,ue).config).onError)==null?void 0:tt.call(P,nt,i,this.state.context,this,r))}catch(Tt){Promise.reject(Tt)}try{await((et=(St=this.options).onError)==null?void 0:et.call(St,nt,i,this.state.context,r))}catch(Tt){Promise.reject(Tt)}try{await((pt=(X=m(this,ue).config).onSettled)==null?void 0:pt.call(X,void 0,nt,this.state.variables,this.state.context,this,r))}catch(Tt){Promise.reject(Tt)}try{await((W=(Et=this.options).onSettled)==null?void 0:W.call(Et,void 0,nt,i,this.state.context,r))}catch(Tt){Promise.reject(Tt)}throw it(this,Pe,Wl).call(this,{type:"error",error:nt}),nt}finally{m(this,ue).runNext(this)}}},Gu=new WeakMap,Ie=new WeakMap,ue=new WeakMap,qa=new WeakMap,Pe=new WeakSet,Wl=function(i){const s=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),kt.batch(()=>{m(this,Ie).forEach(r=>{r.onMutationUpdate(i)}),m(this,ue).notify({mutation:this,type:"updated",action:i})})},ty);function my(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tl,we,Xu,ey,Cg=(ey=class extends Qn{constructor(i={}){super();V(this,Tl);V(this,we);V(this,Xu);this.config=i,q(this,Tl,new Set),q(this,we,new Map),q(this,Xu,0)}build(i,s,r){const y=new Dg({client:i,mutationCache:this,mutationId:++rc(this,Xu)._,options:i.defaultMutationOptions(s),state:r});return this.add(y),y}add(i){m(this,Tl).add(i);const s=oc(i);if(typeof s=="string"){const r=m(this,we).get(s);r?r.push(i):m(this,we).set(s,[i])}this.notify({type:"added",mutation:i})}remove(i){if(m(this,Tl).delete(i)){const s=oc(i);if(typeof s=="string"){const r=m(this,we).get(s);if(r)if(r.length>1){const y=r.indexOf(i);y!==-1&&r.splice(y,1)}else r[0]===i&&m(this,we).delete(s)}}this.notify({type:"removed",mutation:i})}canRun(i){const s=oc(i);if(typeof s=="string"){const r=m(this,we).get(s),y=r==null?void 0:r.find(T=>T.state.status==="pending");return!y||y===i}else return!0}runNext(i){var r;const s=oc(i);if(typeof s=="string"){const y=(r=m(this,we).get(s))==null?void 0:r.find(T=>T!==i&&T.state.isPaused);return(y==null?void 0:y.continue())??Promise.resolve()}else return Promise.resolve()}clear(){kt.batch(()=>{m(this,Tl).forEach(i=>{this.notify({type:"removed",mutation:i})}),m(this,Tl).clear(),m(this,we).clear()})}getAll(){return Array.from(m(this,Tl))}find(i){const s={exact:!0,...i};return this.getAll().find(r=>Hm(s,r))}findAll(i={}){return this.getAll().filter(s=>Hm(i,s))}notify(i){kt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){const i=this.getAll().filter(s=>s.state.isPaused);return kt.batch(()=>Promise.all(i.map(s=>s.continue().catch(fe))))}},Tl=new WeakMap,we=new WeakMap,Xu=new WeakMap,ey);function oc(c){var i;return(i=c.options.scope)==null?void 0:i.id}var jl,aa,Se,Al,Ol,hc,ur,ly,Rg=(ly=class extends Qn{constructor(s,r){super();V(this,Ol);V(this,jl);V(this,aa);V(this,Se);V(this,Al);q(this,jl,s),this.setOptions(r),this.bindMethods(),it(this,Ol,hc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var y;const r=this.options;this.options=m(this,jl).defaultMutationOptions(s),dc(this.options,r)||m(this,jl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:m(this,Se),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Qa(r.mutationKey)!==Qa(this.options.mutationKey)?this.reset():((y=m(this,Se))==null?void 0:y.state.status)==="pending"&&m(this,Se).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=m(this,Se))==null||s.removeObserver(this)}onMutationUpdate(s){it(this,Ol,hc).call(this),it(this,Ol,ur).call(this,s)}getCurrentResult(){return m(this,aa)}reset(){var s;(s=m(this,Se))==null||s.removeObserver(this),q(this,Se,void 0),it(this,Ol,hc).call(this),it(this,Ol,ur).call(this)}mutate(s,r){var y;return q(this,Al,r),(y=m(this,Se))==null||y.removeObserver(this),q(this,Se,m(this,jl).getMutationCache().build(m(this,jl),this.options)),m(this,Se).addObserver(this),m(this,Se).execute(s)}},jl=new WeakMap,aa=new WeakMap,Se=new WeakMap,Al=new WeakMap,Ol=new WeakSet,hc=function(){var r;const s=((r=m(this,Se))==null?void 0:r.state)??my();q(this,aa,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},ur=function(s){kt.batch(()=>{var r,y,T,D,R,N,A,U;if(m(this,Al)&&this.hasListeners()){const C=m(this,aa).variables,Z=m(this,aa).context,K={client:m(this,jl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(y=(r=m(this,Al)).onSuccess)==null||y.call(r,s.data,C,Z,K)}catch(F){Promise.reject(F)}try{(D=(T=m(this,Al)).onSettled)==null||D.call(T,s.data,null,C,Z,K)}catch(F){Promise.reject(F)}}else if((s==null?void 0:s.type)==="error"){try{(N=(R=m(this,Al)).onError)==null||N.call(R,s.error,C,Z,K)}catch(F){Promise.reject(F)}try{(U=(A=m(this,Al)).onSettled)==null||U.call(A,void 0,s.error,C,Z,K)}catch(F){Promise.reject(F)}}}this.listeners.forEach(C=>{C(m(this,aa))})})},ly),tl,ay,Ug=(ay=class extends Qn{constructor(i={}){super();V(this,tl);this.config=i,q(this,tl,new Map)}build(i,s,r){const y=s.queryKey,T=s.queryHash??dr(y,s);let D=this.get(T);return D||(D=new _g({client:i,queryKey:y,queryHash:T,options:i.defaultQueryOptions(s),state:r,defaultOptions:i.getQueryDefaults(y)}),this.add(D)),D}add(i){m(this,tl).has(i.queryHash)||(m(this,tl).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=m(this,tl).get(i.queryHash);s&&(i.destroy(),s===i&&m(this,tl).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){kt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return m(this,tl).get(i)}getAll(){return[...m(this,tl).values()]}find(i){const s={exact:!0,...i};return this.getAll().find(r=>Um(s,r))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(r=>Um(i,r)):s}notify(i){kt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},tl=new WeakMap,ay),Qt,na,ua,Rn,Un,ia,Hn,qn,ny,Hg=(ny=class{constructor(c={}){V(this,Qt);V(this,na);V(this,ua);V(this,Rn);V(this,Un);V(this,ia);V(this,Hn);V(this,qn);q(this,Qt,c.queryCache||new Ug),q(this,na,c.mutationCache||new Cg),q(this,ua,c.defaultOptions||{}),q(this,Rn,new Map),q(this,Un,new Map),q(this,ia,0)}mount(){rc(this,ia)._++,m(this,ia)===1&&(q(this,Hn,hr.subscribe(async c=>{c&&(await this.resumePausedMutations(),m(this,Qt).onFocus())})),q(this,qn,mc.subscribe(async c=>{c&&(await this.resumePausedMutations(),m(this,Qt).onOnline())})))}unmount(){var c,i;rc(this,ia)._--,m(this,ia)===0&&((c=m(this,Hn))==null||c.call(this),q(this,Hn,void 0),(i=m(this,qn))==null||i.call(this),q(this,qn,void 0))}isFetching(c){return m(this,Qt).findAll({...c,fetchStatus:"fetching"}).length}isMutating(c){return m(this,na).findAll({...c,status:"pending"}).length}getQueryData(c){var s;const i=this.defaultQueryOptions({queryKey:c});return(s=m(this,Qt).get(i.queryHash))==null?void 0:s.state.data}ensureQueryData(c){const i=this.defaultQueryOptions(c),s=m(this,Qt).build(this,i),r=s.state.data;return r===void 0?this.fetchQuery(c):(c.revalidateIfStale&&s.isStaleByTime(ca(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(c){return m(this,Qt).findAll(c).map(({queryKey:i,state:s})=>{const r=s.data;return[i,r]})}setQueryData(c,i,s){const r=this.defaultQueryOptions({queryKey:c}),y=m(this,Qt).get(r.queryHash),T=y==null?void 0:y.state.data,D=yg(i,T);if(D!==void 0)return m(this,Qt).build(this,r).setData(D,{...s,manual:!0})}setQueriesData(c,i,s){return kt.batch(()=>m(this,Qt).findAll(c).map(({queryKey:r})=>[r,this.setQueryData(r,i,s)]))}getQueryState(c){var s;const i=this.defaultQueryOptions({queryKey:c});return(s=m(this,Qt).get(i.queryHash))==null?void 0:s.state}removeQueries(c){const i=m(this,Qt);kt.batch(()=>{i.findAll(c).forEach(s=>{i.remove(s)})})}resetQueries(c,i){const s=m(this,Qt);return kt.batch(()=>(s.findAll(c).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...c},i)))}cancelQueries(c,i={}){const s={revert:!0,...i},r=kt.batch(()=>m(this,Qt).findAll(c).map(y=>y.cancel(s)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(c,i={}){return kt.batch(()=>(m(this,Qt).findAll(c).forEach(s=>{s.invalidate()}),(c==null?void 0:c.refetchType)==="none"?Promise.resolve():this.refetchQueries({...c,type:(c==null?void 0:c.refetchType)??(c==null?void 0:c.type)??"active"},i)))}refetchQueries(c,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},r=kt.batch(()=>m(this,Qt).findAll(c).filter(y=>!y.isDisabled()&&!y.isStatic()).map(y=>{let T=y.fetch(void 0,s);return s.throwOnError||(T=T.catch(fe)),y.state.fetchStatus==="paused"?Promise.resolve():T}));return Promise.all(r).then(fe)}fetchQuery(c){const i=this.defaultQueryOptions(c);i.retry===void 0&&(i.retry=!1);const s=m(this,Qt).build(this,i);return s.isStaleByTime(ca(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(c){return this.fetchQuery(c).then(fe).catch(fe)}fetchInfiniteQuery(c){return c._type="infinite",this.fetchQuery(c)}prefetchInfiniteQuery(c){return this.fetchInfiniteQuery(c).then(fe).catch(fe)}ensureInfiniteQueryData(c){return c._type="infinite",this.ensureQueryData(c)}resumePausedMutations(){return mc.isOnline()?m(this,na).resumePausedMutations():Promise.resolve()}getQueryCache(){return m(this,Qt)}getMutationCache(){return m(this,na)}getDefaultOptions(){return m(this,ua)}setDefaultOptions(c){q(this,ua,c)}setQueryDefaults(c,i){m(this,Rn).set(Qa(c),{queryKey:c,defaultOptions:i})}getQueryDefaults(c){const i=[...m(this,Rn).values()],s={};return i.forEach(r=>{Hu(c,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(c,i){m(this,Un).set(Qa(c),{mutationKey:c,defaultOptions:i})}getMutationDefaults(c){const i=[...m(this,Un).values()],s={};return i.forEach(r=>{Hu(c,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(c){if(c._defaulted)return c;const i={...m(this,ua).queries,...this.getQueryDefaults(c.queryKey),...c,_defaulted:!0};return i.queryHash||(i.queryHash=dr(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===mr&&(i.enabled=!1),i}defaultMutationOptions(c){return c!=null&&c._defaulted?c:{...m(this,ua).mutations,...(c==null?void 0:c.mutationKey)&&this.getMutationDefaults(c.mutationKey),...c,_defaulted:!0}}clear(){m(this,Qt).clear(),m(this,na).clear()}},Qt=new WeakMap,na=new WeakMap,ua=new WeakMap,Rn=new WeakMap,Un=new WeakMap,ia=new WeakMap,Hn=new WeakMap,qn=new WeakMap,ny),yy=$.createContext(void 0),Bn=c=>{const i=$.useContext(yy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},qg=({client:c,children:i})=>($.useEffect(()=>(c.mount(),()=>{c.unmount()}),[c]),h.jsx(yy.Provider,{value:c,children:i})),vy=$.createContext(!1),Qg=()=>$.useContext(vy);vy.Provider;function Bg(){let c=!1;return{clearReset:()=>{c=!1},reset:()=>{c=!0},isReset:()=>c}}var Yg=$.createContext(Bg()),Gg=()=>$.useContext(Yg),Xg=(c,i,s)=>{const r=s!=null&&s.state.error&&typeof c.throwOnError=="function"?yr(c.throwOnError,[s.state.error,s]):c.throwOnError;(c.suspense||c.experimental_prefetchInRender||r)&&(i.isReset()||(c.retryOnMount=!1))},Lg=c=>{$.useEffect(()=>{c.clearReset()},[c])},Zg=({result:c,errorResetBoundary:i,throwOnError:s,query:r,suspense:y})=>c.isError&&!i.isReset()&&!c.isFetching&&r&&(y&&c.data===void 0||yr(s,[c.error,r])),Kg=c=>{if(c.suspense){const s=y=>y==="static"?y:Math.max(y??1e3,1e3),r=c.staleTime;c.staleTime=typeof r=="function"?(...y)=>s(r(...y)):s(r),typeof c.gcTime=="number"&&(c.gcTime=Math.max(c.gcTime,1e3))}},Vg=(c,i)=>c.isLoading&&c.isFetching&&!i,wg=(c,i)=>(c==null?void 0:c.suspense)&&i.isPending,Zm=(c,i,s)=>i.fetchOptimistic(c).catch(()=>{s.clearReset()});function Jg(c,i,s){var K,F,Y,P;const r=Qg(),y=Gg(),T=Bn(),D=T.defaultQueryOptions(c);(F=(K=T.getDefaultOptions().queries)==null?void 0:K._experimental_beforeQuery)==null||F.call(K,D);const R=T.getQueryCache().get(D.queryHash),N=c.subscribed!==!1;D._optimisticResults=r?"isRestoring":N?"optimistic":void 0,Kg(D),Xg(D,y,R),Lg(y);const A=!T.getQueryCache().get(D.queryHash),[U]=$.useState(()=>new i(T,D)),C=U.getOptimisticResult(D),Z=!r&&N;if($.useSyncExternalStore($.useCallback(tt=>{const St=Z?U.subscribe(kt.batchCalls(tt)):fe;return U.updateResult(),St},[U,Z]),()=>U.getCurrentResult(),()=>U.getCurrentResult()),$.useEffect(()=>{U.setOptions(D)},[D,U]),wg(D,C))throw Zm(D,U,y);if(Zg({result:C,errorResetBoundary:y,throwOnError:D.throwOnError,query:R,suspense:D.suspense}))throw C.error;if((P=(Y=T.getDefaultOptions().queries)==null?void 0:Y._experimental_afterQuery)==null||P.call(Y,D,C),D.experimental_prefetchInRender&&!qu.isServer()&&Vg(C,r)){const tt=A?Zm(D,U,y):R==null?void 0:R.promise;tt==null||tt.catch(fe).finally(()=>{U.updateResult()})}return D.notifyOnChangeProps?C:U.trackResult(C)}function Lu(c,i){return Jg(c,xg)}function yc(c,i){const s=Bn(),[r]=$.useState(()=>new Rg(s,c));$.useEffect(()=>{r.setOptions(c)},[r,c]);const y=$.useSyncExternalStore($.useCallback(D=>r.subscribe(kt.batchCalls(D)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),T=$.useCallback((D,R)=>{r.mutate(D,R).catch(fe)},[r]);if(y.error&&yr(r.options.throwOnError,[y.error]))throw y.error;return{...y,mutate:T,mutateAsync:y.mutate}}const ir="/api/v0",cr="aaiclick.refresh";let gr=null;function br(c,i){return fetch(`${ir}${c}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})}function sr(){return gr}function gy(c){gr=c}function by(){return localStorage.getItem(cr)}function Sr(c){c?localStorage.setItem(cr,c):localStorage.removeItem(cr)}function vc(){gr=null,Sr(null)}async function kg(c,i){const s=await br("/auth/login",{username:c,password:i});if(!s.ok)throw new Error("login failed");const r=await s.json();gy(r.access_token),Sr(r.refresh_token)}async function Sy(){const c=by();if(!c)return!1;const i=await br("/auth/refresh",{refresh_token:c});if(!i.ok)return vc(),!1;const s=await i.json();return gy(s.access_token),Sr(s.refresh_token),!0}async function Fg(){const c=by();c&&await br("/auth/logout",{refresh_token:c}).catch(()=>{}),vc()}async function $g(){const c={},i=sr();i&&(c.Authorization=`Bearer ${i}`);let s=await fetch(`${ir}/auth/me`,{headers:c});return s.status===401&&await Sy()&&(s=await fetch(`${ir}/auth/me`,{headers:{Authorization:`Bearer ${sr()}`}})),s.ok?await s.json():null}const py=$.createContext({me:null,ready:!1,refresh:async()=>{},signOut:async()=>{}});function Ey(){return $.useContext(py)}function Wg({children:c}){const[i,s]=$.useState(null),[r,y]=$.useState(!1),T=$.useCallback(async()=>{s(await $g())},[]),D=$.useCallback(async()=>{await Fg(),s(null)},[]);return $.useEffect(()=>{T().finally(()=>y(!0))},[T]),$.useEffect(()=>{const R=()=>{vc(),s(null)};return window.addEventListener("aaiclick:unauthorized",R),()=>window.removeEventListener("aaiclick:unauthorized",R)},[]),h.jsx(py.Provider,{value:{me:i,ready:r,refresh:T,signOut:D},children:c})}function Ig({prompt:c,onPrompt:i}){return h.jsxs("header",{children:[h.jsxs("div",{className:"logo",children:["aai",h.jsx("span",{children:"click"})]}),h.jsx("div",{className:"prompt-wrap",children:h.jsx("input",{id:"prompt",value:c,onChange:s=>i(s.target.value),placeholder:"Type a command…  try @jobs, @registered, or run nyc_taxi_pipeline",autoComplete:"off",spellCheck:!1})}),h.jsx("div",{className:"hint",children:"prompt drives the view ↑"})]})}function Pg(c){const i=c.trim();if(i==="")return{kind:"home"};if(i==="@all")return{kind:"all"};if(i==="@jobs")return{kind:"jobs"};if(i==="@registered")return{kind:"registered"};if(i==="register")return{kind:"register",name:""};if(i.startsWith("register "))return{kind:"register",name:i.slice(9).trim()};if(i.startsWith("@job "))return{kind:"job",name:i.slice(5).trim()};if(i.startsWith("@task "))return{kind:"task",id:i.slice(6).trim()};if(i.startsWith("run ")){const s=i.slice(4).trim();return s.endsWith("?")?{kind:"run-form",name:s.slice(0,-1).trim()}:{kind:"run-confirm",name:s}}return i.startsWith("cancel ")?{kind:"cancel-confirm",ref:i.slice(7).trim()}:{kind:"unknown",raw:i}}const fr="p";function Km(){return new URLSearchParams(window.location.search).get(fr)??""}function tb(c){const i=new URL(window.location.href);c?i.searchParams.set(fr,c):i.searchParams.delete(fr),window.history.pushState({},"",i)}const eb=[{code:"@jobs",desc:"List all jobs, newest first.",cmd:"@jobs"},{code:"@registered",desc:"Registered jobs — run, register, enable/disable.",cmd:"@registered"},{code:"@job <name>",desc:"Job detail — header + tasks table.",cmd:"@job nyc_taxi_pipeline"},{code:"@task <id>",desc:"Task detail — status bar + live logs.",cmd:"@task 1"},{code:"@all",desc:"Every screen on one page.",cmd:"@all"}],lb=[{code:"run <name>",desc:"Run a registered job with defaults. Add ? to edit params.",cmd:"run nyc_taxi_pipeline"},{code:"cancel <name|id>",desc:"Cancel a pending/running job.",cmd:"cancel nyc_taxi_pipeline"},{code:"register",desc:"Register a new job (entrypoint, schedule, kwargs).",cmd:"register"},{code:"enable / disable <name>",desc:"Toggle a registered job on/off via @registered.",cmd:"@registered"}];function Vm({items:c,onPrompt:i}){return h.jsx("div",{className:"cmd-list",children:c.map(s=>h.jsxs("div",{className:"cmd",onClick:()=>i(s.cmd),children:[h.jsx("code",{children:s.code}),h.jsx("span",{className:"desc",children:s.desc})]},s.code))})}function ab({onPrompt:c}){return h.jsxs(h.Fragment,{children:[h.jsx("h2",{children:"aaiclick"}),h.jsx("p",{className:"sub",children:"Prompt-driven operator dashboard. Type a command above, or click one below."}),h.jsx("div",{className:"group-label",children:"Navigate"}),h.jsx(Vm,{items:eb,onPrompt:c}),h.jsx("div",{className:"group-label",children:"Actions"}),h.jsx(Vm,{items:lb,onPrompt:c})]})}const wm="/api/v0";class nb extends Error{constructor(s,r,y){super(y);Bf(this,"status");Bf(this,"problem");this.status=s,this.problem=r}}async function Ty(c){let i=null;try{i=await c.json()}catch{i=null}const s=(i==null?void 0:i.detail)??(i==null?void 0:i.title)??c.statusText;return new nb(c.status,i,s)}function Jm(c){const i={...c},s=sr();return s&&(i.Authorization=`Bearer ${s}`),i}async function jy(c,i={}){let s=await fetch(`${wm}${c}`,{...i,headers:Jm(i.headers)});return s.status===401&&await Sy()&&(s=await fetch(`${wm}${c}`,{...i,headers:Jm(i.headers)})),s.status===401&&(vc(),window.dispatchEvent(new Event("aaiclick:unauthorized"))),s}async function Zu(c){const i=await jy(c);if(!i.ok)throw await Ty(i);return await i.json()}async function gc(c,i){const s=await jy(c,{method:"POST",headers:i===void 0?{}:{"Content-Type":"application/json"},body:i===void 0?void 0:JSON.stringify(i)});if(!s.ok)throw await Ty(s);return await s.json()}function ub(){return Lu({queryKey:["jobs"],queryFn:()=>Zu("/jobs")})}function ib(c){return Lu({queryKey:["job",c],queryFn:()=>Zu(`/jobs/${encodeURIComponent(c)}`),enabled:c.length>0})}function cb(c){return Lu({queryKey:["task",c],queryFn:()=>Zu(`/tasks/${c}`),enabled:c.length>0})}function sb(c){return Lu({queryKey:["task-logs",c],queryFn:()=>Zu(`/tasks/${c}/logs`),enabled:c.length>0})}function fb(){return Lu({queryKey:["registered-jobs"],queryFn:()=>Zu("/registered-jobs"),refetchInterval:!1})}function Ay(){const c=Bn();return yc({mutationFn:i=>gc("/jobs:run",i),onSuccess:()=>c.invalidateQueries({queryKey:["jobs"]})})}function rb(){const c=Bn();return yc({mutationFn:i=>gc(`/jobs/${encodeURIComponent(i)}/cancel`),onSuccess:(i,s)=>{c.invalidateQueries({queryKey:["jobs"]}),c.invalidateQueries({queryKey:["job",s]})}})}function ob(){const c=Bn();return yc({mutationFn:i=>gc("/registered-jobs",i),onSuccess:()=>c.invalidateQueries({queryKey:["registered-jobs"]})})}function hb(){const c=Bn();return yc({mutationFn:({name:i,enabled:s})=>gc(`/registered-jobs/${encodeURIComponent(i)}/${s?"enable":"disable"}`),onSuccess:()=>c.invalidateQueries({queryKey:["registered-jobs"]})})}function el({chips:c,onPrompt:i}){return h.jsx("div",{className:"chips",children:c.map(s=>h.jsx("span",{className:"chip",onClick:()=>i(s.cmd),children:s.label},s.label))})}function Oy(c){if(c<60)return`${c}s`;const i=Math.floor(c/60);return i<60?`${i}m ${String(c%60).padStart(2,"0")}s`:`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function jn(c){if(!c)return"—";const i=new Date(c).getTime(),s=Math.max(0,Math.round((Date.now()-i)/1e3));if(s<60)return`${s}s ago`;const r=Math.round(s/60);if(r<60)return`${r}m ago`;const y=Math.round(r/60);return y<24?`${y}h ago`:`${Math.round(y/24)}d ago`}function pr(c,i){if(!c)return"—";const s=new Date(c).getTime(),r=i?new Date(i).getTime():Date.now();return Oy(Math.max(0,Math.round((r-s)/1e3)))}function db(c){return c==null?"—":Oy(Math.max(0,Math.round(c/1e3)))}function zy({done:c,total:i}){const s=i>0?Math.round(c/i*100):0;return h.jsxs("div",{className:"progress",children:[h.jsx("div",{className:"bar",children:h.jsx("span",{style:{width:`${s}%`}})}),h.jsxs("span",{className:"mono",children:[c,"/",i]})]})}const mb=new Set(["PENDING","CLAIMED","RUNNING","COMPLETED","FAILED","CANCELLED","PENDING_CLEANUP","UPSTREAM_FAILED"]);function bc({status:c,reason:i}){const s=mb.has(c)?`b-${c}`:"b-unknown";return h.jsx("span",{className:`badge ${s}`,title:i??void 0,children:c})}function yb({jobs:c,onPrompt:i}){return h.jsxs("table",{children:[h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("th",{children:"Name"}),h.jsx("th",{children:"Status"}),h.jsx("th",{children:"Progress"}),h.jsx("th",{children:"Created"}),h.jsx("th",{children:"Duration"})]})}),h.jsx("tbody",{children:c.map(s=>h.jsxs("tr",{className:"clickable",onClick:()=>i(`@job ${s.name}`),children:[h.jsx("td",{children:h.jsx("span",{className:"name-link mono",children:s.name})}),h.jsx("td",{children:h.jsx(bc,{status:s.status,reason:s.error})}),h.jsx("td",{children:h.jsx(zy,{done:s.completed_tasks,total:s.total_tasks})}),h.jsx("td",{children:jn(s.created_at)}),h.jsx("td",{className:"mono",children:pr(s.started_at,s.completed_at)})]},s.id))})]})}function vb({onPrompt:c}){const{data:i,isLoading:s,isError:r}=ub();return h.jsxs(h.Fragment,{children:[h.jsx("h2",{children:"Jobs"}),h.jsx("p",{className:"sub",children:"Sorted by created_at, newest first · auto-refreshes"}),h.jsx(el,{chips:[{label:"← home",cmd:""},{label:"@registered",cmd:"@registered"}],onPrompt:c}),s&&h.jsx("p",{className:"sub",children:"loading…"}),r&&h.jsx("p",{className:"err",children:"failed to load jobs"}),i&&h.jsx(yb,{jobs:i.items,onPrompt:c})]})}function _y({items:c}){return h.jsx("div",{className:"meta",children:c.map(i=>h.jsxs("div",{children:[h.jsx("span",{className:"k",children:i.k}),i.mono?h.jsx("span",{className:"mono",children:i.v}):i.v]},i.k))})}function gb({tasks:c,onPrompt:i}){return h.jsxs("table",{children:[h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("th",{children:"Name"}),h.jsx("th",{children:"Status"}),h.jsx("th",{children:"Entrypoint"}),h.jsx("th",{children:"Attempt"}),h.jsx("th",{children:"Started"}),h.jsx("th",{children:"Duration"})]})}),h.jsx("tbody",{children:c.map(s=>h.jsxs("tr",{className:"clickable",onClick:()=>i(`@task ${s.id}`),children:[h.jsx("td",{children:h.jsx("span",{className:"name-link mono",children:s.name})}),h.jsx("td",{children:h.jsx(bc,{status:s.status,reason:s.error})}),h.jsx("td",{className:"mono",children:s.entrypoint}),h.jsx("td",{className:"mono",children:s.attempt}),h.jsx("td",{children:jn(s.started_at)}),h.jsx("td",{className:"mono",children:pr(s.started_at,s.completed_at)})]},s.id))})]})}function bb({name:c,onPrompt:i}){const{data:s,isLoading:r,isError:y}=ib(c);if(r)return h.jsx("p",{className:"sub",children:"loading…"});if(y||!s)return h.jsxs(h.Fragment,{children:[h.jsx("h2",{children:"Job not found"}),h.jsx("p",{className:"sub mono",children:c}),h.jsx(el,{chips:[{label:"@jobs",cmd:"@jobs"}],onPrompt:i})]});const T=s.status==="RUNNING"||s.status==="PENDING",D=()=>i(`cancel ${s.name}`);return h.jsxs(h.Fragment,{children:[h.jsx(el,{chips:[{label:"← @jobs",cmd:"@jobs"}],onPrompt:i}),h.jsxs("div",{className:"detail-head",children:[h.jsxs("div",{className:"title-row",children:[h.jsxs("h2",{children:[h.jsx("span",{className:"mono",children:s.name})," ",h.jsx(bc,{status:s.status})]}),h.jsx("div",{className:"spacer"}),T&&h.jsx("button",{className:"btn btn-danger btn-sm",onClick:D,children:"Cancel job"})]}),h.jsx(_y,{items:[{k:"Created",v:jn(s.created_at)},{k:"Started",v:jn(s.started_at)},{k:"Completed",v:jn(s.completed_at)},{k:"Duration",v:db(s.duration_ms)},{k:"Progress",v:h.jsx(zy,{done:s.completed_tasks,total:s.total_tasks})}]}),s.error&&h.jsx("div",{className:"err",children:s.error})]}),h.jsx(gb,{tasks:s.tasks??[],onPrompt:i})]})}function Sb(c){const i=/[zZ]|[+-]\d\d:?\d\d$/.test(c)?c:`${c}Z`,s=new Date(i);return Number.isNaN(s.getTime())?c:s.toISOString().slice(11,23)}const pb=$.memo(function({lines:i,showTimestamps:s}){return h.jsx(h.Fragment,{children:i.map((r,y)=>h.jsxs("div",{"data-testid":`log-line-${r.level}`,className:`log-line lvl-${r.level}`,children:[s&&r.created_at&&h.jsxs("span",{className:"ts",children:[Sb(r.created_at)," "]}),r.text]},y))})});function Eb({taskId:c}){const{data:i,isLoading:s,isError:r}=sb(c),[y,T]=$.useState(!1);if(s)return h.jsx("div",{className:"logs",children:"loading logs…"});if(r)return h.jsx("div",{className:"logs",children:"failed to load logs"});const D=(i==null?void 0:i.lines)??[];return!i||!i.available||D.length===0?h.jsx("div",{className:"logs",children:"(no logs captured for this task)"}):h.jsxs("div",{className:"logs",children:[h.jsxs("label",{className:"logs-toolbar",children:[h.jsx("input",{type:"checkbox",checked:y,onChange:R=>T(R.target.checked)}),"Show timestamps"]}),h.jsx(pb,{lines:D,showTimestamps:y})]})}function Tb({id:c,onPrompt:i}){const{data:s,isLoading:r,isError:y}=cb(c);return r?h.jsx("p",{className:"sub",children:"loading…"}):y||!s?h.jsxs(h.Fragment,{children:[h.jsx("h2",{children:"Task not found"}),h.jsxs("p",{className:"sub mono",children:["#",c]}),h.jsx(el,{chips:[{label:"@jobs",cmd:"@jobs"}],onPrompt:i})]}):h.jsxs(h.Fragment,{children:[h.jsx(el,{chips:[{label:"@jobs",cmd:"@jobs"},{label:`← @job ${s.job_id}`,cmd:`@job ${s.job_id}`}],onPrompt:i}),h.jsxs("div",{className:"detail-head",children:[h.jsxs("h2",{children:[h.jsx("span",{className:"mono",children:s.name})," ",h.jsx(bc,{status:s.status})]}),h.jsx(_y,{items:[{k:"Task ID",v:`#${s.id}`,mono:!0},{k:"Job",v:String(s.job_id),mono:!0},{k:"Entrypoint",v:s.entrypoint,mono:!0},{k:"Attempt",v:`${s.attempt}/${s.max_retries}`,mono:!0},{k:"Execution worker",v:s.execution_worker_id==null?"—":String(s.execution_worker_id),mono:!0},{k:"Started",v:jn(s.started_at)},{k:"Duration",v:pr(s.started_at,s.completed_at)}]}),s.error&&h.jsx("div",{className:"err",children:s.error})]}),h.jsx(Eb,{taskId:s.id})]})}const xy=$.createContext(()=>{});function Ku(){return $.useContext(xy)}function jb({children:c}){const[i,s]=$.useState([]),r=$.useCallback(y=>{const T=Date.now()+Math.random();s(D=>[...D,{id:T,message:y}]),setTimeout(()=>s(D=>D.filter(R=>R.id!==T)),2600)},[]);return h.jsxs(xy.Provider,{value:r,children:[c,h.jsx("div",{id:"toast-wrap",children:i.map(y=>h.jsx("div",{className:"toast",children:y.message},y.id))})]})}function Ab({name:c,enabled:i}){const s=hb(),r=Ku(),y=()=>{const T=!i;s.mutate({name:c,enabled:T},{onSuccess:()=>r(`${T?"Enabled":"Disabled"} ${c}`)})};return h.jsxs("button",{className:`toggle ${i?"on":"off"}`,onClick:y,children:[h.jsx("span",{className:"switch"}),i?"enabled":"disabled"]})}function Ob({onPrompt:c}){const{data:i,isLoading:s,isError:r}=fb();return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"chips",children:[h.jsx("span",{className:"chip",onClick:()=>c("@jobs"),children:"← @jobs"}),h.jsx("div",{className:"spacer"}),h.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>c("register"),children:"+ Register new job"})]}),h.jsx("h2",{children:"Registered jobs"}),h.jsx("p",{className:"sub",children:"Run on demand, or on a cron schedule via the background scheduler."}),s&&h.jsx("p",{className:"sub",children:"loading…"}),r&&h.jsx("p",{className:"err",children:"failed to load registered jobs"}),i&&h.jsxs("table",{children:[h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("th",{children:"Name"}),h.jsx("th",{children:"Entrypoint"}),h.jsx("th",{children:"Enabled"}),h.jsx("th",{children:"Schedule"}),h.jsx("th",{children:"Next run"}),h.jsx("th",{children:"Actions"})]})}),h.jsx("tbody",{children:i.items.map(y=>h.jsxs("tr",{children:[h.jsx("td",{children:h.jsx("span",{className:"name-link mono",children:y.name})}),h.jsx("td",{className:"mono",children:y.entrypoint}),h.jsx("td",{children:h.jsx(Ab,{name:y.name,enabled:y.enabled})}),h.jsx("td",{className:"mono",children:y.schedule??"manual"}),h.jsx("td",{children:y.next_run_at??"—"}),h.jsx("td",{children:h.jsxs("div",{className:"row-actions",children:[h.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>c(`run ${y.name}`),children:"Run"}),h.jsx("button",{className:"btn btn-sm",onClick:()=>c(`run ${y.name} ?`),children:"Run…"})]})})]},y.id))})]})]})}function Vu({className:c="",children:i}){return h.jsx("div",{className:`panel ${c}`,children:i})}function zb({name:c,onPrompt:i}){const s=Ay(),r=Ku(),y=()=>s.mutate({name:c,entry_type:"module"},{onSuccess:T=>{r(`Started ${c} — job #${T.id}`),i(`@job ${c}`)},onError:T=>r(`Run failed: ${T.message}`)});return h.jsxs(h.Fragment,{children:[h.jsx(el,{chips:[{label:"← @registered",cmd:"@registered"}],onPrompt:i}),h.jsxs(Vu,{className:"confirm info",children:[h.jsxs("h2",{children:["Run ",h.jsx("span",{className:"mono",children:c}),"?"]}),h.jsx("p",{className:"sub",children:"Starts a new job with the registered default parameters."}),h.jsxs("div",{className:"form-actions",children:[h.jsx("button",{className:"btn btn-primary",disabled:s.isPending,onClick:y,children:"Run job"}),h.jsx("button",{className:"btn",onClick:()=>i(`run ${c} ?`),children:"Edit parameters…"}),h.jsx("button",{className:"btn",onClick:()=>i("@registered"),children:"Cancel"})]})]})]})}function _b({name:c,onPrompt:i}){const s=Ay(),r=Ku(),[y,T]=$.useState("{}"),[D,R]=$.useState(""),N=()=>{let A;try{A=JSON.parse(y||"{}")}catch{r("kwargs is not valid JSON");return}s.mutate({name:c,kwargs:A,preservation_mode:D||null,entry_type:"module"},{onSuccess:U=>{r(`Started ${c} — job #${U.id}`),i(`@job ${c}`)},onError:U=>r(`Run failed: ${U.message}`)})};return h.jsxs(h.Fragment,{children:[h.jsx(el,{chips:[{label:"← @registered",cmd:"@registered"}],onPrompt:i}),h.jsxs(Vu,{children:[h.jsxs("h2",{children:["Run ",h.jsx("span",{className:"mono",children:c})]}),h.jsx("p",{className:"sub",children:"POST /api/v0/jobs:run — edit parameters before launching."}),h.jsxs("div",{className:"field",children:[h.jsxs("label",{children:["kwargs ",h.jsx("span",{className:"help",children:"— JSON passed to the job entrypoint"})]}),h.jsx("textarea",{rows:5,value:y,onChange:A=>T(A.target.value)})]}),h.jsxs("div",{className:"field",children:[h.jsx("label",{children:"Preservation mode"}),h.jsxs("select",{value:D,onChange:A=>R(A.target.value),children:[h.jsx("option",{value:"",children:"(registered default)"}),h.jsx("option",{value:"NONE",children:"NONE"}),h.jsx("option",{value:"FULL",children:"FULL"})]})]}),h.jsxs("div",{className:"form-actions",children:[h.jsx("button",{className:"btn btn-primary",disabled:s.isPending,onClick:N,children:"Run job"}),h.jsx("button",{className:"btn",onClick:()=>i("@registered"),children:"Cancel"})]})]})]})}function xb({name:c,onPrompt:i}){const s=ob(),r=Ku(),[y,T]=$.useState(""),[D,R]=$.useState(c),[N,A]=$.useState(""),[U,C]=$.useState(""),[Z,K]=$.useState(!0),F=()=>{let Y=null;if(U.trim())try{Y=JSON.parse(U)}catch{r("default_kwargs is not valid JSON");return}s.mutate({entrypoint:y,name:D,schedule:N||null,default_kwargs:Y,enabled:Z,runner_mode:"subprocess"},{onSuccess:P=>{r(`Registered ${P.name}`),i("@registered")},onError:P=>r(`Register failed: ${P.message}`)})};return h.jsxs(h.Fragment,{children:[h.jsx(el,{chips:[{label:"← @registered",cmd:"@registered"}],onPrompt:i}),h.jsxs(Vu,{children:[h.jsx("h2",{children:"Register a job"}),h.jsx("p",{className:"sub",children:"POST /api/v0/registered-jobs — the entrypoint must exist in the deployed code."}),h.jsxs("div",{className:"field",children:[h.jsxs("label",{children:["Entrypoint ",h.jsx("span",{className:"help",children:"— dotted path, e.g. tasks.report.build"})]}),h.jsx("input",{type:"text",value:y,onChange:Y=>T(Y.target.value),placeholder:"package.module.callable"})]}),h.jsxs("div",{className:"field",children:[h.jsxs("label",{children:["Name ",h.jsx("span",{className:"help",children:"— defaults to the last segment of the entrypoint"})]}),h.jsx("input",{type:"text",value:D,onChange:Y=>R(Y.target.value),placeholder:"(optional)"})]}),h.jsxs("div",{className:"field",children:[h.jsxs("label",{children:["Schedule ",h.jsx("span",{className:"help",children:"— cron, e.g. 0 2 * * * · leave blank for manual"})]}),h.jsx("input",{type:"text",value:N,onChange:Y=>A(Y.target.value),placeholder:"(optional cron expression)"})]}),h.jsxs("div",{className:"field",children:[h.jsxs("label",{children:["default_kwargs ",h.jsx("span",{className:"help",children:"— JSON"})]}),h.jsx("textarea",{rows:3,value:U,onChange:Y=>C(Y.target.value),placeholder:"{}"})]}),h.jsxs("div",{className:"field inline",children:[h.jsx("input",{type:"checkbox",id:"reg-enabled",checked:Z,onChange:Y=>K(Y.target.checked)}),h.jsx("label",{htmlFor:"reg-enabled",children:"Enabled"})]}),h.jsxs("div",{className:"form-actions",children:[h.jsx("button",{className:"btn btn-primary",disabled:s.isPending||!y,onClick:F,children:"Register"}),h.jsx("button",{className:"btn",onClick:()=>i("@registered"),children:"Cancel"})]})]})]})}function Mb({refId:c,onPrompt:i}){const s=rb(),r=Ku(),y=()=>s.mutate(c,{onSuccess:()=>{r(`Cancelling ${c}…`),i(`@job ${c}`)},onError:T=>r(`Cancel failed: ${T.message}`)});return h.jsxs(h.Fragment,{children:[h.jsx(el,{chips:[{label:`← @job ${c}`,cmd:`@job ${c}`}],onPrompt:i}),h.jsxs(Vu,{className:"confirm",children:[h.jsxs("h2",{children:["Cancel ",h.jsx("span",{className:"mono",children:c}),"?"]}),h.jsxs("p",{className:"sub",children:["POST /api/v0/jobs/",c,"/cancel — pending tasks are cancelled and any running task is signalled to abort."]}),h.jsxs("div",{className:"form-actions",children:[h.jsx("button",{className:"btn btn-danger",disabled:s.isPending,onClick:y,children:"Cancel job"}),h.jsx("button",{className:"btn",onClick:()=>i(`@job ${c}`),children:"Keep running"})]})]})]})}const Nb=[{label:"Home",cmd:""},{label:"Jobs list",cmd:"@jobs"},{label:"Registered jobs",cmd:"@registered"},{label:"Register a job",cmd:"register"}];function Db({onPrompt:c}){return h.jsxs(h.Fragment,{children:[h.jsx(el,{chips:[{label:"← home",cmd:""}],onPrompt:c}),h.jsx("h2",{children:"All screens"}),h.jsx("p",{className:"sub",children:"Jump to any live screen."}),h.jsx("div",{className:"cmd-list",children:Nb.map(i=>h.jsxs("div",{className:"cmd",onClick:()=>c(i.cmd),children:[h.jsx("code",{children:i.cmd||"(home)"}),h.jsx("span",{className:"desc",children:i.label})]},i.label))})]})}function Cb(){const{refresh:c}=Ey(),[i,s]=$.useState(""),[r,y]=$.useState(""),[T,D]=$.useState(null),[R,N]=$.useState(!1),A=async U=>{U.preventDefault(),N(!0),D(null);try{await kg(i,r),await c()}catch{D("Invalid username or password")}finally{N(!1)}};return h.jsx("main",{children:h.jsx("div",{className:"content",id:"content",children:h.jsxs(Vu,{children:[h.jsx("h2",{children:"Sign in"}),h.jsx("p",{className:"sub",children:"Enter your aaiclick credentials."}),h.jsxs("form",{onSubmit:A,children:[h.jsxs("div",{className:"field",children:[h.jsx("label",{children:"Username"}),h.jsx("input",{id:"login-username",type:"text",value:i,autoFocus:!0,onChange:U=>s(U.target.value)})]}),h.jsxs("div",{className:"field",children:[h.jsx("label",{children:"Password"}),h.jsx("input",{id:"login-password",type:"password",value:r,onChange:U=>y(U.target.value)})]}),T&&h.jsx("p",{className:"err",children:T}),h.jsx("div",{className:"form-actions",children:h.jsx("button",{id:"login-submit",className:"btn btn-primary",type:"submit",disabled:R,children:R?"Signing in…":"Sign in"})})]})]})})})}function Rb(c,i){const s=Pg(c);switch(s.kind){case"home":return h.jsx(ab,{onPrompt:i});case"all":return h.jsx(Db,{onPrompt:i});case"jobs":return h.jsx(vb,{onPrompt:i});case"registered":return h.jsx(Ob,{onPrompt:i});case"register":return h.jsx(xb,{name:s.name,onPrompt:i});case"job":return h.jsx(bb,{name:s.name,onPrompt:i});case"task":return h.jsx(Tb,{id:s.id,onPrompt:i});case"run-confirm":return h.jsx(zb,{name:s.name,onPrompt:i});case"run-form":return h.jsx(_b,{name:s.name,onPrompt:i});case"cancel-confirm":return h.jsx(Mb,{refId:s.ref,onPrompt:i});case"unknown":return h.jsxs(h.Fragment,{children:[h.jsx("h2",{children:"Unknown command"}),h.jsx("p",{className:"sub mono",children:s.raw}),h.jsxs("div",{className:"chips",children:[h.jsx("span",{className:"chip",onClick:()=>i(""),children:"help"}),h.jsx("span",{className:"chip",onClick:()=>i("@jobs"),children:"@jobs"})]})]})}}function Ub(){const{me:c,ready:i}=Ey(),[s,r]=$.useState(Km),y=T=>{r(T),tb(T)};return $.useEffect(()=>{const T=()=>r(Km());return window.addEventListener("popstate",T),()=>window.removeEventListener("popstate",T)},[]),i?c?h.jsxs(h.Fragment,{children:[h.jsx(Ig,{prompt:s,onPrompt:y}),h.jsx("main",{children:h.jsx("div",{className:"content",id:"content",children:Rb(s,y)})})]}):h.jsx(Cb,{}):null}const Hb=new Hg({defaultOptions:{queries:{refetchInterval:2e3}}});fg.createRoot(document.getElementById("root")).render(h.jsx($.StrictMode,{children:h.jsx(qg,{client:Hb,children:h.jsx(Wg,{children:h.jsx(jb,{children:h.jsx(Ub,{})})})})}));
