mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
12 lines
286 KiB
JavaScript
12 lines
286 KiB
JavaScript
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function c(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=c(o);fetch(o.href,d)}})();var Vc={exports:{}},qa={};var Ad;function Ip(){if(Ad)return qa;Ad=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,d){var m=null;if(d!==void 0&&(m=""+d),o.key!==void 0&&(m=""+o.key),"key"in o){d={};for(var b in o)b!=="key"&&(d[b]=o[b])}else d=o;return o=d.ref,{$$typeof:s,type:r,key:m,ref:o!==void 0?o:null,props:d}}return qa.Fragment=i,qa.jsx=c,qa.jsxs=c,qa}var Rd;function t0(){return Rd||(Rd=1,Vc.exports=Ip()),Vc.exports}var x=t0(),Zc={exports:{}},F={};var Nd;function e0(){if(Nd)return F;Nd=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),j=Symbol.iterator;function w(S){return S===null||typeof S!="object"?null:(S=j&&S[j]||S["@@iterator"],typeof S=="function"?S:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,G={};function X(S,B,L){this.props=S,this.context=B,this.refs=G,this.updater=L||H}X.prototype.isReactComponent={},X.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,B,"setState")},X.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function V(){}V.prototype=X.prototype;function J(S,B,L){this.props=S,this.context=B,this.refs=G,this.updater=L||H}var dt=J.prototype=new V;dt.constructor=J,Y(dt,X.prototype),dt.isPureReactComponent=!0;var Tt=Array.isArray;function qt(){}var tt={H:null,A:null,T:null,S:null},Lt=Object.prototype.hasOwnProperty;function Nt(S,B,L){var Z=L.ref;return{$$typeof:s,type:S,key:B,ref:Z!==void 0?Z:null,props:L}}function ie(S,B){return Nt(S.type,B,S.props)}function ue(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function Ft(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(L){return B[L]})}var jl=/\/+/g;function Ge(S,B){return typeof S=="object"&&S!==null&&S.key!=null?Ft(""+S.key):B.toString(36)}function Ce(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(qt,qt):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function M(S,B,L,Z,P){var lt=typeof S;(lt==="undefined"||lt==="boolean")&&(S=null);var ht=!1;if(S===null)ht=!0;else switch(lt){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(S.$$typeof){case s:case i:ht=!0;break;case C:return ht=S._init,M(ht(S._payload),B,L,Z,P)}}if(ht)return P=P(S),ht=Z===""?"."+Ge(S,0):Z,Tt(P)?(L="",ht!=null&&(L=ht.replace(jl,"$&/")+"/"),M(P,B,L,"",function(Zn){return Zn})):P!=null&&(ue(P)&&(P=ie(P,L+(P.key==null||S&&S.key===P.key?"":(""+P.key).replace(jl,"$&/")+"/")+ht)),B.push(P)),1;ht=0;var $t=Z===""?".":Z+":";if(Tt(S))for(var zt=0;zt<S.length;zt++)Z=S[zt],lt=$t+Ge(Z,zt),ht+=M(Z,B,L,lt,P);else if(zt=w(S),typeof zt=="function")for(S=zt.call(S),zt=0;!(Z=S.next()).done;)Z=Z.value,lt=$t+Ge(Z,zt++),ht+=M(Z,B,L,lt,P);else if(lt==="object"){if(typeof S.then=="function")return M(Ce(S),B,L,Z,P);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ht}function q(S,B,L){if(S==null)return S;var Z=[],P=0;return M(S,Z,"","",function(lt){return B.call(L,lt,P++)}),Z}function W(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(L){(S._status===0||S._status===-1)&&(S._status=1,S._result=L)},function(L){(S._status===0||S._status===-1)&&(S._status=2,S._result=L)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var pt=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},St={map:q,forEach:function(S,B,L){q(S,function(){B.apply(this,arguments)},L)},count:function(S){var B=0;return q(S,function(){B++}),B},toArray:function(S){return q(S,function(B){return B})||[]},only:function(S){if(!ue(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return F.Activity=N,F.Children=St,F.Component=X,F.Fragment=c,F.Profiler=o,F.PureComponent=J,F.StrictMode=r,F.Suspense=y,F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=tt,F.__COMPILER_RUNTIME={__proto__:null,c:function(S){return tt.H.useMemoCache(S)}},F.cache=function(S){return function(){return S.apply(null,arguments)}},F.cacheSignal=function(){return null},F.cloneElement=function(S,B,L){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=Y({},S.props),P=S.key;if(B!=null)for(lt in B.key!==void 0&&(P=""+B.key),B)!Lt.call(B,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&B.ref===void 0||(Z[lt]=B[lt]);var lt=arguments.length-2;if(lt===1)Z.children=L;else if(1<lt){for(var ht=Array(lt),$t=0;$t<lt;$t++)ht[$t]=arguments[$t+2];Z.children=ht}return Nt(S.type,P,Z)},F.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},F.createElement=function(S,B,L){var Z,P={},lt=null;if(B!=null)for(Z in B.key!==void 0&&(lt=""+B.key),B)Lt.call(B,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(P[Z]=B[Z]);var ht=arguments.length-2;if(ht===1)P.children=L;else if(1<ht){for(var $t=Array(ht),zt=0;zt<ht;zt++)$t[zt]=arguments[zt+2];P.children=$t}if(S&&S.defaultProps)for(Z in ht=S.defaultProps,ht)P[Z]===void 0&&(P[Z]=ht[Z]);return Nt(S,lt,P)},F.createRef=function(){return{current:null}},F.forwardRef=function(S){return{$$typeof:b,render:S}},F.isValidElement=ue,F.lazy=function(S){return{$$typeof:C,_payload:{_status:-1,_result:S},_init:W}},F.memo=function(S,B){return{$$typeof:v,type:S,compare:B===void 0?null:B}},F.startTransition=function(S){var B=tt.T,L={};tt.T=L;try{var Z=S(),P=tt.S;P!==null&&P(L,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(qt,pt)}catch(lt){pt(lt)}finally{B!==null&&L.types!==null&&(B.types=L.types),tt.T=B}},F.unstable_useCacheRefresh=function(){return tt.H.useCacheRefresh()},F.use=function(S){return tt.H.use(S)},F.useActionState=function(S,B,L){return tt.H.useActionState(S,B,L)},F.useCallback=function(S,B){return tt.H.useCallback(S,B)},F.useContext=function(S){return tt.H.useContext(S)},F.useDebugValue=function(){},F.useDeferredValue=function(S,B){return tt.H.useDeferredValue(S,B)},F.useEffect=function(S,B){return tt.H.useEffect(S,B)},F.useEffectEvent=function(S){return tt.H.useEffectEvent(S)},F.useId=function(){return tt.H.useId()},F.useImperativeHandle=function(S,B,L){return tt.H.useImperativeHandle(S,B,L)},F.useInsertionEffect=function(S,B){return tt.H.useInsertionEffect(S,B)},F.useLayoutEffect=function(S,B){return tt.H.useLayoutEffect(S,B)},F.useMemo=function(S,B){return tt.H.useMemo(S,B)},F.useOptimistic=function(S,B){return tt.H.useOptimistic(S,B)},F.useReducer=function(S,B,L){return tt.H.useReducer(S,B,L)},F.useRef=function(S){return tt.H.useRef(S)},F.useState=function(S){return tt.H.useState(S)},F.useSyncExternalStore=function(S,B,L){return tt.H.useSyncExternalStore(S,B,L)},F.useTransition=function(){return tt.H.useTransition()},F.version="19.2.0",F}var Od;function fr(){return Od||(Od=1,Zc.exports=e0()),Zc.exports}var _=fr(),Kc={exports:{}},La={},kc={exports:{}},Jc={};var Cd;function l0(){return Cd||(Cd=1,(function(s){function i(M,q){var W=M.length;M.push(q);t:for(;0<W;){var pt=W-1>>>1,St=M[pt];if(0<o(St,q))M[pt]=q,M[W]=St,W=pt;else break t}}function c(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var q=M[0],W=M.pop();if(W!==q){M[0]=W;t:for(var pt=0,St=M.length,S=St>>>1;pt<S;){var B=2*(pt+1)-1,L=M[B],Z=B+1,P=M[Z];if(0>o(L,W))Z<St&&0>o(P,L)?(M[pt]=P,M[Z]=W,pt=Z):(M[pt]=L,M[B]=W,pt=B);else if(Z<St&&0>o(P,W))M[pt]=P,M[Z]=W,pt=Z;else break t}}return q}function o(M,q){var W=M.sortIndex-q.sortIndex;return W!==0?W:M.id-q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,b=m.now();s.unstable_now=function(){return m.now()-b}}var y=[],v=[],C=1,N=null,j=3,w=!1,H=!1,Y=!1,G=!1,X=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function dt(M){for(var q=c(v);q!==null;){if(q.callback===null)r(v);else if(q.startTime<=M)r(v),q.sortIndex=q.expirationTime,i(y,q);else break;q=c(v)}}function Tt(M){if(Y=!1,dt(M),!H)if(c(y)!==null)H=!0,qt||(qt=!0,Ft());else{var q=c(v);q!==null&&Ce(Tt,q.startTime-M)}}var qt=!1,tt=-1,Lt=5,Nt=-1;function ie(){return G?!0:!(s.unstable_now()-Nt<Lt)}function ue(){if(G=!1,qt){var M=s.unstable_now();Nt=M;var q=!0;try{t:{H=!1,Y&&(Y=!1,V(tt),tt=-1),w=!0;var W=j;try{e:{for(dt(M),N=c(y);N!==null&&!(N.expirationTime>M&&ie());){var pt=N.callback;if(typeof pt=="function"){N.callback=null,j=N.priorityLevel;var St=pt(N.expirationTime<=M);if(M=s.unstable_now(),typeof St=="function"){N.callback=St,dt(M),q=!0;break e}N===c(y)&&r(y),dt(M)}else r(y);N=c(y)}if(N!==null)q=!0;else{var S=c(v);S!==null&&Ce(Tt,S.startTime-M),q=!1}}break t}finally{N=null,j=W,w=!1}q=void 0}}finally{q?Ft():qt=!1}}}var Ft;if(typeof J=="function")Ft=function(){J(ue)};else if(typeof MessageChannel<"u"){var jl=new MessageChannel,Ge=jl.port2;jl.port1.onmessage=ue,Ft=function(){Ge.postMessage(null)}}else Ft=function(){X(ue,0)};function Ce(M,q){tt=X(function(){M(s.unstable_now())},q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Lt=0<M?Math.floor(1e3/M):5},s.unstable_getCurrentPriorityLevel=function(){return j},s.unstable_next=function(M){switch(j){case 1:case 2:case 3:var q=3;break;default:q=j}var W=j;j=q;try{return M()}finally{j=W}},s.unstable_requestPaint=function(){G=!0},s.unstable_runWithPriority=function(M,q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var W=j;j=M;try{return q()}finally{j=W}},s.unstable_scheduleCallback=function(M,q,W){var pt=s.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pt+W:pt):W=pt,M){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=W+St,M={id:C++,callback:q,priorityLevel:M,startTime:W,expirationTime:St,sortIndex:-1},W>pt?(M.sortIndex=W,i(v,M),c(y)===null&&M===c(v)&&(Y?(V(tt),tt=-1):Y=!0,Ce(Tt,W-pt))):(M.sortIndex=St,i(y,M),H||w||(H=!0,qt||(qt=!0,Ft()))),M},s.unstable_shouldYield=ie,s.unstable_wrapCallback=function(M){var q=j;return function(){var W=j;j=q;try{return M.apply(this,arguments)}finally{j=W}}}})(Jc)),Jc}var zd;function n0(){return zd||(zd=1,kc.exports=l0()),kc.exports}var $c={exports:{}},Jt={};var Md;function a0(){if(Md)return Jt;Md=1;var s=fr();function i(y){var v="https://react.dev/errors/"+y;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)v+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+y+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(y,v,C){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:N==null?null:""+N,children:y,containerInfo:v,implementation:C}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(y,v){if(y==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Jt.createPortal=function(y,v){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return d(y,v,null,C)},Jt.flushSync=function(y){var v=m.T,C=r.p;try{if(m.T=null,r.p=2,y)return y()}finally{m.T=v,r.p=C,r.d.f()}},Jt.preconnect=function(y,v){typeof y=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(y,v))},Jt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},Jt.preinit=function(y,v){if(typeof y=="string"&&v&&typeof v.as=="string"){var C=v.as,N=b(C,v.crossOrigin),j=typeof v.integrity=="string"?v.integrity:void 0,w=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;C==="style"?r.d.S(y,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:N,integrity:j,fetchPriority:w}):C==="script"&&r.d.X(y,{crossOrigin:N,integrity:j,fetchPriority:w,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Jt.preinitModule=function(y,v){if(typeof y=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var C=b(v.as,v.crossOrigin);r.d.M(y,{crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(y)},Jt.preload=function(y,v){if(typeof y=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var C=v.as,N=b(C,v.crossOrigin);r.d.L(y,C,{crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Jt.preloadModule=function(y,v){if(typeof y=="string")if(v){var C=b(v.as,v.crossOrigin);r.d.m(y,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(y)},Jt.requestFormReset=function(y){r.d.r(y)},Jt.unstable_batchedUpdates=function(y,v){return y(v)},Jt.useFormState=function(y,v,C){return m.H.useFormState(y,v,C)},Jt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Jt.version="19.2.0",Jt}var Dd;function i0(){if(Dd)return $c.exports;Dd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),$c.exports=a0(),$c.exports}var Ud;function u0(){if(Ud)return La;Ud=1;var s=n0(),i=fr(),c=i0();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function b(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(r(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return y(a),t;if(u===n)return y(a),e;u=u.sibling}throw Error(r(188))}if(l.return!==n.return)l=a,n=u;else{for(var f=!1,h=a.child;h;){if(h===l){f=!0,l=a,n=u;break}if(h===n){f=!0,n=a,l=u;break}h=h.sibling}if(!f){for(h=u.child;h;){if(h===l){f=!0,l=u,n=a;break}if(h===n){f=!0,n=u,l=a;break}h=h.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function C(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=C(t),e!==null)return e;t=t.sibling}return null}var N=Object.assign,j=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),J=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),Tt=Symbol.for("react.suspense"),qt=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),Nt=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function Ft(t){return t===null||typeof t!="object"?null:(t=ue&&t[ue]||t["@@iterator"],typeof t=="function"?t:null)}var jl=Symbol.for("react.client.reference");function Ge(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===jl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case X:return"Profiler";case G:return"StrictMode";case Tt:return"Suspense";case qt:return"SuspenseList";case Nt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case H:return"Portal";case J:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case dt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case tt:return e=t.displayName||null,e!==null?e:Ge(t.type)||"Memo";case Lt:e=t._payload,t=t._init;try{return Ge(t(e))}catch{}}return null}var Ce=Array.isArray,M=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},pt=[],St=-1;function S(t){return{current:t}}function B(t){0>St||(t.current=pt[St],pt[St]=null,St--)}function L(t,e){St++,pt[St]=t.current,t.current=e}var Z=S(null),P=S(null),lt=S(null),ht=S(null);function $t(t,e){switch(L(lt,e),L(P,t),L(Z,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Jh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Jh(e),t=$h(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(Z),L(Z,t)}function zt(){B(Z),B(P),B(lt)}function Zn(t){t.memoizedState!==null&&L(ht,t);var e=Z.current,l=$h(e,t.type);e!==l&&(L(P,t),L(Z,l))}function ka(t){P.current===t&&(B(Z),B(P)),ht.current===t&&(B(ht),wa._currentValue=W)}var Ru,Er;function Hl(t){if(Ru===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ru=e&&e[1]||"",Er=-1<l.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+Ru+t+Er}var Nu=!1;function Ou(t,e){if(!t||Nu)return"";Nu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(O){var R=O}Reflect.construct(t,[],U)}else{try{U.call()}catch(O){R=O}t.call(U.prototype)}}else{try{throw Error()}catch(O){R=O}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(O){if(O&&R&&typeof O.stack=="string")return[O.stack,R.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),f=u[0],h=u[1];if(f&&h){var p=f.split(`
|
|
`),A=h.split(`
|
|
`);for(a=n=0;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;for(;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;if(n===p.length||a===A.length)for(n=p.length-1,a=A.length-1;1<=n&&0<=a&&p[n]!==A[a];)a--;for(;1<=n&&0<=a;n--,a--)if(p[n]!==A[a]){if(n!==1||a!==1)do if(n--,a--,0>a||p[n]!==A[a]){var z=`
|
|
`+p[n].replace(" at new "," at ");return t.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",t.displayName)),z}while(1<=n&&0<=a);break}}}finally{Nu=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Hl(l):""}function zm(t,e){switch(t.tag){case 26:case 27:case 5:return Hl(t.type);case 16:return Hl("Lazy");case 13:return t.child!==e&&e!==null?Hl("Suspense Fallback"):Hl("Suspense");case 19:return Hl("SuspenseList");case 0:case 15:return Ou(t.type,!1);case 11:return Ou(t.type.render,!1);case 1:return Ou(t.type,!0);case 31:return Hl("Activity");default:return""}}function _r(t){try{var e="",l=null;do e+=zm(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var Cu=Object.prototype.hasOwnProperty,zu=s.unstable_scheduleCallback,Mu=s.unstable_cancelCallback,Mm=s.unstable_shouldYield,Dm=s.unstable_requestPaint,se=s.unstable_now,Um=s.unstable_getCurrentPriorityLevel,Tr=s.unstable_ImmediatePriority,Ar=s.unstable_UserBlockingPriority,Ja=s.unstable_NormalPriority,wm=s.unstable_LowPriority,Rr=s.unstable_IdlePriority,Bm=s.log,jm=s.unstable_setDisableYieldValue,Kn=null,ce=null;function fl(t){if(typeof Bm=="function"&&jm(t),ce&&typeof ce.setStrictMode=="function")try{ce.setStrictMode(Kn,t)}catch{}}var re=Math.clz32?Math.clz32:Lm,Hm=Math.log,qm=Math.LN2;function Lm(t){return t>>>=0,t===0?32:31-(Hm(t)/qm|0)|0}var $a=256,Wa=262144,Fa=4194304;function ql(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Pa(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~u,n!==0?a=ql(n):(f&=h,f!==0?a=ql(f):l||(l=h&~t,l!==0&&(a=ql(l))))):(h=n&~u,h!==0?a=ql(h):f!==0?a=ql(f):l||(l=n&~t,l!==0&&(a=ql(l)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:a}function kn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ym(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Nr(){var t=Fa;return Fa<<=1,(Fa&62914560)===0&&(Fa=4194304),t}function Du(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Jn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xm(t,e,l,n,a,u){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var h=t.entanglements,p=t.expirationTimes,A=t.hiddenUpdates;for(l=f&~l;0<l;){var z=31-re(l),U=1<<z;h[z]=0,p[z]=-1;var R=A[z];if(R!==null)for(A[z]=null,z=0;z<R.length;z++){var O=R[z];O!==null&&(O.lane&=-536870913)}l&=~U}n!==0&&Or(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function Or(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-re(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function Cr(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-re(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function zr(t,e){var l=e&-e;return l=(l&42)!==0?1:Uu(l),(l&(t.suspendedLanes|e))!==0?0:l}function Uu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function wu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Mr(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:gd(t.type))}function Dr(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var ol=Math.random().toString(36).slice(2),Qt="__reactFiber$"+ol,Pt="__reactProps$"+ol,nn="__reactContainer$"+ol,Bu="__reactEvents$"+ol,Gm="__reactListeners$"+ol,Qm="__reactHandles$"+ol,Ur="__reactResources$"+ol,$n="__reactMarker$"+ol;function ju(t){delete t[Qt],delete t[Pt],delete t[Bu],delete t[Gm],delete t[Qm]}function an(t){var e=t[Qt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[nn]||l[Qt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=ld(t);t!==null;){if(l=t[Qt])return l;t=ld(t)}return e}t=l,l=t.parentNode}return null}function un(t){if(t=t[Qt]||t[nn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Wn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function sn(t){var e=t[Ur];return e||(e=t[Ur]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Xt(t){t[$n]=!0}var wr=new Set,Br={};function Ll(t,e){cn(t,e),cn(t+"Capture",e)}function cn(t,e){for(Br[t]=e,t=0;t<e.length;t++)wr.add(e[t])}var Vm=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]*$"),jr={},Hr={};function Zm(t){return Cu.call(Hr,t)?!0:Cu.call(jr,t)?!1:Vm.test(t)?Hr[t]=!0:(jr[t]=!0,!1)}function Ia(t,e,l){if(Zm(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function ti(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Qe(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function ge(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Km(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){l=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hu(t){if(!t._valueTracker){var e=qr(t)?"checked":"value";t._valueTracker=Km(t,e,""+t[e])}}function Lr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=qr(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function ei(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var km=/[\n"\\]/g;function be(t){return t.replace(km,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function qu(t,e,l,n,a,u,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ge(e)):t.value!==""+ge(e)&&(t.value=""+ge(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Lu(t,f,ge(e)):l!=null?Lu(t,f,ge(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+ge(h):t.removeAttribute("name")}function Yr(t,e,l,n,a,u,f,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Hu(t);return}l=l!=null?""+ge(l):"",e=e!=null?""+ge(e):l,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Hu(t)}function Lu(t,e,l){e==="number"&&ei(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function rn(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+ge(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function Xr(t,e,l){if(e!=null&&(e=""+ge(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+ge(l):""}function Gr(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(r(92));if(Ce(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=ge(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),Hu(t)}function fn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Jm=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 Qr(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Jm.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Vr(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&Qr(t,a,n)}else for(var u in e)e.hasOwnProperty(u)&&Qr(t,u,e[u])}function Yu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $m=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"]]),Wm=/^[\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 li(t){return Wm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ve(){}var Xu=null;function Gu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var on=null,hn=null;function Zr(t){var e=un(t);if(e&&(t=e.stateNode)){var l=t[Pt]||null;t:switch(t=e.stateNode,e.type){case"input":if(qu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+be(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[Pt]||null;if(!a)throw Error(r(90));qu(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&Lr(n)}break t;case"textarea":Xr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&rn(t,!!l.multiple,e,!1)}}}var Qu=!1;function Kr(t,e,l){if(Qu)return t(e,l);Qu=!0;try{var n=t(e);return n}finally{if(Qu=!1,(on!==null||hn!==null)&&(Qi(),on&&(e=on,t=hn,hn=on=null,Zr(e),t)))for(e=0;e<t.length;e++)Zr(t[e])}}function Fn(t,e){var l=t.stateNode;if(l===null)return null;var n=l[Pt]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var Ze=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(Ze)try{var Pn={};Object.defineProperty(Pn,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",Pn,Pn),window.removeEventListener("test",Pn,Pn)}catch{Vu=!1}var hl=null,Zu=null,ni=null;function kr(){if(ni)return ni;var t,e=Zu,l=e.length,n,a="value"in hl?hl.value:hl.textContent,u=a.length;for(t=0;t<l&&e[t]===a[t];t++);var f=l-t;for(n=1;n<=f&&e[l-n]===a[u-n];n++);return ni=a.slice(t,1<n?1-n:void 0)}function ai(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ii(){return!0}function Jr(){return!1}function It(t){function e(l,n,a,u,f){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(l=t[h],this[h]=l?l(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ii:Jr,this.isPropagationStopped=Jr,this}return N(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),e}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=It(Yl),In=N({},Yl,{view:0,detail:0}),Fm=It(In),Ku,ku,ta,si=N({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$u,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ta&&(ta&&t.type==="mousemove"?(Ku=t.screenX-ta.screenX,ku=t.screenY-ta.screenY):ku=Ku=0,ta=t),Ku)},movementY:function(t){return"movementY"in t?t.movementY:ku}}),$r=It(si),Pm=N({},si,{dataTransfer:0}),Im=It(Pm),ty=N({},In,{relatedTarget:0}),Ju=It(ty),ey=N({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),ly=It(ey),ny=N({},Yl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ay=It(ny),iy=N({},Yl,{data:0}),Wr=It(iy),uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sy={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"},cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ry(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=cy[t])?!!e[t]:!1}function $u(){return ry}var fy=N({},In,{key:function(t){if(t.key){var e=uy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ai(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?sy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$u,charCode:function(t){return t.type==="keypress"?ai(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ai(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),oy=It(fy),hy=N({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fr=It(hy),dy=N({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$u}),my=It(dy),yy=N({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),py=It(yy),vy=N({},si,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),gy=It(vy),by=N({},Yl,{newState:0,oldState:0}),Sy=It(by),xy=[9,13,27,32],Wu=Ze&&"CompositionEvent"in window,ea=null;Ze&&"documentMode"in document&&(ea=document.documentMode);var Ey=Ze&&"TextEvent"in window&&!ea,Pr=Ze&&(!Wu||ea&&8<ea&&11>=ea),Ir=" ",tf=!1;function ef(t,e){switch(t){case"keyup":return xy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var dn=!1;function _y(t,e){switch(t){case"compositionend":return lf(e);case"keypress":return e.which!==32?null:(tf=!0,Ir);case"textInput":return t=e.data,t===Ir&&tf?null:t;default:return null}}function Ty(t,e){if(dn)return t==="compositionend"||!Wu&&ef(t,e)?(t=kr(),ni=Zu=hl=null,dn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Pr&&e.locale!=="ko"?null:e.data;default:return null}}var Ay={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 nf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ay[t.type]:e==="textarea"}function af(t,e,l,n){on?hn?hn.push(n):hn=[n]:on=n,e=Wi(e,"onChange"),0<e.length&&(l=new ui("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var la=null,na=null;function Ry(t){Gh(t,0)}function ci(t){var e=Wn(t);if(Lr(e))return t}function uf(t,e){if(t==="change")return e}var sf=!1;if(Ze){var Fu;if(Ze){var Pu="oninput"in document;if(!Pu){var cf=document.createElement("div");cf.setAttribute("oninput","return;"),Pu=typeof cf.oninput=="function"}Fu=Pu}else Fu=!1;sf=Fu&&(!document.documentMode||9<document.documentMode)}function rf(){la&&(la.detachEvent("onpropertychange",ff),na=la=null)}function ff(t){if(t.propertyName==="value"&&ci(na)){var e=[];af(e,na,t,Gu(t)),Kr(Ry,e)}}function Ny(t,e,l){t==="focusin"?(rf(),la=e,na=l,la.attachEvent("onpropertychange",ff)):t==="focusout"&&rf()}function Oy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ci(na)}function Cy(t,e){if(t==="click")return ci(e)}function zy(t,e){if(t==="input"||t==="change")return ci(e)}function My(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fe=typeof Object.is=="function"?Object.is:My;function aa(t,e){if(fe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Cu.call(e,a)||!fe(t[a],e[a]))return!1}return!0}function of(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hf(t,e){var l=of(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=of(l)}}function df(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?df(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ei(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=ei(t.document)}return e}function Iu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Dy=Ze&&"documentMode"in document&&11>=document.documentMode,mn=null,ts=null,ia=null,es=!1;function yf(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;es||mn==null||mn!==ei(n)||(n=mn,"selectionStart"in n&&Iu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ia&&aa(ia,n)||(ia=n,n=Wi(ts,"onSelect"),0<n.length&&(e=new ui("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=mn)))}function Xl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var yn={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},ls={},pf={};Ze&&(pf=document.createElement("div").style,"AnimationEvent"in window||(delete yn.animationend.animation,delete yn.animationiteration.animation,delete yn.animationstart.animation),"TransitionEvent"in window||delete yn.transitionend.transition);function Gl(t){if(ls[t])return ls[t];if(!yn[t])return t;var e=yn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in pf)return ls[t]=e[l];return t}var vf=Gl("animationend"),gf=Gl("animationiteration"),bf=Gl("animationstart"),Uy=Gl("transitionrun"),wy=Gl("transitionstart"),By=Gl("transitioncancel"),Sf=Gl("transitionend"),xf=new Map,ns="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(" ");ns.push("scrollEnd");function ze(t,e){xf.set(t,e),Ll(e,[t])}var ri=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Se=[],pn=0,as=0;function fi(){for(var t=pn,e=as=pn=0;e<t;){var l=Se[e];Se[e++]=null;var n=Se[e];Se[e++]=null;var a=Se[e];Se[e++]=null;var u=Se[e];if(Se[e++]=null,n!==null&&a!==null){var f=n.pending;f===null?a.next=a:(a.next=f.next,f.next=a),n.pending=a}u!==0&&Ef(l,a,u)}}function oi(t,e,l,n){Se[pn++]=t,Se[pn++]=e,Se[pn++]=l,Se[pn++]=n,as|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function is(t,e,l,n){return oi(t,e,l,n),hi(t)}function Ql(t,e){return oi(t,null,null,e),hi(t)}function Ef(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=t.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-re(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function hi(t){if(50<Na)throw Na=0,mc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var vn={};function jy(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oe(t,e,l,n){return new jy(t,e,l,n)}function us(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ke(t,e){var l=t.alternate;return l===null?(l=oe(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function _f(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function di(t,e,l,n,a,u){var f=0;if(n=t,typeof t=="function")us(t)&&(f=1);else if(typeof t=="string")f=Xp(t,l,Z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Nt:return t=oe(31,l,e,a),t.elementType=Nt,t.lanes=u,t;case Y:return Vl(l.children,a,u,e);case G:f=8,a|=24;break;case X:return t=oe(12,l,e,a|2),t.elementType=X,t.lanes=u,t;case Tt:return t=oe(13,l,e,a),t.elementType=Tt,t.lanes=u,t;case qt:return t=oe(19,l,e,a),t.elementType=qt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case J:f=10;break t;case V:f=9;break t;case dt:f=11;break t;case tt:f=14;break t;case Lt:f=16,n=null;break t}f=29,l=Error(r(130,t===null?"null":typeof t,"")),n=null}return e=oe(f,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function Vl(t,e,l,n){return t=oe(7,t,n,e),t.lanes=l,t}function ss(t,e,l){return t=oe(6,t,null,e),t.lanes=l,t}function Tf(t){var e=oe(18,null,null,0);return e.stateNode=t,e}function cs(t,e,l){return e=oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Af=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var l=Af.get(t);return l!==void 0?l:(e={value:t,source:e,stack:_r(e)},Af.set(t,e),e)}return{value:t,source:e,stack:_r(e)}}var gn=[],bn=0,mi=null,ua=0,Ee=[],_e=0,dl=null,Be=1,je="";function ke(t,e){gn[bn++]=ua,gn[bn++]=mi,mi=t,ua=e}function Rf(t,e,l){Ee[_e++]=Be,Ee[_e++]=je,Ee[_e++]=dl,dl=t;var n=Be;t=je;var a=32-re(n)-1;n&=~(1<<a),l+=1;var u=32-re(e)+a;if(30<u){var f=a-a%5;u=(n&(1<<f)-1).toString(32),n>>=f,a-=f,Be=1<<32-re(e)+a|l<<a|n,je=u+t}else Be=1<<u|l<<a|n,je=t}function rs(t){t.return!==null&&(ke(t,1),Rf(t,1,0))}function fs(t){for(;t===mi;)mi=gn[--bn],gn[bn]=null,ua=gn[--bn],gn[bn]=null;for(;t===dl;)dl=Ee[--_e],Ee[_e]=null,je=Ee[--_e],Ee[_e]=null,Be=Ee[--_e],Ee[_e]=null}function Nf(t,e){Ee[_e++]=Be,Ee[_e++]=je,Ee[_e++]=dl,Be=e.id,je=e.overflow,dl=t}var Vt=null,Et=null,st=!1,ml=null,Te=!1,os=Error(r(519));function yl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sa(xe(e,t)),os}function Of(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Qt]=t,e[Pt]=n,l){case"dialog":at("cancel",e),at("close",e);break;case"iframe":case"object":case"embed":at("load",e);break;case"video":case"audio":for(l=0;l<Ca.length;l++)at(Ca[l],e);break;case"source":at("error",e);break;case"img":case"image":case"link":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"input":at("invalid",e),Yr(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":at("invalid",e);break;case"textarea":at("invalid",e),Gr(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||Kh(e.textContent,l)?(n.popover!=null&&(at("beforetoggle",e),at("toggle",e)),n.onScroll!=null&&at("scroll",e),n.onScrollEnd!=null&&at("scrollend",e),n.onClick!=null&&(e.onclick=Ve),e=!0):e=!1,e||yl(t,!0)}function Cf(t){for(Vt=t.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:Te=!1;return;case 27:case 3:Te=!0;return;default:Vt=Vt.return}}function Sn(t){if(t!==Vt)return!1;if(!st)return Cf(t),st=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Cc(t.type,t.memoizedProps)),l=!l),l&&Et&&yl(t),Cf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Et=ed(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Et=ed(t)}else e===27?(e=Et,Cl(t.type)?(t=wc,wc=null,Et=t):Et=e):Et=Vt?Re(t.stateNode.nextSibling):null;return!0}function Zl(){Et=Vt=null,st=!1}function hs(){var t=ml;return t!==null&&(ne===null?ne=t:ne.push.apply(ne,t),ml=null),t}function sa(t){ml===null?ml=[t]:ml.push(t)}var ds=S(null),Kl=null,Je=null;function pl(t,e,l){L(ds,e._currentValue),e._currentValue=l}function $e(t){t._currentValue=ds.current,B(ds)}function ms(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function ys(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var f=a.child;u=u.firstContext;t:for(;u!==null;){var h=u;u=a;for(var p=0;p<e.length;p++)if(h.context===e[p]){u.lanes|=l,h=u.alternate,h!==null&&(h.lanes|=l),ms(u.return,l,t),n||(f=null);break t}u=h.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(r(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),ms(f,l,t),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function xn(t,e,l,n){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var h=a.type;fe(a.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(a===ht.current){if(f=a.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(wa):t=[wa])}a=a.return}t!==null&&ys(e,t,l,n),e.flags|=262144}function yi(t){for(t=t.firstContext;t!==null;){if(!fe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function kl(t){Kl=t,Je=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return zf(Kl,t)}function pi(t,e){return Kl===null&&kl(t),zf(t,e)}function zf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Je===null){if(t===null)throw Error(r(308));Je=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Je=Je.next=e;return l}var Hy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},qy=s.unstable_scheduleCallback,Ly=s.unstable_NormalPriority,Ut={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ps(){return{controller:new Hy,data:new Map,refCount:0}}function ca(t){t.refCount--,t.refCount===0&&qy(Ly,function(){t.controller.abort()})}var ra=null,vs=0,En=0,_n=null;function Yy(t,e){if(ra===null){var l=ra=[];vs=0,En=Sc(),_n={status:"pending",value:void 0,then:function(n){l.push(n)}}}return vs++,e.then(Mf,Mf),e}function Mf(){if(--vs===0&&ra!==null){_n!==null&&(_n.status="fulfilled");var t=ra;ra=null,En=0,_n=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Xy(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Df=M.S;M.S=function(t,e){ph=se(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Yy(t,e),Df!==null&&Df(t,e)};var Jl=S(null);function gs(){var t=Jl.current;return t!==null?t:xt.pooledCache}function vi(t,e){e===null?L(Jl,Jl.current):L(Jl,e.pool)}function Uf(){var t=gs();return t===null?null:{parent:Ut._currentValue,pool:t}}var Tn=Error(r(460)),bs=Error(r(474)),gi=Error(r(542)),bi={then:function(){}};function wf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Bf(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Ve,Ve),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Hf(t),t;default:if(typeof e.status=="string")e.then(Ve,Ve);else{if(t=xt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Hf(t),t}throw Wl=e,Tn}}function $l(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,Tn):l}}var Wl=null;function jf(){if(Wl===null)throw Error(r(459));var t=Wl;return Wl=null,t}function Hf(t){if(t===Tn||t===gi)throw Error(r(483))}var An=null,fa=0;function Si(t){var e=fa;return fa+=1,An===null&&(An=[]),Bf(An,t,e)}function oa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function xi(t,e){throw e.$$typeof===j?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function qf(t){function e(E,g){if(t){var T=E.deletions;T===null?(E.deletions=[g],E.flags|=16):T.push(g)}}function l(E,g){if(!t)return null;for(;g!==null;)e(E,g),g=g.sibling;return null}function n(E){for(var g=new Map;E!==null;)E.key!==null?g.set(E.key,E):g.set(E.index,E),E=E.sibling;return g}function a(E,g){return E=Ke(E,g),E.index=0,E.sibling=null,E}function u(E,g,T){return E.index=T,t?(T=E.alternate,T!==null?(T=T.index,T<g?(E.flags|=67108866,g):T):(E.flags|=67108866,g)):(E.flags|=1048576,g)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function h(E,g,T,D){return g===null||g.tag!==6?(g=ss(T,E.mode,D),g.return=E,g):(g=a(g,T),g.return=E,g)}function p(E,g,T,D){var k=T.type;return k===Y?z(E,g,T.props.children,D,T.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Lt&&$l(k)===g.type)?(g=a(g,T.props),oa(g,T),g.return=E,g):(g=di(T.type,T.key,T.props,null,E.mode,D),oa(g,T),g.return=E,g)}function A(E,g,T,D){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=cs(T,E.mode,D),g.return=E,g):(g=a(g,T.children||[]),g.return=E,g)}function z(E,g,T,D,k){return g===null||g.tag!==7?(g=Vl(T,E.mode,D,k),g.return=E,g):(g=a(g,T),g.return=E,g)}function U(E,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=ss(""+g,E.mode,T),g.return=E,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case w:return T=di(g.type,g.key,g.props,null,E.mode,T),oa(T,g),T.return=E,T;case H:return g=cs(g,E.mode,T),g.return=E,g;case Lt:return g=$l(g),U(E,g,T)}if(Ce(g)||Ft(g))return g=Vl(g,E.mode,T,null),g.return=E,g;if(typeof g.then=="function")return U(E,Si(g),T);if(g.$$typeof===J)return U(E,pi(E,g),T);xi(E,g)}return null}function R(E,g,T,D){var k=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return k!==null?null:h(E,g,""+T,D);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case w:return T.key===k?p(E,g,T,D):null;case H:return T.key===k?A(E,g,T,D):null;case Lt:return T=$l(T),R(E,g,T,D)}if(Ce(T)||Ft(T))return k!==null?null:z(E,g,T,D,null);if(typeof T.then=="function")return R(E,g,Si(T),D);if(T.$$typeof===J)return R(E,g,pi(E,T),D);xi(E,T)}return null}function O(E,g,T,D,k){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return E=E.get(T)||null,h(g,E,""+D,k);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return E=E.get(D.key===null?T:D.key)||null,p(g,E,D,k);case H:return E=E.get(D.key===null?T:D.key)||null,A(g,E,D,k);case Lt:return D=$l(D),O(E,g,T,D,k)}if(Ce(D)||Ft(D))return E=E.get(T)||null,z(g,E,D,k,null);if(typeof D.then=="function")return O(E,g,T,Si(D),k);if(D.$$typeof===J)return O(E,g,T,pi(g,D),k);xi(g,D)}return null}function Q(E,g,T,D){for(var k=null,rt=null,K=g,et=g=0,ut=null;K!==null&&et<T.length;et++){K.index>et?(ut=K,K=null):ut=K.sibling;var ft=R(E,K,T[et],D);if(ft===null){K===null&&(K=ut);break}t&&K&&ft.alternate===null&&e(E,K),g=u(ft,g,et),rt===null?k=ft:rt.sibling=ft,rt=ft,K=ut}if(et===T.length)return l(E,K),st&&ke(E,et),k;if(K===null){for(;et<T.length;et++)K=U(E,T[et],D),K!==null&&(g=u(K,g,et),rt===null?k=K:rt.sibling=K,rt=K);return st&&ke(E,et),k}for(K=n(K);et<T.length;et++)ut=O(K,E,et,T[et],D),ut!==null&&(t&&ut.alternate!==null&&K.delete(ut.key===null?et:ut.key),g=u(ut,g,et),rt===null?k=ut:rt.sibling=ut,rt=ut);return t&&K.forEach(function(wl){return e(E,wl)}),st&&ke(E,et),k}function $(E,g,T,D){if(T==null)throw Error(r(151));for(var k=null,rt=null,K=g,et=g=0,ut=null,ft=T.next();K!==null&&!ft.done;et++,ft=T.next()){K.index>et?(ut=K,K=null):ut=K.sibling;var wl=R(E,K,ft.value,D);if(wl===null){K===null&&(K=ut);break}t&&K&&wl.alternate===null&&e(E,K),g=u(wl,g,et),rt===null?k=wl:rt.sibling=wl,rt=wl,K=ut}if(ft.done)return l(E,K),st&&ke(E,et),k;if(K===null){for(;!ft.done;et++,ft=T.next())ft=U(E,ft.value,D),ft!==null&&(g=u(ft,g,et),rt===null?k=ft:rt.sibling=ft,rt=ft);return st&&ke(E,et),k}for(K=n(K);!ft.done;et++,ft=T.next())ft=O(K,E,et,ft.value,D),ft!==null&&(t&&ft.alternate!==null&&K.delete(ft.key===null?et:ft.key),g=u(ft,g,et),rt===null?k=ft:rt.sibling=ft,rt=ft);return t&&K.forEach(function(Pp){return e(E,Pp)}),st&&ke(E,et),k}function bt(E,g,T,D){if(typeof T=="object"&&T!==null&&T.type===Y&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case w:t:{for(var k=T.key;g!==null;){if(g.key===k){if(k=T.type,k===Y){if(g.tag===7){l(E,g.sibling),D=a(g,T.props.children),D.return=E,E=D;break t}}else if(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Lt&&$l(k)===g.type){l(E,g.sibling),D=a(g,T.props),oa(D,T),D.return=E,E=D;break t}l(E,g);break}else e(E,g);g=g.sibling}T.type===Y?(D=Vl(T.props.children,E.mode,D,T.key),D.return=E,E=D):(D=di(T.type,T.key,T.props,null,E.mode,D),oa(D,T),D.return=E,E=D)}return f(E);case H:t:{for(k=T.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){l(E,g.sibling),D=a(g,T.children||[]),D.return=E,E=D;break t}else{l(E,g);break}else e(E,g);g=g.sibling}D=cs(T,E.mode,D),D.return=E,E=D}return f(E);case Lt:return T=$l(T),bt(E,g,T,D)}if(Ce(T))return Q(E,g,T,D);if(Ft(T)){if(k=Ft(T),typeof k!="function")throw Error(r(150));return T=k.call(T),$(E,g,T,D)}if(typeof T.then=="function")return bt(E,g,Si(T),D);if(T.$$typeof===J)return bt(E,g,pi(E,T),D);xi(E,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(l(E,g.sibling),D=a(g,T),D.return=E,E=D):(l(E,g),D=ss(T,E.mode,D),D.return=E,E=D),f(E)):l(E,g)}return function(E,g,T,D){try{fa=0;var k=bt(E,g,T,D);return An=null,k}catch(K){if(K===Tn||K===gi)throw K;var rt=oe(29,K,null,E.mode);return rt.lanes=D,rt.return=E,rt}finally{}}}var Fl=qf(!0),Lf=qf(!1),vl=!1;function Ss(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function gl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(ot&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=hi(t),Ef(t,null,l),e}return oi(t,n,e,l),hi(t)}function ha(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Cr(t,l)}}function Es(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=f:u=u.next=f,l=l.next}while(l!==null);u===null?a=u=e:u=u.next=e}else a=u=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var _s=!1;function da(){if(_s){var t=_n;if(t!==null)throw t}}function ma(t,e,l,n){_s=!1;var a=t.updateQueue;vl=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var p=h,A=p.next;p.next=null,f===null?u=A:f.next=A,f=p;var z=t.alternate;z!==null&&(z=z.updateQueue,h=z.lastBaseUpdate,h!==f&&(h===null?z.firstBaseUpdate=A:h.next=A,z.lastBaseUpdate=p))}if(u!==null){var U=a.baseState;f=0,z=A=p=null,h=u;do{var R=h.lane&-536870913,O=R!==h.lane;if(O?(it&R)===R:(n&R)===R){R!==0&&R===En&&(_s=!0),z!==null&&(z=z.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var Q=t,$=h;R=e;var bt=l;switch($.tag){case 1:if(Q=$.payload,typeof Q=="function"){U=Q.call(bt,U,R);break t}U=Q;break t;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=$.payload,R=typeof Q=="function"?Q.call(bt,U,R):Q,R==null)break t;U=N({},U,R);break t;case 2:vl=!0}}R=h.callback,R!==null&&(t.flags|=64,O&&(t.flags|=8192),O=a.callbacks,O===null?a.callbacks=[R]:O.push(R))}else O={lane:R,tag:h.tag,payload:h.payload,callback:h.callback,next:null},z===null?(A=z=O,p=U):z=z.next=O,f|=R;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;O=h,h=O.next,O.next=null,a.lastBaseUpdate=O,a.shared.pending=null}}while(!0);z===null&&(p=U),a.baseState=p,a.firstBaseUpdate=A,a.lastBaseUpdate=z,u===null&&(a.shared.lanes=0),Tl|=f,t.lanes=f,t.memoizedState=U}}function Yf(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Xf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Yf(l[t],e)}var Rn=S(null),Ei=S(0);function Gf(t,e){t=al,L(Ei,t),L(Rn,e),al=t|e.baseLanes}function Ts(){L(Ei,al),L(Rn,Rn.current)}function As(){al=Ei.current,B(Rn),B(Ei)}var he=S(null),Ae=null;function Sl(t){var e=t.alternate;L(Mt,Mt.current&1),L(he,t),Ae===null&&(e===null||Rn.current!==null||e.memoizedState!==null)&&(Ae=t)}function Rs(t){L(Mt,Mt.current),L(he,t),Ae===null&&(Ae=t)}function Qf(t){t.tag===22?(L(Mt,Mt.current),L(he,t),Ae===null&&(Ae=t)):xl()}function xl(){L(Mt,Mt.current),L(he,he.current)}function de(t){B(he),Ae===t&&(Ae=null),B(Mt)}var Mt=S(0);function _i(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dc(l)||Uc(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var We=0,I=null,vt=null,wt=null,Ti=!1,Nn=!1,Pl=!1,Ai=0,ya=0,On=null,Gy=0;function Ot(){throw Error(r(321))}function Ns(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!fe(t[l],e[l]))return!1;return!0}function Os(t,e,l,n,a,u){return We=u,I=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?No:Qs,Pl=!1,u=l(n,a),Pl=!1,Nn&&(u=Zf(e,l,n,a)),Vf(t),u}function Vf(t){M.H=ga;var e=vt!==null&&vt.next!==null;if(We=0,wt=vt=I=null,Ti=!1,ya=0,On=null,e)throw Error(r(300));t===null||Bt||(t=t.dependencies,t!==null&&yi(t)&&(Bt=!0))}function Zf(t,e,l,n){I=t;var a=0;do{if(Nn&&(On=null),ya=0,Nn=!1,25<=a)throw Error(r(301));if(a+=1,wt=vt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=Oo,u=e(l,n)}while(Nn);return u}function Qy(){var t=M.H,e=t.useState()[0];return e=typeof e.then=="function"?pa(e):e,t=t.useState()[0],(vt!==null?vt.memoizedState:null)!==t&&(I.flags|=1024),e}function Cs(){var t=Ai!==0;return Ai=0,t}function zs(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Ms(t){if(Ti){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ti=!1}We=0,wt=vt=I=null,Nn=!1,ya=Ai=0,On=null}function Wt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?I.memoizedState=wt=t:wt=wt.next=t,wt}function Dt(){if(vt===null){var t=I.alternate;t=t!==null?t.memoizedState:null}else t=vt.next;var e=wt===null?I.memoizedState:wt.next;if(e!==null)wt=e,vt=t;else{if(t===null)throw I.alternate===null?Error(r(467)):Error(r(310));vt=t,t={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},wt===null?I.memoizedState=wt=t:wt=wt.next=t}return wt}function Ri(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pa(t){var e=ya;return ya+=1,On===null&&(On=[]),t=Bf(On,t,e),e=I,(wt===null?e.memoizedState:wt.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?No:Qs),t}function Ni(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return pa(t);if(t.$$typeof===J)return Zt(t)}throw Error(r(438,String(t)))}function Ds(t){var e=null,l=I.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=I.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Ri(),I.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=ie;return e.index++,l}function Fe(t,e){return typeof e=="function"?e(t):e}function Oi(t){var e=Dt();return Us(e,vt,t)}function Us(t,e,l){var n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}e.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var h=f=null,p=null,A=e,z=!1;do{var U=A.lane&-536870913;if(U!==A.lane?(it&U)===U:(We&U)===U){var R=A.revertLane;if(R===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),U===En&&(z=!0);else if((We&R)===R){A=A.next,R===En&&(z=!0);continue}else U={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},p===null?(h=p=U,f=u):p=p.next=U,I.lanes|=R,Tl|=R;U=A.action,Pl&&l(u,U),u=A.hasEagerState?A.eagerState:l(u,U)}else R={lane:U,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},p===null?(h=p=R,f=u):p=p.next=R,I.lanes|=U,Tl|=U;A=A.next}while(A!==null&&A!==e);if(p===null?f=u:p.next=h,!fe(u,t.memoizedState)&&(Bt=!0,z&&(l=_n,l!==null)))throw l;t.memoizedState=u,t.baseState=f,t.baseQueue=p,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function ws(t){var e=Dt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,u=e.memoizedState;if(a!==null){l.pending=null;var f=a=a.next;do u=t(u,f.action),f=f.next;while(f!==a);fe(u,e.memoizedState)||(Bt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function Kf(t,e,l){var n=I,a=Dt(),u=st;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=e();var f=!fe((vt||a).memoizedState,l);if(f&&(a.memoizedState=l,Bt=!0),a=a.queue,Hs($f.bind(null,n,a,t),[t]),a.getSnapshot!==e||f||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,Cn(9,{destroy:void 0},Jf.bind(null,n,a,l,e),null),xt===null)throw Error(r(349));u||(We&127)!==0||kf(n,e,l)}return l}function kf(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=I.updateQueue,e===null?(e=Ri(),I.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Jf(t,e,l,n){e.value=l,e.getSnapshot=n,Wf(e)&&Ff(t)}function $f(t,e,l){return l(function(){Wf(e)&&Ff(t)})}function Wf(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!fe(t,l)}catch{return!0}}function Ff(t){var e=Ql(t,2);e!==null&&ae(e,t,2)}function Bs(t){var e=Wt();if(typeof t=="function"){var l=t;if(t=l(),Pl){fl(!0);try{l()}finally{fl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:t},e}function Pf(t,e,l,n){return t.baseState=l,Us(t,vt,typeof n=="function"?n:Fe)}function Vy(t,e,l,n,a){if(Mi(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};M.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,If(e,u)):(u.next=l.next,e.pending=l.next=u)}}function If(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=M.T,f={};M.T=f;try{var h=l(a,n),p=M.S;p!==null&&p(f,h),to(t,e,h)}catch(A){js(t,e,A)}finally{u!==null&&f.types!==null&&(u.types=f.types),M.T=u}}else try{u=l(a,n),to(t,e,u)}catch(A){js(t,e,A)}}function to(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){eo(t,e,n)},function(n){return js(t,e,n)}):eo(t,e,l)}function eo(t,e,l){e.status="fulfilled",e.value=l,lo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,If(t,l)))}function js(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,lo(e),e=e.next;while(e!==n)}t.action=null}function lo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function no(t,e){return e}function ao(t,e){if(st){var l=xt.formState;if(l!==null){t:{var n=I;if(st){if(Et){e:{for(var a=Et,u=Te;a.nodeType!==8;){if(!u){a=null;break e}if(a=Re(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Et=Re(a.nextSibling),n=a.data==="F!";break t}}yl(n)}n=!1}n&&(e=l[0])}}return l=Wt(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:e},l.queue=n,l=To.bind(null,I,n),n.dispatch=l,n=Bs(!1),u=Gs.bind(null,I,!1,n.queue),n=Wt(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Vy.bind(null,I,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function io(t){var e=Dt();return uo(e,vt,t)}function uo(t,e,l){if(e=Us(t,e,no)[0],t=Oi(Fe)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=pa(e)}catch(f){throw f===Tn?gi:f}else n=e;e=Dt();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(I.flags|=2048,Cn(9,{destroy:void 0},Zy.bind(null,a,l),null)),[n,u,t]}function Zy(t,e){t.action=e}function so(t){var e=Dt(),l=vt;if(l!==null)return uo(e,l,t);Dt(),e=e.memoizedState,l=Dt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Cn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=I.updateQueue,e===null&&(e=Ri(),I.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function co(){return Dt().memoizedState}function Ci(t,e,l,n){var a=Wt();I.flags|=t,a.memoizedState=Cn(1|e,{destroy:void 0},l,n===void 0?null:n)}function zi(t,e,l,n){var a=Dt();n=n===void 0?null:n;var u=a.memoizedState.inst;vt!==null&&n!==null&&Ns(n,vt.memoizedState.deps)?a.memoizedState=Cn(e,u,l,n):(I.flags|=t,a.memoizedState=Cn(1|e,u,l,n))}function ro(t,e){Ci(8390656,8,t,e)}function Hs(t,e){zi(2048,8,t,e)}function Ky(t){I.flags|=4;var e=I.updateQueue;if(e===null)e=Ri(),I.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function fo(t){var e=Dt().memoizedState;return Ky({ref:e,nextImpl:t}),function(){if((ot&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function oo(t,e){return zi(4,2,t,e)}function ho(t,e){return zi(4,4,t,e)}function mo(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function yo(t,e,l){l=l!=null?l.concat([t]):null,zi(4,4,mo.bind(null,e,t),l)}function qs(){}function po(t,e){var l=Dt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Ns(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function vo(t,e){var l=Dt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Ns(e,n[1]))return n[0];if(n=t(),Pl){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n}function Ls(t,e,l){return l===void 0||(We&1073741824)!==0&&(it&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=gh(),I.lanes|=t,Tl|=t,l)}function go(t,e,l,n){return fe(l,e)?l:Rn.current!==null?(t=Ls(t,l,n),fe(t,e)||(Bt=!0),t):(We&42)===0||(We&1073741824)!==0&&(it&261930)===0?(Bt=!0,t.memoizedState=l):(t=gh(),I.lanes|=t,Tl|=t,e)}function bo(t,e,l,n,a){var u=q.p;q.p=u!==0&&8>u?u:8;var f=M.T,h={};M.T=h,Gs(t,!1,e,l);try{var p=a(),A=M.S;if(A!==null&&A(h,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var z=Xy(p,n);va(t,e,z,pe(t))}else va(t,e,n,pe(t))}catch(U){va(t,e,{then:function(){},status:"rejected",reason:U},pe())}finally{q.p=u,f!==null&&h.types!==null&&(f.types=h.types),M.T=f}}function ky(){}function Ys(t,e,l,n){if(t.tag!==5)throw Error(r(476));var a=So(t).queue;bo(t,a,e,W,l===null?ky:function(){return xo(t),l(n)})}function So(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:W},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function xo(t){var e=So(t);e.next===null&&(e=t.alternate.memoizedState),va(t,e.next.queue,{},pe())}function Xs(){return Zt(wa)}function Eo(){return Dt().memoizedState}function _o(){return Dt().memoizedState}function Jy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=pe();t=gl(l);var n=bl(e,t,l);n!==null&&(ae(n,e,l),ha(n,e,l)),e={cache:ps()},t.payload=e;return}e=e.return}}function $y(t,e,l){var n=pe();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(t)?Ao(e,l):(l=is(t,e,l,n),l!==null&&(ae(l,t,n),Ro(l,e,n)))}function To(t,e,l){var n=pe();va(t,e,l,n)}function va(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(t))Ao(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,h=u(f,l);if(a.hasEagerState=!0,a.eagerState=h,fe(h,f))return oi(t,e,a,0),xt===null&&fi(),!1}catch{}finally{}if(l=is(t,e,a,n),l!==null)return ae(l,t,n),Ro(l,e,n),!0}return!1}function Gs(t,e,l,n){if(n={lane:2,revertLane:Sc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mi(t)){if(e)throw Error(r(479))}else e=is(t,l,n,2),e!==null&&ae(e,t,2)}function Mi(t){var e=t.alternate;return t===I||e!==null&&e===I}function Ao(t,e){Nn=Ti=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Ro(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Cr(t,l)}}var ga={readContext:Zt,use:Ni,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};ga.useEffectEvent=Ot;var No={readContext:Zt,use:Ni,useCallback:function(t,e){return Wt().memoizedState=[t,e===void 0?null:e],t},useContext:Zt,useEffect:ro,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Ci(4194308,4,mo.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Ci(4194308,4,t,e)},useInsertionEffect:function(t,e){Ci(4,2,t,e)},useMemo:function(t,e){var l=Wt();e=e===void 0?null:e;var n=t();if(Pl){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=Wt();if(l!==void 0){var a=l(e);if(Pl){fl(!0);try{l(e)}finally{fl(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=$y.bind(null,I,t),[n.memoizedState,t]},useRef:function(t){var e=Wt();return t={current:t},e.memoizedState=t},useState:function(t){t=Bs(t);var e=t.queue,l=To.bind(null,I,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:qs,useDeferredValue:function(t,e){var l=Wt();return Ls(l,t,e)},useTransition:function(){var t=Bs(!1);return t=bo.bind(null,I,t.queue,!0,!1),Wt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=I,a=Wt();if(st){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),xt===null)throw Error(r(349));(it&127)!==0||kf(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,ro($f.bind(null,n,u,t),[t]),n.flags|=2048,Cn(9,{destroy:void 0},Jf.bind(null,n,u,l,e),null),l},useId:function(){var t=Wt(),e=xt.identifierPrefix;if(st){var l=je,n=Be;l=(n&~(1<<32-re(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Ai++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Gy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Xs,useFormState:ao,useActionState:ao,useOptimistic:function(t){var e=Wt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Gs.bind(null,I,!0,l),l.dispatch=e,[t,e]},useMemoCache:Ds,useCacheRefresh:function(){return Wt().memoizedState=Jy.bind(null,I)},useEffectEvent:function(t){var e=Wt(),l={impl:t};return e.memoizedState=l,function(){if((ot&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Qs={readContext:Zt,use:Ni,useCallback:po,useContext:Zt,useEffect:Hs,useImperativeHandle:yo,useInsertionEffect:oo,useLayoutEffect:ho,useMemo:vo,useReducer:Oi,useRef:co,useState:function(){return Oi(Fe)},useDebugValue:qs,useDeferredValue:function(t,e){var l=Dt();return go(l,vt.memoizedState,t,e)},useTransition:function(){var t=Oi(Fe)[0],e=Dt().memoizedState;return[typeof t=="boolean"?t:pa(t),e]},useSyncExternalStore:Kf,useId:Eo,useHostTransitionStatus:Xs,useFormState:io,useActionState:io,useOptimistic:function(t,e){var l=Dt();return Pf(l,vt,t,e)},useMemoCache:Ds,useCacheRefresh:_o};Qs.useEffectEvent=fo;var Oo={readContext:Zt,use:Ni,useCallback:po,useContext:Zt,useEffect:Hs,useImperativeHandle:yo,useInsertionEffect:oo,useLayoutEffect:ho,useMemo:vo,useReducer:ws,useRef:co,useState:function(){return ws(Fe)},useDebugValue:qs,useDeferredValue:function(t,e){var l=Dt();return vt===null?Ls(l,t,e):go(l,vt.memoizedState,t,e)},useTransition:function(){var t=ws(Fe)[0],e=Dt().memoizedState;return[typeof t=="boolean"?t:pa(t),e]},useSyncExternalStore:Kf,useId:Eo,useHostTransitionStatus:Xs,useFormState:so,useActionState:so,useOptimistic:function(t,e){var l=Dt();return vt!==null?Pf(l,vt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Ds,useCacheRefresh:_o};Oo.useEffectEvent=fo;function Vs(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:N({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Zs={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=pe(),a=gl(n);a.payload=e,l!=null&&(a.callback=l),e=bl(t,a,n),e!==null&&(ae(e,t,n),ha(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=pe(),a=gl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=bl(t,a,n),e!==null&&(ae(e,t,n),ha(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=pe(),n=gl(l);n.tag=2,e!=null&&(n.callback=e),e=bl(t,n,l),e!==null&&(ae(e,t,l),ha(e,t,l))}};function Co(t,e,l,n,a,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,f):e.prototype&&e.prototype.isPureReactComponent?!aa(l,n)||!aa(a,u):!0}function zo(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&Zs.enqueueReplaceState(e,e.state,null)}function Il(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=N({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function Mo(t){ri(t)}function Do(t){console.error(t)}function Uo(t){ri(t)}function Di(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function wo(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Ks(t,e,l){return l=gl(l),l.tag=3,l.payload={element:null},l.callback=function(){Di(t,e)},l}function Bo(t){return t=gl(t),t.tag=3,t}function jo(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){wo(e,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){wo(e,l,n),typeof a!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function Wy(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&xn(e,l,a,!0),l=he.current,l!==null){switch(l.tag){case 31:case 13:return Ae===null?Vi():l.alternate===null&&Ct===0&&(Ct=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===bi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),vc(t,n,a)),!1;case 22:return l.flags|=65536,n===bi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),vc(t,n,a)),!1}throw Error(r(435,l.tag))}return vc(t,n,a),Vi(),!1}if(st)return e=he.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==os&&(t=Error(r(422),{cause:n}),sa(xe(t,l)))):(n!==os&&(e=Error(r(423),{cause:n}),sa(xe(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=xe(n,l),a=Ks(t.stateNode,n,a),Es(t,a),Ct!==4&&(Ct=2)),!1;var u=Error(r(520),{cause:n});if(u=xe(u,l),Ra===null?Ra=[u]:Ra.push(u),Ct!==4&&(Ct=2),e===null)return!0;n=xe(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=Ks(l.stateNode,n,t),Es(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Al===null||!Al.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Bo(a),jo(a,t,l,n),Es(l,a),!1}l=l.return}while(l!==null);return!1}var ks=Error(r(461)),Bt=!1;function Kt(t,e,l,n){e.child=t===null?Lf(e,null,l,n):Fl(e,t.child,l,n)}function Ho(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var f={};for(var h in n)h!=="ref"&&(f[h]=n[h])}else f=n;return kl(e),n=Os(t,e,l,f,u,a),h=Cs(),t!==null&&!Bt?(zs(t,e,a),Pe(t,e,a)):(st&&h&&rs(e),e.flags|=1,Kt(t,e,n,a),e.child)}function qo(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!us(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Lo(t,e,u,n,a)):(t=di(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!ec(t,a)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:aa,l(f,n)&&t.ref===e.ref)return Pe(t,e,a)}return e.flags|=1,t=Ke(u,n),t.ref=e.ref,t.return=e,e.child=t}function Lo(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(aa(u,n)&&t.ref===e.ref)if(Bt=!1,e.pendingProps=n=u,ec(t,a))(t.flags&131072)!==0&&(Bt=!0);else return e.lanes=t.lanes,Pe(t,e,a)}return Js(t,e,l,n,a)}function Yo(t,e,l,n){var a=n.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,e.child=null;return Xo(t,e,u,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&vi(e,u!==null?u.cachePool:null),u!==null?Gf(e,u):Ts(),Qf(e);else return n=e.lanes=536870912,Xo(t,e,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(vi(e,u.cachePool),Gf(e,u),xl(),e.memoizedState=null):(t!==null&&vi(e,null),Ts(),xl());return Kt(t,e,a,l),e.child}function ba(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Xo(t,e,l,n,a){var u=gs();return u=u===null?null:{parent:Ut._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&vi(e,null),Ts(),Qf(e),t!==null&&xn(t,e,n,!0),e.childLanes=a,null}function Ui(t,e){return e=Bi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Go(t,e,l){return Fl(e,t.child,null,l),t=Ui(e,e.pendingProps),t.flags|=2,de(e),e.memoizedState=null,t}function Fy(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(st){if(n.mode==="hidden")return t=Ui(e,n),e.lanes=536870912,ba(null,t);if(Rs(e),(t=Et)?(t=td(t,Te),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:dl!==null?{id:Be,overflow:je}:null,retryLane:536870912,hydrationErrors:null},l=Tf(t),l.return=e,e.child=l,Vt=e,Et=null)):t=null,t===null)throw yl(e);return e.lanes=536870912,null}return Ui(e,n)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(Rs(e),a)if(e.flags&256)e.flags&=-257,e=Go(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Bt||xn(t,e,l,!1),a=(l&t.childLanes)!==0,Bt||a){if(n=xt,n!==null&&(f=zr(n,l),f!==0&&f!==u.retryLane))throw u.retryLane=f,Ql(t,f),ae(n,t,f),ks;Vi(),e=Go(t,e,l)}else t=u.treeContext,Et=Re(f.nextSibling),Vt=e,st=!0,ml=null,Te=!1,t!==null&&Nf(e,t),e=Ui(e,n),e.flags|=4096;return e}return t=Ke(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function wi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Js(t,e,l,n,a){return kl(e),l=Os(t,e,l,n,void 0,a),n=Cs(),t!==null&&!Bt?(zs(t,e,a),Pe(t,e,a)):(st&&n&&rs(e),e.flags|=1,Kt(t,e,l,a),e.child)}function Qo(t,e,l,n,a,u){return kl(e),e.updateQueue=null,l=Zf(e,n,l,a),Vf(t),n=Cs(),t!==null&&!Bt?(zs(t,e,u),Pe(t,e,u)):(st&&n&&rs(e),e.flags|=1,Kt(t,e,l,u),e.child)}function Vo(t,e,l,n,a){if(kl(e),e.stateNode===null){var u=vn,f=l.contextType;typeof f=="object"&&f!==null&&(u=Zt(f)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Zs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},Ss(e),f=l.contextType,u.context=typeof f=="object"&&f!==null?Zt(f):vn,u.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Vs(e,l,f,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Zs.enqueueReplaceState(u,u.state,null),ma(e,n,u,a),da(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var h=e.memoizedProps,p=Il(l,h);u.props=p;var A=u.context,z=l.contextType;f=vn,typeof z=="object"&&z!==null&&(f=Zt(z));var U=l.getDerivedStateFromProps;z=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||A!==f)&&zo(e,u,n,f),vl=!1;var R=e.memoizedState;u.state=R,ma(e,n,u,a),da(),A=e.memoizedState,h||R!==A||vl?(typeof U=="function"&&(Vs(e,l,U,n),A=e.memoizedState),(p=vl||Co(e,l,p,n,R,A,f))?(z||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=A),u.props=n,u.state=A,u.context=f,n=p):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,xs(t,e),f=e.memoizedProps,z=Il(l,f),u.props=z,U=e.pendingProps,R=u.context,A=l.contextType,p=vn,typeof A=="object"&&A!==null&&(p=Zt(A)),h=l.getDerivedStateFromProps,(A=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==U||R!==p)&&zo(e,u,n,p),vl=!1,R=e.memoizedState,u.state=R,ma(e,n,u,a),da();var O=e.memoizedState;f!==U||R!==O||vl||t!==null&&t.dependencies!==null&&yi(t.dependencies)?(typeof h=="function"&&(Vs(e,l,h,n),O=e.memoizedState),(z=vl||Co(e,l,z,n,R,O,p)||t!==null&&t.dependencies!==null&&yi(t.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,O,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,O,p)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=O),u.props=n,u.state=O,u.context=p,n=z):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,wi(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=Fl(e,t.child,null,a),e.child=Fl(e,null,l,a)):Kt(t,e,l,a),e.memoizedState=u.state,t=e.child):t=Pe(t,e,a),t}function Zo(t,e,l,n){return Zl(),e.flags|=256,Kt(t,e,l,n),e.child}var $s={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ws(t){return{baseLanes:t,cachePool:Uf()}}function Fs(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ye),t}function Ko(t,e,l){var n=e.pendingProps,a=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Mt.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(st){if(a?Sl(e):xl(),(t=Et)?(t=td(t,Te),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:dl!==null?{id:Be,overflow:je}:null,retryLane:536870912,hydrationErrors:null},l=Tf(t),l.return=e,e.child=l,Vt=e,Et=null)):t=null,t===null)throw yl(e);return Uc(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,a?(xl(),a=e.mode,h=Bi({mode:"hidden",children:h},a),n=Vl(n,a,l,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=Ws(l),n.childLanes=Fs(t,f,l),e.memoizedState=$s,ba(null,n)):(Sl(e),Ps(e,h))}var p=t.memoizedState;if(p!==null&&(h=p.dehydrated,h!==null)){if(u)e.flags&256?(Sl(e),e.flags&=-257,e=Is(t,e,l)):e.memoizedState!==null?(xl(),e.child=t.child,e.flags|=128,e=null):(xl(),h=n.fallback,a=e.mode,n=Bi({mode:"visible",children:n.children},a),h=Vl(h,a,l,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,Fl(e,t.child,null,l),n=e.child,n.memoizedState=Ws(l),n.childLanes=Fs(t,f,l),e.memoizedState=$s,e=ba(null,n));else if(Sl(e),Uc(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var A=f.dgst;f=A,n=Error(r(419)),n.stack="",n.digest=f,sa({value:n,source:null,stack:null}),e=Is(t,e,l)}else if(Bt||xn(t,e,l,!1),f=(l&t.childLanes)!==0,Bt||f){if(f=xt,f!==null&&(n=zr(f,l),n!==0&&n!==p.retryLane))throw p.retryLane=n,Ql(t,n),ae(f,t,n),ks;Dc(h)||Vi(),e=Is(t,e,l)}else Dc(h)?(e.flags|=192,e.child=t.child,e=null):(t=p.treeContext,Et=Re(h.nextSibling),Vt=e,st=!0,ml=null,Te=!1,t!==null&&Nf(e,t),e=Ps(e,n.children),e.flags|=4096);return e}return a?(xl(),h=n.fallback,a=e.mode,p=t.child,A=p.sibling,n=Ke(p,{mode:"hidden",children:n.children}),n.subtreeFlags=p.subtreeFlags&65011712,A!==null?h=Ke(A,h):(h=Vl(h,a,l,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,ba(null,n),n=e.child,h=t.child.memoizedState,h===null?h=Ws(l):(a=h.cachePool,a!==null?(p=Ut._currentValue,a=a.parent!==p?{parent:p,pool:p}:a):a=Uf(),h={baseLanes:h.baseLanes|l,cachePool:a}),n.memoizedState=h,n.childLanes=Fs(t,f,l),e.memoizedState=$s,ba(t.child,n)):(Sl(e),l=t.child,t=l.sibling,l=Ke(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function Ps(t,e){return e=Bi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bi(t,e){return t=oe(22,t,null,e),t.lanes=0,t}function Is(t,e,l){return Fl(e,t.child,null,l),t=Ps(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ko(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ms(t.return,e,l)}function tc(t,e,l,n,a,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=l,f.tailMode=a,f.treeForkCount=u)}function Jo(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var f=Mt.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,L(Mt,f),Kt(t,e,n,l),n=st?ua:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ko(t,l,e);else if(t.tag===19)ko(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&_i(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),tc(e,!1,a,l,u,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&_i(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}tc(e,!0,l,null,u,n);break;case"together":tc(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Pe(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Tl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(xn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=Ke(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ke(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ec(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&yi(t)))}function Py(t,e,l){switch(e.tag){case 3:$t(e,e.stateNode.containerInfo),pl(e,Ut,t.memoizedState.cache),Zl();break;case 27:case 5:Zn(e);break;case 4:$t(e,e.stateNode.containerInfo);break;case 10:pl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Rs(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Sl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Ko(t,e,l):(Sl(e),t=Pe(t,e,l),t!==null?t.sibling:null);Sl(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(xn(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return Jo(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),L(Mt,Mt.current),n)break;return null;case 22:return e.lanes=0,Yo(t,e,l,e.pendingProps);case 24:pl(e,Ut,t.memoizedState.cache)}return Pe(t,e,l)}function $o(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Bt=!0;else{if(!ec(t,l)&&(e.flags&128)===0)return Bt=!1,Py(t,e,l);Bt=(t.flags&131072)!==0}else Bt=!1,st&&(e.flags&1048576)!==0&&Rf(e,ua,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=$l(e.elementType),e.type=t,typeof t=="function")us(t)?(n=Il(t,n),e.tag=1,e=Vo(null,e,t,n,l)):(e.tag=0,e=Js(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===dt){e.tag=11,e=Ho(null,e,t,n,l);break t}else if(a===tt){e.tag=14,e=qo(null,e,t,n,l);break t}}throw e=Ge(t)||t,Error(r(306,e,""))}}return e;case 0:return Js(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=Il(n,e.pendingProps),Vo(t,e,n,a,l);case 3:t:{if($t(e,e.stateNode.containerInfo),t===null)throw Error(r(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,xs(t,e),ma(e,n,null,l);var f=e.memoizedState;if(n=f.cache,pl(e,Ut,n),n!==u.cache&&ys(e,[Ut],l,!0),da(),n=f.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Zo(t,e,n,l);break t}else if(n!==a){a=xe(Error(r(424)),e),sa(a),e=Zo(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Et=Re(t.firstChild),Vt=e,st=!0,ml=null,Te=!0,l=Lf(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),n===a){e=Pe(t,e,l);break t}Kt(t,e,n,l)}e=e.child}return e;case 26:return wi(t,e),t===null?(l=ud(e.type,null,e.pendingProps,null))?e.memoizedState=l:st||(l=e.type,t=e.pendingProps,n=Fi(lt.current).createElement(l),n[Qt]=e,n[Pt]=t,kt(n,l,t),Xt(n),e.stateNode=n):e.memoizedState=ud(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Zn(e),t===null&&st&&(n=e.stateNode=nd(e.type,e.pendingProps,lt.current),Vt=e,Te=!0,a=Et,Cl(e.type)?(wc=a,Et=Re(n.firstChild)):Et=a),Kt(t,e,e.pendingProps.children,l),wi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&st&&((a=n=Et)&&(n=Op(n,e.type,e.pendingProps,Te),n!==null?(e.stateNode=n,Vt=e,Et=Re(n.firstChild),Te=!1,a=!0):a=!1),a||yl(e)),Zn(e),a=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,n=u.children,Cc(a,u)?n=null:f!==null&&Cc(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=Os(t,e,Qy,null,null,l),wa._currentValue=a),wi(t,e),Kt(t,e,n,l),e.child;case 6:return t===null&&st&&((t=l=Et)&&(l=Cp(l,e.pendingProps,Te),l!==null?(e.stateNode=l,Vt=e,Et=null,t=!0):t=!1),t||yl(e)),null;case 13:return Ko(t,e,l);case 4:return $t(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Fl(e,null,n,l):Kt(t,e,n,l),e.child;case 11:return Ho(t,e,e.type,e.pendingProps,l);case 7:return Kt(t,e,e.pendingProps,l),e.child;case 8:return Kt(t,e,e.pendingProps.children,l),e.child;case 12:return Kt(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,pl(e,e.type,n.value),Kt(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,kl(e),a=Zt(a),n=n(a),e.flags|=1,Kt(t,e,n,l),e.child;case 14:return qo(t,e,e.type,e.pendingProps,l);case 15:return Lo(t,e,e.type,e.pendingProps,l);case 19:return Jo(t,e,l);case 31:return Fy(t,e,l);case 22:return Yo(t,e,l,e.pendingProps);case 24:return kl(e),n=Zt(Ut),t===null?(a=gs(),a===null&&(a=xt,u=ps(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},Ss(e),pl(e,Ut,a)):((t.lanes&l)!==0&&(xs(t,e),ma(e,null,null,l),da()),a=t.memoizedState,u=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),pl(e,Ut,n)):(n=u.cache,pl(e,Ut,n),n!==a.cache&&ys(e,[Ut],l,!0))),Kt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Ie(t){t.flags|=4}function lc(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(Eh())t.flags|=8192;else throw Wl=bi,bs}else t.flags&=-16777217}function Wo(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!od(e))if(Eh())t.flags|=8192;else throw Wl=bi,bs}function ji(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Nr():536870912,t.lanes|=e,Un|=e)}function Sa(t,e){if(!st)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function Iy(t,e,l){var n=e.pendingProps;switch(fs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),$e(Ut),zt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Sn(e)?Ie(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,hs())),_t(e),null;case 26:var a=e.type,u=e.memoizedState;return t===null?(Ie(e),u!==null?(_t(e),Wo(e,u)):(_t(e),lc(e,a,null,n,l))):u?u!==t.memoizedState?(Ie(e),_t(e),Wo(e,u)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Ie(e),_t(e),lc(e,a,t,n,l)),null;case 27:if(ka(e),l=lt.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return _t(e),null}t=Z.current,Sn(e)?Of(e):(t=nd(a,n,l),e.stateNode=t,Ie(e))}return _t(e),null;case 5:if(ka(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return _t(e),null}if(u=Z.current,Sn(e))Of(e);else{var f=Fi(lt.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?f.createElement(a,{is:n.is}):f.createElement(a)}}u[Qt]=e,u[Pt]=n;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(kt(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Ie(e)}}return _t(e),lc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(r(166));if(t=lt.current,Sn(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Vt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[Qt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||Kh(t.nodeValue,l)),t||yl(e,!0)}else t=Fi(t).createTextNode(n),t[Qt]=e,e.stateNode=t}return _t(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=Sn(e),l!==null){if(t===null){if(!n)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Qt]=e}else Zl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else l=hs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(de(e),e):(de(e),null);if((e.flags&128)!==0)throw Error(r(558))}return _t(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Sn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(r(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[Qt]=e}else Zl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),a=!1}else a=hs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(de(e),e):(de(e),null)}return de(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),ji(e,e.updateQueue),_t(e),null);case 4:return zt(),t===null&&Tc(e.stateNode.containerInfo),_t(e),null;case 10:return $e(e.type),_t(e),null;case 19:if(B(Mt),n=e.memoizedState,n===null)return _t(e),null;if(a=(e.flags&128)!==0,u=n.rendering,u===null)if(a)Sa(n,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=_i(t),u!==null){for(e.flags|=128,Sa(n,!1),t=u.updateQueue,e.updateQueue=t,ji(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)_f(l,t),l=l.sibling;return L(Mt,Mt.current&1|2),st&&ke(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&se()>Xi&&(e.flags|=128,a=!0,Sa(n,!1),e.lanes=4194304)}else{if(!a)if(t=_i(u),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,ji(e,t),Sa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!st)return _t(e),null}else 2*se()-n.renderingStartTime>Xi&&l!==536870912&&(e.flags|=128,a=!0,Sa(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=se(),t.sibling=null,l=Mt.current,L(Mt,a?l&1|2:l&1),st&&ke(e,n.treeForkCount),t):(_t(e),null);case 22:case 23:return de(e),As(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),l=e.updateQueue,l!==null&&ji(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&B(Jl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),$e(Ut),_t(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function tp(t,e){switch(fs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return $e(Ut),zt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ka(e),null;case 31:if(e.memoizedState!==null){if(de(e),e.alternate===null)throw Error(r(340));Zl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(de(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Zl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(Mt),null;case 4:return zt(),null;case 10:return $e(e.type),null;case 22:case 23:return de(e),As(),t!==null&&B(Jl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return $e(Ut),null;case 25:return null;default:return null}}function Fo(t,e){switch(fs(e),e.tag){case 3:$e(Ut),zt();break;case 26:case 27:case 5:ka(e);break;case 4:zt();break;case 31:e.memoizedState!==null&&de(e);break;case 13:de(e);break;case 19:B(Mt);break;case 10:$e(e.type);break;case 22:case 23:de(e),As(),t!==null&&B(Jl);break;case 24:$e(Ut)}}function xa(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var u=l.create,f=l.inst;n=u(),f.destroy=n}l=l.next}while(l!==a)}}catch(h){yt(e,e.return,h)}}function El(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var f=n.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,a=e;var p=l,A=h;try{A()}catch(z){yt(a,p,z)}}}n=n.next}while(n!==u)}}catch(z){yt(e,e.return,z)}}function Po(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Xf(e,l)}catch(n){yt(t,t.return,n)}}}function Io(t,e,l){l.props=Il(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){yt(t,e,n)}}function Ea(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){yt(t,e,a)}}function He(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){yt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){yt(t,e,a)}else l.current=null}function th(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){yt(t,t.return,a)}}function nc(t,e,l){try{var n=t.stateNode;Ep(n,t.type,l,e),n[Pt]=e}catch(a){yt(t,t.return,a)}}function eh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Cl(t.type)||t.tag===4}function ac(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||eh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Cl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ic(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Ve));else if(n!==4&&(n===27&&Cl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(ic(t,e,l),t=t.sibling;t!==null;)ic(t,e,l),t=t.sibling}function Hi(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Cl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Hi(t,e,l),t=t.sibling;t!==null;)Hi(t,e,l),t=t.sibling}function lh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);kt(e,n,l),e[Qt]=t,e[Pt]=l}catch(u){yt(t,t.return,u)}}var tl=!1,jt=!1,uc=!1,nh=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function ep(t,e){if(t=t.containerInfo,Nc=au,t=mf(t),Iu(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var f=0,h=-1,p=-1,A=0,z=0,U=t,R=null;e:for(;;){for(var O;U!==l||a!==0&&U.nodeType!==3||(h=f+a),U!==u||n!==0&&U.nodeType!==3||(p=f+n),U.nodeType===3&&(f+=U.nodeValue.length),(O=U.firstChild)!==null;)R=U,U=O;for(;;){if(U===t)break e;if(R===l&&++A===a&&(h=f),R===u&&++z===n&&(p=f),(O=U.nextSibling)!==null)break;U=R,R=U.parentNode}U=O}l=h===-1||p===-1?null:{start:h,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Oc={focusedElem:t,selectionRange:l},au=!1,Gt=e;Gt!==null;)if(e=Gt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Gt=t;else for(;Gt!==null;){switch(e=Gt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var Q=Il(l.type,a);t=n.getSnapshotBeforeUpdate(Q,u),n.__reactInternalSnapshotBeforeUpdate=t}catch($){yt(l,l.return,$)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Mc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Mc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Gt=t;break}Gt=e.return}}function ah(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:ll(t,l),n&4&&xa(5,l);break;case 1:if(ll(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){yt(l,l.return,f)}else{var a=Il(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){yt(l,l.return,f)}}n&64&&Po(l),n&512&&Ea(l,l.return);break;case 3:if(ll(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Xf(t,e)}catch(f){yt(l,l.return,f)}}break;case 27:e===null&&n&4&&lh(l);case 26:case 5:ll(t,l),e===null&&n&4&&th(l),n&512&&Ea(l,l.return);break;case 12:ll(t,l);break;case 31:ll(t,l),n&4&&sh(t,l);break;case 13:ll(t,l),n&4&&ch(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=fp.bind(null,l),zp(t,l))));break;case 22:if(n=l.memoizedState!==null||tl,!n){e=e!==null&&e.memoizedState!==null||jt,a=tl;var u=jt;tl=n,(jt=e)&&!u?nl(t,l,(l.subtreeFlags&8772)!==0):ll(t,l),tl=a,jt=u}break;case 30:break;default:ll(t,l)}}function ih(t){var e=t.alternate;e!==null&&(t.alternate=null,ih(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ju(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var At=null,te=!1;function el(t,e,l){for(l=l.child;l!==null;)uh(t,e,l),l=l.sibling}function uh(t,e,l){if(ce&&typeof ce.onCommitFiberUnmount=="function")try{ce.onCommitFiberUnmount(Kn,l)}catch{}switch(l.tag){case 26:jt||He(l,e),el(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:jt||He(l,e);var n=At,a=te;Cl(l.type)&&(At=l.stateNode,te=!1),el(t,e,l),Ma(l.stateNode),At=n,te=a;break;case 5:jt||He(l,e);case 6:if(n=At,a=te,At=null,el(t,e,l),At=n,te=a,At!==null)if(te)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(l.stateNode)}catch(u){yt(l,e,u)}else try{At.removeChild(l.stateNode)}catch(u){yt(l,e,u)}break;case 18:At!==null&&(te?(t=At,Ph(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Xn(t)):Ph(At,l.stateNode));break;case 4:n=At,a=te,At=l.stateNode.containerInfo,te=!0,el(t,e,l),At=n,te=a;break;case 0:case 11:case 14:case 15:El(2,l,e),jt||El(4,l,e),el(t,e,l);break;case 1:jt||(He(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Io(l,e,n)),el(t,e,l);break;case 21:el(t,e,l);break;case 22:jt=(n=jt)||l.memoizedState!==null,el(t,e,l),jt=n;break;default:el(t,e,l)}}function sh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Xn(t)}catch(l){yt(e,e.return,l)}}}function ch(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Xn(t)}catch(l){yt(e,e.return,l)}}function lp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new nh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new nh),e;default:throw Error(r(435,t.tag))}}function qi(t,e){var l=lp(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=op.bind(null,t,n);n.then(a,a)}})}function ee(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(Cl(h.type)){At=h.stateNode,te=!1;break t}break;case 5:At=h.stateNode,te=!1;break t;case 3:case 4:At=h.stateNode.containerInfo,te=!0;break t}h=h.return}if(At===null)throw Error(r(160));uh(u,f,a),At=null,te=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)rh(e,t),e=e.sibling}var Me=null;function rh(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ee(e,t),le(t),n&4&&(El(3,t,t.return),xa(3,t),El(5,t,t.return));break;case 1:ee(e,t),le(t),n&512&&(jt||l===null||He(l,l.return)),n&64&&tl&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Me;if(ee(e,t),le(t),n&512&&(jt||l===null||He(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[$n]||u[Qt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),kt(u,n,l),u[Qt]=t,Xt(u),n=u;break t;case"link":var f=rd("link","href",a).get(n+(l.href||""));if(f){for(var h=0;h<f.length;h++)if(u=f[h],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(h,1);break e}}u=a.createElement(n),kt(u,n,l),a.head.appendChild(u);break;case"meta":if(f=rd("meta","content",a).get(n+(l.content||""))){for(h=0;h<f.length;h++)if(u=f[h],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(h,1);break e}}u=a.createElement(n),kt(u,n,l),a.head.appendChild(u);break;default:throw Error(r(468,n))}u[Qt]=t,Xt(u),n=u}t.stateNode=n}else fd(a,t.type,t.stateNode);else t.stateNode=cd(a,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?fd(a,t.type,t.stateNode):cd(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&nc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ee(e,t),le(t),n&512&&(jt||l===null||He(l,l.return)),l!==null&&n&4&&nc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ee(e,t),le(t),n&512&&(jt||l===null||He(l,l.return)),t.flags&32){a=t.stateNode;try{fn(a,"")}catch(Q){yt(t,t.return,Q)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,nc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(uc=!0);break;case 6:if(ee(e,t),le(t),n&4){if(t.stateNode===null)throw Error(r(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(Q){yt(t,t.return,Q)}}break;case 3:if(tu=null,a=Me,Me=Pi(e.containerInfo),ee(e,t),Me=a,le(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Xn(e.containerInfo)}catch(Q){yt(t,t.return,Q)}uc&&(uc=!1,fh(t));break;case 4:n=Me,Me=Pi(t.stateNode.containerInfo),ee(e,t),le(t),Me=n;break;case 12:ee(e,t),le(t);break;case 31:ee(e,t),le(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qi(t,n)));break;case 13:ee(e,t),le(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Yi=se()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qi(t,n)));break;case 22:a=t.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,A=tl,z=jt;if(tl=A||a,jt=z||p,ee(e,t),jt=z,tl=A,le(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||p||tl||jt||tn(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){p=l=e;try{if(u=p.stateNode,a)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=p.stateNode;var U=p.memoizedProps.style,R=U!=null&&U.hasOwnProperty("display")?U.display:null;h.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(Q){yt(p,p.return,Q)}}}else if(e.tag===6){if(l===null){p=e;try{p.stateNode.nodeValue=a?"":p.memoizedProps}catch(Q){yt(p,p.return,Q)}}}else if(e.tag===18){if(l===null){p=e;try{var O=p.stateNode;a?Ih(O,!0):Ih(p.stateNode,!1)}catch(Q){yt(p,p.return,Q)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,qi(t,l))));break;case 19:ee(e,t),le(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qi(t,n)));break;case 30:break;case 21:break;default:ee(e,t),le(t)}}function le(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(eh(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var a=l.stateNode,u=ac(t);Hi(t,u,a);break;case 5:var f=l.stateNode;l.flags&32&&(fn(f,""),l.flags&=-33);var h=ac(t);Hi(t,h,f);break;case 3:case 4:var p=l.stateNode.containerInfo,A=ac(t);ic(t,A,p);break;default:throw Error(r(161))}}catch(z){yt(t,t.return,z)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function fh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;fh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ll(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ah(t,e.alternate,e),e=e.sibling}function tn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:El(4,e,e.return),tn(e);break;case 1:He(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Io(e,e.return,l),tn(e);break;case 27:Ma(e.stateNode);case 26:case 5:He(e,e.return),tn(e);break;case 22:e.memoizedState===null&&tn(e);break;case 30:tn(e);break;default:tn(e)}t=t.sibling}}function nl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:nl(a,u,l),xa(4,u);break;case 1:if(nl(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(A){yt(n,n.return,A)}if(n=u,a=n.updateQueue,a!==null){var h=n.stateNode;try{var p=a.shared.hiddenCallbacks;if(p!==null)for(a.shared.hiddenCallbacks=null,a=0;a<p.length;a++)Yf(p[a],h)}catch(A){yt(n,n.return,A)}}l&&f&64&&Po(u),Ea(u,u.return);break;case 27:lh(u);case 26:case 5:nl(a,u,l),l&&n===null&&f&4&&th(u),Ea(u,u.return);break;case 12:nl(a,u,l);break;case 31:nl(a,u,l),l&&f&4&&sh(a,u);break;case 13:nl(a,u,l),l&&f&4&&ch(a,u);break;case 22:u.memoizedState===null&&nl(a,u,l),Ea(u,u.return);break;case 30:break;default:nl(a,u,l)}e=e.sibling}}function sc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ca(l))}function cc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ca(t))}function De(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oh(t,e,l,n),e=e.sibling}function oh(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:De(t,e,l,n),a&2048&&xa(9,e);break;case 1:De(t,e,l,n);break;case 3:De(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ca(t)));break;case 12:if(a&2048){De(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,h=u.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(p){yt(e,e.return,p)}}else De(t,e,l,n);break;case 31:De(t,e,l,n);break;case 13:De(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?De(t,e,l,n):_a(t,e):u._visibility&2?De(t,e,l,n):(u._visibility|=2,zn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&sc(f,e);break;case 24:De(t,e,l,n),a&2048&&cc(e.alternate,e);break;default:De(t,e,l,n)}}function zn(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,h=l,p=n,A=f.flags;switch(f.tag){case 0:case 11:case 15:zn(u,f,h,p,a),xa(8,f);break;case 23:break;case 22:var z=f.stateNode;f.memoizedState!==null?z._visibility&2?zn(u,f,h,p,a):_a(u,f):(z._visibility|=2,zn(u,f,h,p,a)),a&&A&2048&&sc(f.alternate,f);break;case 24:zn(u,f,h,p,a),a&&A&2048&&cc(f.alternate,f);break;default:zn(u,f,h,p,a)}e=e.sibling}}function _a(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:_a(l,n),a&2048&&sc(n.alternate,n);break;case 24:_a(l,n),a&2048&&cc(n.alternate,n);break;default:_a(l,n)}e=e.sibling}}var Ta=8192;function Mn(t,e,l){if(t.subtreeFlags&Ta)for(t=t.child;t!==null;)hh(t,e,l),t=t.sibling}function hh(t,e,l){switch(t.tag){case 26:Mn(t,e,l),t.flags&Ta&&t.memoizedState!==null&&Gp(l,Me,t.memoizedState,t.memoizedProps);break;case 5:Mn(t,e,l);break;case 3:case 4:var n=Me;Me=Pi(t.stateNode.containerInfo),Mn(t,e,l),Me=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Ta,Ta=16777216,Mn(t,e,l),Ta=n):Mn(t,e,l));break;default:Mn(t,e,l)}}function dh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Aa(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Gt=n,yh(n,t)}dh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mh(t),t=t.sibling}function mh(t){switch(t.tag){case 0:case 11:case 15:Aa(t),t.flags&2048&&El(9,t,t.return);break;case 3:Aa(t);break;case 12:Aa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Li(t)):Aa(t);break;default:Aa(t)}}function Li(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Gt=n,yh(n,t)}dh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:El(8,e,e.return),Li(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Li(e));break;default:Li(e)}t=t.sibling}}function yh(t,e){for(;Gt!==null;){var l=Gt;switch(l.tag){case 0:case 11:case 15:El(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ca(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Gt=n;else t:for(l=t;Gt!==null;){n=Gt;var a=n.sibling,u=n.return;if(ih(n),n===l){Gt=null;break t}if(a!==null){a.return=u,Gt=a;break t}Gt=u}}}var np={getCacheForType:function(t){var e=Zt(Ut),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Zt(Ut).controller.signal}},ap=typeof WeakMap=="function"?WeakMap:Map,ot=0,xt=null,nt=null,it=0,mt=0,me=null,_l=!1,Dn=!1,rc=!1,al=0,Ct=0,Tl=0,en=0,fc=0,ye=0,Un=0,Ra=null,ne=null,oc=!1,Yi=0,ph=0,Xi=1/0,Gi=null,Al=null,Yt=0,Rl=null,wn=null,il=0,hc=0,dc=null,vh=null,Na=0,mc=null;function pe(){return(ot&2)!==0&&it!==0?it&-it:M.T!==null?Sc():Mr()}function gh(){if(ye===0)if((it&536870912)===0||st){var t=Wa;Wa<<=1,(Wa&3932160)===0&&(Wa=262144),ye=t}else ye=536870912;return t=he.current,t!==null&&(t.flags|=32),ye}function ae(t,e,l){(t===xt&&(mt===2||mt===9)||t.cancelPendingCommit!==null)&&(Bn(t,0),Nl(t,it,ye,!1)),Jn(t,l),((ot&2)===0||t!==xt)&&(t===xt&&((ot&2)===0&&(en|=l),Ct===4&&Nl(t,it,ye,!1)),qe(t))}function bh(t,e,l){if((ot&6)!==0)throw Error(r(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||kn(t,e),a=n?sp(t,e):pc(t,e,!0),u=n;do{if(a===0){Dn&&!n&&Nl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!ip(l)){a=pc(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;a=Ra;var p=h.current.memoizedState.isDehydrated;if(p&&(Bn(h,f).flags|=256),f=pc(h,f,!1),f!==2){if(rc&&!p){h.errorRecoveryDisabledLanes|=u,en|=u,a=4;break t}u=ne,ne=a,u!==null&&(ne===null?ne=u:ne.push.apply(ne,u))}a=f}if(u=!1,a!==2)continue}}if(a===1){Bn(t,0),Nl(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Nl(n,e,ye,!_l);break t;case 2:ne=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(a=Yi+300-se(),10<a)){if(Nl(n,e,ye,!_l),Pa(n,0,!0)!==0)break t;il=e,n.timeoutHandle=Wh(Sh.bind(null,n,l,ne,Gi,oc,e,ye,en,Un,_l,u,"Throttled",-0,0),a);break t}Sh(n,l,ne,Gi,oc,e,ye,en,Un,_l,u,null,-0,0)}}break}while(!0);qe(t)}function Sh(t,e,l,n,a,u,f,h,p,A,z,U,R,O){if(t.timeoutHandle=-1,U=e.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ve},hh(e,u,U);var Q=(u&62914560)===u?Yi-se():(u&4194048)===u?ph-se():0;if(Q=Qp(U,Q),Q!==null){il=u,t.cancelPendingCommit=Q(Oh.bind(null,t,e,u,l,n,a,f,h,p,z,U,null,R,O)),Nl(t,u,f,!A);return}}Oh(t,e,u,l,n,a,f,h,p)}function ip(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!fe(u(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Nl(t,e,l,n){e&=~fc,e&=~en,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-re(a),f=1<<u;n[u]=-1,a&=~f}l!==0&&Or(t,l,e)}function Qi(){return(ot&6)===0?(Oa(0),!1):!0}function yc(){if(nt!==null){if(mt===0)var t=nt.return;else t=nt,Je=Kl=null,Ms(t),An=null,fa=0,t=nt;for(;t!==null;)Fo(t.alternate,t),t=t.return;nt=null}}function Bn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ap(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),il=0,yc(),xt=t,nt=l=Ke(t.current,null),it=e,mt=0,me=null,_l=!1,Dn=kn(t,e),rc=!1,Un=ye=fc=en=Tl=Ct=0,ne=Ra=null,oc=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-re(n),u=1<<a;e|=t[a],n&=~u}return al=e,fi(),l}function xh(t,e){I=null,M.H=ga,e===Tn||e===gi?(e=jf(),mt=3):e===bs?(e=jf(),mt=4):mt=e===ks?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,me=e,nt===null&&(Ct=1,Di(t,xe(e,t.current)))}function Eh(){var t=he.current;return t===null?!0:(it&4194048)===it?Ae===null:(it&62914560)===it||(it&536870912)!==0?t===Ae:!1}function _h(){var t=M.H;return M.H=ga,t===null?ga:t}function Th(){var t=M.A;return M.A=np,t}function Vi(){Ct=4,_l||(it&4194048)!==it&&he.current!==null||(Dn=!0),(Tl&134217727)===0&&(en&134217727)===0||xt===null||Nl(xt,it,ye,!1)}function pc(t,e,l){var n=ot;ot|=2;var a=_h(),u=Th();(xt!==t||it!==e)&&(Gi=null,Bn(t,e)),e=!1;var f=Ct;t:do try{if(mt!==0&&nt!==null){var h=nt,p=me;switch(mt){case 8:yc(),f=6;break t;case 3:case 2:case 9:case 6:he.current===null&&(e=!0);var A=mt;if(mt=0,me=null,jn(t,h,p,A),l&&Dn){f=0;break t}break;default:A=mt,mt=0,me=null,jn(t,h,p,A)}}up(),f=Ct;break}catch(z){xh(t,z)}while(!0);return e&&t.shellSuspendCounter++,Je=Kl=null,ot=n,M.H=a,M.A=u,nt===null&&(xt=null,it=0,fi()),f}function up(){for(;nt!==null;)Ah(nt)}function sp(t,e){var l=ot;ot|=2;var n=_h(),a=Th();xt!==t||it!==e?(Gi=null,Xi=se()+500,Bn(t,e)):Dn=kn(t,e);t:do try{if(mt!==0&&nt!==null){e=nt;var u=me;e:switch(mt){case 1:mt=0,me=null,jn(t,e,u,1);break;case 2:case 9:if(wf(u)){mt=0,me=null,Rh(e);break}e=function(){mt!==2&&mt!==9||xt!==t||(mt=7),qe(t)},u.then(e,e);break t;case 3:mt=7;break t;case 4:mt=5;break t;case 7:wf(u)?(mt=0,me=null,Rh(e)):(mt=0,me=null,jn(t,e,u,7));break;case 5:var f=null;switch(nt.tag){case 26:f=nt.memoizedState;case 5:case 27:var h=nt;if(f?od(f):h.stateNode.complete){mt=0,me=null;var p=h.sibling;if(p!==null)nt=p;else{var A=h.return;A!==null?(nt=A,Zi(A)):nt=null}break e}}mt=0,me=null,jn(t,e,u,5);break;case 6:mt=0,me=null,jn(t,e,u,6);break;case 8:yc(),Ct=6;break t;default:throw Error(r(462))}}cp();break}catch(z){xh(t,z)}while(!0);return Je=Kl=null,M.H=n,M.A=a,ot=l,nt!==null?0:(xt=null,it=0,fi(),Ct)}function cp(){for(;nt!==null&&!Mm();)Ah(nt)}function Ah(t){var e=$o(t.alternate,t,al);t.memoizedProps=t.pendingProps,e===null?Zi(t):nt=e}function Rh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Qo(l,e,e.pendingProps,e.type,void 0,it);break;case 11:e=Qo(l,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:Ms(e);default:Fo(l,e),e=nt=_f(e,al),e=$o(l,e,al)}t.memoizedProps=t.pendingProps,e===null?Zi(t):nt=e}function jn(t,e,l,n){Je=Kl=null,Ms(e),An=null,fa=0;var a=e.return;try{if(Wy(t,a,e,l,it)){Ct=1,Di(t,xe(l,t.current)),nt=null;return}}catch(u){if(a!==null)throw nt=a,u;Ct=1,Di(t,xe(l,t.current)),nt=null;return}e.flags&32768?(st||n===1?t=!0:Dn||(it&536870912)!==0?t=!1:(_l=t=!0,(n===2||n===9||n===3||n===6)&&(n=he.current,n!==null&&n.tag===13&&(n.flags|=16384))),Nh(e,t)):Zi(e)}function Zi(t){var e=t;do{if((e.flags&32768)!==0){Nh(e,_l);return}t=e.return;var l=Iy(e.alternate,e,al);if(l!==null){nt=l;return}if(e=e.sibling,e!==null){nt=e;return}nt=e=t}while(e!==null);Ct===0&&(Ct=5)}function Nh(t,e){do{var l=tp(t.alternate,t);if(l!==null){l.flags&=32767,nt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){nt=t;return}nt=t=l}while(t!==null);Ct=6,nt=null}function Oh(t,e,l,n,a,u,f,h,p){t.cancelPendingCommit=null;do Ki();while(Yt!==0);if((ot&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=as,Xm(t,l,u,f,h,p),t===xt&&(nt=xt=null,it=0),wn=e,Rl=t,il=l,hc=u,dc=a,vh=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,hp(Ja,function(){return Uh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=M.T,M.T=null,a=q.p,q.p=2,f=ot,ot|=4;try{ep(t,e,l)}finally{ot=f,q.p=a,M.T=n}}Yt=1,Ch(),zh(),Mh()}}function Ch(){if(Yt===1){Yt=0;var t=Rl,e=wn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var n=q.p;q.p=2;var a=ot;ot|=4;try{rh(e,t);var u=Oc,f=mf(t.containerInfo),h=u.focusedElem,p=u.selectionRange;if(f!==h&&h&&h.ownerDocument&&df(h.ownerDocument.documentElement,h)){if(p!==null&&Iu(h)){var A=p.start,z=p.end;if(z===void 0&&(z=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(z,h.value.length);else{var U=h.ownerDocument||document,R=U&&U.defaultView||window;if(R.getSelection){var O=R.getSelection(),Q=h.textContent.length,$=Math.min(p.start,Q),bt=p.end===void 0?$:Math.min(p.end,Q);!O.extend&&$>bt&&(f=bt,bt=$,$=f);var E=hf(h,$),g=hf(h,bt);if(E&&g&&(O.rangeCount!==1||O.anchorNode!==E.node||O.anchorOffset!==E.offset||O.focusNode!==g.node||O.focusOffset!==g.offset)){var T=U.createRange();T.setStart(E.node,E.offset),O.removeAllRanges(),$>bt?(O.addRange(T),O.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),O.addRange(T))}}}}for(U=[],O=h;O=O.parentNode;)O.nodeType===1&&U.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<U.length;h++){var D=U[h];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}au=!!Nc,Oc=Nc=null}finally{ot=a,q.p=n,M.T=l}}t.current=e,Yt=2}}function zh(){if(Yt===2){Yt=0;var t=Rl,e=wn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var n=q.p;q.p=2;var a=ot;ot|=4;try{ah(t,e.alternate,e)}finally{ot=a,q.p=n,M.T=l}}Yt=3}}function Mh(){if(Yt===4||Yt===3){Yt=0,Dm();var t=Rl,e=wn,l=il,n=vh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Yt=5:(Yt=0,wn=Rl=null,Dh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Al=null),wu(l),e=e.stateNode,ce&&typeof ce.onCommitFiberRoot=="function")try{ce.onCommitFiberRoot(Kn,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=M.T,a=q.p,q.p=2,M.T=null;try{for(var u=t.onRecoverableError,f=0;f<n.length;f++){var h=n[f];u(h.value,{componentStack:h.stack})}}finally{M.T=e,q.p=a}}(il&3)!==0&&Ki(),qe(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===mc?Na++:(Na=0,mc=t):Na=0,Oa(0)}}function Dh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ca(e)))}function Ki(){return Ch(),zh(),Mh(),Uh()}function Uh(){if(Yt!==5)return!1;var t=Rl,e=hc;hc=0;var l=wu(il),n=M.T,a=q.p;try{q.p=32>l?32:l,M.T=null,l=dc,dc=null;var u=Rl,f=il;if(Yt=0,wn=Rl=null,il=0,(ot&6)!==0)throw Error(r(331));var h=ot;if(ot|=4,mh(u.current),oh(u,u.current,f,l),ot=h,Oa(0,!1),ce&&typeof ce.onPostCommitFiberRoot=="function")try{ce.onPostCommitFiberRoot(Kn,u)}catch{}return!0}finally{q.p=a,M.T=n,Dh(t,e)}}function wh(t,e,l){e=xe(l,e),e=Ks(t.stateNode,e,2),t=bl(t,e,2),t!==null&&(Jn(t,2),qe(t))}function yt(t,e,l){if(t.tag===3)wh(t,t,l);else for(;e!==null;){if(e.tag===3){wh(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Al===null||!Al.has(n))){t=xe(l,t),l=Bo(2),n=bl(e,l,2),n!==null&&(jo(l,n,e,t),Jn(n,2),qe(n));break}}e=e.return}}function vc(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new ap;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(rc=!0,a.add(l),t=rp.bind(null,t,e,l),e.then(t,t))}function rp(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,xt===t&&(it&l)===l&&(Ct===4||Ct===3&&(it&62914560)===it&&300>se()-Yi?(ot&2)===0&&Bn(t,0):fc|=l,Un===it&&(Un=0)),qe(t)}function Bh(t,e){e===0&&(e=Nr()),t=Ql(t,e),t!==null&&(Jn(t,e),qe(t))}function fp(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Bh(t,l)}function op(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(e),Bh(t,l)}function hp(t,e){return zu(t,e)}var ki=null,Hn=null,gc=!1,Ji=!1,bc=!1,Ol=0;function qe(t){t!==Hn&&t.next===null&&(Hn===null?ki=Hn=t:Hn=Hn.next=t),Ji=!0,gc||(gc=!0,mp())}function Oa(t,e){if(!bc&&Ji){bc=!0;do for(var l=!1,n=ki;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var f=n.suspendedLanes,h=n.pingedLanes;u=(1<<31-re(42|t)+1)-1,u&=a&~(f&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Lh(n,u))}else u=it,u=Pa(n,n===xt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||kn(n,u)||(l=!0,Lh(n,u));n=n.next}while(l);bc=!1}}function dp(){jh()}function jh(){Ji=gc=!1;var t=0;Ol!==0&&Tp()&&(t=Ol);for(var e=se(),l=null,n=ki;n!==null;){var a=n.next,u=Hh(n,e);u===0?(n.next=null,l===null?ki=a:l.next=a,a===null&&(Hn=l)):(l=n,(t!==0||(u&3)!==0)&&(Ji=!0)),n=a}Yt!==0&&Yt!==5||Oa(t),Ol!==0&&(Ol=0)}function Hh(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-re(u),h=1<<f,p=a[f];p===-1?((h&l)===0||(h&n)!==0)&&(a[f]=Ym(h,e)):p<=e&&(t.expiredLanes|=h),u&=~h}if(e=xt,l=it,l=Pa(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(mt===2||mt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Mu(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||kn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Mu(n),wu(l)){case 2:case 8:l=Ar;break;case 32:l=Ja;break;case 268435456:l=Rr;break;default:l=Ja}return n=qh.bind(null,t),l=zu(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Mu(n),t.callbackPriority=2,t.callbackNode=null,2}function qh(t,e){if(Yt!==0&&Yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Ki()&&t.callbackNode!==l)return null;var n=it;return n=Pa(t,t===xt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(bh(t,n,e),Hh(t,se()),t.callbackNode!=null&&t.callbackNode===l?qh.bind(null,t):null)}function Lh(t,e){if(Ki())return null;bh(t,e,!0)}function mp(){Rp(function(){(ot&6)!==0?zu(Tr,dp):jh()})}function Sc(){if(Ol===0){var t=En;t===0&&(t=$a,$a<<=1,($a&261888)===0&&($a=256)),Ol=t}return Ol}function Yh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:li(""+t)}function Xh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function yp(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=Yh((a[Pt]||null).action),f=n.submitter;f&&(e=(e=f[Pt]||null)?Yh(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var h=new ui("action","action",null,n,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ol!==0){var p=f?Xh(a,f):new FormData(a);Ys(l,{pending:!0,data:p,method:a.method,action:u},null,p)}}else typeof u=="function"&&(h.preventDefault(),p=f?Xh(a,f):new FormData(a),Ys(l,{pending:!0,data:p,method:a.method,action:u},u,p))},currentTarget:a}]})}}for(var xc=0;xc<ns.length;xc++){var Ec=ns[xc],pp=Ec.toLowerCase(),vp=Ec[0].toUpperCase()+Ec.slice(1);ze(pp,"on"+vp)}ze(vf,"onAnimationEnd"),ze(gf,"onAnimationIteration"),ze(bf,"onAnimationStart"),ze("dblclick","onDoubleClick"),ze("focusin","onFocus"),ze("focusout","onBlur"),ze(Uy,"onTransitionRun"),ze(wy,"onTransitionStart"),ze(By,"onTransitionCancel"),ze(Sf,"onTransitionEnd"),cn("onMouseEnter",["mouseout","mouseover"]),cn("onMouseLeave",["mouseout","mouseover"]),cn("onPointerEnter",["pointerout","pointerover"]),cn("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ca="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(" "),gp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ca));function Gh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var f=n.length-1;0<=f;f--){var h=n[f],p=h.instance,A=h.currentTarget;if(h=h.listener,p!==u&&a.isPropagationStopped())break t;u=h,a.currentTarget=A;try{u(a)}catch(z){ri(z)}a.currentTarget=null,u=p}else for(f=0;f<n.length;f++){if(h=n[f],p=h.instance,A=h.currentTarget,h=h.listener,p!==u&&a.isPropagationStopped())break t;u=h,a.currentTarget=A;try{u(a)}catch(z){ri(z)}a.currentTarget=null,u=p}}}}function at(t,e){var l=e[Bu];l===void 0&&(l=e[Bu]=new Set);var n=t+"__bubble";l.has(n)||(Qh(e,t,2,!1),l.add(n))}function _c(t,e,l){var n=0;e&&(n|=4),Qh(l,t,n,e)}var $i="_reactListening"+Math.random().toString(36).slice(2);function Tc(t){if(!t[$i]){t[$i]=!0,wr.forEach(function(l){l!=="selectionchange"&&(gp.has(l)||_c(l,!1,t),_c(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[$i]||(e[$i]=!0,_c("selectionchange",!1,e))}}function Qh(t,e,l,n){switch(gd(e)){case 2:var a=Kp;break;case 8:a=kp;break;default:a=Lc}l=a.bind(null,e,l,t),a=void 0,!Vu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function Ac(t,e,l,n,a){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var h=n.stateNode.containerInfo;if(h===a)break;if(f===4)for(f=n.return;f!==null;){var p=f.tag;if((p===3||p===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;h!==null;){if(f=an(h),f===null)return;if(p=f.tag,p===5||p===6||p===26||p===27){n=u=f;continue t}h=h.parentNode}}n=n.return}Kr(function(){var A=u,z=Gu(l),U=[];t:{var R=xf.get(t);if(R!==void 0){var O=ui,Q=t;switch(t){case"keypress":if(ai(l)===0)break t;case"keydown":case"keyup":O=oy;break;case"focusin":Q="focus",O=Ju;break;case"focusout":Q="blur",O=Ju;break;case"beforeblur":case"afterblur":O=Ju;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=$r;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Im;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=my;break;case vf:case gf:case bf:O=ly;break;case Sf:O=py;break;case"scroll":case"scrollend":O=Fm;break;case"wheel":O=gy;break;case"copy":case"cut":case"paste":O=ay;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Fr;break;case"toggle":case"beforetoggle":O=Sy}var $=(e&4)!==0,bt=!$&&(t==="scroll"||t==="scrollend"),E=$?R!==null?R+"Capture":null:R;$=[];for(var g=A,T;g!==null;){var D=g;if(T=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||T===null||E===null||(D=Fn(g,E),D!=null&&$.push(za(g,D,T))),bt)break;g=g.return}0<$.length&&(R=new O(R,Q,null,l,z),U.push({event:R,listeners:$}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",R&&l!==Xu&&(Q=l.relatedTarget||l.fromElement)&&(an(Q)||Q[nn]))break t;if((O||R)&&(R=z.window===z?z:(R=z.ownerDocument)?R.defaultView||R.parentWindow:window,O?(Q=l.relatedTarget||l.toElement,O=A,Q=Q?an(Q):null,Q!==null&&(bt=d(Q),$=Q.tag,Q!==bt||$!==5&&$!==27&&$!==6)&&(Q=null)):(O=null,Q=A),O!==Q)){if($=$r,D="onMouseLeave",E="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&($=Fr,D="onPointerLeave",E="onPointerEnter",g="pointer"),bt=O==null?R:Wn(O),T=Q==null?R:Wn(Q),R=new $(D,g+"leave",O,l,z),R.target=bt,R.relatedTarget=T,D=null,an(z)===A&&($=new $(E,g+"enter",Q,l,z),$.target=T,$.relatedTarget=bt,D=$),bt=D,O&&Q)e:{for($=bp,E=O,g=Q,T=0,D=E;D;D=$(D))T++;D=0;for(var k=g;k;k=$(k))D++;for(;0<T-D;)E=$(E),T--;for(;0<D-T;)g=$(g),D--;for(;T--;){if(E===g||g!==null&&E===g.alternate){$=E;break e}E=$(E),g=$(g)}$=null}else $=null;O!==null&&Vh(U,R,O,$,!1),Q!==null&&bt!==null&&Vh(U,bt,Q,$,!0)}}t:{if(R=A?Wn(A):window,O=R.nodeName&&R.nodeName.toLowerCase(),O==="select"||O==="input"&&R.type==="file")var rt=uf;else if(nf(R))if(sf)rt=zy;else{rt=Oy;var K=Ny}else O=R.nodeName,!O||O.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?A&&Yu(A.elementType)&&(rt=uf):rt=Cy;if(rt&&(rt=rt(t,A))){af(U,rt,l,z);break t}K&&K(t,R,A),t==="focusout"&&A&&R.type==="number"&&A.memoizedProps.value!=null&&Lu(R,"number",R.value)}switch(K=A?Wn(A):window,t){case"focusin":(nf(K)||K.contentEditable==="true")&&(mn=K,ts=A,ia=null);break;case"focusout":ia=ts=mn=null;break;case"mousedown":es=!0;break;case"contextmenu":case"mouseup":case"dragend":es=!1,yf(U,l,z);break;case"selectionchange":if(Dy)break;case"keydown":case"keyup":yf(U,l,z)}var et;if(Wu)t:{switch(t){case"compositionstart":var ut="onCompositionStart";break t;case"compositionend":ut="onCompositionEnd";break t;case"compositionupdate":ut="onCompositionUpdate";break t}ut=void 0}else dn?ef(t,l)&&(ut="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ut="onCompositionStart");ut&&(Pr&&l.locale!=="ko"&&(dn||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&dn&&(et=kr()):(hl=z,Zu="value"in hl?hl.value:hl.textContent,dn=!0)),K=Wi(A,ut),0<K.length&&(ut=new Wr(ut,t,null,l,z),U.push({event:ut,listeners:K}),et?ut.data=et:(et=lf(l),et!==null&&(ut.data=et)))),(et=Ey?_y(t,l):Ty(t,l))&&(ut=Wi(A,"onBeforeInput"),0<ut.length&&(K=new Wr("onBeforeInput","beforeinput",null,l,z),U.push({event:K,listeners:ut}),K.data=et)),yp(U,t,A,l,z)}Gh(U,e)})}function za(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Wi(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Fn(t,l),a!=null&&n.unshift(za(t,a,u)),a=Fn(t,e),a!=null&&n.push(za(t,a,u))),t.tag===3)return n;t=t.return}return[]}function bp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vh(t,e,l,n,a){for(var u=e._reactName,f=[];l!==null&&l!==n;){var h=l,p=h.alternate,A=h.stateNode;if(h=h.tag,p!==null&&p===n)break;h!==5&&h!==26&&h!==27||A===null||(p=A,a?(A=Fn(l,u),A!=null&&f.unshift(za(l,A,p))):a||(A=Fn(l,u),A!=null&&f.push(za(l,A,p)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var Sp=/\r\n?/g,xp=/\u0000|\uFFFD/g;function Zh(t){return(typeof t=="string"?t:""+t).replace(Sp,`
|
|
`).replace(xp,"")}function Kh(t,e){return e=Zh(e),Zh(t)===e}function gt(t,e,l,n,a,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||fn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&fn(t,""+n);break;case"className":ti(t,"class",n);break;case"tabIndex":ti(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ti(t,l,n);break;case"style":Vr(t,n,u);break;case"data":if(e!=="object"){ti(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=li(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&>(t,e,"name",a.name,a,null),gt(t,e,"formEncType",a.formEncType,a,null),gt(t,e,"formMethod",a.formMethod,a,null),gt(t,e,"formTarget",a.formTarget,a,null)):(gt(t,e,"encType",a.encType,a,null),gt(t,e,"method",a.method,a,null),gt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=li(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=Ve);break;case"onScroll":n!=null&&at("scroll",t);break;case"onScrollEnd":n!=null&&at("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=li(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":at("beforetoggle",t),at("toggle",t),Ia(t,"popover",n);break;case"xlinkActuate":Qe(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Qe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Qe(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Qe(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Qe(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Qe(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ia(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=$m.get(l)||l,Ia(t,l,n))}}function Rc(t,e,l,n,a,u){switch(l){case"style":Vr(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof n=="string"?fn(t,n):(typeof n=="number"||typeof n=="bigint")&&fn(t,""+n);break;case"onScroll":n!=null&&at("scroll",t);break;case"onScrollEnd":n!=null&&at("scrollend",t);break;case"onClick":n!=null&&(t.onclick=Ve);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Br.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),u=t[Pt]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):Ia(t,l,n)}}}function kt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",t),at("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:gt(t,e,u,f,l,null)}}a&>(t,e,"srcSet",l.srcSet,l,null),n&>(t,e,"src",l.src,l,null);return;case"input":at("invalid",t);var h=u=f=a=null,p=null,A=null;for(n in l)if(l.hasOwnProperty(n)){var z=l[n];if(z!=null)switch(n){case"name":a=z;break;case"type":f=z;break;case"checked":p=z;break;case"defaultChecked":A=z;break;case"value":u=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:gt(t,e,n,z,l,null)}}Yr(t,u,h,p,A,f,a,!1);return;case"select":at("invalid",t),n=f=u=null;for(a in l)if(l.hasOwnProperty(a)&&(h=l[a],h!=null))switch(a){case"value":u=h;break;case"defaultValue":f=h;break;case"multiple":n=h;default:gt(t,e,a,h,l,null)}e=u,l=f,t.multiple=!!n,e!=null?rn(t,!!n,e,!1):l!=null&&rn(t,!!n,l,!0);return;case"textarea":at("invalid",t),u=a=n=null;for(f in l)if(l.hasOwnProperty(f)&&(h=l[f],h!=null))switch(f){case"value":n=h;break;case"defaultValue":a=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:gt(t,e,f,h,l,null)}Gr(t,n,a,u);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(n=l[p],n!=null))switch(p){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:gt(t,e,p,n,l,null)}return;case"dialog":at("beforetoggle",t),at("toggle",t),at("cancel",t),at("close",t);break;case"iframe":case"object":at("load",t);break;case"video":case"audio":for(n=0;n<Ca.length;n++)at(Ca[n],t);break;case"image":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"embed":case"source":case"link":at("error",t),at("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(n=l[A],n!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:gt(t,e,A,n,l,null)}return;default:if(Yu(e)){for(z in l)l.hasOwnProperty(z)&&(n=l[z],n!==void 0&&Rc(t,e,z,n,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null&>(t,e,h,n,l,null))}function Ep(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,f=null,h=null,p=null,A=null,z=null;for(O in l){var U=l[O];if(l.hasOwnProperty(O)&&U!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":p=U;default:n.hasOwnProperty(O)||gt(t,e,O,null,n,U)}}for(var R in n){var O=n[R];if(U=l[R],n.hasOwnProperty(R)&&(O!=null||U!=null))switch(R){case"type":u=O;break;case"name":a=O;break;case"checked":A=O;break;case"defaultChecked":z=O;break;case"value":f=O;break;case"defaultValue":h=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:O!==U&>(t,e,R,O,n,U)}}qu(t,f,h,p,A,z,u,a);return;case"select":O=f=h=R=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":O=p;default:n.hasOwnProperty(u)||gt(t,e,u,null,n,p)}for(a in n)if(u=n[a],p=l[a],n.hasOwnProperty(a)&&(u!=null||p!=null))switch(a){case"value":R=u;break;case"defaultValue":h=u;break;case"multiple":f=u;default:u!==p&>(t,e,a,u,n,p)}e=h,l=f,n=O,R!=null?rn(t,!!l,R,!1):!!n!=!!l&&(e!=null?rn(t,!!l,e,!0):rn(t,!!l,l?[]:"",!1));return;case"textarea":O=R=null;for(h in l)if(a=l[h],l.hasOwnProperty(h)&&a!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:gt(t,e,h,null,n,a)}for(f in n)if(a=n[f],u=l[f],n.hasOwnProperty(f)&&(a!=null||u!=null))switch(f){case"value":R=a;break;case"defaultValue":O=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==u&>(t,e,f,a,n,u)}Xr(t,R,O);return;case"option":for(var Q in l)if(R=l[Q],l.hasOwnProperty(Q)&&R!=null&&!n.hasOwnProperty(Q))switch(Q){case"selected":t.selected=!1;break;default:gt(t,e,Q,null,n,R)}for(p in n)if(R=n[p],O=l[p],n.hasOwnProperty(p)&&R!==O&&(R!=null||O!=null))switch(p){case"selected":t.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:gt(t,e,p,R,n,O)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $ in l)R=l[$],l.hasOwnProperty($)&&R!=null&&!n.hasOwnProperty($)&>(t,e,$,null,n,R);for(A in n)if(R=n[A],O=l[A],n.hasOwnProperty(A)&&R!==O&&(R!=null||O!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,e));break;default:gt(t,e,A,R,n,O)}return;default:if(Yu(e)){for(var bt in l)R=l[bt],l.hasOwnProperty(bt)&&R!==void 0&&!n.hasOwnProperty(bt)&&Rc(t,e,bt,void 0,n,R);for(z in n)R=n[z],O=l[z],!n.hasOwnProperty(z)||R===O||R===void 0&&O===void 0||Rc(t,e,z,R,n,O);return}}for(var E in l)R=l[E],l.hasOwnProperty(E)&&R!=null&&!n.hasOwnProperty(E)&>(t,e,E,null,n,R);for(U in n)R=n[U],O=l[U],!n.hasOwnProperty(U)||R===O||R==null&&O==null||gt(t,e,U,R,n,O)}function kh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _p(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,f=a.initiatorType,h=a.duration;if(u&&h&&kh(f)){for(f=0,h=a.responseEnd,n+=1;n<l.length;n++){var p=l[n],A=p.startTime;if(A>h)break;var z=p.transferSize,U=p.initiatorType;z&&kh(U)&&(p=p.responseEnd,f+=z*(p<h?1:(h-A)/(p-A)))}if(--n,e+=8*(u+f)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Nc=null,Oc=null;function Fi(t){return t.nodeType===9?t:t.ownerDocument}function Jh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $h(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Cc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var zc=null;function Tp(){var t=window.event;return t&&t.type==="popstate"?t===zc?!1:(zc=t,!0):(zc=null,!1)}var Wh=typeof setTimeout=="function"?setTimeout:void 0,Ap=typeof clearTimeout=="function"?clearTimeout:void 0,Fh=typeof Promise=="function"?Promise:void 0,Rp=typeof queueMicrotask=="function"?queueMicrotask:typeof Fh<"u"?function(t){return Fh.resolve(null).then(t).catch(Np)}:Wh;function Np(t){setTimeout(function(){throw t})}function Cl(t){return t==="head"}function Ph(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),Xn(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ma(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Ma(l);for(var u=l.firstChild;u;){var f=u.nextSibling,h=u.nodeName;u[$n]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=f}}else l==="body"&&Ma(t.ownerDocument.body);l=a}while(l);Xn(e)}function Ih(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Mc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Mc(l),ju(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Op(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[$n])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Re(t.nextSibling),t===null)break}return null}function Cp(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Re(t.nextSibling),t===null))return null;return t}function td(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Re(t.nextSibling),t===null))return null;return t}function Dc(t){return t.data==="$?"||t.data==="$~"}function Uc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function zp(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Re(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var wc=null;function ed(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Re(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function ld(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function nd(t,e,l){switch(e=Fi(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ma(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ju(t)}var Ne=new Map,ad=new Set;function Pi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ul=q.d;q.d={f:Mp,r:Dp,D:Up,C:wp,L:Bp,m:jp,X:qp,S:Hp,M:Lp};function Mp(){var t=ul.f(),e=Qi();return t||e}function Dp(t){var e=un(t);e!==null&&e.tag===5&&e.type==="form"?xo(e):ul.r(t)}var qn=typeof document>"u"?null:document;function id(t,e,l){var n=qn;if(n&&typeof e=="string"&&e){var a=be(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),ad.has(a)||(ad.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),kt(e,"link",t),Xt(e),n.head.appendChild(e)))}}function Up(t){ul.D(t),id("dns-prefetch",t,null)}function wp(t,e){ul.C(t,e),id("preconnect",t,e)}function Bp(t,e,l){ul.L(t,e,l);var n=qn;if(n&&t&&e){var a='link[rel="preload"][as="'+be(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+be(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+be(l.imageSizes)+'"]')):a+='[href="'+be(t)+'"]';var u=a;switch(e){case"style":u=Ln(t);break;case"script":u=Yn(t)}Ne.has(u)||(t=N({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ne.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Da(u))||e==="script"&&n.querySelector(Ua(u))||(e=n.createElement("link"),kt(e,"link",t),Xt(e),n.head.appendChild(e)))}}function jp(t,e){ul.m(t,e);var l=qn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+be(n)+'"][href="'+be(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Yn(t)}if(!Ne.has(u)&&(t=N({rel:"modulepreload",href:t},e),Ne.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ua(u)))return}n=l.createElement("link"),kt(n,"link",t),Xt(n),l.head.appendChild(n)}}}function Hp(t,e,l){ul.S(t,e,l);var n=qn;if(n&&t){var a=sn(n).hoistableStyles,u=Ln(t);e=e||"default";var f=a.get(u);if(!f){var h={loading:0,preload:null};if(f=n.querySelector(Da(u)))h.loading=5;else{t=N({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ne.get(u))&&Bc(t,l);var p=f=n.createElement("link");Xt(p),kt(p,"link",t),p._p=new Promise(function(A,z){p.onload=A,p.onerror=z}),p.addEventListener("load",function(){h.loading|=1}),p.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Ii(f,e,n)}f={type:"stylesheet",instance:f,count:1,state:h},a.set(u,f)}}}function qp(t,e){ul.X(t,e);var l=qn;if(l&&t){var n=sn(l).hoistableScripts,a=Yn(t),u=n.get(a);u||(u=l.querySelector(Ua(a)),u||(t=N({src:t,async:!0},e),(e=Ne.get(a))&&jc(t,e),u=l.createElement("script"),Xt(u),kt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Lp(t,e){ul.M(t,e);var l=qn;if(l&&t){var n=sn(l).hoistableScripts,a=Yn(t),u=n.get(a);u||(u=l.querySelector(Ua(a)),u||(t=N({src:t,async:!0,type:"module"},e),(e=Ne.get(a))&&jc(t,e),u=l.createElement("script"),Xt(u),kt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function ud(t,e,l,n){var a=(a=lt.current)?Pi(a):null;if(!a)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ln(l.href),l=sn(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ln(l.href);var u=sn(a).hoistableStyles,f=u.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=a.querySelector(Da(t)))&&!u._p&&(f.instance=u,f.state.loading=5),Ne.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ne.set(t,l),u||Yp(a,t,l,f.state))),e&&n===null)throw Error(r(528,""));return f}if(e&&n!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Yn(l),l=sn(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Ln(t){return'href="'+be(t)+'"'}function Da(t){return'link[rel="stylesheet"]['+t+"]"}function sd(t){return N({},t,{"data-precedence":t.precedence,precedence:null})}function Yp(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),kt(e,"link",l),Xt(e),t.head.appendChild(e))}function Yn(t){return'[src="'+be(t)+'"]'}function Ua(t){return"script[async]"+t}function cd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+be(l.href)+'"]');if(n)return e.instance=n,Xt(n),n;var a=N({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Xt(n),kt(n,"style",a),Ii(n,l.precedence,t),e.instance=n;case"stylesheet":a=Ln(l.href);var u=t.querySelector(Da(a));if(u)return e.state.loading|=4,e.instance=u,Xt(u),u;n=sd(l),(a=Ne.get(a))&&Bc(n,a),u=(t.ownerDocument||t).createElement("link"),Xt(u);var f=u;return f._p=new Promise(function(h,p){f.onload=h,f.onerror=p}),kt(u,"link",n),e.state.loading|=4,Ii(u,l.precedence,t),e.instance=u;case"script":return u=Yn(l.src),(a=t.querySelector(Ua(u)))?(e.instance=a,Xt(a),a):(n=l,(a=Ne.get(u))&&(n=N({},l),jc(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Xt(a),kt(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Ii(n,l.precedence,t));return e.instance}function Ii(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,f=0;f<n.length;f++){var h=n[f];if(h.dataset.precedence===e)u=h;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Bc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function jc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var tu=null;function rd(t,e,l){if(tu===null){var n=new Map,a=tu=new Map;a.set(l,n)}else a=tu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var u=l[a];if(!(u[$n]||u[Qt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var h=n.get(f);h?h.push(u):n.set(f,[u])}}return n}function fd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Xp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function od(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Gp(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Ln(n.href),u=e.querySelector(Da(a));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=eu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Xt(u);return}u=e.ownerDocument||e,n=sd(n),(a=Ne.get(a))&&Bc(n,a),u=u.createElement("link"),Xt(u);var f=u;f._p=new Promise(function(h,p){f.onload=h,f.onerror=p}),kt(u,"link",n),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=eu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Hc=0;function Qp(t,e){return t.stylesheets&&t.count===0&&nu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Hc===0&&(Hc=62500*_p());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Hc?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var lu=null;function nu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,lu=new Map,e.forEach(Vp,t),lu=null,eu.call(t))}function Vp(t,e){if(!(e.state.loading&4)){var l=lu.get(t);if(l)var n=l.get(null);else{l=new Map,lu.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var f=a[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}a=e.instance,f=a.getAttribute("data-precedence"),u=l.get(f)||n,u===n&&l.set(null,a),l.set(f,a),this.count++,n=eu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var wa={$$typeof:J,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Zp(t,e,l,n,a,u,f,h,p){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.hiddenUpdates=Du(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function hd(t,e,l,n,a,u,f,h,p,A,z,U){return t=new Zp(t,e,l,f,p,A,z,U,h),e=1,u===!0&&(e|=24),u=oe(3,null,null,e),t.current=u,u.stateNode=t,e=ps(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},Ss(u),t}function dd(t){return t?(t=vn,t):vn}function md(t,e,l,n,a,u){a=dd(a),n.context===null?n.context=a:n.pendingContext=a,n=gl(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=bl(t,n,e),l!==null&&(ae(l,t,e),ha(l,t,e))}function yd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function qc(t,e){yd(t,e),(t=t.alternate)&&yd(t,e)}function pd(t){if(t.tag===13||t.tag===31){var e=Ql(t,67108864);e!==null&&ae(e,t,67108864),qc(t,67108864)}}function vd(t){if(t.tag===13||t.tag===31){var e=pe();e=Uu(e);var l=Ql(t,e);l!==null&&ae(l,t,e),qc(t,e)}}var au=!0;function Kp(t,e,l,n){var a=M.T;M.T=null;var u=q.p;try{q.p=2,Lc(t,e,l,n)}finally{q.p=u,M.T=a}}function kp(t,e,l,n){var a=M.T;M.T=null;var u=q.p;try{q.p=8,Lc(t,e,l,n)}finally{q.p=u,M.T=a}}function Lc(t,e,l,n){if(au){var a=Yc(n);if(a===null)Ac(t,e,n,iu,l),bd(t,n);else if($p(a,t,e,l,n))n.stopPropagation();else if(bd(t,n),e&4&&-1<Jp.indexOf(t)){for(;a!==null;){var u=un(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=ql(u.pendingLanes);if(f!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var p=1<<31-re(f);h.entanglements[1]|=p,f&=~p}qe(u),(ot&6)===0&&(Xi=se()+500,Oa(0))}}break;case 31:case 13:h=Ql(u,2),h!==null&&ae(h,u,2),Qi(),qc(u,2)}if(u=Yc(n),u===null&&Ac(t,e,n,iu,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Ac(t,e,n,null,l)}}function Yc(t){return t=Gu(t),Xc(t)}var iu=null;function Xc(t){if(iu=null,t=an(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=m(e),t!==null)return t;t=null}else if(l===31){if(t=b(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return iu=t,null}function gd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Um()){case Tr:return 2;case Ar:return 8;case Ja:case wm:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Gc=!1,zl=null,Ml=null,Dl=null,Ba=new Map,ja=new Map,Ul=[],Jp="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 bd(t,e){switch(t){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":Ba.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ja.delete(e.pointerId)}}function Ha(t,e,l,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},e!==null&&(e=un(e),e!==null&&pd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function $p(t,e,l,n,a){switch(e){case"focusin":return zl=Ha(zl,t,e,l,n,a),!0;case"dragenter":return Ml=Ha(Ml,t,e,l,n,a),!0;case"mouseover":return Dl=Ha(Dl,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return Ba.set(u,Ha(Ba.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,ja.set(u,Ha(ja.get(u)||null,t,e,l,n,a)),!0}return!1}function Sd(t){var e=an(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=m(l),e!==null){t.blockedOn=e,Dr(t.priority,function(){vd(l)});return}}else if(e===31){if(e=b(l),e!==null){t.blockedOn=e,Dr(t.priority,function(){vd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function uu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Yc(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Xu=n,l.target.dispatchEvent(n),Xu=null}else return e=un(l),e!==null&&pd(e),t.blockedOn=l,!1;e.shift()}return!0}function xd(t,e,l){uu(t)&&l.delete(e)}function Wp(){Gc=!1,zl!==null&&uu(zl)&&(zl=null),Ml!==null&&uu(Ml)&&(Ml=null),Dl!==null&&uu(Dl)&&(Dl=null),Ba.forEach(xd),ja.forEach(xd)}function su(t,e){t.blockedOn===e&&(t.blockedOn=null,Gc||(Gc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wp)))}var cu=null;function Ed(t){cu!==t&&(cu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){cu===t&&(cu=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(Xc(n||l)===null)continue;break}var u=un(l);u!==null&&(t.splice(e,3),e-=3,Ys(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Xn(t){function e(p){return su(p,t)}zl!==null&&su(zl,t),Ml!==null&&su(Ml,t),Dl!==null&&su(Dl,t),Ba.forEach(e),ja.forEach(e);for(var l=0;l<Ul.length;l++){var n=Ul[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)Sd(l),l.blockedOn===null&&Ul.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],f=a[Pt]||null;if(typeof u=="function")f||Ed(l);else if(f){var h=null;if(u&&u.hasAttribute("formAction")){if(a=u,f=u[Pt]||null)h=f.formAction;else if(Xc(a)!==null)continue}else h=f.action;typeof h=="function"?l[n+1]=h:(l.splice(n,3),n-=3),Ed(l)}}}function _d(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return a=f})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function Qc(t){this._internalRoot=t}ru.prototype.render=Qc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,n=pe();md(l,n,t,e,null,null)},ru.prototype.unmount=Qc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;md(t.current,2,null,t,null,null),Qi(),e[nn]=null}};function ru(t){this._internalRoot=t}ru.prototype.unstable_scheduleHydration=function(t){if(t){var e=Mr();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ul.length&&e!==0&&e<Ul[l].priority;l++);Ul.splice(l,0,t),l===0&&Sd(t)}};var Td=i.version;if(Td!=="19.2.0")throw Error(r(527,Td,"19.2.0"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=v(e),t=t!==null?C(t):null,t=t===null?null:t.stateNode,t};var Fp={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fu.isDisabled&&fu.supportsFiber)try{Kn=fu.inject(Fp),ce=fu}catch{}}return La.createRoot=function(t,e){if(!o(t))throw Error(r(299));var l=!1,n="",a=Mo,u=Do,f=Uo;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=hd(t,1,!1,null,null,l,n,null,a,u,f,_d),t[nn]=e.current,Tc(t),new Qc(e)},La.hydrateRoot=function(t,e,l){if(!o(t))throw Error(r(299));var n=!1,a="",u=Mo,f=Do,h=Uo,p=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),e=hd(t,1,!0,e,l??null,n,a,p,u,f,h,_d),e.context=dd(null),l=e.current,n=pe(),n=Uu(n),a=gl(n),a.callback=null,bl(l,a,n),l=n,e.current.lanes=l,Jn(e,l),qe(e),t[nn]=e.current,Tc(t),new ru(e)},La.version="19.2.0",La}var wd;function s0(){if(wd)return Kc.exports;wd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Kc.exports=u0(),Kc.exports}var c0=s0();var Bd="popstate";function r0(s={}){function i(r,o){let{pathname:d,search:m,hash:b}=r.location;return er("",{pathname:d,search:m,hash:b},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function c(r,o){return typeof o=="string"?o:Qa(o)}return o0(i,c,null,s)}function Rt(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function we(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function f0(){return Math.random().toString(36).substring(2,10)}function jd(s,i){return{usr:s.state,key:s.key,idx:i}}function er(s,i,c=null,r){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof i=="string"?Gn(i):i,state:c,key:i&&i.key||r||f0()}}function Qa({pathname:s="/",search:i="",hash:c=""}){return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Gn(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substring(r),s=s.substring(0,r)),s&&(i.pathname=s)}return i}function o0(s,i,c,r={}){let{window:o=document.defaultView,v5Compat:d=!1}=r,m=o.history,b="POP",y=null,v=C();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function C(){return(m.state||{idx:null}).idx}function N(){b="POP";let G=C(),X=G==null?null:G-v;v=G,y&&y({action:b,location:Y.location,delta:X})}function j(G,X){b="PUSH";let V=er(Y.location,G,X);v=C()+1;let J=jd(V,v),dt=Y.createHref(V);try{m.pushState(J,"",dt)}catch(Tt){if(Tt instanceof DOMException&&Tt.name==="DataCloneError")throw Tt;o.location.assign(dt)}d&&y&&y({action:b,location:Y.location,delta:1})}function w(G,X){b="REPLACE";let V=er(Y.location,G,X);v=C();let J=jd(V,v),dt=Y.createHref(V);m.replaceState(J,"",dt),d&&y&&y({action:b,location:Y.location,delta:0})}function H(G){return h0(G)}let Y={get action(){return b},get location(){return s(o,m)},listen(G){if(y)throw new Error("A history only accepts one active listener");return o.addEventListener(Bd,N),y=G,()=>{o.removeEventListener(Bd,N),y=null}},createHref(G){return i(o,G)},createURL:H,encodeLocation(G){let X=H(G);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:j,replace:w,go(G){return m.go(G)}};return Y}function h0(s,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Rt(c,"No window.location.(origin|href) available to create URL");let r=typeof s=="string"?s:Qa(s);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function kd(s,i,c="/"){return d0(s,i,c,!1)}function d0(s,i,c,r){let o=typeof i=="string"?Gn(i):i,d=cl(o.pathname||"/",c);if(d==null)return null;let m=Jd(s);m0(m);let b=null;for(let y=0;b==null&&y<m.length;++y){let v=A0(d);b=_0(m[y],v,r)}return b}function Jd(s,i=[],c=[],r="",o=!1){let d=(m,b,y=o,v)=>{let C={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:b,route:m};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(r)&&y)return;Rt(C.relativePath.startsWith(r),`Absolute route path "${C.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(r.length)}let N=sl([r,C.relativePath]),j=c.concat(C);m.children&&m.children.length>0&&(Rt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),Jd(m.children,i,j,N,y)),!(m.path==null&&!m.index)&&i.push({path:N,score:x0(N,m.index),routesMeta:j})};return s.forEach((m,b)=>{if(m.path===""||!m.path?.includes("?"))d(m,b);else for(let y of $d(m.path))d(m,b,!0,y)}),i}function $d(s){let i=s.split("/");if(i.length===0)return[];let[c,...r]=i,o=c.endsWith("?"),d=c.replace(/\?$/,"");if(r.length===0)return o?[d,""]:[d];let m=$d(r.join("/")),b=[];return b.push(...m.map(y=>y===""?d:[d,y].join("/"))),o&&b.push(...m),b.map(y=>s.startsWith("/")&&y===""?"/":y)}function m0(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:E0(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var y0=/^:[\w-]+$/,p0=3,v0=2,g0=1,b0=10,S0=-2,Hd=s=>s==="*";function x0(s,i){let c=s.split("/"),r=c.length;return c.some(Hd)&&(r+=S0),i&&(r+=v0),c.filter(o=>!Hd(o)).reduce((o,d)=>o+(y0.test(d)?p0:d===""?g0:b0),r)}function E0(s,i){return s.length===i.length&&s.slice(0,-1).every((r,o)=>r===i[o])?s[s.length-1]-i[i.length-1]:0}function _0(s,i,c=!1){let{routesMeta:r}=s,o={},d="/",m=[];for(let b=0;b<r.length;++b){let y=r[b],v=b===r.length-1,C=d==="/"?i:i.slice(d.length)||"/",N=Su({path:y.relativePath,caseSensitive:y.caseSensitive,end:v},C),j=y.route;if(!N&&v&&c&&!r[r.length-1].route.index&&(N=Su({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},C)),!N)return null;Object.assign(o,N.params),m.push({params:o,pathname:sl([d,N.pathname]),pathnameBase:z0(sl([d,N.pathnameBase])),route:j}),N.pathnameBase!=="/"&&(d=sl([d,N.pathnameBase]))}return m}function Su(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=T0(s.path,s.caseSensitive,s.end),o=i.match(c);if(!o)return null;let d=o[0],m=d.replace(/(.)\/+$/,"$1"),b=o.slice(1);return{params:r.reduce((v,{paramName:C,isOptional:N},j)=>{if(C==="*"){let H=b[j]||"";m=d.slice(0,d.length-H.length).replace(/(.)\/+$/,"$1")}const w=b[j];return N&&!w?v[C]=void 0:v[C]=(w||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:m,pattern:s}}function T0(s,i=!1,c=!0){we(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,b,y)=>(r.push({paramName:b,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function A0(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return we(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),s}}function cl(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var R0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,N0=s=>R0.test(s);function O0(s,i="/"){let{pathname:c,search:r="",hash:o=""}=typeof s=="string"?Gn(s):s,d;if(c)if(N0(c))d=c;else{if(c.includes("//")){let m=c;c=c.replace(/\/\/+/g,"/"),we(!1,`Pathnames cannot have embedded double slashes - normalizing ${m} -> ${c}`)}c.startsWith("/")?d=qd(c.substring(1),"/"):d=qd(c,i)}else d=i;return{pathname:d,search:M0(r),hash:D0(o)}}function qd(s,i){let c=i.replace(/\/+$/,"").split("/");return s.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Wc(s,i,c,r){return`Cannot include a '${s}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function C0(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function Wd(s){let i=C0(s);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function Fd(s,i,c,r=!1){let o;typeof s=="string"?o=Gn(s):(o={...s},Rt(!o.pathname||!o.pathname.includes("?"),Wc("?","pathname","search",o)),Rt(!o.pathname||!o.pathname.includes("#"),Wc("#","pathname","hash",o)),Rt(!o.search||!o.search.includes("#"),Wc("#","search","hash",o)));let d=s===""||o.pathname==="",m=d?"/":o.pathname,b;if(m==null)b=c;else{let N=i.length-1;if(!r&&m.startsWith("..")){let j=m.split("/");for(;j[0]==="..";)j.shift(),N-=1;o.pathname=j.join("/")}b=N>=0?i[N]:"/"}let y=O0(o,b),v=m&&m!=="/"&&m.endsWith("/"),C=(d||m===".")&&c.endsWith("/");return!y.pathname.endsWith("/")&&(v||C)&&(y.pathname+="/"),y}var sl=s=>s.join("/").replace(/\/\/+/g,"/"),z0=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),M0=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,D0=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s;function U0(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Pd=["POST","PUT","PATCH","DELETE"];new Set(Pd);var w0=["GET",...Pd];new Set(w0);var Qn=_.createContext(null);Qn.displayName="DataRouter";var xu=_.createContext(null);xu.displayName="DataRouterState";_.createContext(!1);var Id=_.createContext({isTransitioning:!1});Id.displayName="ViewTransition";var B0=_.createContext(new Map);B0.displayName="Fetchers";var j0=_.createContext(null);j0.displayName="Await";var Xe=_.createContext(null);Xe.displayName="Navigation";var Va=_.createContext(null);Va.displayName="Location";var rl=_.createContext({outlet:null,matches:[],isDataRoute:!1});rl.displayName="Route";var or=_.createContext(null);or.displayName="RouteError";function H0(s,{relative:i}={}){Rt(Za(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=_.useContext(Xe),{hash:o,pathname:d,search:m}=Ka(s,{relative:i}),b=d;return c!=="/"&&(b=d==="/"?c:sl([c,d])),r.createHref({pathname:b,search:m,hash:o})}function Za(){return _.useContext(Va)!=null}function ln(){return Rt(Za(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Va).location}var tm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function em(s){_.useContext(Xe).static||_.useLayoutEffect(s)}function q0(){let{isDataRoute:s}=_.useContext(rl);return s?F0():L0()}function L0(){Rt(Za(),"useNavigate() may be used only in the context of a <Router> component.");let s=_.useContext(Qn),{basename:i,navigator:c}=_.useContext(Xe),{matches:r}=_.useContext(rl),{pathname:o}=ln(),d=JSON.stringify(Wd(r)),m=_.useRef(!1);return em(()=>{m.current=!0}),_.useCallback((y,v={})=>{if(we(m.current,tm),!m.current)return;if(typeof y=="number"){c.go(y);return}let C=Fd(y,JSON.parse(d),o,v.relative==="path");s==null&&i!=="/"&&(C.pathname=C.pathname==="/"?i:sl([i,C.pathname])),(v.replace?c.replace:c.push)(C,v.state,v)},[i,c,d,o,s])}_.createContext(null);function Ka(s,{relative:i}={}){let{matches:c}=_.useContext(rl),{pathname:r}=ln(),o=JSON.stringify(Wd(c));return _.useMemo(()=>Fd(s,JSON.parse(o),r,i==="path"),[s,o,r,i])}function Y0(s,i){return lm(s,i)}function lm(s,i,c,r,o){Rt(Za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=_.useContext(Xe),{matches:m}=_.useContext(rl),b=m[m.length-1],y=b?b.params:{},v=b?b.pathname:"/",C=b?b.pathnameBase:"/",N=b&&b.route;{let V=N&&N.path||"";nm(v,!N||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (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 j=ln(),w;if(i){let V=typeof i=="string"?Gn(i):i;Rt(C==="/"||V.pathname?.startsWith(C),`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 "${C}" but pathname "${V.pathname}" was given in the \`location\` prop.`),w=V}else w=j;let H=w.pathname||"/",Y=H;if(C!=="/"){let V=C.replace(/^\//,"").split("/");Y="/"+H.replace(/^\//,"").split("/").slice(V.length).join("/")}let G=kd(s,{pathname:Y});we(N||G!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),we(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=Z0(G&&G.map(V=>Object.assign({},V,{params:Object.assign({},y,V.params),pathname:sl([C,d.encodeLocation?d.encodeLocation(V.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?C:sl([C,d.encodeLocation?d.encodeLocation(V.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathnameBase])})),m,c,r,o);return i&&X?_.createElement(Va.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},X):X}function X0(){let s=W0(),i=U0(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",s),m=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:d},"ErrorBoundary")," or"," ",_.createElement("code",{style:d},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},i),c?_.createElement("pre",{style:o},c):null,m)}var G0=_.createElement(X0,null),Q0=class extends _.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){this.props.onError?this.props.onError(s,i):console.error("React Router caught the following error during render",s)}render(){return this.state.error!==void 0?_.createElement(rl.Provider,{value:this.props.routeContext},_.createElement(or.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function V0({routeContext:s,match:i,children:c}){let r=_.useContext(Qn);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),_.createElement(rl.Provider,{value:s},c)}function Z0(s,i=[],c=null,r=null,o=null){if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let d=s,m=c?.errors;if(m!=null){let C=d.findIndex(N=>N.route.id&&m?.[N.route.id]!==void 0);Rt(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,C+1))}let b=!1,y=-1;if(c)for(let C=0;C<d.length;C++){let N=d[C];if((N.route.HydrateFallback||N.route.hydrateFallbackElement)&&(y=C),N.route.id){let{loaderData:j,errors:w}=c,H=N.route.loader&&!j.hasOwnProperty(N.route.id)&&(!w||w[N.route.id]===void 0);if(N.route.lazy||H){b=!0,y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}let v=c&&r?(C,N)=>{r(C,{location:c.location,params:c.matches?.[0]?.params??{},errorInfo:N})}:void 0;return d.reduceRight((C,N,j)=>{let w,H=!1,Y=null,G=null;c&&(w=m&&N.route.id?m[N.route.id]:void 0,Y=N.route.errorElement||G0,b&&(y<0&&j===0?(nm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,G=null):y===j&&(H=!0,G=N.route.hydrateFallbackElement||null)));let X=i.concat(d.slice(0,j+1)),V=()=>{let J;return w?J=Y:H?J=G:N.route.Component?J=_.createElement(N.route.Component,null):N.route.element?J=N.route.element:J=C,_.createElement(V0,{match:N,routeContext:{outlet:C,matches:X,isDataRoute:c!=null},children:J})};return c&&(N.route.ErrorBoundary||N.route.errorElement||j===0)?_.createElement(Q0,{location:c.location,revalidation:c.revalidation,component:Y,error:w,children:V(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:v}):V()},null)}function hr(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K0(s){let i=_.useContext(Qn);return Rt(i,hr(s)),i}function k0(s){let i=_.useContext(xu);return Rt(i,hr(s)),i}function J0(s){let i=_.useContext(rl);return Rt(i,hr(s)),i}function dr(s){let i=J0(s),c=i.matches[i.matches.length-1];return Rt(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function $0(){return dr("useRouteId")}function W0(){let s=_.useContext(or),i=k0("useRouteError"),c=dr("useRouteError");return s!==void 0?s:i.errors?.[c]}function F0(){let{router:s}=K0("useNavigate"),i=dr("useNavigate"),c=_.useRef(!1);return em(()=>{c.current=!0}),_.useCallback(async(o,d={})=>{we(c.current,tm),c.current&&(typeof o=="number"?s.navigate(o):await s.navigate(o,{fromRouteId:i,...d}))},[s,i])}var Ld={};function nm(s,i,c){!i&&!Ld[s]&&(Ld[s]=!0,we(!1,c))}_.memo(P0);function P0({routes:s,future:i,state:c,unstable_onError:r}){return lm(s,void 0,c,r,i)}function lr(s){Rt(!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 I0({basename:s="/",children:i=null,location:c,navigationType:r="POP",navigator:o,static:d=!1}){Rt(!Za(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=s.replace(/^\/*/,"/"),b=_.useMemo(()=>({basename:m,navigator:o,static:d,future:{}}),[m,o,d]);typeof c=="string"&&(c=Gn(c));let{pathname:y="/",search:v="",hash:C="",state:N=null,key:j="default"}=c,w=_.useMemo(()=>{let H=cl(y,m);return H==null?null:{location:{pathname:H,search:v,hash:C,state:N,key:j},navigationType:r}},[m,y,v,C,N,j,r]);return we(w!=null,`<Router basename="${m}"> is not able to match the URL "${y}${v}${C}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:_.createElement(Xe.Provider,{value:b},_.createElement(Va.Provider,{children:i,value:w}))}function tv({children:s,location:i}){return Y0(nr(s),i)}function nr(s,i=[]){let c=[];return _.Children.forEach(s,(r,o)=>{if(!_.isValidElement(r))return;let d=[...i,o];if(r.type===_.Fragment){c.push.apply(c,nr(r.props.children,d));return}Rt(r.type===lr,`[${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>`),Rt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,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&&(m.children=nr(r.props.children,d)),c.push(m)}),c}var mu="get",yu="application/x-www-form-urlencoded";function Eu(s){return s!=null&&typeof s.tagName=="string"}function ev(s){return Eu(s)&&s.tagName.toLowerCase()==="button"}function lv(s){return Eu(s)&&s.tagName.toLowerCase()==="form"}function nv(s){return Eu(s)&&s.tagName.toLowerCase()==="input"}function av(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function iv(s,i){return s.button===0&&(!i||i==="_self")&&!av(s)}var ou=null;function uv(){if(ou===null)try{new FormData(document.createElement("form"),0),ou=!1}catch{ou=!0}return ou}var sv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fc(s){return s!=null&&!sv.has(s)?(we(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yu}"`),null):s}function cv(s,i){let c,r,o,d,m;if(lv(s)){let b=s.getAttribute("action");r=b?cl(b,i):null,c=s.getAttribute("method")||mu,o=Fc(s.getAttribute("enctype"))||yu,d=new FormData(s)}else if(ev(s)||nv(s)&&(s.type==="submit"||s.type==="image")){let b=s.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||b.getAttribute("action");if(r=y?cl(y,i):null,c=s.getAttribute("formmethod")||b.getAttribute("method")||mu,o=Fc(s.getAttribute("formenctype"))||Fc(b.getAttribute("enctype"))||yu,d=new FormData(b,s),!uv()){let{name:v,type:C,value:N}=s;if(C==="image"){let j=v?`${v}.`:"";d.append(`${j}x`,"0"),d.append(`${j}y`,"0")}else v&&d.append(v,N)}}else{if(Eu(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=mu,r=null,o=yu,m=s}return d&&o==="text/plain"&&(m=d,d=void 0),{action:r,method:c.toLowerCase(),encType:o,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mr(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function rv(s,i,c){let r=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return r.pathname==="/"?r.pathname=`_root.${c}`:i&&cl(r.pathname,i)==="/"?r.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${c}`,r}async function fv(s,i){if(s.id in i)return i[s.id];try{let c=await import(s.module);return i[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ov(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function hv(s,i,c){let r=await Promise.all(s.map(async o=>{let d=i.routes[o.route.id];if(d){let m=await fv(d,c);return m.links?m.links():[]}return[]}));return pv(r.flat(1).filter(ov).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Yd(s,i,c,r,o,d){let m=(y,v)=>c[v]?y.route.id!==c[v].route.id:!0,b=(y,v)=>c[v].pathname!==y.pathname||c[v].route.path?.endsWith("*")&&c[v].params["*"]!==y.params["*"];return d==="assets"?i.filter((y,v)=>m(y,v)||b(y,v)):d==="data"?i.filter((y,v)=>{let C=r.routes[y.route.id];if(!C||!C.hasLoader)return!1;if(m(y,v)||b(y,v))return!0;if(y.route.shouldRevalidate){let N=y.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:c[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function dv(s,i,{includeHydrateFallback:c}={}){return mv(s.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let d=[o.module];return o.clientActionModule&&(d=d.concat(o.clientActionModule)),o.clientLoaderModule&&(d=d.concat(o.clientLoaderModule)),c&&o.hydrateFallbackModule&&(d=d.concat(o.hydrateFallbackModule)),o.imports&&(d=d.concat(o.imports)),d}).flat(1))}function mv(s){return[...new Set(s)]}function yv(s){let i={},c=Object.keys(s).sort();for(let r of c)i[r]=s[r];return i}function pv(s,i){let c=new Set;return new Set(i),s.reduce((r,o)=>{let d=JSON.stringify(yv(o));return c.has(d)||(c.add(d),r.push({key:d,link:o})),r},[])}function am(){let s=_.useContext(Qn);return mr(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function vv(){let s=_.useContext(xu);return mr(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var yr=_.createContext(void 0);yr.displayName="FrameworkContext";function im(){let s=_.useContext(yr);return mr(s,"You must render this element inside a <HydratedRouter> element"),s}function gv(s,i){let c=_.useContext(yr),[r,o]=_.useState(!1),[d,m]=_.useState(!1),{onFocus:b,onBlur:y,onMouseEnter:v,onMouseLeave:C,onTouchStart:N}=i,j=_.useRef(null);_.useEffect(()=>{if(s==="render"&&m(!0),s==="viewport"){let Y=X=>{X.forEach(V=>{m(V.isIntersecting)})},G=new IntersectionObserver(Y,{threshold:.5});return j.current&&G.observe(j.current),()=>{G.disconnect()}}},[s]),_.useEffect(()=>{if(r){let Y=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(Y)}}},[r]);let w=()=>{o(!0)},H=()=>{o(!1),m(!1)};return c?s!=="intent"?[d,j,{}]:[d,j,{onFocus:Ya(b,w),onBlur:Ya(y,H),onMouseEnter:Ya(v,w),onMouseLeave:Ya(C,H),onTouchStart:Ya(N,w)}]:[!1,j,{}]}function Ya(s,i){return c=>{s&&s(c),c.defaultPrevented||i(c)}}function bv({page:s,...i}){let{router:c}=am(),r=_.useMemo(()=>kd(c.routes,s,c.basename),[c.routes,s,c.basename]);return r?_.createElement(xv,{page:s,matches:r,...i}):null}function Sv(s){let{manifest:i,routeModules:c}=im(),[r,o]=_.useState([]);return _.useEffect(()=>{let d=!1;return hv(s,i,c).then(m=>{d||o(m)}),()=>{d=!0}},[s,i,c]),r}function xv({page:s,matches:i,...c}){let r=ln(),{manifest:o,routeModules:d}=im(),{basename:m}=am(),{loaderData:b,matches:y}=vv(),v=_.useMemo(()=>Yd(s,i,y,o,r,"data"),[s,i,y,o,r]),C=_.useMemo(()=>Yd(s,i,y,o,r,"assets"),[s,i,y,o,r]),N=_.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let H=new Set,Y=!1;if(i.forEach(X=>{let V=o.routes[X.route.id];!V||!V.hasLoader||(!v.some(J=>J.route.id===X.route.id)&&X.route.id in b&&d[X.route.id]?.shouldRevalidate||V.hasClientLoader?Y=!0:H.add(X.route.id))}),H.size===0)return[];let G=rv(s,m,"data");return Y&&H.size>0&&G.searchParams.set("_routes",i.filter(X=>H.has(X.route.id)).map(X=>X.route.id).join(",")),[G.pathname+G.search]},[m,b,r,o,v,i,s,d]),j=_.useMemo(()=>dv(C,o),[C,o]),w=Sv(C);return _.createElement(_.Fragment,null,N.map(H=>_.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...c})),j.map(H=>_.createElement("link",{key:H,rel:"modulepreload",href:H,...c})),w.map(({key:H,link:Y})=>_.createElement("link",{key:H,nonce:c.nonce,...Y})))}function Ev(...s){return i=>{s.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var um=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{um&&(window.__reactRouterVersion="7.9.6")}catch{}function _v({basename:s,children:i,window:c}){let r=_.useRef();r.current==null&&(r.current=r0({window:c,v5Compat:!0}));let o=r.current,[d,m]=_.useState({action:o.action,location:o.location}),b=_.useCallback(y=>{_.startTransition(()=>m(y))},[m]);return _.useLayoutEffect(()=>o.listen(b),[o,b]),_.createElement(I0,{basename:s,children:i,location:d.location,navigationType:d.action,navigator:o})}var sm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cm=_.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:o,reloadDocument:d,replace:m,state:b,target:y,to:v,preventScrollReset:C,viewTransition:N,...j},w){let{basename:H}=_.useContext(Xe),Y=typeof v=="string"&&sm.test(v),G,X=!1;if(typeof v=="string"&&Y&&(G=v,um))try{let Nt=new URL(window.location.href),ie=v.startsWith("//")?new URL(Nt.protocol+v):new URL(v),ue=cl(ie.pathname,H);ie.origin===Nt.origin&&ue!=null?v=ue+ie.search+ie.hash:X=!0}catch{we(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let V=H0(v,{relative:o}),[J,dt,Tt]=gv(r,j),qt=Nv(v,{replace:m,state:b,target:y,preventScrollReset:C,relative:o,viewTransition:N});function tt(Nt){i&&i(Nt),Nt.defaultPrevented||qt(Nt)}let Lt=_.createElement("a",{...j,...Tt,href:G||V,onClick:X||d?i:tt,ref:Ev(w,dt),target:y,"data-discover":!Y&&c==="render"?"true":void 0});return J&&!Y?_.createElement(_.Fragment,null,Lt,_.createElement(bv,{page:V})):Lt});cm.displayName="Link";var Tv=_.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:o=!1,style:d,to:m,viewTransition:b,children:y,...v},C){let N=Ka(m,{relative:v.relative}),j=ln(),w=_.useContext(xu),{navigator:H,basename:Y}=_.useContext(Xe),G=w!=null&&Dv(N)&&b===!0,X=H.encodeLocation?H.encodeLocation(N).pathname:N.pathname,V=j.pathname,J=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;c||(V=V.toLowerCase(),J=J?J.toLowerCase():null,X=X.toLowerCase()),J&&Y&&(J=cl(J,Y)||J);const dt=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let Tt=V===X||!o&&V.startsWith(X)&&V.charAt(dt)==="/",qt=J!=null&&(J===X||!o&&J.startsWith(X)&&J.charAt(X.length)==="/"),tt={isActive:Tt,isPending:qt,isTransitioning:G},Lt=Tt?i:void 0,Nt;typeof r=="function"?Nt=r(tt):Nt=[r,Tt?"active":null,qt?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let ie=typeof d=="function"?d(tt):d;return _.createElement(cm,{...v,"aria-current":Lt,className:Nt,ref:C,style:ie,to:m,viewTransition:b},typeof y=="function"?y(tt):y)});Tv.displayName="NavLink";var Av=_.forwardRef(({discover:s="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:o,state:d,method:m=mu,action:b,onSubmit:y,relative:v,preventScrollReset:C,viewTransition:N,...j},w)=>{let H=zv(),Y=Mv(b,{relative:v}),G=m.toLowerCase()==="get"?"get":"post",X=typeof b=="string"&&sm.test(b),V=J=>{if(y&&y(J),J.defaultPrevented)return;J.preventDefault();let dt=J.nativeEvent.submitter,Tt=dt?.getAttribute("formmethod")||m;H(dt||J.currentTarget,{fetcherKey:i,method:Tt,navigate:c,replace:o,state:d,relative:v,preventScrollReset:C,viewTransition:N})};return _.createElement("form",{ref:w,method:G,action:Y,onSubmit:r?y:V,...j,"data-discover":!X&&s==="render"?"true":void 0})});Av.displayName="Form";function Rv(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rm(s){let i=_.useContext(Qn);return Rt(i,Rv(s)),i}function Nv(s,{target:i,replace:c,state:r,preventScrollReset:o,relative:d,viewTransition:m}={}){let b=q0(),y=ln(),v=Ka(s,{relative:d});return _.useCallback(C=>{if(iv(C,i)){C.preventDefault();let N=c!==void 0?c:Qa(y)===Qa(v);b(s,{replace:N,state:r,preventScrollReset:o,relative:d,viewTransition:m})}},[y,b,v,c,r,i,s,o,d,m])}var Ov=0,Cv=()=>`__${String(++Ov)}__`;function zv(){let{router:s}=rm("useSubmit"),{basename:i}=_.useContext(Xe),c=$0();return _.useCallback(async(r,o={})=>{let{action:d,method:m,encType:b,formData:y,body:v}=cv(r,i);if(o.navigate===!1){let C=o.fetcherKey||Cv();await s.fetch(C,c,o.action||d,{preventScrollReset:o.preventScrollReset,formData:y,body:v,formMethod:o.method||m,formEncType:o.encType||b,flushSync:o.flushSync})}else await s.navigate(o.action||d,{preventScrollReset:o.preventScrollReset,formData:y,body:v,formMethod:o.method||m,formEncType:o.encType||b,replace:o.replace,state:o.state,fromRouteId:c,flushSync:o.flushSync,viewTransition:o.viewTransition})},[s,i,c])}function Mv(s,{relative:i}={}){let{basename:c}=_.useContext(Xe),r=_.useContext(rl);Rt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),d={...Ka(s||".",{relative:i})},m=ln();if(s==null){d.search=m.search;let b=new URLSearchParams(d.search),y=b.getAll("index");if(y.some(C=>C==="")){b.delete("index"),y.filter(N=>N).forEach(N=>b.append("index",N));let C=b.toString();d.search=C?`?${C}`:""}}return(!s||s===".")&&o.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:sl([c,d.pathname])),Qa(d)}function Dv(s,{relative:i}={}){let c=_.useContext(Id);Rt(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rm("useViewTransitionState"),o=Ka(s,{relative:i});if(!c.isTransitioning)return!1;let d=cl(c.currentLocation.pathname,r)||c.currentLocation.pathname,m=cl(c.nextLocation.pathname,r)||c.nextLocation.pathname;return Su(o.pathname,m)!=null||Su(o.pathname,d)!=null}const Ye=Object.create(null);Ye.open="0";Ye.close="1";Ye.ping="2";Ye.pong="3";Ye.message="4";Ye.upgrade="5";Ye.noop="6";const pu=Object.create(null);Object.keys(Ye).forEach(s=>{pu[Ye[s]]=s});const ar={type:"error",data:"parser error"},fm=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",om=typeof ArrayBuffer=="function",hm=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,pr=({type:s,data:i},c,r)=>fm&&i instanceof Blob?c?r(i):Xd(i,r):om&&(i instanceof ArrayBuffer||hm(i))?c?r(i):Xd(new Blob([i]),r):r(Ye[s]+(i||"")),Xd=(s,i)=>{const c=new FileReader;return c.onload=function(){const r=c.result.split(",")[1];i("b"+(r||""))},c.readAsDataURL(s)};function Gd(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let Pc;function Uv(s,i){if(fm&&s.data instanceof Blob)return s.data.arrayBuffer().then(Gd).then(i);if(om&&(s.data instanceof ArrayBuffer||hm(s.data)))return i(Gd(s.data));pr(s,!1,c=>{Pc||(Pc=new TextEncoder),i(Pc.encode(c))})}const Qd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ga=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Qd.length;s++)Ga[Qd.charCodeAt(s)]=s;const wv=s=>{let i=s.length*.75,c=s.length,r,o=0,d,m,b,y;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);const v=new ArrayBuffer(i),C=new Uint8Array(v);for(r=0;r<c;r+=4)d=Ga[s.charCodeAt(r)],m=Ga[s.charCodeAt(r+1)],b=Ga[s.charCodeAt(r+2)],y=Ga[s.charCodeAt(r+3)],C[o++]=d<<2|m>>4,C[o++]=(m&15)<<4|b>>2,C[o++]=(b&3)<<6|y&63;return v},Bv=typeof ArrayBuffer=="function",vr=(s,i)=>{if(typeof s!="string")return{type:"message",data:dm(s,i)};const c=s.charAt(0);return c==="b"?{type:"message",data:jv(s.substring(1),i)}:pu[c]?s.length>1?{type:pu[c],data:s.substring(1)}:{type:pu[c]}:ar},jv=(s,i)=>{if(Bv){const c=wv(s);return dm(c,i)}else return{base64:!0,data:s}},dm=(s,i)=>{switch(i){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},mm="",Hv=(s,i)=>{const c=s.length,r=new Array(c);let o=0;s.forEach((d,m)=>{pr(d,!1,b=>{r[m]=b,++o===c&&i(r.join(mm))})})},qv=(s,i)=>{const c=s.split(mm),r=[];for(let o=0;o<c.length;o++){const d=vr(c[o],i);if(r.push(d),d.type==="error")break}return r};function Lv(){return new TransformStream({transform(s,i){Uv(s,c=>{const r=c.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const d=new DataView(o.buffer);d.setUint8(0,126),d.setUint16(1,r)}else{o=new Uint8Array(9);const d=new DataView(o.buffer);d.setUint8(0,127),d.setBigUint64(1,BigInt(r))}s.data&&typeof s.data!="string"&&(o[0]|=128),i.enqueue(o),i.enqueue(c)})}})}let Ic;function hu(s){return s.reduce((i,c)=>i+c.length,0)}function du(s,i){if(s[0].length===i)return s.shift();const c=new Uint8Array(i);let r=0;for(let o=0;o<i;o++)c[o]=s[0][r++],r===s[0].length&&(s.shift(),r=0);return s.length&&r<s[0].length&&(s[0]=s[0].slice(r)),c}function Yv(s,i){Ic||(Ic=new TextDecoder);const c=[];let r=0,o=-1,d=!1;return new TransformStream({transform(m,b){for(c.push(m);;){if(r===0){if(hu(c)<1)break;const y=du(c,1);d=(y[0]&128)===128,o=y[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(hu(c)<2)break;const y=du(c,2);o=new DataView(y.buffer,y.byteOffset,y.length).getUint16(0),r=3}else if(r===2){if(hu(c)<8)break;const y=du(c,8),v=new DataView(y.buffer,y.byteOffset,y.length),C=v.getUint32(0);if(C>Math.pow(2,21)-1){b.enqueue(ar);break}o=C*Math.pow(2,32)+v.getUint32(4),r=3}else{if(hu(c)<o)break;const y=du(c,o);b.enqueue(vr(d?y:Ic.decode(y),i)),r=0}if(o===0||o>s){b.enqueue(ar);break}}}})}const ym=4;function Ht(s){if(s)return Xv(s)}function Xv(s){for(var i in Ht.prototype)s[i]=Ht.prototype[i];return s}Ht.prototype.on=Ht.prototype.addEventListener=function(s,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(i),this};Ht.prototype.once=function(s,i){function c(){this.off(s,c),i.apply(this,arguments)}return c.fn=i,this.on(s,c),this};Ht.prototype.off=Ht.prototype.removeListener=Ht.prototype.removeAllListeners=Ht.prototype.removeEventListener=function(s,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+s];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var r,o=0;o<c.length;o++)if(r=c[o],r===i||r.fn===i){c.splice(o,1);break}return c.length===0&&delete this._callbacks["$"+s],this};Ht.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+s],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(c){c=c.slice(0);for(var r=0,o=c.length;r<o;++r)c[r].apply(this,i)}return this};Ht.prototype.emitReserved=Ht.prototype.emit;Ht.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};Ht.prototype.hasListeners=function(s){return!!this.listeners(s).length};const _u=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),Oe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Gv="arraybuffer";function pm(s,...i){return i.reduce((c,r)=>(s.hasOwnProperty(r)&&(c[r]=s[r]),c),{})}const Qv=Oe.setTimeout,Vv=Oe.clearTimeout;function Tu(s,i){i.useNativeTimers?(s.setTimeoutFn=Qv.bind(Oe),s.clearTimeoutFn=Vv.bind(Oe)):(s.setTimeoutFn=Oe.setTimeout.bind(Oe),s.clearTimeoutFn=Oe.clearTimeout.bind(Oe))}const Zv=1.33;function Kv(s){return typeof s=="string"?kv(s):Math.ceil((s.byteLength||s.size)*Zv)}function kv(s){let i=0,c=0;for(let r=0,o=s.length;r<o;r++)i=s.charCodeAt(r),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(r++,c+=4);return c}function vm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Jv(s){let i="";for(let c in s)s.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(s[c]));return i}function $v(s){let i={},c=s.split("&");for(let r=0,o=c.length;r<o;r++){let d=c[r].split("=");i[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return i}class Wv extends Error{constructor(i,c,r){super(i),this.description=c,this.context=r,this.type="TransportError"}}class gr extends Ht{constructor(i){super(),this.writable=!1,Tu(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,c,r){return super.emitReserved("error",new Wv(i,c,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const c=vr(i,this.socket.binaryType);this.onPacket(c)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,c={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const c=Jv(i);return c.length?"?"+c:""}}class Fv extends gr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const c=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||c()})),this.writable||(r++,this.once("drain",function(){--r||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};qv(i,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Hv(i,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=vm()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let gm=!1;try{gm=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Pv=gm;function Iv(){}class tg extends Fv{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let r=location.port;r||(r=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||r!==i.port}}doWrite(i,c){const r=this.request({method:"POST",data:i});r.on("success",c),r.on("error",(o,d)=>{this.onError("xhr post error",o,d)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(c,r)=>{this.onError("xhr poll error",c,r)}),this.pollXhr=i}}class Le extends Ht{constructor(i,c,r){super(),this.createRequest=i,Tu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=c,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var i;const c=pm(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(c);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Le.requestsCount++,Le.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Iv,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Le.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Le.requestsCount=0;Le.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Vd);else if(typeof addEventListener=="function"){const s="onpagehide"in Oe?"pagehide":"unload";addEventListener(s,Vd,!1)}}function Vd(){for(let s in Le.requests)Le.requests.hasOwnProperty(s)&&Le.requests[s].abort()}const eg=(function(){const s=bm({xdomain:!1});return s&&s.responseType!==null})();class lg extends tg{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=eg&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Le(bm,this.uri(),i)}}function bm(s){const i=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Pv))return new XMLHttpRequest}catch{}if(!i)try{return new Oe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Sm=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ng extends gr{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,r=Sm?{}:pm(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,c,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const r=i[c],o=c===i.length-1;pr(r,this.supportsBinary,d=>{try{this.doWrite(r,d)}catch{}o&&_u(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=vm()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const tr=Oe.WebSocket||Oe.MozWebSocket;class ag extends ng{createSocket(i,c,r){return Sm?new tr(i,c,r):c?new tr(i,c):new tr(i)}doWrite(i,c){this.ws.send(c)}}class ig extends gr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const c=Yv(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=i.readable.pipeThrough(c).getReader(),o=Lv();o.readable.pipeTo(i.writable),this._writer=o.writable.getWriter();const d=()=>{r.read().then(({done:b,value:y})=>{b||(this.onPacket(y),d())}).catch(b=>{})};d();const m={type:"open"};this.query.sid&&(m.data=`{"sid":"${this.query.sid}"}`),this._writer.write(m).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const r=i[c],o=c===i.length-1;this._writer.write(r).then(()=>{o&&_u(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const ug={websocket:ag,webtransport:ig,polling:lg},sg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ir(s){if(s.length>8e3)throw"URI too long";const i=s,c=s.indexOf("["),r=s.indexOf("]");c!=-1&&r!=-1&&(s=s.substring(0,c)+s.substring(c,r).replace(/:/g,";")+s.substring(r,s.length));let o=sg.exec(s||""),d={},m=14;for(;m--;)d[cg[m]]=o[m]||"";return c!=-1&&r!=-1&&(d.source=i,d.host=d.host.substring(1,d.host.length-1).replace(/;/g,":"),d.authority=d.authority.replace("[","").replace("]","").replace(/;/g,":"),d.ipv6uri=!0),d.pathNames=rg(d,d.path),d.queryKey=fg(d,d.query),d}function rg(s,i){const c=/\/{2,9}/g,r=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&r.splice(0,1),i.slice(-1)=="/"&&r.splice(r.length-1,1),r}function fg(s,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,d){o&&(c[o]=d)}),c}const ur=typeof addEventListener=="function"&&typeof removeEventListener=="function",vu=[];ur&&addEventListener("offline",()=>{vu.forEach(s=>s())},!1);class Bl extends Ht{constructor(i,c){if(super(),this.binaryType=Gv,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(c=i,i=null),i){const r=ir(i);c.hostname=r.host,c.secure=r.protocol==="https"||r.protocol==="wss",c.port=r.port,r.query&&(c.query=r.query)}else c.host&&(c.hostname=ir(c.host).host);Tu(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},c.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=$v(this.opts.query)),ur&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},vu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=ym,c.transport=i,this.id&&(c.sid=this.id);const r=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&Bl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const c=this.createTransport(i);c.open(),this.setTransport(c)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",c=>this._onClose("transport close",c))}onOpen(){this.readyState="open",Bl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const c=new Error("server error");c.code=i.data,this._onError(c);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(c+=Kv(o)),r>0&&c>this._maxPayload)return this.writeBuffer.slice(0,r);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,_u(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,c,r){return this._sendPacket("message",i,c,r),this}send(i,c,r){return this._sendPacket("message",i,c,r),this}_sendPacket(i,c,r,o){if(typeof c=="function"&&(o=c,c=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const d={type:i,data:c,options:r};this.emitReserved("packetCreate",d),this.writeBuffer.push(d),o&&this.once("flush",o),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),i()},r=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():i()}):this.upgrading?r():i()),this}_onError(i){if(Bl.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,c){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ur&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=vu.indexOf(this._offlineEventListener);r!==-1&&vu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}Bl.protocol=ym;class og extends Bl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let c=this.createTransport(i),r=!1;Bl.priorWebsocketSuccess=!1;const o=()=>{r||(c.send([{type:"ping",data:"probe"}]),c.once("packet",N=>{if(!r)if(N.type==="pong"&&N.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Bl.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(C(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const j=new Error("probe error");j.transport=c.name,this.emitReserved("upgradeError",j)}}))};function d(){r||(r=!0,C(),c.close(),c=null)}const m=N=>{const j=new Error("probe error: "+N);j.transport=c.name,d(),this.emitReserved("upgradeError",j)};function b(){m("transport closed")}function y(){m("socket closed")}function v(N){c&&N.name!==c.name&&d()}const C=()=>{c.removeListener("open",o),c.removeListener("error",m),c.removeListener("close",b),this.off("close",y),this.off("upgrading",v)};c.once("open",o),c.once("error",m),c.once("close",b),this.once("close",y),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{r||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let r=0;r<i.length;r++)~this.transports.indexOf(i[r])&&c.push(i[r]);return c}}let hg=class extends og{constructor(i,c={}){const r=typeof i=="object"?i:c;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>ug[o]).filter(o=>!!o)),super(i,r)}};function dg(s,i="",c){let r=s;c=c||typeof location<"u"&&location,s==null&&(s=c.protocol+"//"+c.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=c.protocol+s:s=c.host+s),/^(https?|wss?):\/\//.test(s)||(typeof c<"u"?s=c.protocol+"//"+s:s="https://"+s),r=ir(s)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const d=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+d+":"+r.port+i,r.href=r.protocol+"://"+d+(c&&c.port===r.port?"":":"+r.port),r}const mg=typeof ArrayBuffer=="function",yg=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,xm=Object.prototype.toString,pg=typeof Blob=="function"||typeof Blob<"u"&&xm.call(Blob)==="[object BlobConstructor]",vg=typeof File=="function"||typeof File<"u"&&xm.call(File)==="[object FileConstructor]";function br(s){return mg&&(s instanceof ArrayBuffer||yg(s))||pg&&s instanceof Blob||vg&&s instanceof File}function gu(s,i){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let c=0,r=s.length;c<r;c++)if(gu(s[c]))return!0;return!1}if(br(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return gu(s.toJSON(),!0);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&gu(s[c]))return!0;return!1}function gg(s){const i=[],c=s.data,r=s;return r.data=sr(c,i),r.attachments=i.length,{packet:r,buffers:i}}function sr(s,i){if(!s)return s;if(br(s)){const c={_placeholder:!0,num:i.length};return i.push(s),c}else if(Array.isArray(s)){const c=new Array(s.length);for(let r=0;r<s.length;r++)c[r]=sr(s[r],i);return c}else if(typeof s=="object"&&!(s instanceof Date)){const c={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(c[r]=sr(s[r],i));return c}return s}function bg(s,i){return s.data=cr(s.data,i),delete s.attachments,s}function cr(s,i){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<i.length)return i[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let c=0;c<s.length;c++)s[c]=cr(s[c],i);else if(typeof s=="object")for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&(s[c]=cr(s[c],i));return s}const Sg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],xg=5;var ct;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(ct||(ct={}));class Eg{constructor(i){this.replacer=i}encode(i){return(i.type===ct.EVENT||i.type===ct.ACK)&&gu(i)?this.encodeAsBinary({type:i.type===ct.EVENT?ct.BINARY_EVENT:ct.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===ct.BINARY_EVENT||i.type===ct.BINARY_ACK)&&(c+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(c+=i.nsp+","),i.id!=null&&(c+=i.id),i.data!=null&&(c+=JSON.stringify(i.data,this.replacer)),c}encodeAsBinary(i){const c=gg(i),r=this.encodeAsString(c.packet),o=c.buffers;return o.unshift(r),o}}function Zd(s){return Object.prototype.toString.call(s)==="[object Object]"}class Sr extends Ht{constructor(i){super(),this.reviver=i}add(i){let c;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(i);const r=c.type===ct.BINARY_EVENT;r||c.type===ct.BINARY_ACK?(c.type=r?ct.EVENT:ct.ACK,this.reconstructor=new _g(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(br(i)||i.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(i),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let c=0;const r={type:Number(i.charAt(0))};if(ct[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===ct.BINARY_EVENT||r.type===ct.BINARY_ACK){const d=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const m=i.substring(d,c);if(m!=Number(m)||i.charAt(c)!=="-")throw new Error("Illegal attachments");r.attachments=Number(m)}if(i.charAt(c+1)==="/"){const d=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););r.nsp=i.substring(d,c)}else r.nsp="/";const o=i.charAt(c+1);if(o!==""&&Number(o)==o){const d=c+1;for(;++c;){const m=i.charAt(c);if(m==null||Number(m)!=m){--c;break}if(c===i.length)break}r.id=Number(i.substring(d,c+1))}if(i.charAt(++c)){const d=this.tryParse(i.substr(c));if(Sr.isPayloadValid(r.type,d))r.data=d;else throw new Error("invalid payload")}return r}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,c){switch(i){case ct.CONNECT:return Zd(c);case ct.DISCONNECT:return c===void 0;case ct.CONNECT_ERROR:return typeof c=="string"||Zd(c);case ct.EVENT:case ct.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&Sg.indexOf(c[0])===-1);case ct.ACK:case ct.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class _g{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const c=bg(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Tg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Sr,Encoder:Eg,get PacketType(){return ct},protocol:xg},Symbol.toStringTag,{value:"Module"}));function Ue(s,i,c){return s.on(i,c),function(){s.off(i,c)}}const Ag=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Em extends Ht{constructor(i,c,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=c,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Ue(i,"open",this.onopen.bind(this)),Ue(i,"packet",this.onpacket.bind(this)),Ue(i,"error",this.onerror.bind(this)),Ue(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...c){var r,o,d;if(Ag.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(c.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const m={type:ct.EVENT,data:c};if(m.options={},m.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const C=this.ids++,N=c.pop();this._registerAckCallback(C,N),m.id=C}const b=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,y=this.connected&&!(!((d=this.io.engine)===null||d===void 0)&&d._hasPingExpired());return this.flags.volatile&&!b||(y?(this.notifyOutgoingListeners(m),this.packet(m)):this.sendBuffer.push(m)),this.flags={},this}_registerAckCallback(i,c){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[i]=c;return}const d=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let b=0;b<this.sendBuffer.length;b++)this.sendBuffer[b].id===i&&this.sendBuffer.splice(b,1);c.call(this,new Error("operation has timed out"))},o),m=(...b)=>{this.io.clearTimeoutFn(d),c.apply(this,b)};m.withError=!0,this.acks[i]=m}emitWithAck(i,...c){return new Promise((r,o)=>{const d=(m,b)=>m?o(m):r(b);d.withError=!0,c.push(d),this.emit(i,...c)})}_addToQueue(i){let c;typeof i[i.length-1]=="function"&&(c=i.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((o,...d)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(o)):(this._queue.shift(),c&&c(null,...d)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!i||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:ct.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(r=>String(r.id)===i)){const r=this.acks[i];delete this.acks[i],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case ct.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ct.EVENT:case ct.BINARY_EVENT:this.onevent(i);break;case ct.ACK:case ct.BINARY_ACK:this.onack(i);break;case ct.DISCONNECT:this.ondisconnect();break;case ct.CONNECT_ERROR:this.destroy();const r=new Error(i.data.message);r.data=i.data.data,this.emitReserved("connect_error",r);break}}onevent(i){const c=i.data||[];i.id!=null&&c.push(this.ack(i.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const r of c)r.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const c=this;let r=!1;return function(...o){r||(r=!0,c.packet({type:ct.ACK,id:i,data:o}))}}onack(i){const c=this.acks[i.id];typeof c=="function"&&(delete this.acks[i.id],c.withError&&i.data.unshift(null),c.apply(this,i.data))}onconnect(i,c){this.id=i,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ct.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const c=this._anyListeners;for(let r=0;r<c.length;r++)if(i===c[r])return c.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const c=this._anyOutgoingListeners;for(let r=0;r<c.length;r++)if(i===c[r])return c.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const r of c)r.apply(this,i.data)}}}function Vn(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}Vn.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*s);s=(Math.floor(i*10)&1)==0?s-c:s+c}return Math.min(s,this.max)|0};Vn.prototype.reset=function(){this.attempts=0};Vn.prototype.setMin=function(s){this.ms=s};Vn.prototype.setMax=function(s){this.max=s};Vn.prototype.setJitter=function(s){this.jitter=s};class rr extends Ht{constructor(i,c){var r;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(c=i,i=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,Tu(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((r=c.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Vn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const o=c.parser||Tg;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var c;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(c=this.backoff)===null||c===void 0||c.setMin(i),this)}randomizationFactor(i){var c;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(c=this.backoff)===null||c===void 0||c.setJitter(i),this)}reconnectionDelayMax(i){var c;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(c=this.backoff)===null||c===void 0||c.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new hg(this.uri,this.opts);const c=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Ue(c,"open",function(){r.onopen(),i&&i()}),d=b=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",b),i?i(b):this.maybeReconnectOnOpen()},m=Ue(c,"error",d);if(this._timeout!==!1){const b=this._timeout,y=this.setTimeoutFn(()=>{o(),d(new Error("timeout")),c.close()},b);this.opts.autoUnref&&y.unref(),this.subs.push(()=>{this.clearTimeoutFn(y)})}return this.subs.push(o),this.subs.push(m),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Ue(i,"ping",this.onping.bind(this)),Ue(i,"data",this.ondata.bind(this)),Ue(i,"error",this.onerror.bind(this)),Ue(i,"close",this.onclose.bind(this)),Ue(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(c){this.onclose("parse error",c)}}ondecoded(i){_u(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,c){let r=this.nsps[i];return r?this._autoConnect&&!r.active&&r.connect():(r=new Em(this,i,c),this.nsps[i]=r),r}_destroy(i){const c=Object.keys(this.nsps);for(const r of c)if(this.nsps[r].active)return;this._close()}_packet(i){const c=this.encoder.encode(i);for(let r=0;r<c.length;r++)this.engine.write(c[r],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,c){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(o=>{o?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",o)):i.onreconnect()}))},c);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Xa={};function bu(s,i){typeof s=="object"&&(i=s,s=void 0),i=i||{};const c=dg(s,i.path||"/socket.io"),r=c.source,o=c.id,d=c.path,m=Xa[o]&&d in Xa[o].nsps,b=i.forceNew||i["force new connection"]||i.multiplex===!1||m;let y;return b?y=new rr(r,i):(Xa[o]||(Xa[o]=new rr(r,i)),y=Xa[o]),c.query&&!i.query&&(i.query=c.queryKey),y.socket(c.path,i)}Object.assign(bu,{Manager:rr,Socket:Em,io:bu,connect:bu});const _m=window.location.origin;console.info("[socket] connecting to",_m);const xr=bu(_m,{transports:["polling","websocket"],timeout:15e3});xr.on("connect_error",s=>console.error("connect_error",s.code,s.message,s.data));const Tm=_.createContext(xr),Rg=({children:s})=>x.jsx(Tm.Provider,{value:xr,children:s}),Au=()=>_.useContext(Tm),Am=_.createContext({connected:!1,session:null,logs:[],login:async()=>{},setRole:async()=>{},requestControl:async()=>{},releaseControl:async()=>{},subscribeAll:async()=>{}});function Ng(s){return _.useCallback((i,c={})=>new Promise((r,o)=>{s.emit(i,c,(d={})=>{d.error?o(new Error(d.error)):r(d)})}),[s])}function Og({children:s}){const i=Au(),c=Ng(i),[r,o]=_.useState(null),[d,m]=_.useState([]),[b,y]=_.useState([]),[v,C]=_.useState(i.connected);_.useEffect(()=>{const w=()=>C(!0),H=()=>C(!1);return i.on("connect",w),i.on("disconnect",H),()=>{i.off("connect",w),i.off("disconnect",H)}},[i]),_.useEffect(()=>{function w(G){o(G)}function H(G=[]){m(G)}function Y(G){m(X=>[...X.slice(-199),G])}return i.on("session:sync",w),i.on("log:init",H),i.on("log:entry",Y),i.on("alert:new",(G={})=>{y(X=>[...X.slice(-49),G])}),()=>{i.off("session:sync",w),i.off("log:init",H),i.off("log:entry",Y),i.off("alert:new")}},[i]);const N=_.useMemo(()=>({login:(w,H)=>c("auth:login",{username:w,password:H}),setRole:w=>c("session:setRole",{role:w}),requestControl:(w,H={})=>c("session:requestControl",{roverId:w,...H}),releaseControl:w=>c("session:releaseControl",{roverId:w}),subscribeAll:()=>c("session:subscribeAll"),lockRover:(w,H)=>c("session:lockRover",{roverId:w,locked:H}),setMode:w=>c("setMode",{mode:w})}),[c]),j=_.useMemo(()=>({connected:v,session:r,logs:d,alerts:b,...N}),[N,b,v,d,r]);return x.jsx(Am.Provider,{value:j,children:s})}function ve(){return _.useContext(Am)}const Rm=_.createContext({frames:{}});function Cg({children:s}){const i=Au(),[c,r]=_.useState({});_.useEffect(()=>{function d({roverId:m,sensors:b={},frame:y={}}){m&&r(v=>({...v,[m]:{roverId:m,sensors:b,raw:y?.data||null,receivedAt:Date.now()}}))}return i.on("sensorFrame",d),()=>{i.off("sensorFrame",d)}},[i]);const o=_.useMemo(()=>({frames:c}),[c]);return x.jsx(Rm.Provider,{value:o,children:s})}function Nm(){return _.useContext(Rm).frames}function zg(s){const i=Nm();return s?i[s]??null:null}function Mg(s={}){return Object.entries(s).map(([i,c])=>({key:i,value:typeof c=="object"?JSON.stringify(c):c}))}function Dg(){const{session:s}=ve(),i=s?.assignment?.roverId,c=zg(i),r=_.useMemo(()=>Mg(c?.sensors),[c?.sensors]);return x.jsxs("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsxs("header",{className:"flex flex-wrap items-center justify-between gap-3",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Telemetry"}),x.jsx("h2",{className:"text-2xl font-semibold text-white",children:i?`Rover ${i}`:"No rover assigned"})]}),x.jsx("p",{className:"text-sm text-slate-400",children:c?.receivedAt?`Updated ${new Date(c.receivedAt).toLocaleTimeString()}`:"Waiting…"})]}),r.length===0?x.jsx("p",{className:"mt-4 text-sm text-slate-400",children:i?"No sensor frames yet.":"Assignment required to view sensors."}):x.jsx("dl",{className:"mt-4 grid gap-3 text-sm text-slate-100",children:r.map(({key:o,value:d})=>x.jsxs("div",{className:"flex justify-between gap-6",children:[x.jsx("dt",{className:"text-slate-500",children:o}),x.jsx("dd",{className:"text-right font-semibold text-white",children:d})]},o))}),c?.raw&&x.jsxs("div",{className:"mt-6",children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Raw frame"}),x.jsx("pre",{className:"mt-2 max-h-32 overflow-y-auto rounded-xl bg-slate-950/60 p-3 text-xs text-lime-300",children:c.raw})]})]})}function Ug(s){if(!s)return{};const i=`${s}:${s}`;return{Authorization:`Basic ${typeof btoa=="function"?btoa(i):Buffer.from(i).toString("base64")}`}}class wg{constructor({url:i,token:c,video:r,onStatus:o}){this.url=i,this.token=c,this.video=r,this.pc=null,this.abortController=null,this.onStatus=o}notify(i,c){typeof this.onStatus=="function"&&this.onStatus(i,c)}async start(){if(!this.url||!this.video)throw new Error("Video target missing");this.stop(),this.notify("connecting"),this.abortController=new AbortController;const i=new RTCPeerConnection;this.pc=i;const c=new MediaStream;i.ontrack=r=>{r.streams[0]?.getTracks().forEach(o=>c.addTrack(o)),this.video.srcObject=c},i.addTransceiver("video",{direction:"recvonly"}),i.addTransceiver("audio",{direction:"recvonly"}),i.onconnectionstatechange=()=>{const r=i.connectionState;this.notify(r)},i.oniceconnectionstatechange=()=>{const r=i.iceConnectionState;(r==="failed"||r==="disconnected")&&this.notify(r)};try{const r=await i.createOffer();await i.setLocalDescription(r);const o=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/sdp",...Ug(this.token)},body:r.sdp,signal:this.abortController.signal});if(!o.ok)throw new Error(`WHEP request failed: ${o.status}`);const d=await o.text();await i.setRemoteDescription({type:"answer",sdp:d}),this.notify("playing")}catch(r){throw this.notify("error",r.message),this.stop(),r}}stop(){this.abortController&&(this.abortController.abort(),this.abortController=null),this.pc&&(this.pc.getSenders().forEach(i=>i.track?.stop()),this.pc.getReceivers().forEach(i=>i.track?.stop()),this.pc.close(),this.pc=null),this.video&&(this.video.srcObject=null),this.notify("stopped")}}const Bg=2e3,jg=3e3;function Om({sessionInfo:s,label:i,forceMute:c=!1}){const r=_.useRef(null),o=_.useRef(null),d=_.useRef(null),[m,b]=_.useState("idle"),[y,v]=_.useState(null),[C,N]=_.useState(0),[j,w]=_.useState(!0),H=_.useCallback(()=>{clearTimeout(o.current),o.current=setTimeout(()=>N(Date.now()),Bg)},[]),Y=_.useCallback((X=0)=>{c||(clearTimeout(d.current),d.current=setTimeout(async()=>{const V=r.current;if(V)try{V.muted=!1,await V.play(),w(!1)}catch{V.muted=!0,w(!0),Y(jg)}},X))},[c]);_.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(d.current)},[]),_.useEffect(()=>{m==="playing"&&Y(0)},[m,Y]),_.useEffect(()=>{if(!s?.url||!r.current){b("waiting"),v(null);return}let X=!0,V;w(!0);const J=(dt,Tt)=>{X&&(b(dt),v(Tt||null),["error","failed","disconnected","closed"].includes(dt)&&H())};return V=new wg({url:s.url,token:s.token,video:r.current,onStatus:J}),V.start().catch(dt=>{X&&(b("error"),v(dt.message),H())}),()=>{X=!1,V?.stop()}},[s?.url,s?.token,C,H]),_.useEffect(()=>{m==="stopped"&&s?.url&&H()},[m,s?.url,H]);const G=m==="error"?`Error: ${y||"unknown"}`:y?`${m} (${y})`:m;return x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"aspect-video w-full overflow-hidden rounded-2xl border border-slate-800 bg-black",children:x.jsx("video",{ref:r,muted:c||j,playsInline:!0,autoPlay:!0,controls:!1,className:"h-full w-full object-contain"})}),x.jsxs("div",{className:"text-xs text-slate-400",children:[x.jsx("span",{className:"font-semibold text-slate-200",children:i})," ",x.jsx("span",{children:G})]})]})}const Hg={start:[128],safe:[131],full:[132],passive:[128],dock:[143]};function Kd(s,i,c){return Math.max(i,Math.min(c,s))}function qg(s){const i=s.has("w"),c=s.has("s"),r=s.has("a"),o=s.has("d"),m=s.has("shift")?300:150;let b=0,y=0;return i&&!c?(b+=m,y+=m):c&&!i&&(b-=m,y-=m),r&&!o?(b-=m,y+=m):o&&!r&&(b+=m,y-=m),!i&&!c&&(r||o)&&(b=r?-m:m,y=r?m:-m),{left:Kd(b,-500,500),right:Kd(y,-500,500)}}function Lg(s){const i=s.target;if(!i)return!1;const c=i.tagName;return c==="INPUT"||c==="TEXTAREA"||i.isContentEditable||c==="SELECT"&&["w","a","s","d","Shift"].includes(s.key)}function Yg(s){const i=String.fromCharCode(...s);return typeof btoa=="function"?btoa(i):Buffer.from(s).toString("base64")}function Xg(){const s=Au(),{session:i}=ve(),c=i?.assignment?.roverId,r=_.useRef(new Set),o=_.useRef({left:0,right:0}),[d,m]=_.useState(o.current),b=_.useCallback((j,w)=>{c&&s.emit("command",{roverId:c,...j},w)},[s,c]),y=_.useCallback(()=>{c&&b({type:"sensorStream",data:{sensorStream:{enable:!0}}})},[b,c]),v=_.useCallback(()=>{if(!c)return;const j=qg(r.current),w=o.current;j.left===w.left&&j.right===w.right||(o.current=j,m(j),b({type:"drive",data:{driveDirect:j}}))},[b,c]),C=_.useCallback(()=>{c&&(r.current.clear(),o.current={left:0,right:0},m(o.current),b({type:"motors",data:{motorPwm:{main:0,side:0,vacuum:0}}}))},[b,c]),N=_.useCallback(j=>{if(!c)return;const w=Hg[j];w&&(b({type:"raw",data:{raw:Yg(w)}}),y())},[b,y,c]);return _.useEffect(()=>{if(!c){r.current.clear(),o.current={left:0,right:0},m(o.current);return}function j(H){if(Lg(H))return;const Y=H.key.toLowerCase();["w","a","s","d","shift"].includes(Y)&&(r.current.has(Y)||(r.current.add(Y),v()))}function w(H){const Y=H.key.toLowerCase();r.current.has(Y)&&(r.current.delete(Y),v())}return window.addEventListener("keydown",j),window.addEventListener("keyup",w),y(),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",w)}},[c,v,y]),{roverId:c,speeds:d,stopMotors:C,sendOiCommand:N}}const Gg=[{key:"start",label:"Start OI"},{key:"safe",label:"Safe"},{key:"full",label:"Full"},{key:"passive",label:"Passive"},{key:"dock",label:"Dock"}];function Qg({left:s,right:i}){return x.jsxs("div",{className:"grid grid-cols-2 gap-4 rounded-2xl border border-slate-800/60 bg-slate-950/40 p-4 text-sm",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Left"}),x.jsx("p",{className:"text-2xl font-semibold text-white",children:s})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Right"}),x.jsx("p",{className:"text-2xl font-semibold text-white",children:i})]})]})}function Vg(){const{roverId:s,speeds:i,stopMotors:c,sendOiCommand:r}=Xg();return x.jsxs("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsxs("header",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Drive Controls"}),x.jsx("h2",{className:"text-2xl font-semibold text-white",children:s?`Driving rover ${s}`:"No rover assigned"})]}),x.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-slate-400",children:[x.jsx("span",{children:"W/A/S/D: move"}),x.jsx("span",{children:"Shift: boost"})]})]}),x.jsx(Qg,{left:i.left,right:i.right}),x.jsx("div",{className:"mt-4 flex flex-wrap gap-3",children:x.jsx("button",{type:"button",onClick:c,className:"rounded-lg bg-red-600 px-4 py-2 text-sm font-semibold text-white disabled:opacity-50",disabled:!s,children:"Stop Motors"})}),x.jsxs("div",{className:"mt-6 space-y-2",children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"OI Modes"}),x.jsx("div",{className:"flex flex-wrap gap-2",children:Gg.map(o=>x.jsx("button",{type:"button",onClick:()=>r(o.key),disabled:!s,className:"rounded-lg border border-slate-700 px-3 py-1 text-sm font-semibold text-slate-200 disabled:opacity-50",children:o.label},o.key))})]}),x.jsx("p",{className:"mt-4 text-xs text-slate-500",children:"Sensor streaming starts automatically after each OI change. Keep this tab focused while driving."})]})}function Zg({alert:s}){const i=s.color==="error"?"bg-red-500/10 border-red-500/40 text-red-100":s.color==="warn"?"bg-amber-500/10 border-amber-500/40 text-amber-100":"bg-emerald-500/10 border-emerald-500/30 text-emerald-100";return x.jsxs("div",{className:`rounded-2xl border px-4 py-3 text-sm ${i}`,children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] opacity-60",children:s.title||"Alert"}),x.jsx("p",{className:"mt-1 text-base font-semibold",children:s.message})]})}function Kg(){const{alerts:s}=ve(),i=_.useMemo(()=>s.slice(-5).reverse(),[s]);return i.length===0?null:x.jsxs("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Recent Alerts"}),x.jsx("div",{className:"mt-4 space-y-3",children:i.map(c=>x.jsx(Zg,{alert:c},c.id||c.message))})]})}const kg=[{key:"open",label:"Open"},{key:"turns",label:"Turns"},{key:"admin",label:"Admin"},{key:"lockdown",label:"Lockdown"}];function Jg(){const{session:s,lockRover:i,setMode:c,requestControl:r}=ve(),o=s?.roster??[],[d,m]=_.useState({}),b=s?.role==="admin"||s?.role==="lockdown"||s?.role==="lockdown-admin",y=s?.mode??"open",v=async(w,H)=>{try{await i(w,H),m(Y=>({...Y,[w]:H}))}catch(Y){alert(Y.message)}},C=async w=>{const H=w.target.value;try{await c(H)}catch(Y){alert(Y.message)}},N=async w=>{try{await r(w,{force:!0})}catch(H){alert(H.message)}},j=_.useMemo(()=>{const w={};return o.forEach(H=>{w[H.id]=d[H.id]??H.locked}),w},[o,d]);return b?x.jsxs("section",{className:"rounded-2xl border border-amber-600/40 bg-amber-500/5 p-4 text-sm text-amber-100",children:[x.jsxs("header",{className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Admin Controls"}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("label",{className:"text-xs uppercase tracking-[0.3em] text-amber-300",children:"Server mode"}),x.jsx("select",{value:y,onChange:C,className:"rounded-md border border-amber-600/40 bg-slate-950/60 px-2 py-1 text-sm text-white",children:kg.map(w=>x.jsx("option",{value:w.key,children:w.label},w.key))})]})]}),x.jsx("div",{className:"space-y-3",children:o.map(w=>x.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-xl border border-amber-600/30 bg-slate-950/30 px-3 py-2",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-white",children:w.name}),x.jsxs("p",{className:"text-xs text-amber-200",children:["Locked: ",j[w.id]?"yes":"no"]})]}),x.jsxs("div",{className:"flex flex-wrap gap-2",children:[x.jsx("button",{type:"button",onClick:()=>v(w.id,!j[w.id]),className:"rounded-md border border-amber-500 px-3 py-1 text-xs font-semibold text-amber-100",children:j[w.id]?"Unlock":"Lock"}),x.jsx("button",{type:"button",onClick:()=>N(w.id),className:"rounded-md border border-amber-500 px-3 py-1 text-xs font-semibold text-amber-100",children:"Force Control"})]})]},w.id))})]}):null}function Cm(s=[]){const i=Au(),[c,r]=_.useState({});return _.useEffect(()=>{const o=Array.from(new Set(s.filter(Boolean)));if(!o.length){r({});return}let d=!1;return r(m=>{const b={};return o.forEach(y=>{m[y]&&(b[y]=m[y])}),b}),o.forEach(m=>{i.emit("video:request",{roverId:m},(b={})=>{d||r(y=>({...y,[m]:b}))})}),()=>{d=!0}},[i,s.join("|")]),c}function $g({connected:s,role:i,mode:c}){const r=s?"bg-emerald-500/20 text-emerald-300":"bg-red-500/20 text-red-200";return x.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[x.jsx("span",{className:`rounded-full px-3 py-1 font-medium ${r}`,children:s?"Connected":"Disconnected"}),x.jsxs("span",{className:"rounded-full bg-slate-800/80 px-3 py-1 text-slate-200",children:["Role: ",i||"unknown"]}),x.jsxs("span",{className:"rounded-full bg-slate-800/80 px-3 py-1 text-slate-200",children:["Mode: ",c||"--"]})]})}function Wg(){const{logs:s}=ve();return x.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/70 p-4",children:[x.jsxs("header",{className:"mb-3 flex items-center justify-between",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Server logs"}),x.jsxs("span",{className:"text-xs uppercase tracking-[0.2em] text-slate-500",children:[s.length," entries"]})]}),x.jsx("div",{className:"h-64 overflow-y-auto rounded-xl bg-slate-950/40 p-3 text-xs font-mono text-slate-300",children:s.length===0?x.jsx("p",{children:"No logs yet."}):s.slice().reverse().map(i=>x.jsxs("div",{className:"mb-2",children:[x.jsx("span",{className:"text-slate-500",children:i.timestamp})," ",x.jsxs("span",{className:"text-cyan-300",children:["[",i.level,"]"]})," ",i.label&&x.jsxs("span",{className:"text-pink-300",children:["[",i.label,"]"]})," ",x.jsx("span",{children:i.message})]},i.id))})]})}function Fg(){const{session:s,requestControl:i}=ve(),c=s?.roster??[],r=s?.role==="admin"||s?.role==="lockdown",[o,d]=_.useState({});async function m(b){d(y=>({...y,[b]:!0}));try{await i(b)}catch(y){alert(y.message)}finally{d(y=>({...y,[b]:!1}))}}return x.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Rovers"}),x.jsxs("div",{className:"mt-4 space-y-3",children:[c.length===0&&x.jsx("p",{className:"text-slate-400",children:"No rovers registered."}),c.map(b=>x.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-xl bg-slate-950/40 px-4 py-3",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-white",children:b.name}),x.jsxs("p",{className:"text-xs text-slate-400",children:["Locked: ",b.locked?"yes":"no"]})]}),r?x.jsx("button",{type:"button",onClick:()=>m(b.id),disabled:o[b.id],className:"rounded-full bg-blue-600 px-4 py-1 text-sm font-semibold text-white disabled:opacity-50",children:o[b.id]?"Requesting…":"Request control"}):x.jsx("span",{className:"text-xs text-slate-500",children:"Auto-assigned"})]},b.id))]})]})}function Pg(){const{session:s,releaseControl:i}=ve(),c=s?.assignment,r=c?.roverId,[o,d]=_.useState(!1);async function m(){if(r){d(!0);try{await i(r)}catch(b){alert(b.message)}finally{d(!1)}}}return x.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Assignment"}),r?x.jsxs("div",{className:"mt-4 space-y-3",children:[x.jsxs("p",{className:"text-slate-300",children:["Currently driving rover ",r]}),x.jsx("button",{type:"button",onClick:m,disabled:o,className:"rounded-full bg-red-600 px-4 py-1 text-sm font-semibold text-white disabled:opacity-50",children:o?"Releasing…":"Release control"})]}):x.jsxs("div",{className:"mt-4 text-slate-400",children:[x.jsxs("p",{children:["Status: ",c?.status??"not assigned"]}),c?.queuePosition&&x.jsxs("p",{children:["Queue position: ",c.queuePosition]})]})]})}function Ig(){const{session:s}=ve(),i=_.useMemo(()=>JSON.stringify(s??{},null,2),[s]);return x.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Session snapshot"}),x.jsx("pre",{className:"mt-4 max-h-64 overflow-y-auto text-sm text-teal-200",children:i})]})}function tb(){const{session:s}=ve(),i=s?.assignment?.roverId,c=Cm(i?[i]:[]),r=i?c[i]:null;return x.jsxs("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsx("header",{className:"mb-4 flex items-center justify-between",children:x.jsxs("div",{children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Video Feed"}),x.jsx("h2",{className:"text-2xl font-semibold text-white",children:i?`Rover ${i}`:"No rover assigned"})]})}),i?x.jsx(Om,{sessionInfo:r,label:i,muted:!1}):x.jsx("p",{className:"text-sm text-slate-400",children:"Assignment required to initialize video."})]})}function eb(){const{login:s,setRole:i}=ve(),[c,r]=_.useState(""),[o,d]=_.useState(""),[m,b]=_.useState(!1);async function y(v){v.preventDefault(),b(!0);try{await s(c,o),r(""),d("")}catch(C){alert(C.message)}finally{b(!1)}}return x.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Authentication"}),x.jsxs("form",{className:"mt-4 flex flex-col gap-3",onSubmit:y,children:[x.jsx("input",{className:"rounded-lg border border-slate-800 bg-slate-950/60 px-3 py-2 text-white",placeholder:"Username",value:c,onChange:v=>r(v.target.value)}),x.jsx("input",{className:"rounded-lg border border-slate-800 bg-slate-950/60 px-3 py-2 text-white",placeholder:"Password",type:"password",value:o,onChange:v=>d(v.target.value)}),x.jsx("button",{type:"submit",disabled:m,className:"rounded-lg bg-emerald-600 py-2 font-semibold text-white disabled:opacity-50",children:m?"Logging in…":"Login as admin"})]}),x.jsxs("div",{className:"mt-4 flex gap-3",children:[x.jsx("button",{type:"button",onClick:()=>i("user"),className:"rounded-lg border border-slate-700 px-3 py-1 text-sm text-slate-200",children:"Driver mode"}),x.jsx("button",{type:"button",onClick:()=>i("spectator"),className:"rounded-lg border border-slate-700 px-3 py-1 text-sm text-slate-200",children:"Spectator mode"})]})]})}function lb(){const{connected:s,session:i}=ve();return x.jsx("div",{className:"min-h-screen bg-slate-950 text-slate-50",children:x.jsxs("main",{className:"mx-auto flex max-w-6xl flex-col gap-6 px-6 py-10",children:[x.jsxs("header",{className:"space-y-4",children:[x.jsx("h1",{className:"text-4xl font-semibold text-white",children:"Multi Roomba Rover Console"}),x.jsx($g,{connected:s,role:i?.role,mode:i?.mode})]}),x.jsx(tb,{}),x.jsxs("section",{className:"grid gap-6 lg:grid-cols-2",children:[x.jsx(Fg,{}),x.jsx(Pg,{}),x.jsx(Vg,{}),x.jsx(Dg,{}),x.jsx(eb,{}),x.jsx(Ig,{}),x.jsx(Jg,{}),x.jsx(Kg,{})]}),x.jsx(Wg,{})]})})}function nb(){const{session:s,setRole:i,subscribeAll:c}=ve(),[r,o]=_.useState(!1);return _.useEffect(()=>{let d=!1;async function m(){try{s?.role!=="spectator"&&await i("spectator"),await c(),d||o(!0)}catch(b){console.error("Failed to enter spectator mode",b)}}return m(),()=>{d=!0}},[s?.role,i,c]),r}function ab({connected:s,ready:i,rosterCount:c}){return x.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[x.jsx("span",{className:`rounded-full px-3 py-1 font-semibold ${s?"bg-emerald-500/20 text-emerald-200":"bg-red-500/20 text-red-200"}`,children:s?"Connected":"Disconnected"}),x.jsxs("span",{className:`rounded-full px-3 py-1 ${i?"bg-blue-600/40 text-blue-100":"bg-slate-700 text-slate-200"}`,children:["Spectator mode ",i?"active":"pending…"]}),x.jsxs("span",{className:"rounded-full bg-slate-800 px-3 py-1 text-slate-200",children:["Rovers: ",c]})]})}function ib({logs:s}){return x.jsxs("section",{className:"rounded-3xl border border-slate-800 bg-slate-900/70 p-4",children:[x.jsxs("header",{className:"mb-3 flex items-center justify-between",children:[x.jsx("h2",{className:"text-lg font-semibold text-white",children:"Server logs"}),x.jsxs("span",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:["latest ",s.length]})]}),x.jsx("div",{className:"h-60 overflow-y-auto rounded-2xl bg-slate-950/40 p-3 text-xs font-mono text-slate-300",children:s.length===0?x.jsx("p",{children:"No log entries yet."}):s.slice().reverse().map(i=>x.jsxs("div",{className:"mb-2",children:[x.jsx("span",{className:"text-slate-500",children:i.timestamp})," ",x.jsxs("span",{className:"text-cyan-300",children:["[",i.level,"]"]})," ",i.label&&x.jsxs("span",{className:"text-pink-300",children:["[",i.label,"]"]})," ",x.jsx("span",{children:i.message})]},i.id))})]})}function ub(s={}){return Object.entries(s).map(([i,c])=>({key:i,value:typeof c=="object"?JSON.stringify(c):c}))}function sb({rover:s,frame:i,videoInfo:c}){const r=ub(i?.sensors);return x.jsxs("article",{className:"space-y-4 rounded-3xl border border-slate-800 bg-slate-900/70 p-5",children:[x.jsxs("header",{className:"flex flex-col gap-1",children:[x.jsx("h3",{className:"text-2xl font-semibold text-white",children:s.name}),x.jsx("p",{className:"text-sm text-slate-400",children:i?.receivedAt?`Updated ${new Date(i.receivedAt).toLocaleTimeString()}`:"Waiting for telemetry…"})]}),x.jsx(Om,{sessionInfo:c,label:s.name,forceMute:!0}),x.jsxs("section",{className:"rounded-2xl border border-slate-800/80 bg-slate-950/50 p-4",children:[x.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Telemetry"}),r.length===0?x.jsx("p",{className:"mt-3 text-sm text-slate-400",children:"No sensor data yet."}):x.jsx("dl",{className:"mt-3 grid gap-2 text-sm text-slate-200",children:r.map(({key:o,value:d})=>x.jsxs("div",{className:"flex justify-between gap-4",children:[x.jsx("dt",{className:"text-slate-500",children:o}),x.jsx("dd",{className:"text-right font-semibold text-white",children:d})]},o))})]})]})}function cb(){const{connected:s,session:i,logs:c}=ve(),r=nb(),o=Nm(),d=i?.roster??[],m=Cm(d.map(y=>y.id)),b=_.useMemo(()=>({connected:s,ready:r,rosterCount:d.length}),[s,r,d.length]);return x.jsx("div",{className:"min-h-screen bg-slate-950 text-slate-50",children:x.jsxs("main",{className:"mx-auto flex max-w-7xl flex-col gap-6 px-6 py-10",children:[x.jsxs("header",{className:"space-y-3",children:[x.jsx("h1",{className:"text-4xl font-semibold text-white",children:"Spectator Console"}),x.jsx("p",{className:"text-slate-400",children:"Live rover telemetry & logs. This view is read-only."}),x.jsx(ab,{...b})]}),x.jsx("section",{className:"grid gap-6 lg:grid-cols-3",children:d.length===0?x.jsx("p",{className:"col-span-full text-slate-400",children:"No rovers registered."}):d.map(y=>x.jsx(sb,{rover:y,frame:o[y.id],videoInfo:m[y.id]},y.id))}),x.jsx(ib,{logs:c})]})})}c0.createRoot(document.getElementById("root")).render(x.jsx(_.StrictMode,{children:x.jsx(Rg,{children:x.jsx(Og,{children:x.jsx(Cg,{children:x.jsx(_v,{children:x.jsxs(tv,{children:[x.jsx(lr,{path:"/",element:x.jsx(lb,{})}),x.jsx(lr,{path:"/spectate",element:x.jsx(cb,{})})]})})})})})}));
|