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

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