(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))s(g);new MutationObserver(g=>{for(const R of g)if(R.type==="childList")for(const B of R.addedNodes)B.tagName==="LINK"&&B.rel==="modulepreload"&&s(B)}).observe(document,{childList:!0,subtree:!0});function c(g){const R={};return g.integrity&&(R.integrity=g.integrity),g.referrerPolicy&&(R.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?R.credentials="include":g.crossOrigin==="anonymous"?R.credentials="omit":R.credentials="same-origin",R}function s(g){if(g.ep)return;g.ep=!0;const R=c(g);fetch(g.href,R)}})();var xs={exports:{}},Za={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yh;function Om(){if(Yh)return Za;Yh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,g,R){var B=null;if(R!==void 0&&(B=""+R),g.key!==void 0&&(B=""+g.key),"key"in g){R={};for(var Y in g)Y!=="key"&&(R[Y]=g[Y])}else R=g;return g=R.ref,{$$typeof:r,type:s,key:B,ref:g!==void 0?g:null,props:R}}return Za.Fragment=i,Za.jsx=c,Za.jsxs=c,Za}var Lh;function zm(){return Lh||(Lh=1,xs.exports=Om()),xs.exports}var Q=zm(),Ms={exports:{}},at={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Xh;function Dm(){if(Xh)return at;Xh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),W=Symbol.iterator;function dt(d){return d===null||typeof d!="object"?null:(d=W&&d[W]||d["@@iterator"],typeof d=="function"?d:null)}var jt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kt=Object.assign,Tt={};function Yt(d,M,q){this.props=d,this.context=M,this.refs=Tt,this.updater=q||jt}Yt.prototype.isReactComponent={},Yt.prototype.setState=function(d,M){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,M,"setState")},Yt.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function bt(){}bt.prototype=Yt.prototype;function oe(d,M,q){this.props=d,this.context=M,this.refs=Tt,this.updater=q||jt}var Dt=oe.prototype=new bt;Dt.constructor=oe,Kt(Dt,Yt.prototype),Dt.isPureReactComponent=!0;var te=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},ee=Object.prototype.hasOwnProperty;function Ut(d,M,q,w,G,yt){return q=yt.ref,{$$typeof:r,type:d,key:M,ref:q!==void 0?q:null,props:yt}}function N(d,M){return Ut(d.type,M,void 0,void 0,void 0,d.props)}function ft(d){return typeof d=="object"&&d!==null&&d.$$typeof===r}function rt(d){var M={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(q){return M[q]})}var nt=/\/+/g;function vt(d,M){return typeof d=="object"&&d!==null&&d.key!=null?rt(""+d.key):M.toString(36)}function ie(){}function xt(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(ie,ie):(d.status="pending",d.then(function(M){d.status==="pending"&&(d.status="fulfilled",d.value=M)},function(M){d.status==="pending"&&(d.status="rejected",d.reason=M)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function Ct(d,M,q,w,G){var yt=typeof d;(yt==="undefined"||yt==="boolean")&&(d=null);var lt=!1;if(d===null)lt=!0;else switch(yt){case"bigint":case"string":case"number":lt=!0;break;case"object":switch(d.$$typeof){case r:case i:lt=!0;break;case C:return lt=d._init,Ct(lt(d._payload),M,q,w,G)}}if(lt)return G=G(d),lt=w===""?"."+vt(d,0):w,te(G)?(q="",lt!=null&&(q=lt.replace(nt,"$&/")+"/"),Ct(G,M,q,"",function(je){return je})):G!=null&&(ft(G)&&(G=N(G,q+(G.key==null||d&&d.key===G.key?"":(""+G.key).replace(nt,"$&/")+"/")+lt)),M.push(G)),1;lt=0;var ce=w===""?".":w+":";if(te(d))for(var Mt=0;Mt<d.length;Mt++)w=d[Mt],yt=ce+vt(w,Mt),lt+=Ct(w,M,q,yt,G);else if(Mt=dt(d),typeof Mt=="function")for(d=Mt.call(d),Mt=0;!(w=d.next()).done;)w=w.value,yt=ce+vt(w,Mt++),lt+=Ct(w,M,q,yt,G);else if(yt==="object"){if(typeof d.then=="function")return Ct(xt(d),M,q,w,G);throw M=String(d),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return lt}function T(d,M,q){if(d==null)return d;var w=[],G=0;return Ct(d,w,"","",function(yt){return M.call(q,yt,G++)}),w}function H(d){if(d._status===-1){var M=d._result;M=M(),M.then(function(q){(d._status===0||d._status===-1)&&(d._status=1,d._result=q)},function(q){(d._status===0||d._status===-1)&&(d._status=2,d._result=q)}),d._status===-1&&(d._status=0,d._result=M)}if(d._status===1)return d._result.default;throw d._result}var J=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function P(){}return at.Children={map:T,forEach:function(d,M,q){T(d,function(){M.apply(this,arguments)},q)},count:function(d){var M=0;return T(d,function(){M++}),M},toArray:function(d){return T(d,function(M){return M})||[]},only:function(d){if(!ft(d))throw Error("React.Children.only expected to receive a single React element child.");return d}},at.Component=Yt,at.Fragment=c,at.Profiler=g,at.PureComponent=oe,at.StrictMode=s,at.Suspense=D,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,at.__COMPILER_RUNTIME={__proto__:null,c:function(d){return K.H.useMemoCache(d)}},at.cache=function(d){return function(){return d.apply(null,arguments)}},at.cloneElement=function(d,M,q){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var w=Kt({},d.props),G=d.key,yt=void 0;if(M!=null)for(lt in M.ref!==void 0&&(yt=void 0),M.key!==void 0&&(G=""+M.key),M)!ee.call(M,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&M.ref===void 0||(w[lt]=M[lt]);var lt=arguments.length-2;if(lt===1)w.children=q;else if(1<lt){for(var ce=Array(lt),Mt=0;Mt<lt;Mt++)ce[Mt]=arguments[Mt+2];w.children=ce}return Ut(d.type,G,void 0,void 0,yt,w)},at.createContext=function(d){return d={$$typeof:B,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:R,_context:d},d},at.createElement=function(d,M,q){var w,G={},yt=null;if(M!=null)for(w in M.key!==void 0&&(yt=""+M.key),M)ee.call(M,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(G[w]=M[w]);var lt=arguments.length-2;if(lt===1)G.children=q;else if(1<lt){for(var ce=Array(lt),Mt=0;Mt<lt;Mt++)ce[Mt]=arguments[Mt+2];G.children=ce}if(d&&d.defaultProps)for(w in lt=d.defaultProps,lt)G[w]===void 0&&(G[w]=lt[w]);return Ut(d,yt,void 0,void 0,null,G)},at.createRef=function(){return{current:null}},at.forwardRef=function(d){return{$$typeof:Y,render:d}},at.isValidElement=ft,at.lazy=function(d){return{$$typeof:C,_payload:{_status:-1,_result:d},_init:H}},at.memo=function(d,M){return{$$typeof:E,type:d,compare:M===void 0?null:M}},at.startTransition=function(d){var M=K.T,q={};K.T=q;try{var w=d(),G=K.S;G!==null&&G(q,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(P,J)}catch(yt){J(yt)}finally{K.T=M}},at.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},at.use=function(d){return K.H.use(d)},at.useActionState=function(d,M,q){return K.H.useActionState(d,M,q)},at.useCallback=function(d,M){return K.H.useCallback(d,M)},at.useContext=function(d){return K.H.useContext(d)},at.useDebugValue=function(){},at.useDeferredValue=function(d,M){return K.H.useDeferredValue(d,M)},at.useEffect=function(d,M,q){var w=K.H;if(typeof q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return w.useEffect(d,M)},at.useId=function(){return K.H.useId()},at.useImperativeHandle=function(d,M,q){return K.H.useImperativeHandle(d,M,q)},at.useInsertionEffect=function(d,M){return K.H.useInsertionEffect(d,M)},at.useLayoutEffect=function(d,M){return K.H.useLayoutEffect(d,M)},at.useMemo=function(d,M){return K.H.useMemo(d,M)},at.useOptimistic=function(d,M){return K.H.useOptimistic(d,M)},at.useReducer=function(d,M,q){return K.H.useReducer(d,M,q)},at.useRef=function(d){return K.H.useRef(d)},at.useState=function(d){return K.H.useState(d)},at.useSyncExternalStore=function(d,M,q){return K.H.useSyncExternalStore(d,M,q)},at.useTransition=function(){return K.H.useTransition()},at.version="19.1.1",at}var Gh;function Vs(){return Gh||(Gh=1,Ms.exports=Dm()),Ms.exports}var ut=Vs(),Ns={exports:{}},Ka={},Us={exports:{}},Cs={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qh;function xm(){return Qh||(Qh=1,function(r){function i(T,H){var J=T.length;T.push(H);t:for(;0<J;){var P=J-1>>>1,d=T[P];if(0<g(d,H))T[P]=H,T[J]=d,J=P;else break t}}function c(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var H=T[0],J=T.pop();if(J!==H){T[0]=J;t:for(var P=0,d=T.length,M=d>>>1;P<M;){var q=2*(P+1)-1,w=T[q],G=q+1,yt=T[G];if(0>g(w,J))G<d&&0>g(yt,w)?(T[P]=yt,T[G]=J,P=G):(T[P]=w,T[q]=J,P=q);else if(G<d&&0>g(yt,J))T[P]=yt,T[G]=J,P=G;else break t}}return H}function g(T,H){var J=T.sortIndex-H.sortIndex;return J!==0?J:T.id-H.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var R=performance;r.unstable_now=function(){return R.now()}}else{var B=Date,Y=B.now();r.unstable_now=function(){return B.now()-Y}}var D=[],E=[],C=1,W=null,dt=3,jt=!1,Kt=!1,Tt=!1,Yt=!1,bt=typeof setTimeout=="function"?setTimeout:null,oe=typeof clearTimeout=="function"?clearTimeout:null,Dt=typeof setImmediate<"u"?setImmediate:null;function te(T){for(var H=c(E);H!==null;){if(H.callback===null)s(E);else if(H.startTime<=T)s(E),H.sortIndex=H.expirationTime,i(D,H);else break;H=c(E)}}function K(T){if(Tt=!1,te(T),!Kt)if(c(D)!==null)Kt=!0,ee||(ee=!0,vt());else{var H=c(E);H!==null&&Ct(K,H.startTime-T)}}var ee=!1,Ut=-1,N=5,ft=-1;function rt(){return Yt?!0:!(r.unstable_now()-ft<N)}function nt(){if(Yt=!1,ee){var T=r.unstable_now();ft=T;var H=!0;try{t:{Kt=!1,Tt&&(Tt=!1,oe(Ut),Ut=-1),jt=!0;var J=dt;try{e:{for(te(T),W=c(D);W!==null&&!(W.expirationTime>T&&rt());){var P=W.callback;if(typeof P=="function"){W.callback=null,dt=W.priorityLevel;var d=P(W.expirationTime<=T);if(T=r.unstable_now(),typeof d=="function"){W.callback=d,te(T),H=!0;break e}W===c(D)&&s(D),te(T)}else s(D);W=c(D)}if(W!==null)H=!0;else{var M=c(E);M!==null&&Ct(K,M.startTime-T),H=!1}}break t}finally{W=null,dt=J,jt=!1}H=void 0}}finally{H?vt():ee=!1}}}var vt;if(typeof Dt=="function")vt=function(){Dt(nt)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,xt=ie.port2;ie.port1.onmessage=nt,vt=function(){xt.postMessage(null)}}else vt=function(){bt(nt,0)};function Ct(T,H){Ut=bt(function(){T(r.unstable_now())},H)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(T){T.callback=null},r.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},r.unstable_getCurrentPriorityLevel=function(){return dt},r.unstable_next=function(T){switch(dt){case 1:case 2:case 3:var H=3;break;default:H=dt}var J=dt;dt=H;try{return T()}finally{dt=J}},r.unstable_requestPaint=function(){Yt=!0},r.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var J=dt;dt=T;try{return H()}finally{dt=J}},r.unstable_scheduleCallback=function(T,H,J){var P=r.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?P+J:P):J=P,T){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=1e4;break;default:d=5e3}return d=J+d,T={id:C++,callback:H,priorityLevel:T,startTime:J,expirationTime:d,sortIndex:-1},J>P?(T.sortIndex=J,i(E,T),c(D)===null&&T===c(E)&&(Tt?(oe(Ut),Ut=-1):Tt=!0,Ct(K,J-P))):(T.sortIndex=d,i(D,T),Kt||jt||(Kt=!0,ee||(ee=!0,vt()))),T},r.unstable_shouldYield=rt,r.unstable_wrapCallback=function(T){var H=dt;return function(){var J=dt;dt=H;try{return T.apply(this,arguments)}finally{dt=J}}}}(Cs)),Cs}var Vh;function Mm(){return Vh||(Vh=1,Us.exports=xm()),Us.exports}var Bs={exports:{}},re={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zh;function Nm(){if(Zh)return re;Zh=1;var r=Vs();function i(D){var E="https://react.dev/errors/"+D;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)E+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+D+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={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},g=Symbol.for("react.portal");function R(D,E,C){var W=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:W==null?null:""+W,children:D,containerInfo:E,implementation:C}}var B=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Y(D,E){if(D==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,re.createPortal=function(D,E){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(i(299));return R(D,E,null,C)},re.flushSync=function(D){var E=B.T,C=s.p;try{if(B.T=null,s.p=2,D)return D()}finally{B.T=E,s.p=C,s.d.f()}},re.preconnect=function(D,E){typeof D=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,s.d.C(D,E))},re.prefetchDNS=function(D){typeof D=="string"&&s.d.D(D)},re.preinit=function(D,E){if(typeof D=="string"&&E&&typeof E.as=="string"){var C=E.as,W=Y(C,E.crossOrigin),dt=typeof E.integrity=="string"?E.integrity:void 0,jt=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;C==="style"?s.d.S(D,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:W,integrity:dt,fetchPriority:jt}):C==="script"&&s.d.X(D,{crossOrigin:W,integrity:dt,fetchPriority:jt,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},re.preinitModule=function(D,E){if(typeof D=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var C=Y(E.as,E.crossOrigin);s.d.M(D,{crossOrigin:C,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&s.d.M(D)},re.preload=function(D,E){if(typeof D=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var C=E.as,W=Y(C,E.crossOrigin);s.d.L(D,C,{crossOrigin:W,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},re.preloadModule=function(D,E){if(typeof D=="string")if(E){var C=Y(E.as,E.crossOrigin);s.d.m(D,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:C,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else s.d.m(D)},re.requestFormReset=function(D){s.d.r(D)},re.unstable_batchedUpdates=function(D,E){return D(E)},re.useFormState=function(D,E,C){return B.H.useFormState(D,E,C)},re.useFormStatus=function(){return B.H.useHostTransitionStatus()},re.version="19.1.1",re}var Kh;function Um(){if(Kh)return Bs.exports;Kh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Bs.exports=Nm(),Bs.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var kh;function Cm(){if(kh)return Ka;kh=1;var r=Mm(),i=Vs(),c=Um();function s(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 g(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function R(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 B(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 Y(t){if(R(t)!==t)throw Error(s(188))}function D(t){var e=t.alternate;if(!e){if(e=R(t),e===null)throw Error(s(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(s(188))}if(l.return!==n.return)l=a,n=u;else{for(var f=!1,o=a.child;o;){if(o===l){f=!0,l=a,n=u;break}if(o===n){f=!0,n=a,l=u;break}o=o.sibling}if(!f){for(o=u.child;o;){if(o===l){f=!0,l=u,n=a;break}if(o===n){f=!0,n=u,l=a;break}o=o.sibling}if(!f)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:e}function E(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=E(t),e!==null)return e;t=t.sibling}return null}var C=Object.assign,W=Symbol.for("react.element"),dt=Symbol.for("react.transitional.element"),jt=Symbol.for("react.portal"),Kt=Symbol.for("react.fragment"),Tt=Symbol.for("react.strict_mode"),Yt=Symbol.for("react.profiler"),bt=Symbol.for("react.provider"),oe=Symbol.for("react.consumer"),Dt=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Ut=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),ft=Symbol.for("react.activity"),rt=Symbol.for("react.memo_cache_sentinel"),nt=Symbol.iterator;function vt(t){return t===null||typeof t!="object"?null:(t=nt&&t[nt]||t["@@iterator"],typeof t=="function"?t:null)}var ie=Symbol.for("react.client.reference");function xt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ie?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Kt:return"Fragment";case Yt:return"Profiler";case Tt:return"StrictMode";case K:return"Suspense";case ee:return"SuspenseList";case ft:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case jt:return"Portal";case Dt:return(t.displayName||"Context")+".Provider";case oe:return(t._context.displayName||"Context")+".Consumer";case te:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ut:return e=t.displayName||null,e!==null?e:xt(t.type)||"Memo";case N:e=t._payload,t=t._init;try{return xt(t(e))}catch{}}return null}var Ct=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},P=[],d=-1;function M(t){return{current:t}}function q(t){0>d||(t.current=P[d],P[d]=null,d--)}function w(t,e){d++,P[d]=t.current,t.current=e}var G=M(null),yt=M(null),lt=M(null),ce=M(null);function Mt(t,e){switch(w(lt,e),w(yt,t),w(G,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dh(e),t=yh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(G),w(G,t)}function je(){q(G),q(yt),q(lt)}function kn(t){t.memoizedState!==null&&w(ce,t);var e=G.current,l=yh(e,t.type);e!==l&&(w(yt,t),w(G,l))}function Yl(t){yt.current===t&&(q(G),q(yt)),ce.current===t&&(q(ce),La._currentValue=J)}var Jn=Object.prototype.hasOwnProperty,Ll=r.unstable_scheduleCallback,Ie=r.unstable_cancelCallback,gi=r.unstable_shouldYield,vi=r.unstable_requestPaint,Oe=r.unstable_now,$a=r.unstable_getCurrentPriorityLevel,$n=r.unstable_ImmediatePriority,Xl=r.unstable_UserBlockingPriority,m=r.unstable_NormalPriority,U=r.unstable_LowPriority,X=r.unstable_IdlePriority,A=r.log,k=r.unstable_setDisableYieldValue,$=null,j=null;function I(t){if(typeof A=="function"&&k(t),j&&typeof j.setStrictMode=="function")try{j.setStrictMode($,t)}catch{}}var ct=Math.clz32?Math.clz32:Ze,de=Math.log,Ve=Math.LN2;function Ze(t){return t>>>=0,t===0?32:31-(de(t)/Ve|0)|0}var Ye=256,$t=4194304;function Gt(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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;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 le(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 o=n&134217727;return o!==0?(n=o&~u,n!==0?a=Gt(n):(f&=o,f!==0?a=Gt(f):l||(l=o&~t,l!==0&&(a=Gt(l))))):(o=n&~u,o!==0?a=Gt(o):f!==0?a=Gt(f):l||(l=n&~t,l!==0&&(a=Gt(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 ze(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Wa(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 un(){var t=Ye;return Ye<<=1,(Ye&4194048)===0&&(Ye=256),t}function Fa(){var t=$t;return $t<<=1,($t&62914560)===0&&($t=4194304),t}function pi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Wn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yd(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 o=t.entanglements,h=t.expirationTimes,b=t.hiddenUpdates;for(l=f&~l;0<l;){var O=31-ct(l),x=1<<O;o[O]=0,h[O]=-1;var S=b[O];if(S!==null)for(b[O]=null,O=0;O<S.length;O++){var _=S[O];_!==null&&(_.lane&=-536870913)}l&=~x}n!==0&&Ws(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function Ws(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-ct(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&4194090}function Fs(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-ct(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function bi(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 Si(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ps(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Ch(t.type))}function md(t,e){var l=H.p;try{return H.p=t,e()}finally{H.p=l}}var ml=Math.random().toString(36).slice(2),se="__reactFiber$"+ml,ye="__reactProps$"+ml,cn="__reactContainer$"+ml,_i="__reactEvents$"+ml,gd="__reactListeners$"+ml,vd="__reactHandles$"+ml,Is="__reactResources$"+ml,Fn="__reactMarker$"+ml;function Ei(t){delete t[se],delete t[ye],delete t[_i],delete t[gd],delete t[vd]}function sn(t){var e=t[se];if(e)return e;for(var l=t.parentNode;l;){if(e=l[cn]||l[se]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=ph(t);t!==null;){if(l=t[se])return l;t=ph(t)}return e}t=l,l=t.parentNode}return null}function fn(t){if(t=t[se]||t[cn]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Pn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function rn(t){var e=t[Is];return e||(e=t[Is]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[Fn]=!0}var tf=new Set,ef={};function Gl(t,e){on(t,e),on(t+"Capture",e)}function on(t,e){for(ef[t]=e,t=0;t<e.length;t++)tf.add(e[t])}var pd=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]*$"),lf={},nf={};function bd(t){return Jn.call(nf,t)?!0:Jn.call(lf,t)?!1:pd.test(t)?nf[t]=!0:(lf[t]=!0,!1)}function Pa(t,e,l){if(bd(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 Ia(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 tl(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)}}var Ti,af;function hn(t){if(Ti===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ti=e&&e[1]||"",af=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ti+t+af}var Ai=!1;function Ri(t,e){if(!t||Ai)return"";Ai=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(_){var S=_}Reflect.construct(t,[],x)}else{try{x.call()}catch(_){S=_}t.call(x.prototype)}}else{try{throw Error()}catch(_){S=_}(x=t())&&typeof x.catch=="function"&&x.catch(function(){})}}catch(_){if(_&&S&&typeof _.stack=="string")return[_.stack,S.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],o=u[1];if(f&&o){var h=f.split(`
`),b=o.split(`
`);for(a=n=0;n<h.length&&!h[n].includes("DetermineComponentFrameRoot");)n++;for(;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;if(n===h.length||a===b.length)for(n=h.length-1,a=b.length-1;1<=n&&0<=a&&h[n]!==b[a];)a--;for(;1<=n&&0<=a;n--,a--)if(h[n]!==b[a]){if(n!==1||a!==1)do if(n--,a--,0>a||h[n]!==b[a]){var O=`
`+h[n].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=n&&0<=a);break}}}finally{Ai=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?hn(l):""}function Sd(t){switch(t.tag){case 26:case 27:case 5:return hn(t.type);case 16:return hn("Lazy");case 13:return hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return Ri(t.type,!1);case 11:return Ri(t.type.render,!1);case 1:return Ri(t.type,!0);case 31:return hn("Activity");default:return""}}function uf(t){try{var e="";do e+=Sd(t),t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function De(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function cf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _d(t){var e=cf(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function tu(t){t._valueTracker||(t._valueTracker=_d(t))}function sf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=cf(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function eu(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 Ed=/[\n"\\]/g;function xe(t){return t.replace(Ed,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Oi(t,e,l,n,a,u,f,o){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+De(e)):t.value!==""+De(e)&&(t.value=""+De(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?zi(t,f,De(e)):l!=null?zi(t,f,De(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+De(o):t.removeAttribute("name")}function ff(t,e,l,n,a,u,f,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;l=l!=null?""+De(l):"",e=e!=null?""+De(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=o?t.checked:!!n,t.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f)}function zi(t,e,l){e==="number"&&eu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function dn(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=""+De(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 rf(t,e,l){if(e!=null&&(e=""+De(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+De(l):""}function of(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(s(92));if(Ct(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=De(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n)}function yn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Td=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 hf(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||Td.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function df(t,e,l){if(e!=null&&typeof e!="object")throw Error(s(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&&hf(t,a,n)}else for(var u in e)e.hasOwnProperty(u)&&hf(t,u,e[u])}function Di(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 Ad=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"]]),Rd=/^[\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 lu(t){return Rd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var xi=null;function Mi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var mn=null,gn=null;function yf(t){var e=fn(t);if(e&&(t=e.stateNode)){var l=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if(Oi(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="'+xe(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[ye]||null;if(!a)throw Error(s(90));Oi(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&&sf(n)}break t;case"textarea":rf(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&dn(t,!!l.multiple,e,!1)}}}var Ni=!1;function mf(t,e,l){if(Ni)return t(e,l);Ni=!0;try{var n=t(e);return n}finally{if(Ni=!1,(mn!==null||gn!==null)&&(Xu(),mn&&(e=mn,t=gn,gn=mn=null,yf(e),t)))for(e=0;e<t.length;e++)yf(t[e])}}function In(t,e){var l=t.stateNode;if(l===null)return null;var n=l[ye]||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(s(231,e,typeof l));return l}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ui=!1;if(el)try{var ta={};Object.defineProperty(ta,"passive",{get:function(){Ui=!0}}),window.addEventListener("test",ta,ta),window.removeEventListener("test",ta,ta)}catch{Ui=!1}var gl=null,Ci=null,nu=null;function gf(){if(nu)return nu;var t,e=Ci,l=e.length,n,a="value"in gl?gl.value:gl.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 nu=a.slice(t,1<n?1-n:void 0)}function au(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 uu(){return!0}function vf(){return!1}function me(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 o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?uu:vf,this.isPropagationStopped=vf,this}return C(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=uu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),e}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=me(Ql),ea=C({},Ql,{view:0,detail:0}),Od=me(ea),Bi,qi,la,cu=C({},ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wi,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!==la&&(la&&t.type==="mousemove"?(Bi=t.screenX-la.screenX,qi=t.screenY-la.screenY):qi=Bi=0,la=t),Bi)},movementY:function(t){return"movementY"in t?t.movementY:qi}}),pf=me(cu),zd=C({},cu,{dataTransfer:0}),Dd=me(zd),xd=C({},ea,{relatedTarget:0}),Hi=me(xd),Md=C({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Nd=me(Md),Ud=C({},Ql,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cd=me(Ud),Bd=C({},Ql,{data:0}),bf=me(Bd),qd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hd={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"},wd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jd(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=wd[t])?!!e[t]:!1}function wi(){return jd}var Yd=C({},ea,{key:function(t){if(t.key){var e=qd[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=au(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hd[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wi,charCode:function(t){return t.type==="keypress"?au(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?au(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ld=me(Yd),Xd=C({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=me(Xd),Gd=C({},ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wi}),Qd=me(Gd),Vd=C({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zd=me(Vd),Kd=C({},cu,{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}),kd=me(Kd),Jd=C({},Ql,{newState:0,oldState:0}),$d=me(Jd),Wd=[9,13,27,32],ji=el&&"CompositionEvent"in window,na=null;el&&"documentMode"in document&&(na=document.documentMode);var Fd=el&&"TextEvent"in window&&!na,_f=el&&(!ji||na&&8<na&&11>=na),Ef=" ",Tf=!1;function Af(t,e){switch(t){case"keyup":return Wd.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var vn=!1;function Pd(t,e){switch(t){case"compositionend":return Rf(e);case"keypress":return e.which!==32?null:(Tf=!0,Ef);case"textInput":return t=e.data,t===Ef&&Tf?null:t;default:return null}}function Id(t,e){if(vn)return t==="compositionend"||!ji&&Af(t,e)?(t=gf(),nu=Ci=gl=null,vn=!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 _f&&e.locale!=="ko"?null:e.data;default:return null}}var ty={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 Of(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ty[t.type]:e==="textarea"}function zf(t,e,l,n){mn?gn?gn.push(n):gn=[n]:mn=n,e=ku(e,"onChange"),0<e.length&&(l=new iu("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var aa=null,ua=null;function ey(t){sh(t,0)}function su(t){var e=Pn(t);if(sf(e))return t}function Df(t,e){if(t==="change")return e}var xf=!1;if(el){var Yi;if(el){var Li="oninput"in document;if(!Li){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),Li=typeof Mf.oninput=="function"}Yi=Li}else Yi=!1;xf=Yi&&(!document.documentMode||9<document.documentMode)}function Nf(){aa&&(aa.detachEvent("onpropertychange",Uf),ua=aa=null)}function Uf(t){if(t.propertyName==="value"&&su(ua)){var e=[];zf(e,ua,t,Mi(t)),mf(ey,e)}}function ly(t,e,l){t==="focusin"?(Nf(),aa=e,ua=l,aa.attachEvent("onpropertychange",Uf)):t==="focusout"&&Nf()}function ny(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return su(ua)}function ay(t,e){if(t==="click")return su(e)}function uy(t,e){if(t==="input"||t==="change")return su(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:iy;function ia(t,e){if(be(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(!Jn.call(e,a)||!be(t[a],e[a]))return!1}return!0}function Cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bf(t,e){var l=Cf(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=Cf(l)}}function qf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=eu(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=eu(t.document)}return e}function Xi(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 cy=el&&"documentMode"in document&&11>=document.documentMode,pn=null,Gi=null,ca=null,Qi=!1;function wf(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qi||pn==null||pn!==eu(n)||(n=pn,"selectionStart"in n&&Xi(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}),ca&&ia(ca,n)||(ca=n,n=ku(Gi,"onSelect"),0<n.length&&(e=new iu("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=pn)))}function Vl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var bn={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Vi={},jf={};el&&(jf=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function Zl(t){if(Vi[t])return Vi[t];if(!bn[t])return t;var e=bn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in jf)return Vi[t]=e[l];return t}var Yf=Zl("animationend"),Lf=Zl("animationiteration"),Xf=Zl("animationstart"),sy=Zl("transitionrun"),fy=Zl("transitionstart"),ry=Zl("transitioncancel"),Gf=Zl("transitionend"),Qf=new Map,Zi="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(" ");Zi.push("scrollEnd");function Le(t,e){Qf.set(t,e),Gl(e,[t])}var Vf=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var l=Vf.get(t);return l!==void 0?l:(e={value:t,source:e,stack:uf(e)},Vf.set(t,e),e)}return{value:t,source:e,stack:uf(e)}}var Ne=[],Sn=0,Ki=0;function fu(){for(var t=Sn,e=Ki=Sn=0;e<t;){var l=Ne[e];Ne[e++]=null;var n=Ne[e];Ne[e++]=null;var a=Ne[e];Ne[e++]=null;var u=Ne[e];if(Ne[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&&Zf(l,a,u)}}function ru(t,e,l,n){Ne[Sn++]=t,Ne[Sn++]=e,Ne[Sn++]=l,Ne[Sn++]=n,Ki|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function ki(t,e,l,n){return ru(t,e,l,n),ou(t)}function _n(t,e){return ru(t,null,null,e),ou(t)}function Zf(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-ct(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function ou(t){if(50<Ua)throw Ua=0,Ic=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var En={};function oy(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 Se(t,e,l,n){return new oy(t,e,l,n)}function Ji(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ll(t,e){var l=t.alternate;return l===null?(l=Se(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 Kf(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 hu(t,e,l,n,a,u){var f=0;if(n=t,typeof t=="function")Ji(t)&&(f=1);else if(typeof t=="string")f=dm(t,l,G.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ft:return t=Se(31,l,e,a),t.elementType=ft,t.lanes=u,t;case Kt:return Kl(l.children,a,u,e);case Tt:f=8,a|=24;break;case Yt:return t=Se(12,l,e,a|2),t.elementType=Yt,t.lanes=u,t;case K:return t=Se(13,l,e,a),t.elementType=K,t.lanes=u,t;case ee:return t=Se(19,l,e,a),t.elementType=ee,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case bt:case Dt:f=10;break t;case oe:f=9;break t;case te:f=11;break t;case Ut:f=14;break t;case N:f=16,n=null;break t}f=29,l=Error(s(130,t===null?"null":typeof t,"")),n=null}return e=Se(f,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function Kl(t,e,l,n){return t=Se(7,t,n,e),t.lanes=l,t}function $i(t,e,l){return t=Se(6,t,null,e),t.lanes=l,t}function Wi(t,e,l){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Tn=[],An=0,du=null,yu=0,Ue=[],Ce=0,kl=null,nl=1,al="";function Jl(t,e){Tn[An++]=yu,Tn[An++]=du,du=t,yu=e}function kf(t,e,l){Ue[Ce++]=nl,Ue[Ce++]=al,Ue[Ce++]=kl,kl=t;var n=nl;t=al;var a=32-ct(n)-1;n&=~(1<<a),l+=1;var u=32-ct(e)+a;if(30<u){var f=a-a%5;u=(n&(1<<f)-1).toString(32),n>>=f,a-=f,nl=1<<32-ct(e)+a|l<<a|n,al=u+t}else nl=1<<u|l<<a|n,al=t}function Fi(t){t.return!==null&&(Jl(t,1),kf(t,1,0))}function Pi(t){for(;t===du;)du=Tn[--An],Tn[An]=null,yu=Tn[--An],Tn[An]=null;for(;t===kl;)kl=Ue[--Ce],Ue[Ce]=null,al=Ue[--Ce],Ue[Ce]=null,nl=Ue[--Ce],Ue[Ce]=null}var he=null,Ht=null,St=!1,$l=null,Ke=!1,Ii=Error(s(519));function Wl(t){var e=Error(s(418,""));throw ra(Me(e,t)),Ii}function Jf(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[se]=t,e[ye]=n,l){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(l=0;l<Ba.length;l++)ht(Ba[l],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),ff(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),tu(e);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),of(e,n.value,n.defaultValue,n.children),tu(e)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||hh(e.textContent,l)?(n.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),n.onScroll!=null&&ht("scroll",e),n.onScrollEnd!=null&&ht("scrollend",e),n.onClick!=null&&(e.onclick=Ju),e=!0):e=!1,e||Wl(t)}function $f(t){for(he=t.return;he;)switch(he.tag){case 5:case 13:Ke=!1;return;case 27:case 3:Ke=!0;return;default:he=he.return}}function sa(t){if(t!==he)return!1;if(!St)return $f(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")||ms(t.type,t.memoizedProps)),l=!l),l&&Ht&&Wl(t),$f(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(l=t.data,l==="/$"){if(e===0){Ht=Ge(t.nextSibling);break t}e--}else l!=="$"&&l!=="$!"&&l!=="$?"||e++;t=t.nextSibling}Ht=null}}else e===27?(e=Ht,Ul(t.type)?(t=bs,bs=null,Ht=t):Ht=e):Ht=he?Ge(t.stateNode.nextSibling):null;return!0}function fa(){Ht=he=null,St=!1}function Wf(){var t=$l;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),$l=null),t}function ra(t){$l===null?$l=[t]:$l.push(t)}var tc=M(null),Fl=null,ul=null;function vl(t,e,l){w(tc,e._currentValue),e._currentValue=l}function il(t){t._currentValue=tc.current,q(tc)}function ec(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 lc(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 o=u;u=a;for(var h=0;h<e.length;h++)if(o.context===e[h]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),ec(u.return,l,t),n||(f=null);break t}u=o.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(s(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),ec(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 oa(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(s(387));if(f=f.memoizedProps,f!==null){var o=a.type;be(a.pendingProps.value,f.value)||(t!==null?t.push(o):t=[o])}}else if(a===ce.current){if(f=a.alternate,f===null)throw Error(s(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(La):t=[La])}a=a.return}t!==null&&lc(e,t,l,n),e.flags|=262144}function mu(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Pl(t){Fl=t,ul=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return Ff(Fl,t)}function gu(t,e){return Fl===null&&Pl(t),Ff(t,e)}function Ff(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ul===null){if(t===null)throw Error(s(308));ul=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ul=ul.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()})}},dy=r.unstable_scheduleCallback,yy=r.unstable_NormalPriority,kt={$$typeof:Dt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nc(){return{controller:new hy,data:new Map,refCount:0}}function ha(t){t.refCount--,t.refCount===0&&dy(yy,function(){t.controller.abort()})}var da=null,ac=0,Rn=0,On=null;function my(t,e){if(da===null){var l=da=[];ac=0,Rn=is(),On={status:"pending",value:void 0,then:function(n){l.push(n)}}}return ac++,e.then(Pf,Pf),e}function Pf(){if(--ac===0&&da!==null){On!==null&&(On.status="fulfilled");var t=da;da=null,Rn=0,On=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gy(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 If=T.S;T.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&my(t,e),If!==null&&If(t,e)};var Il=M(null);function uc(){var t=Il.current;return t!==null?t:Nt.pooledCache}function vu(t,e){e===null?w(Il,Il.current):w(Il,e.pool)}function tr(){var t=uc();return t===null?null:{parent:kt._currentValue,pool:t}}var ya=Error(s(460)),er=Error(s(474)),pu=Error(s(542)),ic={then:function(){}};function lr(t){return t=t.status,t==="fulfilled"||t==="rejected"}function bu(){}function nr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(bu,bu),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ur(t),t;default:if(typeof e.status=="string")e.then(bu,bu);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(s(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,ur(t),t}throw ma=e,ya}}var ma=null;function ar(){if(ma===null)throw Error(s(459));var t=ma;return ma=null,t}function ur(t){if(t===ya||t===pu)throw Error(s(483))}var pl=!1;function cc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(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 bl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(_t&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=ou(t),Zf(t,null,l),e}return ru(t,n,e,l),ou(t)}function ga(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,Fs(t,l)}}function fc(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 rc=!1;function va(){if(rc){var t=On;if(t!==null)throw t}}function pa(t,e,l,n){rc=!1;var a=t.updateQueue;pl=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var h=o,b=h.next;h.next=null,f===null?u=b:f.next=b,f=h;var O=t.alternate;O!==null&&(O=O.updateQueue,o=O.lastBaseUpdate,o!==f&&(o===null?O.firstBaseUpdate=b:o.next=b,O.lastBaseUpdate=h))}if(u!==null){var x=a.baseState;f=0,O=b=h=null,o=u;do{var S=o.lane&-536870913,_=S!==o.lane;if(_?(gt&S)===S:(n&S)===S){S!==0&&S===Rn&&(rc=!0),O!==null&&(O=O.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var et=t,F=o;S=e;var Ot=l;switch(F.tag){case 1:if(et=F.payload,typeof et=="function"){x=et.call(Ot,x,S);break t}x=et;break t;case 3:et.flags=et.flags&-65537|128;case 0:if(et=F.payload,S=typeof et=="function"?et.call(Ot,x,S):et,S==null)break t;x=C({},x,S);break t;case 2:pl=!0}}S=o.callback,S!==null&&(t.flags|=64,_&&(t.flags|=8192),_=a.callbacks,_===null?a.callbacks=[S]:_.push(S))}else _={lane:S,tag:o.tag,payload:o.payload,callback:o.callback,next:null},O===null?(b=O=_,h=x):O=O.next=_,f|=S;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;_=o,o=_.next,_.next=null,a.lastBaseUpdate=_,a.shared.pending=null}}while(!0);O===null&&(h=x),a.baseState=h,a.firstBaseUpdate=b,a.lastBaseUpdate=O,u===null&&(a.shared.lanes=0),Dl|=f,t.lanes=f,t.memoizedState=x}}function ir(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function cr(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)ir(l[t],e)}var zn=M(null),Su=M(0);function sr(t,e){t=dl,w(Su,t),w(zn,e),dl=t|e.baseLanes}function oc(){w(Su,dl),w(zn,zn.current)}function hc(){dl=Su.current,q(zn),q(Su)}var _l=0,it=null,At=null,Qt=null,_u=!1,Dn=!1,tn=!1,Eu=0,ba=0,xn=null,vy=0;function Lt(){throw Error(s(321))}function dc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!be(t[l],e[l]))return!1;return!0}function yc(t,e,l,n,a,u){return _l=u,it=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Zr:Kr,tn=!1,u=l(n,a),tn=!1,Dn&&(u=rr(e,l,n,a)),fr(t),u}function fr(t){T.H=Du;var e=At!==null&&At.next!==null;if(_l=0,Qt=At=it=null,_u=!1,ba=0,xn=null,e)throw Error(s(300));t===null||Ft||(t=t.dependencies,t!==null&&mu(t)&&(Ft=!0))}function rr(t,e,l,n){it=t;var a=0;do{if(Dn&&(xn=null),ba=0,Dn=!1,25<=a)throw Error(s(301));if(a+=1,Qt=At=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=Ay,u=e(l,n)}while(Dn);return u}function py(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?Sa(e):e,t=t.useState()[0],(At!==null?At.memoizedState:null)!==t&&(it.flags|=1024),e}function mc(){var t=Eu!==0;return Eu=0,t}function gc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function vc(t){if(_u){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}_u=!1}_l=0,Qt=At=it=null,Dn=!1,ba=Eu=0,xn=null}function ge(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?it.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Vt(){if(At===null){var t=it.alternate;t=t!==null?t.memoizedState:null}else t=At.next;var e=Qt===null?it.memoizedState:Qt.next;if(e!==null)Qt=e,At=t;else{if(t===null)throw it.alternate===null?Error(s(467)):Error(s(310));At=t,t={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Qt===null?it.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function pc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(t){var e=ba;return ba+=1,xn===null&&(xn=[]),t=nr(xn,t,e),e=it,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Zr:Kr),t}function Tu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sa(t);if(t.$$typeof===Dt)return fe(t)}throw Error(s(438,String(t)))}function bc(t){var e=null,l=it.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=it.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=pc(),it.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]=rt;return e.index++,l}function cl(t,e){return typeof e=="function"?e(t):e}function Au(t){var e=Vt();return Sc(e,At,t)}function Sc(t,e,l){var n=t.queue;if(n===null)throw Error(s(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 o=f=null,h=null,b=e,O=!1;do{var x=b.lane&-536870913;if(x!==b.lane?(gt&x)===x:(_l&x)===x){var S=b.revertLane;if(S===0)h!==null&&(h=h.next={lane:0,revertLane:0,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),x===Rn&&(O=!0);else if((_l&S)===S){b=b.next,S===Rn&&(O=!0);continue}else x={lane:0,revertLane:b.revertLane,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},h===null?(o=h=x,f=u):h=h.next=x,it.lanes|=S,Dl|=S;x=b.action,tn&&l(u,x),u=b.hasEagerState?b.eagerState:l(u,x)}else S={lane:x,revertLane:b.revertLane,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},h===null?(o=h=S,f=u):h=h.next=S,it.lanes|=x,Dl|=x;b=b.next}while(b!==null&&b!==e);if(h===null?f=u:h.next=o,!be(u,t.memoizedState)&&(Ft=!0,O&&(l=On,l!==null)))throw l;t.memoizedState=u,t.baseState=f,t.baseQueue=h,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function _c(t){var e=Vt(),l=e.queue;if(l===null)throw Error(s(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);be(u,e.memoizedState)||(Ft=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function or(t,e,l){var n=it,a=Vt(),u=St;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=e();var f=!be((At||a).memoizedState,l);f&&(a.memoizedState=l,Ft=!0),a=a.queue;var o=yr.bind(null,n,a,t);if(_a(2048,8,o,[t]),a.getSnapshot!==e||f||Qt!==null&&Qt.memoizedState.tag&1){if(n.flags|=2048,Mn(9,Ru(),dr.bind(null,n,a,l,e),null),Nt===null)throw Error(s(349));u||(_l&124)!==0||hr(n,e,l)}return l}function hr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=it.updateQueue,e===null?(e=pc(),it.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function dr(t,e,l,n){e.value=l,e.getSnapshot=n,mr(e)&&gr(t)}function yr(t,e,l){return l(function(){mr(e)&&gr(t)})}function mr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!be(t,l)}catch{return!0}}function gr(t){var e=_n(t,2);e!==null&&Re(e,t,2)}function Ec(t){var e=ge();if(typeof t=="function"){var l=t;if(t=l(),tn){I(!0);try{l()}finally{I(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:t},e}function vr(t,e,l,n){return t.baseState=l,Sc(t,At,typeof n=="function"?n:cl)}function by(t,e,l,n,a){if(zu(t))throw Error(s(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)}};T.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,pr(e,u)):(u.next=l.next,e.pending=l.next=u)}}function pr(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=T.T,f={};T.T=f;try{var o=l(a,n),h=T.S;h!==null&&h(f,o),br(t,e,o)}catch(b){Tc(t,e,b)}finally{T.T=u}}else try{u=l(a,n),br(t,e,u)}catch(b){Tc(t,e,b)}}function br(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Sr(t,e,n)},function(n){return Tc(t,e,n)}):Sr(t,e,l)}function Sr(t,e,l){e.status="fulfilled",e.value=l,_r(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,pr(t,l)))}function Tc(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,_r(e),e=e.next;while(e!==n)}t.action=null}function _r(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Er(t,e){return e}function Tr(t,e){if(St){var l=Nt.formState;if(l!==null){t:{var n=it;if(St){if(Ht){e:{for(var a=Ht,u=Ke;a.nodeType!==8;){if(!u){a=null;break e}if(a=Ge(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Ht=Ge(a.nextSibling),n=a.data==="F!";break t}}Wl(n)}n=!1}n&&(e=l[0])}}return l=ge(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:e},l.queue=n,l=Gr.bind(null,it,n),n.dispatch=l,n=Ec(!1),u=Dc.bind(null,it,!1,n.queue),n=ge(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=by.bind(null,it,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Ar(t){var e=Vt();return Rr(e,At,t)}function Rr(t,e,l){if(e=Sc(t,e,Er)[0],t=Au(cl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Sa(e)}catch(f){throw f===ya?pu:f}else n=e;e=Vt();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(it.flags|=2048,Mn(9,Ru(),Sy.bind(null,a,l),null)),[n,u,t]}function Sy(t,e){t.action=e}function Or(t){var e=Vt(),l=At;if(l!==null)return Rr(e,l,t);Vt(),e=e.memoizedState,l=Vt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Mn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=it.updateQueue,e===null&&(e=pc(),it.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 Ru(){return{destroy:void 0,resource:void 0}}function zr(){return Vt().memoizedState}function Ou(t,e,l,n){var a=ge();n=n===void 0?null:n,it.flags|=t,a.memoizedState=Mn(1|e,Ru(),l,n)}function _a(t,e,l,n){var a=Vt();n=n===void 0?null:n;var u=a.memoizedState.inst;At!==null&&n!==null&&dc(n,At.memoizedState.deps)?a.memoizedState=Mn(e,u,l,n):(it.flags|=t,a.memoizedState=Mn(1|e,u,l,n))}function Dr(t,e){Ou(8390656,8,t,e)}function xr(t,e){_a(2048,8,t,e)}function Mr(t,e){return _a(4,2,t,e)}function Nr(t,e){return _a(4,4,t,e)}function Ur(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 Cr(t,e,l){l=l!=null?l.concat([t]):null,_a(4,4,Ur.bind(null,e,t),l)}function Ac(){}function Br(t,e){var l=Vt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&dc(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function qr(t,e){var l=Vt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&dc(e,n[1]))return n[0];if(n=t(),tn){I(!0);try{t()}finally{I(!1)}}return l.memoizedState=[n,e],n}function Rc(t,e,l){return l===void 0||(_l&1073741824)!==0?t.memoizedState=e:(t.memoizedState=l,t=Yo(),it.lanes|=t,Dl|=t,l)}function Hr(t,e,l,n){return be(l,e)?l:zn.current!==null?(t=Rc(t,l,n),be(t,e)||(Ft=!0),t):(_l&42)===0?(Ft=!0,t.memoizedState=l):(t=Yo(),it.lanes|=t,Dl|=t,e)}function wr(t,e,l,n,a){var u=H.p;H.p=u!==0&&8>u?u:8;var f=T.T,o={};T.T=o,Dc(t,!1,e,l);try{var h=a(),b=T.S;if(b!==null&&b(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var O=gy(h,n);Ea(t,e,O,Ae(t))}else Ea(t,e,n,Ae(t))}catch(x){Ea(t,e,{then:function(){},status:"rejected",reason:x},Ae())}finally{H.p=u,T.T=f}}function _y(){}function Oc(t,e,l,n){if(t.tag!==5)throw Error(s(476));var a=jr(t).queue;wr(t,a,e,J,l===null?_y:function(){return Yr(t),l(n)})}function jr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:J},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Yr(t){var e=jr(t).next.queue;Ea(t,e,{},Ae())}function zc(){return fe(La)}function Lr(){return Vt().memoizedState}function Xr(){return Vt().memoizedState}function Ey(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ae();t=bl(l);var n=Sl(e,t,l);n!==null&&(Re(n,e,l),ga(n,e,l)),e={cache:nc()},t.payload=e;return}e=e.return}}function Ty(t,e,l){var n=Ae();l={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},zu(t)?Qr(e,l):(l=ki(t,e,l,n),l!==null&&(Re(l,t,n),Vr(l,e,n)))}function Gr(t,e,l){var n=Ae();Ea(t,e,l,n)}function Ea(t,e,l,n){var a={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(zu(t))Qr(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,o=u(f,l);if(a.hasEagerState=!0,a.eagerState=o,be(o,f))return ru(t,e,a,0),Nt===null&&fu(),!1}catch{}finally{}if(l=ki(t,e,a,n),l!==null)return Re(l,t,n),Vr(l,e,n),!0}return!1}function Dc(t,e,l,n){if(n={lane:2,revertLane:is(),action:n,hasEagerState:!1,eagerState:null,next:null},zu(t)){if(e)throw Error(s(479))}else e=ki(t,l,n,2),e!==null&&Re(e,t,2)}function zu(t){var e=t.alternate;return t===it||e!==null&&e===it}function Qr(t,e){Dn=_u=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Vr(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Fs(t,l)}}var Du={readContext:fe,use:Tu,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt},Zr={readContext:fe,use:Tu,useCallback:function(t,e){return ge().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Dr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Ou(4194308,4,Ur.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Ou(4194308,4,t,e)},useInsertionEffect:function(t,e){Ou(4,2,t,e)},useMemo:function(t,e){var l=ge();e=e===void 0?null:e;var n=t();if(tn){I(!0);try{t()}finally{I(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=ge();if(l!==void 0){var a=l(e);if(tn){I(!0);try{l(e)}finally{I(!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=Ty.bind(null,it,t),[n.memoizedState,t]},useRef:function(t){var e=ge();return t={current:t},e.memoizedState=t},useState:function(t){t=Ec(t);var e=t.queue,l=Gr.bind(null,it,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ac,useDeferredValue:function(t,e){var l=ge();return Rc(l,t,e)},useTransition:function(){var t=Ec(!1);return t=wr.bind(null,it,t.queue,!0,!1),ge().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=it,a=ge();if(St){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),Nt===null)throw Error(s(349));(gt&124)!==0||hr(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,Dr(yr.bind(null,n,u,t),[t]),n.flags|=2048,Mn(9,Ru(),dr.bind(null,n,u,l,e),null),l},useId:function(){var t=ge(),e=Nt.identifierPrefix;if(St){var l=al,n=nl;l=(n&~(1<<32-ct(n)-1)).toString(32)+l,e="«"+e+"R"+l,l=Eu++,0<l&&(e+="H"+l.toString(32)),e+="»"}else l=vy++,e="«"+e+"r"+l.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:zc,useFormState:Tr,useActionState:Tr,useOptimistic:function(t){var e=ge();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Dc.bind(null,it,!0,l),l.dispatch=e,[t,e]},useMemoCache:bc,useCacheRefresh:function(){return ge().memoizedState=Ey.bind(null,it)}},Kr={readContext:fe,use:Tu,useCallback:Br,useContext:fe,useEffect:xr,useImperativeHandle:Cr,useInsertionEffect:Mr,useLayoutEffect:Nr,useMemo:qr,useReducer:Au,useRef:zr,useState:function(){return Au(cl)},useDebugValue:Ac,useDeferredValue:function(t,e){var l=Vt();return Hr(l,At.memoizedState,t,e)},useTransition:function(){var t=Au(cl)[0],e=Vt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:or,useId:Lr,useHostTransitionStatus:zc,useFormState:Ar,useActionState:Ar,useOptimistic:function(t,e){var l=Vt();return vr(l,At,t,e)},useMemoCache:bc,useCacheRefresh:Xr},Ay={readContext:fe,use:Tu,useCallback:Br,useContext:fe,useEffect:xr,useImperativeHandle:Cr,useInsertionEffect:Mr,useLayoutEffect:Nr,useMemo:qr,useReducer:_c,useRef:zr,useState:function(){return _c(cl)},useDebugValue:Ac,useDeferredValue:function(t,e){var l=Vt();return At===null?Rc(l,t,e):Hr(l,At.memoizedState,t,e)},useTransition:function(){var t=_c(cl)[0],e=Vt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:or,useId:Lr,useHostTransitionStatus:zc,useFormState:Or,useActionState:Or,useOptimistic:function(t,e){var l=Vt();return At!==null?vr(l,At,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:bc,useCacheRefresh:Xr},Nn=null,Ta=0;function xu(t){var e=Ta;return Ta+=1,Nn===null&&(Nn=[]),nr(Nn,t,e)}function Aa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Mu(t,e){throw e.$$typeof===W?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function kr(t){var e=t._init;return e(t._payload)}function Jr(t){function e(v,y){if(t){var p=v.deletions;p===null?(v.deletions=[y],v.flags|=16):p.push(y)}}function l(v,y){if(!t)return null;for(;y!==null;)e(v,y),y=y.sibling;return null}function n(v){for(var y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function a(v,y){return v=ll(v,y),v.index=0,v.sibling=null,v}function u(v,y,p){return v.index=p,t?(p=v.alternate,p!==null?(p=p.index,p<y?(v.flags|=67108866,y):p):(v.flags|=67108866,y)):(v.flags|=1048576,y)}function f(v){return t&&v.alternate===null&&(v.flags|=67108866),v}function o(v,y,p,z){return y===null||y.tag!==6?(y=$i(p,v.mode,z),y.return=v,y):(y=a(y,p),y.return=v,y)}function h(v,y,p,z){var L=p.type;return L===Kt?O(v,y,p.props.children,z,p.key):y!==null&&(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===N&&kr(L)===y.type)?(y=a(y,p.props),Aa(y,p),y.return=v,y):(y=hu(p.type,p.key,p.props,null,v.mode,z),Aa(y,p),y.return=v,y)}function b(v,y,p,z){return y===null||y.tag!==4||y.stateNode.containerInfo!==p.containerInfo||y.stateNode.implementation!==p.implementation?(y=Wi(p,v.mode,z),y.return=v,y):(y=a(y,p.children||[]),y.return=v,y)}function O(v,y,p,z,L){return y===null||y.tag!==7?(y=Kl(p,v.mode,z,L),y.return=v,y):(y=a(y,p),y.return=v,y)}function x(v,y,p){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=$i(""+y,v.mode,p),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case dt:return p=hu(y.type,y.key,y.props,null,v.mode,p),Aa(p,y),p.return=v,p;case jt:return y=Wi(y,v.mode,p),y.return=v,y;case N:var z=y._init;return y=z(y._payload),x(v,y,p)}if(Ct(y)||vt(y))return y=Kl(y,v.mode,p,null),y.return=v,y;if(typeof y.then=="function")return x(v,xu(y),p);if(y.$$typeof===Dt)return x(v,gu(v,y),p);Mu(v,y)}return null}function S(v,y,p,z){var L=y!==null?y.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return L!==null?null:o(v,y,""+p,z);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case dt:return p.key===L?h(v,y,p,z):null;case jt:return p.key===L?b(v,y,p,z):null;case N:return L=p._init,p=L(p._payload),S(v,y,p,z)}if(Ct(p)||vt(p))return L!==null?null:O(v,y,p,z,null);if(typeof p.then=="function")return S(v,y,xu(p),z);if(p.$$typeof===Dt)return S(v,y,gu(v,p),z);Mu(v,p)}return null}function _(v,y,p,z,L){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return v=v.get(p)||null,o(y,v,""+z,L);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case dt:return v=v.get(z.key===null?p:z.key)||null,h(y,v,z,L);case jt:return v=v.get(z.key===null?p:z.key)||null,b(y,v,z,L);case N:var st=z._init;return z=st(z._payload),_(v,y,p,z,L)}if(Ct(z)||vt(z))return v=v.get(p)||null,O(y,v,z,L,null);if(typeof z.then=="function")return _(v,y,p,xu(z),L);if(z.$$typeof===Dt)return _(v,y,p,gu(y,z),L);Mu(y,z)}return null}function et(v,y,p,z){for(var L=null,st=null,Z=y,tt=y=0,It=null;Z!==null&&tt<p.length;tt++){Z.index>tt?(It=Z,Z=null):It=Z.sibling;var pt=S(v,Z,p[tt],z);if(pt===null){Z===null&&(Z=It);break}t&&Z&&pt.alternate===null&&e(v,Z),y=u(pt,y,tt),st===null?L=pt:st.sibling=pt,st=pt,Z=It}if(tt===p.length)return l(v,Z),St&&Jl(v,tt),L;if(Z===null){for(;tt<p.length;tt++)Z=x(v,p[tt],z),Z!==null&&(y=u(Z,y,tt),st===null?L=Z:st.sibling=Z,st=Z);return St&&Jl(v,tt),L}for(Z=n(Z);tt<p.length;tt++)It=_(Z,v,tt,p[tt],z),It!==null&&(t&&It.alternate!==null&&Z.delete(It.key===null?tt:It.key),y=u(It,y,tt),st===null?L=It:st.sibling=It,st=It);return t&&Z.forEach(function(wl){return e(v,wl)}),St&&Jl(v,tt),L}function F(v,y,p,z){if(p==null)throw Error(s(151));for(var L=null,st=null,Z=y,tt=y=0,It=null,pt=p.next();Z!==null&&!pt.done;tt++,pt=p.next()){Z.index>tt?(It=Z,Z=null):It=Z.sibling;var wl=S(v,Z,pt.value,z);if(wl===null){Z===null&&(Z=It);break}t&&Z&&wl.alternate===null&&e(v,Z),y=u(wl,y,tt),st===null?L=wl:st.sibling=wl,st=wl,Z=It}if(pt.done)return l(v,Z),St&&Jl(v,tt),L;if(Z===null){for(;!pt.done;tt++,pt=p.next())pt=x(v,pt.value,z),pt!==null&&(y=u(pt,y,tt),st===null?L=pt:st.sibling=pt,st=pt);return St&&Jl(v,tt),L}for(Z=n(Z);!pt.done;tt++,pt=p.next())pt=_(Z,v,tt,pt.value,z),pt!==null&&(t&&pt.alternate!==null&&Z.delete(pt.key===null?tt:pt.key),y=u(pt,y,tt),st===null?L=pt:st.sibling=pt,st=pt);return t&&Z.forEach(function(Rm){return e(v,Rm)}),St&&Jl(v,tt),L}function Ot(v,y,p,z){if(typeof p=="object"&&p!==null&&p.type===Kt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case dt:t:{for(var L=p.key;y!==null;){if(y.key===L){if(L=p.type,L===Kt){if(y.tag===7){l(v,y.sibling),z=a(y,p.props.children),z.return=v,v=z;break t}}else if(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===N&&kr(L)===y.type){l(v,y.sibling),z=a(y,p.props),Aa(z,p),z.return=v,v=z;break t}l(v,y);break}else e(v,y);y=y.sibling}p.type===Kt?(z=Kl(p.props.children,v.mode,z,p.key),z.return=v,v=z):(z=hu(p.type,p.key,p.props,null,v.mode,z),Aa(z,p),z.return=v,v=z)}return f(v);case jt:t:{for(L=p.key;y!==null;){if(y.key===L)if(y.tag===4&&y.stateNode.containerInfo===p.containerInfo&&y.stateNode.implementation===p.implementation){l(v,y.sibling),z=a(y,p.children||[]),z.return=v,v=z;break t}else{l(v,y);break}else e(v,y);y=y.sibling}z=Wi(p,v.mode,z),z.return=v,v=z}return f(v);case N:return L=p._init,p=L(p._payload),Ot(v,y,p,z)}if(Ct(p))return et(v,y,p,z);if(vt(p)){if(L=vt(p),typeof L!="function")throw Error(s(150));return p=L.call(p),F(v,y,p,z)}if(typeof p.then=="function")return Ot(v,y,xu(p),z);if(p.$$typeof===Dt)return Ot(v,y,gu(v,p),z);Mu(v,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,y!==null&&y.tag===6?(l(v,y.sibling),z=a(y,p),z.return=v,v=z):(l(v,y),z=$i(p,v.mode,z),z.return=v,v=z),f(v)):l(v,y)}return function(v,y,p,z){try{Ta=0;var L=Ot(v,y,p,z);return Nn=null,L}catch(Z){if(Z===ya||Z===pu)throw Z;var st=Se(29,Z,null,v.mode);return st.lanes=z,st.return=v,st}finally{}}}var Un=Jr(!0),$r=Jr(!1),Be=M(null),ke=null;function El(t){var e=t.alternate;w(Jt,Jt.current&1),w(Be,t),ke===null&&(e===null||zn.current!==null||e.memoizedState!==null)&&(ke=t)}function Wr(t){if(t.tag===22){if(w(Jt,Jt.current),w(Be,t),ke===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(ke=t)}}else Tl()}function Tl(){w(Jt,Jt.current),w(Be,Be.current)}function sl(t){q(Be),ke===t&&(ke=null),q(Jt)}var Jt=M(0);function Nu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||ps(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){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}function xc(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:C({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Mc={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Ae(),a=bl(n);a.payload=e,l!=null&&(a.callback=l),e=Sl(t,a,n),e!==null&&(Re(e,t,n),ga(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Ae(),a=bl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=Sl(t,a,n),e!==null&&(Re(e,t,n),ga(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ae(),n=bl(l);n.tag=2,e!=null&&(n.callback=e),e=Sl(t,n,l),e!==null&&(Re(e,t,l),ga(e,t,l))}};function Fr(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?!ia(l,n)||!ia(a,u):!0}function Pr(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&&Mc.enqueueReplaceState(e,e.state,null)}function en(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=C({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}var Uu=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)};function Ir(t){Uu(t)}function to(t){console.error(t)}function eo(t){Uu(t)}function Cu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function lo(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 Nc(t,e,l){return l=bl(l),l.tag=3,l.payload={element:null},l.callback=function(){Cu(t,e)},l}function no(t){return t=bl(t),t.tag=3,t}function ao(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(){lo(e,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){lo(e,l,n),typeof a!="function"&&(xl===null?xl=new Set([this]):xl.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})})}function Ry(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&oa(e,l,a,!0),l=Be.current,l!==null){switch(l.tag){case 13:return ke===null?es():l.alternate===null&&wt===0&&(wt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ic?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),ns(t,n,a)),!1;case 22:return l.flags|=65536,n===ic?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)),ns(t,n,a)),!1}throw Error(s(435,l.tag))}return ns(t,n,a),es(),!1}if(St)return e=Be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Ii&&(t=Error(s(422),{cause:n}),ra(Me(t,l)))):(n!==Ii&&(e=Error(s(423),{cause:n}),ra(Me(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Me(n,l),a=Nc(t.stateNode,n,a),fc(t,a),wt!==4&&(wt=2)),!1;var u=Error(s(520),{cause:n});if(u=Me(u,l),Na===null?Na=[u]:Na.push(u),wt!==4&&(wt=2),e===null)return!0;n=Me(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=Nc(l.stateNode,n,t),fc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(xl===null||!xl.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=no(a),ao(a,t,l,n),fc(l,a),!1}l=l.return}while(l!==null);return!1}var uo=Error(s(461)),Ft=!1;function ne(t,e,l,n){e.child=t===null?$r(e,null,l,n):Un(e,t.child,l,n)}function io(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var f={};for(var o in n)o!=="ref"&&(f[o]=n[o])}else f=n;return Pl(e),n=yc(t,e,l,f,u,a),o=mc(),t!==null&&!Ft?(gc(t,e,a),fl(t,e,a)):(St&&o&&Fi(e),e.flags|=1,ne(t,e,n,a),e.child)}function co(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!Ji(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,so(t,e,u,n,a)):(t=hu(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Yc(t,a)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:ia,l(f,n)&&t.ref===e.ref)return fl(t,e,a)}return e.flags|=1,t=ll(u,n),t.ref=e.ref,t.return=e,e.child=t}function so(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(ia(u,n)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=n=u,Yc(t,a))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,fl(t,e,a)}return Uc(t,e,l,n,a)}function fo(t,e,l){var n=e.pendingProps,a=n.children,u=t!==null?t.memoizedState:null;if(n.mode==="hidden"){if((e.flags&128)!==0){if(n=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;e.childLanes=u&~n}else e.childLanes=0,e.child=null;return ro(t,e,n,l)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&vu(e,u!==null?u.cachePool:null),u!==null?sr(e,u):oc(),Wr(e);else return e.lanes=e.childLanes=536870912,ro(t,e,u!==null?u.baseLanes|l:l,l)}else u!==null?(vu(e,u.cachePool),sr(e,u),Tl(),e.memoizedState=null):(t!==null&&vu(e,null),oc(),Tl());return ne(t,e,a,l),e.child}function ro(t,e,l,n){var a=uc();return a=a===null?null:{parent:kt._currentValue,pool:a},e.memoizedState={baseLanes:l,cachePool:a},t!==null&&vu(e,null),oc(),Wr(e),t!==null&&oa(t,e,n,!0),null}function Bu(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(s(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Uc(t,e,l,n,a){return Pl(e),l=yc(t,e,l,n,void 0,a),n=mc(),t!==null&&!Ft?(gc(t,e,a),fl(t,e,a)):(St&&n&&Fi(e),e.flags|=1,ne(t,e,l,a),e.child)}function oo(t,e,l,n,a,u){return Pl(e),e.updateQueue=null,l=rr(e,n,l,a),fr(t),n=mc(),t!==null&&!Ft?(gc(t,e,u),fl(t,e,u)):(St&&n&&Fi(e),e.flags|=1,ne(t,e,l,u),e.child)}function ho(t,e,l,n,a){if(Pl(e),e.stateNode===null){var u=En,f=l.contextType;typeof f=="object"&&f!==null&&(u=fe(f)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Mc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},cc(e),f=l.contextType,u.context=typeof f=="object"&&f!==null?fe(f):En,u.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(xc(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&&Mc.enqueueReplaceState(u,u.state,null),pa(e,n,u,a),va(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,h=en(l,o);u.props=h;var b=u.context,O=l.contextType;f=En,typeof O=="object"&&O!==null&&(f=fe(O));var x=l.getDerivedStateFromProps;O=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||b!==f)&&Pr(e,u,n,f),pl=!1;var S=e.memoizedState;u.state=S,pa(e,n,u,a),va(),b=e.memoizedState,o||S!==b||pl?(typeof x=="function"&&(xc(e,l,x,n),b=e.memoizedState),(h=pl||Fr(e,l,h,n,S,b,f))?(O||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=b),u.props=n,u.state=b,u.context=f,n=h):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,sc(t,e),f=e.memoizedProps,O=en(l,f),u.props=O,x=e.pendingProps,S=u.context,b=l.contextType,h=En,typeof b=="object"&&b!==null&&(h=fe(b)),o=l.getDerivedStateFromProps,(b=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==x||S!==h)&&Pr(e,u,n,h),pl=!1,S=e.memoizedState,u.state=S,pa(e,n,u,a),va();var _=e.memoizedState;f!==x||S!==_||pl||t!==null&&t.dependencies!==null&&mu(t.dependencies)?(typeof o=="function"&&(xc(e,l,o,n),_=e.memoizedState),(O=pl||Fr(e,l,O,n,S,_,h)||t!==null&&t.dependencies!==null&&mu(t.dependencies))?(b||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,_,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,_,h)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=_),u.props=n,u.state=_,u.context=h,n=O):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Bu(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=Un(e,t.child,null,a),e.child=Un(e,null,l,a)):ne(t,e,l,a),e.memoizedState=u.state,t=e.child):t=fl(t,e,a),t}function yo(t,e,l,n){return fa(),e.flags|=256,ne(t,e,l,n),e.child}var Cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(t){return{baseLanes:t,cachePool:tr()}}function qc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=qe),t}function mo(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:(Jt.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(a?El(e):Tl(),St){var o=Ht,h;if(h=o){t:{for(h=o,o=Ke;h.nodeType!==8;){if(!o){o=null;break t}if(h=Ge(h.nextSibling),h===null){o=null;break t}}o=h}o!==null?(e.memoizedState={dehydrated:o,treeContext:kl!==null?{id:nl,overflow:al}:null,retryLane:536870912,hydrationErrors:null},h=Se(18,null,null,0),h.stateNode=o,h.return=e,e.child=h,he=e,Ht=null,h=!0):h=!1}h||Wl(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return ps(o)?e.lanes=32:e.lanes=536870912,null;sl(e)}return o=n.children,n=n.fallback,a?(Tl(),a=e.mode,o=qu({mode:"hidden",children:o},a),n=Kl(n,a,l,null),o.return=e,n.return=e,o.sibling=n,e.child=o,a=e.child,a.memoizedState=Bc(l),a.childLanes=qc(t,f,l),e.memoizedState=Cc,n):(El(e),Hc(e,o))}if(h=t.memoizedState,h!==null&&(o=h.dehydrated,o!==null)){if(u)e.flags&256?(El(e),e.flags&=-257,e=wc(t,e,l)):e.memoizedState!==null?(Tl(),e.child=t.child,e.flags|=128,e=null):(Tl(),a=n.fallback,o=e.mode,n=qu({mode:"visible",children:n.children},o),a=Kl(a,o,l,null),a.flags|=2,n.return=e,a.return=e,n.sibling=a,e.child=n,Un(e,t.child,null,l),n=e.child,n.memoizedState=Bc(l),n.childLanes=qc(t,f,l),e.memoizedState=Cc,e=a);else if(El(e),ps(o)){if(f=o.nextSibling&&o.nextSibling.dataset,f)var b=f.dgst;f=b,n=Error(s(419)),n.stack="",n.digest=f,ra({value:n,source:null,stack:null}),e=wc(t,e,l)}else if(Ft||oa(t,e,l,!1),f=(l&t.childLanes)!==0,Ft||f){if(f=Nt,f!==null&&(n=l&-l,n=(n&42)!==0?1:bi(n),n=(n&(f.suspendedLanes|l))!==0?0:n,n!==0&&n!==h.retryLane))throw h.retryLane=n,_n(t,n),Re(f,t,n),uo;o.data==="$?"||es(),e=wc(t,e,l)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,Ht=Ge(o.nextSibling),he=e,St=!0,$l=null,Ke=!1,t!==null&&(Ue[Ce++]=nl,Ue[Ce++]=al,Ue[Ce++]=kl,nl=t.id,al=t.overflow,kl=e),e=Hc(e,n.children),e.flags|=4096);return e}return a?(Tl(),a=n.fallback,o=e.mode,h=t.child,b=h.sibling,n=ll(h,{mode:"hidden",children:n.children}),n.subtreeFlags=h.subtreeFlags&65011712,b!==null?a=ll(b,a):(a=Kl(a,o,l,null),a.flags|=2),a.return=e,n.return=e,n.sibling=a,e.child=n,n=a,a=e.child,o=t.child.memoizedState,o===null?o=Bc(l):(h=o.cachePool,h!==null?(b=kt._currentValue,h=h.parent!==b?{parent:b,pool:b}:h):h=tr(),o={baseLanes:o.baseLanes|l,cachePool:h}),a.memoizedState=o,a.childLanes=qc(t,f,l),e.memoizedState=Cc,n):(El(e),l=t.child,t=l.sibling,l=ll(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 Hc(t,e){return e=qu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function qu(t,e){return t=Se(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function wc(t,e,l){return Un(e,t.child,null,l),t=Hc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function go(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ec(t.return,e,l)}function jc(t,e,l,n,a){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=l,u.tailMode=a)}function vo(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;if(ne(t,e,n.children,l),n=Jt.current,(n&2)!==0)n=n&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&go(t,l,e);else if(t.tag===19)go(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}n&=1}switch(w(Jt,n),a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&Nu(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),jc(e,!1,a,l,u);break;case"backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Nu(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}jc(e,!0,l,null,u);break;case"together":jc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function fl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Dl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(oa(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,l=ll(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ll(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Yc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&mu(t)))}function Oy(t,e,l){switch(e.tag){case 3:Mt(e,e.stateNode.containerInfo),vl(e,kt,t.memoizedState.cache),fa();break;case 27:case 5:kn(e);break;case 4:Mt(e,e.stateNode.containerInfo);break;case 10:vl(e,e.type,e.memoizedProps.value);break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(El(e),e.flags|=128,null):(l&e.child.childLanes)!==0?mo(t,e,l):(El(e),t=fl(t,e,l),t!==null?t.sibling:null);El(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(oa(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return vo(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),w(Jt,Jt.current),n)break;return null;case 22:case 23:return e.lanes=0,fo(t,e,l);case 24:vl(e,kt,t.memoizedState.cache)}return fl(t,e,l)}function po(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!Yc(t,l)&&(e.flags&128)===0)return Ft=!1,Oy(t,e,l);Ft=(t.flags&131072)!==0}else Ft=!1,St&&(e.flags&1048576)!==0&&kf(e,yu,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var n=e.elementType,a=n._init;if(n=a(n._payload),e.type=n,typeof n=="function")Ji(n)?(t=en(n,t),e.tag=1,e=ho(null,e,n,t,l)):(e.tag=0,e=Uc(null,e,n,t,l));else{if(n!=null){if(a=n.$$typeof,a===te){e.tag=11,e=io(null,e,n,t,l);break t}else if(a===Ut){e.tag=14,e=co(null,e,n,t,l);break t}}throw e=xt(n)||n,Error(s(306,e,""))}}return e;case 0:return Uc(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=en(n,e.pendingProps),ho(t,e,n,a,l);case 3:t:{if(Mt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,sc(t,e),pa(e,n,null,l);var f=e.memoizedState;if(n=f.cache,vl(e,kt,n),n!==u.cache&&lc(e,[kt],l,!0),va(),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=yo(t,e,n,l);break t}else if(n!==a){a=Me(Error(s(424)),e),ra(a),e=yo(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(Ht=Ge(t.firstChild),he=e,St=!0,$l=null,Ke=!0,l=$r(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fa(),n===a){e=fl(t,e,l);break t}ne(t,e,n,l)}e=e.child}return e;case 26:return Bu(t,e),t===null?(l=Eh(e.type,null,e.pendingProps,null))?e.memoizedState=l:St||(l=e.type,t=e.pendingProps,n=$u(lt.current).createElement(l),n[se]=e,n[ye]=t,ue(n,l,t),Wt(n),e.stateNode=n):e.memoizedState=Eh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return kn(e),t===null&&St&&(n=e.stateNode=bh(e.type,e.pendingProps,lt.current),he=e,Ke=!0,a=Ht,Ul(e.type)?(bs=a,Ht=Ge(n.firstChild)):Ht=a),ne(t,e,e.pendingProps.children,l),Bu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((a=n=Ht)&&(n=tm(n,e.type,e.pendingProps,Ke),n!==null?(e.stateNode=n,he=e,Ht=Ge(n.firstChild),Ke=!1,a=!0):a=!1),a||Wl(e)),kn(e),a=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,n=u.children,ms(a,u)?n=null:f!==null&&ms(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=yc(t,e,py,null,null,l),La._currentValue=a),Bu(t,e),ne(t,e,n,l),e.child;case 6:return t===null&&St&&((t=l=Ht)&&(l=em(l,e.pendingProps,Ke),l!==null?(e.stateNode=l,he=e,Ht=null,t=!0):t=!1),t||Wl(e)),null;case 13:return mo(t,e,l);case 4:return Mt(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Un(e,null,n,l):ne(t,e,n,l),e.child;case 11:return io(t,e,e.type,e.pendingProps,l);case 7:return ne(t,e,e.pendingProps,l),e.child;case 8:return ne(t,e,e.pendingProps.children,l),e.child;case 12:return ne(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,vl(e,e.type,n.value),ne(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,Pl(e),a=fe(a),n=n(a),e.flags|=1,ne(t,e,n,l),e.child;case 14:return co(t,e,e.type,e.pendingProps,l);case 15:return so(t,e,e.type,e.pendingProps,l);case 19:return vo(t,e,l);case 31:return n=e.pendingProps,l=e.mode,n={mode:n.mode,children:n.children},t===null?(l=qu(n,l),l.ref=e.ref,e.child=l,l.return=e,e=l):(l=ll(t.child,n),l.ref=e.ref,e.child=l,l.return=e,e=l),e;case 22:return fo(t,e,l);case 24:return Pl(e),n=fe(kt),t===null?(a=uc(),a===null&&(a=Nt,u=nc(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},cc(e),vl(e,kt,a)):((t.lanes&l)!==0&&(sc(t,e),pa(e,null,null,l),va()),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),vl(e,kt,n)):(n=u.cache,vl(e,kt,n),n!==a.cache&&lc(e,[kt],l,!0))),ne(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function rl(t){t.flags|=4}function bo(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zh(e)){if(e=Be.current,e!==null&&((gt&4194048)===gt?ke!==null:(gt&62914560)!==gt&&(gt&536870912)===0||e!==ke))throw ma=ic,er;t.flags|=8192}}function Hu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Fa():536870912,t.lanes|=e,Hn|=e)}function Ra(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 qt(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 zy(t,e,l){var n=e.pendingProps;switch(Pi(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(e),null;case 1:return qt(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),il(kt),je(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(sa(e)?rl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wf())),qt(e),null;case 26:return l=e.memoizedState,t===null?(rl(e),l!==null?(qt(e),bo(e,l)):(qt(e),e.flags&=-16777217)):l?l!==t.memoizedState?(rl(e),qt(e),bo(e,l)):(qt(e),e.flags&=-16777217):(t.memoizedProps!==n&&rl(e),qt(e),e.flags&=-16777217),null;case 27:Yl(e),l=lt.current;var a=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==n&&rl(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return qt(e),null}t=G.current,sa(e)?Jf(e):(t=bh(a,n,l),e.stateNode=t,rl(e))}return qt(e),null;case 5:if(Yl(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&rl(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return qt(e),null}if(t=G.current,sa(e))Jf(e);else{switch(a=$u(lt.current),t){case 1:t=a.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=a.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof n.is=="string"?a.createElement("select",{is:n.is}):a.createElement("select"),n.multiple?t.multiple=!0:n.size&&(t.size=n.size);break;default:t=typeof n.is=="string"?a.createElement(l,{is:n.is}):a.createElement(l)}}t[se]=e,t[ye]=n;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=t;t:switch(ue(t,l,n),l){case"button":case"input":case"select":case"textarea":t=!!n.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&rl(e)}}return qt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&rl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(s(166));if(t=lt.current,sa(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=he,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[se]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||hh(t.nodeValue,l)),t||Wl(e)}else t=$u(t).createTextNode(n),t[se]=e,e.stateNode=t}return qt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=sa(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[se]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),a=!1}else a=Wf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(sl(e),e):(sl(e),null)}if(sl(e),(e.flags&128)!==0)return e.lanes=l,e;if(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);var u=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)}return l!==t&&l&&(e.child.flags|=8192),Hu(e,e.updateQueue),qt(e),null;case 4:return je(),t===null&&rs(e.stateNode.containerInfo),qt(e),null;case 10:return il(e.type),qt(e),null;case 19:if(q(Jt),a=e.memoizedState,a===null)return qt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)Ra(a,!1);else{if(wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Nu(t),u!==null){for(e.flags|=128,Ra(a,!1),t=u.updateQueue,e.updateQueue=t,Hu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Kf(l,t),l=l.sibling;return w(Jt,Jt.current&1|2),e.child}t=t.sibling}a.tail!==null&&Oe()>Yu&&(e.flags|=128,n=!0,Ra(a,!1),e.lanes=4194304)}else{if(!n)if(t=Nu(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Hu(e,t),Ra(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!St)return qt(e),null}else 2*Oe()-a.renderingStartTime>Yu&&l!==536870912&&(e.flags|=128,n=!0,Ra(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Oe(),e.sibling=null,t=Jt.current,w(Jt,n?t&1|2:t&1),e):(qt(e),null);case 22:case 23:return sl(e),hc(),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&&(qt(e),e.subtreeFlags&6&&(e.flags|=8192)):qt(e),l=e.updateQueue,l!==null&&Hu(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&&q(Il),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),il(kt),qt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Dy(t,e){switch(Pi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return il(kt),je(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Yl(e),null;case 13:if(sl(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Jt),null;case 4:return je(),null;case 10:return il(e.type),null;case 22:case 23:return sl(e),hc(),t!==null&&q(Il),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return il(kt),null;case 25:return null;default:return null}}function So(t,e){switch(Pi(e),e.tag){case 3:il(kt),je();break;case 26:case 27:case 5:Yl(e);break;case 4:je();break;case 13:sl(e);break;case 19:q(Jt);break;case 10:il(e.type);break;case 22:case 23:sl(e),hc(),t!==null&&q(Il);break;case 24:il(kt)}}function Oa(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(o){zt(e,e.return,o)}}function Al(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,o=f.destroy;if(o!==void 0){f.destroy=void 0,a=e;var h=l,b=o;try{b()}catch(O){zt(a,h,O)}}}n=n.next}while(n!==u)}}catch(O){zt(e,e.return,O)}}function _o(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{cr(e,l)}catch(n){zt(t,t.return,n)}}}function Eo(t,e,l){l.props=en(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){zt(t,e,n)}}function za(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){zt(t,e,a)}}function Je(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){zt(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){zt(t,e,a)}else l.current=null}function To(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){zt(t,t.return,a)}}function Lc(t,e,l){try{var n=t.stateNode;$y(n,t.type,l,e),n[ye]=e}catch(a){zt(t,t.return,a)}}function Ao(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ul(t.type)||t.tag===4}function Xc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ao(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&&Ul(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 Gc(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=Ju));else if(n!==4&&(n===27&&Ul(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Gc(t,e,l),t=t.sibling;t!==null;)Gc(t,e,l),t=t.sibling}function wu(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&&Ul(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(wu(t,e,l),t=t.sibling;t!==null;)wu(t,e,l),t=t.sibling}function Ro(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);ue(e,n,l),e[se]=t,e[ye]=l}catch(u){zt(t,t.return,u)}}var ol=!1,Xt=!1,Qc=!1,Oo=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function xy(t,e){if(t=t.containerInfo,ds=ei,t=Hf(t),Xi(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,o=-1,h=-1,b=0,O=0,x=t,S=null;e:for(;;){for(var _;x!==l||a!==0&&x.nodeType!==3||(o=f+a),x!==u||n!==0&&x.nodeType!==3||(h=f+n),x.nodeType===3&&(f+=x.nodeValue.length),(_=x.firstChild)!==null;)S=x,x=_;for(;;){if(x===t)break e;if(S===l&&++b===a&&(o=f),S===u&&++O===n&&(h=f),(_=x.nextSibling)!==null)break;x=S,S=x.parentNode}x=_}l=o===-1||h===-1?null:{start:o,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(ys={focusedElem:t,selectionRange:l},ei=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){switch(e=Pt,u=e.alternate,t=e.flags,e.tag){case 0: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 et=en(l.type,a,l.elementType===l.type);t=n.getSnapshotBeforeUpdate(et,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(F){zt(l,l.return,F)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)vs(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vs(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(s(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function zo(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Rl(t,l),n&4&&Oa(5,l);break;case 1:if(Rl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){zt(l,l.return,f)}else{var a=en(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){zt(l,l.return,f)}}n&64&&_o(l),n&512&&za(l,l.return);break;case 3:if(Rl(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{cr(t,e)}catch(f){zt(l,l.return,f)}}break;case 27:e===null&&n&4&&Ro(l);case 26:case 5:Rl(t,l),e===null&&n&4&&To(l),n&512&&za(l,l.return);break;case 12:Rl(t,l);break;case 13:Rl(t,l),n&4&&Mo(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=jy.bind(null,l),lm(t,l))));break;case 22:if(n=l.memoizedState!==null||ol,!n){e=e!==null&&e.memoizedState!==null||Xt,a=ol;var u=Xt;ol=n,(Xt=e)&&!u?Ol(t,l,(l.subtreeFlags&8772)!==0):Rl(t,l),ol=a,Xt=u}break;case 30:break;default:Rl(t,l)}}function Do(t){var e=t.alternate;e!==null&&(t.alternate=null,Do(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ei(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 Bt=null,ve=!1;function hl(t,e,l){for(l=l.child;l!==null;)xo(t,e,l),l=l.sibling}function xo(t,e,l){if(j&&typeof j.onCommitFiberUnmount=="function")try{j.onCommitFiberUnmount($,l)}catch{}switch(l.tag){case 26:Xt||Je(l,e),hl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Xt||Je(l,e);var n=Bt,a=ve;Ul(l.type)&&(Bt=l.stateNode,ve=!1),hl(t,e,l),Ha(l.stateNode),Bt=n,ve=a;break;case 5:Xt||Je(l,e);case 6:if(n=Bt,a=ve,Bt=null,hl(t,e,l),Bt=n,ve=a,Bt!==null)if(ve)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(l.stateNode)}catch(u){zt(l,e,u)}else try{Bt.removeChild(l.stateNode)}catch(u){zt(l,e,u)}break;case 18:Bt!==null&&(ve?(t=Bt,vh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Va(t)):vh(Bt,l.stateNode));break;case 4:n=Bt,a=ve,Bt=l.stateNode.containerInfo,ve=!0,hl(t,e,l),Bt=n,ve=a;break;case 0:case 11:case 14:case 15:Xt||Al(2,l,e),Xt||Al(4,l,e),hl(t,e,l);break;case 1:Xt||(Je(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Eo(l,e,n)),hl(t,e,l);break;case 21:hl(t,e,l);break;case 22:Xt=(n=Xt)||l.memoizedState!==null,hl(t,e,l),Xt=n;break;default:hl(t,e,l)}}function Mo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Va(t)}catch(l){zt(e,e.return,l)}}function My(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Oo),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Oo),e;default:throw Error(s(435,t.tag))}}function Vc(t,e){var l=My(t);e.forEach(function(n){var a=Yy.bind(null,t,n);l.has(n)||(l.add(n),n.then(a,a))})}function _e(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,o=f;t:for(;o!==null;){switch(o.tag){case 27:if(Ul(o.type)){Bt=o.stateNode,ve=!1;break t}break;case 5:Bt=o.stateNode,ve=!1;break t;case 3:case 4:Bt=o.stateNode.containerInfo,ve=!0;break t}o=o.return}if(Bt===null)throw Error(s(160));xo(u,f,a),Bt=null,ve=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)No(e,t),e=e.sibling}var Xe=null;function No(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_e(e,t),Ee(t),n&4&&(Al(3,t,t.return),Oa(3,t),Al(5,t,t.return));break;case 1:_e(e,t),Ee(t),n&512&&(Xt||l===null||Je(l,l.return)),n&64&&ol&&(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=Xe;if(_e(e,t),Ee(t),n&512&&(Xt||l===null||Je(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[Fn]||u[se]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),ue(u,n,l),u[se]=t,Wt(u),n=u;break t;case"link":var f=Rh("link","href",a).get(n+(l.href||""));if(f){for(var o=0;o<f.length;o++)if(u=f[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(o,1);break e}}u=a.createElement(n),ue(u,n,l),a.head.appendChild(u);break;case"meta":if(f=Rh("meta","content",a).get(n+(l.content||""))){for(o=0;o<f.length;o++)if(u=f[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(o,1);break e}}u=a.createElement(n),ue(u,n,l),a.head.appendChild(u);break;default:throw Error(s(468,n))}u[se]=t,Wt(u),n=u}t.stateNode=n}else Oh(a,t.type,t.stateNode);else t.stateNode=Ah(a,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Oh(a,t.type,t.stateNode):Ah(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Lc(t,t.memoizedProps,l.memoizedProps)}break;case 27:_e(e,t),Ee(t),n&512&&(Xt||l===null||Je(l,l.return)),l!==null&&n&4&&Lc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(_e(e,t),Ee(t),n&512&&(Xt||l===null||Je(l,l.return)),t.flags&32){a=t.stateNode;try{yn(a,"")}catch(_){zt(t,t.return,_)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,Lc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(Qc=!0);break;case 6:if(_e(e,t),Ee(t),n&4){if(t.stateNode===null)throw Error(s(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(_){zt(t,t.return,_)}}break;case 3:if(Pu=null,a=Xe,Xe=Wu(e.containerInfo),_e(e,t),Xe=a,Ee(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Va(e.containerInfo)}catch(_){zt(t,t.return,_)}Qc&&(Qc=!1,Uo(t));break;case 4:n=Xe,Xe=Wu(t.stateNode.containerInfo),_e(e,t),Ee(t),Xe=n;break;case 12:_e(e,t),Ee(t);break;case 13:_e(e,t),Ee(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Wc=Oe()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Vc(t,n)));break;case 22:a=t.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,b=ol,O=Xt;if(ol=b||a,Xt=O||h,_e(e,t),Xt=O,ol=b,Ee(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||h||ol||Xt||ln(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){h=l=e;try{if(u=h.stateNode,a)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{o=h.stateNode;var x=h.memoizedProps.style,S=x!=null&&x.hasOwnProperty("display")?x.display:null;o.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(_){zt(h,h.return,_)}}}else if(e.tag===6){if(l===null){h=e;try{h.stateNode.nodeValue=a?"":h.memoizedProps}catch(_){zt(h,h.return,_)}}}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,Vc(t,l))));break;case 19:_e(e,t),Ee(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Vc(t,n)));break;case 30:break;case 21:break;default:_e(e,t),Ee(t)}}function Ee(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Ao(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var a=l.stateNode,u=Xc(t);wu(t,u,a);break;case 5:var f=l.stateNode;l.flags&32&&(yn(f,""),l.flags&=-33);var o=Xc(t);wu(t,o,f);break;case 3:case 4:var h=l.stateNode.containerInfo,b=Xc(t);Gc(t,b,h);break;default:throw Error(s(161))}}catch(O){zt(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Uo(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Uo(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Rl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)zo(t,e.alternate,e),e=e.sibling}function ln(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Al(4,e,e.return),ln(e);break;case 1:Je(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Eo(e,e.return,l),ln(e);break;case 27:Ha(e.stateNode);case 26:case 5:Je(e,e.return),ln(e);break;case 22:e.memoizedState===null&&ln(e);break;case 30:ln(e);break;default:ln(e)}t=t.sibling}}function Ol(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:Ol(a,u,l),Oa(4,u);break;case 1:if(Ol(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(b){zt(n,n.return,b)}if(n=u,a=n.updateQueue,a!==null){var o=n.stateNode;try{var h=a.shared.hiddenCallbacks;if(h!==null)for(a.shared.hiddenCallbacks=null,a=0;a<h.length;a++)ir(h[a],o)}catch(b){zt(n,n.return,b)}}l&&f&64&&_o(u),za(u,u.return);break;case 27:Ro(u);case 26:case 5:Ol(a,u,l),l&&n===null&&f&4&&To(u),za(u,u.return);break;case 12:Ol(a,u,l);break;case 13:Ol(a,u,l),l&&f&4&&Mo(a,u);break;case 22:u.memoizedState===null&&Ol(a,u,l),za(u,u.return);break;case 30:break;default:Ol(a,u,l)}e=e.sibling}}function Zc(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&&ha(l))}function Kc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ha(t))}function $e(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Co(t,e,l,n),e=e.sibling}function Co(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:$e(t,e,l,n),a&2048&&Oa(9,e);break;case 1:$e(t,e,l,n);break;case 3:$e(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&&ha(t)));break;case 12:if(a&2048){$e(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,o=u.onPostCommit;typeof o=="function"&&o(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){zt(e,e.return,h)}}else $e(t,e,l,n);break;case 13:$e(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?$e(t,e,l,n):Da(t,e):u._visibility&2?$e(t,e,l,n):(u._visibility|=2,Cn(t,e,l,n,(e.subtreeFlags&10256)!==0)),a&2048&&Zc(f,e);break;case 24:$e(t,e,l,n),a&2048&&Kc(e.alternate,e);break;default:$e(t,e,l,n)}}function Cn(t,e,l,n,a){for(a=a&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,f=e,o=l,h=n,b=f.flags;switch(f.tag){case 0:case 11:case 15:Cn(u,f,o,h,a),Oa(8,f);break;case 23:break;case 22:var O=f.stateNode;f.memoizedState!==null?O._visibility&2?Cn(u,f,o,h,a):Da(u,f):(O._visibility|=2,Cn(u,f,o,h,a)),a&&b&2048&&Zc(f.alternate,f);break;case 24:Cn(u,f,o,h,a),a&&b&2048&&Kc(f.alternate,f);break;default:Cn(u,f,o,h,a)}e=e.sibling}}function Da(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:Da(l,n),a&2048&&Zc(n.alternate,n);break;case 24:Da(l,n),a&2048&&Kc(n.alternate,n);break;default:Da(l,n)}e=e.sibling}}var xa=8192;function Bn(t){if(t.subtreeFlags&xa)for(t=t.child;t!==null;)Bo(t),t=t.sibling}function Bo(t){switch(t.tag){case 26:Bn(t),t.flags&xa&&t.memoizedState!==null&&mm(Xe,t.memoizedState,t.memoizedProps);break;case 5:Bn(t);break;case 3:case 4:var e=Xe;Xe=Wu(t.stateNode.containerInfo),Bn(t),Xe=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=xa,xa=16777216,Bn(t),xa=e):Bn(t));break;default:Bn(t)}}function qo(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 Ma(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];Pt=n,wo(n,t)}qo(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ho(t),t=t.sibling}function Ho(t){switch(t.tag){case 0:case 11:case 15:Ma(t),t.flags&2048&&Al(9,t,t.return);break;case 3:Ma(t);break;case 12:Ma(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ju(t)):Ma(t);break;default:Ma(t)}}function ju(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];Pt=n,wo(n,t)}qo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Al(8,e,e.return),ju(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,ju(e));break;default:ju(e)}t=t.sibling}}function wo(t,e){for(;Pt!==null;){var l=Pt;switch(l.tag){case 0:case 11:case 15:Al(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:ha(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Pt=n;else t:for(l=t;Pt!==null;){n=Pt;var a=n.sibling,u=n.return;if(Do(n),n===l){Pt=null;break t}if(a!==null){a.return=u,Pt=a;break t}Pt=u}}}var Ny={getCacheForType:function(t){var e=fe(kt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l}},Uy=typeof WeakMap=="function"?WeakMap:Map,_t=0,Nt=null,ot=null,gt=0,Et=0,Te=null,zl=!1,qn=!1,kc=!1,dl=0,wt=0,Dl=0,nn=0,Jc=0,qe=0,Hn=0,Na=null,pe=null,$c=!1,Wc=0,Yu=1/0,Lu=null,xl=null,ae=0,Ml=null,wn=null,jn=0,Fc=0,Pc=null,jo=null,Ua=0,Ic=null;function Ae(){if((_t&2)!==0&&gt!==0)return gt&-gt;if(T.T!==null){var t=Rn;return t!==0?t:is()}return Ps()}function Yo(){qe===0&&(qe=(gt&536870912)===0||St?un():536870912);var t=Be.current;return t!==null&&(t.flags|=32),qe}function Re(t,e,l){(t===Nt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(Yn(t,0),Nl(t,gt,qe,!1)),Wn(t,l),((_t&2)===0||t!==Nt)&&(t===Nt&&((_t&2)===0&&(nn|=l),wt===4&&Nl(t,gt,qe,!1)),We(t))}function Lo(t,e,l){if((_t&6)!==0)throw Error(s(327));var n=!l&&(e&124)===0&&(e&t.expiredLanes)===0||ze(t,e),a=n?qy(t,e):ls(t,e,!0),u=n;do{if(a===0){qn&&!n&&Nl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!Cy(l)){a=ls(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 o=t;a=Na;var h=o.current.memoizedState.isDehydrated;if(h&&(Yn(o,f).flags|=256),f=ls(o,f,!1),f!==2){if(kc&&!h){o.errorRecoveryDisabledLanes|=u,nn|=u,a=4;break t}u=pe,pe=a,u!==null&&(pe===null?pe=u:pe.push.apply(pe,u))}a=f}if(u=!1,a!==2)continue}}if(a===1){Yn(t,0),Nl(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Nl(n,e,qe,!zl);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=Wc+300-Oe(),10<a)){if(Nl(n,e,qe,!zl),le(n,0,!0)!==0)break t;n.timeoutHandle=mh(Xo.bind(null,n,l,pe,Lu,$c,e,qe,nn,Hn,zl,u,2,-0,0),a);break t}Xo(n,l,pe,Lu,$c,e,qe,nn,Hn,zl,u,0,-0,0)}}break}while(!0);We(t)}function Xo(t,e,l,n,a,u,f,o,h,b,O,x,S,_){if(t.timeoutHandle=-1,x=e.subtreeFlags,(x&8192||(x&16785408)===16785408)&&(Ya={stylesheets:null,count:0,unsuspend:ym},Bo(e),x=gm(),x!==null)){t.cancelPendingCommit=x(Jo.bind(null,t,e,u,l,n,a,f,o,h,O,1,S,_)),Nl(t,u,f,!b);return}Jo(t,e,u,l,n,a,f,o,h)}function Cy(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(!be(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&=~Jc,e&=~nn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-ct(a),f=1<<u;n[u]=-1,a&=~f}l!==0&&Ws(t,l,e)}function Xu(){return(_t&6)===0?(Ca(0),!1):!0}function ts(){if(ot!==null){if(Et===0)var t=ot.return;else t=ot,ul=Fl=null,vc(t),Nn=null,Ta=0,t=ot;for(;t!==null;)So(t.alternate,t),t=t.return;ot=null}}function Yn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Fy(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ts(),Nt=t,ot=l=ll(t.current,null),gt=e,Et=0,Te=null,zl=!1,qn=ze(t,e),kc=!1,Hn=qe=Jc=nn=Dl=wt=0,pe=Na=null,$c=!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-ct(n),u=1<<a;e|=t[a],n&=~u}return dl=e,fu(),l}function Go(t,e){it=null,T.H=Du,e===ya||e===pu?(e=ar(),Et=3):e===er?(e=ar(),Et=4):Et=e===uo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Te=e,ot===null&&(wt=1,Cu(t,Me(e,t.current)))}function Qo(){var t=T.H;return T.H=Du,t===null?Du:t}function Vo(){var t=T.A;return T.A=Ny,t}function es(){wt=4,zl||(gt&4194048)!==gt&&Be.current!==null||(qn=!0),(Dl&134217727)===0&&(nn&134217727)===0||Nt===null||Nl(Nt,gt,qe,!1)}function ls(t,e,l){var n=_t;_t|=2;var a=Qo(),u=Vo();(Nt!==t||gt!==e)&&(Lu=null,Yn(t,e)),e=!1;var f=wt;t:do try{if(Et!==0&&ot!==null){var o=ot,h=Te;switch(Et){case 8:ts(),f=6;break t;case 3:case 2:case 9:case 6:Be.current===null&&(e=!0);var b=Et;if(Et=0,Te=null,Ln(t,o,h,b),l&&qn){f=0;break t}break;default:b=Et,Et=0,Te=null,Ln(t,o,h,b)}}By(),f=wt;break}catch(O){Go(t,O)}while(!0);return e&&t.shellSuspendCounter++,ul=Fl=null,_t=n,T.H=a,T.A=u,ot===null&&(Nt=null,gt=0,fu()),f}function By(){for(;ot!==null;)Zo(ot)}function qy(t,e){var l=_t;_t|=2;var n=Qo(),a=Vo();Nt!==t||gt!==e?(Lu=null,Yu=Oe()+500,Yn(t,e)):qn=ze(t,e);t:do try{if(Et!==0&&ot!==null){e=ot;var u=Te;e:switch(Et){case 1:Et=0,Te=null,Ln(t,e,u,1);break;case 2:case 9:if(lr(u)){Et=0,Te=null,Ko(e);break}e=function(){Et!==2&&Et!==9||Nt!==t||(Et=7),We(t)},u.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:lr(u)?(Et=0,Te=null,Ko(e)):(Et=0,Te=null,Ln(t,e,u,7));break;case 5:var f=null;switch(ot.tag){case 26:f=ot.memoizedState;case 5:case 27:var o=ot;if(!f||zh(f)){Et=0,Te=null;var h=o.sibling;if(h!==null)ot=h;else{var b=o.return;b!==null?(ot=b,Gu(b)):ot=null}break e}}Et=0,Te=null,Ln(t,e,u,5);break;case 6:Et=0,Te=null,Ln(t,e,u,6);break;case 8:ts(),wt=6;break t;default:throw Error(s(462))}}Hy();break}catch(O){Go(t,O)}while(!0);return ul=Fl=null,T.H=n,T.A=a,_t=l,ot!==null?0:(Nt=null,gt=0,fu(),wt)}function Hy(){for(;ot!==null&&!gi();)Zo(ot)}function Zo(t){var e=po(t.alternate,t,dl);t.memoizedProps=t.pendingProps,e===null?Gu(t):ot=e}function Ko(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=oo(l,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=oo(l,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:vc(e);default:So(l,e),e=ot=Kf(e,dl),e=po(l,e,dl)}t.memoizedProps=t.pendingProps,e===null?Gu(t):ot=e}function Ln(t,e,l,n){ul=Fl=null,vc(e),Nn=null,Ta=0;var a=e.return;try{if(Ry(t,a,e,l,gt)){wt=1,Cu(t,Me(l,t.current)),ot=null;return}}catch(u){if(a!==null)throw ot=a,u;wt=1,Cu(t,Me(l,t.current)),ot=null;return}e.flags&32768?(St||n===1?t=!0:qn||(gt&536870912)!==0?t=!1:(zl=t=!0,(n===2||n===9||n===3||n===6)&&(n=Be.current,n!==null&&n.tag===13&&(n.flags|=16384))),ko(e,t)):Gu(e)}function Gu(t){var e=t;do{if((e.flags&32768)!==0){ko(e,zl);return}t=e.return;var l=zy(e.alternate,e,dl);if(l!==null){ot=l;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);wt===0&&(wt=5)}function ko(t,e){do{var l=Dy(t.alternate,t);if(l!==null){l.flags&=32767,ot=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=l}while(t!==null);wt=6,ot=null}function Jo(t,e,l,n,a,u,f,o,h){t.cancelPendingCommit=null;do Qu();while(ae!==0);if((_t&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=Ki,yd(t,l,u,f,o,h),t===Nt&&(ot=Nt=null,gt=0),wn=e,Ml=t,jn=l,Fc=u,Pc=a,jo=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ly(m,function(){return Io(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null,a=H.p,H.p=2,f=_t,_t|=4;try{xy(t,e,l)}finally{_t=f,H.p=a,T.T=n}}ae=1,$o(),Wo(),Fo()}}function $o(){if(ae===1){ae=0;var t=Ml,e=wn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var a=_t;_t|=4;try{No(e,t);var u=ys,f=Hf(t.containerInfo),o=u.focusedElem,h=u.selectionRange;if(f!==o&&o&&o.ownerDocument&&qf(o.ownerDocument.documentElement,o)){if(h!==null&&Xi(o)){var b=h.start,O=h.end;if(O===void 0&&(O=b),"selectionStart"in o)o.selectionStart=b,o.selectionEnd=Math.min(O,o.value.length);else{var x=o.ownerDocument||document,S=x&&x.defaultView||window;if(S.getSelection){var _=S.getSelection(),et=o.textContent.length,F=Math.min(h.start,et),Ot=h.end===void 0?F:Math.min(h.end,et);!_.extend&&F>Ot&&(f=Ot,Ot=F,F=f);var v=Bf(o,F),y=Bf(o,Ot);if(v&&y&&(_.rangeCount!==1||_.anchorNode!==v.node||_.anchorOffset!==v.offset||_.focusNode!==y.node||_.focusOffset!==y.offset)){var p=x.createRange();p.setStart(v.node,v.offset),_.removeAllRanges(),F>Ot?(_.addRange(p),_.extend(y.node,y.offset)):(p.setEnd(y.node,y.offset),_.addRange(p))}}}}for(x=[],_=o;_=_.parentNode;)_.nodeType===1&&x.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<x.length;o++){var z=x[o];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}ei=!!ds,ys=ds=null}finally{_t=a,H.p=n,T.T=l}}t.current=e,ae=2}}function Wo(){if(ae===2){ae=0;var t=Ml,e=wn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var a=_t;_t|=4;try{zo(t,e.alternate,e)}finally{_t=a,H.p=n,T.T=l}}ae=3}}function Fo(){if(ae===4||ae===3){ae=0,vi();var t=Ml,e=wn,l=jn,n=jo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ae=5:(ae=0,wn=Ml=null,Po(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(xl=null),Si(l),e=e.stateNode,j&&typeof j.onCommitFiberRoot=="function")try{j.onCommitFiberRoot($,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=T.T,a=H.p,H.p=2,T.T=null;try{for(var u=t.onRecoverableError,f=0;f<n.length;f++){var o=n[f];u(o.value,{componentStack:o.stack})}}finally{T.T=e,H.p=a}}(jn&3)!==0&&Qu(),We(t),a=t.pendingLanes,(l&4194090)!==0&&(a&42)!==0?t===Ic?Ua++:(Ua=0,Ic=t):Ua=0,Ca(0)}}function Po(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ha(e)))}function Qu(t){return $o(),Wo(),Fo(),Io()}function Io(){if(ae!==5)return!1;var t=Ml,e=Fc;Fc=0;var l=Si(jn),n=T.T,a=H.p;try{H.p=32>l?32:l,T.T=null,l=Pc,Pc=null;var u=Ml,f=jn;if(ae=0,wn=Ml=null,jn=0,(_t&6)!==0)throw Error(s(331));var o=_t;if(_t|=4,Ho(u.current),Co(u,u.current,f,l),_t=o,Ca(0,!1),j&&typeof j.onPostCommitFiberRoot=="function")try{j.onPostCommitFiberRoot($,u)}catch{}return!0}finally{H.p=a,T.T=n,Po(t,e)}}function th(t,e,l){e=Me(l,e),e=Nc(t.stateNode,e,2),t=Sl(t,e,2),t!==null&&(Wn(t,2),We(t))}function zt(t,e,l){if(t.tag===3)th(t,t,l);else for(;e!==null;){if(e.tag===3){th(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(xl===null||!xl.has(n))){t=Me(l,t),l=no(2),n=Sl(e,l,2),n!==null&&(ao(l,n,e,t),Wn(n,2),We(n));break}}e=e.return}}function ns(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new Uy;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)||(kc=!0,a.add(l),t=wy.bind(null,t,e,l),e.then(t,t))}function wy(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(gt&l)===l&&(wt===4||wt===3&&(gt&62914560)===gt&&300>Oe()-Wc?(_t&2)===0&&Yn(t,0):Jc|=l,Hn===gt&&(Hn=0)),We(t)}function eh(t,e){e===0&&(e=Fa()),t=_n(t,e),t!==null&&(Wn(t,e),We(t))}function jy(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),eh(t,l)}function Yy(t,e){var l=0;switch(t.tag){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(s(314))}n!==null&&n.delete(e),eh(t,l)}function Ly(t,e){return Ll(t,e)}var Vu=null,Xn=null,as=!1,Zu=!1,us=!1,an=0;function We(t){t!==Xn&&t.next===null&&(Xn===null?Vu=Xn=t:Xn=Xn.next=t),Zu=!0,as||(as=!0,Gy())}function Ca(t,e){if(!us&&Zu){us=!0;do for(var l=!1,n=Vu;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var f=n.suspendedLanes,o=n.pingedLanes;u=(1<<31-ct(42|t)+1)-1,u&=a&~(f&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,uh(n,u))}else u=gt,u=le(n,n===Nt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||ze(n,u)||(l=!0,uh(n,u));n=n.next}while(l);us=!1}}function Xy(){lh()}function lh(){Zu=as=!1;var t=0;an!==0&&(Wy()&&(t=an),an=0);for(var e=Oe(),l=null,n=Vu;n!==null;){var a=n.next,u=nh(n,e);u===0?(n.next=null,l===null?Vu=a:l.next=a,a===null&&(Xn=l)):(l=n,(t!==0||(u&3)!==0)&&(Zu=!0)),n=a}Ca(t)}function nh(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-ct(u),o=1<<f,h=a[f];h===-1?((o&l)===0||(o&n)!==0)&&(a[f]=Wa(o,e)):h<=e&&(t.expiredLanes|=o),u&=~o}if(e=Nt,l=gt,l=le(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Ie(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ze(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Ie(n),Si(l)){case 2:case 8:l=Xl;break;case 32:l=m;break;case 268435456:l=X;break;default:l=m}return n=ah.bind(null,t),l=Ll(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Ie(n),t.callbackPriority=2,t.callbackNode=null,2}function ah(t,e){if(ae!==0&&ae!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Qu()&&t.callbackNode!==l)return null;var n=gt;return n=le(t,t===Nt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Lo(t,n,e),nh(t,Oe()),t.callbackNode!=null&&t.callbackNode===l?ah.bind(null,t):null)}function uh(t,e){if(Qu())return null;Lo(t,e,!0)}function Gy(){Py(function(){(_t&6)!==0?Ll($n,Xy):lh()})}function is(){return an===0&&(an=un()),an}function ih(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:lu(""+t)}function ch(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 Qy(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=ih((a[ye]||null).action),f=n.submitter;f&&(e=(e=f[ye]||null)?ih(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var o=new iu("action","action",null,n,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(an!==0){var h=f?ch(a,f):new FormData(a);Oc(l,{pending:!0,data:h,method:a.method,action:u},null,h)}}else typeof u=="function"&&(o.preventDefault(),h=f?ch(a,f):new FormData(a),Oc(l,{pending:!0,data:h,method:a.method,action:u},u,h))},currentTarget:a}]})}}for(var cs=0;cs<Zi.length;cs++){var ss=Zi[cs],Vy=ss.toLowerCase(),Zy=ss[0].toUpperCase()+ss.slice(1);Le(Vy,"on"+Zy)}Le(Yf,"onAnimationEnd"),Le(Lf,"onAnimationIteration"),Le(Xf,"onAnimationStart"),Le("dblclick","onDoubleClick"),Le("focusin","onFocus"),Le("focusout","onBlur"),Le(sy,"onTransitionRun"),Le(fy,"onTransitionStart"),Le(ry,"onTransitionCancel"),Le(Gf,"onTransitionEnd"),on("onMouseEnter",["mouseout","mouseover"]),on("onMouseLeave",["mouseout","mouseover"]),on("onPointerEnter",["pointerout","pointerover"]),on("onPointerLeave",["pointerout","pointerover"]),Gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ba="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ba));function sh(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 o=n[f],h=o.instance,b=o.currentTarget;if(o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=b;try{u(a)}catch(O){Uu(O)}a.currentTarget=null,u=h}else for(f=0;f<n.length;f++){if(o=n[f],h=o.instance,b=o.currentTarget,o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=b;try{u(a)}catch(O){Uu(O)}a.currentTarget=null,u=h}}}}function ht(t,e){var l=e[_i];l===void 0&&(l=e[_i]=new Set);var n=t+"__bubble";l.has(n)||(fh(e,t,2,!1),l.add(n))}function fs(t,e,l){var n=0;e&&(n|=4),fh(l,t,n,e)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function rs(t){if(!t[Ku]){t[Ku]=!0,tf.forEach(function(l){l!=="selectionchange"&&(Ky.has(l)||fs(l,!1,t),fs(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ku]||(e[Ku]=!0,fs("selectionchange",!1,e))}}function fh(t,e,l,n){switch(Ch(e)){case 2:var a=bm;break;case 8:a=Sm;break;default:a=As}l=a.bind(null,e,l,t),a=void 0,!Ui||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 os(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 o=n.stateNode.containerInfo;if(o===a)break;if(f===4)for(f=n.return;f!==null;){var h=f.tag;if((h===3||h===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;o!==null;){if(f=sn(o),f===null)return;if(h=f.tag,h===5||h===6||h===26||h===27){n=u=f;continue t}o=o.parentNode}}n=n.return}mf(function(){var b=u,O=Mi(l),x=[];t:{var S=Qf.get(t);if(S!==void 0){var _=iu,et=t;switch(t){case"keypress":if(au(l)===0)break t;case"keydown":case"keyup":_=Ld;break;case"focusin":et="focus",_=Hi;break;case"focusout":et="blur",_=Hi;break;case"beforeblur":case"afterblur":_=Hi;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":_=pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Qd;break;case Yf:case Lf:case Xf:_=Nd;break;case Gf:_=Zd;break;case"scroll":case"scrollend":_=Od;break;case"wheel":_=kd;break;case"copy":case"cut":case"paste":_=Cd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Sf;break;case"toggle":case"beforetoggle":_=$d}var F=(e&4)!==0,Ot=!F&&(t==="scroll"||t==="scrollend"),v=F?S!==null?S+"Capture":null:S;F=[];for(var y=b,p;y!==null;){var z=y;if(p=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||p===null||v===null||(z=In(y,v),z!=null&&F.push(qa(y,z,p))),Ot)break;y=y.return}0<F.length&&(S=new _(S,et,null,l,O),x.push({event:S,listeners:F}))}}if((e&7)===0){t:{if(S=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",S&&l!==xi&&(et=l.relatedTarget||l.fromElement)&&(sn(et)||et[cn]))break t;if((_||S)&&(S=O.window===O?O:(S=O.ownerDocument)?S.defaultView||S.parentWindow:window,_?(et=l.relatedTarget||l.toElement,_=b,et=et?sn(et):null,et!==null&&(Ot=R(et),F=et.tag,et!==Ot||F!==5&&F!==27&&F!==6)&&(et=null)):(_=null,et=b),_!==et)){if(F=pf,z="onMouseLeave",v="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(F=Sf,z="onPointerLeave",v="onPointerEnter",y="pointer"),Ot=_==null?S:Pn(_),p=et==null?S:Pn(et),S=new F(z,y+"leave",_,l,O),S.target=Ot,S.relatedTarget=p,z=null,sn(O)===b&&(F=new F(v,y+"enter",et,l,O),F.target=p,F.relatedTarget=Ot,z=F),Ot=z,_&&et)e:{for(F=_,v=et,y=0,p=F;p;p=Gn(p))y++;for(p=0,z=v;z;z=Gn(z))p++;for(;0<y-p;)F=Gn(F),y--;for(;0<p-y;)v=Gn(v),p--;for(;y--;){if(F===v||v!==null&&F===v.alternate)break e;F=Gn(F),v=Gn(v)}F=null}else F=null;_!==null&&rh(x,S,_,F,!1),et!==null&&Ot!==null&&rh(x,Ot,et,F,!0)}}t:{if(S=b?Pn(b):window,_=S.nodeName&&S.nodeName.toLowerCase(),_==="select"||_==="input"&&S.type==="file")var L=Df;else if(Of(S))if(xf)L=uy;else{L=ny;var st=ly}else _=S.nodeName,!_||_.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?b&&Di(b.elementType)&&(L=Df):L=ay;if(L&&(L=L(t,b))){zf(x,L,l,O);break t}st&&st(t,S,b),t==="focusout"&&b&&S.type==="number"&&b.memoizedProps.value!=null&&zi(S,"number",S.value)}switch(st=b?Pn(b):window,t){case"focusin":(Of(st)||st.contentEditable==="true")&&(pn=st,Gi=b,ca=null);break;case"focusout":ca=Gi=pn=null;break;case"mousedown":Qi=!0;break;case"contextmenu":case"mouseup":case"dragend":Qi=!1,wf(x,l,O);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":wf(x,l,O)}var Z;if(ji)t:{switch(t){case"compositionstart":var tt="onCompositionStart";break t;case"compositionend":tt="onCompositionEnd";break t;case"compositionupdate":tt="onCompositionUpdate";break t}tt=void 0}else vn?Af(t,l)&&(tt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(tt="onCompositionStart");tt&&(_f&&l.locale!=="ko"&&(vn||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&vn&&(Z=gf()):(gl=O,Ci="value"in gl?gl.value:gl.textContent,vn=!0)),st=ku(b,tt),0<st.length&&(tt=new bf(tt,t,null,l,O),x.push({event:tt,listeners:st}),Z?tt.data=Z:(Z=Rf(l),Z!==null&&(tt.data=Z)))),(Z=Fd?Pd(t,l):Id(t,l))&&(tt=ku(b,"onBeforeInput"),0<tt.length&&(st=new bf("onBeforeInput","beforeinput",null,l,O),x.push({event:st,listeners:tt}),st.data=Z)),Qy(x,t,b,l,O)}sh(x,e)})}function qa(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ku(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=In(t,l),a!=null&&n.unshift(qa(t,a,u)),a=In(t,e),a!=null&&n.push(qa(t,a,u))),t.tag===3)return n;t=t.return}return[]}function Gn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function rh(t,e,l,n,a){for(var u=e._reactName,f=[];l!==null&&l!==n;){var o=l,h=o.alternate,b=o.stateNode;if(o=o.tag,h!==null&&h===n)break;o!==5&&o!==26&&o!==27||b===null||(h=b,a?(b=In(l,u),b!=null&&f.unshift(qa(l,b,h))):a||(b=In(l,u),b!=null&&f.push(qa(l,b,h)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var ky=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function oh(t){return(typeof t=="string"?t:""+t).replace(ky,`
`).replace(Jy,"")}function hh(t,e){return e=oh(e),oh(t)===e}function Ju(){}function Rt(t,e,l,n,a,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||yn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&yn(t,""+n);break;case"className":Ia(t,"class",n);break;case"tabIndex":Ia(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ia(t,l,n);break;case"style":df(t,n,u);break;case"data":if(e!=="object"){Ia(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=lu(""+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"&&Rt(t,e,"name",a.name,a,null),Rt(t,e,"formEncType",a.formEncType,a,null),Rt(t,e,"formMethod",a.formMethod,a,null),Rt(t,e,"formTarget",a.formTarget,a,null)):(Rt(t,e,"encType",a.encType,a,null),Rt(t,e,"method",a.method,a,null),Rt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=lu(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=Ju);break;case"onScroll":n!=null&&ht("scroll",t);break;case"onScrollEnd":n!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(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=lu(""+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":ht("beforetoggle",t),ht("toggle",t),Pa(t,"popover",n);break;case"xlinkActuate":tl(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":tl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":tl(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":tl(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":tl(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":tl(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":tl(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":tl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":tl(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Pa(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=Ad.get(l)||l,Pa(t,l,n))}}function hs(t,e,l,n,a,u){switch(l){case"style":df(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof n=="string"?yn(t,n):(typeof n=="number"||typeof n=="bigint")&&yn(t,""+n);break;case"onScroll":n!=null&&ht("scroll",t);break;case"onScrollEnd":n!=null&&ht("scrollend",t);break;case"onClick":n!=null&&(t.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ef.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[ye]||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,""):Pa(t,l,n)}}}function ue(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("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(s(137,e));default:Rt(t,e,u,f,l,null)}}a&&Rt(t,e,"srcSet",l.srcSet,l,null),n&&Rt(t,e,"src",l.src,l,null);return;case"input":ht("invalid",t);var o=u=f=a=null,h=null,b=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":f=O;break;case"checked":h=O;break;case"defaultChecked":b=O;break;case"value":u=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,e));break;default:Rt(t,e,n,O,l,null)}}ff(t,u,o,h,b,f,a,!1),tu(t);return;case"select":ht("invalid",t),n=f=u=null;for(a in l)if(l.hasOwnProperty(a)&&(o=l[a],o!=null))switch(a){case"value":u=o;break;case"defaultValue":f=o;break;case"multiple":n=o;default:Rt(t,e,a,o,l,null)}e=u,l=f,t.multiple=!!n,e!=null?dn(t,!!n,e,!1):l!=null&&dn(t,!!n,l,!0);return;case"textarea":ht("invalid",t),u=a=n=null;for(f in l)if(l.hasOwnProperty(f)&&(o=l[f],o!=null))switch(f){case"value":n=o;break;case"defaultValue":a=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:Rt(t,e,f,o,l,null)}of(t,n,a,u),tu(t);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(n=l[h],n!=null))switch(h){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Rt(t,e,h,n,l,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(n=0;n<Ba.length;n++)ht(Ba[n],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("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(b in l)if(l.hasOwnProperty(b)&&(n=l[b],n!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Rt(t,e,b,n,l,null)}return;default:if(Di(e)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&hs(t,e,O,n,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(n=l[o],n!=null&&Rt(t,e,o,n,l,null))}function $y(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,o=null,h=null,b=null,O=null;for(_ in l){var x=l[_];if(l.hasOwnProperty(_)&&x!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":h=x;default:n.hasOwnProperty(_)||Rt(t,e,_,null,n,x)}}for(var S in n){var _=n[S];if(x=l[S],n.hasOwnProperty(S)&&(_!=null||x!=null))switch(S){case"type":u=_;break;case"name":a=_;break;case"checked":b=_;break;case"defaultChecked":O=_;break;case"value":f=_;break;case"defaultValue":o=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:_!==x&&Rt(t,e,S,_,n,x)}}Oi(t,f,o,h,b,O,u,a);return;case"select":_=f=o=S=null;for(u in l)if(h=l[u],l.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":_=h;default:n.hasOwnProperty(u)||Rt(t,e,u,null,n,h)}for(a in n)if(u=n[a],h=l[a],n.hasOwnProperty(a)&&(u!=null||h!=null))switch(a){case"value":S=u;break;case"defaultValue":o=u;break;case"multiple":f=u;default:u!==h&&Rt(t,e,a,u,n,h)}e=o,l=f,n=_,S!=null?dn(t,!!l,S,!1):!!n!=!!l&&(e!=null?dn(t,!!l,e,!0):dn(t,!!l,l?[]:"",!1));return;case"textarea":_=S=null;for(o in l)if(a=l[o],l.hasOwnProperty(o)&&a!=null&&!n.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Rt(t,e,o,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":S=a;break;case"defaultValue":_=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==u&&Rt(t,e,f,a,n,u)}rf(t,S,_);return;case"option":for(var et in l)if(S=l[et],l.hasOwnProperty(et)&&S!=null&&!n.hasOwnProperty(et))switch(et){case"selected":t.selected=!1;break;default:Rt(t,e,et,null,n,S)}for(h in n)if(S=n[h],_=l[h],n.hasOwnProperty(h)&&S!==_&&(S!=null||_!=null))switch(h){case"selected":t.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:Rt(t,e,h,S,n,_)}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 F in l)S=l[F],l.hasOwnProperty(F)&&S!=null&&!n.hasOwnProperty(F)&&Rt(t,e,F,null,n,S);for(b in n)if(S=n[b],_=l[b],n.hasOwnProperty(b)&&S!==_&&(S!=null||_!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(137,e));break;default:Rt(t,e,b,S,n,_)}return;default:if(Di(e)){for(var Ot in l)S=l[Ot],l.hasOwnProperty(Ot)&&S!==void 0&&!n.hasOwnProperty(Ot)&&hs(t,e,Ot,void 0,n,S);for(O in n)S=n[O],_=l[O],!n.hasOwnProperty(O)||S===_||S===void 0&&_===void 0||hs(t,e,O,S,n,_);return}}for(var v in l)S=l[v],l.hasOwnProperty(v)&&S!=null&&!n.hasOwnProperty(v)&&Rt(t,e,v,null,n,S);for(x in n)S=n[x],_=l[x],!n.hasOwnProperty(x)||S===_||S==null&&_==null||Rt(t,e,x,S,n,_)}var ds=null,ys=null;function $u(t){return t.nodeType===9?t:t.ownerDocument}function dh(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 yh(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 ms(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 gs=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===gs?!1:(gs=t,!0):(gs=null,!1)}var mh=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,gh=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof gh<"u"?function(t){return gh.resolve(null).then(t).catch(Iy)}:mh;function Iy(t){setTimeout(function(){throw t})}function Ul(t){return t==="head"}function vh(t,e){var l=e,n=0,a=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(0<n&&8>n){l=n;var f=t.ownerDocument;if(l&1&&Ha(f.documentElement),l&2&&Ha(f.body),l&4)for(l=f.head,Ha(l),f=l.firstChild;f;){var o=f.nextSibling,h=f.nodeName;f[Fn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=o}}if(a===0){t.removeChild(u),Va(e);return}a--}else l==="$"||l==="$?"||l==="$!"?a++:n=l.charCodeAt(0)-48;else n=0;l=u}while(l);Va(e)}function vs(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":vs(l),Ei(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function tm(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[Fn])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=Ge(t.nextSibling),t===null)break}return null}function em(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ge(t.nextSibling),t===null))return null;return t}function ps(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function lm(t,e){var l=t.ownerDocument;if(t.data!=="$?"||l.readyState==="complete")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var bs=null;function ph(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(e===0)return t;e--}else l==="/$"&&e++}t=t.previousSibling}return null}function bh(t,e,l){switch(e=$u(l),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Ha(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ei(t)}var He=new Map,Sh=new Set;function Wu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yl=H.d;H.d={f:nm,r:am,D:um,C:im,L:cm,m:sm,X:rm,S:fm,M:om};function nm(){var t=yl.f(),e=Xu();return t||e}function am(t){var e=fn(t);e!==null&&e.tag===5&&e.type==="form"?Yr(e):yl.r(t)}var Qn=typeof document>"u"?null:document;function _h(t,e,l){var n=Qn;if(n&&typeof e=="string"&&e){var a=xe(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Sh.has(a)||(Sh.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),ue(e,"link",t),Wt(e),n.head.appendChild(e)))}}function um(t){yl.D(t),_h("dns-prefetch",t,null)}function im(t,e){yl.C(t,e),_h("preconnect",t,e)}function cm(t,e,l){yl.L(t,e,l);var n=Qn;if(n&&t&&e){var a='link[rel="preload"][as="'+xe(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+xe(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+xe(l.imageSizes)+'"]')):a+='[href="'+xe(t)+'"]';var u=a;switch(e){case"style":u=Vn(t);break;case"script":u=Zn(t)}He.has(u)||(t=C({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),He.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(wa(u))||e==="script"&&n.querySelector(ja(u))||(e=n.createElement("link"),ue(e,"link",t),Wt(e),n.head.appendChild(e)))}}function sm(t,e){yl.m(t,e);var l=Qn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+xe(n)+'"][href="'+xe(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Zn(t)}if(!He.has(u)&&(t=C({rel:"modulepreload",href:t},e),He.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ja(u)))return}n=l.createElement("link"),ue(n,"link",t),Wt(n),l.head.appendChild(n)}}}function fm(t,e,l){yl.S(t,e,l);var n=Qn;if(n&&t){var a=rn(n).hoistableStyles,u=Vn(t);e=e||"default";var f=a.get(u);if(!f){var o={loading:0,preload:null};if(f=n.querySelector(wa(u)))o.loading=5;else{t=C({rel:"stylesheet",href:t,"data-precedence":e},l),(l=He.get(u))&&Ss(t,l);var h=f=n.createElement("link");Wt(h),ue(h,"link",t),h._p=new Promise(function(b,O){h.onload=b,h.onerror=O}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Fu(f,e,n)}f={type:"stylesheet",instance:f,count:1,state:o},a.set(u,f)}}}function rm(t,e){yl.X(t,e);var l=Qn;if(l&&t){var n=rn(l).hoistableScripts,a=Zn(t),u=n.get(a);u||(u=l.querySelector(ja(a)),u||(t=C({src:t,async:!0},e),(e=He.get(a))&&_s(t,e),u=l.createElement("script"),Wt(u),ue(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function om(t,e){yl.M(t,e);var l=Qn;if(l&&t){var n=rn(l).hoistableScripts,a=Zn(t),u=n.get(a);u||(u=l.querySelector(ja(a)),u||(t=C({src:t,async:!0,type:"module"},e),(e=He.get(a))&&_s(t,e),u=l.createElement("script"),Wt(u),ue(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Eh(t,e,l,n){var a=(a=lt.current)?Wu(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Vn(l.href),l=rn(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=Vn(l.href);var u=rn(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(wa(t)))&&!u._p&&(f.instance=u,f.state.loading=5),He.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},He.set(t,l),u||hm(a,t,l,f.state))),e&&n===null)throw Error(s(528,""));return f}if(e&&n!==null)throw Error(s(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Zn(l),l=rn(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(s(444,t))}}function Vn(t){return'href="'+xe(t)+'"'}function wa(t){return'link[rel="stylesheet"]['+t+"]"}function Th(t){return C({},t,{"data-precedence":t.precedence,precedence:null})}function hm(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}),ue(e,"link",l),Wt(e),t.head.appendChild(e))}function Zn(t){return'[src="'+xe(t)+'"]'}function ja(t){return"script[async]"+t}function Ah(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+xe(l.href)+'"]');if(n)return e.instance=n,Wt(n),n;var a=C({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Wt(n),ue(n,"style",a),Fu(n,l.precedence,t),e.instance=n;case"stylesheet":a=Vn(l.href);var u=t.querySelector(wa(a));if(u)return e.state.loading|=4,e.instance=u,Wt(u),u;n=Th(l),(a=He.get(a))&&Ss(n,a),u=(t.ownerDocument||t).createElement("link"),Wt(u);var f=u;return f._p=new Promise(function(o,h){f.onload=o,f.onerror=h}),ue(u,"link",n),e.state.loading|=4,Fu(u,l.precedence,t),e.instance=u;case"script":return u=Zn(l.src),(a=t.querySelector(ja(u)))?(e.instance=a,Wt(a),a):(n=l,(a=He.get(u))&&(n=C({},l),_s(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Wt(a),ue(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Fu(n,l.precedence,t));return e.instance}function Fu(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 o=n[f];if(o.dataset.precedence===e)u=o;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 Ss(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _s(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Pu=null;function Rh(t,e,l){if(Pu===null){var n=new Map,a=Pu=new Map;a.set(l,n)}else a=Pu,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[Fn]||u[se]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var o=n.get(f);o?o.push(u):n.set(f,[u])}}return n}function Oh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function dm(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 zh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ya=null;function ym(){}function mm(t,e,l){if(Ya===null)throw Error(s(475));var n=Ya;if(e.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=Vn(l.href),u=t.querySelector(wa(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(n.count++,n=Iu.bind(n),t.then(n,n)),e.state.loading|=4,e.instance=u,Wt(u);return}u=t.ownerDocument||t,l=Th(l),(a=He.get(a))&&Ss(l,a),u=u.createElement("link"),Wt(u);var f=u;f._p=new Promise(function(o,h){f.onload=o,f.onerror=h}),ue(u,"link",l),e.instance=u}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(n.count++,e=Iu.bind(n),t.addEventListener("load",e),t.addEventListener("error",e))}}function gm(){if(Ya===null)throw Error(s(475));var t=Ya;return t.stylesheets&&t.count===0&&Es(t,t.stylesheets),0<t.count?function(e){var l=setTimeout(function(){if(t.stylesheets&&Es(t,t.stylesheets),t.unsuspend){var n=t.unsuspend;t.unsuspend=null,n()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(l)}}:null}function Iu(){if(this.count--,this.count===0){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ti=null;function Es(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ti=new Map,e.forEach(vm,t),ti=null,Iu.call(t))}function vm(t,e){if(!(e.state.loading&4)){var l=ti.get(t);if(l)var n=l.get(null);else{l=new Map,ti.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=Iu.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 La={$$typeof:Dt,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function pm(t,e,l,n,a,u,f,o){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=pi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pi(0),this.hiddenUpdates=pi(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Dh(t,e,l,n,a,u,f,o,h,b,O,x){return t=new pm(t,e,l,f,o,h,b,x),e=1,u===!0&&(e|=24),u=Se(3,null,null,e),t.current=u,u.stateNode=t,e=nc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},cc(u),t}function xh(t){return t?(t=En,t):En}function Mh(t,e,l,n,a,u){a=xh(a),n.context===null?n.context=a:n.pendingContext=a,n=bl(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=Sl(t,n,e),l!==null&&(Re(l,t,e),ga(l,t,e))}function Nh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Ts(t,e){Nh(t,e),(t=t.alternate)&&Nh(t,e)}function Uh(t){if(t.tag===13){var e=_n(t,67108864);e!==null&&Re(e,t,67108864),Ts(t,67108864)}}var ei=!0;function bm(t,e,l,n){var a=T.T;T.T=null;var u=H.p;try{H.p=2,As(t,e,l,n)}finally{H.p=u,T.T=a}}function Sm(t,e,l,n){var a=T.T;T.T=null;var u=H.p;try{H.p=8,As(t,e,l,n)}finally{H.p=u,T.T=a}}function As(t,e,l,n){if(ei){var a=Rs(n);if(a===null)os(t,e,n,li,l),Bh(t,n);else if(Em(a,t,e,l,n))n.stopPropagation();else if(Bh(t,n),e&4&&-1<_m.indexOf(t)){for(;a!==null;){var u=fn(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=Gt(u.pendingLanes);if(f!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;f;){var h=1<<31-ct(f);o.entanglements[1]|=h,f&=~h}We(u),(_t&6)===0&&(Yu=Oe()+500,Ca(0))}}break;case 13:o=_n(u,2),o!==null&&Re(o,u,2),Xu(),Ts(u,2)}if(u=Rs(n),u===null&&os(t,e,n,li,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else os(t,e,n,null,l)}}function Rs(t){return t=Mi(t),Os(t)}var li=null;function Os(t){if(li=null,t=sn(t),t!==null){var e=R(t);if(e===null)t=null;else{var l=e.tag;if(l===13){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 li=t,null}function Ch(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($a()){case $n:return 2;case Xl:return 8;case m:case U:return 32;case X:return 268435456;default:return 32}default:return 32}}var zs=!1,Cl=null,Bl=null,ql=null,Xa=new Map,Ga=new Map,Hl=[],_m="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 Bh(t,e){switch(t){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Bl=null;break;case"mouseover":case"mouseout":ql=null;break;case"pointerover":case"pointerout":Xa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ga.delete(e.pointerId)}}function Qa(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=fn(e),e!==null&&Uh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Em(t,e,l,n,a){switch(e){case"focusin":return Cl=Qa(Cl,t,e,l,n,a),!0;case"dragenter":return Bl=Qa(Bl,t,e,l,n,a),!0;case"mouseover":return ql=Qa(ql,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return Xa.set(u,Qa(Xa.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Ga.set(u,Qa(Ga.get(u)||null,t,e,l,n,a)),!0}return!1}function qh(t){var e=sn(t.target);if(e!==null){var l=R(e);if(l!==null){if(e=l.tag,e===13){if(e=B(l),e!==null){t.blockedOn=e,md(t.priority,function(){if(l.tag===13){var n=Ae();n=bi(n);var a=_n(l,n);a!==null&&Re(a,l,n),Ts(l,n)}});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ni(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Rs(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);xi=n,l.target.dispatchEvent(n),xi=null}else return e=fn(l),e!==null&&Uh(e),t.blockedOn=l,!1;e.shift()}return!0}function Hh(t,e,l){ni(t)&&l.delete(e)}function Tm(){zs=!1,Cl!==null&&ni(Cl)&&(Cl=null),Bl!==null&&ni(Bl)&&(Bl=null),ql!==null&&ni(ql)&&(ql=null),Xa.forEach(Hh),Ga.forEach(Hh)}function ai(t,e){t.blockedOn===e&&(t.blockedOn=null,zs||(zs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Tm)))}var ui=null;function wh(t){ui!==t&&(ui=t,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){ui===t&&(ui=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(Os(n||l)===null)continue;break}var u=fn(l);u!==null&&(t.splice(e,3),e-=3,Oc(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Va(t){function e(h){return ai(h,t)}Cl!==null&&ai(Cl,t),Bl!==null&&ai(Bl,t),ql!==null&&ai(ql,t),Xa.forEach(e),Ga.forEach(e);for(var l=0;l<Hl.length;l++){var n=Hl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Hl.length&&(l=Hl[0],l.blockedOn===null);)qh(l),l.blockedOn===null&&Hl.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[ye]||null;if(typeof u=="function")f||wh(l);else if(f){var o=null;if(u&&u.hasAttribute("formAction")){if(a=u,f=u[ye]||null)o=f.formAction;else if(Os(a)!==null)continue}else o=f.action;typeof o=="function"?l[n+1]=o:(l.splice(n,3),n-=3),wh(l)}}}function Ds(t){this._internalRoot=t}ii.prototype.render=Ds.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var l=e.current,n=Ae();Mh(l,n,t,e,null,null)},ii.prototype.unmount=Ds.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Mh(t.current,2,null,t,null,null),Xu(),e[cn]=null}};function ii(t){this._internalRoot=t}ii.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ps();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Hl.length&&e!==0&&e<Hl[l].priority;l++);Hl.splice(l,0,t),l===0&&qh(t)}};var jh=i.version;if(jh!=="19.1.1")throw Error(s(527,jh,"19.1.1"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=D(e),t=t!==null?E(t):null,t=t===null?null:t.stateNode,t};var Am={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ci.isDisabled&&ci.supportsFiber)try{$=ci.inject(Am),j=ci}catch{}}return Ka.createRoot=function(t,e){if(!g(t))throw Error(s(299));var l=!1,n="",a=Ir,u=to,f=eo,o=null;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.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=Dh(t,1,!1,null,null,l,n,a,u,f,o,null),t[cn]=e.current,rs(t),new Ds(e)},Ka.hydrateRoot=function(t,e,l){if(!g(t))throw Error(s(299));var n=!1,a="",u=Ir,f=to,o=eo,h=null,b=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&&(o=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(h=l.unstable_transitionCallbacks),l.formState!==void 0&&(b=l.formState)),e=Dh(t,1,!0,e,l??null,n,a,u,f,o,h,b),e.context=xh(null),l=e.current,n=Ae(),n=bi(n),a=bl(n),a.callback=null,Sl(l,a,n),l=n,e.current.lanes=l,Wn(e,l),We(e),t[cn]=e.current,rs(t),new ii(e)},Ka.version="19.1.1",Ka}var Jh;function Bm(){if(Jh)return Ns.exports;Jh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Ns.exports=Cm(),Ns.exports}var qm=Bm();const Pe=Object.create(null);Pe.open="0";Pe.close="1";Pe.ping="2";Pe.pong="3";Pe.message="4";Pe.upgrade="5";Pe.noop="6";const ri=Object.create(null);Object.keys(Pe).forEach(r=>{ri[Pe[r]]=r});const js={type:"error",data:"parser error"},ed=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ld=typeof ArrayBuffer=="function",nd=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,Zs=({type:r,data:i},c,s)=>ed&&i instanceof Blob?c?s(i):$h(i,s):ld&&(i instanceof ArrayBuffer||nd(i))?c?s(i):$h(new Blob([i]),s):s(Pe[r]+(i||"")),$h=(r,i)=>{const c=new FileReader;return c.onload=function(){const s=c.result.split(",")[1];i("b"+(s||""))},c.readAsDataURL(r)};function Wh(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let qs;function Hm(r,i){if(ed&&r.data instanceof Blob)return r.data.arrayBuffer().then(Wh).then(i);if(ld&&(r.data instanceof ArrayBuffer||nd(r.data)))return i(Wh(r.data));Zs(r,!1,c=>{qs||(qs=new TextEncoder),i(qs.encode(c))})}const Fh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ja=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<Fh.length;r++)Ja[Fh.charCodeAt(r)]=r;const wm=r=>{let i=r.length*.75,c=r.length,s,g=0,R,B,Y,D;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);const E=new ArrayBuffer(i),C=new Uint8Array(E);for(s=0;s<c;s+=4)R=Ja[r.charCodeAt(s)],B=Ja[r.charCodeAt(s+1)],Y=Ja[r.charCodeAt(s+2)],D=Ja[r.charCodeAt(s+3)],C[g++]=R<<2|B>>4,C[g++]=(B&15)<<4|Y>>2,C[g++]=(Y&3)<<6|D&63;return E},jm=typeof ArrayBuffer=="function",Ks=(r,i)=>{if(typeof r!="string")return{type:"message",data:ad(r,i)};const c=r.charAt(0);return c==="b"?{type:"message",data:Ym(r.substring(1),i)}:ri[c]?r.length>1?{type:ri[c],data:r.substring(1)}:{type:ri[c]}:js},Ym=(r,i)=>{if(jm){const c=wm(r);return ad(c,i)}else return{base64:!0,data:r}},ad=(r,i)=>{switch(i){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}},ud="",Lm=(r,i)=>{const c=r.length,s=new Array(c);let g=0;r.forEach((R,B)=>{Zs(R,!1,Y=>{s[B]=Y,++g===c&&i(s.join(ud))})})},Xm=(r,i)=>{const c=r.split(ud),s=[];for(let g=0;g<c.length;g++){const R=Ks(c[g],i);if(s.push(R),R.type==="error")break}return s};function Gm(){return new TransformStream({transform(r,i){Hm(r,c=>{const s=c.length;let g;if(s<126)g=new Uint8Array(1),new DataView(g.buffer).setUint8(0,s);else if(s<65536){g=new Uint8Array(3);const R=new DataView(g.buffer);R.setUint8(0,126),R.setUint16(1,s)}else{g=new Uint8Array(9);const R=new DataView(g.buffer);R.setUint8(0,127),R.setBigUint64(1,BigInt(s))}r.data&&typeof r.data!="string"&&(g[0]|=128),i.enqueue(g),i.enqueue(c)})}})}let Hs;function si(r){return r.reduce((i,c)=>i+c.length,0)}function fi(r,i){if(r[0].length===i)return r.shift();const c=new Uint8Array(i);let s=0;for(let g=0;g<i;g++)c[g]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),c}function Qm(r,i){Hs||(Hs=new TextDecoder);const c=[];let s=0,g=-1,R=!1;return new TransformStream({transform(B,Y){for(c.push(B);;){if(s===0){if(si(c)<1)break;const D=fi(c,1);R=(D[0]&128)===128,g=D[0]&127,g<126?s=3:g===126?s=1:s=2}else if(s===1){if(si(c)<2)break;const D=fi(c,2);g=new DataView(D.buffer,D.byteOffset,D.length).getUint16(0),s=3}else if(s===2){if(si(c)<8)break;const D=fi(c,8),E=new DataView(D.buffer,D.byteOffset,D.length),C=E.getUint32(0);if(C>Math.pow(2,21)-1){Y.enqueue(js);break}g=C*Math.pow(2,32)+E.getUint32(4),s=3}else{if(si(c)<g)break;const D=fi(c,g);Y.enqueue(Ks(R?D:Hs.decode(D),i)),s=0}if(g===0||g>r){Y.enqueue(js);break}}}})}const id=4;function Zt(r){if(r)return Vm(r)}function Vm(r){for(var i in Zt.prototype)r[i]=Zt.prototype[i];return r}Zt.prototype.on=Zt.prototype.addEventListener=function(r,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(i),this};Zt.prototype.once=function(r,i){function c(){this.off(r,c),i.apply(this,arguments)}return c.fn=i,this.on(r,c),this};Zt.prototype.off=Zt.prototype.removeListener=Zt.prototype.removeAllListeners=Zt.prototype.removeEventListener=function(r,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+r];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,g=0;g<c.length;g++)if(s=c[g],s===i||s.fn===i){c.splice(g,1);break}return c.length===0&&delete this._callbacks["$"+r],this};Zt.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+r],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(c){c=c.slice(0);for(var s=0,g=c.length;s<g;++s)c[s].apply(this,i)}return this};Zt.prototype.emitReserved=Zt.prototype.emit;Zt.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};Zt.prototype.hasListeners=function(r){return!!this.listeners(r).length};const yi=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),we=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Zm="arraybuffer";function cd(r,...i){return i.reduce((c,s)=>(r.hasOwnProperty(s)&&(c[s]=r[s]),c),{})}const Km=we.setTimeout,km=we.clearTimeout;function mi(r,i){i.useNativeTimers?(r.setTimeoutFn=Km.bind(we),r.clearTimeoutFn=km.bind(we)):(r.setTimeoutFn=we.setTimeout.bind(we),r.clearTimeoutFn=we.clearTimeout.bind(we))}const Jm=1.33;function $m(r){return typeof r=="string"?Wm(r):Math.ceil((r.byteLength||r.size)*Jm)}function Wm(r){let i=0,c=0;for(let s=0,g=r.length;s<g;s++)i=r.charCodeAt(s),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(s++,c+=4);return c}function sd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Fm(r){let i="";for(let c in r)r.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(r[c]));return i}function Pm(r){let i={},c=r.split("&");for(let s=0,g=c.length;s<g;s++){let R=c[s].split("=");i[decodeURIComponent(R[0])]=decodeURIComponent(R[1])}return i}class Im extends Error{constructor(i,c,s){super(i),this.description=c,this.context=s,this.type="TransportError"}}class ks extends Zt{constructor(i){super(),this.writable=!1,mi(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,c,s){return super.emitReserved("error",new Im(i,c,s)),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=Ks(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=Fm(i);return c.length?"?"+c:""}}class t0 extends ks{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 s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||c()})),this.writable||(s++,this.once("drain",function(){--s||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Xm(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,Lm(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]=sd()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let fd=!1;try{fd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const e0=fd;function l0(){}class n0 extends t0{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let s=location.port;s||(s=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,c){const s=this.request({method:"POST",data:i});s.on("success",c),s.on("error",(g,R)=>{this.onError("xhr post error",g,R)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(c,s)=>{this.onError("xhr poll error",c,s)}),this.pollXhr=i}}class Fe extends Zt{constructor(i,c,s){super(),this.createRequest=i,mi(this,s),this._opts=s,this._method=s.method||"GET",this._uri=c,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const c=cd(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(c);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let g in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(g)&&s.setRequestHeader(g,this._opts.extraHeaders[g])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var g;s.readyState===3&&((g=this._opts.cookieJar)===null||g===void 0||g.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(g){this.setTimeoutFn(()=>{this._onError(g)},0);return}typeof document<"u"&&(this._index=Fe.requestsCount++,Fe.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=l0,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Fe.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()}}Fe.requestsCount=0;Fe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ph);else if(typeof addEventListener=="function"){const r="onpagehide"in we?"pagehide":"unload";addEventListener(r,Ph,!1)}}function Ph(){for(let r in Fe.requests)Fe.requests.hasOwnProperty(r)&&Fe.requests[r].abort()}const a0=function(){const r=rd({xdomain:!1});return r&&r.responseType!==null}();class u0 extends n0{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=a0&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Fe(rd,this.uri(),i)}}function rd(r){const i=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e0))return new XMLHttpRequest}catch{}if(!i)try{return new we[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const od=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class i0 extends ks{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,s=od?{}:cd(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,c,s)}catch(g){return this.emitReserved("error",g)}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 s=i[c],g=c===i.length-1;Zs(s,this.supportsBinary,R=>{try{this.doWrite(s,R)}catch{}g&&yi(()=>{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]=sd()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const ws=we.WebSocket||we.MozWebSocket;class c0 extends i0{createSocket(i,c,s){return od?new ws(i,c,s):c?new ws(i,c):new ws(i)}doWrite(i,c){this.ws.send(c)}}class s0 extends ks{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=Qm(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(c).getReader(),g=Gm();g.readable.pipeTo(i.writable),this._writer=g.writable.getWriter();const R=()=>{s.read().then(({done:Y,value:D})=>{Y||(this.onPacket(D),R())}).catch(Y=>{})};R();const B={type:"open"};this.query.sid&&(B.data=`{"sid":"${this.query.sid}"}`),this._writer.write(B).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const s=i[c],g=c===i.length-1;this._writer.write(s).then(()=>{g&&yi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const f0={websocket:c0,webtransport:s0,polling:u0},r0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ys(r){if(r.length>8e3)throw"URI too long";const i=r,c=r.indexOf("["),s=r.indexOf("]");c!=-1&&s!=-1&&(r=r.substring(0,c)+r.substring(c,s).replace(/:/g,";")+r.substring(s,r.length));let g=r0.exec(r||""),R={},B=14;for(;B--;)R[o0[B]]=g[B]||"";return c!=-1&&s!=-1&&(R.source=i,R.host=R.host.substring(1,R.host.length-1).replace(/;/g,":"),R.authority=R.authority.replace("[","").replace("]","").replace(/;/g,":"),R.ipv6uri=!0),R.pathNames=h0(R,R.path),R.queryKey=d0(R,R.query),R}function h0(r,i){const c=/\/{2,9}/g,s=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function d0(r,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,g,R){g&&(c[g]=R)}),c}const Ls=typeof addEventListener=="function"&&typeof removeEventListener=="function",oi=[];Ls&&addEventListener("offline",()=>{oi.forEach(r=>r())},!1);class jl extends Zt{constructor(i,c){if(super(),this.binaryType=Zm,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 s=Ys(i);c.hostname=s.host,c.secure=s.protocol==="https"||s.protocol==="wss",c.port=s.port,s.query&&(c.query=s.query)}else c.host&&(c.hostname=Ys(c.host).host);mi(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(s=>{const g=s.prototype.name;this.transports.push(g),this._transportsByName[g]=s}),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=Pm(this.opts.query)),Ls&&(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"})},oi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=id,c.transport=i,this.id&&(c.sid=this.id);const s=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](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&jl.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",jl.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 s=0;s<this.writeBuffer.length;s++){const g=this.writeBuffer[s].data;if(g&&(c+=$m(g)),s>0&&c>this._maxPayload)return this.writeBuffer.slice(0,s);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,yi(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,c,s){return this._sendPacket("message",i,c,s),this}send(i,c,s){return this._sendPacket("message",i,c,s),this}_sendPacket(i,c,s,g){if(typeof c=="function"&&(g=c,c=void 0),typeof s=="function"&&(g=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const R={type:i,data:c,options:s};this.emitReserved("packetCreate",R),this.writeBuffer.push(R),g&&this.once("flush",g),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),i()},s=()=>{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?s():i()}):this.upgrading?s():i()),this}_onError(i){if(jl.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(),Ls&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=oi.indexOf(this._offlineEventListener);s!==-1&&oi.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}jl.protocol=id;class y0 extends jl{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),s=!1;jl.priorWebsocketSuccess=!1;const g=()=>{s||(c.send([{type:"ping",data:"probe"}]),c.once("packet",W=>{if(!s)if(W.type==="pong"&&W.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;jl.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(C(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const dt=new Error("probe error");dt.transport=c.name,this.emitReserved("upgradeError",dt)}}))};function R(){s||(s=!0,C(),c.close(),c=null)}const B=W=>{const dt=new Error("probe error: "+W);dt.transport=c.name,R(),this.emitReserved("upgradeError",dt)};function Y(){B("transport closed")}function D(){B("socket closed")}function E(W){c&&W.name!==c.name&&R()}const C=()=>{c.removeListener("open",g),c.removeListener("error",B),c.removeListener("close",Y),this.off("close",D),this.off("upgrading",E)};c.once("open",g),c.once("error",B),c.once("close",Y),this.once("close",D),this.once("upgrading",E),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&c.push(i[s]);return c}}let m0=class extends y0{constructor(i,c={}){const s=typeof i=="object"?i:c;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(g=>f0[g]).filter(g=>!!g)),super(i,s)}};function g0(r,i="",c){let s=r;c=c||typeof location<"u"&&location,r==null&&(r=c.protocol+"//"+c.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=c.protocol+r:r=c.host+r),/^(https?|wss?):\/\//.test(r)||(typeof c<"u"?r=c.protocol+"//"+r:r="https://"+r),s=Ys(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const R=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+R+":"+s.port+i,s.href=s.protocol+"://"+R+(c&&c.port===s.port?"":":"+s.port),s}const v0=typeof ArrayBuffer=="function",p0=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,hd=Object.prototype.toString,b0=typeof Blob=="function"||typeof Blob<"u"&&hd.call(Blob)==="[object BlobConstructor]",S0=typeof File=="function"||typeof File<"u"&&hd.call(File)==="[object FileConstructor]";function Js(r){return v0&&(r instanceof ArrayBuffer||p0(r))||b0&&r instanceof Blob||S0&&r instanceof File}function hi(r,i){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let c=0,s=r.length;c<s;c++)if(hi(r[c]))return!0;return!1}if(Js(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return hi(r.toJSON(),!0);for(const c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&hi(r[c]))return!0;return!1}function _0(r){const i=[],c=r.data,s=r;return s.data=Xs(c,i),s.attachments=i.length,{packet:s,buffers:i}}function Xs(r,i){if(!r)return r;if(Js(r)){const c={_placeholder:!0,num:i.length};return i.push(r),c}else if(Array.isArray(r)){const c=new Array(r.length);for(let s=0;s<r.length;s++)c[s]=Xs(r[s],i);return c}else if(typeof r=="object"&&!(r instanceof Date)){const c={};for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&(c[s]=Xs(r[s],i));return c}return r}function E0(r,i){return r.data=Gs(r.data,i),delete r.attachments,r}function Gs(r,i){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<i.length)return i[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let c=0;c<r.length;c++)r[c]=Gs(r[c],i);else if(typeof r=="object")for(const c in r)Object.prototype.hasOwnProperty.call(r,c)&&(r[c]=Gs(r[c],i));return r}const T0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],A0=5;var mt;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(mt||(mt={}));class R0{constructor(i){this.replacer=i}encode(i){return(i.type===mt.EVENT||i.type===mt.ACK)&&hi(i)?this.encodeAsBinary({type:i.type===mt.EVENT?mt.BINARY_EVENT:mt.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===mt.BINARY_EVENT||i.type===mt.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=_0(i),s=this.encodeAsString(c.packet),g=c.buffers;return g.unshift(s),g}}function Ih(r){return Object.prototype.toString.call(r)==="[object Object]"}class $s extends Zt{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 s=c.type===mt.BINARY_EVENT;s||c.type===mt.BINARY_ACK?(c.type=s?mt.EVENT:mt.ACK,this.reconstructor=new O0(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Js(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 s={type:Number(i.charAt(0))};if(mt[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===mt.BINARY_EVENT||s.type===mt.BINARY_ACK){const R=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const B=i.substring(R,c);if(B!=Number(B)||i.charAt(c)!=="-")throw new Error("Illegal attachments");s.attachments=Number(B)}if(i.charAt(c+1)==="/"){const R=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););s.nsp=i.substring(R,c)}else s.nsp="/";const g=i.charAt(c+1);if(g!==""&&Number(g)==g){const R=c+1;for(;++c;){const B=i.charAt(c);if(B==null||Number(B)!=B){--c;break}if(c===i.length)break}s.id=Number(i.substring(R,c+1))}if(i.charAt(++c)){const R=this.tryParse(i.substr(c));if($s.isPayloadValid(s.type,R))s.data=R;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,c){switch(i){case mt.CONNECT:return Ih(c);case mt.DISCONNECT:return c===void 0;case mt.CONNECT_ERROR:return typeof c=="string"||Ih(c);case mt.EVENT:case mt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&T0.indexOf(c[0])===-1);case mt.ACK:case mt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class O0{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=E0(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const z0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:$s,Encoder:R0,get PacketType(){return mt},protocol:A0},Symbol.toStringTag,{value:"Module"}));function Qe(r,i,c){return r.on(i,c),function(){r.off(i,c)}}const D0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class dd extends Zt{constructor(i,c,s){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,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Qe(i,"open",this.onopen.bind(this)),Qe(i,"packet",this.onpacket.bind(this)),Qe(i,"error",this.onerror.bind(this)),Qe(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 s,g,R;if(D0.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 B={type:mt.EVENT,data:c};if(B.options={},B.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const C=this.ids++,W=c.pop();this._registerAckCallback(C,W),B.id=C}const Y=(g=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||g===void 0?void 0:g.writable,D=this.connected&&!(!((R=this.io.engine)===null||R===void 0)&&R._hasPingExpired());return this.flags.volatile&&!Y||(D?(this.notifyOutgoingListeners(B),this.packet(B)):this.sendBuffer.push(B)),this.flags={},this}_registerAckCallback(i,c){var s;const g=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(g===void 0){this.acks[i]=c;return}const R=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let Y=0;Y<this.sendBuffer.length;Y++)this.sendBuffer[Y].id===i&&this.sendBuffer.splice(Y,1);c.call(this,new Error("operation has timed out"))},g),B=(...Y)=>{this.io.clearTimeoutFn(R),c.apply(this,Y)};B.withError=!0,this.acks[i]=B}emitWithAck(i,...c){return new Promise((s,g)=>{const R=(B,Y)=>B?g(B):s(Y);R.withError=!0,c.push(R),this.emit(i,...c)})}_addToQueue(i){let c;typeof i[i.length-1]=="function"&&(c=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((g,...R)=>s!==this._queue[0]?void 0:(g!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(g)):(this._queue.shift(),c&&c(null,...R)),s.pending=!1,this._drainQueue())),this._queue.push(s),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:mt.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(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case mt.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 mt.EVENT:case mt.BINARY_EVENT:this.onevent(i);break;case mt.ACK:case mt.BINARY_ACK:this.onack(i);break;case mt.DISCONNECT:this.ondisconnect();break;case mt.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);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 s of c)s.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 s=!1;return function(...g){s||(s=!0,c.packet({type:mt.ACK,id:i,data:g}))}}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:mt.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 s=0;s<c.length;s++)if(i===c[s])return c.splice(s,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 s=0;s<c.length;s++)if(i===c[s])return c.splice(s,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 s of c)s.apply(this,i.data)}}}function Kn(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}Kn.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*r);r=(Math.floor(i*10)&1)==0?r-c:r+c}return Math.min(r,this.max)|0};Kn.prototype.reset=function(){this.attempts=0};Kn.prototype.setMin=function(r){this.ms=r};Kn.prototype.setMax=function(r){this.max=r};Kn.prototype.setJitter=function(r){this.jitter=r};class Qs extends Zt{constructor(i,c){var s;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,mi(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((s=c.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Kn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const g=c.parser||z0;this.encoder=new g.Encoder,this.decoder=new g.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 m0(this.uri,this.opts);const c=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const g=Qe(c,"open",function(){s.onopen(),i&&i()}),R=Y=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Y),i?i(Y):this.maybeReconnectOnOpen()},B=Qe(c,"error",R);if(this._timeout!==!1){const Y=this._timeout,D=this.setTimeoutFn(()=>{g(),R(new Error("timeout")),c.close()},Y);this.opts.autoUnref&&D.unref(),this.subs.push(()=>{this.clearTimeoutFn(D)})}return this.subs.push(g),this.subs.push(B),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Qe(i,"ping",this.onping.bind(this)),Qe(i,"data",this.ondata.bind(this)),Qe(i,"error",this.onerror.bind(this)),Qe(i,"close",this.onclose.bind(this)),Qe(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){yi(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,c){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new dd(this,i,c),this.nsps[i]=s),s}_destroy(i){const c=Object.keys(this.nsps);for(const s of c)if(this.nsps[s].active)return;this._close()}_packet(i){const c=this.encoder.encode(i);for(let s=0;s<c.length;s++)this.engine.write(c[s],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 s;this.cleanup(),(s=this.engine)===null||s===void 0||s.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 s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(g=>{g?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",g)):i.onreconnect()}))},c);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const ka={};function di(r,i){typeof r=="object"&&(i=r,r=void 0),i=i||{};const c=g0(r,i.path||"/socket.io"),s=c.source,g=c.id,R=c.path,B=ka[g]&&R in ka[g].nsps,Y=i.forceNew||i["force new connection"]||i.multiplex===!1||B;let D;return Y?D=new Qs(s,i):(ka[g]||(ka[g]=new Qs(s,i)),D=ka[g]),c.query&&!i.query&&(i.query=c.queryKey),D.socket(c.path,i)}Object.assign(di,{Manager:Qs,Socket:dd,io:di,connect:di});function x0({code:r,isConnected:i,onCreateRoom:c,onJoinRoom:s}){const[g,R]=ut.useState(""),B=()=>{if(g){const D=g.trim();s(D)}},Y=D=>{D.key==="Enter"&&B()};return Q.jsx("div",{className:"mb-2",children:r?Q.jsx(Q.Fragment,{children:Q.jsxs("p",{className:"text-lg",children:["Code: ",Q.jsx("strong",{className:"text-3xl",children:r})]})}):Q.jsxs(Q.Fragment,{children:[Q.jsx("button",{onClick:c,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Create Room"}),Q.jsx("input",{type:"text",className:"width-212",value:g,onChange:D=>R(D.target.value),onKeyDown:Y,placeholder:"Enter code to join"}),Q.jsx("button",{onClick:B,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})})}function M0({files:r,setFiles:i,dataChannels:c,dataChannelsRef:s,useFallback:g,socket:R,code:B,socketId:Y,localFilesRef:D,downloadStates:E,setDownloadStates:C,cancelDownload:W,cancelRequestsRef:dt,downloadCounts:jt,handleDeleteFile:Kt,SERVER_URL:Tt}){const Yt=ut.useRef(null),bt=ut.useRef({}),oe=(N,ft=256)=>new Promise(rt=>{if(!N.type.startsWith("image/")){rt(null);return}const nt=new Image,vt=document.createElement("canvas"),ie=vt.getContext("2d");nt.onload=()=>{const{width:xt,height:Ct}=nt,T=Math.min(ft/xt,ft/Ct,1);vt.width=xt*T,vt.height=Ct*T,ie.drawImage(nt,0,0,vt.width,vt.height),vt.toBlob(H=>{rt(H)},"image/jpeg",.7)},nt.src=URL.createObjectURL(N)}),Dt=async()=>{const N=Yt.current.files;if(!N||N.length===0)return;const ft=Array.from(N).map(rt=>({name:rt.name,size:rt.size,peerId:Y,thumbnail:!!rt.type.startsWith("image/")}));if(g){const rt=new FormData;Array.from(N).forEach(nt=>rt.append("files",nt));try{if(!(await fetch(`${Tt}/api/upload/${B}`,{method:"POST",body:rt,headers:{"x-socket-id":Y}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",ft)}catch(nt){console.error("Error uploading files:",nt)}}else{const rt=await Promise.all(Array.from(N).map(async nt=>({name:nt.name,thumbnail:nt.type.startsWith("image/")?await oe(nt):null})));D.current={...D.current,...Object.fromEntries(Array.from(N).map(nt=>[nt.name,nt])),...Object.fromEntries(rt.filter(({thumbnail:nt})=>nt).map(({name:nt,thumbnail:vt})=>[`${nt}_thumbnail`,vt]))},rt.forEach(({name:nt,thumbnail:vt})=>{if(vt){const ie=URL.createObjectURL(vt);bt.current[nt]=ie,console.log(`Cached thumbnail URL for ${nt}: ${ie}`)}}),console.log("Stored files in localFilesRef:",Object.keys(D.current)),R.emit("file-list",{code:B,files:ft}),console.log("Shared file list:",ft)}i(rt=>[...rt,...ft]),Yt.current.value=""},te=async N=>{if(dt.current.has(N.name)&&(dt.current.delete(N.name),console.log(`Cleared previous cancel for ${N.name}, starting new request to ${N.peerId}`)),E[N.name]?.status==="downloading"){W(N.name,N.peerId),console.log(`Canceling download for ${N.name}`);return}if(C(ft=>({...ft,[N.name]:{status:"downloading",progress:0,total:N.size,peerId:N.peerId}})),console.log(`Starting download for ${N.name}, downloadStates:`,{...E,[N.name]:{status:"downloading",progress:0}}),g){const ft=document.createElement("a");ft.href=`${Tt}/uploads/${N.path.split("/").pop()}`,ft.download=N.name,ft.click(),console.log(`Downloading file via server: ${N.name}`),C(rt=>({...rt,[N.name]:{status:"completed",progress:100}}))}else if(N.peerId===Y){const ft=D.current[N.name]||r.find(rt=>rt.name===N.name)?.file;if(ft){const rt=URL.createObjectURL(ft),nt=document.createElement("a");nt.href=rt,nt.download=N.name,nt.click(),URL.revokeObjectURL(rt),console.log(`Downloaded local file: ${N.name}`),C(vt=>({...vt,[N.name]:{status:"saved",progress:100}}))}else console.error(`Local file not found: ${N.name}`)}else c[N.peerId]?.readyState==="open"?(s.current[N.peerId].send(JSON.stringify({type:"request-file",name:N.name})),console.log(`Requested file ${N.name} from ${N.peerId}`)):console.error(`Data channel not open for peer ${N.peerId}`)},K=N=>{const ft=N.split(".").pop().toLowerCase();return`/imgs/${{exe:"executable.png",bin:"executable.png",dll:"executable.png",jpg:"picture.png",jpeg:"picture.png",png:"picture.png",gif:"picture.png",mp3:"audio.png",wav:"audio.png",ogg:"audio.png",mp4:"video.png",mkv:"video.png",avi:"video.png",mov:"video.png",wma:"video.png",pdf:"unknown.png",doc:"unknown.png",docx:"unknown.png",txt:"text.png",log:"text.png",bat:"script.png",sh:"script.png",html:"html.png",xml:"xml.png",zip:"archive.png",gz:"archive.png",bz:"archive.png"}[ft]||"unknown.png"}`},ee=N=>N?N<1024?`${N} B`:N<1024*1024?`${(N/1024).toFixed(2)} KB`:N<1024*1024*1024?`${(N/(1024*1024)).toFixed(2)} MB`:`${(N/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",Ut=N=>{if(!N.thumbnail)return console.log(`No thumbnail flag for ${N.name}`),null;if(bt.current[N.name])return bt.current[N.name];const ft=D.current[`${N.name}_thumbnail`];if(ft){const rt=URL.createObjectURL(ft);return bt.current[N.name]=rt,console.log(`Generated and cached thumbnail URL for ${N.name}: ${rt}`),rt}return console.log(`No thumbnail available for ${N.name}`),null};return ut.useEffect(()=>()=>{Object.values(bt.current).forEach(N=>{N&&URL.revokeObjectURL(N)}),bt.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),Q.jsx("input",{type:"file",multiple:!0,ref:Yt,onChange:Dt,className:"mb-2"}),Q.jsx("ul",{className:"space-y-2",children:r.map((N,ft)=>(E[N.name]?.status==="downloading"||E[N.name]?.status,Q.jsxs("li",{className:"flex items-center space-x-2",children:[N.thumbnail&&Q.jsx("img",{src:Ut(N)||K(N.name),alt:`${N.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${N.name}, requesting...`)}})||Q.jsx("img",{src:K(N.name),alt:"file icon",className:"w-6 h-6",onError:rt=>rt.target.style.display="none"}),Q.jsxs("span",{children:["(",ee(N.size),")"]}),N.peerId!==Y&&Q.jsx("button",{onClick:()=>te(N),className:`px-4 py-2 rounded ${E[N.name]?.status==="saved"?"bg-green-500 text-white":E[N.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:E[N.name]?.status==="saved"?"Saved ✓":E[N.name]?.status==="downloading"?`Cancel ${(E[N.name]?.progress||0).toFixed(2)}%`:"Download"}),N.peerId===Y&&Q.jsxs(Q.Fragment,{children:[Q.jsx("button",{onClick:()=>Kt(N.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"}),jt[N.name]>0&&Q.jsxs("span",{children:[jt[N.name]," downloading"]})]}),Q.jsx("span",{children:N.name})]},ft)))})]})}function N0({textHistory:r,setTextHistory:i,dataChannels:c,useFallback:s,socket:g,code:R}){const[B,Y]=ut.useState(""),D=()=>{B.trim()&&(console.log("handleSend:",{dataChannels:c,useFallback:s,code:R}),!s&&Object.keys(c).length>0?(Object.keys(c).forEach(C=>{c[C].readyState==="open"&&(c[C].send(JSON.stringify({type:"text",text:B})),console.log(`Sent text to peer ${C}`))}),i(C=>[...C,B])):s&&g&&R&&(g.emit("text",{code:R,text:B}),console.log(`Sending text via socket for room ${R}: ${B}`),i(C=>[...C,B])),Y(""))},E=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),D())};return Q.jsxs("div",{className:"mb-4",children:[Q.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),Q.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:B,onChange:C=>Y(C.target.value),onKeyDown:E,placeholder:"Enter text to share"}),Q.jsx("button",{className:"bg-emerald-600 text-darkPurple px-4 py-2 rounded hover:bg-emerald-500",onClick:D,children:"Send"}),Q.jsxs("div",{className:"mt-2",children:[Q.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),Q.jsx("ul",{className:"list-disc pl-5",children:r?.length>0?r.map((C,W)=>Q.jsx("li",{children:Q.jsx("pre",{children:C})},W)):Q.jsx("li",{children:Q.jsx("pre",{children:"No messages yet"})})})]})]})}const td="",V=di("/",{withCredentials:!0});function U0(){const[r,i]=ut.useState(""),[c,s]=ut.useState(!1),[g,R]=ut.useState(!1),[B,Y]=ut.useState(!1),[D,E]=ut.useState(!1),[C,W]=ut.useState(90),[dt,jt]=ut.useState(""),[Kt,Tt]=ut.useState([]),[Yt,bt]=ut.useState(""),[oe,Dt]=ut.useState({}),[te,K]=ut.useState([]),[ee,Ut]=ut.useState({}),[N,ft]=ut.useState([]),[rt,nt]=ut.useState({}),[vt,ie]=ut.useState(""),xt=ut.useRef({}),Ct=ut.useRef([]);ut.useRef({});const T=ut.useRef({});ut.useRef({}),ut.useRef({});const H=ut.useRef(new Set),J=ut.useRef({}),P=ut.useRef({}),d=ut.useRef({}),M=ut.useRef({}),q=ut.useRef({}),w=ut.useRef({}),G=ut.useRef({}),yt=window.location.protocol,lt=window.location.hostname||"localhost",ce=(r||"").replace(/ /g,"_"),Mt=`${yt}//${lt}/room/${ce||""}`,je=async m=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const U=m==="link"?Mt:ce;await navigator.clipboard.writeText(U),s(m),setTimeout(()=>s(null),2e3)}catch(U){console.error(`Failed to copy ${m}:`,U)}},kn=async()=>{try{const m=await fetch(`${td}/api/generate-code`,{method:"GET",credentials:"include"}),{code:U,error:X}=await m.json();if(X){bt(X);return}i(U),R(!0),bt(""),V.emit("create",U),ie(U)}catch(m){console.error("Error generating code:",m),bt("Failed to generate room code")}},Yl=m=>{if(!m){bt("Please enter a room code");return}i(m),bt(""),V.emit("join",m),ie(m)},Jn=()=>{V.emit("leave",r),i(""),R(!1),Y(!1),E(!1),W(90),K([]),jt(""),Tt([]),bt(""),Dt({}),ft([]),nt({}),xt.current={},Object.values(P.current).forEach(m=>m.close()),P.current={},d.current={},Object.keys(q.current).forEach(m=>clearTimeout(q.current[m])),q.current={},G.current={},window.history.pushState({},"","/"),ie("")},Ll=(m,U,X=!1)=>{if(!m||m===V.id||m==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${m}`);return}if(D){console.log(`Skipping WebRTC setup for ${m} due to fallback mode`);return}if(P.current[m]){console.log(`WebRTC connection already exists for ${m}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${m} (${X?"offerer":"answerer"}, attempt ${T.current[m]||1}/3)`);const A=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"turn:openrelay.metered.ca:80",username:"openrelay.project",credential:"openrelayproject"},{urls:"turn:openrelay.metered.ca:443",username:"openrelay.project",credential:"openrelayproject"}]});T.current[m]=(T.current[m]||0)+1,P.current[m]=A,A.ondatachannel=$=>{const j=$.channel;if(j.label==="file-share")d.current[m]=j,j.onopen=()=>{console.log(`Main DataChannel opened with peer ${m}`),Y(!0),W(0),Object.keys(q.current).forEach(ct=>{console.log(`Clearing timeout for ${ct}`),clearTimeout(q.current[ct])}),q.current={},T.current[m]=0,d.current.true&&delete d.current.true,Dt({...d.current});const I=Ct.current.map(ct=>({name:ct.name,size:ct.size,peerId:ct.peerId,thumbnail:!!xt.current[`${ct.name}_thumbnail`]}));j.send(JSON.stringify({type:"file-list",files:I})),I.forEach(ct=>{ct.thumbnail&&ct.peerId!==V.id&&!xt.current[`${ct.name}_thumbnail`]&&Ie(ct)})},j.onmessage=I=>$n(m,I),j.onclose=()=>{console.log(`Main DataChannel closed with peer ${m}`),delete P.current[m],Dt({...d.current})},j.onerror=I=>{console.error(`Main DataChannel error with ${m}:`,I)};else if(j.label.startsWith("file-")){const I=j.label.slice(5);console.log(`Received file channel for ${I} from ${m}`);let ct=[],de=0,Ve=!1;j.onmessage=Ze=>{if(Ve)return;const Ye=Ze.data;try{if(typeof Ye=="string"){const $t=JSON.parse(Ye);if($t.type==="file-start")de=$t.size,ct=[],Ut(Gt=>({...Gt,[I]:{status:"downloading",progress:0,total:$t.size,received:0,peerId:m}})),console.log(`File start on channel: ${I}, size ${$t.size}`);else if($t.type==="file-end"){if(ct.length>0){const Gt=ct.reduce((le,ze)=>le+ze.byteLength,0);if(Gt===de){const le=I.match(/\.(png|jpe?g)$/i)?`image/${I.split(".").pop().toLowerCase()}`:"application/octet-stream",ze=new Blob(ct,{type:le});xt.current[I]=ze;const Wa=URL.createObjectURL(ze),un=document.createElement("a");un.href=Wa,un.download=I,un.click(),URL.revokeObjectURL(Wa),Ut(Fa=>({...Fa,[I]:{status:"saved",progress:100}})),console.log(`File ${I} saved`)}else console.error(`Size mismatch for ${I}: ${Gt}/${de}`),Ut(le=>({...le,[I]:{status:"error",progress:0}}))}j.close(),Xl(m,I,"end")}else $t.type==="file-cancel"&&(Ve=!0,Ut(Gt=>({...Gt,[I]:{status:"canceled",progress:0}})),console.log(`File download canceled for ${I}`),j.close(),Xl(m,I,"end"))}else if(Ye instanceof ArrayBuffer){ct.push(Ye);const $t=ct.reduce((le,ze)=>le+ze.byteLength,0),Gt=Math.min(100,$t/de*100);Ut(le=>({...le,[I]:{...le[I],progress:Gt,received:$t}}))}}catch($t){console.error(`Error in file channel message for ${I}:`,$t)}},j.onclose=()=>{console.log(`File channel closed for ${I}`)},j.onerror=Ze=>{console.error(`File channel error for ${I}:`,Ze)}}};let k=null;return X&&(k=A.createDataChannel("file-share",{maxRetransmits:99}),d.current[m]=k,k.onopen=()=>{console.log(`Main DataChannel opened with peer ${m} (joiner)`),Y(!0),W(0),Object.keys(q.current).forEach(j=>{console.log(`Clearing timeout for ${j}`),clearTimeout(q.current[j])}),q.current={},T.current[m]=0,d.current.true&&delete d.current.true,Dt({...d.current});const $=Ct.current.map(j=>({name:j.name,size:j.size,peerId:j.peerId,thumbnail:!!xt.current[`${j.name}_thumbnail`]}));k.send(JSON.stringify({type:"file-list",files:$})),$.forEach(j=>{j.thumbnail&&j.peerId!==V.id&&!xt.current[`${j.name}_thumbnail`]&&Ie(j)})},k.onmessage=$=>$n(m,$),k.onclose=()=>{console.log(`Main DataChannel closed with peer ${m}`),delete P.current[m],Dt({...d.current})},k.onerror=$=>{console.error(`Main DataChannel error with ${m}:`,$)}),A.onicecandidate=$=>{$.candidate&&U&&(V.emit("ice-candidate",{code:U,candidate:$.candidate,to:m,from:V.id}),console.log(`Sent ICE candidate to ${m} from ${V.id}: ${$.candidate.candidate}`))},A.onicecandidateerror=$=>{console.error(`ICE candidate error for ${m}:`,$)},A.oniceconnectionstatechange=()=>{console.log(`ICE state with ${m} (${g?"creator":"joiner"}): ${A.iceConnectionState}`),A.iceConnectionState==="failed"||A.iceConnectionState==="disconnected"?(console.log(`WebRTC ${A.iceConnectionState} with ${m}, retrying in 5s (attempt ${T.current[m]}/3)`),setTimeout(()=>{A.iceConnectionState!=="connected"&&!D&&T.current[m]<3?Ll(m,U,X):A.iceConnectionState!=="connected"&&!D&&(console.log(`Max retries reached for ${m}, switching to fallback`),E(!0),bt("WebRTC connection failed after retries, using server fallback"),W(0),K([]),Tt([]),g&&V.emit("fallback",{code:U}))},5e3)):A.iceConnectionState==="connected"&&(Y(!0),E(!1),bt(""),clearTimeout(q.current[m]),T.current[m]=0)},X&&A.createOffer().then($=>{A.setLocalDescription($),V.emit("offer",{code:U,offer:$,to:m,from:V.id}),console.log(`Sent offer to ${m} for room ${U}`)}).catch($=>{console.error(`Error creating offer for ${m}:`,$),bt("Failed to create WebRTC offer"),E(!0),W(0),K([]),Tt([]),g&&V.emit("fallback",{code:U})}),()=>clearTimeout(q.current[m])};ut.useEffect(()=>(V.on("peer-joined",m=>{if(!m||!m.peerId||m.peerId==="true"){console.error("Invalid peer-joined data:",m);return}const{peerId:U}=m;console.log(`Peer ${U} joined room ${r}`),Ll(U,r,!0)}),V.on("offer",async({code:m,offer:U,to:X,from:A})=>{if(X!==V.id||D){console.log(`Ignoring offer from ${A} (to=${X}, socket.id=${V.id}, useFallback=${D})`);return}console.log(`Received offer from ${A} for room ${m}`),P.current[A]||(console.log(`No existing connection for ${A}, setting up as answerer`),Ll(A,m,!1));try{const k=P.current[A];await k.setRemoteDescription(new RTCSessionDescription(U));const $=await k.createAnswer();await k.setLocalDescription($),V.emit("answer",{code:m,answer:$,to:A,from:V.id}),console.log(`Sent answer to ${A} from ${V.id} for room ${m}`)}catch(k){console.error(`Error handling offer from ${A}:`,k),bt("Failed to process WebRTC offer"),E(!0),W(0),K([]),Tt([]),g&&V.emit("fallback",{roomCode})}}),V.on("answer",async({code:m,answer:U,to:X,from:A})=>{if(X!==V.id||D){console.log(`Ignoring answer from ${A} (to=${X}, socket.id=${V.id}, useFallback=${D})`);return}if(console.log(`Received answer from ${A} for room ${m}`),P.current[A])try{await P.current[A].setRemoteDescription(new RTCSessionDescription(U)),console.log(`Successfully set remote description for answer from ${A}`)}catch(k){console.error(`Error handling answer from ${A}:`,k),bt("Failed to process WebRTC answer"),E(!0),W(0),K([]),Tt([]),g&&V.emit("fallback",{roomCode})}else console.warn(`No peer connection found for ${A} when receiving answer`)}),V.on("room-status",({useFallback:m,textHistory:U,files:X})=>{console.log(`Received room-status: useFallback=${m}, textHistory=`,U),E(m),Tt(U||[]),K(X||[]),m&&(Y(!0),W(0),bt("Room is in fallback mode"))}),V.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),E(!0),bt("Room switched to fallback mode"),W(0),K([]),Tt([]),Object.values(P.current).forEach(m=>m.close()),P.current={},d.current={},M.current={},Object.keys(q.current).forEach(m=>clearTimeout(q.current[m])),q.current={},T.current={}}),V.on("peer-left",m=>{const{peerId:U}=m;if(P.current[U]){P.current[U].close(),delete P.current[U],delete d.current[U],delete q.current[U],Object.keys(M.current).forEach(A=>{A.startsWith(`${U}-`)&&(M.current[A]?.close(),delete M.current[A])}),Dt({...d.current}),console.log(`Peer ${U} left room`),K(A=>A.filter(k=>k.peerId!==U));let X=!1;Object.keys(G.current).forEach(A=>{G.current[A].delete(U)&&(X=!0,$a(A,G.current[A].size))}),X&&nt(A=>({...A}))}g&&Object.keys(P.current).length===0&&(Y(!1),K([]),Tt([]),D?(E(!1),bt("")):W(90))}),V.on("ice-candidate",async({code:m,candidate:U,from:X,to:A})=>{if(m!==vt){console.log(`Ignoring ICE candidate from ${X} (to=${A}), room mismatch ${m}=/=${vt}`);return}if(A!==V.id){console.log(`Ignoring ICE candidate from ${X} (to=${A})`);return}if(console.log(`Received ICE candidate from ${X}`),P.current[X])try{await P.current[X].addIceCandidate(new RTCIceCandidate(U)),console.log(`Added ICE candidate from ${X}`)}catch(k){console.error(`Error adding ICE candidate from ${X}:`,k)}else console.warn(`No peer connection found for ${X} when receiving ICE candidate`)}),V.on("error",m=>{bt(m),i(""),Y(!1),R(!1),W(90),K([]),jt(""),Tt([]),Dt({}),Object.values(P.current).forEach(U=>U.close()),P.current={},d.current={},Object.keys(q.current).forEach(U=>clearTimeout(q.current[U])),q.current={},console.log("Server error:",m),window.history.pushState({},"","/")}),V.on("files",m=>{console.log("Received files:",m),K(m)}),V.on("file",({name:m,path:U,peerId:X,size:A})=>{console.log(`Received file via socket: ${m}, uploader: ${X}`),K(k=>[...k,{name:m,path:U,peerId:X,size:A}])}),V.on("text-history",m=>{console.log(`Received text history for room ${r}:`,m),Tt(m||[])}),V.on("text",({text:m})=>{console.log(`Received text via socket for room ${r}:`,m),Tt(U=>[...U,m])}),V.on("file-list",({files:m})=>{K(U=>{const X=m.filter(A=>!U.some(k=>k.name===A.name&&k.peerId===A.peerId));return X.forEach(A=>{A.thumbnail&&!xt.current[`${A.name}_thumbnail`]?(console.log(`Requesting thumbnail for ${A.name} from ${A.peerId}`),Ie(A)):A.thumbnail&&console.log(`Thumbnail for ${A.name} already cached, skipping request`)}),console.log("Received file-list from server:",m),[...U,...X]})}),()=>{V.off("peer-joined"),V.off("offer"),V.off("answer"),V.off("room-status"),V.off("fallback"),V.off("peer-left"),V.off("ice-candidate"),V.off("error"),V.off("files"),V.off("file"),V.off("text"),V.off("text-history"),V.off("file-list")}),[r,g,D]),ut.useEffect(()=>{if(g&&C>0&&!B&&!D){const m=setInterval(()=>{W(U=>U<=1?(i(""),R(!1),V.emit("leave",r),bt("No one joined the room"),0):U-1)},1e3);return()=>clearInterval(m)}},[g,C,B,D,r]),ut.useEffect(()=>{Ct.current=te,console.log("Updated filesRef:",Ct.current)},[te]),ut.useEffect(()=>{const m=Object.keys(P.current);ft([V.id,...m].sort())},[oe]),ut.useEffect(()=>{if(!r){const m=window.location.pathname;if(m.startsWith("/room/")){const U=m.slice(6).replace(/_/g," ");Yl(U)}}},[]);const Ie=m=>{if(m.thumbnail&&m.peerId!==V.id&&!D){const U=(J.current[m.name]||0)+1;if(U>3){console.error(`Max retries reached for thumbnail ${m.name}`);return}const X=d.current[m.peerId];X?.readyState==="open"?(J.current[m.name]=U,X.send(JSON.stringify({type:"request-thumbnail",fileName:m.name})),console.log(`Requested thumbnail for ${m.name} from ${m.peerId} via WebRTC (retry ${U})`)):(console.warn(`Data channel not ready for ${m.peerId}, retrying in 1s`),setTimeout(()=>Ie(m),1e3))}else console.error(`Cannot request thumbnail for ${m.name}:`,{isThumbnail:m.thumbnail,isLocal:m.peerId===V.id,useFallback:D,channelOpen:d.current[m.peerId]?.readyState})},gi=async(m,U,X,A)=>{if(H.current.has(U)&&(H.current.delete(U),console.log(`Cleared previous cancel for ${U}, starting new send to ${m}`)),!A||A.readyState!=="open"){console.error(`Channel not open for ${m}`);return}const k=8*1024*1024,$=4*1024*1024;A.bufferedAmountLowThreshold=$;let j;A.onbufferedamountlow=()=>{j&&(j(),j=null)};const I=()=>A.bufferedAmount<=k?Promise.resolve():new Promise(Ve=>{j=Ve});A.send(JSON.stringify({type:"file-start",name:U,size:X.size})),await I();const ct=16384;let de=0;for(console.log(`--- offset : ${de} --- file.size : ${X.size}`);de<X.size;){if(H.current.has(U)){console.log(`Canceled sending ${U} to ${m}`),A.send(JSON.stringify({type:"file-cancel",name:U}));return}const Ve=X.slice(de,de+ct);if(console.log(`--- slice.size : ${Ve.size}`),Ve.size===0)break;try{const Ze=await new Promise((Ye,$t)=>{const Gt=new FileReader;Gt.onload=le=>Ye(le.target.result),Gt.onerror=$t,Gt.readAsArrayBuffer(Ve)});if(H.current.has(U)){console.log(`Canceled sending ${U} to ${m} during read`),A.send(JSON.stringify({type:"file-cancel",name:U}));return}A.send(Ze),await I(),de+=Ze.byteLength}catch(Ze){console.error(`Error reading ${U}:`,Ze);return}}A.send(JSON.stringify({type:"file-end",name:U})),console.log(`Finished sending ${U} to ${m}`)},vi=(m,U)=>{if(!H.current.has(m)){H.current.add(m);const X=d.current[U];X&&X.readyState==="open"&&(X.send(JSON.stringify({type:"end-download",fileName:m})),X.send(JSON.stringify({type:"cancel-download",fileName:m})),console.log(`Sent end-download and cancel-download for ${m} to ${U}`)),Ut(A=>{const k=A[m]?.status==="saved",{[m]:$,...j}=A;return k?{...j,[m]:{status:"saved",progress:100,peerId:U}}:j}),w.current[U]?.fileName===m&&delete w.current[U],console.log(`Canceled download for ${m} locally`)}},Oe=m=>{K(U=>U.filter(X=>X.name!==m)),delete xt.current[m],delete xt.current[`${m}_thumbnail`],Object.values(d.current).forEach(U=>{U.readyState==="open"&&U.send(JSON.stringify({type:"remove-file",fileName:m}))}),console.log(`Deleted file ${m} and notified peers`)},$a=(m,U)=>{Object.values(d.current).forEach(X=>{X.readyState==="open"&&X.send(JSON.stringify({type:"update-count",fileName:m,count:U}))})},$n=(m,U)=>{const X=U.data;try{if(typeof X=="string"){const A=JSON.parse(X);if(A.type==="text")Tt(k=>[...k,A.text]),console.log(`Received text via WebRTC from ${m}: ${A.text}`);else if(A.type==="request-file"){const k=xt.current[A.name];if(k){const $=P.current[m];if($){Xl(m,A.name,"start");const j=`file-${A.name}`,I=$.createDataChannel(j),ct=`${m}-${A.name}`;M.current[ct]=I,I.onopen=()=>{console.log(`File channel opened for ${A.name} to ${m}`),gi(m,A.name,k,I)},I.onclose=()=>{delete M.current[ct],console.log(`File channel closed for ${A.name}`)},I.onerror=de=>{console.error(`File channel error for ${A.name}:`,de)}}else console.error(`No peer connection for ${m}`)}else console.error(`File not found: ${A.name}`)}else if(A.type==="request-thumbnail"){const k=xt.current[`${A.fileName}_thumbnail`];if(k&&d.current[m]?.readyState==="open"){const $=new FileReader;$.onload=()=>{d.current[m].send(JSON.stringify({type:"thumbnail",fileName:A.fileName})),d.current[m].send($.result),console.log(`Sent thumbnail for ${A.fileName} to ${m}`)},$.readAsArrayBuffer(k)}else console.error(`Thumbnail not found or channel closed for ${A.fileName}, peerId: ${m}, channel: ${d.current[m]?.readyState}`)}else A.type==="thumbnail"?w.current[m]={type:"thumbnail",fileName:A.fileName}:A.type==="cancel-download"?(H.current.add(A.fileName),console.log(`Received cancel request for ${A.fileName} from ${m}`),Xl(m,A.fileName,"end")):A.type==="remove-file"?(K(k=>k.filter($=>$.name!==A.fileName)),console.log(`Removed file ${A.fileName} from list`)):A.type==="update-count"?nt(k=>({...k,[A.fileName]:A.count})):A.type==="file-list"&&K(k=>{const $=A.files.filter(j=>!k.some(I=>I.name===j.name&&I.peerId===j.peerId));return $.forEach(j=>{j.thumbnail&&!xt.current[`${j.name}_thumbnail`]?(console.log(`Requesting thumbnail for ${j.name} from ${j.peerId}`),Ie(j)):j.thumbnail&&console.log(`Thumbnail for ${j.name} already cached, skipping request`)}),console.log("Received file-list from server:",A.files),[...k,...$]})}else if(X instanceof ArrayBuffer){const A=w.current[m];if(A){if(A.type==="thumbnail"){const k=new Blob([X],{type:"image/jpeg"});xt.current[`${A.fileName}_thumbnail`]=k,console.log(`Received thumbnail for ${A.fileName} from ${m}, size: ${k.size}`),K($=>$.map(j=>j.name===A.fileName&&j.peerId!==V.id?{...j,thumbnail:!0}:j)),delete w.current[m]}else if(A.type==="file"){if(H.current.has(A.fileName)){console.log(`Ignoring chunk for canceled file ${A.fileName}`);return}A.chunks.push(X);const k=A.chunks.reduce(($,j)=>$+j.byteLength,0);Ut($=>{const j=A.fileName;if(H.current.has(j))return $;if(k>A.expectedSize)return console.warn(`Received size exceeds expected for ${j}: ${k}/${A.expectedSize}`),$;const I=Math.min(100,k/A.expectedSize*100);return{...$,[j]:{...$[j],status:"downloading",progress:I,received:k}}})}}else console.warn(`Unexpected ArrayBuffer from ${m}, no current receive state`)}}catch(A){console.error(`Error processing message from ${m}:`,A)}},Xl=(m,U,X)=>{if(xt.current[U]){G.current[U]=G.current[U]||new Set,X==="start"?G.current[U].add(m):X==="end"&&G.current[U].delete(m);const A=G.current[U].size;$a(U,A)}};return Q.jsxs("div",{className:"container mx-auto left",children:[Q.jsxs(Q.Fragment,{children:[r&&Q.jsx(Q.Fragment,{children:g&&C>0&&!B&&Q.jsxs("p",{children:["Waiting for connection... ",C,"s"]})}),Q.jsx("h1",{className:"text-2xl font-bold mb-2 cursor-default",children:"Quick File Share"}),Yt&&Q.jsx("p",{className:"text-red-500 mb-2",children:Yt}),Q.jsx(x0,{code:r,isConnected:B,onCreateRoom:kn,onJoinRoom:Yl})]}),r&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("p",{className:"text-lg",children:[yt,"//",lt,"/room/",Q.jsx("strong",{children:r||"N/A"})]}),Q.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:Jn,children:g?"Close Room":"Leave Room"}),"☻",Q.jsx("button",{onClick:()=>je("link"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:c==="link"?"Copied!":"Copy Link"}),Q.jsx("button",{onClick:()=>je("code"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:c==="code"?"Copied!":"Copy Code"}),Q.jsxs("div",{className:"mb-4 fixed top-0 right-10 text-right",children:[Q.jsx("h2",{className:"text-xl font-bold text-right",children:"Connected Users:"}),Q.jsx("ul",{children:N.filter(m=>m!=null).map((m,U)=>Q.jsxs("li",{children:[V.id&&m===V.id?"(You)":""," ",m]},m||`user-${U}`))})]}),Q.jsx(N0,{textHistory:Kt,setTextHistory:Tt,dataChannels:oe,useFallback:D,socket:V,code:r}),Q.jsx(M0,{files:te,setFiles:K,dataChannels:oe,dataChannelsRef:d,useFallback:D,socket:V,code:r,socketId:V.id,localFilesRef:xt,downloadStates:ee,setDownloadStates:Ut,cancelDownload:vi,cancelRequestsRef:H,downloadCounts:rt,handleDeleteFile:Oe,SERVER_URL:td}),D&&Q.jsx("p",{className:"text-red-500",children:"Using server fallback"})]})]})}qm.createRoot(document.getElementById("root")).render(Q.jsx(ut.StrictMode,{children:Q.jsx(U0,{})}));
