(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))f(d);new MutationObserver(d=>{for(const v of d)if(v.type==="childList")for(const p of v.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&f(p)}).observe(document,{childList:!0,subtree:!0});function s(d){const v={};return d.integrity&&(v.integrity=d.integrity),d.referrerPolicy&&(v.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?v.credentials="include":d.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function f(d){if(d.ep)return;d.ep=!0;const v=s(d);fetch(d.href,v)}})();function $d(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Tf={exports:{}},ju={};/**
 * @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 _d;function By(){if(_d)return ju;_d=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(f,d,v){var p=null;if(v!==void 0&&(p=""+v),d.key!==void 0&&(p=""+d.key),"key"in d){v={};for(var z in d)z!=="key"&&(v[z]=d[z])}else v=d;return d=v.ref,{$$typeof:i,type:f,key:p,ref:d!==void 0?d:null,props:v}}return ju.Fragment=o,ju.jsx=s,ju.jsxs=s,ju}var Cd;function qy(){return Cd||(Cd=1,Tf.exports=By()),Tf.exports}var m=qy(),Af={exports:{}},te={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ud;function wy(){if(Ud)return te;Ud=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),p=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),B=Symbol.iterator;function N(g){return g===null||typeof g!="object"?null:(g=B&&g[B]||g["@@iterator"],typeof g=="function"?g:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,w={};function X(g,H,Q){this.props=g,this.context=H,this.refs=w,this.updater=Q||q}X.prototype.isReactComponent={},X.prototype.setState=function(g,H){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,H,"setState")},X.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function L(){}L.prototype=X.prototype;function Z(g,H,Q){this.props=g,this.context=H,this.refs=w,this.updater=Q||q}var W=Z.prototype=new L;W.constructor=Z,U(W,X.prototype),W.isPureReactComponent=!0;var ce=Array.isArray,F={H:null,A:null,T:null,S:null,V:null},Oe=Object.prototype.hasOwnProperty;function ue(g,H,Q,Y,J,se){return Q=se.ref,{$$typeof:i,type:g,key:H,ref:Q!==void 0?Q:null,props:se}}function re(g,H){return ue(g.type,H,void 0,void 0,void 0,g.props)}function xe(g){return typeof g=="object"&&g!==null&&g.$$typeof===i}function Je(g){var H={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(Q){return H[Q]})}var ot=/\/+/g;function Xe(g,H){return typeof g=="object"&&g!==null&&g.key!=null?Je(""+g.key):H.toString(36)}function Rl(){}function Ol(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Rl,Rl):(g.status="pending",g.then(function(H){g.status==="pending"&&(g.status="fulfilled",g.value=H)},function(H){g.status==="pending"&&(g.status="rejected",g.reason=H)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function Qe(g,H,Q,Y,J){var se=typeof g;(se==="undefined"||se==="boolean")&&(g=null);var ee=!1;if(g===null)ee=!0;else switch(se){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(g.$$typeof){case i:case o:ee=!0;break;case M:return ee=g._init,Qe(ee(g._payload),H,Q,Y,J)}}if(ee)return J=J(g),ee=Y===""?"."+Xe(g,0):Y,ce(J)?(Q="",ee!=null&&(Q=ee.replace(ot,"$&/")+"/"),Qe(J,H,Q,"",function(Pt){return Pt})):J!=null&&(xe(J)&&(J=re(J,Q+(J.key==null||g&&g.key===J.key?"":(""+J.key).replace(ot,"$&/")+"/")+ee)),H.push(J)),1;ee=0;var tt=Y===""?".":Y+":";if(ce(g))for(var Ee=0;Ee<g.length;Ee++)Y=g[Ee],se=tt+Xe(Y,Ee),ee+=Qe(Y,H,Q,se,J);else if(Ee=N(g),typeof Ee=="function")for(g=Ee.call(g),Ee=0;!(Y=g.next()).done;)Y=Y.value,se=tt+Xe(Y,Ee++),ee+=Qe(Y,H,Q,se,J);else if(se==="object"){if(typeof g.then=="function")return Qe(Ol(g),H,Q,Y,J);throw H=String(g),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ee}function j(g,H,Q){if(g==null)return g;var Y=[],J=0;return Qe(g,Y,"","",function(se){return H.call(Q,se,J++)}),Y}function G(g){if(g._status===-1){var H=g._result;H=H(),H.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=H)}if(g._status===1)return g._result.default;throw g._result}var P=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function be(){}return te.Children={map:j,forEach:function(g,H,Q){j(g,function(){H.apply(this,arguments)},Q)},count:function(g){var H=0;return j(g,function(){H++}),H},toArray:function(g){return j(g,function(H){return H})||[]},only:function(g){if(!xe(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},te.Component=X,te.Fragment=s,te.Profiler=d,te.PureComponent=Z,te.StrictMode=f,te.Suspense=S,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,te.__COMPILER_RUNTIME={__proto__:null,c:function(g){return F.H.useMemoCache(g)}},te.cache=function(g){return function(){return g.apply(null,arguments)}},te.cloneElement=function(g,H,Q){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var Y=U({},g.props),J=g.key,se=void 0;if(H!=null)for(ee in H.ref!==void 0&&(se=void 0),H.key!==void 0&&(J=""+H.key),H)!Oe.call(H,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&H.ref===void 0||(Y[ee]=H[ee]);var ee=arguments.length-2;if(ee===1)Y.children=Q;else if(1<ee){for(var tt=Array(ee),Ee=0;Ee<ee;Ee++)tt[Ee]=arguments[Ee+2];Y.children=tt}return ue(g.type,J,void 0,void 0,se,Y)},te.createContext=function(g){return g={$$typeof:p,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:v,_context:g},g},te.createElement=function(g,H,Q){var Y,J={},se=null;if(H!=null)for(Y in H.key!==void 0&&(se=""+H.key),H)Oe.call(H,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(J[Y]=H[Y]);var ee=arguments.length-2;if(ee===1)J.children=Q;else if(1<ee){for(var tt=Array(ee),Ee=0;Ee<ee;Ee++)tt[Ee]=arguments[Ee+2];J.children=tt}if(g&&g.defaultProps)for(Y in ee=g.defaultProps,ee)J[Y]===void 0&&(J[Y]=ee[Y]);return ue(g,se,void 0,void 0,null,J)},te.createRef=function(){return{current:null}},te.forwardRef=function(g){return{$$typeof:z,render:g}},te.isValidElement=xe,te.lazy=function(g){return{$$typeof:M,_payload:{_status:-1,_result:g},_init:G}},te.memo=function(g,H){return{$$typeof:h,type:g,compare:H===void 0?null:H}},te.startTransition=function(g){var H=F.T,Q={};F.T=Q;try{var Y=g(),J=F.S;J!==null&&J(Q,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(be,P)}catch(se){P(se)}finally{F.T=H}},te.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},te.use=function(g){return F.H.use(g)},te.useActionState=function(g,H,Q){return F.H.useActionState(g,H,Q)},te.useCallback=function(g,H){return F.H.useCallback(g,H)},te.useContext=function(g){return F.H.useContext(g)},te.useDebugValue=function(){},te.useDeferredValue=function(g,H){return F.H.useDeferredValue(g,H)},te.useEffect=function(g,H,Q){var Y=F.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(g,H)},te.useId=function(){return F.H.useId()},te.useImperativeHandle=function(g,H,Q){return F.H.useImperativeHandle(g,H,Q)},te.useInsertionEffect=function(g,H){return F.H.useInsertionEffect(g,H)},te.useLayoutEffect=function(g,H){return F.H.useLayoutEffect(g,H)},te.useMemo=function(g,H){return F.H.useMemo(g,H)},te.useOptimistic=function(g,H){return F.H.useOptimistic(g,H)},te.useReducer=function(g,H,Q){return F.H.useReducer(g,H,Q)},te.useRef=function(g){return F.H.useRef(g)},te.useState=function(g){return F.H.useState(g)},te.useSyncExternalStore=function(g,H,Q){return F.H.useSyncExternalStore(g,H,Q)},te.useTransition=function(){return F.H.useTransition()},te.version="19.1.0",te}var Hd;function Cf(){return Hd||(Hd=1,Af.exports=wy()),Af.exports}var A=Cf();const Ly=$d(A);var Rf={exports:{}},_u={},Of={exports:{}},Nf={};/**
 * @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 Bd;function Yy(){return Bd||(Bd=1,function(i){function o(j,G){var P=j.length;j.push(G);e:for(;0<P;){var be=P-1>>>1,g=j[be];if(0<d(g,G))j[be]=G,j[P]=g,P=be;else break e}}function s(j){return j.length===0?null:j[0]}function f(j){if(j.length===0)return null;var G=j[0],P=j.pop();if(P!==G){j[0]=P;e:for(var be=0,g=j.length,H=g>>>1;be<H;){var Q=2*(be+1)-1,Y=j[Q],J=Q+1,se=j[J];if(0>d(Y,P))J<g&&0>d(se,Y)?(j[be]=se,j[J]=P,be=J):(j[be]=Y,j[Q]=P,be=Q);else if(J<g&&0>d(se,P))j[be]=se,j[J]=P,be=J;else break e}}return G}function d(j,G){var P=j.sortIndex-G.sortIndex;return P!==0?P:j.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var p=Date,z=p.now();i.unstable_now=function(){return p.now()-z}}var S=[],h=[],M=1,B=null,N=3,q=!1,U=!1,w=!1,X=!1,L=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function ce(j){for(var G=s(h);G!==null;){if(G.callback===null)f(h);else if(G.startTime<=j)f(h),G.sortIndex=G.expirationTime,o(S,G);else break;G=s(h)}}function F(j){if(w=!1,ce(j),!U)if(s(S)!==null)U=!0,Oe||(Oe=!0,Xe());else{var G=s(h);G!==null&&Qe(F,G.startTime-j)}}var Oe=!1,ue=-1,re=5,xe=-1;function Je(){return X?!0:!(i.unstable_now()-xe<re)}function ot(){if(X=!1,Oe){var j=i.unstable_now();xe=j;var G=!0;try{e:{U=!1,w&&(w=!1,Z(ue),ue=-1),q=!0;var P=N;try{t:{for(ce(j),B=s(S);B!==null&&!(B.expirationTime>j&&Je());){var be=B.callback;if(typeof be=="function"){B.callback=null,N=B.priorityLevel;var g=be(B.expirationTime<=j);if(j=i.unstable_now(),typeof g=="function"){B.callback=g,ce(j),G=!0;break t}B===s(S)&&f(S),ce(j)}else f(S);B=s(S)}if(B!==null)G=!0;else{var H=s(h);H!==null&&Qe(F,H.startTime-j),G=!1}}break e}finally{B=null,N=P,q=!1}G=void 0}}finally{G?Xe():Oe=!1}}}var Xe;if(typeof W=="function")Xe=function(){W(ot)};else if(typeof MessageChannel<"u"){var Rl=new MessageChannel,Ol=Rl.port2;Rl.port1.onmessage=ot,Xe=function(){Ol.postMessage(null)}}else Xe=function(){L(ot,0)};function Qe(j,G){ue=L(function(){j(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(j){switch(N){case 1:case 2:case 3:var G=3;break;default:G=N}var P=N;N=G;try{return j()}finally{N=P}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(j,G){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=N;N=j;try{return G()}finally{N=P}},i.unstable_scheduleCallback=function(j,G,P){var be=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?be+P:be):P=be,j){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=P+g,j={id:M++,callback:G,priorityLevel:j,startTime:P,expirationTime:g,sortIndex:-1},P>be?(j.sortIndex=P,o(h,j),s(S)===null&&j===s(h)&&(w?(Z(ue),ue=-1):w=!0,Qe(F,P-be))):(j.sortIndex=g,o(S,j),U||q||(U=!0,Oe||(Oe=!0,Xe()))),j},i.unstable_shouldYield=Je,i.unstable_wrapCallback=function(j){var G=N;return function(){var P=N;N=G;try{return j.apply(this,arguments)}finally{N=P}}}}(Nf)),Nf}var qd;function Gy(){return qd||(qd=1,Of.exports=Yy()),Of.exports}var Mf={exports:{}},Ke={};/**
 * @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 wd;function Xy(){if(wd)return Ke;wd=1;var i=Cf();function o(S){var h="https://react.dev/errors/"+S;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)h+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+S+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var f={d:{f:s,r:function(){throw Error(o(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},d=Symbol.for("react.portal");function v(S,h,M){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:B==null?null:""+B,children:S,containerInfo:h,implementation:M}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function z(S,h){if(S==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ke.createPortal=function(S,h){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(o(299));return v(S,h,null,M)},Ke.flushSync=function(S){var h=p.T,M=f.p;try{if(p.T=null,f.p=2,S)return S()}finally{p.T=h,f.p=M,f.d.f()}},Ke.preconnect=function(S,h){typeof S=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,f.d.C(S,h))},Ke.prefetchDNS=function(S){typeof S=="string"&&f.d.D(S)},Ke.preinit=function(S,h){if(typeof S=="string"&&h&&typeof h.as=="string"){var M=h.as,B=z(M,h.crossOrigin),N=typeof h.integrity=="string"?h.integrity:void 0,q=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;M==="style"?f.d.S(S,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:B,integrity:N,fetchPriority:q}):M==="script"&&f.d.X(S,{crossOrigin:B,integrity:N,fetchPriority:q,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ke.preinitModule=function(S,h){if(typeof S=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var M=z(h.as,h.crossOrigin);f.d.M(S,{crossOrigin:M,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&f.d.M(S)},Ke.preload=function(S,h){if(typeof S=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var M=h.as,B=z(M,h.crossOrigin);f.d.L(S,M,{crossOrigin:B,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ke.preloadModule=function(S,h){if(typeof S=="string")if(h){var M=z(h.as,h.crossOrigin);f.d.m(S,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:M,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else f.d.m(S)},Ke.requestFormReset=function(S){f.d.r(S)},Ke.unstable_batchedUpdates=function(S,h){return S(h)},Ke.useFormState=function(S,h,M){return p.H.useFormState(S,h,M)},Ke.useFormStatus=function(){return p.H.useHostTransitionStatus()},Ke.version="19.1.0",Ke}var Ld;function Qy(){if(Ld)return Mf.exports;Ld=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Mf.exports=Xy(),Mf.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 Yd;function Zy(){if(Yd)return _u;Yd=1;var i=Gy(),o=Cf(),s=Qy();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function z(e){if(v(e)!==e)throw Error(f(188))}function S(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(f(188));return t!==e?null:e}for(var l=e,a=t;;){var u=l.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===l)return z(u),e;if(n===a)return z(u),t;n=n.sibling}throw Error(f(188))}if(l.return!==a.return)l=u,a=n;else{for(var c=!1,r=u.child;r;){if(r===l){c=!0,l=u,a=n;break}if(r===a){c=!0,a=u,l=n;break}r=r.sibling}if(!c){for(r=n.child;r;){if(r===l){c=!0,l=n,a=u;break}if(r===a){c=!0,a=n,l=u;break}r=r.sibling}if(!c)throw Error(f(189))}}if(l.alternate!==a)throw Error(f(190))}if(l.tag!==3)throw Error(f(188));return l.stateNode.current===l?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var M=Object.assign,B=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),Z=Symbol.for("react.consumer"),W=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),Je=Symbol.for("react.memo_cache_sentinel"),ot=Symbol.iterator;function Xe(e){return e===null||typeof e!="object"?null:(e=ot&&e[ot]||e["@@iterator"],typeof e=="function"?e:null)}var Rl=Symbol.for("react.client.reference");function Ol(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Rl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case X:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case Oe:return"SuspenseList";case xe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case W:return(e.displayName||"Context")+".Provider";case Z:return(e._context.displayName||"Context")+".Consumer";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return t=e.displayName||null,t!==null?t:Ol(e.type)||"Memo";case re:t=e._payload,e=e._init;try{return Ol(e(t))}catch{}}return null}var Qe=Array.isArray,j=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},be=[],g=-1;function H(e){return{current:e}}function Q(e){0>g||(e.current=be[g],be[g]=null,g--)}function Y(e,t){g++,be[g]=e.current,e.current=t}var J=H(null),se=H(null),ee=H(null),tt=H(null);function Ee(e,t){switch(Y(ee,t),Y(se,e),Y(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=id(t),e=cd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(J),Y(J,e)}function Pt(){Q(J),Q(se),Q(ee)}function ci(e){e.memoizedState!==null&&Y(tt,e);var t=J.current,l=cd(t,e.type);t!==l&&(Y(se,e),Y(J,l))}function Lu(e){se.current===e&&(Q(J),Q(se)),tt.current===e&&(Q(tt),Ou._currentValue=P)}var fi=Object.prototype.hasOwnProperty,ri=i.unstable_scheduleCallback,si=i.unstable_cancelCallback,mh=i.unstable_shouldYield,yh=i.unstable_requestPaint,At=i.unstable_now,vh=i.unstable_getCurrentPriorityLevel,Lf=i.unstable_ImmediatePriority,Yf=i.unstable_UserBlockingPriority,Yu=i.unstable_NormalPriority,gh=i.unstable_LowPriority,Gf=i.unstable_IdlePriority,bh=i.log,ph=i.unstable_setDisableYieldValue,Ua=null,lt=null;function It(e){if(typeof bh=="function"&&ph(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(Ua,e)}catch{}}var at=Math.clz32?Math.clz32:Eh,Sh=Math.log,xh=Math.LN2;function Eh(e){return e>>>=0,e===0?32:31-(Sh(e)/xh|0)|0}var Gu=256,Xu=4194304;function Nl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var u=0,n=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=a&134217727;return r!==0?(a=r&~n,a!==0?u=Nl(a):(c&=r,c!==0?u=Nl(c):l||(l=r&~e,l!==0&&(u=Nl(l))))):(r=a&~n,r!==0?u=Nl(r):c!==0?u=Nl(c):l||(l=a&~e,l!==0&&(u=Nl(l)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,l=t&-t,n>=l||n===32&&(l&4194048)!==0)?t:u}function Ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Th(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xf(){var e=Gu;return Gu<<=1,(Gu&4194048)===0&&(Gu=256),e}function Qf(){var e=Xu;return Xu<<=1,(Xu&62914560)===0&&(Xu=4194304),e}function oi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ah(e,t,l,a,u,n){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var r=e.entanglements,y=e.expirationTimes,T=e.hiddenUpdates;for(l=c&~l;0<l;){var D=31-at(l),C=1<<D;r[D]=0,y[D]=-1;var R=T[D];if(R!==null)for(T[D]=null,D=0;D<R.length;D++){var O=R[D];O!==null&&(O.lane&=-536870913)}l&=~C}a!==0&&Zf(e,a,0),n!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=n&~(c&~t))}function Zf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-at(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Vf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-at(l),u=1<<a;u&t|e[a]&t&&(e[a]|=t),l&=~u}}function di(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Kf(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Od(e.type))}function Rh(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var el=Math.random().toString(36).slice(2),Ze="__reactFiber$"+el,$e="__reactProps$"+el,Jl="__reactContainer$"+el,mi="__reactEvents$"+el,Oh="__reactListeners$"+el,Nh="__reactHandles$"+el,Jf="__reactResources$"+el,qa="__reactMarker$"+el;function yi(e){delete e[Ze],delete e[$e],delete e[mi],delete e[Oh],delete e[Nh]}function kl(e){var t=e[Ze];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Jl]||l[Ze]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=od(e);e!==null;){if(l=e[Ze])return l;e=od(e)}return t}e=l,l=e.parentNode}return null}function $l(e){if(e=e[Ze]||e[Jl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Wl(e){var t=e[Jf];return t||(t=e[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function He(e){e[qa]=!0}var kf=new Set,$f={};function Ml(e,t){Fl(e,t),Fl(e+"Capture",t)}function Fl(e,t){for($f[e]=t,e=0;e<t.length;e++)kf.add(t[e])}var Mh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Wf={},Ff={};function zh(e){return fi.call(Ff,e)?!0:fi.call(Wf,e)?!1:Mh.test(e)?Ff[e]=!0:(Wf[e]=!0,!1)}function Zu(e,t,l){if(zh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Vu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Ut(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var vi,Pf;function Pl(e){if(vi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);vi=t&&t[1]||"",Pf=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+vi+e+Pf}var gi=!1;function bi(e,t){if(!e||gi)return"";gi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(O){var R=O}Reflect.construct(e,[],C)}else{try{C.call()}catch(O){R=O}e.call(C.prototype)}}else{try{throw Error()}catch(O){R=O}(C=e())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(O){if(O&&R&&typeof O.stack=="string")return[O.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),c=n[0],r=n[1];if(c&&r){var y=c.split(`
`),T=r.split(`
`);for(u=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(a===y.length||u===T.length)for(a=y.length-1,u=T.length-1;1<=a&&0<=u&&y[a]!==T[u];)u--;for(;1<=a&&0<=u;a--,u--)if(y[a]!==T[u]){if(a!==1||u!==1)do if(a--,u--,0>u||y[a]!==T[u]){var D=`
`+y[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=u);break}}}finally{gi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pl(l):""}function Dh(e){switch(e.tag){case 26:case 27:case 5:return Pl(e.type);case 16:return Pl("Lazy");case 13:return Pl("Suspense");case 19:return Pl("SuspenseList");case 0:case 15:return bi(e.type,!1);case 11:return bi(e.type.render,!1);case 1:return bi(e.type,!0);case 31:return Pl("Activity");default:return""}}function If(e){try{var t="";do t+=Dh(e),e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function er(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jh(e){var t=er(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,n=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(c){a=""+c,n.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ku(e){e._valueTracker||(e._valueTracker=jh(e))}function tr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=er(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ju(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _h=/[\n"\\]/g;function ht(e){return e.replace(_h,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function pi(e,t,l,a,u,n,c,r){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Si(e,c,dt(t)):l!=null?Si(e,c,dt(l)):a!=null&&e.removeAttribute("value"),u==null&&n!=null&&(e.defaultChecked=!!n),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+dt(r):e.removeAttribute("name")}function lr(e,t,l,a,u,n,c,r){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||l!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;l=l!=null?""+dt(l):"",t=t!=null?""+dt(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=r?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c)}function Si(e,t,l){t==="number"&&Ju(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Il(e,t,l,a){if(e=e.options,t){t={};for(var u=0;u<l.length;u++)t["$"+l[u]]=!0;for(l=0;l<e.length;l++)u=t.hasOwnProperty("$"+e[l].value),e[l].selected!==u&&(e[l].selected=u),u&&a&&(e[l].defaultSelected=!0)}else{for(l=""+dt(l),t=null,u=0;u<e.length;u++){if(e[u].value===l){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function ar(e,t,l){if(t!=null&&(t=""+dt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+dt(l):""}function ur(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(f(92));if(Qe(a)){if(1<a.length)throw Error(f(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=dt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Ch=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 nr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Ch.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ir(e,t,l){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&l[u]!==a&&nr(e,u,a)}else for(var n in t)t.hasOwnProperty(n)&&nr(e,n,t[n])}function xi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uh=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"]]),Hh=/^[\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 ku(e){return Hh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ei=null;function Ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,la=null;function cr(e){var t=$l(e);if(t&&(e=t.stateNode)){var l=e[$e]||null;e:switch(e=t.stateNode,t.type){case"input":if(pi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ht(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var u=a[$e]||null;if(!u)throw Error(f(90));pi(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&tr(a)}break e;case"textarea":ar(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Il(e,!!l.multiple,t,!1)}}}var Ai=!1;function fr(e,t,l){if(Ai)return e(t,l);Ai=!0;try{var a=e(t);return a}finally{if(Ai=!1,(ta!==null||la!==null)&&(Un(),ta&&(t=ta,e=la,la=ta=null,cr(t),e)))for(t=0;t<e.length;t++)cr(e[t])}}function La(e,t){var l=e.stateNode;if(l===null)return null;var a=l[$e]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(f(231,t,typeof l));return l}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=!1;if(Ht)try{var Ya={};Object.defineProperty(Ya,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{Ri=!1}var tl=null,Oi=null,$u=null;function rr(){if($u)return $u;var e,t=Oi,l=t.length,a,u="value"in tl?tl.value:tl.textContent,n=u.length;for(e=0;e<l&&t[e]===u[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===u[n-a];a++);return $u=u.slice(e,1<a?1-a:void 0)}function Wu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fu(){return!0}function sr(){return!1}function We(e){function t(l,a,u,n,c){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=n,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(n):n[r]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Fu:sr,this.isPropagationStopped=sr,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fu)},persist:function(){},isPersistent:Fu}),t}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=We(zl),Ga=M({},zl,{view:0,detail:0}),Bh=We(Ga),Ni,Mi,Xa,Iu=M({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Di,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xa&&(Xa&&e.type==="mousemove"?(Ni=e.screenX-Xa.screenX,Mi=e.screenY-Xa.screenY):Mi=Ni=0,Xa=e),Ni)},movementY:function(e){return"movementY"in e?e.movementY:Mi}}),or=We(Iu),qh=M({},Iu,{dataTransfer:0}),wh=We(qh),Lh=M({},Ga,{relatedTarget:0}),zi=We(Lh),Yh=M({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Gh=We(Yh),Xh=M({},zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qh=We(Xh),Zh=M({},zl,{data:0}),dr=We(Zh),Vh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kh={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"},Jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jh[e])?!!t[e]:!1}function Di(){return kh}var $h=M({},Ga,{key:function(e){if(e.key){var t=Vh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Di,charCode:function(e){return e.type==="keypress"?Wu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wh=We($h),Fh=M({},Iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hr=We(Fh),Ph=M({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Di}),Ih=We(Ph),em=M({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),tm=We(em),lm=M({},Iu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),am=We(lm),um=M({},zl,{newState:0,oldState:0}),nm=We(um),im=[9,13,27,32],ji=Ht&&"CompositionEvent"in window,Qa=null;Ht&&"documentMode"in document&&(Qa=document.documentMode);var cm=Ht&&"TextEvent"in window&&!Qa,mr=Ht&&(!ji||Qa&&8<Qa&&11>=Qa),yr=" ",vr=!1;function gr(e,t){switch(e){case"keyup":return im.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function br(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function fm(e,t){switch(e){case"compositionend":return br(t);case"keypress":return t.which!==32?null:(vr=!0,yr);case"textInput":return e=t.data,e===yr&&vr?null:e;default:return null}}function rm(e,t){if(aa)return e==="compositionend"||!ji&&gr(e,t)?(e=rr(),$u=Oi=tl=null,aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return mr&&t.locale!=="ko"?null:t.data;default:return null}}var sm={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 pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sm[e.type]:t==="textarea"}function Sr(e,t,l,a){ta?la?la.push(a):la=[a]:ta=a,t=Yn(t,"onChange"),0<t.length&&(l=new Pu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Za=null,Va=null;function om(e){td(e,0)}function en(e){var t=wa(e);if(tr(t))return e}function xr(e,t){if(e==="change")return t}var Er=!1;if(Ht){var _i;if(Ht){var Ci="oninput"in document;if(!Ci){var Tr=document.createElement("div");Tr.setAttribute("oninput","return;"),Ci=typeof Tr.oninput=="function"}_i=Ci}else _i=!1;Er=_i&&(!document.documentMode||9<document.documentMode)}function Ar(){Za&&(Za.detachEvent("onpropertychange",Rr),Va=Za=null)}function Rr(e){if(e.propertyName==="value"&&en(Va)){var t=[];Sr(t,Va,e,Ti(e)),fr(om,t)}}function dm(e,t,l){e==="focusin"?(Ar(),Za=t,Va=l,Za.attachEvent("onpropertychange",Rr)):e==="focusout"&&Ar()}function hm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return en(Va)}function mm(e,t){if(e==="click")return en(t)}function ym(e,t){if(e==="input"||e==="change")return en(t)}function vm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ut=typeof Object.is=="function"?Object.is:vm;function Ka(e,t){if(ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!fi.call(t,u)||!ut(e[u],t[u]))return!1}return!0}function Or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var l=Or(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Or(l)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ju(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ju(e.document)}return t}function Ui(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gm=Ht&&"documentMode"in document&&11>=document.documentMode,ua=null,Hi=null,Ja=null,Bi=!1;function Dr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Bi||ua==null||ua!==Ju(a)||(a=ua,"selectionStart"in a&&Ui(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}),Ja&&Ka(Ja,a)||(Ja=a,a=Yn(Hi,"onSelect"),0<a.length&&(t=new Pu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ua)))}function Dl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var na={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},qi={},jr={};Ht&&(jr=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function jl(e){if(qi[e])return qi[e];if(!na[e])return e;var t=na[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in jr)return qi[e]=t[l];return e}var _r=jl("animationend"),Cr=jl("animationiteration"),Ur=jl("animationstart"),bm=jl("transitionrun"),pm=jl("transitionstart"),Sm=jl("transitioncancel"),Hr=jl("transitionend"),Br=new Map,wi="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(" ");wi.push("scrollEnd");function xt(e,t){Br.set(e,t),Ml(t,[e])}var qr=new WeakMap;function mt(e,t){if(typeof e=="object"&&e!==null){var l=qr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:If(t)},qr.set(e,t),t)}return{value:e,source:t,stack:If(t)}}var yt=[],ia=0,Li=0;function tn(){for(var e=ia,t=Li=ia=0;t<e;){var l=yt[t];yt[t++]=null;var a=yt[t];yt[t++]=null;var u=yt[t];yt[t++]=null;var n=yt[t];if(yt[t++]=null,a!==null&&u!==null){var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}n!==0&&wr(l,u,n)}}function ln(e,t,l,a){yt[ia++]=e,yt[ia++]=t,yt[ia++]=l,yt[ia++]=a,Li|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Yi(e,t,l,a){return ln(e,t,l,a),an(e)}function ca(e,t){return ln(e,null,null,t),an(e)}function wr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var u=!1,n=e.return;n!==null;)n.childLanes|=l,a=n.alternate,a!==null&&(a.childLanes|=l),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(u=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,u&&t!==null&&(u=31-at(l),e=n.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=l|536870912),n):null}function an(e){if(50<bu)throw bu=0,Kc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function xm(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nt(e,t,l,a){return new xm(e,t,l,a)}function Gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bt(e,t){var l=e.alternate;return l===null?(l=nt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Lr(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function un(e,t,l,a,u,n){var c=0;if(a=e,typeof e=="function")Gi(e)&&(c=1);else if(typeof e=="string")c=Ty(e,l,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case xe:return e=nt(31,l,t,u),e.elementType=xe,e.lanes=n,e;case U:return _l(l.children,u,n,t);case w:c=8,u|=24;break;case X:return e=nt(12,l,t,u|2),e.elementType=X,e.lanes=n,e;case F:return e=nt(13,l,t,u),e.elementType=F,e.lanes=n,e;case Oe:return e=nt(19,l,t,u),e.elementType=Oe,e.lanes=n,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:case W:c=10;break e;case Z:c=9;break e;case ce:c=11;break e;case ue:c=14;break e;case re:c=16,a=null;break e}c=29,l=Error(f(130,e===null?"null":typeof e,"")),a=null}return t=nt(c,l,t,u),t.elementType=e,t.type=a,t.lanes=n,t}function _l(e,t,l,a){return e=nt(7,e,a,t),e.lanes=l,e}function Xi(e,t,l){return e=nt(6,e,null,t),e.lanes=l,e}function Qi(e,t,l){return t=nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ra=[],sa=0,nn=null,cn=0,vt=[],gt=0,Cl=null,qt=1,wt="";function Ul(e,t){ra[sa++]=cn,ra[sa++]=nn,nn=e,cn=t}function Yr(e,t,l){vt[gt++]=qt,vt[gt++]=wt,vt[gt++]=Cl,Cl=e;var a=qt;e=wt;var u=32-at(a)-1;a&=~(1<<u),l+=1;var n=32-at(t)+u;if(30<n){var c=u-u%5;n=(a&(1<<c)-1).toString(32),a>>=c,u-=c,qt=1<<32-at(t)+u|l<<u|a,wt=n+e}else qt=1<<n|l<<u|a,wt=e}function Zi(e){e.return!==null&&(Ul(e,1),Yr(e,1,0))}function Vi(e){for(;e===nn;)nn=ra[--sa],ra[sa]=null,cn=ra[--sa],ra[sa]=null;for(;e===Cl;)Cl=vt[--gt],vt[gt]=null,wt=vt[--gt],vt[gt]=null,qt=vt[--gt],vt[gt]=null}var ke=null,Ne=null,de=!1,Hl=null,Rt=!1,Ki=Error(f(519));function Bl(e){var t=Error(f(418,""));throw Wa(mt(t,e)),Ki}function Gr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ze]=e,t[$e]=a,l){case"dialog":ie("cancel",t),ie("close",t);break;case"iframe":case"object":case"embed":ie("load",t);break;case"video":case"audio":for(l=0;l<Su.length;l++)ie(Su[l],t);break;case"source":ie("error",t);break;case"img":case"image":case"link":ie("error",t),ie("load",t);break;case"details":ie("toggle",t);break;case"input":ie("invalid",t),lr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Ku(t);break;case"select":ie("invalid",t);break;case"textarea":ie("invalid",t),ur(t,a.value,a.defaultValue,a.children),Ku(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||nd(t.textContent,l)?(a.popover!=null&&(ie("beforetoggle",t),ie("toggle",t)),a.onScroll!=null&&ie("scroll",t),a.onScrollEnd!=null&&ie("scrollend",t),a.onClick!=null&&(t.onclick=Gn),t=!0):t=!1,t||Bl(e)}function Xr(e){for(ke=e.return;ke;)switch(ke.tag){case 5:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:ke=ke.return}}function ka(e){if(e!==ke)return!1;if(!de)return Xr(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||rf(e.type,e.memoizedProps)),l=!l),l&&Ne&&Bl(e),Xr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Ne=Tt(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Ne=null}}else t===27?(t=Ne,gl(e.type)?(e=hf,hf=null,Ne=e):Ne=t):Ne=ke?Tt(e.stateNode.nextSibling):null;return!0}function $a(){Ne=ke=null,de=!1}function Qr(){var e=Hl;return e!==null&&(Ie===null?Ie=e:Ie.push.apply(Ie,e),Hl=null),e}function Wa(e){Hl===null?Hl=[e]:Hl.push(e)}var Ji=H(null),ql=null,Lt=null;function ll(e,t,l){Y(Ji,t._currentValue),t._currentValue=l}function Yt(e){e._currentValue=Ji.current,Q(Ji)}function ki(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function $i(e,t,l,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var n=u.dependencies;if(n!==null){var c=u.child;n=n.firstContext;e:for(;n!==null;){var r=n;n=u;for(var y=0;y<t.length;y++)if(r.context===t[y]){n.lanes|=l,r=n.alternate,r!==null&&(r.lanes|=l),ki(n.return,l,e),a||(c=null);break e}n=r.next}}else if(u.tag===18){if(c=u.return,c===null)throw Error(f(341));c.lanes|=l,n=c.alternate,n!==null&&(n.lanes|=l),ki(c,l,e),c=null}else c=u.child;if(c!==null)c.return=u;else for(c=u;c!==null;){if(c===e){c=null;break}if(u=c.sibling,u!==null){u.return=c.return,c=u;break}c=c.return}u=c}}function Fa(e,t,l,a){e=null;for(var u=t,n=!1;u!==null;){if(!n){if((u.flags&524288)!==0)n=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var c=u.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=u.type;ut(u.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(u===tt.current){if(c=u.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ou):e=[Ou])}u=u.return}e!==null&&$i(t,e,l,a),t.flags|=262144}function fn(e){for(e=e.firstContext;e!==null;){if(!ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wl(e){ql=e,Lt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Zr(ql,e)}function rn(e,t){return ql===null&&wl(e),Zr(e,t)}function Zr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Lt===null){if(e===null)throw Error(f(308));Lt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Lt=Lt.next=t;return l}var Em=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Tm=i.unstable_scheduleCallback,Am=i.unstable_NormalPriority,Ce={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wi(){return{controller:new Em,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&Tm(Am,function(){e.controller.abort()})}var Ia=null,Fi=0,oa=0,da=null;function Rm(e,t){if(Ia===null){var l=Ia=[];Fi=0,oa=Ic(),da={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Fi++,t.then(Vr,Vr),t}function Vr(){if(--Fi===0&&Ia!==null){da!==null&&(da.status="fulfilled");var e=Ia;Ia=null,oa=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Om(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<l.length;u++)(0,l[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Kr=j.S;j.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rm(e,t),Kr!==null&&Kr(e,t)};var Ll=H(null);function Pi(){var e=Ll.current;return e!==null?e:Se.pooledCache}function sn(e,t){t===null?Y(Ll,Ll.current):Y(Ll,t.pool)}function Jr(){var e=Pi();return e===null?null:{parent:Ce._currentValue,pool:e}}var eu=Error(f(460)),kr=Error(f(474)),on=Error(f(542)),Ii={then:function(){}};function $r(e){return e=e.status,e==="fulfilled"||e==="rejected"}function dn(){}function Wr(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(dn,dn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pr(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=Se,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pr(e),e}throw tu=t,eu}}var tu=null;function Fr(){if(tu===null)throw Error(f(459));var e=tu;return tu=null,e}function Pr(e){if(e===eu||e===on)throw Error(f(483))}var al=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ul(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function nl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=an(e),wr(e,null,l),t}return ln(e,a,t,l),an(e)}function lu(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Vf(e,l)}}function lc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,n=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};n===null?u=n=c:n=n.next=c,l=l.next}while(l!==null);n===null?u=n=t:n=n.next=t}else u=n=t;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ac=!1;function au(){if(ac){var e=da;if(e!==null)throw e}}function uu(e,t,l,a){ac=!1;var u=e.updateQueue;al=!1;var n=u.firstBaseUpdate,c=u.lastBaseUpdate,r=u.shared.pending;if(r!==null){u.shared.pending=null;var y=r,T=y.next;y.next=null,c===null?n=T:c.next=T,c=y;var D=e.alternate;D!==null&&(D=D.updateQueue,r=D.lastBaseUpdate,r!==c&&(r===null?D.firstBaseUpdate=T:r.next=T,D.lastBaseUpdate=y))}if(n!==null){var C=u.baseState;c=0,D=T=y=null,r=n;do{var R=r.lane&-536870913,O=R!==r.lane;if(O?(fe&R)===R:(a&R)===R){R!==0&&R===oa&&(ac=!0),D!==null&&(D=D.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var I=e,k=r;R=t;var ge=l;switch(k.tag){case 1:if(I=k.payload,typeof I=="function"){C=I.call(ge,C,R);break e}C=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=k.payload,R=typeof I=="function"?I.call(ge,C,R):I,R==null)break e;C=M({},C,R);break e;case 2:al=!0}}R=r.callback,R!==null&&(e.flags|=64,O&&(e.flags|=8192),O=u.callbacks,O===null?u.callbacks=[R]:O.push(R))}else O={lane:R,tag:r.tag,payload:r.payload,callback:r.callback,next:null},D===null?(T=D=O,y=C):D=D.next=O,c|=R;if(r=r.next,r===null){if(r=u.shared.pending,r===null)break;O=r,r=O.next,O.next=null,u.lastBaseUpdate=O,u.shared.pending=null}}while(!0);D===null&&(y=C),u.baseState=y,u.firstBaseUpdate=T,u.lastBaseUpdate=D,n===null&&(u.shared.lanes=0),hl|=c,e.lanes=c,e.memoizedState=C}}function Ir(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function es(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ir(l[e],t)}var ha=H(null),hn=H(0);function ts(e,t){e=Jt,Y(hn,e),Y(ha,t),Jt=e|t.baseLanes}function uc(){Y(hn,Jt),Y(ha,ha.current)}function nc(){Jt=hn.current,Q(ha),Q(hn)}var il=0,le=null,ye=null,je=null,mn=!1,ma=!1,Yl=!1,yn=0,nu=0,ya=null,Nm=0;function ze(){throw Error(f(321))}function ic(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ut(e[l],t[l]))return!1;return!0}function cc(e,t,l,a,u,n){return il=n,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?ws:Ls,Yl=!1,n=l(a,u),Yl=!1,ma&&(n=as(t,l,a,u)),ls(e),n}function ls(e){j.H=xn;var t=ye!==null&&ye.next!==null;if(il=0,je=ye=le=null,mn=!1,nu=0,ya=null,t)throw Error(f(300));e===null||Be||(e=e.dependencies,e!==null&&fn(e)&&(Be=!0))}function as(e,t,l,a){le=e;var u=0;do{if(ma&&(ya=null),nu=0,ma=!1,25<=u)throw Error(f(301));if(u+=1,je=ye=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}j.H=Um,n=t(l,a)}while(ma);return n}function Mm(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?iu(t):t,e=e.useState()[0],(ye!==null?ye.memoizedState:null)!==e&&(le.flags|=1024),t}function fc(){var e=yn!==0;return yn=0,e}function rc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function sc(e){if(mn){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mn=!1}il=0,je=ye=le=null,ma=!1,nu=yn=0,ya=null}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?le.memoizedState=je=e:je=je.next=e,je}function _e(){if(ye===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=je===null?le.memoizedState:je.next;if(t!==null)je=t,ye=e;else{if(e===null)throw le.alternate===null?Error(f(467)):Error(f(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},je===null?le.memoizedState=je=e:je=je.next=e}return je}function oc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function iu(e){var t=nu;return nu+=1,ya===null&&(ya=[]),e=Wr(ya,e,t),t=le,(je===null?t.memoizedState:je.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?ws:Ls),e}function vn(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return iu(e);if(e.$$typeof===W)return Ve(e)}throw Error(f(438,String(e)))}function dc(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=oc(),le.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Je;return t.index++,l}function Gt(e,t){return typeof t=="function"?t(e):t}function gn(e){var t=_e();return hc(t,ye,e)}function hc(e,t,l){var a=e.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=l;var u=e.baseQueue,n=a.pending;if(n!==null){if(u!==null){var c=u.next;u.next=n.next,n.next=c}t.baseQueue=u=n,a.pending=null}if(n=e.baseState,u===null)e.memoizedState=n;else{t=u.next;var r=c=null,y=null,T=t,D=!1;do{var C=T.lane&-536870913;if(C!==T.lane?(fe&C)===C:(il&C)===C){var R=T.revertLane;if(R===0)y!==null&&(y=y.next={lane:0,revertLane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),C===oa&&(D=!0);else if((il&R)===R){T=T.next,R===oa&&(D=!0);continue}else C={lane:0,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(r=y=C,c=n):y=y.next=C,le.lanes|=R,hl|=R;C=T.action,Yl&&l(n,C),n=T.hasEagerState?T.eagerState:l(n,C)}else R={lane:C,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(r=y=R,c=n):y=y.next=R,le.lanes|=C,hl|=C;T=T.next}while(T!==null&&T!==t);if(y===null?c=n:y.next=r,!ut(n,e.memoizedState)&&(Be=!0,D&&(l=da,l!==null)))throw l;e.memoizedState=n,e.baseState=c,e.baseQueue=y,a.lastRenderedState=n}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function mc(e){var t=_e(),l=t.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=e;var a=l.dispatch,u=l.pending,n=t.memoizedState;if(u!==null){l.pending=null;var c=u=u.next;do n=e(n,c.action),c=c.next;while(c!==u);ut(n,t.memoizedState)||(Be=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),l.lastRenderedState=n}return[n,a]}function us(e,t,l){var a=le,u=_e(),n=de;if(n){if(l===void 0)throw Error(f(407));l=l()}else l=t();var c=!ut((ye||u).memoizedState,l);c&&(u.memoizedState=l,Be=!0),u=u.queue;var r=cs.bind(null,a,u,e);if(cu(2048,8,r,[e]),u.getSnapshot!==t||c||je!==null&&je.memoizedState.tag&1){if(a.flags|=2048,va(9,bn(),is.bind(null,a,u,l,t),null),Se===null)throw Error(f(349));n||(il&124)!==0||ns(a,t,l)}return l}function ns(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=oc(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function is(e,t,l,a){t.value=l,t.getSnapshot=a,fs(t)&&rs(e)}function cs(e,t,l){return l(function(){fs(t)&&rs(e)})}function fs(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ut(e,l)}catch{return!0}}function rs(e){var t=ca(e,2);t!==null&&st(t,e,2)}function yc(e){var t=Fe();if(typeof e=="function"){var l=e;if(e=l(),Yl){It(!0);try{l()}finally{It(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gt,lastRenderedState:e},t}function ss(e,t,l,a){return e.baseState=l,hc(e,ye,typeof a=="function"?a:Gt)}function zm(e,t,l,a,u){if(Sn(e))throw Error(f(485));if(e=t.action,e!==null){var n={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){n.listeners.push(c)}};j.T!==null?l(!0):n.isTransition=!1,a(n),l=t.pending,l===null?(n.next=t.pending=n,os(t,n)):(n.next=l.next,t.pending=l.next=n)}}function os(e,t){var l=t.action,a=t.payload,u=e.state;if(t.isTransition){var n=j.T,c={};j.T=c;try{var r=l(u,a),y=j.S;y!==null&&y(c,r),ds(e,t,r)}catch(T){vc(e,t,T)}finally{j.T=n}}else try{n=l(u,a),ds(e,t,n)}catch(T){vc(e,t,T)}}function ds(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){hs(e,t,a)},function(a){return vc(e,t,a)}):hs(e,t,l)}function hs(e,t,l){t.status="fulfilled",t.value=l,ms(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,os(e,l)))}function vc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,ms(t),t=t.next;while(t!==a)}e.action=null}function ms(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ys(e,t){return t}function vs(e,t){if(de){var l=Se.formState;if(l!==null){e:{var a=le;if(de){if(Ne){t:{for(var u=Ne,n=Rt;u.nodeType!==8;){if(!n){u=null;break t}if(u=Tt(u.nextSibling),u===null){u=null;break t}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Ne=Tt(u.nextSibling),a=u.data==="F!";break e}}Bl(a)}a=!1}a&&(t=l[0])}}return l=Fe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ys,lastRenderedState:t},l.queue=a,l=Hs.bind(null,le,a),a.dispatch=l,a=yc(!1),n=xc.bind(null,le,!1,a.queue),a=Fe(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,l=zm.bind(null,le,u,n,l),u.dispatch=l,a.memoizedState=e,[t,l,!1]}function gs(e){var t=_e();return bs(t,ye,e)}function bs(e,t,l){if(t=hc(e,t,ys)[0],e=gn(Gt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=iu(t)}catch(c){throw c===eu?on:c}else a=t;t=_e();var u=t.queue,n=u.dispatch;return l!==t.memoizedState&&(le.flags|=2048,va(9,bn(),Dm.bind(null,u,l),null)),[a,n,e]}function Dm(e,t){e.action=t}function ps(e){var t=_e(),l=ye;if(l!==null)return bs(t,l,e);_e(),t=t.memoizedState,l=_e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=oc(),le.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function bn(){return{destroy:void 0,resource:void 0}}function Ss(){return _e().memoizedState}function pn(e,t,l,a){var u=Fe();a=a===void 0?null:a,le.flags|=e,u.memoizedState=va(1|t,bn(),l,a)}function cu(e,t,l,a){var u=_e();a=a===void 0?null:a;var n=u.memoizedState.inst;ye!==null&&a!==null&&ic(a,ye.memoizedState.deps)?u.memoizedState=va(t,n,l,a):(le.flags|=e,u.memoizedState=va(1|t,n,l,a))}function xs(e,t){pn(8390656,8,e,t)}function Es(e,t){cu(2048,8,e,t)}function Ts(e,t){return cu(4,2,e,t)}function As(e,t){return cu(4,4,e,t)}function Rs(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Os(e,t,l){l=l!=null?l.concat([e]):null,cu(4,4,Rs.bind(null,t,e),l)}function gc(){}function Ns(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ic(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ms(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ic(t,a[1]))return a[0];if(a=e(),Yl){It(!0);try{e()}finally{It(!1)}}return l.memoizedState=[a,t],a}function bc(e,t,l){return l===void 0||(il&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=_o(),le.lanes|=e,hl|=e,l)}function zs(e,t,l,a){return ut(l,t)?l:ha.current!==null?(e=bc(e,l,a),ut(e,t)||(Be=!0),e):(il&42)===0?(Be=!0,e.memoizedState=l):(e=_o(),le.lanes|=e,hl|=e,t)}function Ds(e,t,l,a,u){var n=G.p;G.p=n!==0&&8>n?n:8;var c=j.T,r={};j.T=r,xc(e,!1,t,l);try{var y=u(),T=j.S;if(T!==null&&T(r,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var D=Om(y,a);fu(e,t,D,rt(e))}else fu(e,t,a,rt(e))}catch(C){fu(e,t,{then:function(){},status:"rejected",reason:C},rt())}finally{G.p=n,j.T=c}}function jm(){}function pc(e,t,l,a){if(e.tag!==5)throw Error(f(476));var u=js(e).queue;Ds(e,u,t,P,l===null?jm:function(){return _s(e),l(a)})}function js(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gt,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _s(e){var t=js(e).next.queue;fu(e,t,{},rt())}function Sc(){return Ve(Ou)}function Cs(){return _e().memoizedState}function Us(){return _e().memoizedState}function _m(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=rt();e=ul(l);var a=nl(t,e,l);a!==null&&(st(a,t,l),lu(a,t,l)),t={cache:Wi()},e.payload=t;return}t=t.return}}function Cm(e,t,l){var a=rt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Sn(e)?Bs(t,l):(l=Yi(e,t,l,a),l!==null&&(st(l,e,a),qs(l,t,a)))}function Hs(e,t,l){var a=rt();fu(e,t,l,a)}function fu(e,t,l,a){var u={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Sn(e))Bs(t,u);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var c=t.lastRenderedState,r=n(c,l);if(u.hasEagerState=!0,u.eagerState=r,ut(r,c))return ln(e,t,u,0),Se===null&&tn(),!1}catch{}finally{}if(l=Yi(e,t,u,a),l!==null)return st(l,e,a),qs(l,t,a),!0}return!1}function xc(e,t,l,a){if(a={lane:2,revertLane:Ic(),action:a,hasEagerState:!1,eagerState:null,next:null},Sn(e)){if(t)throw Error(f(479))}else t=Yi(e,l,a,2),t!==null&&st(t,e,2)}function Sn(e){var t=e.alternate;return e===le||t!==null&&t===le}function Bs(e,t){ma=mn=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qs(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Vf(e,l)}}var xn={readContext:Ve,use:vn,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useLayoutEffect:ze,useInsertionEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useSyncExternalStore:ze,useId:ze,useHostTransitionStatus:ze,useFormState:ze,useActionState:ze,useOptimistic:ze,useMemoCache:ze,useCacheRefresh:ze},ws={readContext:Ve,use:vn,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:xs,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,pn(4194308,4,Rs.bind(null,t,e),l)},useLayoutEffect:function(e,t){return pn(4194308,4,e,t)},useInsertionEffect:function(e,t){pn(4,2,e,t)},useMemo:function(e,t){var l=Fe();t=t===void 0?null:t;var a=e();if(Yl){It(!0);try{e()}finally{It(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Fe();if(l!==void 0){var u=l(t);if(Yl){It(!0);try{l(t)}finally{It(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Cm.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:function(e){e=yc(e);var t=e.queue,l=Hs.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:gc,useDeferredValue:function(e,t){var l=Fe();return bc(l,e,t)},useTransition:function(){var e=yc(!1);return e=Ds.bind(null,le,e.queue,!0,!1),Fe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,u=Fe();if(de){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),Se===null)throw Error(f(349));(fe&124)!==0||ns(a,t,l)}u.memoizedState=l;var n={value:l,getSnapshot:t};return u.queue=n,xs(cs.bind(null,a,n,e),[e]),a.flags|=2048,va(9,bn(),is.bind(null,a,n,l,t),null),l},useId:function(){var e=Fe(),t=Se.identifierPrefix;if(de){var l=wt,a=qt;l=(a&~(1<<32-at(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=yn++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Nm++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Sc,useFormState:vs,useActionState:vs,useOptimistic:function(e){var t=Fe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=xc.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:dc,useCacheRefresh:function(){return Fe().memoizedState=_m.bind(null,le)}},Ls={readContext:Ve,use:vn,useCallback:Ns,useContext:Ve,useEffect:Es,useImperativeHandle:Os,useInsertionEffect:Ts,useLayoutEffect:As,useMemo:Ms,useReducer:gn,useRef:Ss,useState:function(){return gn(Gt)},useDebugValue:gc,useDeferredValue:function(e,t){var l=_e();return zs(l,ye.memoizedState,e,t)},useTransition:function(){var e=gn(Gt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:iu(e),t]},useSyncExternalStore:us,useId:Cs,useHostTransitionStatus:Sc,useFormState:gs,useActionState:gs,useOptimistic:function(e,t){var l=_e();return ss(l,ye,e,t)},useMemoCache:dc,useCacheRefresh:Us},Um={readContext:Ve,use:vn,useCallback:Ns,useContext:Ve,useEffect:Es,useImperativeHandle:Os,useInsertionEffect:Ts,useLayoutEffect:As,useMemo:Ms,useReducer:mc,useRef:Ss,useState:function(){return mc(Gt)},useDebugValue:gc,useDeferredValue:function(e,t){var l=_e();return ye===null?bc(l,e,t):zs(l,ye.memoizedState,e,t)},useTransition:function(){var e=mc(Gt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:iu(e),t]},useSyncExternalStore:us,useId:Cs,useHostTransitionStatus:Sc,useFormState:ps,useActionState:ps,useOptimistic:function(e,t){var l=_e();return ye!==null?ss(l,ye,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:dc,useCacheRefresh:Us},ga=null,ru=0;function En(e){var t=ru;return ru+=1,ga===null&&(ga=[]),Wr(ga,e,t)}function su(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Tn(e,t){throw t.$$typeof===B?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ys(e){var t=e._init;return t(e._payload)}function Gs(e){function t(x,b){if(e){var E=x.deletions;E===null?(x.deletions=[b],x.flags|=16):E.push(b)}}function l(x,b){if(!e)return null;for(;b!==null;)t(x,b),b=b.sibling;return null}function a(x){for(var b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function u(x,b){return x=Bt(x,b),x.index=0,x.sibling=null,x}function n(x,b,E){return x.index=E,e?(E=x.alternate,E!==null?(E=E.index,E<b?(x.flags|=67108866,b):E):(x.flags|=67108866,b)):(x.flags|=1048576,b)}function c(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function r(x,b,E,_){return b===null||b.tag!==6?(b=Xi(E,x.mode,_),b.return=x,b):(b=u(b,E),b.return=x,b)}function y(x,b,E,_){var V=E.type;return V===U?D(x,b,E.props.children,_,E.key):b!==null&&(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===re&&Ys(V)===b.type)?(b=u(b,E.props),su(b,E),b.return=x,b):(b=un(E.type,E.key,E.props,null,x.mode,_),su(b,E),b.return=x,b)}function T(x,b,E,_){return b===null||b.tag!==4||b.stateNode.containerInfo!==E.containerInfo||b.stateNode.implementation!==E.implementation?(b=Qi(E,x.mode,_),b.return=x,b):(b=u(b,E.children||[]),b.return=x,b)}function D(x,b,E,_,V){return b===null||b.tag!==7?(b=_l(E,x.mode,_,V),b.return=x,b):(b=u(b,E),b.return=x,b)}function C(x,b,E){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Xi(""+b,x.mode,E),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case N:return E=un(b.type,b.key,b.props,null,x.mode,E),su(E,b),E.return=x,E;case q:return b=Qi(b,x.mode,E),b.return=x,b;case re:var _=b._init;return b=_(b._payload),C(x,b,E)}if(Qe(b)||Xe(b))return b=_l(b,x.mode,E,null),b.return=x,b;if(typeof b.then=="function")return C(x,En(b),E);if(b.$$typeof===W)return C(x,rn(x,b),E);Tn(x,b)}return null}function R(x,b,E,_){var V=b!==null?b.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return V!==null?null:r(x,b,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case N:return E.key===V?y(x,b,E,_):null;case q:return E.key===V?T(x,b,E,_):null;case re:return V=E._init,E=V(E._payload),R(x,b,E,_)}if(Qe(E)||Xe(E))return V!==null?null:D(x,b,E,_,null);if(typeof E.then=="function")return R(x,b,En(E),_);if(E.$$typeof===W)return R(x,b,rn(x,E),_);Tn(x,E)}return null}function O(x,b,E,_,V){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return x=x.get(E)||null,r(b,x,""+_,V);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case N:return x=x.get(_.key===null?E:_.key)||null,y(b,x,_,V);case q:return x=x.get(_.key===null?E:_.key)||null,T(b,x,_,V);case re:var ae=_._init;return _=ae(_._payload),O(x,b,E,_,V)}if(Qe(_)||Xe(_))return x=x.get(E)||null,D(b,x,_,V,null);if(typeof _.then=="function")return O(x,b,E,En(_),V);if(_.$$typeof===W)return O(x,b,E,rn(b,_),V);Tn(b,_)}return null}function I(x,b,E,_){for(var V=null,ae=null,K=b,$=b=0,we=null;K!==null&&$<E.length;$++){K.index>$?(we=K,K=null):we=K.sibling;var oe=R(x,K,E[$],_);if(oe===null){K===null&&(K=we);break}e&&K&&oe.alternate===null&&t(x,K),b=n(oe,b,$),ae===null?V=oe:ae.sibling=oe,ae=oe,K=we}if($===E.length)return l(x,K),de&&Ul(x,$),V;if(K===null){for(;$<E.length;$++)K=C(x,E[$],_),K!==null&&(b=n(K,b,$),ae===null?V=K:ae.sibling=K,ae=K);return de&&Ul(x,$),V}for(K=a(K);$<E.length;$++)we=O(K,x,$,E[$],_),we!==null&&(e&&we.alternate!==null&&K.delete(we.key===null?$:we.key),b=n(we,b,$),ae===null?V=we:ae.sibling=we,ae=we);return e&&K.forEach(function(El){return t(x,El)}),de&&Ul(x,$),V}function k(x,b,E,_){if(E==null)throw Error(f(151));for(var V=null,ae=null,K=b,$=b=0,we=null,oe=E.next();K!==null&&!oe.done;$++,oe=E.next()){K.index>$?(we=K,K=null):we=K.sibling;var El=R(x,K,oe.value,_);if(El===null){K===null&&(K=we);break}e&&K&&El.alternate===null&&t(x,K),b=n(El,b,$),ae===null?V=El:ae.sibling=El,ae=El,K=we}if(oe.done)return l(x,K),de&&Ul(x,$),V;if(K===null){for(;!oe.done;$++,oe=E.next())oe=C(x,oe.value,_),oe!==null&&(b=n(oe,b,$),ae===null?V=oe:ae.sibling=oe,ae=oe);return de&&Ul(x,$),V}for(K=a(K);!oe.done;$++,oe=E.next())oe=O(K,x,$,oe.value,_),oe!==null&&(e&&oe.alternate!==null&&K.delete(oe.key===null?$:oe.key),b=n(oe,b,$),ae===null?V=oe:ae.sibling=oe,ae=oe);return e&&K.forEach(function(Hy){return t(x,Hy)}),de&&Ul(x,$),V}function ge(x,b,E,_){if(typeof E=="object"&&E!==null&&E.type===U&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case N:e:{for(var V=E.key;b!==null;){if(b.key===V){if(V=E.type,V===U){if(b.tag===7){l(x,b.sibling),_=u(b,E.props.children),_.return=x,x=_;break e}}else if(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===re&&Ys(V)===b.type){l(x,b.sibling),_=u(b,E.props),su(_,E),_.return=x,x=_;break e}l(x,b);break}else t(x,b);b=b.sibling}E.type===U?(_=_l(E.props.children,x.mode,_,E.key),_.return=x,x=_):(_=un(E.type,E.key,E.props,null,x.mode,_),su(_,E),_.return=x,x=_)}return c(x);case q:e:{for(V=E.key;b!==null;){if(b.key===V)if(b.tag===4&&b.stateNode.containerInfo===E.containerInfo&&b.stateNode.implementation===E.implementation){l(x,b.sibling),_=u(b,E.children||[]),_.return=x,x=_;break e}else{l(x,b);break}else t(x,b);b=b.sibling}_=Qi(E,x.mode,_),_.return=x,x=_}return c(x);case re:return V=E._init,E=V(E._payload),ge(x,b,E,_)}if(Qe(E))return I(x,b,E,_);if(Xe(E)){if(V=Xe(E),typeof V!="function")throw Error(f(150));return E=V.call(E),k(x,b,E,_)}if(typeof E.then=="function")return ge(x,b,En(E),_);if(E.$$typeof===W)return ge(x,b,rn(x,E),_);Tn(x,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,b!==null&&b.tag===6?(l(x,b.sibling),_=u(b,E),_.return=x,x=_):(l(x,b),_=Xi(E,x.mode,_),_.return=x,x=_),c(x)):l(x,b)}return function(x,b,E,_){try{ru=0;var V=ge(x,b,E,_);return ga=null,V}catch(K){if(K===eu||K===on)throw K;var ae=nt(29,K,null,x.mode);return ae.lanes=_,ae.return=x,ae}finally{}}}var ba=Gs(!0),Xs=Gs(!1),bt=H(null),Ot=null;function cl(e){var t=e.alternate;Y(Ue,Ue.current&1),Y(bt,e),Ot===null&&(t===null||ha.current!==null||t.memoizedState!==null)&&(Ot=e)}function Qs(e){if(e.tag===22){if(Y(Ue,Ue.current),Y(bt,e),Ot===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Ot=e)}}else fl()}function fl(){Y(Ue,Ue.current),Y(bt,bt.current)}function Xt(e){Q(bt),Ot===e&&(Ot=null),Q(Ue)}var Ue=H(0);function An(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||df(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ec(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:M({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Tc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=rt(),u=ul(a);u.payload=t,l!=null&&(u.callback=l),t=nl(e,u,a),t!==null&&(st(t,e,a),lu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=rt(),u=ul(a);u.tag=1,u.payload=t,l!=null&&(u.callback=l),t=nl(e,u,a),t!==null&&(st(t,e,a),lu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=rt(),a=ul(l);a.tag=2,t!=null&&(a.callback=t),t=nl(e,a,l),t!==null&&(st(t,e,l),lu(t,e,l))}};function Zs(e,t,l,a,u,n,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,n,c):t.prototype&&t.prototype.isPureReactComponent?!Ka(l,a)||!Ka(u,n):!0}function Vs(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function Gl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=M({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}var Rn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Ks(e){Rn(e)}function Js(e){console.error(e)}function ks(e){Rn(e)}function On(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function $s(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ac(e,t,l){return l=ul(l),l.tag=3,l.payload={element:null},l.callback=function(){On(e,t)},l}function Ws(e){return e=ul(e),e.tag=3,e}function Fs(e,t,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;e.payload=function(){return u(n)},e.callback=function(){$s(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){$s(t,l,a),typeof u!="function"&&(ml===null?ml=new Set([this]):ml.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function Hm(e,t,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Fa(t,l,u,!0),l=bt.current,l!==null){switch(l.tag){case 13:return Ot===null?kc():l.alternate===null&&Me===0&&(Me=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===Ii?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Wc(e,a,u)),!1;case 22:return l.flags|=65536,a===Ii?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Wc(e,a,u)),!1}throw Error(f(435,l.tag))}return Wc(e,a,u),kc(),!1}if(de)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Ki&&(e=Error(f(422),{cause:a}),Wa(mt(e,l)))):(a!==Ki&&(t=Error(f(423),{cause:a}),Wa(mt(t,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=mt(a,l),u=Ac(e.stateNode,a,u),lc(e,u),Me!==4&&(Me=2)),!1;var n=Error(f(520),{cause:a});if(n=mt(n,l),gu===null?gu=[n]:gu.push(n),Me!==4&&(Me=2),t===null)return!0;a=mt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=Ac(l.stateNode,a,e),lc(l,e),!1;case 1:if(t=l.type,n=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(ml===null||!ml.has(n))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Ws(u),Fs(u,e,l,a),lc(l,u),!1}l=l.return}while(l!==null);return!1}var Ps=Error(f(461)),Be=!1;function Le(e,t,l,a){t.child=e===null?Xs(t,null,l,a):ba(t,e.child,l,a)}function Is(e,t,l,a,u){l=l.render;var n=t.ref;if("ref"in a){var c={};for(var r in a)r!=="ref"&&(c[r]=a[r])}else c=a;return wl(t),a=cc(e,t,l,c,n,u),r=fc(),e!==null&&!Be?(rc(e,t,u),Qt(e,t,u)):(de&&r&&Zi(t),t.flags|=1,Le(e,t,a,u),t.child)}function eo(e,t,l,a,u){if(e===null){var n=l.type;return typeof n=="function"&&!Gi(n)&&n.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=n,to(e,t,n,a,u)):(e=un(l.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!_c(e,u)){var c=n.memoizedProps;if(l=l.compare,l=l!==null?l:Ka,l(c,a)&&e.ref===t.ref)return Qt(e,t,u)}return t.flags|=1,e=Bt(n,a),e.ref=t.ref,e.return=t,t.child=e}function to(e,t,l,a,u){if(e!==null){var n=e.memoizedProps;if(Ka(n,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=n,_c(e,u))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,Qt(e,t,u)}return Rc(e,t,l,a,u)}function lo(e,t,l){var a=t.pendingProps,u=a.children,n=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|l:l,e!==null){for(u=t.child=e.child,n=0;u!==null;)n=n|u.lanes|u.childLanes,u=u.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return ao(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sn(t,n!==null?n.cachePool:null),n!==null?ts(t,n):uc(),Qs(t);else return t.lanes=t.childLanes=536870912,ao(e,t,n!==null?n.baseLanes|l:l,l)}else n!==null?(sn(t,n.cachePool),ts(t,n),fl(),t.memoizedState=null):(e!==null&&sn(t,null),uc(),fl());return Le(e,t,u,l),t.child}function ao(e,t,l,a){var u=Pi();return u=u===null?null:{parent:Ce._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&sn(t,null),uc(),Qs(t),e!==null&&Fa(e,t,a,!0),null}function Nn(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(f(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Rc(e,t,l,a,u){return wl(t),l=cc(e,t,l,a,void 0,u),a=fc(),e!==null&&!Be?(rc(e,t,u),Qt(e,t,u)):(de&&a&&Zi(t),t.flags|=1,Le(e,t,l,u),t.child)}function uo(e,t,l,a,u,n){return wl(t),t.updateQueue=null,l=as(t,a,l,u),ls(e),a=fc(),e!==null&&!Be?(rc(e,t,n),Qt(e,t,n)):(de&&a&&Zi(t),t.flags|=1,Le(e,t,l,n),t.child)}function no(e,t,l,a,u){if(wl(t),t.stateNode===null){var n=fa,c=l.contextType;typeof c=="object"&&c!==null&&(n=Ve(c)),n=new l(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Tc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},ec(t),c=l.contextType,n.context=typeof c=="object"&&c!==null?Ve(c):fa,n.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Ec(t,l,c,a),n.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(c=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),c!==n.state&&Tc.enqueueReplaceState(n,n.state,null),uu(t,a,n,u),au(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){n=t.stateNode;var r=t.memoizedProps,y=Gl(l,r);n.props=y;var T=n.context,D=l.contextType;c=fa,typeof D=="object"&&D!==null&&(c=Ve(D));var C=l.getDerivedStateFromProps;D=typeof C=="function"||typeof n.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,D||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(r||T!==c)&&Vs(t,n,a,c),al=!1;var R=t.memoizedState;n.state=R,uu(t,a,n,u),au(),T=t.memoizedState,r||R!==T||al?(typeof C=="function"&&(Ec(t,l,C,a),T=t.memoizedState),(y=al||Zs(t,l,y,a,R,T,c))?(D||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=T),n.props=a,n.state=T,n.context=c,a=y):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,tc(e,t),c=t.memoizedProps,D=Gl(l,c),n.props=D,C=t.pendingProps,R=n.context,T=l.contextType,y=fa,typeof T=="object"&&T!==null&&(y=Ve(T)),r=l.getDerivedStateFromProps,(T=typeof r=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c!==C||R!==y)&&Vs(t,n,a,y),al=!1,R=t.memoizedState,n.state=R,uu(t,a,n,u),au();var O=t.memoizedState;c!==C||R!==O||al||e!==null&&e.dependencies!==null&&fn(e.dependencies)?(typeof r=="function"&&(Ec(t,l,r,a),O=t.memoizedState),(D=al||Zs(t,l,D,a,R,O,y)||e!==null&&e.dependencies!==null&&fn(e.dependencies))?(T||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,O,y),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,O,y)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),n.props=a,n.state=O,n.context=y,a=D):(typeof n.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return n=a,Nn(e,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&a?(t.child=ba(t,e.child,null,u),t.child=ba(t,null,l,u)):Le(e,t,l,u),t.memoizedState=n.state,e=t.child):e=Qt(e,t,u),e}function io(e,t,l,a){return $a(),t.flags|=256,Le(e,t,l,a),t.child}var Oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(e){return{baseLanes:e,cachePool:Jr()}}function Mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=pt),e}function co(e,t,l){var a=t.pendingProps,u=!1,n=(t.flags&128)!==0,c;if((c=n)||(c=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),c&&(u=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(u?cl(t):fl(),de){var r=Ne,y;if(y=r){e:{for(y=r,r=Rt;y.nodeType!==8;){if(!r){r=null;break e}if(y=Tt(y.nextSibling),y===null){r=null;break e}}r=y}r!==null?(t.memoizedState={dehydrated:r,treeContext:Cl!==null?{id:qt,overflow:wt}:null,retryLane:536870912,hydrationErrors:null},y=nt(18,null,null,0),y.stateNode=r,y.return=t,t.child=y,ke=t,Ne=null,y=!0):y=!1}y||Bl(t)}if(r=t.memoizedState,r!==null&&(r=r.dehydrated,r!==null))return df(r)?t.lanes=32:t.lanes=536870912,null;Xt(t)}return r=a.children,a=a.fallback,u?(fl(),u=t.mode,r=Mn({mode:"hidden",children:r},u),a=_l(a,u,l,null),r.return=t,a.return=t,r.sibling=a,t.child=r,u=t.child,u.memoizedState=Nc(l),u.childLanes=Mc(e,c,l),t.memoizedState=Oc,a):(cl(t),zc(t,r))}if(y=e.memoizedState,y!==null&&(r=y.dehydrated,r!==null)){if(n)t.flags&256?(cl(t),t.flags&=-257,t=Dc(e,t,l)):t.memoizedState!==null?(fl(),t.child=e.child,t.flags|=128,t=null):(fl(),u=a.fallback,r=t.mode,a=Mn({mode:"visible",children:a.children},r),u=_l(u,r,l,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,ba(t,e.child,null,l),a=t.child,a.memoizedState=Nc(l),a.childLanes=Mc(e,c,l),t.memoizedState=Oc,t=u);else if(cl(t),df(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var T=c.dgst;c=T,a=Error(f(419)),a.stack="",a.digest=c,Wa({value:a,source:null,stack:null}),t=Dc(e,t,l)}else if(Be||Fa(e,t,l,!1),c=(l&e.childLanes)!==0,Be||c){if(c=Se,c!==null&&(a=l&-l,a=(a&42)!==0?1:di(a),a=(a&(c.suspendedLanes|l))!==0?0:a,a!==0&&a!==y.retryLane))throw y.retryLane=a,ca(e,a),st(c,e,a),Ps;r.data==="$?"||kc(),t=Dc(e,t,l)}else r.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Ne=Tt(r.nextSibling),ke=t,de=!0,Hl=null,Rt=!1,e!==null&&(vt[gt++]=qt,vt[gt++]=wt,vt[gt++]=Cl,qt=e.id,wt=e.overflow,Cl=t),t=zc(t,a.children),t.flags|=4096);return t}return u?(fl(),u=a.fallback,r=t.mode,y=e.child,T=y.sibling,a=Bt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,T!==null?u=Bt(T,u):(u=_l(u,r,l,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,r=e.child.memoizedState,r===null?r=Nc(l):(y=r.cachePool,y!==null?(T=Ce._currentValue,y=y.parent!==T?{parent:T,pool:T}:y):y=Jr(),r={baseLanes:r.baseLanes|l,cachePool:y}),u.memoizedState=r,u.childLanes=Mc(e,c,l),t.memoizedState=Oc,a):(cl(t),l=e.child,e=l.sibling,l=Bt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function zc(e,t){return t=Mn({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mn(e,t){return e=nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Dc(e,t,l){return ba(t,e.child,null,l),e=zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ki(e.return,t,l)}function jc(e,t,l,a,u){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=l,n.tailMode=u)}function ro(e,t,l){var a=t.pendingProps,u=a.revealOrder,n=a.tail;if(Le(e,t,a.children,l),a=Ue.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fo(e,l,t);else if(e.tag===19)fo(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(Y(Ue,a),u){case"forwards":for(l=t.child,u=null;l!==null;)e=l.alternate,e!==null&&An(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=t.child,t.child=null):(u=l.sibling,l.sibling=null),jc(t,!1,u,l,n);break;case"backwards":for(l=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&An(e)===null){t.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}jc(t,!0,l,null,n);break;case"together":jc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),hl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Fa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,l=Bt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Bt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function _c(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fn(e)))}function Bm(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),ll(t,Ce,e.memoizedState.cache),$a();break;case 27:case 5:ci(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:ll(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(cl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?co(e,t,l):(cl(t),e=Qt(e,t,l),e!==null?e.sibling:null);cl(t);break;case 19:var u=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Fa(e,t,l,!1),a=(l&t.childLanes)!==0),u){if(a)return ro(e,t,l);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Y(Ue,Ue.current),a)break;return null;case 22:case 23:return t.lanes=0,lo(e,t,l);case 24:ll(t,Ce,e.memoizedState.cache)}return Qt(e,t,l)}function so(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!_c(e,l)&&(t.flags&128)===0)return Be=!1,Bm(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,de&&(t.flags&1048576)!==0&&Yr(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")Gi(a)?(e=Gl(a,e),t.tag=1,t=no(null,t,a,e,l)):(t.tag=0,t=Rc(null,t,a,e,l));else{if(a!=null){if(u=a.$$typeof,u===ce){t.tag=11,t=Is(null,t,a,e,l);break e}else if(u===ue){t.tag=14,t=eo(null,t,a,e,l);break e}}throw t=Ol(a)||a,Error(f(306,t,""))}}return t;case 0:return Rc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,u=Gl(a,t.pendingProps),no(e,t,a,u,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(f(387));a=t.pendingProps;var n=t.memoizedState;u=n.element,tc(e,t),uu(t,a,null,l);var c=t.memoizedState;if(a=c.cache,ll(t,Ce,a),a!==n.cache&&$i(t,[Ce],l,!0),au(),a=c.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=io(e,t,a,l);break e}else if(a!==u){u=mt(Error(f(424)),t),Wa(u),t=io(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ne=Tt(e.firstChild),ke=t,de=!0,Hl=null,Rt=!0,l=Xs(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if($a(),a===u){t=Qt(e,t,l);break e}Le(e,t,a,l)}t=t.child}return t;case 26:return Nn(e,t),e===null?(l=yd(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Xn(ee.current).createElement(l),a[Ze]=t,a[$e]=e,Ge(a,l,e),He(a),t.stateNode=a):t.memoizedState=yd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ci(t),e===null&&de&&(a=t.stateNode=dd(t.type,t.pendingProps,ee.current),ke=t,Rt=!0,u=Ne,gl(t.type)?(hf=u,Ne=Tt(a.firstChild)):Ne=u),Le(e,t,t.pendingProps.children,l),Nn(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((u=a=Ne)&&(a=sy(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,ke=t,Ne=Tt(a.firstChild),Rt=!1,u=!0):u=!1),u||Bl(t)),ci(t),u=t.type,n=t.pendingProps,c=e!==null?e.memoizedProps:null,a=n.children,rf(u,n)?a=null:c!==null&&rf(u,c)&&(t.flags|=32),t.memoizedState!==null&&(u=cc(e,t,Mm,null,null,l),Ou._currentValue=u),Nn(e,t),Le(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Ne)&&(l=oy(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,ke=t,Ne=null,e=!0):e=!1),e||Bl(t)),null;case 13:return co(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ba(t,null,a,l):Le(e,t,a,l),t.child;case 11:return Is(e,t,t.type,t.pendingProps,l);case 7:return Le(e,t,t.pendingProps,l),t.child;case 8:return Le(e,t,t.pendingProps.children,l),t.child;case 12:return Le(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ll(t,t.type,a.value),Le(e,t,a.children,l),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,wl(t),u=Ve(u),a=a(u),t.flags|=1,Le(e,t,a,l),t.child;case 14:return eo(e,t,t.type,t.pendingProps,l);case 15:return to(e,t,t.type,t.pendingProps,l);case 19:return ro(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Mn(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Bt(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return lo(e,t,l);case 24:return wl(t),a=Ve(Ce),e===null?(u=Pi(),u===null&&(u=Se,n=Wi(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=l),u=n),t.memoizedState={parent:a,cache:u},ec(t),ll(t,Ce,u)):((e.lanes&l)!==0&&(tc(e,t),uu(t,null,null,l),au()),u=e.memoizedState,n=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ll(t,Ce,a)):(a=n.cache,ll(t,Ce,a),a!==u.cache&&$i(t,[Ce],l,!0))),Le(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function Zt(e){e.flags|=4}function oo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sd(t)){if(t=bt.current,t!==null&&((fe&4194048)===fe?Ot!==null:(fe&62914560)!==fe&&(fe&536870912)===0||t!==Ot))throw tu=Ii,kr;e.flags|=8192}}function zn(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qf():536870912,e.lanes|=t,Ea|=t)}function ou(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function qm(e,t,l){var a=t.pendingProps;switch(Vi(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Yt(Ce),Pt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ka(t)?Zt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qr())),Ae(t),null;case 26:return l=t.memoizedState,e===null?(Zt(t),l!==null?(Ae(t),oo(t,l)):(Ae(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Zt(t),Ae(t),oo(t,l)):(Ae(t),t.flags&=-16777217):(e.memoizedProps!==a&&Zt(t),Ae(t),t.flags&=-16777217),null;case 27:Lu(t),l=ee.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Ae(t),null}e=J.current,ka(t)?Gr(t):(e=dd(u,a,l),t.stateNode=e,Zt(t))}return Ae(t),null;case 5:if(Lu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Ae(t),null}if(e=J.current,ka(t))Gr(t);else{switch(u=Xn(ee.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?u.createElement(l,{is:a.is}):u.createElement(l)}}e[Ze]=t,e[$e]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(Ge(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Zt(t)}}return Ae(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Zt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(f(166));if(e=ee.current,ka(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,u=ke,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[Ze]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||nd(e.nodeValue,l)),e||Bl(t)}else e=Xn(e).createTextNode(a),e[Ze]=t,t.stateNode=e}return Ae(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ka(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(f(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(f(317));u[Ze]=t}else $a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),u=!1}else u=Qr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Xt(t),t):(Xt(t),null)}if(Xt(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var n=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),zn(t,t.updateQueue),Ae(t),null;case 4:return Pt(),e===null&&af(t.stateNode.containerInfo),Ae(t),null;case 10:return Yt(t.type),Ae(t),null;case 19:if(Q(Ue),u=t.memoizedState,u===null)return Ae(t),null;if(a=(t.flags&128)!==0,n=u.rendering,n===null)if(a)ou(u,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=An(e),n!==null){for(t.flags|=128,ou(u,!1),e=n.updateQueue,t.updateQueue=e,zn(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lr(l,e),l=l.sibling;return Y(Ue,Ue.current&1|2),t.child}e=e.sibling}u.tail!==null&&At()>_n&&(t.flags|=128,a=!0,ou(u,!1),t.lanes=4194304)}else{if(!a)if(e=An(n),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zn(t,e),ou(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!de)return Ae(t),null}else 2*At()-u.renderingStartTime>_n&&l!==536870912&&(t.flags|=128,a=!0,ou(u,!1),t.lanes=4194304);u.isBackwards?(n.sibling=t.child,t.child=n):(e=u.last,e!==null?e.sibling=n:t.child=n,u.last=n)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=At(),t.sibling=null,e=Ue.current,Y(Ue,a?e&1|2:e&1),t):(Ae(t),null);case 22:case 23:return Xt(t),nc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),l=t.updateQueue,l!==null&&zn(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&Q(Ll),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Yt(Ce),Ae(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function wm(e,t){switch(Vi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yt(Ce),Pt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Lu(t),null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ue),null;case 4:return Pt(),null;case 10:return Yt(t.type),null;case 22:case 23:return Xt(t),nc(),e!==null&&Q(Ll),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yt(Ce),null;case 25:return null;default:return null}}function ho(e,t){switch(Vi(t),t.tag){case 3:Yt(Ce),Pt();break;case 26:case 27:case 5:Lu(t);break;case 4:Pt();break;case 13:Xt(t);break;case 19:Q(Ue);break;case 10:Yt(t.type);break;case 22:case 23:Xt(t),nc(),e!==null&&Q(Ll);break;case 24:Yt(Ce)}}function du(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&e)===e){a=void 0;var n=l.create,c=l.inst;a=n(),c.destroy=a}l=l.next}while(l!==u)}}catch(r){pe(t,t.return,r)}}function rl(e,t,l){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var n=u.next;a=n;do{if((a.tag&e)===e){var c=a.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,u=t;var y=l,T=r;try{T()}catch(D){pe(u,y,D)}}}a=a.next}while(a!==n)}}catch(D){pe(t,t.return,D)}}function mo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{es(t,l)}catch(a){pe(e,e.return,a)}}}function yo(e,t,l){l.props=Gl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){pe(e,t,a)}}function hu(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(u){pe(e,t,u)}}function Nt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){pe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){pe(e,t,u)}else l.current=null}function vo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){pe(e,e.return,u)}}function Cc(e,t,l){try{var a=e.stateNode;ny(a,e.type,l,t),a[$e]=t}catch(u){pe(e,e.return,u)}}function go(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&gl(e.type)||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||go(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&gl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Gn));else if(a!==4&&(a===27&&gl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Hc(e,t,l),e=e.sibling;e!==null;)Hc(e,t,l),e=e.sibling}function Dn(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&gl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Dn(e,t,l),e=e.sibling;e!==null;)Dn(e,t,l),e=e.sibling}function bo(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Ge(t,a,l),t[Ze]=e,t[$e]=l}catch(n){pe(e,e.return,n)}}var Vt=!1,De=!1,Bc=!1,po=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Lm(e,t){if(e=e.containerInfo,cf=kn,e=zr(e),Ui(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{l.nodeType,n.nodeType}catch{l=null;break e}var c=0,r=-1,y=-1,T=0,D=0,C=e,R=null;t:for(;;){for(var O;C!==l||u!==0&&C.nodeType!==3||(r=c+u),C!==n||a!==0&&C.nodeType!==3||(y=c+a),C.nodeType===3&&(c+=C.nodeValue.length),(O=C.firstChild)!==null;)R=C,C=O;for(;;){if(C===e)break t;if(R===l&&++T===u&&(r=c),R===n&&++D===a&&(y=c),(O=C.nextSibling)!==null)break;C=R,R=C.parentNode}C=O}l=r===-1||y===-1?null:{start:r,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(ff={focusedElem:e,selectionRange:l},kn=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){switch(t=qe,n=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&n!==null){e=void 0,l=t,u=n.memoizedProps,n=n.memoizedState,a=l.stateNode;try{var I=Gl(l.type,u,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(I,n),a.__reactInternalSnapshotBeforeUpdate=e}catch(k){pe(l,l.return,k)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)of(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":of(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}}function So(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:sl(e,l),a&4&&du(5,l);break;case 1:if(sl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){pe(l,l.return,c)}else{var u=Gl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){pe(l,l.return,c)}}a&64&&mo(l),a&512&&hu(l,l.return);break;case 3:if(sl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{es(e,t)}catch(c){pe(l,l.return,c)}}break;case 27:t===null&&a&4&&bo(l);case 26:case 5:sl(e,l),t===null&&a&4&&vo(l),a&512&&hu(l,l.return);break;case 12:sl(e,l);break;case 13:sl(e,l),a&4&&To(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=km.bind(null,l),dy(e,l))));break;case 22:if(a=l.memoizedState!==null||Vt,!a){t=t!==null&&t.memoizedState!==null||De,u=Vt;var n=De;Vt=a,(De=t)&&!n?ol(e,l,(l.subtreeFlags&8772)!==0):sl(e,l),Vt=u,De=n}break;case 30:break;default:sl(e,l)}}function xo(e){var t=e.alternate;t!==null&&(e.alternate=null,xo(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Te=null,Pe=!1;function Kt(e,t,l){for(l=l.child;l!==null;)Eo(e,t,l),l=l.sibling}function Eo(e,t,l){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(Ua,l)}catch{}switch(l.tag){case 26:De||Nt(l,t),Kt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:De||Nt(l,t);var a=Te,u=Pe;gl(l.type)&&(Te=l.stateNode,Pe=!1),Kt(e,t,l),Eu(l.stateNode),Te=a,Pe=u;break;case 5:De||Nt(l,t);case 6:if(a=Te,u=Pe,Te=null,Kt(e,t,l),Te=a,Pe=u,Te!==null)if(Pe)try{(Te.nodeType===9?Te.body:Te.nodeName==="HTML"?Te.ownerDocument.body:Te).removeChild(l.stateNode)}catch(n){pe(l,t,n)}else try{Te.removeChild(l.stateNode)}catch(n){pe(l,t,n)}break;case 18:Te!==null&&(Pe?(e=Te,sd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Du(e)):sd(Te,l.stateNode));break;case 4:a=Te,u=Pe,Te=l.stateNode.containerInfo,Pe=!0,Kt(e,t,l),Te=a,Pe=u;break;case 0:case 11:case 14:case 15:De||rl(2,l,t),De||rl(4,l,t),Kt(e,t,l);break;case 1:De||(Nt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&yo(l,t,a)),Kt(e,t,l);break;case 21:Kt(e,t,l);break;case 22:De=(a=De)||l.memoizedState!==null,Kt(e,t,l),De=a;break;default:Kt(e,t,l)}}function To(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Du(e)}catch(l){pe(t,t.return,l)}}function Ym(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new po),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new po),t;default:throw Error(f(435,e.tag))}}function qc(e,t){var l=Ym(e);t.forEach(function(a){var u=$m.bind(null,e,a);l.has(a)||(l.add(a),a.then(u,u))})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],n=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(gl(r.type)){Te=r.stateNode,Pe=!1;break e}break;case 5:Te=r.stateNode,Pe=!1;break e;case 3:case 4:Te=r.stateNode.containerInfo,Pe=!0;break e}r=r.return}if(Te===null)throw Error(f(160));Eo(n,c,u),Te=null,Pe=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Ao(t,e),t=t.sibling}var Et=null;function Ao(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ct(e),a&4&&(rl(3,e,e.return),du(3,e),rl(5,e,e.return));break;case 1:it(t,e),ct(e),a&512&&(De||l===null||Nt(l,l.return)),a&64&&Vt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=Et;if(it(t,e),ct(e),a&512&&(De||l===null||Nt(l,l.return)),a&4){var n=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":n=u.getElementsByTagName("title")[0],(!n||n[qa]||n[Ze]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(a),u.head.insertBefore(n,u.querySelector("head > title"))),Ge(n,a,l),n[Ze]=e,He(n),a=n;break e;case"link":var c=bd("link","href",u).get(a+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(n=c[r],n.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&n.getAttribute("rel")===(l.rel==null?null:l.rel)&&n.getAttribute("title")===(l.title==null?null:l.title)&&n.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(r,1);break t}}n=u.createElement(a),Ge(n,a,l),u.head.appendChild(n);break;case"meta":if(c=bd("meta","content",u).get(a+(l.content||""))){for(r=0;r<c.length;r++)if(n=c[r],n.getAttribute("content")===(l.content==null?null:""+l.content)&&n.getAttribute("name")===(l.name==null?null:l.name)&&n.getAttribute("property")===(l.property==null?null:l.property)&&n.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&n.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(r,1);break t}}n=u.createElement(a),Ge(n,a,l),u.head.appendChild(n);break;default:throw Error(f(468,a))}n[Ze]=e,He(n),a=n}e.stateNode=a}else pd(u,e.type,e.stateNode);else e.stateNode=gd(u,a,e.memoizedProps);else n!==a?(n===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):n.count--,a===null?pd(u,e.type,e.stateNode):gd(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ct(e),a&512&&(De||l===null||Nt(l,l.return)),l!==null&&a&4&&Cc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ct(e),a&512&&(De||l===null||Nt(l,l.return)),e.flags&32){u=e.stateNode;try{ea(u,"")}catch(O){pe(e,e.return,O)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Cc(e,u,l!==null?l.memoizedProps:u)),a&1024&&(Bc=!0);break;case 6:if(it(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(O){pe(e,e.return,O)}}break;case 3:if(Vn=null,u=Et,Et=Qn(t.containerInfo),it(t,e),Et=u,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Du(t.containerInfo)}catch(O){pe(e,e.return,O)}Bc&&(Bc=!1,Ro(e));break;case 4:a=Et,Et=Qn(e.stateNode.containerInfo),it(t,e),ct(e),Et=a;break;case 12:it(t,e),ct(e);break;case 13:it(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qc=At()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qc(e,a)));break;case 22:u=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,T=Vt,D=De;if(Vt=T||u,De=D||y,it(t,e),De=D,Vt=T,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(l===null||y||Vt||De||Xl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(n=y.stateNode,u)c=n.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=y.stateNode;var C=y.memoizedProps.style,R=C!=null&&C.hasOwnProperty("display")?C.display:null;r.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(O){pe(y,y.return,O)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=u?"":y.memoizedProps}catch(O){pe(y,y.return,O)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,qc(e,l))));break;case 19:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qc(e,a)));break;case 30:break;case 21:break;default:it(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(go(a)){l=a;break}a=a.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var u=l.stateNode,n=Uc(e);Dn(e,n,u);break;case 5:var c=l.stateNode;l.flags&32&&(ea(c,""),l.flags&=-33);var r=Uc(e);Dn(e,r,c);break;case 3:case 4:var y=l.stateNode.containerInfo,T=Uc(e);Hc(e,T,y);break;default:throw Error(f(161))}}catch(D){pe(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ro(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ro(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)So(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rl(4,t,t.return),Xl(t);break;case 1:Nt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&yo(t,t.return,l),Xl(t);break;case 27:Eu(t.stateNode);case 26:case 5:Nt(t,t.return),Xl(t);break;case 22:t.memoizedState===null&&Xl(t);break;case 30:Xl(t);break;default:Xl(t)}e=e.sibling}}function ol(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,n=t,c=n.flags;switch(n.tag){case 0:case 11:case 15:ol(u,n,l),du(4,n);break;case 1:if(ol(u,n,l),a=n,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){pe(a,a.return,T)}if(a=n,u=a.updateQueue,u!==null){var r=a.stateNode;try{var y=u.shared.hiddenCallbacks;if(y!==null)for(u.shared.hiddenCallbacks=null,u=0;u<y.length;u++)Ir(y[u],r)}catch(T){pe(a,a.return,T)}}l&&c&64&&mo(n),hu(n,n.return);break;case 27:bo(n);case 26:case 5:ol(u,n,l),l&&a===null&&c&4&&vo(n),hu(n,n.return);break;case 12:ol(u,n,l);break;case 13:ol(u,n,l),l&&c&4&&To(u,n);break;case 22:n.memoizedState===null&&ol(u,n,l),hu(n,n.return);break;case 30:break;default:ol(u,n,l)}t=t.sibling}}function wc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Pa(l))}function Lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e))}function Mt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Oo(e,t,l,a),t=t.sibling}function Oo(e,t,l,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,l,a),u&2048&&du(9,t);break;case 1:Mt(e,t,l,a);break;case 3:Mt(e,t,l,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e)));break;case 12:if(u&2048){Mt(e,t,l,a),e=t.stateNode;try{var n=t.memoizedProps,c=n.id,r=n.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){pe(t,t.return,y)}}else Mt(e,t,l,a);break;case 13:Mt(e,t,l,a);break;case 23:break;case 22:n=t.stateNode,c=t.alternate,t.memoizedState!==null?n._visibility&2?Mt(e,t,l,a):mu(e,t):n._visibility&2?Mt(e,t,l,a):(n._visibility|=2,pa(e,t,l,a,(t.subtreeFlags&10256)!==0)),u&2048&&wc(c,t);break;case 24:Mt(e,t,l,a),u&2048&&Lc(t.alternate,t);break;default:Mt(e,t,l,a)}}function pa(e,t,l,a,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var n=e,c=t,r=l,y=a,T=c.flags;switch(c.tag){case 0:case 11:case 15:pa(n,c,r,y,u),du(8,c);break;case 23:break;case 22:var D=c.stateNode;c.memoizedState!==null?D._visibility&2?pa(n,c,r,y,u):mu(n,c):(D._visibility|=2,pa(n,c,r,y,u)),u&&T&2048&&wc(c.alternate,c);break;case 24:pa(n,c,r,y,u),u&&T&2048&&Lc(c.alternate,c);break;default:pa(n,c,r,y,u)}t=t.sibling}}function mu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,u=a.flags;switch(a.tag){case 22:mu(l,a),u&2048&&wc(a.alternate,a);break;case 24:mu(l,a),u&2048&&Lc(a.alternate,a);break;default:mu(l,a)}t=t.sibling}}var yu=8192;function Sa(e){if(e.subtreeFlags&yu)for(e=e.child;e!==null;)No(e),e=e.sibling}function No(e){switch(e.tag){case 26:Sa(e),e.flags&yu&&e.memoizedState!==null&&Ry(Et,e.memoizedState,e.memoizedProps);break;case 5:Sa(e);break;case 3:case 4:var t=Et;Et=Qn(e.stateNode.containerInfo),Sa(e),Et=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=yu,yu=16777216,Sa(e),yu=t):Sa(e));break;default:Sa(e)}}function Mo(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];qe=a,Do(a,e)}Mo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zo(e),e=e.sibling}function zo(e){switch(e.tag){case 0:case 11:case 15:vu(e),e.flags&2048&&rl(9,e,e.return);break;case 3:vu(e);break;case 12:vu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jn(e)):vu(e);break;default:vu(e)}}function jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];qe=a,Do(a,e)}Mo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rl(8,t,t.return),jn(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,jn(t));break;default:jn(t)}e=e.sibling}}function Do(e,t){for(;qe!==null;){var l=qe;switch(l.tag){case 0:case 11:case 15:rl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Pa(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,qe=a;else e:for(l=e;qe!==null;){a=qe;var u=a.sibling,n=a.return;if(xo(a),a===l){qe=null;break e}if(u!==null){u.return=n,qe=u;break e}qe=n}}}var Gm={getCacheForType:function(e){var t=Ve(Ce),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},Xm=typeof WeakMap=="function"?WeakMap:Map,he=0,Se=null,ne=null,fe=0,me=0,ft=null,dl=!1,xa=!1,Yc=!1,Jt=0,Me=0,hl=0,Ql=0,Gc=0,pt=0,Ea=0,gu=null,Ie=null,Xc=!1,Qc=0,_n=1/0,Cn=null,ml=null,Ye=0,yl=null,Ta=null,Aa=0,Zc=0,Vc=null,jo=null,bu=0,Kc=null;function rt(){if((he&2)!==0&&fe!==0)return fe&-fe;if(j.T!==null){var e=oa;return e!==0?e:Ic()}return Kf()}function _o(){pt===0&&(pt=(fe&536870912)===0||de?Xf():536870912);var e=bt.current;return e!==null&&(e.flags|=32),pt}function st(e,t,l){(e===Se&&(me===2||me===9)||e.cancelPendingCommit!==null)&&(Ra(e,0),vl(e,fe,pt,!1)),Ba(e,l),((he&2)===0||e!==Se)&&(e===Se&&((he&2)===0&&(Ql|=l),Me===4&&vl(e,fe,pt,!1)),zt(e))}function Co(e,t,l){if((he&6)!==0)throw Error(f(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Ha(e,t),u=a?Vm(e,t):$c(e,t,!0),n=a;do{if(u===0){xa&&!a&&vl(e,t,0,!1);break}else{if(l=e.current.alternate,n&&!Qm(l)){u=$c(e,t,!1),n=!1;continue}if(u===2){if(n=t,e.errorRecoveryDisabledLanes&n)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;u=gu;var y=r.current.memoizedState.isDehydrated;if(y&&(Ra(r,c).flags|=256),c=$c(r,c,!1),c!==2){if(Yc&&!y){r.errorRecoveryDisabledLanes|=n,Ql|=n,u=4;break e}n=Ie,Ie=u,n!==null&&(Ie===null?Ie=n:Ie.push.apply(Ie,n))}u=c}if(n=!1,u!==2)continue}}if(u===1){Ra(e,0),vl(e,t,0,!0);break}e:{switch(a=e,n=u,n){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:vl(a,t,pt,!dl);break e;case 2:Ie=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(u=Qc+300-At(),10<u)){if(vl(a,t,pt,!dl),Qu(a,0,!0)!==0)break e;a.timeoutHandle=fd(Uo.bind(null,a,l,Ie,Cn,Xc,t,pt,Ql,Ea,dl,n,2,-0,0),u);break e}Uo(a,l,Ie,Cn,Xc,t,pt,Ql,Ea,dl,n,0,-0,0)}}break}while(!0);zt(e)}function Uo(e,t,l,a,u,n,c,r,y,T,D,C,R,O){if(e.timeoutHandle=-1,C=t.subtreeFlags,(C&8192||(C&16785408)===16785408)&&(Ru={stylesheets:null,count:0,unsuspend:Ay},No(t),C=Oy(),C!==null)){e.cancelPendingCommit=C(Go.bind(null,e,t,n,l,a,u,c,r,y,D,1,R,O)),vl(e,n,c,!T);return}Go(e,t,n,l,a,u,c,r,y)}function Qm(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],n=u.getSnapshot;u=u.value;try{if(!ut(n(),u))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vl(e,t,l,a){t&=~Gc,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var n=31-at(u),c=1<<n;a[n]=-1,u&=~c}l!==0&&Zf(e,l,t)}function Un(){return(he&6)===0?(pu(0),!1):!0}function Jc(){if(ne!==null){if(me===0)var e=ne.return;else e=ne,Lt=ql=null,sc(e),ga=null,ru=0,e=ne;for(;e!==null;)ho(e.alternate,e),e=e.return;ne=null}}function Ra(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,cy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Jc(),Se=e,ne=l=Bt(e.current,null),fe=t,me=0,ft=null,dl=!1,xa=Ha(e,t),Yc=!1,Ea=pt=Gc=Ql=hl=Me=0,Ie=gu=null,Xc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-at(a),n=1<<u;t|=e[u],a&=~n}return Jt=t,tn(),l}function Ho(e,t){le=null,j.H=xn,t===eu||t===on?(t=Fr(),me=3):t===kr?(t=Fr(),me=4):me=t===Ps?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ft=t,ne===null&&(Me=1,On(e,mt(t,e.current)))}function Bo(){var e=j.H;return j.H=xn,e===null?xn:e}function qo(){var e=j.A;return j.A=Gm,e}function kc(){Me=4,dl||(fe&4194048)!==fe&&bt.current!==null||(xa=!0),(hl&134217727)===0&&(Ql&134217727)===0||Se===null||vl(Se,fe,pt,!1)}function $c(e,t,l){var a=he;he|=2;var u=Bo(),n=qo();(Se!==e||fe!==t)&&(Cn=null,Ra(e,t)),t=!1;var c=Me;e:do try{if(me!==0&&ne!==null){var r=ne,y=ft;switch(me){case 8:Jc(),c=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var T=me;if(me=0,ft=null,Oa(e,r,y,T),l&&xa){c=0;break e}break;default:T=me,me=0,ft=null,Oa(e,r,y,T)}}Zm(),c=Me;break}catch(D){Ho(e,D)}while(!0);return t&&e.shellSuspendCounter++,Lt=ql=null,he=a,j.H=u,j.A=n,ne===null&&(Se=null,fe=0,tn()),c}function Zm(){for(;ne!==null;)wo(ne)}function Vm(e,t){var l=he;he|=2;var a=Bo(),u=qo();Se!==e||fe!==t?(Cn=null,_n=At()+500,Ra(e,t)):xa=Ha(e,t);e:do try{if(me!==0&&ne!==null){t=ne;var n=ft;t:switch(me){case 1:me=0,ft=null,Oa(e,t,n,1);break;case 2:case 9:if($r(n)){me=0,ft=null,Lo(t);break}t=function(){me!==2&&me!==9||Se!==e||(me=7),zt(e)},n.then(t,t);break e;case 3:me=7;break e;case 4:me=5;break e;case 7:$r(n)?(me=0,ft=null,Lo(t)):(me=0,ft=null,Oa(e,t,n,7));break;case 5:var c=null;switch(ne.tag){case 26:c=ne.memoizedState;case 5:case 27:var r=ne;if(!c||Sd(c)){me=0,ft=null;var y=r.sibling;if(y!==null)ne=y;else{var T=r.return;T!==null?(ne=T,Hn(T)):ne=null}break t}}me=0,ft=null,Oa(e,t,n,5);break;case 6:me=0,ft=null,Oa(e,t,n,6);break;case 8:Jc(),Me=6;break e;default:throw Error(f(462))}}Km();break}catch(D){Ho(e,D)}while(!0);return Lt=ql=null,j.H=a,j.A=u,he=l,ne!==null?0:(Se=null,fe=0,tn(),Me)}function Km(){for(;ne!==null&&!mh();)wo(ne)}function wo(e){var t=so(e.alternate,e,Jt);e.memoizedProps=e.pendingProps,t===null?Hn(e):ne=t}function Lo(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=uo(l,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=uo(l,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:sc(t);default:ho(l,t),t=ne=Lr(t,Jt),t=so(l,t,Jt)}e.memoizedProps=e.pendingProps,t===null?Hn(e):ne=t}function Oa(e,t,l,a){Lt=ql=null,sc(t),ga=null,ru=0;var u=t.return;try{if(Hm(e,u,t,l,fe)){Me=1,On(e,mt(l,e.current)),ne=null;return}}catch(n){if(u!==null)throw ne=u,n;Me=1,On(e,mt(l,e.current)),ne=null;return}t.flags&32768?(de||a===1?e=!0:xa||(fe&536870912)!==0?e=!1:(dl=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Yo(t,e)):Hn(t)}function Hn(e){var t=e;do{if((t.flags&32768)!==0){Yo(t,dl);return}e=t.return;var l=qm(t.alternate,t,Jt);if(l!==null){ne=l;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);Me===0&&(Me=5)}function Yo(e,t){do{var l=wm(e.alternate,e);if(l!==null){l.flags&=32767,ne=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ne=e;return}ne=e=l}while(e!==null);Me=6,ne=null}function Go(e,t,l,a,u,n,c,r,y){e.cancelPendingCommit=null;do Bn();while(Ye!==0);if((he&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(n=t.lanes|t.childLanes,n|=Li,Ah(e,l,n,c,r,y),e===Se&&(ne=Se=null,fe=0),Ta=t,yl=e,Aa=l,Zc=n,Vc=u,jo=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wm(Yu,function(){return Ko(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,u=G.p,G.p=2,c=he,he|=4;try{Lm(e,t,l)}finally{he=c,G.p=u,j.T=a}}Ye=1,Xo(),Qo(),Zo()}}function Xo(){if(Ye===1){Ye=0;var e=yl,t=Ta,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var a=G.p;G.p=2;var u=he;he|=4;try{Ao(t,e);var n=ff,c=zr(e.containerInfo),r=n.focusedElem,y=n.selectionRange;if(c!==r&&r&&r.ownerDocument&&Mr(r.ownerDocument.documentElement,r)){if(y!==null&&Ui(r)){var T=y.start,D=y.end;if(D===void 0&&(D=T),"selectionStart"in r)r.selectionStart=T,r.selectionEnd=Math.min(D,r.value.length);else{var C=r.ownerDocument||document,R=C&&C.defaultView||window;if(R.getSelection){var O=R.getSelection(),I=r.textContent.length,k=Math.min(y.start,I),ge=y.end===void 0?k:Math.min(y.end,I);!O.extend&&k>ge&&(c=ge,ge=k,k=c);var x=Nr(r,k),b=Nr(r,ge);if(x&&b&&(O.rangeCount!==1||O.anchorNode!==x.node||O.anchorOffset!==x.offset||O.focusNode!==b.node||O.focusOffset!==b.offset)){var E=C.createRange();E.setStart(x.node,x.offset),O.removeAllRanges(),k>ge?(O.addRange(E),O.extend(b.node,b.offset)):(E.setEnd(b.node,b.offset),O.addRange(E))}}}}for(C=[],O=r;O=O.parentNode;)O.nodeType===1&&C.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<C.length;r++){var _=C[r];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}kn=!!cf,ff=cf=null}finally{he=u,G.p=a,j.T=l}}e.current=t,Ye=2}}function Qo(){if(Ye===2){Ye=0;var e=yl,t=Ta,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var a=G.p;G.p=2;var u=he;he|=4;try{So(e,t.alternate,t)}finally{he=u,G.p=a,j.T=l}}Ye=3}}function Zo(){if(Ye===4||Ye===3){Ye=0,yh();var e=yl,t=Ta,l=Aa,a=jo;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ye=5:(Ye=0,Ta=yl=null,Vo(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ml=null),hi(l),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=j.T,u=G.p,G.p=2,j.T=null;try{for(var n=e.onRecoverableError,c=0;c<a.length;c++){var r=a[c];n(r.value,{componentStack:r.stack})}}finally{j.T=t,G.p=u}}(Aa&3)!==0&&Bn(),zt(e),u=e.pendingLanes,(l&4194090)!==0&&(u&42)!==0?e===Kc?bu++:(bu=0,Kc=e):bu=0,pu(0)}}function Vo(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function Bn(e){return Xo(),Qo(),Zo(),Ko()}function Ko(){if(Ye!==5)return!1;var e=yl,t=Zc;Zc=0;var l=hi(Aa),a=j.T,u=G.p;try{G.p=32>l?32:l,j.T=null,l=Vc,Vc=null;var n=yl,c=Aa;if(Ye=0,Ta=yl=null,Aa=0,(he&6)!==0)throw Error(f(331));var r=he;if(he|=4,zo(n.current),Oo(n,n.current,c,l),he=r,pu(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(Ua,n)}catch{}return!0}finally{G.p=u,j.T=a,Vo(e,t)}}function Jo(e,t,l){t=mt(l,t),t=Ac(e.stateNode,t,2),e=nl(e,t,2),e!==null&&(Ba(e,2),zt(e))}function pe(e,t,l){if(e.tag===3)Jo(e,e,l);else for(;t!==null;){if(t.tag===3){Jo(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ml===null||!ml.has(a))){e=mt(l,e),l=Ws(2),a=nl(t,l,2),a!==null&&(Fs(l,a,t,e),Ba(a,2),zt(a));break}}t=t.return}}function Wc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Xm;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(l)||(Yc=!0,u.add(l),e=Jm.bind(null,e,t,l),t.then(e,e))}function Jm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Se===e&&(fe&l)===l&&(Me===4||Me===3&&(fe&62914560)===fe&&300>At()-Qc?(he&2)===0&&Ra(e,0):Gc|=l,Ea===fe&&(Ea=0)),zt(e)}function ko(e,t){t===0&&(t=Qf()),e=ca(e,t),e!==null&&(Ba(e,t),zt(e))}function km(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),ko(e,l)}function $m(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(t),ko(e,l)}function Wm(e,t){return ri(e,t)}var qn=null,Na=null,Fc=!1,wn=!1,Pc=!1,Zl=0;function zt(e){e!==Na&&e.next===null&&(Na===null?qn=Na=e:Na=Na.next=e),wn=!0,Fc||(Fc=!0,Pm())}function pu(e,t){if(!Pc&&wn){Pc=!0;do for(var l=!1,a=qn;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var c=a.suspendedLanes,r=a.pingedLanes;n=(1<<31-at(42|e)+1)-1,n&=u&~(c&~r),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(l=!0,Po(a,n))}else n=fe,n=Qu(a,a===Se?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||Ha(a,n)||(l=!0,Po(a,n));a=a.next}while(l);Pc=!1}}function Fm(){$o()}function $o(){wn=Fc=!1;var e=0;Zl!==0&&(iy()&&(e=Zl),Zl=0);for(var t=At(),l=null,a=qn;a!==null;){var u=a.next,n=Wo(a,t);n===0?(a.next=null,l===null?qn=u:l.next=u,u===null&&(Na=l)):(l=a,(e!==0||(n&3)!==0)&&(wn=!0)),a=u}pu(e)}function Wo(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var c=31-at(n),r=1<<c,y=u[c];y===-1?((r&l)===0||(r&a)!==0)&&(u[c]=Th(r,t)):y<=t&&(e.expiredLanes|=r),n&=~r}if(t=Se,l=fe,l=Qu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(me===2||me===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&si(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ha(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&si(a),hi(l)){case 2:case 8:l=Yf;break;case 32:l=Yu;break;case 268435456:l=Gf;break;default:l=Yu}return a=Fo.bind(null,e),l=ri(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&si(a),e.callbackPriority=2,e.callbackNode=null,2}function Fo(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Bn()&&e.callbackNode!==l)return null;var a=fe;return a=Qu(e,e===Se?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Co(e,a,t),Wo(e,At()),e.callbackNode!=null&&e.callbackNode===l?Fo.bind(null,e):null)}function Po(e,t){if(Bn())return null;Co(e,t,!0)}function Pm(){fy(function(){(he&6)!==0?ri(Lf,Fm):$o()})}function Ic(){return Zl===0&&(Zl=Xf()),Zl}function Io(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ku(""+e)}function ed(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Im(e,t,l,a,u){if(t==="submit"&&l&&l.stateNode===u){var n=Io((u[$e]||null).action),c=a.submitter;c&&(t=(t=c[$e]||null)?Io(t.formAction):c.getAttribute("formAction"),t!==null&&(n=t,c=null));var r=new Pu("action","action",null,a,u);e.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Zl!==0){var y=c?ed(u,c):new FormData(u);pc(l,{pending:!0,data:y,method:u.method,action:n},null,y)}}else typeof n=="function"&&(r.preventDefault(),y=c?ed(u,c):new FormData(u),pc(l,{pending:!0,data:y,method:u.method,action:n},n,y))},currentTarget:u}]})}}for(var ef=0;ef<wi.length;ef++){var tf=wi[ef],ey=tf.toLowerCase(),ty=tf[0].toUpperCase()+tf.slice(1);xt(ey,"on"+ty)}xt(_r,"onAnimationEnd"),xt(Cr,"onAnimationIteration"),xt(Ur,"onAnimationStart"),xt("dblclick","onDoubleClick"),xt("focusin","onFocus"),xt("focusout","onBlur"),xt(bm,"onTransitionRun"),xt(pm,"onTransitionStart"),xt(Sm,"onTransitionCancel"),xt(Hr,"onTransitionEnd"),Fl("onMouseEnter",["mouseout","mouseover"]),Fl("onMouseLeave",["mouseout","mouseover"]),Fl("onPointerEnter",["pointerout","pointerover"]),Fl("onPointerLeave",["pointerout","pointerover"]),Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su));function td(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],u=a.event;a=a.listeners;e:{var n=void 0;if(t)for(var c=a.length-1;0<=c;c--){var r=a[c],y=r.instance,T=r.currentTarget;if(r=r.listener,y!==n&&u.isPropagationStopped())break e;n=r,u.currentTarget=T;try{n(u)}catch(D){Rn(D)}u.currentTarget=null,n=y}else for(c=0;c<a.length;c++){if(r=a[c],y=r.instance,T=r.currentTarget,r=r.listener,y!==n&&u.isPropagationStopped())break e;n=r,u.currentTarget=T;try{n(u)}catch(D){Rn(D)}u.currentTarget=null,n=y}}}}function ie(e,t){var l=t[mi];l===void 0&&(l=t[mi]=new Set);var a=e+"__bubble";l.has(a)||(ld(t,e,2,!1),l.add(a))}function lf(e,t,l){var a=0;t&&(a|=4),ld(l,e,a,t)}var Ln="_reactListening"+Math.random().toString(36).slice(2);function af(e){if(!e[Ln]){e[Ln]=!0,kf.forEach(function(l){l!=="selectionchange"&&(ly.has(l)||lf(l,!1,e),lf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ln]||(t[Ln]=!0,lf("selectionchange",!1,t))}}function ld(e,t,l,a){switch(Od(t)){case 2:var u=zy;break;case 8:u=Dy;break;default:u=bf}l=u.bind(null,t,l,e),u=void 0,!Ri||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,l,{capture:!0,passive:u}):e.addEventListener(t,l,!0):u!==void 0?e.addEventListener(t,l,{passive:u}):e.addEventListener(t,l,!1)}function uf(e,t,l,a,u){var n=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var r=a.stateNode.containerInfo;if(r===u)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===u)return;c=c.return}for(;r!==null;){if(c=kl(r),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=n=c;continue e}r=r.parentNode}}a=a.return}fr(function(){var T=n,D=Ti(l),C=[];e:{var R=Br.get(e);if(R!==void 0){var O=Pu,I=e;switch(e){case"keypress":if(Wu(l)===0)break e;case"keydown":case"keyup":O=Wh;break;case"focusin":I="focus",O=zi;break;case"focusout":I="blur",O=zi;break;case"beforeblur":case"afterblur":O=zi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=or;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=Ih;break;case _r:case Cr:case Ur:O=Gh;break;case Hr:O=tm;break;case"scroll":case"scrollend":O=Bh;break;case"wheel":O=am;break;case"copy":case"cut":case"paste":O=Qh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=hr;break;case"toggle":case"beforetoggle":O=nm}var k=(t&4)!==0,ge=!k&&(e==="scroll"||e==="scrollend"),x=k?R!==null?R+"Capture":null:R;k=[];for(var b=T,E;b!==null;){var _=b;if(E=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||E===null||x===null||(_=La(b,x),_!=null&&k.push(xu(b,_,E))),ge)break;b=b.return}0<k.length&&(R=new O(R,I,null,l,D),C.push({event:R,listeners:k}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",R&&l!==Ei&&(I=l.relatedTarget||l.fromElement)&&(kl(I)||I[Jl]))break e;if((O||R)&&(R=D.window===D?D:(R=D.ownerDocument)?R.defaultView||R.parentWindow:window,O?(I=l.relatedTarget||l.toElement,O=T,I=I?kl(I):null,I!==null&&(ge=v(I),k=I.tag,I!==ge||k!==5&&k!==27&&k!==6)&&(I=null)):(O=null,I=T),O!==I)){if(k=or,_="onMouseLeave",x="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(k=hr,_="onPointerLeave",x="onPointerEnter",b="pointer"),ge=O==null?R:wa(O),E=I==null?R:wa(I),R=new k(_,b+"leave",O,l,D),R.target=ge,R.relatedTarget=E,_=null,kl(D)===T&&(k=new k(x,b+"enter",I,l,D),k.target=E,k.relatedTarget=ge,_=k),ge=_,O&&I)t:{for(k=O,x=I,b=0,E=k;E;E=Ma(E))b++;for(E=0,_=x;_;_=Ma(_))E++;for(;0<b-E;)k=Ma(k),b--;for(;0<E-b;)x=Ma(x),E--;for(;b--;){if(k===x||x!==null&&k===x.alternate)break t;k=Ma(k),x=Ma(x)}k=null}else k=null;O!==null&&ad(C,R,O,k,!1),I!==null&&ge!==null&&ad(C,ge,I,k,!0)}}e:{if(R=T?wa(T):window,O=R.nodeName&&R.nodeName.toLowerCase(),O==="select"||O==="input"&&R.type==="file")var V=xr;else if(pr(R))if(Er)V=ym;else{V=hm;var ae=dm}else O=R.nodeName,!O||O.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?T&&xi(T.elementType)&&(V=xr):V=mm;if(V&&(V=V(e,T))){Sr(C,V,l,D);break e}ae&&ae(e,R,T),e==="focusout"&&T&&R.type==="number"&&T.memoizedProps.value!=null&&Si(R,"number",R.value)}switch(ae=T?wa(T):window,e){case"focusin":(pr(ae)||ae.contentEditable==="true")&&(ua=ae,Hi=T,Ja=null);break;case"focusout":Ja=Hi=ua=null;break;case"mousedown":Bi=!0;break;case"contextmenu":case"mouseup":case"dragend":Bi=!1,Dr(C,l,D);break;case"selectionchange":if(gm)break;case"keydown":case"keyup":Dr(C,l,D)}var K;if(ji)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else aa?gr(e,l)&&($="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&($="onCompositionStart");$&&(mr&&l.locale!=="ko"&&(aa||$!=="onCompositionStart"?$==="onCompositionEnd"&&aa&&(K=rr()):(tl=D,Oi="value"in tl?tl.value:tl.textContent,aa=!0)),ae=Yn(T,$),0<ae.length&&($=new dr($,e,null,l,D),C.push({event:$,listeners:ae}),K?$.data=K:(K=br(l),K!==null&&($.data=K)))),(K=cm?fm(e,l):rm(e,l))&&($=Yn(T,"onBeforeInput"),0<$.length&&(ae=new dr("onBeforeInput","beforeinput",null,l,D),C.push({event:ae,listeners:$}),ae.data=K)),Im(C,e,T,l,D)}td(C,t)})}function xu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Yn(e,t){for(var l=t+"Capture",a=[];e!==null;){var u=e,n=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=La(e,l),u!=null&&a.unshift(xu(e,u,n)),u=La(e,t),u!=null&&a.push(xu(e,u,n))),e.tag===3)return a;e=e.return}return[]}function Ma(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ad(e,t,l,a,u){for(var n=t._reactName,c=[];l!==null&&l!==a;){var r=l,y=r.alternate,T=r.stateNode;if(r=r.tag,y!==null&&y===a)break;r!==5&&r!==26&&r!==27||T===null||(y=T,u?(T=La(l,n),T!=null&&c.unshift(xu(l,T,y))):u||(T=La(l,n),T!=null&&c.push(xu(l,T,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var ay=/\r\n?/g,uy=/\u0000|\uFFFD/g;function ud(e){return(typeof e=="string"?e:""+e).replace(ay,`
`).replace(uy,"")}function nd(e,t){return t=ud(t),ud(e)===t}function Gn(){}function ve(e,t,l,a,u,n){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ea(e,""+a);break;case"className":Vu(e,"class",a);break;case"tabIndex":Vu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vu(e,l,a);break;case"style":ir(e,a,n);break;case"data":if(t!=="object"){Vu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ku(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(l==="formAction"?(t!=="input"&&ve(e,t,"name",u.name,u,null),ve(e,t,"formEncType",u.formEncType,u,null),ve(e,t,"formMethod",u.formMethod,u,null),ve(e,t,"formTarget",u.formTarget,u,null)):(ve(e,t,"encType",u.encType,u,null),ve(e,t,"method",u.method,u,null),ve(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ku(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Gn);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=ku(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ie("beforetoggle",e),ie("toggle",e),Zu(e,"popover",a);break;case"xlinkActuate":Ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ut(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ut(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ut(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ut(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Zu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Uh.get(l)||l,Zu(e,l,a))}}function nf(e,t,l,a,u,n){switch(l){case"style":ir(e,a,n);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ea(e,a):(typeof a=="number"||typeof a=="bigint")&&ea(e,""+a);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$f.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),t=l.slice(2,u?l.length-7:void 0),n=e[$e]||null,n=n!=null?n[l]:null,typeof n=="function"&&e.removeEventListener(t,n,u),typeof a=="function")){typeof n!="function"&&n!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,u);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Zu(e,l,a)}}}function Ge(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ie("error",e),ie("load",e);var a=!1,u=!1,n;for(n in l)if(l.hasOwnProperty(n)){var c=l[n];if(c!=null)switch(n){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ve(e,t,n,c,l,null)}}u&&ve(e,t,"srcSet",l.srcSet,l,null),a&&ve(e,t,"src",l.src,l,null);return;case"input":ie("invalid",e);var r=n=c=u=null,y=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":u=D;break;case"type":c=D;break;case"checked":y=D;break;case"defaultChecked":T=D;break;case"value":n=D;break;case"defaultValue":r=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(f(137,t));break;default:ve(e,t,a,D,l,null)}}lr(e,n,r,y,T,c,u,!1),Ku(e);return;case"select":ie("invalid",e),a=c=n=null;for(u in l)if(l.hasOwnProperty(u)&&(r=l[u],r!=null))switch(u){case"value":n=r;break;case"defaultValue":c=r;break;case"multiple":a=r;default:ve(e,t,u,r,l,null)}t=n,l=c,e.multiple=!!a,t!=null?Il(e,!!a,t,!1):l!=null&&Il(e,!!a,l,!0);return;case"textarea":ie("invalid",e),n=u=a=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":a=r;break;case"defaultValue":u=r;break;case"children":n=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:ve(e,t,c,r,l,null)}ur(e,a,u,n),Ku(e);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ve(e,t,y,a,l,null)}return;case"dialog":ie("beforetoggle",e),ie("toggle",e),ie("cancel",e),ie("close",e);break;case"iframe":case"object":ie("load",e);break;case"video":case"audio":for(a=0;a<Su.length;a++)ie(Su[a],e);break;case"image":ie("error",e),ie("load",e);break;case"details":ie("toggle",e);break;case"embed":case"source":case"link":ie("error",e),ie("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ve(e,t,T,a,l,null)}return;default:if(xi(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&nf(e,t,D,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&ve(e,t,r,a,l,null))}function ny(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,n=null,c=null,r=null,y=null,T=null,D=null;for(O in l){var C=l[O];if(l.hasOwnProperty(O)&&C!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":y=C;default:a.hasOwnProperty(O)||ve(e,t,O,null,a,C)}}for(var R in a){var O=a[R];if(C=l[R],a.hasOwnProperty(R)&&(O!=null||C!=null))switch(R){case"type":n=O;break;case"name":u=O;break;case"checked":T=O;break;case"defaultChecked":D=O;break;case"value":c=O;break;case"defaultValue":r=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(f(137,t));break;default:O!==C&&ve(e,t,R,O,a,C)}}pi(e,c,r,y,T,D,n,u);return;case"select":O=c=r=R=null;for(n in l)if(y=l[n],l.hasOwnProperty(n)&&y!=null)switch(n){case"value":break;case"multiple":O=y;default:a.hasOwnProperty(n)||ve(e,t,n,null,a,y)}for(u in a)if(n=a[u],y=l[u],a.hasOwnProperty(u)&&(n!=null||y!=null))switch(u){case"value":R=n;break;case"defaultValue":r=n;break;case"multiple":c=n;default:n!==y&&ve(e,t,u,n,a,y)}t=r,l=c,a=O,R!=null?Il(e,!!l,R,!1):!!a!=!!l&&(t!=null?Il(e,!!l,t,!0):Il(e,!!l,l?[]:"",!1));return;case"textarea":O=R=null;for(r in l)if(u=l[r],l.hasOwnProperty(r)&&u!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ve(e,t,r,null,a,u)}for(c in a)if(u=a[c],n=l[c],a.hasOwnProperty(c)&&(u!=null||n!=null))switch(c){case"value":R=u;break;case"defaultValue":O=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(f(91));break;default:u!==n&&ve(e,t,c,u,a,n)}ar(e,R,O);return;case"option":for(var I in l)if(R=l[I],l.hasOwnProperty(I)&&R!=null&&!a.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:ve(e,t,I,null,a,R)}for(y in a)if(R=a[y],O=l[y],a.hasOwnProperty(y)&&R!==O&&(R!=null||O!=null))switch(y){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:ve(e,t,y,R,a,O)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var k in l)R=l[k],l.hasOwnProperty(k)&&R!=null&&!a.hasOwnProperty(k)&&ve(e,t,k,null,a,R);for(T in a)if(R=a[T],O=l[T],a.hasOwnProperty(T)&&R!==O&&(R!=null||O!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(f(137,t));break;default:ve(e,t,T,R,a,O)}return;default:if(xi(t)){for(var ge in l)R=l[ge],l.hasOwnProperty(ge)&&R!==void 0&&!a.hasOwnProperty(ge)&&nf(e,t,ge,void 0,a,R);for(D in a)R=a[D],O=l[D],!a.hasOwnProperty(D)||R===O||R===void 0&&O===void 0||nf(e,t,D,R,a,O);return}}for(var x in l)R=l[x],l.hasOwnProperty(x)&&R!=null&&!a.hasOwnProperty(x)&&ve(e,t,x,null,a,R);for(C in a)R=a[C],O=l[C],!a.hasOwnProperty(C)||R===O||R==null&&O==null||ve(e,t,C,R,a,O)}var cf=null,ff=null;function Xn(e){return e.nodeType===9?e:e.ownerDocument}function id(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function rf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sf=null;function iy(){var e=window.event;return e&&e.type==="popstate"?e===sf?!1:(sf=e,!0):(sf=null,!1)}var fd=typeof setTimeout=="function"?setTimeout:void 0,cy=typeof clearTimeout=="function"?clearTimeout:void 0,rd=typeof Promise=="function"?Promise:void 0,fy=typeof queueMicrotask=="function"?queueMicrotask:typeof rd<"u"?function(e){return rd.resolve(null).then(e).catch(ry)}:fd;function ry(e){setTimeout(function(){throw e})}function gl(e){return e==="head"}function sd(e,t){var l=t,a=0,u=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(0<a&&8>a){l=a;var c=e.ownerDocument;if(l&1&&Eu(c.documentElement),l&2&&Eu(c.body),l&4)for(l=c.head,Eu(l),c=l.firstChild;c;){var r=c.nextSibling,y=c.nodeName;c[qa]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=r}}if(u===0){e.removeChild(n),Du(t);return}u--}else l==="$"||l==="$?"||l==="$!"?u++:a=l.charCodeAt(0)-48;else a=0;l=n}while(l);Du(t)}function of(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":of(l),yi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function sy(e,t,l,a){for(;e.nodeType===1;){var u=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=Tt(e.nextSibling),e===null)break}return null}function oy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Tt(e.nextSibling),e===null))return null;return e}function df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function dy(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Tt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var hf=null;function od(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function dd(e,t,l){switch(t=Xn(l),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Eu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yi(e)}var St=new Map,hd=new Set;function Qn(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kt=G.d;G.d={f:hy,r:my,D:yy,C:vy,L:gy,m:by,X:Sy,S:py,M:xy};function hy(){var e=kt.f(),t=Un();return e||t}function my(e){var t=$l(e);t!==null&&t.tag===5&&t.type==="form"?_s(t):kt.r(e)}var za=typeof document>"u"?null:document;function md(e,t,l){var a=za;if(a&&typeof t=="string"&&t){var u=ht(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),hd.has(u)||(hd.add(u),e={rel:e,crossOrigin:l,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),Ge(t,"link",e),He(t),a.head.appendChild(t)))}}function yy(e){kt.D(e),md("dns-prefetch",e,null)}function vy(e,t){kt.C(e,t),md("preconnect",e,t)}function gy(e,t,l){kt.L(e,t,l);var a=za;if(a&&e&&t){var u='link[rel="preload"][as="'+ht(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+ht(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+ht(l.imageSizes)+'"]')):u+='[href="'+ht(e)+'"]';var n=u;switch(t){case"style":n=Da(e);break;case"script":n=ja(e)}St.has(n)||(e=M({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),St.set(n,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Tu(n))||t==="script"&&a.querySelector(Au(n))||(t=a.createElement("link"),Ge(t,"link",e),He(t),a.head.appendChild(t)))}}function by(e,t){kt.m(e,t);var l=za;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ht(a)+'"][href="'+ht(e)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=ja(e)}if(!St.has(n)&&(e=M({rel:"modulepreload",href:e},t),St.set(n,e),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Au(n)))return}a=l.createElement("link"),Ge(a,"link",e),He(a),l.head.appendChild(a)}}}function py(e,t,l){kt.S(e,t,l);var a=za;if(a&&e){var u=Wl(a).hoistableStyles,n=Da(e);t=t||"default";var c=u.get(n);if(!c){var r={loading:0,preload:null};if(c=a.querySelector(Tu(n)))r.loading=5;else{e=M({rel:"stylesheet",href:e,"data-precedence":t},l),(l=St.get(n))&&mf(e,l);var y=c=a.createElement("link");He(y),Ge(y,"link",e),y._p=new Promise(function(T,D){y.onload=T,y.onerror=D}),y.addEventListener("load",function(){r.loading|=1}),y.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Zn(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:r},u.set(n,c)}}}function Sy(e,t){kt.X(e,t);var l=za;if(l&&e){var a=Wl(l).hoistableScripts,u=ja(e),n=a.get(u);n||(n=l.querySelector(Au(u)),n||(e=M({src:e,async:!0},t),(t=St.get(u))&&yf(e,t),n=l.createElement("script"),He(n),Ge(n,"link",e),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function xy(e,t){kt.M(e,t);var l=za;if(l&&e){var a=Wl(l).hoistableScripts,u=ja(e),n=a.get(u);n||(n=l.querySelector(Au(u)),n||(e=M({src:e,async:!0,type:"module"},t),(t=St.get(u))&&yf(e,t),n=l.createElement("script"),He(n),Ge(n,"link",e),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function yd(e,t,l,a){var u=(u=ee.current)?Qn(u):null;if(!u)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Da(l.href),l=Wl(u).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Da(l.href);var n=Wl(u).hoistableStyles,c=n.get(e);if(c||(u=u.ownerDocument||u,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,c),(n=u.querySelector(Tu(e)))&&!n._p&&(c.instance=n,c.state.loading=5),St.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},St.set(e,l),n||Ey(u,e,l,c.state))),t&&a===null)throw Error(f(528,""));return c}if(t&&a!==null)throw Error(f(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ja(l),l=Wl(u).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function Da(e){return'href="'+ht(e)+'"'}function Tu(e){return'link[rel="stylesheet"]['+e+"]"}function vd(e){return M({},e,{"data-precedence":e.precedence,precedence:null})}function Ey(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ge(t,"link",l),He(t),e.head.appendChild(t))}function ja(e){return'[src="'+ht(e)+'"]'}function Au(e){return"script[async]"+e}function gd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+ht(l.href)+'"]');if(a)return t.instance=a,He(a),a;var u=M({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),He(a),Ge(a,"style",u),Zn(a,l.precedence,e),t.instance=a;case"stylesheet":u=Da(l.href);var n=e.querySelector(Tu(u));if(n)return t.state.loading|=4,t.instance=n,He(n),n;a=vd(l),(u=St.get(u))&&mf(a,u),n=(e.ownerDocument||e).createElement("link"),He(n);var c=n;return c._p=new Promise(function(r,y){c.onload=r,c.onerror=y}),Ge(n,"link",a),t.state.loading|=4,Zn(n,l.precedence,e),t.instance=n;case"script":return n=ja(l.src),(u=e.querySelector(Au(n)))?(t.instance=u,He(u),u):(a=l,(u=St.get(n))&&(a=M({},l),yf(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),He(u),Ge(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Zn(a,l.precedence,e));return t.instance}function Zn(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,n=u,c=0;c<a.length;c++){var r=a[c];if(r.dataset.precedence===t)n=r;else if(n!==u)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vn=null;function bd(e,t,l){if(Vn===null){var a=new Map,u=Vn=new Map;u.set(l,a)}else u=Vn,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),u=0;u<l.length;u++){var n=l[u];if(!(n[qa]||n[Ze]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var c=n.getAttribute(t)||"";c=e+c;var r=a.get(c);r?r.push(n):a.set(c,[n])}}return a}function pd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ty(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Sd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ru=null;function Ay(){}function Ry(e,t,l){if(Ru===null)throw Error(f(475));var a=Ru;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Da(l.href),n=e.querySelector(Tu(u));if(n){e=n._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Kn.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=n,He(n);return}n=e.ownerDocument||e,l=vd(l),(u=St.get(u))&&mf(l,u),n=n.createElement("link"),He(n);var c=n;c._p=new Promise(function(r,y){c.onload=r,c.onerror=y}),Ge(n,"link",l),t.instance=n}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Kn.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Oy(){if(Ru===null)throw Error(f(475));var e=Ru;return e.stylesheets&&e.count===0&&vf(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&vf(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Kn(){if(this.count--,this.count===0){if(this.stylesheets)vf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Jn=null;function vf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Jn=new Map,t.forEach(Ny,e),Jn=null,Kn.call(e))}function Ny(e,t){if(!(t.state.loading&4)){var l=Jn.get(e);if(l)var a=l.get(null);else{l=new Map,Jn.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var c=u[n];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}u=t.instance,c=u.getAttribute("data-precedence"),n=l.get(c)||a,n===a&&l.set(null,u),l.set(c,u),this.count++,a=Kn.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),n?n.parentNode.insertBefore(u,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ou={$$typeof:W,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function My(e,t,l,a,u,n,c,r){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=oi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.hiddenUpdates=oi(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function xd(e,t,l,a,u,n,c,r,y,T,D,C){return e=new My(e,t,l,c,r,y,T,C),t=1,n===!0&&(t|=24),n=nt(3,null,null,t),e.current=n,n.stateNode=e,t=Wi(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:a,isDehydrated:l,cache:t},ec(n),e}function Ed(e){return e?(e=fa,e):fa}function Td(e,t,l,a,u,n){u=Ed(u),a.context===null?a.context=u:a.pendingContext=u,a=ul(t),a.payload={element:l},n=n===void 0?null:n,n!==null&&(a.callback=n),l=nl(e,a,t),l!==null&&(st(l,e,t),lu(l,e,t))}function Ad(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function gf(e,t){Ad(e,t),(e=e.alternate)&&Ad(e,t)}function Rd(e){if(e.tag===13){var t=ca(e,67108864);t!==null&&st(t,e,67108864),gf(e,67108864)}}var kn=!0;function zy(e,t,l,a){var u=j.T;j.T=null;var n=G.p;try{G.p=2,bf(e,t,l,a)}finally{G.p=n,j.T=u}}function Dy(e,t,l,a){var u=j.T;j.T=null;var n=G.p;try{G.p=8,bf(e,t,l,a)}finally{G.p=n,j.T=u}}function bf(e,t,l,a){if(kn){var u=pf(a);if(u===null)uf(e,t,a,$n,l),Nd(e,a);else if(_y(u,e,t,l,a))a.stopPropagation();else if(Nd(e,a),t&4&&-1<jy.indexOf(e)){for(;u!==null;){var n=$l(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var c=Nl(n.pendingLanes);if(c!==0){var r=n;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var y=1<<31-at(c);r.entanglements[1]|=y,c&=~y}zt(n),(he&6)===0&&(_n=At()+500,pu(0))}}break;case 13:r=ca(n,2),r!==null&&st(r,n,2),Un(),gf(n,2)}if(n=pf(a),n===null&&uf(e,t,a,$n,l),n===u)break;u=n}u!==null&&a.stopPropagation()}else uf(e,t,a,null,l)}}function pf(e){return e=Ti(e),Sf(e)}var $n=null;function Sf(e){if($n=null,e=kl(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return $n=e,null}function Od(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(vh()){case Lf:return 2;case Yf:return 8;case Yu:case gh:return 32;case Gf:return 268435456;default:return 32}default:return 32}}var xf=!1,bl=null,pl=null,Sl=null,Nu=new Map,Mu=new Map,xl=[],jy="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 Nd(e,t){switch(e){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":pl=null;break;case"mouseover":case"mouseout":Sl=null;break;case"pointerover":case"pointerout":Nu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mu.delete(t.pointerId)}}function zu(e,t,l,a,u,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:n,targetContainers:[u]},t!==null&&(t=$l(t),t!==null&&Rd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function _y(e,t,l,a,u){switch(t){case"focusin":return bl=zu(bl,e,t,l,a,u),!0;case"dragenter":return pl=zu(pl,e,t,l,a,u),!0;case"mouseover":return Sl=zu(Sl,e,t,l,a,u),!0;case"pointerover":var n=u.pointerId;return Nu.set(n,zu(Nu.get(n)||null,e,t,l,a,u)),!0;case"gotpointercapture":return n=u.pointerId,Mu.set(n,zu(Mu.get(n)||null,e,t,l,a,u)),!0}return!1}function Md(e){var t=kl(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,Rh(e.priority,function(){if(l.tag===13){var a=rt();a=di(a);var u=ca(l,a);u!==null&&st(u,l,a),gf(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=pf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ei=a,l.target.dispatchEvent(a),Ei=null}else return t=$l(l),t!==null&&Rd(t),e.blockedOn=l,!1;t.shift()}return!0}function zd(e,t,l){Wn(e)&&l.delete(t)}function Cy(){xf=!1,bl!==null&&Wn(bl)&&(bl=null),pl!==null&&Wn(pl)&&(pl=null),Sl!==null&&Wn(Sl)&&(Sl=null),Nu.forEach(zd),Mu.forEach(zd)}function Fn(e,t){e.blockedOn===t&&(e.blockedOn=null,xf||(xf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Cy)))}var Pn=null;function Dd(e){Pn!==e&&(Pn=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Pn===e&&(Pn=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(Sf(a||l)===null)continue;break}var n=$l(l);n!==null&&(e.splice(t,3),t-=3,pc(n,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function Du(e){function t(y){return Fn(y,e)}bl!==null&&Fn(bl,e),pl!==null&&Fn(pl,e),Sl!==null&&Fn(Sl,e),Nu.forEach(t),Mu.forEach(t);for(var l=0;l<xl.length;l++){var a=xl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<xl.length&&(l=xl[0],l.blockedOn===null);)Md(l),l.blockedOn===null&&xl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],n=l[a+1],c=u[$e]||null;if(typeof n=="function")c||Dd(l);else if(c){var r=null;if(n&&n.hasAttribute("formAction")){if(u=n,c=n[$e]||null)r=c.formAction;else if(Sf(u)!==null)continue}else r=c.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),Dd(l)}}}function Ef(e){this._internalRoot=e}In.prototype.render=Ef.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,a=rt();Td(l,a,e,t,null,null)},In.prototype.unmount=Ef.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Td(e.current,2,null,e,null,null),Un(),t[Jl]=null}};function In(e){this._internalRoot=e}In.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<xl.length&&t!==0&&t<xl[l].priority;l++);xl.splice(l,0,e),l===0&&Md(e)}};var jd=o.version;if(jd!=="19.1.0")throw Error(f(527,jd,"19.1.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=S(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var Uy={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{Ua=ei.inject(Uy),lt=ei}catch{}}return _u.createRoot=function(e,t){if(!d(e))throw Error(f(299));var l=!1,a="",u=Ks,n=Js,c=ks,r=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(r=t.unstable_transitionCallbacks)),t=xd(e,1,!1,null,null,l,a,u,n,c,r,null),e[Jl]=t.current,af(e),new Ef(t)},_u.hydrateRoot=function(e,t,l){if(!d(e))throw Error(f(299));var a=!1,u="",n=Ks,c=Js,r=ks,y=null,T=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(y=l.unstable_transitionCallbacks),l.formState!==void 0&&(T=l.formState)),t=xd(e,1,!0,t,l??null,a,u,n,c,r,y,T),t.context=Ed(null),l=t.current,a=rt(),a=di(a),u=ul(a),u.callback=null,nl(l,u,a),l=a,t.current.lanes=l,Ba(t,l),zt(t),e[Jl]=t.current,af(e),new In(t)},_u.version="19.1.0",_u}var Gd;function Vy(){if(Gd)return Rf.exports;Gd=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Rf.exports=Zy(),Rf.exports}var Ky=Vy();const Jy=$d(Ky);var Cu={},Xd;function ky(){if(Xd)return Cu;Xd=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.parse=p,Cu.serialize=h;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,o=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,f=/^[\u0020-\u003A\u003D-\u007E]*$/,d=Object.prototype.toString,v=(()=>{const N=function(){};return N.prototype=Object.create(null),N})();function p(N,q){const U=new v,w=N.length;if(w<2)return U;const X=(q==null?void 0:q.decode)||M;let L=0;do{const Z=N.indexOf("=",L);if(Z===-1)break;const W=N.indexOf(";",L),ce=W===-1?w:W;if(Z>ce){L=N.lastIndexOf(";",Z-1)+1;continue}const F=z(N,L,Z),Oe=S(N,Z,F),ue=N.slice(F,Oe);if(U[ue]===void 0){let re=z(N,Z+1,ce),xe=S(N,ce,re);const Je=X(N.slice(re,xe));U[ue]=Je}L=ce+1}while(L<w);return U}function z(N,q,U){do{const w=N.charCodeAt(q);if(w!==32&&w!==9)return q}while(++q<U);return U}function S(N,q,U){for(;q>U;){const w=N.charCodeAt(--q);if(w!==32&&w!==9)return q+1}return U}function h(N,q,U){const w=(U==null?void 0:U.encode)||encodeURIComponent;if(!i.test(N))throw new TypeError(`argument name is invalid: ${N}`);const X=w(q);if(!o.test(X))throw new TypeError(`argument val is invalid: ${q}`);let L=N+"="+X;if(!U)return L;if(U.maxAge!==void 0){if(!Number.isInteger(U.maxAge))throw new TypeError(`option maxAge is invalid: ${U.maxAge}`);L+="; Max-Age="+U.maxAge}if(U.domain){if(!s.test(U.domain))throw new TypeError(`option domain is invalid: ${U.domain}`);L+="; Domain="+U.domain}if(U.path){if(!f.test(U.path))throw new TypeError(`option path is invalid: ${U.path}`);L+="; Path="+U.path}if(U.expires){if(!B(U.expires)||!Number.isFinite(U.expires.valueOf()))throw new TypeError(`option expires is invalid: ${U.expires}`);L+="; Expires="+U.expires.toUTCString()}if(U.httpOnly&&(L+="; HttpOnly"),U.secure&&(L+="; Secure"),U.partitioned&&(L+="; Partitioned"),U.priority)switch(typeof U.priority=="string"?U.priority.toLowerCase():void 0){case"low":L+="; Priority=Low";break;case"medium":L+="; Priority=Medium";break;case"high":L+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${U.priority}`)}if(U.sameSite)switch(typeof U.sameSite=="string"?U.sameSite.toLowerCase():U.sameSite){case!0:case"strict":L+="; SameSite=Strict";break;case"lax":L+="; SameSite=Lax";break;case"none":L+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${U.sameSite}`)}return L}function M(N){if(N.indexOf("%")===-1)return N;try{return decodeURIComponent(N)}catch{return N}}function B(N){return d.call(N)==="[object Date]"}return Cu}ky();var Qd="popstate";function $y(i={}){function o(f,d){let{pathname:v,search:p,hash:z}=f.location;return jf("",{pathname:v,search:p,hash:z},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function s(f,d){return typeof d=="string"?d:Hu(d)}return Fy(o,s,null,i)}function Re(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function _t(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Wy(){return Math.random().toString(36).substring(2,10)}function Zd(i,o){return{usr:i.state,key:i.key,idx:o}}function jf(i,o,s=null,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?_a(o):o,state:s,key:o&&o.key||f||Wy()}}function Hu({pathname:i="/",search:o="",hash:s=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function _a(i){let o={};if(i){let s=i.indexOf("#");s>=0&&(o.hash=i.substring(s),i=i.substring(0,s));let f=i.indexOf("?");f>=0&&(o.search=i.substring(f),i=i.substring(0,f)),i&&(o.pathname=i)}return o}function Fy(i,o,s,f={}){let{window:d=document.defaultView,v5Compat:v=!1}=f,p=d.history,z="POP",S=null,h=M();h==null&&(h=0,p.replaceState({...p.state,idx:h},""));function M(){return(p.state||{idx:null}).idx}function B(){z="POP";let X=M(),L=X==null?null:X-h;h=X,S&&S({action:z,location:w.location,delta:L})}function N(X,L){z="PUSH";let Z=jf(w.location,X,L);h=M()+1;let W=Zd(Z,h),ce=w.createHref(Z);try{p.pushState(W,"",ce)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;d.location.assign(ce)}v&&S&&S({action:z,location:w.location,delta:1})}function q(X,L){z="REPLACE";let Z=jf(w.location,X,L);h=M();let W=Zd(Z,h),ce=w.createHref(Z);p.replaceState(W,"",ce),v&&S&&S({action:z,location:w.location,delta:0})}function U(X){return Py(X)}let w={get action(){return z},get location(){return i(d,p)},listen(X){if(S)throw new Error("A history only accepts one active listener");return d.addEventListener(Qd,B),S=X,()=>{d.removeEventListener(Qd,B),S=null}},createHref(X){return o(d,X)},createURL:U,encodeLocation(X){let L=U(X);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:N,replace:q,go(X){return p.go(X)}};return w}function Py(i,o=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Re(s,"No window.location.(origin|href) available to create URL");let f=typeof i=="string"?i:Hu(i);return f=f.replace(/ $/,"%20"),!o&&f.startsWith("//")&&(f=s+f),new URL(f,s)}function Wd(i,o,s="/"){return Iy(i,o,s,!1)}function Iy(i,o,s,f){let d=typeof o=="string"?_a(o):o,v=Wt(d.pathname||"/",s);if(v==null)return null;let p=Fd(i);e0(p);let z=null;for(let S=0;z==null&&S<p.length;++S){let h=o0(v);z=r0(p[S],h,f)}return z}function Fd(i,o=[],s=[],f=""){let d=(v,p,z)=>{let S={relativePath:z===void 0?v.path||"":z,caseSensitive:v.caseSensitive===!0,childrenIndex:p,route:v};S.relativePath.startsWith("/")&&(Re(S.relativePath.startsWith(f),`Absolute route path "${S.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(f.length));let h=$t([f,S.relativePath]),M=s.concat(S);v.children&&v.children.length>0&&(Re(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Fd(v.children,o,M,h)),!(v.path==null&&!v.index)&&o.push({path:h,score:c0(h,v.index),routesMeta:M})};return i.forEach((v,p)=>{var z;if(v.path===""||!((z=v.path)!=null&&z.includes("?")))d(v,p);else for(let S of Pd(v.path))d(v,p,S)}),o}function Pd(i){let o=i.split("/");if(o.length===0)return[];let[s,...f]=o,d=s.endsWith("?"),v=s.replace(/\?$/,"");if(f.length===0)return d?[v,""]:[v];let p=Pd(f.join("/")),z=[];return z.push(...p.map(S=>S===""?v:[v,S].join("/"))),d&&z.push(...p),z.map(S=>i.startsWith("/")&&S===""?"/":S)}function e0(i){i.sort((o,s)=>o.score!==s.score?s.score-o.score:f0(o.routesMeta.map(f=>f.childrenIndex),s.routesMeta.map(f=>f.childrenIndex)))}var t0=/^:[\w-]+$/,l0=3,a0=2,u0=1,n0=10,i0=-2,Vd=i=>i==="*";function c0(i,o){let s=i.split("/"),f=s.length;return s.some(Vd)&&(f+=i0),o&&(f+=a0),s.filter(d=>!Vd(d)).reduce((d,v)=>d+(t0.test(v)?l0:v===""?u0:n0),f)}function f0(i,o){return i.length===o.length&&i.slice(0,-1).every((f,d)=>f===o[d])?i[i.length-1]-o[o.length-1]:0}function r0(i,o,s=!1){let{routesMeta:f}=i,d={},v="/",p=[];for(let z=0;z<f.length;++z){let S=f[z],h=z===f.length-1,M=v==="/"?o:o.slice(v.length)||"/",B=ui({path:S.relativePath,caseSensitive:S.caseSensitive,end:h},M),N=S.route;if(!B&&h&&s&&!f[f.length-1].route.index&&(B=ui({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},M)),!B)return null;Object.assign(d,B.params),p.push({params:d,pathname:$t([v,B.pathname]),pathnameBase:y0($t([v,B.pathnameBase])),route:N}),B.pathnameBase!=="/"&&(v=$t([v,B.pathnameBase]))}return p}function ui(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,f]=s0(i.path,i.caseSensitive,i.end),d=o.match(s);if(!d)return null;let v=d[0],p=v.replace(/(.)\/+$/,"$1"),z=d.slice(1);return{params:f.reduce((h,{paramName:M,isOptional:B},N)=>{if(M==="*"){let U=z[N]||"";p=v.slice(0,v.length-U.length).replace(/(.)\/+$/,"$1")}const q=z[N];return B&&!q?h[M]=void 0:h[M]=(q||"").replace(/%2F/g,"/"),h},{}),pathname:v,pathnameBase:p,pattern:i}}function s0(i,o=!1,s=!0){_t(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let f=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,z,S)=>(f.push({paramName:z,isOptional:S!=null}),S?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(f.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),f]}function o0(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return _t(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function Wt(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let s=o.endsWith("/")?o.length-1:o.length,f=i.charAt(s);return f&&f!=="/"?null:i.slice(s)||"/"}function d0(i,o="/"){let{pathname:s,search:f="",hash:d=""}=typeof i=="string"?_a(i):i;return{pathname:s?s.startsWith("/")?s:h0(s,o):o,search:v0(f),hash:g0(d)}}function h0(i,o){let s=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?s.length>1&&s.pop():d!=="."&&s.push(d)}),s.length>1?s.join("/"):"/"}function zf(i,o,s,f){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(f)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function m0(i){return i.filter((o,s)=>s===0||o.route.path&&o.route.path.length>0)}function Id(i){let o=m0(i);return o.map((s,f)=>f===o.length-1?s.pathname:s.pathnameBase)}function eh(i,o,s,f=!1){let d;typeof i=="string"?d=_a(i):(d={...i},Re(!d.pathname||!d.pathname.includes("?"),zf("?","pathname","search",d)),Re(!d.pathname||!d.pathname.includes("#"),zf("#","pathname","hash",d)),Re(!d.search||!d.search.includes("#"),zf("#","search","hash",d)));let v=i===""||d.pathname==="",p=v?"/":d.pathname,z;if(p==null)z=s;else{let B=o.length-1;if(!f&&p.startsWith("..")){let N=p.split("/");for(;N[0]==="..";)N.shift(),B-=1;d.pathname=N.join("/")}z=B>=0?o[B]:"/"}let S=d0(d,z),h=p&&p!=="/"&&p.endsWith("/"),M=(v||p===".")&&s.endsWith("/");return!S.pathname.endsWith("/")&&(h||M)&&(S.pathname+="/"),S}var $t=i=>i.join("/").replace(/\/\/+/g,"/"),y0=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),v0=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,g0=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function b0(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var th=["POST","PUT","PATCH","DELETE"];new Set(th);var p0=["GET",...th];new Set(p0);var Ca=A.createContext(null);Ca.displayName="DataRouter";var ni=A.createContext(null);ni.displayName="DataRouterState";var lh=A.createContext({isTransitioning:!1});lh.displayName="ViewTransition";var S0=A.createContext(new Map);S0.displayName="Fetchers";var x0=A.createContext(null);x0.displayName="Await";var Ct=A.createContext(null);Ct.displayName="Navigation";var Bu=A.createContext(null);Bu.displayName="Location";var Ft=A.createContext({outlet:null,matches:[],isDataRoute:!1});Ft.displayName="Route";var Uf=A.createContext(null);Uf.displayName="RouteError";function E0(i,{relative:o}={}){Re(qu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:f}=A.useContext(Ct),{hash:d,pathname:v,search:p}=wu(i,{relative:o}),z=v;return s!=="/"&&(z=v==="/"?s:$t([s,v])),f.createHref({pathname:z,search:p,hash:d})}function qu(){return A.useContext(Bu)!=null}function Kl(){return Re(qu(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Bu).location}var ah="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uh(i){A.useContext(Ct).static||A.useLayoutEffect(i)}function T0(){let{isDataRoute:i}=A.useContext(Ft);return i?B0():A0()}function A0(){Re(qu(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(Ca),{basename:o,navigator:s}=A.useContext(Ct),{matches:f}=A.useContext(Ft),{pathname:d}=Kl(),v=JSON.stringify(Id(f)),p=A.useRef(!1);return uh(()=>{p.current=!0}),A.useCallback((S,h={})=>{if(_t(p.current,ah),!p.current)return;if(typeof S=="number"){s.go(S);return}let M=eh(S,JSON.parse(v),d,h.relative==="path");i==null&&o!=="/"&&(M.pathname=M.pathname==="/"?o:$t([o,M.pathname])),(h.replace?s.replace:s.push)(M,h.state,h)},[o,s,v,d,i])}A.createContext(null);function wu(i,{relative:o}={}){let{matches:s}=A.useContext(Ft),{pathname:f}=Kl(),d=JSON.stringify(Id(s));return A.useMemo(()=>eh(i,JSON.parse(d),f,o==="path"),[i,d,f,o])}function R0(i,o){return nh(i,o)}function nh(i,o,s,f){var L;Re(qu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=A.useContext(Ct),{matches:v}=A.useContext(Ft),p=v[v.length-1],z=p?p.params:{},S=p?p.pathname:"/",h=p?p.pathnameBase:"/",M=p&&p.route;{let Z=M&&M.path||"";ih(S,!M||Z.endsWith("*")||Z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${S}" (under <Route path="${Z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${Z}"> to <Route path="${Z==="/"?"*":`${Z}/*`}">.`)}let B=Kl(),N;if(o){let Z=typeof o=="string"?_a(o):o;Re(h==="/"||((L=Z.pathname)==null?void 0:L.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${Z.pathname}" was given in the \`location\` prop.`),N=Z}else N=B;let q=N.pathname||"/",U=q;if(h!=="/"){let Z=h.replace(/^\//,"").split("/");U="/"+q.replace(/^\//,"").split("/").slice(Z.length).join("/")}let w=Wd(i,{pathname:U});_t(M||w!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),_t(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=D0(w&&w.map(Z=>Object.assign({},Z,{params:Object.assign({},z,Z.params),pathname:$t([h,d.encodeLocation?d.encodeLocation(Z.pathname).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?h:$t([h,d.encodeLocation?d.encodeLocation(Z.pathnameBase).pathname:Z.pathnameBase])})),v,s,f);return o&&X?A.createElement(Bu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},X):X}function O0(){let i=H0(),o=b0(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,f="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:f},v={padding:"2px 4px",backgroundColor:f},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:v},"ErrorBoundary")," or"," ",A.createElement("code",{style:v},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},o),s?A.createElement("pre",{style:d},s):null,p)}var N0=A.createElement(O0,null),M0=class extends A.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){console.error("React Router caught the following error during render",i,o)}render(){return this.state.error!==void 0?A.createElement(Ft.Provider,{value:this.props.routeContext},A.createElement(Uf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function z0({routeContext:i,match:o,children:s}){let f=A.useContext(Ca);return f&&f.static&&f.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(Ft.Provider,{value:i},s)}function D0(i,o=[],s=null,f=null){if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let d=i,v=s==null?void 0:s.errors;if(v!=null){let S=d.findIndex(h=>h.route.id&&(v==null?void 0:v[h.route.id])!==void 0);Re(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,z=-1;if(s)for(let S=0;S<d.length;S++){let h=d[S];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(z=S),h.route.id){let{loaderData:M,errors:B}=s,N=h.route.loader&&!M.hasOwnProperty(h.route.id)&&(!B||B[h.route.id]===void 0);if(h.route.lazy||N){p=!0,z>=0?d=d.slice(0,z+1):d=[d[0]];break}}}return d.reduceRight((S,h,M)=>{let B,N=!1,q=null,U=null;s&&(B=v&&h.route.id?v[h.route.id]:void 0,q=h.route.errorElement||N0,p&&(z<0&&M===0?(ih("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,U=null):z===M&&(N=!0,U=h.route.hydrateFallbackElement||null)));let w=o.concat(d.slice(0,M+1)),X=()=>{let L;return B?L=q:N?L=U:h.route.Component?L=A.createElement(h.route.Component,null):h.route.element?L=h.route.element:L=S,A.createElement(z0,{match:h,routeContext:{outlet:S,matches:w,isDataRoute:s!=null},children:L})};return s&&(h.route.ErrorBoundary||h.route.errorElement||M===0)?A.createElement(M0,{location:s.location,revalidation:s.revalidation,component:q,error:B,children:X(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):X()},null)}function Hf(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function j0(i){let o=A.useContext(Ca);return Re(o,Hf(i)),o}function _0(i){let o=A.useContext(ni);return Re(o,Hf(i)),o}function C0(i){let o=A.useContext(Ft);return Re(o,Hf(i)),o}function Bf(i){let o=C0(i),s=o.matches[o.matches.length-1];return Re(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function U0(){return Bf("useRouteId")}function H0(){var f;let i=A.useContext(Uf),o=_0("useRouteError"),s=Bf("useRouteError");return i!==void 0?i:(f=o.errors)==null?void 0:f[s]}function B0(){let{router:i}=j0("useNavigate"),o=Bf("useNavigate"),s=A.useRef(!1);return uh(()=>{s.current=!0}),A.useCallback(async(d,v={})=>{_t(s.current,ah),s.current&&(typeof d=="number"?i.navigate(d):await i.navigate(d,{fromRouteId:o,...v}))},[i,o])}var Kd={};function ih(i,o,s){!o&&!Kd[i]&&(Kd[i]=!0,_t(!1,s))}A.memo(q0);function q0({routes:i,future:o,state:s}){return nh(i,void 0,s,o)}function Dt(i){Re(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function w0({basename:i="/",children:o=null,location:s,navigationType:f="POP",navigator:d,static:v=!1}){Re(!qu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),z=A.useMemo(()=>({basename:p,navigator:d,static:v,future:{}}),[p,d,v]);typeof s=="string"&&(s=_a(s));let{pathname:S="/",search:h="",hash:M="",state:B=null,key:N="default"}=s,q=A.useMemo(()=>{let U=Wt(S,p);return U==null?null:{location:{pathname:U,search:h,hash:M,state:B,key:N},navigationType:f}},[p,S,h,M,B,N,f]);return _t(q!=null,`<Router basename="${p}"> is not able to match the URL "${S}${h}${M}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:A.createElement(Ct.Provider,{value:z},A.createElement(Bu.Provider,{children:o,value:q}))}function L0({children:i,location:o}){return R0(_f(i),o)}function _f(i,o=[]){let s=[];return A.Children.forEach(i,(f,d)=>{if(!A.isValidElement(f))return;let v=[...o,d];if(f.type===A.Fragment){s.push.apply(s,_f(f.props.children,v));return}Re(f.type===Dt,`[${typeof f.type=="string"?f.type:f.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Re(!f.props.index||!f.props.children,"An index route cannot have child routes.");let p={id:f.props.id||v.join("-"),caseSensitive:f.props.caseSensitive,element:f.props.element,Component:f.props.Component,index:f.props.index,path:f.props.path,loader:f.props.loader,action:f.props.action,hydrateFallbackElement:f.props.hydrateFallbackElement,HydrateFallback:f.props.HydrateFallback,errorElement:f.props.errorElement,ErrorBoundary:f.props.ErrorBoundary,hasErrorBoundary:f.props.hasErrorBoundary===!0||f.props.ErrorBoundary!=null||f.props.errorElement!=null,shouldRevalidate:f.props.shouldRevalidate,handle:f.props.handle,lazy:f.props.lazy};f.props.children&&(p.children=_f(f.props.children,v)),s.push(p)}),s}var li="get",ai="application/x-www-form-urlencoded";function ii(i){return i!=null&&typeof i.tagName=="string"}function Y0(i){return ii(i)&&i.tagName.toLowerCase()==="button"}function G0(i){return ii(i)&&i.tagName.toLowerCase()==="form"}function X0(i){return ii(i)&&i.tagName.toLowerCase()==="input"}function Q0(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Z0(i,o){return i.button===0&&(!o||o==="_self")&&!Q0(i)}var ti=null;function V0(){if(ti===null)try{new FormData(document.createElement("form"),0),ti=!1}catch{ti=!0}return ti}var K0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Df(i){return i!=null&&!K0.has(i)?(_t(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ai}"`),null):i}function J0(i,o){let s,f,d,v,p;if(G0(i)){let z=i.getAttribute("action");f=z?Wt(z,o):null,s=i.getAttribute("method")||li,d=Df(i.getAttribute("enctype"))||ai,v=new FormData(i)}else if(Y0(i)||X0(i)&&(i.type==="submit"||i.type==="image")){let z=i.form;if(z==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||z.getAttribute("action");if(f=S?Wt(S,o):null,s=i.getAttribute("formmethod")||z.getAttribute("method")||li,d=Df(i.getAttribute("formenctype"))||Df(z.getAttribute("enctype"))||ai,v=new FormData(z,i),!V0()){let{name:h,type:M,value:B}=i;if(M==="image"){let N=h?`${h}.`:"";v.append(`${N}x`,"0"),v.append(`${N}y`,"0")}else h&&v.append(h,B)}}else{if(ii(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=li,f=null,d=ai,p=i}return v&&d==="text/plain"&&(p=v,v=void 0),{action:f,method:s.toLowerCase(),encType:d,formData:v,body:p}}function qf(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}async function k0(i,o){if(i.id in o)return o[i.id];try{let s=await import(i.module);return o[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $0(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function W0(i,o,s){let f=await Promise.all(i.map(async d=>{let v=o.routes[d.route.id];if(v){let p=await k0(v,s);return p.links?p.links():[]}return[]}));return ev(f.flat(1).filter($0).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Jd(i,o,s,f,d,v){let p=(S,h)=>s[h]?S.route.id!==s[h].route.id:!0,z=(S,h)=>{var M;return s[h].pathname!==S.pathname||((M=s[h].route.path)==null?void 0:M.endsWith("*"))&&s[h].params["*"]!==S.params["*"]};return v==="assets"?o.filter((S,h)=>p(S,h)||z(S,h)):v==="data"?o.filter((S,h)=>{var B;let M=f.routes[S.route.id];if(!M||!M.hasLoader)return!1;if(p(S,h)||z(S,h))return!0;if(S.route.shouldRevalidate){let N=S.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((B=s[0])==null?void 0:B.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function F0(i,o,{includeHydrateFallback:s}={}){return P0(i.map(f=>{let d=o.routes[f.route.id];if(!d)return[];let v=[d.module];return d.clientActionModule&&(v=v.concat(d.clientActionModule)),d.clientLoaderModule&&(v=v.concat(d.clientLoaderModule)),s&&d.hydrateFallbackModule&&(v=v.concat(d.hydrateFallbackModule)),d.imports&&(v=v.concat(d.imports)),v}).flat(1))}function P0(i){return[...new Set(i)]}function I0(i){let o={},s=Object.keys(i).sort();for(let f of s)o[f]=i[f];return o}function ev(i,o){let s=new Set;return new Set(o),i.reduce((f,d)=>{let v=JSON.stringify(I0(d));return s.has(v)||(s.add(v),f.push({key:v,link:d})),f},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var tv=new Set([100,101,204,205]);function lv(i,o){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s.pathname==="/"?s.pathname="_root.data":o&&Wt(s.pathname,o)==="/"?s.pathname=`${o.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function ch(){let i=A.useContext(Ca);return qf(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function av(){let i=A.useContext(ni);return qf(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var wf=A.createContext(void 0);wf.displayName="FrameworkContext";function fh(){let i=A.useContext(wf);return qf(i,"You must render this element inside a <HydratedRouter> element"),i}function uv(i,o){let s=A.useContext(wf),[f,d]=A.useState(!1),[v,p]=A.useState(!1),{onFocus:z,onBlur:S,onMouseEnter:h,onMouseLeave:M,onTouchStart:B}=o,N=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let w=L=>{L.forEach(Z=>{p(Z.isIntersecting)})},X=new IntersectionObserver(w,{threshold:.5});return N.current&&X.observe(N.current),()=>{X.disconnect()}}},[i]),A.useEffect(()=>{if(f){let w=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(w)}}},[f]);let q=()=>{d(!0)},U=()=>{d(!1),p(!1)};return s?i!=="intent"?[v,N,{}]:[v,N,{onFocus:Uu(z,q),onBlur:Uu(S,U),onMouseEnter:Uu(h,q),onMouseLeave:Uu(M,U),onTouchStart:Uu(B,q)}]:[!1,N,{}]}function Uu(i,o){return s=>{i&&i(s),s.defaultPrevented||o(s)}}function nv({page:i,...o}){let{router:s}=ch(),f=A.useMemo(()=>Wd(s.routes,i,s.basename),[s.routes,i,s.basename]);return f?A.createElement(cv,{page:i,matches:f,...o}):null}function iv(i){let{manifest:o,routeModules:s}=fh(),[f,d]=A.useState([]);return A.useEffect(()=>{let v=!1;return W0(i,o,s).then(p=>{v||d(p)}),()=>{v=!0}},[i,o,s]),f}function cv({page:i,matches:o,...s}){let f=Kl(),{manifest:d,routeModules:v}=fh(),{basename:p}=ch(),{loaderData:z,matches:S}=av(),h=A.useMemo(()=>Jd(i,o,S,d,f,"data"),[i,o,S,d,f]),M=A.useMemo(()=>Jd(i,o,S,d,f,"assets"),[i,o,S,d,f]),B=A.useMemo(()=>{if(i===f.pathname+f.search+f.hash)return[];let U=new Set,w=!1;if(o.forEach(L=>{var W;let Z=d.routes[L.route.id];!Z||!Z.hasLoader||(!h.some(ce=>ce.route.id===L.route.id)&&L.route.id in z&&((W=v[L.route.id])!=null&&W.shouldRevalidate)||Z.hasClientLoader?w=!0:U.add(L.route.id))}),U.size===0)return[];let X=lv(i,p);return w&&U.size>0&&X.searchParams.set("_routes",o.filter(L=>U.has(L.route.id)).map(L=>L.route.id).join(",")),[X.pathname+X.search]},[p,z,f,d,h,o,i,v]),N=A.useMemo(()=>F0(M,d),[M,d]),q=iv(M);return A.createElement(A.Fragment,null,B.map(U=>A.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...s})),N.map(U=>A.createElement("link",{key:U,rel:"modulepreload",href:U,...s})),q.map(({key:U,link:w})=>A.createElement("link",{key:U,...w})))}function fv(...i){return o=>{i.forEach(s=>{typeof s=="function"?s(o):s!=null&&(s.current=o)})}}var rh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rh&&(window.__reactRouterVersion="7.6.2")}catch{}function rv({basename:i,children:o,window:s}){let f=A.useRef();f.current==null&&(f.current=$y({window:s,v5Compat:!0}));let d=f.current,[v,p]=A.useState({action:d.action,location:d.location}),z=A.useCallback(S=>{A.startTransition(()=>p(S))},[p]);return A.useLayoutEffect(()=>d.listen(z),[d,z]),A.createElement(w0,{basename:i,children:o,location:v.location,navigationType:v.action,navigator:d})}var sh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jt=A.forwardRef(function({onClick:o,discover:s="render",prefetch:f="none",relative:d,reloadDocument:v,replace:p,state:z,target:S,to:h,preventScrollReset:M,viewTransition:B,...N},q){let{basename:U}=A.useContext(Ct),w=typeof h=="string"&&sh.test(h),X,L=!1;if(typeof h=="string"&&w&&(X=h,rh))try{let xe=new URL(window.location.href),Je=h.startsWith("//")?new URL(xe.protocol+h):new URL(h),ot=Wt(Je.pathname,U);Je.origin===xe.origin&&ot!=null?h=ot+Je.search+Je.hash:L=!0}catch{_t(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Z=E0(h,{relative:d}),[W,ce,F]=uv(f,N),Oe=hv(h,{replace:p,state:z,target:S,preventScrollReset:M,relative:d,viewTransition:B});function ue(xe){o&&o(xe),xe.defaultPrevented||Oe(xe)}let re=A.createElement("a",{...N,...F,href:X||Z,onClick:L||v?o:ue,ref:fv(q,ce),target:S,"data-discover":!w&&s==="render"?"true":void 0});return W&&!w?A.createElement(A.Fragment,null,re,A.createElement(nv,{page:Z})):re});jt.displayName="Link";var sv=A.forwardRef(function({"aria-current":o="page",caseSensitive:s=!1,className:f="",end:d=!1,style:v,to:p,viewTransition:z,children:S,...h},M){let B=wu(p,{relative:h.relative}),N=Kl(),q=A.useContext(ni),{navigator:U,basename:w}=A.useContext(Ct),X=q!=null&&bv(B)&&z===!0,L=U.encodeLocation?U.encodeLocation(B).pathname:B.pathname,Z=N.pathname,W=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;s||(Z=Z.toLowerCase(),W=W?W.toLowerCase():null,L=L.toLowerCase()),W&&w&&(W=Wt(W,w)||W);const ce=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let F=Z===L||!d&&Z.startsWith(L)&&Z.charAt(ce)==="/",Oe=W!=null&&(W===L||!d&&W.startsWith(L)&&W.charAt(L.length)==="/"),ue={isActive:F,isPending:Oe,isTransitioning:X},re=F?o:void 0,xe;typeof f=="function"?xe=f(ue):xe=[f,F?"active":null,Oe?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let Je=typeof v=="function"?v(ue):v;return A.createElement(jt,{...h,"aria-current":re,className:xe,ref:M,style:Je,to:p,viewTransition:z},typeof S=="function"?S(ue):S)});sv.displayName="NavLink";var ov=A.forwardRef(({discover:i="render",fetcherKey:o,navigate:s,reloadDocument:f,replace:d,state:v,method:p=li,action:z,onSubmit:S,relative:h,preventScrollReset:M,viewTransition:B,...N},q)=>{let U=vv(),w=gv(z,{relative:h}),X=p.toLowerCase()==="get"?"get":"post",L=typeof z=="string"&&sh.test(z),Z=W=>{if(S&&S(W),W.defaultPrevented)return;W.preventDefault();let ce=W.nativeEvent.submitter,F=(ce==null?void 0:ce.getAttribute("formmethod"))||p;U(ce||W.currentTarget,{fetcherKey:o,method:F,navigate:s,replace:d,state:v,relative:h,preventScrollReset:M,viewTransition:B})};return A.createElement("form",{ref:q,method:X,action:w,onSubmit:f?S:Z,...N,"data-discover":!L&&i==="render"?"true":void 0})});ov.displayName="Form";function dv(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function oh(i){let o=A.useContext(Ca);return Re(o,dv(i)),o}function hv(i,{target:o,replace:s,state:f,preventScrollReset:d,relative:v,viewTransition:p}={}){let z=T0(),S=Kl(),h=wu(i,{relative:v});return A.useCallback(M=>{if(Z0(M,o)){M.preventDefault();let B=s!==void 0?s:Hu(S)===Hu(h);z(i,{replace:B,state:f,preventScrollReset:d,relative:v,viewTransition:p})}},[S,z,h,s,f,o,i,d,v,p])}var mv=0,yv=()=>`__${String(++mv)}__`;function vv(){let{router:i}=oh("useSubmit"),{basename:o}=A.useContext(Ct),s=U0();return A.useCallback(async(f,d={})=>{let{action:v,method:p,encType:z,formData:S,body:h}=J0(f,o);if(d.navigate===!1){let M=d.fetcherKey||yv();await i.fetch(M,s,d.action||v,{preventScrollReset:d.preventScrollReset,formData:S,body:h,formMethod:d.method||p,formEncType:d.encType||z,flushSync:d.flushSync})}else await i.navigate(d.action||v,{preventScrollReset:d.preventScrollReset,formData:S,body:h,formMethod:d.method||p,formEncType:d.encType||z,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,o,s])}function gv(i,{relative:o}={}){let{basename:s}=A.useContext(Ct),f=A.useContext(Ft);Re(f,"useFormAction must be used inside a RouteContext");let[d]=f.matches.slice(-1),v={...wu(i||".",{relative:o})},p=Kl();if(i==null){v.search=p.search;let z=new URLSearchParams(v.search),S=z.getAll("index");if(S.some(M=>M==="")){z.delete("index"),S.filter(B=>B).forEach(B=>z.append("index",B));let M=z.toString();v.search=M?`?${M}`:""}}return(!i||i===".")&&d.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(v.pathname=v.pathname==="/"?s:$t([s,v.pathname])),Hu(v)}function bv(i,o={}){let s=A.useContext(lh);Re(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:f}=oh("useViewTransitionState"),d=wu(i,{relative:o.relative});if(!s.isTransitioning)return!1;let v=Wt(s.currentLocation.pathname,f)||s.currentLocation.pathname,p=Wt(s.nextLocation.pathname,f)||s.nextLocation.pathname;return ui(d.pathname,p)!=null||ui(d.pathname,v)!=null}[...tv];const pv=()=>{const[i,o]=A.useState(!1),s=()=>{o(!i)},f=()=>{o(!1)};return m.jsx("nav",{className:"bg-gradient-to-r from-green-700 to-green-600 text-white p-4 shadow",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"font-bold text-xl",children:"EVSE"}),m.jsxs("ul",{className:`flex-col md:flex-row md:flex gap-4 ${i?"flex":"hidden"} md:!flex`,children:[m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/dashboard",onClick:f,children:"Início"})}),m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/settings",onClick:f,children:"Definições"})}),m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/electrical-network",onClick:f,children:"Rede Elétrica"})}),m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/security",onClick:f,children:"Segurança"})}),m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/connectivity",onClick:f,children:"Conectividade"})}),m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/load-balancing",onClick:f,children:"Balanceador"})}),m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/meters",onClick:f,children:"Contadores"})}),m.jsx("li",{children:m.jsx(jt,{className:"hover:underline",to:"/ocpp",onClick:f,children:"OCPP"})})]}),m.jsx("button",{className:"md:hidden text-3xl",onClick:s,children:"☰"})]})})};function Al({title:i,children:o}){return m.jsxs("div",{className:"max-w-3xl mx-auto p-5 bg-white rounded shadow",children:[m.jsx("h1",{className:"text-2xl font-bold mb-5",children:i}),o]})}function et({type:i="info",children:o}){const s="p-2 mb-2 rounded",f={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-gray-200"};return m.jsx("div",{className:`${s} ${f[i]||f.info}`,children:o})}const kd=()=>{const[i,o]=A.useState({status:"Ativo",chargers:[{id:1,status:"Ativo",current:16,power:3680}],energyConsumed:100,chargingTime:240,alerts:[],errors:[]}),[s,f]=A.useState(""),d=async()=>{try{const v=await fetch("/api/v1/dashboard");if(v.ok){const p=await v.json();o(p)}else f("Erro ao obter os dados do dashboard")}catch(v){console.error("Erro ao buscar dados do dashboard:",v),f("Erro de conexão")}};return A.useEffect(()=>{d()},[]),m.jsxs(Al,{title:"Visão Geral",children:[s&&m.jsx(et,{type:"error",children:s}),m.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[m.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[m.jsx("h3",{children:"Status do Sistema"}),m.jsx("p",{children:i.status})]}),m.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[m.jsx("h3",{children:"Consumo de Energia"}),m.jsxs("p",{children:[i.energyConsumed," kWh"]})]}),m.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[m.jsx("h3",{children:"Tempo de Carregamento"}),m.jsxs("p",{children:[i.chargingTime," minutos"]})]})]}),m.jsxs("div",{className:"mb-6",children:[m.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Alertas"}),m.jsx("ul",{children:i.alerts.map((v,p)=>m.jsx("li",{className:"p-2 bg-red-500 text-white rounded mb-2",children:m.jsxs("span",{children:["⚠️ ",v]})},p))})]}),m.jsxs("div",{className:"mb-6",children:[m.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Erros da EVSE"}),m.jsx("ul",{children:i.errors.length>0?i.errors.map((v,p)=>m.jsx("li",{className:"p-2 bg-orange-500 text-white rounded mb-2",children:m.jsxs("span",{children:["❗ ",v]})},p)):m.jsx("li",{className:"p-2 bg-green-500 text-white rounded mb-2",children:m.jsx("span",{children:"✅ Nenhum erro ativo"})})})]}),m.jsxs("div",{children:[m.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Carregadores"}),m.jsxs("table",{className:"min-w-full border border-gray-300 text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{className:"border-b p-2",children:"ID"}),m.jsx("th",{className:"border-b p-2",children:"Status"}),m.jsx("th",{className:"border-b p-2",children:"Corrente (A)"}),m.jsx("th",{className:"border-b p-2",children:"Potência (W)"})]})}),m.jsx("tbody",{children:i.chargers.map(v=>m.jsxs("tr",{children:[m.jsx("td",{className:"border-b p-2",children:v.id}),m.jsx("td",{className:"border-b p-2",children:v.status}),m.jsx("td",{className:"border-b p-2",children:v.current}),m.jsx("td",{className:"border-b p-2",children:v.power})]},v.id))})]})]})]})},Sv=()=>{const[i,o]=A.useState(32),[s,f]=A.useState(32),[d,v]=A.useState(0),[p,z]=A.useState(0),[S,h]=A.useState(0),[M,B]=A.useState(60),[N,q]=A.useState(""),[U,w]=A.useState(""),X=async()=>{const ue=await fetch("/api/v1/config/settings");if(ue.ok){const re=await ue.json();o(re.maxCurrentLimit),f(re.currentLimit),v(re.powerLimit),z(re.energyLimit),h(re.chargingTimeLimit),B(re.temperatureLimit)}else w("Erro ao obter as configurações")};A.useEffect(()=>{X()},[]);const L=ue=>{const re=parseInt(ue.target.value,10);f(re>i?i:re)},Z=ue=>v(parseInt(ue.target.value,10)),W=ue=>z(parseInt(ue.target.value,10)),ce=ue=>h(parseInt(ue.target.value,10)),F=ue=>B(parseInt(ue.target.value,10)),Oe=async ue=>{ue.preventDefault();const re={currentLimit:s,powerLimit:d,energyLimit:p,chargingTimeLimit:S,temperatureLimit:M};try{(await fetch("/api/v1/config/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(re)})).ok?q("Alterações guardadas com sucesso!"):w("Erro ao guardar alterações.")}catch{w("Erro ao guardar alterações.")}};return m.jsxs(Al,{title:"Definições de Energia",children:[N&&m.jsx(et,{type:"success",children:N}),U&&m.jsx(et,{type:"error",children:U}),m.jsxs("form",{className:"flex flex-col gap-4",onSubmit:Oe,children:[m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"currentLimit",children:"Limite de Corrente (A):"}),m.jsx("input",{id:"currentLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:s,onChange:L,max:i})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"powerLimit",children:"Limite de Potência (W):"}),m.jsx("input",{id:"powerLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:d,onChange:Z})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"energyLimit",children:"Limite de Energia (kWh):"}),m.jsx("input",{id:"energyLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:p,onChange:W})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"chargingTimeLimit",children:"Tempo Máximo de Carregamento (min):"}),m.jsx("input",{id:"chargingTimeLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:S,onChange:ce})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"temperatureLimit",children:"Temperatura Máxima (°C):"}),m.jsx("input",{id:"temperatureLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:M,onChange:F})]}),m.jsx("div",{children:m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})},dh="";let xv="";function hh(i=!0){const o={Authorization:`Basic ${xv}`};return i&&(o["Content-Type"]="application/json"),o}async function Tl(i){const o=await fetch(`${dh}${i}`,{headers:hh(!1)});if(!o.ok)throw new Error(`GET ${i} failed`);return await o.json()}async function Vl(i,o){const s=await fetch(`${dh}${i}`,{method:"POST",headers:hh(),body:JSON.stringify(o)});if(!s.ok)throw new Error(`POST ${i} failed`);return await s.text()}const Ev=()=>{const[i,o]=A.useState({RFID:!1}),[s,f]=A.useState([{username:"admin"}]),[d,v]=A.useState(""),[p,z]=A.useState(""),[S,h]=A.useState(""),M=w=>{o({...i,[w]:!i[w]})},B=async()=>{try{const w=await Tl("/api/v1/config/auth-methods");o(w)}catch(w){console.error("Erro ao buscar configurações de autenticação:",w),h("Erro ao buscar configurações de autenticação.")}},N=async w=>{w.preventDefault();try{await Vl("/api/v1/config/auth-methods",i),z("Configurações de Autorização salvas com sucesso!")}catch(X){console.error("Erro ao salvar configurações:",X),h("Erro ao salvar configurações.")}},q=()=>{d.trim()!==""&&(f([...s,{username:d}]),v(""))},U=w=>{f(s.filter(X=>X.username!==w))};return A.useEffect(()=>{B()},[]),m.jsxs(Al,{title:"Segurança",children:[p&&m.jsx(et,{type:"success",children:p}),S&&m.jsx(et,{type:"error",children:S}),m.jsxs("div",{className:"mb-5",children:[m.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Métodos de Autorização"}),m.jsxs("form",{className:"flex flex-col gap-2",onSubmit:N,children:[m.jsxs("label",{className:"flex items-center gap-2",children:["RFID",m.jsx("input",{type:"checkbox",checked:i.RFID,onChange:()=>M("RFID")})]}),m.jsx("button",{type:"submit",className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700 mt-4",children:"Salvar Configurações"})]})]}),m.jsxs("div",{className:"overflow-x-auto mb-5",children:[m.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Utilizadores"}),m.jsxs("table",{className:"min-w-full border border-gray-300 text-left table-auto",children:[m.jsx("thead",{className:"bg-gray-100",children:m.jsxs("tr",{children:[m.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Nome de Usuário"}),m.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Ações"})]})}),m.jsx("tbody",{children:s.map((w,X)=>m.jsxs("tr",{className:"hover:bg-gray-50",children:[m.jsx("td",{className:"border-b p-2 text-sm",children:w.username}),m.jsx("td",{className:"border-b p-2 text-sm text-red-600",children:m.jsx("button",{onClick:()=>U(w.username),children:"Remover"})})]},X))})]}),m.jsxs("div",{className:"mt-4",children:[m.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full mb-2",value:d,onChange:w=>v(w.target.value),placeholder:"Digite o nome de usuário"}),m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700 w-full",onClick:q,children:"Adicionar Novo Usuário"})]})]})]})},Tv=()=>{const[i,o]=A.useState(!0),[s,f]=A.useState({enabled:!1,ssid:"",password:""}),[d,v]=A.useState(""),[p,z]=A.useState({enabled:!1,host:"",port:1883,username:"",password:"",topic:""}),[S,h]=A.useState("");A.useEffect(()=>{(async()=>{try{const q=await Tl("/api/v1/config/wifi");f(q)}catch(q){console.error("Erro ao carregar configurações Wi-Fi:",q)}try{const q=await Tl("/api/v1/config/mqtt");z(q)}catch(q){console.error("Erro ao carregar configurações MQTT:",q)}o(!1)})()},[]);const M=async()=>{try{await Vl("/api/v1/config/wifi",s),v("Alterações guardadas com sucesso!")}catch{v("Erro ao guardar alterações.")}},B=async()=>{try{await Vl("/api/v1/config/mqtt",p),h("Alterações guardadas com sucesso!")}catch{h("Erro ao guardar alterações.")}};return m.jsx(Al,{title:"Conectividade",children:i?m.jsx("p",{children:"A carregar..."}):m.jsxs(m.Fragment,{children:[m.jsx("h2",{className:"text-xl font-semibold mt-4",children:"Configuração Wi-Fi"}),d&&m.jsx(et,{type:d.startsWith("Erro")?"error":"success",children:d}),m.jsxs("form",{className:"flex flex-col gap-4",onSubmit:N=>{N.preventDefault(),M()},children:[m.jsx("div",{children:m.jsxs("label",{className:"flex items-center gap-2",children:["Ativar WIFI",m.jsx("input",{type:"checkbox",checked:s.enabled,onChange:N=>f({...s,enabled:N.target.checked})})]})}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"wifi-ssid",children:"SSID:"}),m.jsx("input",{id:"wifi-ssid",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${s.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:s.ssid,onChange:N=>f({...s,ssid:N.target.value}),disabled:!s.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"wifi-password",children:"Palavra-passe:"}),m.jsx("input",{id:"wifi-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${s.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:s.password,onChange:N=>f({...s,password:N.target.value}),disabled:!s.enabled})]}),m.jsx("div",{children:m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]}),m.jsx("h2",{className:"text-xl font-semibold mt-6",children:"Configuração MQTT"}),S&&m.jsx(et,{type:S.startsWith("Erro")?"error":"success",children:S}),m.jsxs("form",{className:"flex flex-col gap-4",onSubmit:N=>{N.preventDefault(),B()},children:[m.jsx("div",{children:m.jsxs("label",{className:"flex items-center gap-2",children:["Ativar MQTT",m.jsx("input",{type:"checkbox",checked:p.enabled,onChange:N=>z({...p,enabled:N.target.checked})})]})}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"mqtt-host",children:"Host:"}),m.jsx("input",{id:"mqtt-host",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.host,onChange:N=>z({...p,host:N.target.value}),disabled:!p.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"mqtt-port",children:"Porta:"}),m.jsx("input",{id:"mqtt-port",type:"number",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.port,onChange:N=>z({...p,port:parseInt(N.target.value||0,10)||1883}),disabled:!p.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"mqtt-username",children:"Utilizador:"}),m.jsx("input",{id:"mqtt-username",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.username,onChange:N=>z({...p,username:N.target.value}),disabled:!p.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"mqtt-password",children:"Palavra-passe:"}),m.jsx("input",{id:"mqtt-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.password,onChange:N=>z({...p,password:N.target.value}),disabled:!p.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"mqtt-topic",children:"Tópico:"}),m.jsx("input",{id:"mqtt-topic",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.topic,onChange:N=>z({...p,topic:N.target.value}),disabled:!p.enabled})]}),m.jsx("div",{children:m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})},Av=()=>{const[i,o]=A.useState(null),[s,f]=A.useState(!0),[d,v]=A.useState({enabled:!1,url:"",chargeBoxId:"",certificate:"",privateKey:""}),[p,z]=A.useState("");A.useEffect(()=>{(async()=>{try{const M=await Tl("/api/v1/ocpp");o(M)}catch{}try{const M=await Tl("/api/v1/config/ocpp");v(M)}catch{}f(!1)})()},[]);const S=async()=>{z("");try{await Vl("/api/v1/config/ocpp",d),z("Alterações guardadas com sucesso!")}catch{z("Erro ao guardar alterações.")}};return m.jsx(Al,{title:"OCPP",children:s?m.jsx("p",{children:"A carregar..."}):m.jsxs(m.Fragment,{children:[p&&m.jsx(et,{type:p.startsWith("Erro")?"error":"success",children:p}),m.jsxs("form",{className:"flex flex-col gap-4",onSubmit:h=>{h.preventDefault(),S()},children:[m.jsx("div",{children:m.jsxs("label",{className:"flex items-center gap-2",children:["Ativar OCPP",m.jsx("input",{type:"checkbox",checked:d.enabled,onChange:h=>v({...d,enabled:h.target.checked})})]})}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"ocpp-url",children:"Servidor:"}),m.jsx("input",{id:"ocpp-url",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.url,onChange:h=>v({...d,url:h.target.value}),disabled:!d.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"ocpp-id",children:"Charge Box ID:"}),m.jsx("input",{id:"ocpp-id",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.chargeBoxId,onChange:h=>v({...d,chargeBoxId:h.target.value}),disabled:!d.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"ocpp-cert",children:"Certificado:"}),m.jsx("textarea",{id:"ocpp-cert",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.certificate,onChange:h=>v({...d,certificate:h.target.value}),disabled:!d.enabled})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"ocpp-key",children:"Chave Privada:"}),m.jsx("textarea",{id:"ocpp-key",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.privateKey,onChange:h=>v({...d,privateKey:h.target.value}),disabled:!d.enabled})]}),m.jsx("div",{children:m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})};function Rv(){const[i,o]=A.useState(!0),[s,f]=A.useState(""),[d,v]=A.useState(""),[p,z]=A.useState({earthFault:!1,rcm:!1});A.useEffect(()=>{(async()=>{try{const M=await Tl("/api/v1/config/settings");M.security&&z(M.security)}catch(M){console.error("Erro ao carregar configurações:",M)}finally{o(!1)}})()},[]);const S=async()=>{f(""),v("");try{await Vl("/api/v1/config/settings",{security:p}),f("Alterações guardadas com sucesso!")}catch(h){console.error("Erro ao salvar configuração:",h),v("Erro ao guardar alterações.")}};return m.jsxs(Al,{title:"Segurança Elétrica",children:[s&&m.jsx(et,{type:"success",children:s}),d&&m.jsx(et,{type:"error",children:d}),i?m.jsx("p",{children:"A carregar..."}):m.jsxs("form",{className:"flex flex-col gap-4",onSubmit:h=>{h.preventDefault(),S()},children:[m.jsx("h2",{className:"text-xl font-semibold",children:"Proteção de Segurança Elétrica"}),m.jsx("div",{children:m.jsxs("label",{className:"flex items-center gap-2",children:["Detecção de Falha de Aterramento",m.jsx("input",{type:"checkbox",checked:p.earthFault,onChange:h=>z({...p,earthFault:h.target.checked})})]})}),m.jsx("div",{children:m.jsxs("label",{className:"flex items-center gap-2",children:["Proteção RCM",m.jsx("input",{type:"checkbox",checked:p.rcm,onChange:h=>z({...p,rcm:h.target.checked})})]})}),m.jsx("div",{children:m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}function Ov(){const[i,o]=A.useState(!0),[s,f]=A.useState(""),[d,v]=A.useState(""),[p,z]=A.useState("NENHUM"),[S,h]=A.useState("NENHUM");A.useEffect(()=>{(async()=>{try{const U=await Tl("/api/v1/config/meters");U.gridmeter&&z(U.gridmeter),U.evsemeter&&h(U.evsemeter)}catch(U){console.error("Erro ao carregar configurações:",U)}finally{o(!1)}})()},[]);const M=async()=>{f(""),v("");try{await Vl("/api/v1/config/meters",{gridmeter:p,evsemeter:S}),f("Alterações guardadas com sucesso!")}catch(q){console.error("Erro ao salvar configuração:",q),v("Erro ao guardar alterações.")}},B=q=>{z(q.target.value)},N=q=>{h(q.target.value)};return m.jsxs(Al,{title:"Configuração de Contadores",children:[s&&m.jsx(et,{type:"success",children:s}),d&&m.jsx(et,{type:"error",children:d}),i?m.jsx("p",{children:"A carregar..."}):m.jsxs("form",{className:"flex flex-col gap-4",onSubmit:q=>{q.preventDefault(),M()},children:[m.jsx("h2",{className:"text-xl font-semibold",children:"Contador de Rede"}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",children:"Modelo de Contador de Rede:"}),m.jsxs("select",{value:p,onChange:B,className:"border border-gray-300 rounded px-3 py-2 w-full",children:[m.jsx("option",{value:"NENHUM",children:"NENHUM"}),m.jsx("option",{value:"ORNO-513",children:"ORNO-513"}),m.jsx("option",{value:"ORNO-516",children:"ORNO-516"}),m.jsx("option",{value:"MONO-ZIGBEE",children:"MONO-ZIGBEE"}),m.jsx("option",{value:"TRIF-ZIGBEE",children:"TRIF-ZIGBEE"})]})]}),m.jsx("h2",{className:"text-xl font-semibold",children:"Contador EVSE"}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",children:"Modelo de Contador EVSE:"}),m.jsxs("select",{value:S,onChange:N,className:"border border-gray-300 rounded px-3 py-2 w-full",children:[m.jsx("option",{value:"NENHUM",children:"NENHUM"}),m.jsx("option",{value:"IC ADE",children:"IC ADE"}),m.jsx("option",{value:"ORNO-513",children:"ORNO-513"}),m.jsx("option",{value:"ORNO-516",children:"ORNO-516"})]})]}),m.jsx("div",{children:m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}function Nv(){const[i,o]=A.useState(!0),[s,f]=A.useState(""),[d,v]=A.useState(""),[p,z]=A.useState({loadBalancingEnabled:!1,loadBalancingCurrentLimit:0});A.useEffect(()=>{(async()=>{try{const N=await Tl("/api/v1/config/loadbalancing");N&&z({loadBalancingEnabled:N.loadBalancingEnabled,loadBalancingCurrentLimit:N.loadBalancingCurrentLimit})}catch(N){console.error("Erro ao carregar configurações:",N),v("Erro ao carregar configurações")}finally{o(!1)}})()},[]);const S=async()=>{f(""),v("");try{const B={loadBalancingEnabled:p.loadBalancingEnabled,loadBalancingCurrentLimit:p.loadBalancingCurrentLimit};await Vl("/api/v1/config/loadbalancing",B),f("Alterações guardadas com sucesso!")}catch(B){console.error("Erro ao salvar configuração:",B),v("Erro ao guardar alterações.")}},h=B=>{z({...p,loadBalancingCurrentLimit:parseInt(B.target.value,10)||0})},M=B=>{z({...p,loadBalancingEnabled:B.target.checked})};return m.jsxs(Al,{title:"Balanceamento de Carga",children:[s&&m.jsx(et,{type:"success",children:s}),d&&m.jsx(et,{type:"error",children:d}),i?m.jsx("p",{children:"A carregar..."}):m.jsxs("form",{className:"flex flex-col gap-4",onSubmit:B=>{B.preventDefault(),S()},children:[m.jsx("h2",{className:"text-xl font-semibold",children:"Balanceamento de Carga"}),m.jsx("div",{children:m.jsxs("label",{className:"flex items-center gap-2",children:["Habilitar Balanceamento de Carga",m.jsx("input",{type:"checkbox",checked:p.loadBalancingEnabled,onChange:M})]})}),m.jsxs("div",{children:[m.jsx("label",{className:"block mb-1",htmlFor:"lb-current",children:"Limite de Corrente (A):"}),m.jsx("input",{id:"lb-current",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:p.loadBalancingCurrentLimit,onChange:h})]}),m.jsx("div",{children:m.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}const Mv=()=>m.jsxs(rv,{children:[m.jsx(pv,{}),"  ",m.jsxs(L0,{children:[m.jsx(Dt,{path:"/",element:m.jsx(kd,{})})," ",m.jsx(Dt,{path:"/dashboard",element:m.jsx(kd,{})}),m.jsx(Dt,{path:"/settings",element:m.jsx(Sv,{})}),m.jsx(Dt,{path:"/security",element:m.jsx(Ev,{})}),m.jsx(Dt,{path:"/connectivity",element:m.jsx(Tv,{})}),m.jsx(Dt,{path:"/electrical-network",element:m.jsx(Rv,{})}),m.jsx(Dt,{path:"/load-balancing",element:m.jsx(Nv,{})}),m.jsx(Dt,{path:"/meters",element:m.jsx(Ov,{})}),m.jsx(Dt,{path:"/ocpp",element:m.jsx(Av,{})})]})]});Jy.createRoot(document.getElementById("root")).render(m.jsx(Ly.StrictMode,{children:m.jsx(Mv,{})}));
