(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const v of m)if(v.type==="childList")for(const A of v.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&r(A)}).observe(document,{childList:!0,subtree:!0});function c(m){const v={};return m.integrity&&(v.integrity=m.integrity),m.referrerPolicy&&(v.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?v.credentials="include":m.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function r(m){if(m.ep)return;m.ep=!0;const v=c(m);fetch(m.href,v)}})();function A0(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Jr={exports:{}},ii={};/**
 * @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 bd;function O0(){if(bd)return ii;bd=1;var o=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(r,m,v){var A=null;if(v!==void 0&&(A=""+v),m.key!==void 0&&(A=""+m.key),"key"in m){v={};for(var O in m)O!=="key"&&(v[O]=m[O])}else v=m;return m=v.ref,{$$typeof:o,type:r,key:A,ref:m!==void 0?m:null,props:v}}return ii.Fragment=u,ii.jsx=c,ii.jsxs=c,ii}var Sd;function R0(){return Sd||(Sd=1,Jr.exports=O0()),Jr.exports}var W=R0(),kr={exports:{}},ft={};/**
 * @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 Ed;function z0(){if(Ed)return ft;Ed=1;var o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),A=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),U=Symbol.iterator;function Y(p){return p===null||typeof p!="object"?null:(p=U&&p[U]||p["@@iterator"],typeof p=="function"?p:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,vt={};function J(p,N,j){this.props=p,this.context=N,this.refs=vt,this.updater=j||G}J.prototype.isReactComponent={},J.prototype.setState=function(p,N){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,N,"setState")},J.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function Dt(){}Dt.prototype=J.prototype;function it(p,N,j){this.props=p,this.context=N,this.refs=vt,this.updater=j||G}var Qt=it.prototype=new Dt;Qt.constructor=it,Z(Qt,J.prototype),Qt.isPureReactComponent=!0;var Yt=Array.isArray;function Gt(){}var I={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function rt(p,N,j){var V=j.ref;return{$$typeof:o,type:p,key:N,ref:V!==void 0?V:null,props:j}}function dt(p,N){return rt(p.type,N,p.props)}function st(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function At(p){var N={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(j){return N[j]})}var Vt=/\/+/g;function ie(p,N){return typeof p=="object"&&p!==null&&p.key!=null?At(""+p.key):N.toString(36)}function Ft(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Gt,Gt):(p.status="pending",p.then(function(N){p.status==="pending"&&(p.status="fulfilled",p.value=N)},function(N){p.status==="pending"&&(p.status="rejected",p.reason=N)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function C(p,N,j,V,et){var gt=typeof p;(gt==="undefined"||gt==="boolean")&&(p=null);var at=!1;if(p===null)at=!0;else switch(gt){case"bigint":case"string":case"number":at=!0;break;case"object":switch(p.$$typeof){case o:case u:at=!0;break;case M:return at=p._init,C(at(p._payload),N,j,V,et)}}if(at)return et=et(p),at=V===""?"."+ie(p,0):V,Yt(et)?(j="",at!=null&&(j=at.replace(Vt,"$&/")+"/"),C(et,N,j,"",function(en){return en})):et!=null&&(st(et)&&(et=dt(et,j+(et.key==null||p&&p.key===et.key?"":(""+et.key).replace(Vt,"$&/")+"/")+at)),N.push(et)),1;at=0;var Bt=V===""?".":V+":";if(Yt(p))for(var Ht=0;Ht<p.length;Ht++)V=p[Ht],gt=Bt+ie(V,Ht),at+=C(V,N,j,gt,et);else if(Ht=Y(p),typeof Ht=="function")for(p=Ht.call(p),Ht=0;!(V=p.next()).done;)V=V.value,gt=Bt+ie(V,Ht++),at+=C(V,N,j,gt,et);else if(gt==="object"){if(typeof p.then=="function")return C(Ft(p),N,j,V,et);throw N=String(p),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return at}function X(p,N,j){if(p==null)return p;var V=[],et=0;return C(p,V,"","",function(gt){return N.call(j,gt,et++)}),V}function tt(p){if(p._status===-1){var N=p._result;N=N(),N.then(function(j){(p._status===0||p._status===-1)&&(p._status=1,p._result=j)},function(j){(p._status===0||p._status===-1)&&(p._status=2,p._result=j)}),p._status===-1&&(p._status=0,p._result=N)}if(p._status===1)return p._result.default;throw p._result}var yt=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},Nt={map:X,forEach:function(p,N,j){X(p,function(){N.apply(this,arguments)},j)},count:function(p){var N=0;return X(p,function(){N++}),N},toArray:function(p){return X(p,function(N){return N})||[]},only:function(p){if(!st(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return ft.Activity=z,ft.Children=Nt,ft.Component=J,ft.Fragment=c,ft.Profiler=m,ft.PureComponent=it,ft.StrictMode=r,ft.Suspense=g,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ft.__COMPILER_RUNTIME={__proto__:null,c:function(p){return I.H.useMemoCache(p)}},ft.cache=function(p){return function(){return p.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(p,N,j){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var V=Z({},p.props),et=p.key;if(N!=null)for(gt in N.key!==void 0&&(et=""+N.key),N)!H.call(N,gt)||gt==="key"||gt==="__self"||gt==="__source"||gt==="ref"&&N.ref===void 0||(V[gt]=N[gt]);var gt=arguments.length-2;if(gt===1)V.children=j;else if(1<gt){for(var at=Array(gt),Bt=0;Bt<gt;Bt++)at[Bt]=arguments[Bt+2];V.children=at}return rt(p.type,et,V)},ft.createContext=function(p){return p={$$typeof:A,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:v,_context:p},p},ft.createElement=function(p,N,j){var V,et={},gt=null;if(N!=null)for(V in N.key!==void 0&&(gt=""+N.key),N)H.call(N,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(et[V]=N[V]);var at=arguments.length-2;if(at===1)et.children=j;else if(1<at){for(var Bt=Array(at),Ht=0;Ht<at;Ht++)Bt[Ht]=arguments[Ht+2];et.children=Bt}if(p&&p.defaultProps)for(V in at=p.defaultProps,at)et[V]===void 0&&(et[V]=at[V]);return rt(p,gt,et)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(p){return{$$typeof:O,render:p}},ft.isValidElement=st,ft.lazy=function(p){return{$$typeof:M,_payload:{_status:-1,_result:p},_init:tt}},ft.memo=function(p,N){return{$$typeof:d,type:p,compare:N===void 0?null:N}},ft.startTransition=function(p){var N=I.T,j={};I.T=j;try{var V=p(),et=I.S;et!==null&&et(j,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(Gt,yt)}catch(gt){yt(gt)}finally{N!==null&&j.types!==null&&(N.types=j.types),I.T=N}},ft.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ft.use=function(p){return I.H.use(p)},ft.useActionState=function(p,N,j){return I.H.useActionState(p,N,j)},ft.useCallback=function(p,N){return I.H.useCallback(p,N)},ft.useContext=function(p){return I.H.useContext(p)},ft.useDebugValue=function(){},ft.useDeferredValue=function(p,N){return I.H.useDeferredValue(p,N)},ft.useEffect=function(p,N){return I.H.useEffect(p,N)},ft.useEffectEvent=function(p){return I.H.useEffectEvent(p)},ft.useId=function(){return I.H.useId()},ft.useImperativeHandle=function(p,N,j){return I.H.useImperativeHandle(p,N,j)},ft.useInsertionEffect=function(p,N){return I.H.useInsertionEffect(p,N)},ft.useLayoutEffect=function(p,N){return I.H.useLayoutEffect(p,N)},ft.useMemo=function(p,N){return I.H.useMemo(p,N)},ft.useOptimistic=function(p,N){return I.H.useOptimistic(p,N)},ft.useReducer=function(p,N,j){return I.H.useReducer(p,N,j)},ft.useRef=function(p){return I.H.useRef(p)},ft.useState=function(p){return I.H.useState(p)},ft.useSyncExternalStore=function(p,N,j){return I.H.useSyncExternalStore(p,N,j)},ft.useTransition=function(){return I.H.useTransition()},ft.version="19.2.0",ft}var _d;function si(){return _d||(_d=1,kr.exports=z0()),kr.exports}var ct=si(),Wr={exports:{}},ui={},Fr={exports:{}},Ir={};/**
 * @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 Td;function C0(){return Td||(Td=1,(function(o){function u(C,X){var tt=C.length;C.push(X);t:for(;0<tt;){var yt=tt-1>>>1,Nt=C[yt];if(0<m(Nt,X))C[yt]=X,C[tt]=Nt,tt=yt;else break t}}function c(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var X=C[0],tt=C.pop();if(tt!==X){C[0]=tt;t:for(var yt=0,Nt=C.length,p=Nt>>>1;yt<p;){var N=2*(yt+1)-1,j=C[N],V=N+1,et=C[V];if(0>m(j,tt))V<Nt&&0>m(et,j)?(C[yt]=et,C[V]=tt,yt=V):(C[yt]=j,C[N]=tt,yt=N);else if(V<Nt&&0>m(et,tt))C[yt]=et,C[V]=tt,yt=V;else break t}}return X}function m(C,X){var tt=C.sortIndex-X.sortIndex;return tt!==0?tt:C.id-X.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;o.unstable_now=function(){return v.now()}}else{var A=Date,O=A.now();o.unstable_now=function(){return A.now()-O}}var g=[],d=[],M=1,z=null,U=3,Y=!1,G=!1,Z=!1,vt=!1,J=typeof setTimeout=="function"?setTimeout:null,Dt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;function Qt(C){for(var X=c(d);X!==null;){if(X.callback===null)r(d);else if(X.startTime<=C)r(d),X.sortIndex=X.expirationTime,u(g,X);else break;X=c(d)}}function Yt(C){if(Z=!1,Qt(C),!G)if(c(g)!==null)G=!0,Gt||(Gt=!0,At());else{var X=c(d);X!==null&&Ft(Yt,X.startTime-C)}}var Gt=!1,I=-1,H=5,rt=-1;function dt(){return vt?!0:!(o.unstable_now()-rt<H)}function st(){if(vt=!1,Gt){var C=o.unstable_now();rt=C;var X=!0;try{t:{G=!1,Z&&(Z=!1,Dt(I),I=-1),Y=!0;var tt=U;try{e:{for(Qt(C),z=c(g);z!==null&&!(z.expirationTime>C&&dt());){var yt=z.callback;if(typeof yt=="function"){z.callback=null,U=z.priorityLevel;var Nt=yt(z.expirationTime<=C);if(C=o.unstable_now(),typeof Nt=="function"){z.callback=Nt,Qt(C),X=!0;break e}z===c(g)&&r(g),Qt(C)}else r(g);z=c(g)}if(z!==null)X=!0;else{var p=c(d);p!==null&&Ft(Yt,p.startTime-C),X=!1}}break t}finally{z=null,U=tt,Y=!1}X=void 0}}finally{X?At():Gt=!1}}}var At;if(typeof it=="function")At=function(){it(st)};else if(typeof MessageChannel<"u"){var Vt=new MessageChannel,ie=Vt.port2;Vt.port1.onmessage=st,At=function(){ie.postMessage(null)}}else At=function(){J(st,0)};function Ft(C,X){I=J(function(){C(o.unstable_now())},X)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(C){C.callback=null},o.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<C?Math.floor(1e3/C):5},o.unstable_getCurrentPriorityLevel=function(){return U},o.unstable_next=function(C){switch(U){case 1:case 2:case 3:var X=3;break;default:X=U}var tt=U;U=X;try{return C()}finally{U=tt}},o.unstable_requestPaint=function(){vt=!0},o.unstable_runWithPriority=function(C,X){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var tt=U;U=C;try{return X()}finally{U=tt}},o.unstable_scheduleCallback=function(C,X,tt){var yt=o.unstable_now();switch(typeof tt=="object"&&tt!==null?(tt=tt.delay,tt=typeof tt=="number"&&0<tt?yt+tt:yt):tt=yt,C){case 1:var Nt=-1;break;case 2:Nt=250;break;case 5:Nt=1073741823;break;case 4:Nt=1e4;break;default:Nt=5e3}return Nt=tt+Nt,C={id:M++,callback:X,priorityLevel:C,startTime:tt,expirationTime:Nt,sortIndex:-1},tt>yt?(C.sortIndex=tt,u(d,C),c(g)===null&&C===c(d)&&(Z?(Dt(I),I=-1):Z=!0,Ft(Yt,tt-yt))):(C.sortIndex=Nt,u(g,C),G||Y||(G=!0,Gt||(Gt=!0,At()))),C},o.unstable_shouldYield=dt,o.unstable_wrapCallback=function(C){var X=U;return function(){var tt=U;U=X;try{return C.apply(this,arguments)}finally{U=tt}}}})(Ir)),Ir}var Ad;function D0(){return Ad||(Ad=1,Fr.exports=C0()),Fr.exports}var Pr={exports:{}},me={};/**
 * @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 Od;function N0(){if(Od)return me;Od=1;var o=si();function u(g){var d="https://react.dev/errors/"+g;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)d+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+g+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(g,d,M){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:z==null?null:""+z,children:g,containerInfo:d,implementation:M}}var A=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O(g,d){if(g==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(g,d){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(u(299));return v(g,d,null,M)},me.flushSync=function(g){var d=A.T,M=r.p;try{if(A.T=null,r.p=2,g)return g()}finally{A.T=d,r.p=M,r.d.f()}},me.preconnect=function(g,d){typeof g=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(g,d))},me.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},me.preinit=function(g,d){if(typeof g=="string"&&d&&typeof d.as=="string"){var M=d.as,z=O(M,d.crossOrigin),U=typeof d.integrity=="string"?d.integrity:void 0,Y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;M==="style"?r.d.S(g,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:z,integrity:U,fetchPriority:Y}):M==="script"&&r.d.X(g,{crossOrigin:z,integrity:U,fetchPriority:Y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},me.preinitModule=function(g,d){if(typeof g=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var M=O(d.as,d.crossOrigin);r.d.M(g,{crossOrigin:M,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(g)},me.preload=function(g,d){if(typeof g=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var M=d.as,z=O(M,d.crossOrigin);r.d.L(g,M,{crossOrigin:z,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},me.preloadModule=function(g,d){if(typeof g=="string")if(d){var M=O(d.as,d.crossOrigin);r.d.m(g,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:M,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(g)},me.requestFormReset=function(g){r.d.r(g)},me.unstable_batchedUpdates=function(g,d){return g(d)},me.useFormState=function(g,d,M){return A.H.useFormState(g,d,M)},me.useFormStatus=function(){return A.H.useHostTransitionStatus()},me.version="19.2.0",me}var Rd;function M0(){if(Rd)return Pr.exports;Rd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(u){console.error(u)}}return o(),Pr.exports=N0(),Pr.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 zd;function B0(){if(zd)return ui;zd=1;var o=D0(),u=si(),c=M0();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 m(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function v(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function A(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 O(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(v(t)!==t)throw Error(r(188))}function d(t){var e=t.alternate;if(!e){if(e=v(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return g(a),t;if(i===l)return g(a),e;i=i.sibling}throw Error(r(188))}if(n.return!==l.return)n=a,l=i;else{for(var s=!1,f=a.child;f;){if(f===n){s=!0,n=a,l=i;break}if(f===l){s=!0,l=a,n=i;break}f=f.sibling}if(!s){for(f=i.child;f;){if(f===n){s=!0,n=i,l=a;break}if(f===l){s=!0,l=i,n=a;break}f=f.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function M(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=M(t),e!==null)return e;t=t.sibling}return null}var z=Object.assign,U=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),vt=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),Dt=Symbol.for("react.consumer"),it=Symbol.for("react.context"),Qt=Symbol.for("react.forward_ref"),Yt=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),rt=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function At(t){return t===null||typeof t!="object"?null:(t=st&&t[st]||t["@@iterator"],typeof t=="function"?t:null)}var Vt=Symbol.for("react.client.reference");function ie(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Vt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Z:return"Fragment";case J:return"Profiler";case vt:return"StrictMode";case Yt:return"Suspense";case Gt:return"SuspenseList";case rt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case G:return"Portal";case it:return t.displayName||"Context";case Dt:return(t._context.displayName||"Context")+".Consumer";case Qt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return e=t.displayName||null,e!==null?e:ie(t.type)||"Memo";case H:e=t._payload,t=t._init;try{return ie(t(e))}catch{}}return null}var Ft=Array.isArray,C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt={pending:!1,data:null,method:null,action:null},yt=[],Nt=-1;function p(t){return{current:t}}function N(t){0>Nt||(t.current=yt[Nt],yt[Nt]=null,Nt--)}function j(t,e){Nt++,yt[Nt]=t.current,t.current=e}var V=p(null),et=p(null),gt=p(null),at=p(null);function Bt(t,e){switch(j(gt,e),j(et,t),j(V,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Gh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Gh(e),t=Xh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(V),j(V,t)}function Ht(){N(V),N(et),N(gt)}function en(t){t.memoizedState!==null&&j(at,t);var e=V.current,n=Xh(e,t.type);e!==n&&(j(et,t),j(V,n))}function yl(t){et.current===t&&(N(V),N(et)),at.current===t&&(N(at),ei._currentValue=tt)}var oa,fa;function nn(t){if(oa===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);oa=e&&e[1]||"",fa=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+oa+t+fa}var gl=!1;function vl(t,e){if(!t||gl)return"";gl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(D){var R=D}Reflect.construct(t,[],L)}else{try{L.call()}catch(D){R=D}t.call(L.prototype)}}else{try{throw Error()}catch(D){R=D}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(D){if(D&&R&&typeof D.stack=="string")return[D.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),s=i[0],f=i[1];if(s&&f){var y=s.split(`
`),T=f.split(`
`);for(a=l=0;l<y.length&&!y[l].includes("DetermineComponentFrameRoot");)l++;for(;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;if(l===y.length||a===T.length)for(l=y.length-1,a=T.length-1;1<=l&&0<=a&&y[l]!==T[a];)a--;for(;1<=l&&0<=a;l--,a--)if(y[l]!==T[a]){if(l!==1||a!==1)do if(l--,a--,0>a||y[l]!==T[a]){var x=`
`+y[l].replace(" at new "," at ");return t.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",t.displayName)),x}while(1<=l&&0<=a);break}}}finally{gl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?nn(n):""}function oi(t,e){switch(t.tag){case 26:case 27:case 5:return nn(t.type);case 16:return nn("Lazy");case 13:return t.child!==e&&e!==null?nn("Suspense Fallback"):nn("Suspense");case 19:return nn("SuspenseList");case 0:case 15:return vl(t.type,!1);case 11:return vl(t.type.render,!1);case 1:return vl(t.type,!0);case 31:return nn("Activity");default:return""}}function pl(t){try{var e="",n=null;do e+=oi(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var bl=Object.prototype.hasOwnProperty,ha=o.unstable_scheduleCallback,Sl=o.unstable_cancelCallback,qu=o.unstable_shouldYield,El=o.unstable_requestPaint,ye=o.unstable_now,_n=o.unstable_getCurrentPriorityLevel,_l=o.unstable_ImmediatePriority,Tn=o.unstable_UserBlockingPriority,Tl=o.unstable_NormalPriority,Lu=o.unstable_LowPriority,fi=o.unstable_IdlePriority,Hu=o.log,da=o.unstable_setDisableYieldValue,An=null,de=null;function Xe(t){if(typeof Hu=="function"&&da(t),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(An,t)}catch{}}var h=Math.clz32?Math.clz32:S,B=Math.log,Q=Math.LN2;function S(t){return t>>>=0,t===0?32:31-(B(t)/Q|0)|0}var q=256,ut=262144,$=4194304;function k(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ot(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,i=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var f=l&134217727;return f!==0?(l=f&~i,l!==0?a=k(l):(s&=f,s!==0?a=k(s):n||(n=f&~t,n!==0&&(a=k(n))))):(f=l&~i,f!==0?a=k(f):s!==0?a=k(s):n||(n=l&~t,n!==0&&(a=k(n)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:a}function ot(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function le(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 Rt(){var t=$;return $<<=1,($&62914560)===0&&($=4194304),t}function $e(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Me(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function hi(t,e,n,l,a,i){var s=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var f=t.entanglements,y=t.expirationTimes,T=t.hiddenUpdates;for(n=s&~n;0<n;){var x=31-h(n),L=1<<x;f[x]=0,y[x]=-1;var R=T[x];if(R!==null)for(T[x]=null,x=0;x<R.length;x++){var D=R[x];D!==null&&(D.lane&=-536870913)}n&=~L}l!==0&&Wn(t,l,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(s&~e))}function Wn(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-h(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function ma(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-h(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function di(t,e){var n=e&-e;return n=(n&42)!==0?1:ya(n),(n&(t.suspendedLanes|e))!==0?0:n}function ya(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 Fn(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function mi(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:hd(t.type))}function Rs(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var On=Math.random().toString(36).slice(2),re="__reactFiber$"+On,ve="__reactProps$"+On,Al="__reactContainer$"+On,ju="__reactEvents$"+On,dm="__reactListeners$"+On,mm="__reactHandles$"+On,zs="__reactResources$"+On,ga="__reactMarker$"+On;function Yu(t){delete t[re],delete t[ve],delete t[ju],delete t[dm],delete t[mm]}function Ol(t){var e=t[re];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Al]||n[re]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wh(t);t!==null;){if(n=t[re])return n;t=Wh(t)}return e}t=n,n=t.parentNode}return null}function Rl(t){if(t=t[re]||t[Al]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function va(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function zl(t){var e=t[zs];return e||(e=t[zs]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[ga]=!0}var Cs=new Set,Ds={};function In(t,e){Cl(t,e),Cl(t+"Capture",e)}function Cl(t,e){for(Ds[t]=e,t=0;t<e.length;t++)Cs.add(e[t])}var ym=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]*$"),Ns={},Ms={};function gm(t){return bl.call(Ms,t)?!0:bl.call(Ns,t)?!1:ym.test(t)?Ms[t]=!0:(Ns[t]=!0,!1)}function yi(t,e,n){if(gm(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function gi(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function ln(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Bs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function vm(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Qu(t){if(!t._valueTracker){var e=Bs(t)?"checked":"value";t._valueTracker=vm(t,e,""+t[e])}}function xs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Bs(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function vi(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 pm=/[\n"\\]/g;function xe(t){return t.replace(pm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Gu(t,e,n,l,a,i,s,f){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Be(e)):t.value!==""+Be(e)&&(t.value=""+Be(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?Xu(t,s,Be(e)):n!=null?Xu(t,s,Be(n)):l!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+Be(f):t.removeAttribute("name")}function Us(t,e,n,l,a,i,s,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Qu(t);return}n=n!=null?""+Be(n):"",e=e!=null?""+Be(e):n,f||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=f?t.checked:!!l,t.defaultChecked=!!l,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),Qu(t)}function Xu(t,e,n){e==="number"&&vi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Dl(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Be(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function ws(t,e,n){if(e!=null&&(e=""+Be(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Be(n):""}function qs(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(r(92));if(Ft(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Be(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Qu(t)}function Nl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var bm=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 Ls(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||bm.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Hs(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&Ls(t,a,l)}else for(var i in e)e.hasOwnProperty(i)&&Ls(t,i,e[i])}function $u(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 Sm=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"]]),Em=/^[\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 pi(t){return Em.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function an(){}var Vu=null;function Zu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ml=null,Bl=null;function js(t){var e=Rl(t);if(e&&(t=e.stateNode)){var n=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(Gu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+xe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[ve]||null;if(!a)throw Error(r(90));Gu(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&xs(l)}break t;case"textarea":ws(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Dl(t,!!n.multiple,e,!1)}}}var Ku=!1;function Ys(t,e,n){if(Ku)return t(e,n);Ku=!0;try{var l=t(e);return l}finally{if(Ku=!1,(Ml!==null||Bl!==null)&&(iu(),Ml&&(e=Ml,t=Bl,Bl=Ml=null,js(e),t)))for(e=0;e<t.length;e++)js(t[e])}}function pa(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ve]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ju=!1;if(un)try{var ba={};Object.defineProperty(ba,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",ba,ba),window.removeEventListener("test",ba,ba)}catch{Ju=!1}var Rn=null,ku=null,bi=null;function Qs(){if(bi)return bi;var t,e=ku,n=e.length,l,a="value"in Rn?Rn.value:Rn.textContent,i=a.length;for(t=0;t<n&&e[t]===a[t];t++);var s=n-t;for(l=1;l<=s&&e[n-l]===a[i-l];l++);return bi=a.slice(t,1<l?1-l:void 0)}function Si(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 Ei(){return!0}function Gs(){return!1}function pe(t){function e(n,l,a,i,s){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(n=t[f],this[f]=n?n(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ei:Gs,this.isPropagationStopped=Gs,this}return z(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),e}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=pe(Pn),Sa=z({},Pn,{view:0,detail:0}),_m=pe(Sa),Wu,Fu,Ea,Ti=z({},Sa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pu,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!==Ea&&(Ea&&t.type==="mousemove"?(Wu=t.screenX-Ea.screenX,Fu=t.screenY-Ea.screenY):Fu=Wu=0,Ea=t),Wu)},movementY:function(t){return"movementY"in t?t.movementY:Fu}}),Xs=pe(Ti),Tm=z({},Ti,{dataTransfer:0}),Am=pe(Tm),Om=z({},Sa,{relatedTarget:0}),Iu=pe(Om),Rm=z({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0}),zm=pe(Rm),Cm=z({},Pn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Dm=pe(Cm),Nm=z({},Pn,{data:0}),$s=pe(Nm),Mm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bm={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"},xm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Um(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=xm[t])?!!e[t]:!1}function Pu(){return Um}var wm=z({},Sa,{key:function(t){if(t.key){var e=Mm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Si(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Bm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pu,charCode:function(t){return t.type==="keypress"?Si(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Si(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qm=pe(wm),Lm=z({},Ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vs=pe(Lm),Hm=z({},Sa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pu}),jm=pe(Hm),Ym=z({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qm=pe(Ym),Gm=z({},Ti,{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}),Xm=pe(Gm),$m=z({},Pn,{newState:0,oldState:0}),Vm=pe($m),Zm=[9,13,27,32],tc=un&&"CompositionEvent"in window,_a=null;un&&"documentMode"in document&&(_a=document.documentMode);var Km=un&&"TextEvent"in window&&!_a,Zs=un&&(!tc||_a&&8<_a&&11>=_a),Ks=" ",Js=!1;function ks(t,e){switch(t){case"keyup":return Zm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ws(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var xl=!1;function Jm(t,e){switch(t){case"compositionend":return Ws(e);case"keypress":return e.which!==32?null:(Js=!0,Ks);case"textInput":return t=e.data,t===Ks&&Js?null:t;default:return null}}function km(t,e){if(xl)return t==="compositionend"||!tc&&ks(t,e)?(t=Qs(),bi=ku=Rn=null,xl=!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 Zs&&e.locale!=="ko"?null:e.data;default:return null}}var Wm={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 Fs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Wm[t.type]:e==="textarea"}function Is(t,e,n,l){Ml?Bl?Bl.push(l):Bl=[l]:Ml=l,e=hu(e,"onChange"),0<e.length&&(n=new _i("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Ta=null,Aa=null;function Fm(t){qh(t,0)}function Ai(t){var e=va(t);if(xs(e))return t}function Ps(t,e){if(t==="change")return e}var to=!1;if(un){var ec;if(un){var nc="oninput"in document;if(!nc){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),nc=typeof eo.oninput=="function"}ec=nc}else ec=!1;to=ec&&(!document.documentMode||9<document.documentMode)}function no(){Ta&&(Ta.detachEvent("onpropertychange",lo),Aa=Ta=null)}function lo(t){if(t.propertyName==="value"&&Ai(Aa)){var e=[];Is(e,Aa,t,Zu(t)),Ys(Fm,e)}}function Im(t,e,n){t==="focusin"?(no(),Ta=e,Aa=n,Ta.attachEvent("onpropertychange",lo)):t==="focusout"&&no()}function Pm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ai(Aa)}function ty(t,e){if(t==="click")return Ai(e)}function ey(t,e){if(t==="input"||t==="change")return Ai(e)}function ny(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ae=typeof Object.is=="function"?Object.is:ny;function Oa(t,e){if(Ae(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!bl.call(e,a)||!Ae(t[a],e[a]))return!1}return!0}function ao(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function io(t,e){var n=ao(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ao(n)}}function uo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?uo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function co(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=vi(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=vi(t.document)}return e}function lc(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 ly=un&&"documentMode"in document&&11>=document.documentMode,Ul=null,ac=null,Ra=null,ic=!1;function ro(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ic||Ul==null||Ul!==vi(l)||(l=Ul,"selectionStart"in l&&lc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ra&&Oa(Ra,l)||(Ra=l,l=hu(ac,"onSelect"),0<l.length&&(e=new _i("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Ul)))}function tl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var wl={animationend:tl("Animation","AnimationEnd"),animationiteration:tl("Animation","AnimationIteration"),animationstart:tl("Animation","AnimationStart"),transitionrun:tl("Transition","TransitionRun"),transitionstart:tl("Transition","TransitionStart"),transitioncancel:tl("Transition","TransitionCancel"),transitionend:tl("Transition","TransitionEnd")},uc={},so={};un&&(so=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function el(t){if(uc[t])return uc[t];if(!wl[t])return t;var e=wl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in so)return uc[t]=e[n];return t}var oo=el("animationend"),fo=el("animationiteration"),ho=el("animationstart"),ay=el("transitionrun"),iy=el("transitionstart"),uy=el("transitioncancel"),mo=el("transitionend"),yo=new Map,cc="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(" ");cc.push("scrollEnd");function Ve(t,e){yo.set(t,e),In(e,[t])}var Oi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ue=[],ql=0,rc=0;function Ri(){for(var t=ql,e=rc=ql=0;e<t;){var n=Ue[e];Ue[e++]=null;var l=Ue[e];Ue[e++]=null;var a=Ue[e];Ue[e++]=null;var i=Ue[e];if(Ue[e++]=null,l!==null&&a!==null){var s=l.pending;s===null?a.next=a:(a.next=s.next,s.next=a),l.pending=a}i!==0&&go(n,a,i)}}function zi(t,e,n,l){Ue[ql++]=t,Ue[ql++]=e,Ue[ql++]=n,Ue[ql++]=l,rc|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function sc(t,e,n,l){return zi(t,e,n,l),Ci(t)}function nl(t,e){return zi(t,null,null,e),Ci(t)}function go(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,i=t.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-h(n),t=i.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),i):null}function Ci(t){if(50<Ja)throw Ja=0,pr=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ll={};function cy(t,e,n,l){this.tag=t,this.key=n,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(t,e,n,l){return new cy(t,e,n,l)}function oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cn(t,e){var n=t.alternate;return n===null?(n=Oe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function vo(t,e){t.flags&=65011714;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Di(t,e,n,l,a,i){var s=0;if(l=t,typeof t=="function")oc(t)&&(s=1);else if(typeof t=="string")s=h0(t,n,V.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case rt:return t=Oe(31,n,e,a),t.elementType=rt,t.lanes=i,t;case Z:return ll(n.children,a,i,e);case vt:s=8,a|=24;break;case J:return t=Oe(12,n,e,a|2),t.elementType=J,t.lanes=i,t;case Yt:return t=Oe(13,n,e,a),t.elementType=Yt,t.lanes=i,t;case Gt:return t=Oe(19,n,e,a),t.elementType=Gt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case it:s=10;break t;case Dt:s=9;break t;case Qt:s=11;break t;case I:s=14;break t;case H:s=16,l=null;break t}s=29,n=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Oe(s,n,e,a),e.elementType=t,e.type=l,e.lanes=i,e}function ll(t,e,n,l){return t=Oe(7,t,l,e),t.lanes=n,t}function fc(t,e,n){return t=Oe(6,t,null,e),t.lanes=n,t}function po(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function hc(t,e,n){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var bo=new WeakMap;function we(t,e){if(typeof t=="object"&&t!==null){var n=bo.get(t);return n!==void 0?n:(e={value:t,source:e,stack:pl(e)},bo.set(t,e),e)}return{value:t,source:e,stack:pl(e)}}var Hl=[],jl=0,Ni=null,za=0,qe=[],Le=0,zn=null,ke=1,We="";function rn(t,e){Hl[jl++]=za,Hl[jl++]=Ni,Ni=t,za=e}function So(t,e,n){qe[Le++]=ke,qe[Le++]=We,qe[Le++]=zn,zn=t;var l=ke;t=We;var a=32-h(l)-1;l&=~(1<<a),n+=1;var i=32-h(e)+a;if(30<i){var s=a-a%5;i=(l&(1<<s)-1).toString(32),l>>=s,a-=s,ke=1<<32-h(e)+a|n<<a|l,We=i+t}else ke=1<<i|n<<a|l,We=t}function dc(t){t.return!==null&&(rn(t,1),So(t,1,0))}function mc(t){for(;t===Ni;)Ni=Hl[--jl],Hl[jl]=null,za=Hl[--jl],Hl[jl]=null;for(;t===zn;)zn=qe[--Le],qe[Le]=null,We=qe[--Le],qe[Le]=null,ke=qe[--Le],qe[Le]=null}function Eo(t,e){qe[Le++]=ke,qe[Le++]=We,qe[Le++]=zn,ke=e.id,We=e.overflow,zn=t}var se=null,Xt=null,_t=!1,Cn=null,He=!1,yc=Error(r(519));function Dn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ca(we(e,t)),yc}function _o(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[re]=t,e[ve]=l,n){case"dialog":bt("cancel",e),bt("close",e);break;case"iframe":case"object":case"embed":bt("load",e);break;case"video":case"audio":for(n=0;n<Wa.length;n++)bt(Wa[n],e);break;case"source":bt("error",e);break;case"img":case"image":case"link":bt("error",e),bt("load",e);break;case"details":bt("toggle",e);break;case"input":bt("invalid",e),Us(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":bt("invalid",e);break;case"textarea":bt("invalid",e),qs(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Yh(e.textContent,n)?(l.popover!=null&&(bt("beforetoggle",e),bt("toggle",e)),l.onScroll!=null&&bt("scroll",e),l.onScrollEnd!=null&&bt("scrollend",e),l.onClick!=null&&(e.onclick=an),e=!0):e=!1,e||Dn(t,!0)}function To(t){for(se=t.return;se;)switch(se.tag){case 5:case 31:case 13:He=!1;return;case 27:case 3:He=!0;return;default:se=se.return}}function Yl(t){if(t!==se)return!1;if(!_t)return To(t),_t=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||xr(t.type,t.memoizedProps)),n=!n),n&&Xt&&Dn(t),To(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Xt=kh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Xt=kh(t)}else e===27?(e=Xt,Xn(t.type)?(t=Hr,Hr=null,Xt=t):Xt=e):Xt=se?Ye(t.stateNode.nextSibling):null;return!0}function al(){Xt=se=null,_t=!1}function gc(){var t=Cn;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Cn=null),t}function Ca(t){Cn===null?Cn=[t]:Cn.push(t)}var vc=p(null),il=null,sn=null;function Nn(t,e,n){j(vc,e._currentValue),e._currentValue=n}function on(t){t._currentValue=vc.current,N(vc)}function pc(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function bc(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var s=a.child;i=i.firstContext;t:for(;i!==null;){var f=i;i=a;for(var y=0;y<e.length;y++)if(f.context===e[y]){i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),pc(i.return,n,t),l||(s=null);break t}i=f.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(r(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),pc(s,n,t),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ql(t,e,n,l){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var f=a.type;Ae(a.pendingProps.value,s.value)||(t!==null?t.push(f):t=[f])}}else if(a===at.current){if(s=a.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(ei):t=[ei])}a=a.return}t!==null&&bc(e,t,n,l),e.flags|=262144}function Mi(t){for(t=t.firstContext;t!==null;){if(!Ae(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ul(t){il=t,sn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return Ao(il,t)}function Bi(t,e){return il===null&&ul(t),Ao(t,e)}function Ao(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},sn===null){if(t===null)throw Error(r(308));sn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else sn=sn.next=e;return n}var ry=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},sy=o.unstable_scheduleCallback,oy=o.unstable_NormalPriority,It={$$typeof:it,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sc(){return{controller:new ry,data:new Map,refCount:0}}function Da(t){t.refCount--,t.refCount===0&&sy(oy,function(){t.controller.abort()})}var Na=null,Ec=0,Gl=0,Xl=null;function fy(t,e){if(Na===null){var n=Na=[];Ec=0,Gl=Ar(),Xl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Ec++,e.then(Oo,Oo),e}function Oo(){if(--Ec===0&&Na!==null){Xl!==null&&(Xl.status="fulfilled");var t=Na;Na=null,Gl=0,Xl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function hy(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var Ro=C.S;C.S=function(t,e){oh=ye(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&fy(t,e),Ro!==null&&Ro(t,e)};var cl=p(null);function _c(){var t=cl.current;return t!==null?t:jt.pooledCache}function xi(t,e){e===null?j(cl,cl.current):j(cl,e.pool)}function zo(){var t=_c();return t===null?null:{parent:It._currentValue,pool:t}}var $l=Error(r(460)),Tc=Error(r(474)),Ui=Error(r(542)),wi={then:function(){}};function Co(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Do(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(an,an),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Mo(t),t;default:if(typeof e.status=="string")e.then(an,an);else{if(t=jt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Mo(t),t}throw sl=e,$l}}function rl(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(sl=n,$l):n}}var sl=null;function No(){if(sl===null)throw Error(r(459));var t=sl;return sl=null,t}function Mo(t){if(t===$l||t===Ui)throw Error(r(483))}var Vl=null,Ma=0;function qi(t){var e=Ma;return Ma+=1,Vl===null&&(Vl=[]),Do(Vl,t,e)}function Ba(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Li(t,e){throw e.$$typeof===U?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Bo(t){function e(E,b){if(t){var _=E.deletions;_===null?(E.deletions=[b],E.flags|=16):_.push(b)}}function n(E,b){if(!t)return null;for(;b!==null;)e(E,b),b=b.sibling;return null}function l(E){for(var b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function a(E,b){return E=cn(E,b),E.index=0,E.sibling=null,E}function i(E,b,_){return E.index=_,t?(_=E.alternate,_!==null?(_=_.index,_<b?(E.flags|=67108866,b):_):(E.flags|=67108866,b)):(E.flags|=1048576,b)}function s(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function f(E,b,_,w){return b===null||b.tag!==6?(b=fc(_,E.mode,w),b.return=E,b):(b=a(b,_),b.return=E,b)}function y(E,b,_,w){var nt=_.type;return nt===Z?x(E,b,_.props.children,w,_.key):b!==null&&(b.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===H&&rl(nt)===b.type)?(b=a(b,_.props),Ba(b,_),b.return=E,b):(b=Di(_.type,_.key,_.props,null,E.mode,w),Ba(b,_),b.return=E,b)}function T(E,b,_,w){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=hc(_,E.mode,w),b.return=E,b):(b=a(b,_.children||[]),b.return=E,b)}function x(E,b,_,w,nt){return b===null||b.tag!==7?(b=ll(_,E.mode,w,nt),b.return=E,b):(b=a(b,_),b.return=E,b)}function L(E,b,_){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=fc(""+b,E.mode,_),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Y:return _=Di(b.type,b.key,b.props,null,E.mode,_),Ba(_,b),_.return=E,_;case G:return b=hc(b,E.mode,_),b.return=E,b;case H:return b=rl(b),L(E,b,_)}if(Ft(b)||At(b))return b=ll(b,E.mode,_,null),b.return=E,b;if(typeof b.then=="function")return L(E,qi(b),_);if(b.$$typeof===it)return L(E,Bi(E,b),_);Li(E,b)}return null}function R(E,b,_,w){var nt=b!==null?b.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return nt!==null?null:f(E,b,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Y:return _.key===nt?y(E,b,_,w):null;case G:return _.key===nt?T(E,b,_,w):null;case H:return _=rl(_),R(E,b,_,w)}if(Ft(_)||At(_))return nt!==null?null:x(E,b,_,w,null);if(typeof _.then=="function")return R(E,b,qi(_),w);if(_.$$typeof===it)return R(E,b,Bi(E,_),w);Li(E,_)}return null}function D(E,b,_,w,nt){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return E=E.get(_)||null,f(b,E,""+w,nt);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Y:return E=E.get(w.key===null?_:w.key)||null,y(b,E,w,nt);case G:return E=E.get(w.key===null?_:w.key)||null,T(b,E,w,nt);case H:return w=rl(w),D(E,b,_,w,nt)}if(Ft(w)||At(w))return E=E.get(_)||null,x(b,E,w,nt,null);if(typeof w.then=="function")return D(E,b,_,qi(w),nt);if(w.$$typeof===it)return D(E,b,_,Bi(b,w),nt);Li(b,w)}return null}function F(E,b,_,w){for(var nt=null,zt=null,P=b,mt=b=0,Et=null;P!==null&&mt<_.length;mt++){P.index>mt?(Et=P,P=null):Et=P.sibling;var Ct=R(E,P,_[mt],w);if(Ct===null){P===null&&(P=Et);break}t&&P&&Ct.alternate===null&&e(E,P),b=i(Ct,b,mt),zt===null?nt=Ct:zt.sibling=Ct,zt=Ct,P=Et}if(mt===_.length)return n(E,P),_t&&rn(E,mt),nt;if(P===null){for(;mt<_.length;mt++)P=L(E,_[mt],w),P!==null&&(b=i(P,b,mt),zt===null?nt=P:zt.sibling=P,zt=P);return _t&&rn(E,mt),nt}for(P=l(P);mt<_.length;mt++)Et=D(P,E,mt,_[mt],w),Et!==null&&(t&&Et.alternate!==null&&P.delete(Et.key===null?mt:Et.key),b=i(Et,b,mt),zt===null?nt=Et:zt.sibling=Et,zt=Et);return t&&P.forEach(function(Jn){return e(E,Jn)}),_t&&rn(E,mt),nt}function lt(E,b,_,w){if(_==null)throw Error(r(151));for(var nt=null,zt=null,P=b,mt=b=0,Et=null,Ct=_.next();P!==null&&!Ct.done;mt++,Ct=_.next()){P.index>mt?(Et=P,P=null):Et=P.sibling;var Jn=R(E,P,Ct.value,w);if(Jn===null){P===null&&(P=Et);break}t&&P&&Jn.alternate===null&&e(E,P),b=i(Jn,b,mt),zt===null?nt=Jn:zt.sibling=Jn,zt=Jn,P=Et}if(Ct.done)return n(E,P),_t&&rn(E,mt),nt;if(P===null){for(;!Ct.done;mt++,Ct=_.next())Ct=L(E,Ct.value,w),Ct!==null&&(b=i(Ct,b,mt),zt===null?nt=Ct:zt.sibling=Ct,zt=Ct);return _t&&rn(E,mt),nt}for(P=l(P);!Ct.done;mt++,Ct=_.next())Ct=D(P,E,mt,Ct.value,w),Ct!==null&&(t&&Ct.alternate!==null&&P.delete(Ct.key===null?mt:Ct.key),b=i(Ct,b,mt),zt===null?nt=Ct:zt.sibling=Ct,zt=Ct);return t&&P.forEach(function(T0){return e(E,T0)}),_t&&rn(E,mt),nt}function Lt(E,b,_,w){if(typeof _=="object"&&_!==null&&_.type===Z&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Y:t:{for(var nt=_.key;b!==null;){if(b.key===nt){if(nt=_.type,nt===Z){if(b.tag===7){n(E,b.sibling),w=a(b,_.props.children),w.return=E,E=w;break t}}else if(b.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===H&&rl(nt)===b.type){n(E,b.sibling),w=a(b,_.props),Ba(w,_),w.return=E,E=w;break t}n(E,b);break}else e(E,b);b=b.sibling}_.type===Z?(w=ll(_.props.children,E.mode,w,_.key),w.return=E,E=w):(w=Di(_.type,_.key,_.props,null,E.mode,w),Ba(w,_),w.return=E,E=w)}return s(E);case G:t:{for(nt=_.key;b!==null;){if(b.key===nt)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){n(E,b.sibling),w=a(b,_.children||[]),w.return=E,E=w;break t}else{n(E,b);break}else e(E,b);b=b.sibling}w=hc(_,E.mode,w),w.return=E,E=w}return s(E);case H:return _=rl(_),Lt(E,b,_,w)}if(Ft(_))return F(E,b,_,w);if(At(_)){if(nt=At(_),typeof nt!="function")throw Error(r(150));return _=nt.call(_),lt(E,b,_,w)}if(typeof _.then=="function")return Lt(E,b,qi(_),w);if(_.$$typeof===it)return Lt(E,b,Bi(E,_),w);Li(E,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,b!==null&&b.tag===6?(n(E,b.sibling),w=a(b,_),w.return=E,E=w):(n(E,b),w=fc(_,E.mode,w),w.return=E,E=w),s(E)):n(E,b)}return function(E,b,_,w){try{Ma=0;var nt=Lt(E,b,_,w);return Vl=null,nt}catch(P){if(P===$l||P===Ui)throw P;var zt=Oe(29,P,null,E.mode);return zt.lanes=w,zt.return=E,zt}finally{}}}var ol=Bo(!0),xo=Bo(!1),Mn=!1;function Ac(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Oc(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 Bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function xn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Mt&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=Ci(t),go(t,null,n),e}return zi(t,l,e,n),Ci(t)}function xa(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,ma(t,n)}}function Rc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?a=i=e:i=i.next=e}else a=i=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var zc=!1;function Ua(){if(zc){var t=Xl;if(t!==null)throw t}}function wa(t,e,n,l){zc=!1;var a=t.updateQueue;Mn=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,f=a.shared.pending;if(f!==null){a.shared.pending=null;var y=f,T=y.next;y.next=null,s===null?i=T:s.next=T,s=y;var x=t.alternate;x!==null&&(x=x.updateQueue,f=x.lastBaseUpdate,f!==s&&(f===null?x.firstBaseUpdate=T:f.next=T,x.lastBaseUpdate=y))}if(i!==null){var L=a.baseState;s=0,x=T=y=null,f=i;do{var R=f.lane&-536870913,D=R!==f.lane;if(D?(St&R)===R:(l&R)===R){R!==0&&R===Gl&&(zc=!0),x!==null&&(x=x.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var F=t,lt=f;R=e;var Lt=n;switch(lt.tag){case 1:if(F=lt.payload,typeof F=="function"){L=F.call(Lt,L,R);break t}L=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=lt.payload,R=typeof F=="function"?F.call(Lt,L,R):F,R==null)break t;L=z({},L,R);break t;case 2:Mn=!0}}R=f.callback,R!==null&&(t.flags|=64,D&&(t.flags|=8192),D=a.callbacks,D===null?a.callbacks=[R]:D.push(R))}else D={lane:R,tag:f.tag,payload:f.payload,callback:f.callback,next:null},x===null?(T=x=D,y=L):x=x.next=D,s|=R;if(f=f.next,f===null){if(f=a.shared.pending,f===null)break;D=f,f=D.next,D.next=null,a.lastBaseUpdate=D,a.shared.pending=null}}while(!0);x===null&&(y=L),a.baseState=y,a.firstBaseUpdate=T,a.lastBaseUpdate=x,i===null&&(a.shared.lanes=0),Hn|=s,t.lanes=s,t.memoizedState=L}}function Uo(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function wo(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Uo(n[t],e)}var Zl=p(null),Hi=p(0);function qo(t,e){t=bn,j(Hi,t),j(Zl,e),bn=t|e.baseLanes}function Cc(){j(Hi,bn),j(Zl,Zl.current)}function Dc(){bn=Hi.current,N(Zl),N(Hi)}var Re=p(null),je=null;function Un(t){var e=t.alternate;j(kt,kt.current&1),j(Re,t),je===null&&(e===null||Zl.current!==null||e.memoizedState!==null)&&(je=t)}function Nc(t){j(kt,kt.current),j(Re,t),je===null&&(je=t)}function Lo(t){t.tag===22?(j(kt,kt.current),j(Re,t),je===null&&(je=t)):wn()}function wn(){j(kt,kt.current),j(Re,Re.current)}function ze(t){N(Re),je===t&&(je=null),N(kt)}var kt=p(0);function ji(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||qr(n)||Lr(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fn=0,ht=null,wt=null,Pt=null,Yi=!1,Kl=!1,fl=!1,Qi=0,qa=0,Jl=null,dy=0;function Kt(){throw Error(r(321))}function Mc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ae(t[n],e[n]))return!1;return!0}function Bc(t,e,n,l,a,i){return fn=i,ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,C.H=t===null||t.memoizedState===null?Ef:Kc,fl=!1,i=n(l,a),fl=!1,Kl&&(i=jo(e,n,l,a)),Ho(t),i}function Ho(t){C.H=ja;var e=wt!==null&&wt.next!==null;if(fn=0,Pt=wt=ht=null,Yi=!1,qa=0,Jl=null,e)throw Error(r(300));t===null||te||(t=t.dependencies,t!==null&&Mi(t)&&(te=!0))}function jo(t,e,n,l){ht=t;var a=0;do{if(Kl&&(Jl=null),qa=0,Kl=!1,25<=a)throw Error(r(301));if(a+=1,Pt=wt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}C.H=_f,i=e(n,l)}while(Kl);return i}function my(){var t=C.H,e=t.useState()[0];return e=typeof e.then=="function"?La(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(ht.flags|=1024),e}function xc(){var t=Qi!==0;return Qi=0,t}function Uc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function wc(t){if(Yi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Yi=!1}fn=0,Pt=wt=ht=null,Kl=!1,qa=Qi=0,Jl=null}function ge(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?ht.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Wt(){if(wt===null){var t=ht.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=Pt===null?ht.memoizedState:Pt.next;if(e!==null)Pt=e,wt=t;else{if(t===null)throw ht.alternate===null?Error(r(467)):Error(r(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Pt===null?ht.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function La(t){var e=qa;return qa+=1,Jl===null&&(Jl=[]),t=Do(Jl,t,e),e=ht,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,C.H=e===null||e.memoizedState===null?Ef:Kc),t}function Xi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return La(t);if(t.$$typeof===it)return oe(t)}throw Error(r(438,String(t)))}function qc(t){var e=null,n=ht.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ht.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Gi(),ht.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=dt;return e.index++,n}function hn(t,e){return typeof e=="function"?e(t):e}function $i(t){var e=Wt();return Lc(e,wt,t)}function Lc(t,e,n){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var a=t.baseQueue,i=l.pending;if(i!==null){if(a!==null){var s=a.next;a.next=i.next,i.next=s}e.baseQueue=a=i,l.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var f=s=null,y=null,T=e,x=!1;do{var L=T.lane&-536870913;if(L!==T.lane?(St&L)===L:(fn&L)===L){var R=T.revertLane;if(R===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),L===Gl&&(x=!0);else if((fn&R)===R){T=T.next,R===Gl&&(x=!0);continue}else L={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(f=y=L,s=i):y=y.next=L,ht.lanes|=R,Hn|=R;L=T.action,fl&&n(i,L),i=T.hasEagerState?T.eagerState:n(i,L)}else R={lane:L,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(f=y=R,s=i):y=y.next=R,ht.lanes|=L,Hn|=L;T=T.next}while(T!==null&&T!==e);if(y===null?s=i:y.next=f,!Ae(i,t.memoizedState)&&(te=!0,x&&(n=Xl,n!==null)))throw n;t.memoizedState=i,t.baseState=s,t.baseQueue=y,l.lastRenderedState=i}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Hc(t){var e=Wt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,i=e.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do i=t(i,s.action),s=s.next;while(s!==a);Ae(i,e.memoizedState)||(te=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,l]}function Yo(t,e,n){var l=ht,a=Wt(),i=_t;if(i){if(n===void 0)throw Error(r(407));n=n()}else n=e();var s=!Ae((wt||a).memoizedState,n);if(s&&(a.memoizedState=n,te=!0),a=a.queue,Qc(Xo.bind(null,l,a,t),[t]),a.getSnapshot!==e||s||Pt!==null&&Pt.memoizedState.tag&1){if(l.flags|=2048,kl(9,{destroy:void 0},Go.bind(null,l,a,n,e),null),jt===null)throw Error(r(349));i||(fn&127)!==0||Qo(l,e,n)}return n}function Qo(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ht.updateQueue,e===null?(e=Gi(),ht.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Go(t,e,n,l){e.value=n,e.getSnapshot=l,$o(e)&&Vo(t)}function Xo(t,e,n){return n(function(){$o(e)&&Vo(t)})}function $o(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ae(t,n)}catch{return!0}}function Vo(t){var e=nl(t,2);e!==null&&Te(e,t,2)}function jc(t){var e=ge();if(typeof t=="function"){var n=t;if(t=n(),fl){Xe(!0);try{n()}finally{Xe(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:t},e}function Zo(t,e,n,l){return t.baseState=n,Lc(t,wt,typeof l=="function"?l:hn)}function yy(t,e,n,l,a){if(Ki(t))throw Error(r(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};C.T!==null?n(!0):i.isTransition=!1,l(i),n=e.pending,n===null?(i.next=e.pending=i,Ko(e,i)):(i.next=n.next,e.pending=n.next=i)}}function Ko(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var i=C.T,s={};C.T=s;try{var f=n(a,l),y=C.S;y!==null&&y(s,f),Jo(t,e,f)}catch(T){Yc(t,e,T)}finally{i!==null&&s.types!==null&&(i.types=s.types),C.T=i}}else try{i=n(a,l),Jo(t,e,i)}catch(T){Yc(t,e,T)}}function Jo(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ko(t,e,l)},function(l){return Yc(t,e,l)}):ko(t,e,n)}function ko(t,e,n){e.status="fulfilled",e.value=n,Wo(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Ko(t,n)))}function Yc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Wo(e),e=e.next;while(e!==l)}t.action=null}function Wo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Fo(t,e){return e}function Io(t,e){if(_t){var n=jt.formState;if(n!==null){t:{var l=ht;if(_t){if(Xt){e:{for(var a=Xt,i=He;a.nodeType!==8;){if(!i){a=null;break e}if(a=Ye(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Xt=Ye(a.nextSibling),l=a.data==="F!";break t}}Dn(l)}l=!1}l&&(e=n[0])}}return n=ge(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:e},n.queue=l,n=pf.bind(null,ht,l),l.dispatch=n,l=jc(!1),i=Zc.bind(null,ht,!1,l.queue),l=ge(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=yy.bind(null,ht,a,i,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Po(t){var e=Wt();return tf(e,wt,t)}function tf(t,e,n){if(e=Lc(t,e,Fo)[0],t=$i(hn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=La(e)}catch(s){throw s===$l?Ui:s}else l=e;e=Wt();var a=e.queue,i=a.dispatch;return n!==e.memoizedState&&(ht.flags|=2048,kl(9,{destroy:void 0},gy.bind(null,a,n),null)),[l,i,t]}function gy(t,e){t.action=e}function ef(t){var e=Wt(),n=wt;if(n!==null)return tf(e,n,t);Wt(),e=e.memoizedState,n=Wt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function kl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ht.updateQueue,e===null&&(e=Gi(),ht.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function nf(){return Wt().memoizedState}function Vi(t,e,n,l){var a=ge();ht.flags|=t,a.memoizedState=kl(1|e,{destroy:void 0},n,l===void 0?null:l)}function Zi(t,e,n,l){var a=Wt();l=l===void 0?null:l;var i=a.memoizedState.inst;wt!==null&&l!==null&&Mc(l,wt.memoizedState.deps)?a.memoizedState=kl(e,i,n,l):(ht.flags|=t,a.memoizedState=kl(1|e,i,n,l))}function lf(t,e){Vi(8390656,8,t,e)}function Qc(t,e){Zi(2048,8,t,e)}function vy(t){ht.flags|=4;var e=ht.updateQueue;if(e===null)e=Gi(),ht.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function af(t){var e=Wt().memoizedState;return vy({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function uf(t,e){return Zi(4,2,t,e)}function cf(t,e){return Zi(4,4,t,e)}function rf(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function sf(t,e,n){n=n!=null?n.concat([t]):null,Zi(4,4,rf.bind(null,e,t),n)}function Gc(){}function of(t,e){var n=Wt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Mc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function ff(t,e){var n=Wt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Mc(e,l[1]))return l[0];if(l=t(),fl){Xe(!0);try{t()}finally{Xe(!1)}}return n.memoizedState=[l,e],l}function Xc(t,e,n){return n===void 0||(fn&1073741824)!==0&&(St&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=hh(),ht.lanes|=t,Hn|=t,n)}function hf(t,e,n,l){return Ae(n,e)?n:Zl.current!==null?(t=Xc(t,n,l),Ae(t,e)||(te=!0),t):(fn&42)===0||(fn&1073741824)!==0&&(St&261930)===0?(te=!0,t.memoizedState=n):(t=hh(),ht.lanes|=t,Hn|=t,e)}function df(t,e,n,l,a){var i=X.p;X.p=i!==0&&8>i?i:8;var s=C.T,f={};C.T=f,Zc(t,!1,e,n);try{var y=a(),T=C.S;if(T!==null&&T(f,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var x=hy(y,l);Ha(t,e,x,Ne(t))}else Ha(t,e,l,Ne(t))}catch(L){Ha(t,e,{then:function(){},status:"rejected",reason:L},Ne())}finally{X.p=i,s!==null&&f.types!==null&&(s.types=f.types),C.T=s}}function py(){}function $c(t,e,n,l){if(t.tag!==5)throw Error(r(476));var a=mf(t).queue;df(t,a,e,tt,n===null?py:function(){return yf(t),n(l)})}function mf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tt,baseState:tt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:tt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function yf(t){var e=mf(t);e.next===null&&(e=t.alternate.memoizedState),Ha(t,e.next.queue,{},Ne())}function Vc(){return oe(ei)}function gf(){return Wt().memoizedState}function vf(){return Wt().memoizedState}function by(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ne();t=Bn(n);var l=xn(e,t,n);l!==null&&(Te(l,e,n),xa(l,e,n)),e={cache:Sc()},t.payload=e;return}e=e.return}}function Sy(t,e,n){var l=Ne();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ki(t)?bf(e,n):(n=sc(t,e,n,l),n!==null&&(Te(n,t,l),Sf(n,e,l)))}function pf(t,e,n){var l=Ne();Ha(t,e,n,l)}function Ha(t,e,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ki(t))bf(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,f=i(s,n);if(a.hasEagerState=!0,a.eagerState=f,Ae(f,s))return zi(t,e,a,0),jt===null&&Ri(),!1}catch{}finally{}if(n=sc(t,e,a,l),n!==null)return Te(n,t,l),Sf(n,e,l),!0}return!1}function Zc(t,e,n,l){if(l={lane:2,revertLane:Ar(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(t)){if(e)throw Error(r(479))}else e=sc(t,n,l,2),e!==null&&Te(e,t,2)}function Ki(t){var e=t.alternate;return t===ht||e!==null&&e===ht}function bf(t,e){Kl=Yi=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Sf(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,ma(t,n)}}var ja={readContext:oe,use:Xi,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useLayoutEffect:Kt,useInsertionEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useSyncExternalStore:Kt,useId:Kt,useHostTransitionStatus:Kt,useFormState:Kt,useActionState:Kt,useOptimistic:Kt,useMemoCache:Kt,useCacheRefresh:Kt};ja.useEffectEvent=Kt;var Ef={readContext:oe,use:Xi,useCallback:function(t,e){return ge().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:lf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Vi(4194308,4,rf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Vi(4194308,4,t,e)},useInsertionEffect:function(t,e){Vi(4,2,t,e)},useMemo:function(t,e){var n=ge();e=e===void 0?null:e;var l=t();if(fl){Xe(!0);try{t()}finally{Xe(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ge();if(n!==void 0){var a=n(e);if(fl){Xe(!0);try{n(e)}finally{Xe(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=Sy.bind(null,ht,t),[l.memoizedState,t]},useRef:function(t){var e=ge();return t={current:t},e.memoizedState=t},useState:function(t){t=jc(t);var e=t.queue,n=pf.bind(null,ht,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Gc,useDeferredValue:function(t,e){var n=ge();return Xc(n,t,e)},useTransition:function(){var t=jc(!1);return t=df.bind(null,ht,t.queue,!0,!1),ge().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ht,a=ge();if(_t){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),jt===null)throw Error(r(349));(St&127)!==0||Qo(l,e,n)}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,lf(Xo.bind(null,l,i,t),[t]),l.flags|=2048,kl(9,{destroy:void 0},Go.bind(null,l,i,n,e),null),n},useId:function(){var t=ge(),e=jt.identifierPrefix;if(_t){var n=We,l=ke;n=(l&~(1<<32-h(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Qi++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=dy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Vc,useFormState:Io,useActionState:Io,useOptimistic:function(t){var e=ge();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Zc.bind(null,ht,!0,n),n.dispatch=e,[t,e]},useMemoCache:qc,useCacheRefresh:function(){return ge().memoizedState=by.bind(null,ht)},useEffectEvent:function(t){var e=ge(),n={impl:t};return e.memoizedState=n,function(){if((Mt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Kc={readContext:oe,use:Xi,useCallback:of,useContext:oe,useEffect:Qc,useImperativeHandle:sf,useInsertionEffect:uf,useLayoutEffect:cf,useMemo:ff,useReducer:$i,useRef:nf,useState:function(){return $i(hn)},useDebugValue:Gc,useDeferredValue:function(t,e){var n=Wt();return hf(n,wt.memoizedState,t,e)},useTransition:function(){var t=$i(hn)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:La(t),e]},useSyncExternalStore:Yo,useId:gf,useHostTransitionStatus:Vc,useFormState:Po,useActionState:Po,useOptimistic:function(t,e){var n=Wt();return Zo(n,wt,t,e)},useMemoCache:qc,useCacheRefresh:vf};Kc.useEffectEvent=af;var _f={readContext:oe,use:Xi,useCallback:of,useContext:oe,useEffect:Qc,useImperativeHandle:sf,useInsertionEffect:uf,useLayoutEffect:cf,useMemo:ff,useReducer:Hc,useRef:nf,useState:function(){return Hc(hn)},useDebugValue:Gc,useDeferredValue:function(t,e){var n=Wt();return wt===null?Xc(n,t,e):hf(n,wt.memoizedState,t,e)},useTransition:function(){var t=Hc(hn)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:La(t),e]},useSyncExternalStore:Yo,useId:gf,useHostTransitionStatus:Vc,useFormState:ef,useActionState:ef,useOptimistic:function(t,e){var n=Wt();return wt!==null?Zo(n,wt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:qc,useCacheRefresh:vf};_f.useEffectEvent=af;function Jc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:z({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var kc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ne(),a=Bn(l);a.payload=e,n!=null&&(a.callback=n),e=xn(t,a,l),e!==null&&(Te(e,t,l),xa(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ne(),a=Bn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=xn(t,a,l),e!==null&&(Te(e,t,l),xa(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ne(),l=Bn(n);l.tag=2,e!=null&&(l.callback=e),e=xn(t,l,n),e!==null&&(Te(e,t,n),xa(e,t,n))}};function Tf(t,e,n,l,a,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,i,s):e.prototype&&e.prototype.isPureReactComponent?!Oa(n,l)||!Oa(a,i):!0}function Af(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&kc.enqueueReplaceState(e,e.state,null)}function hl(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=z({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function Of(t){Oi(t)}function Rf(t){console.error(t)}function zf(t){Oi(t)}function Ji(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Cf(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Wc(t,e,n){return n=Bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ji(t,e)},n}function Df(t){return t=Bn(t),t.tag=3,t}function Nf(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;t.payload=function(){return a(i)},t.callback=function(){Cf(e,n,l)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){Cf(e,n,l),typeof a!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var f=l.stack;this.componentDidCatch(l.value,{componentStack:f!==null?f:""})})}function Ey(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ql(e,n,a,!0),n=Re.current,n!==null){switch(n.tag){case 31:case 13:return je===null?uu():n.alternate===null&&Jt===0&&(Jt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===wi?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Er(t,l,a)),!1;case 22:return n.flags|=65536,l===wi?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Er(t,l,a)),!1}throw Error(r(435,n.tag))}return Er(t,l,a),uu(),!1}if(_t)return e=Re.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==yc&&(t=Error(r(422),{cause:l}),Ca(we(t,n)))):(l!==yc&&(e=Error(r(423),{cause:l}),Ca(we(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=we(l,n),a=Wc(t.stateNode,l,a),Rc(t,a),Jt!==4&&(Jt=2)),!1;var i=Error(r(520),{cause:l});if(i=we(i,n),Ka===null?Ka=[i]:Ka.push(i),Jt!==4&&(Jt=2),e===null)return!0;l=we(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=Wc(n.stateNode,l,t),Rc(n,t),!1;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(jn===null||!jn.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Df(a),Nf(a,t,n,l),Rc(n,a),!1}n=n.return}while(n!==null);return!1}var Fc=Error(r(461)),te=!1;function fe(t,e,n,l){e.child=t===null?xo(e,null,n,l):ol(e,t.child,n,l)}function Mf(t,e,n,l,a){n=n.render;var i=e.ref;if("ref"in l){var s={};for(var f in l)f!=="ref"&&(s[f]=l[f])}else s=l;return ul(e),l=Bc(t,e,n,s,i,a),f=xc(),t!==null&&!te?(Uc(t,e,a),dn(t,e,a)):(_t&&f&&dc(e),e.flags|=1,fe(t,e,l,a),e.child)}function Bf(t,e,n,l,a){if(t===null){var i=n.type;return typeof i=="function"&&!oc(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,xf(t,e,i,l,a)):(t=Di(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!ir(t,a)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Oa,n(s,l)&&t.ref===e.ref)return dn(t,e,a)}return e.flags|=1,t=cn(i,l),t.ref=e.ref,t.return=e,e.child=t}function xf(t,e,n,l,a){if(t!==null){var i=t.memoizedProps;if(Oa(i,l)&&t.ref===e.ref)if(te=!1,e.pendingProps=l=i,ir(t,a))(t.flags&131072)!==0&&(te=!0);else return e.lanes=t.lanes,dn(t,e,a)}return Ic(t,e,n,l,a)}function Uf(t,e,n,l){var a=l.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i}else l=0,e.child=null;return wf(t,e,i,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&xi(e,i!==null?i.cachePool:null),i!==null?qo(e,i):Cc(),Lo(e);else return l=e.lanes=536870912,wf(t,e,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(xi(e,i.cachePool),qo(e,i),wn(),e.memoizedState=null):(t!==null&&xi(e,null),Cc(),wn());return fe(t,e,a,n),e.child}function Ya(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function wf(t,e,n,l,a){var i=_c();return i=i===null?null:{parent:It._currentValue,pool:i},e.memoizedState={baseLanes:n,cachePool:i},t!==null&&xi(e,null),Cc(),Lo(e),t!==null&&Ql(t,e,l,!0),e.childLanes=a,null}function ki(t,e){return e=Fi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function qf(t,e,n){return ol(e,t.child,null,n),t=ki(e,e.pendingProps),t.flags|=2,ze(e),e.memoizedState=null,t}function _y(t,e,n){var l=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(_t){if(l.mode==="hidden")return t=ki(e,l),e.lanes=536870912,Ya(null,t);if(Nc(e),(t=Xt)?(t=Jh(t,He),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zn!==null?{id:ke,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=po(t),n.return=e,e.child=n,se=e,Xt=null)):t=null,t===null)throw Dn(e);return e.lanes=536870912,null}return ki(e,l)}var i=t.memoizedState;if(i!==null){var s=i.dehydrated;if(Nc(e),a)if(e.flags&256)e.flags&=-257,e=qf(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(te||Ql(t,e,n,!1),a=(n&t.childLanes)!==0,te||a){if(l=jt,l!==null&&(s=di(l,n),s!==0&&s!==i.retryLane))throw i.retryLane=s,nl(t,s),Te(l,t,s),Fc;uu(),e=qf(t,e,n)}else t=i.treeContext,Xt=Ye(s.nextSibling),se=e,_t=!0,Cn=null,He=!1,t!==null&&Eo(e,t),e=ki(e,l),e.flags|=4096;return e}return t=cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Wi(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Ic(t,e,n,l,a){return ul(e),n=Bc(t,e,n,l,void 0,a),l=xc(),t!==null&&!te?(Uc(t,e,a),dn(t,e,a)):(_t&&l&&dc(e),e.flags|=1,fe(t,e,n,a),e.child)}function Lf(t,e,n,l,a,i){return ul(e),e.updateQueue=null,n=jo(e,l,n,a),Ho(t),l=xc(),t!==null&&!te?(Uc(t,e,i),dn(t,e,i)):(_t&&l&&dc(e),e.flags|=1,fe(t,e,n,i),e.child)}function Hf(t,e,n,l,a){if(ul(e),e.stateNode===null){var i=Ll,s=n.contextType;typeof s=="object"&&s!==null&&(i=oe(s)),i=new n(l,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=kc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=l,i.state=e.memoizedState,i.refs={},Ac(e),s=n.contextType,i.context=typeof s=="object"&&s!==null?oe(s):Ll,i.state=e.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Jc(e,n,s,l),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&kc.enqueueReplaceState(i,i.state,null),wa(e,l,i,a),Ua(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){i=e.stateNode;var f=e.memoizedProps,y=hl(n,f);i.props=y;var T=i.context,x=n.contextType;s=Ll,typeof x=="object"&&x!==null&&(s=oe(x));var L=n.getDerivedStateFromProps;x=typeof L=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,x||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||T!==s)&&Af(e,i,l,s),Mn=!1;var R=e.memoizedState;i.state=R,wa(e,l,i,a),Ua(),T=e.memoizedState,f||R!==T||Mn?(typeof L=="function"&&(Jc(e,n,L,l),T=e.memoizedState),(y=Mn||Tf(e,n,y,l,R,T,s))?(x||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=T),i.props=l,i.state=T,i.context=s,l=y):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{i=e.stateNode,Oc(t,e),s=e.memoizedProps,x=hl(n,s),i.props=x,L=e.pendingProps,R=i.context,T=n.contextType,y=Ll,typeof T=="object"&&T!==null&&(y=oe(T)),f=n.getDerivedStateFromProps,(T=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==L||R!==y)&&Af(e,i,l,y),Mn=!1,R=e.memoizedState,i.state=R,wa(e,l,i,a),Ua();var D=e.memoizedState;s!==L||R!==D||Mn||t!==null&&t.dependencies!==null&&Mi(t.dependencies)?(typeof f=="function"&&(Jc(e,n,f,l),D=e.memoizedState),(x=Mn||Tf(e,n,x,l,R,D,y)||t!==null&&t.dependencies!==null&&Mi(t.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,D,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,D,y)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=D),i.props=l,i.state=D,i.context=y,l=x):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),l=!1)}return i=l,Wi(t,e),l=(e.flags&128)!==0,i||l?(i=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&l?(e.child=ol(e,t.child,null,a),e.child=ol(e,null,n,a)):fe(t,e,n,a),e.memoizedState=i.state,t=e.child):t=dn(t,e,a),t}function jf(t,e,n,l){return al(),e.flags|=256,fe(t,e,n,l),e.child}var Pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tr(t){return{baseLanes:t,cachePool:zo()}}function er(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=De),t}function Yf(t,e,n){var l=e.pendingProps,a=!1,i=(e.flags&128)!==0,s;if((s=i)||(s=t!==null&&t.memoizedState===null?!1:(kt.current&2)!==0),s&&(a=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(_t){if(a?Un(e):wn(),(t=Xt)?(t=Jh(t,He),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zn!==null?{id:ke,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=po(t),n.return=e,e.child=n,se=e,Xt=null)):t=null,t===null)throw Dn(e);return Lr(t)?e.lanes=32:e.lanes=536870912,null}var f=l.children;return l=l.fallback,a?(wn(),a=e.mode,f=Fi({mode:"hidden",children:f},a),l=ll(l,a,n,null),f.return=e,l.return=e,f.sibling=l,e.child=f,l=e.child,l.memoizedState=tr(n),l.childLanes=er(t,s,n),e.memoizedState=Pc,Ya(null,l)):(Un(e),nr(e,f))}var y=t.memoizedState;if(y!==null&&(f=y.dehydrated,f!==null)){if(i)e.flags&256?(Un(e),e.flags&=-257,e=lr(t,e,n)):e.memoizedState!==null?(wn(),e.child=t.child,e.flags|=128,e=null):(wn(),f=l.fallback,a=e.mode,l=Fi({mode:"visible",children:l.children},a),f=ll(f,a,n,null),f.flags|=2,l.return=e,f.return=e,l.sibling=f,e.child=l,ol(e,t.child,null,n),l=e.child,l.memoizedState=tr(n),l.childLanes=er(t,s,n),e.memoizedState=Pc,e=Ya(null,l));else if(Un(e),Lr(f)){if(s=f.nextSibling&&f.nextSibling.dataset,s)var T=s.dgst;s=T,l=Error(r(419)),l.stack="",l.digest=s,Ca({value:l,source:null,stack:null}),e=lr(t,e,n)}else if(te||Ql(t,e,n,!1),s=(n&t.childLanes)!==0,te||s){if(s=jt,s!==null&&(l=di(s,n),l!==0&&l!==y.retryLane))throw y.retryLane=l,nl(t,l),Te(s,t,l),Fc;qr(f)||uu(),e=lr(t,e,n)}else qr(f)?(e.flags|=192,e.child=t.child,e=null):(t=y.treeContext,Xt=Ye(f.nextSibling),se=e,_t=!0,Cn=null,He=!1,t!==null&&Eo(e,t),e=nr(e,l.children),e.flags|=4096);return e}return a?(wn(),f=l.fallback,a=e.mode,y=t.child,T=y.sibling,l=cn(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&65011712,T!==null?f=cn(T,f):(f=ll(f,a,n,null),f.flags|=2),f.return=e,l.return=e,l.sibling=f,e.child=l,Ya(null,l),l=e.child,f=t.child.memoizedState,f===null?f=tr(n):(a=f.cachePool,a!==null?(y=It._currentValue,a=a.parent!==y?{parent:y,pool:y}:a):a=zo(),f={baseLanes:f.baseLanes|n,cachePool:a}),l.memoizedState=f,l.childLanes=er(t,s,n),e.memoizedState=Pc,Ya(t.child,l)):(Un(e),n=t.child,t=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=n,e.memoizedState=null,n)}function nr(t,e){return e=Fi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Fi(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function lr(t,e,n){return ol(e,t.child,null,n),t=nr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Qf(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),pc(t.return,e,n)}function ar(t,e,n,l,a,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=n,s.tailMode=a,s.treeForkCount=i)}function Gf(t,e,n){var l=e.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var s=kt.current,f=(s&2)!==0;if(f?(s=s&1|2,e.flags|=128):s&=1,j(kt,s),fe(t,e,l,n),l=_t?za:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qf(t,n,e);else if(t.tag===19)Qf(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&ji(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),ar(e,!1,a,n,i,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&ji(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}ar(e,!0,n,null,i,l);break;case"together":ar(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function dn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Hn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ql(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function ir(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Mi(t)))}function Ty(t,e,n){switch(e.tag){case 3:Bt(e,e.stateNode.containerInfo),Nn(e,It,t.memoizedState.cache),al();break;case 27:case 5:en(e);break;case 4:Bt(e,e.stateNode.containerInfo);break;case 10:Nn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Nc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Un(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Yf(t,e,n):(Un(e),t=dn(t,e,n),t!==null?t.sibling:null);Un(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ql(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return Gf(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),j(kt,kt.current),l)break;return null;case 22:return e.lanes=0,Uf(t,e,n,e.pendingProps);case 24:Nn(e,It,t.memoizedState.cache)}return dn(t,e,n)}function Xf(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)te=!0;else{if(!ir(t,n)&&(e.flags&128)===0)return te=!1,Ty(t,e,n);te=(t.flags&131072)!==0}else te=!1,_t&&(e.flags&1048576)!==0&&So(e,za,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=rl(e.elementType),e.type=t,typeof t=="function")oc(t)?(l=hl(t,l),e.tag=1,e=Hf(null,e,t,l,n)):(e.tag=0,e=Ic(null,e,t,l,n));else{if(t!=null){var a=t.$$typeof;if(a===Qt){e.tag=11,e=Mf(null,e,t,l,n);break t}else if(a===I){e.tag=14,e=Bf(null,e,t,l,n);break t}}throw e=ie(t)||t,Error(r(306,e,""))}}return e;case 0:return Ic(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=hl(l,e.pendingProps),Hf(t,e,l,a,n);case 3:t:{if(Bt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var i=e.memoizedState;a=i.element,Oc(t,e),wa(e,l,null,n);var s=e.memoizedState;if(l=s.cache,Nn(e,It,l),l!==i.cache&&bc(e,[It],n,!0),Ua(),l=s.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=jf(t,e,l,n);break t}else if(l!==a){a=we(Error(r(424)),e),Ca(a),e=jf(t,e,l,n);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(Xt=Ye(t.firstChild),se=e,_t=!0,Cn=null,He=!0,n=xo(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(al(),l===a){e=dn(t,e,n);break t}fe(t,e,l,n)}e=e.child}return e;case 26:return Wi(t,e),t===null?(n=td(e.type,null,e.pendingProps,null))?e.memoizedState=n:_t||(n=e.type,t=e.pendingProps,l=du(gt.current).createElement(n),l[re]=e,l[ve]=t,he(l,n,t),ue(l),e.stateNode=l):e.memoizedState=td(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return en(e),t===null&&_t&&(l=e.stateNode=Fh(e.type,e.pendingProps,gt.current),se=e,He=!0,a=Xt,Xn(e.type)?(Hr=a,Xt=Ye(l.firstChild)):Xt=a),fe(t,e,e.pendingProps.children,n),Wi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&_t&&((a=l=Xt)&&(l=Py(l,e.type,e.pendingProps,He),l!==null?(e.stateNode=l,se=e,Xt=Ye(l.firstChild),He=!1,a=!0):a=!1),a||Dn(e)),en(e),a=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,l=i.children,xr(a,i)?l=null:s!==null&&xr(a,s)&&(e.flags|=32),e.memoizedState!==null&&(a=Bc(t,e,my,null,null,n),ei._currentValue=a),Wi(t,e),fe(t,e,l,n),e.child;case 6:return t===null&&_t&&((t=n=Xt)&&(n=t0(n,e.pendingProps,He),n!==null?(e.stateNode=n,se=e,Xt=null,t=!0):t=!1),t||Dn(e)),null;case 13:return Yf(t,e,n);case 4:return Bt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ol(e,null,l,n):fe(t,e,l,n),e.child;case 11:return Mf(t,e,e.type,e.pendingProps,n);case 7:return fe(t,e,e.pendingProps,n),e.child;case 8:return fe(t,e,e.pendingProps.children,n),e.child;case 12:return fe(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Nn(e,e.type,l.value),fe(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,ul(e),a=oe(a),l=l(a),e.flags|=1,fe(t,e,l,n),e.child;case 14:return Bf(t,e,e.type,e.pendingProps,n);case 15:return xf(t,e,e.type,e.pendingProps,n);case 19:return Gf(t,e,n);case 31:return _y(t,e,n);case 22:return Uf(t,e,n,e.pendingProps);case 24:return ul(e),l=oe(It),t===null?(a=_c(),a===null&&(a=jt,i=Sc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),e.memoizedState={parent:l,cache:a},Ac(e),Nn(e,It,a)):((t.lanes&n)!==0&&(Oc(t,e),wa(e,null,null,n),Ua()),a=t.memoizedState,i=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Nn(e,It,l)):(l=i.cache,Nn(e,It,l),l!==a.cache&&bc(e,[It],n,!0))),fe(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function mn(t){t.flags|=4}function ur(t,e,n,l,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(gh())t.flags|=8192;else throw sl=wi,Tc}else t.flags&=-16777217}function $f(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!id(e))if(gh())t.flags|=8192;else throw sl=wi,Tc}function Ii(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Rt():536870912,t.lanes|=e,Pl|=e)}function Qa(t,e){if(!_t)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function $t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function Ay(t,e,n){var l=e.pendingProps;switch(mc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(e),null;case 1:return $t(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),on(It),Ht(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Yl(e)?mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,gc())),$t(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(mn(e),i!==null?($t(e),$f(e,i)):($t(e),ur(e,a,null,l,n))):i?i!==t.memoizedState?(mn(e),$t(e),$f(e,i)):($t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),$t(e),ur(e,a,t,l,n)),null;case 27:if(yl(e),n=gt.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return $t(e),null}t=V.current,Yl(e)?_o(e):(t=Fh(a,l,n),e.stateNode=t,mn(e))}return $t(e),null;case 5:if(yl(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return $t(e),null}if(i=V.current,Yl(e))_o(e);else{var s=du(gt.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=s.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?s.createElement("select",{is:l.is}):s.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?s.createElement(a,{is:l.is}):s.createElement(a)}}i[re]=e,i[ve]=l;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=i;t:switch(he(i,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&mn(e)}}return $t(e),ur(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=gt.current,Yl(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=se,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[re]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Yh(t.nodeValue,n)),t||Dn(e,!0)}else t=du(t).createTextNode(l),t[re]=e,e.stateNode=t}return $t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Yl(e),n!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[re]=e}else al(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;$t(e),t=!1}else n=gc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(r(558))}return $t(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Yl(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(r(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[re]=e}else al(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;$t(e),a=!1}else a=gc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ii(e,e.updateQueue),$t(e),null);case 4:return Ht(),t===null&&Cr(e.stateNode.containerInfo),$t(e),null;case 10:return on(e.type),$t(e),null;case 19:if(N(kt),l=e.memoizedState,l===null)return $t(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)Qa(l,!1);else{if(Jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=ji(t),i!==null){for(e.flags|=128,Qa(l,!1),t=i.updateQueue,e.updateQueue=t,Ii(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)vo(n,t),n=n.sibling;return j(kt,kt.current&1|2),_t&&rn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ye()>lu&&(e.flags|=128,a=!0,Qa(l,!1),e.lanes=4194304)}else{if(!a)if(t=ji(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Ii(e,t),Qa(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!_t)return $t(e),null}else 2*ye()-l.renderingStartTime>lu&&n!==536870912&&(e.flags|=128,a=!0,Qa(l,!1),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ye(),t.sibling=null,n=kt.current,j(kt,a?n&1|2:n&1),_t&&rn(e,l.treeForkCount),t):($t(e),null);case 22:case 23:return ze(e),Dc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&($t(e),e.subtreeFlags&6&&(e.flags|=8192)):$t(e),n=e.updateQueue,n!==null&&Ii(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&N(cl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),on(It),$t(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Oy(t,e){switch(mc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return on(It),Ht(),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 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(r(340));al()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));al()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(kt),null;case 4:return Ht(),null;case 10:return on(e.type),null;case 22:case 23:return ze(e),Dc(),t!==null&&N(cl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return on(It),null;case 25:return null;default:return null}}function Vf(t,e){switch(mc(e),e.tag){case 3:on(It),Ht();break;case 26:case 27:case 5:yl(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:N(kt);break;case 10:on(e.type);break;case 22:case 23:ze(e),Dc(),t!==null&&N(cl);break;case 24:on(It)}}function Ga(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var i=n.create,s=n.inst;l=i(),s.destroy=l}n=n.next}while(n!==a)}}catch(f){Ut(e,e.return,f)}}function qn(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&t)===t){var s=l.inst,f=s.destroy;if(f!==void 0){s.destroy=void 0,a=e;var y=n,T=f;try{T()}catch(x){Ut(a,y,x)}}}l=l.next}while(l!==i)}}catch(x){Ut(e,e.return,x)}}function Zf(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{wo(e,n)}catch(l){Ut(t,t.return,l)}}}function Kf(t,e,n){n.props=hl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ut(t,e,l)}}function Xa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(a){Ut(t,e,a)}}function Fe(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){Ut(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ut(t,e,a)}else n.current=null}function Jf(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){Ut(t,t.return,a)}}function cr(t,e,n){try{var l=t.stateNode;Ky(l,t.type,n,e),l[ve]=e}catch(a){Ut(t,t.return,a)}}function kf(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Xn(t.type)||t.tag===4}function rr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||kf(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&&Xn(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 sr(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=an));else if(l!==4&&(l===27&&Xn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(sr(t,e,n),t=t.sibling;t!==null;)sr(t,e,n),t=t.sibling}function Pi(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Xn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Pi(t,e,n),t=t.sibling;t!==null;)Pi(t,e,n),t=t.sibling}function Wf(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);he(e,l,n),e[re]=t,e[ve]=n}catch(i){Ut(t,t.return,i)}}var yn=!1,ee=!1,or=!1,Ff=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Ry(t,e){if(t=t.containerInfo,Mr=Su,t=co(t),lc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break t}var s=0,f=-1,y=-1,T=0,x=0,L=t,R=null;e:for(;;){for(var D;L!==n||a!==0&&L.nodeType!==3||(f=s+a),L!==i||l!==0&&L.nodeType!==3||(y=s+l),L.nodeType===3&&(s+=L.nodeValue.length),(D=L.firstChild)!==null;)R=L,L=D;for(;;){if(L===t)break e;if(R===n&&++T===a&&(f=s),R===i&&++x===l&&(y=s),(D=L.nextSibling)!==null)break;L=R,R=L.parentNode}L=D}n=f===-1||y===-1?null:{start:f,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Br={focusedElem:t,selectionRange:n},Su=!1,ce=e;ce!==null;)if(e=ce,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ce=t;else for(;ce!==null;){switch(e=ce,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)a=t[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,n=e,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var F=hl(n.type,a);t=l.getSnapshotBeforeUpdate(F,i),l.__reactInternalSnapshotBeforeUpdate=t}catch(lt){Ut(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)wr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ce=t;break}ce=e.return}}function If(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:vn(t,n),l&4&&Ga(5,n);break;case 1:if(vn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(s){Ut(n,n.return,s)}else{var a=hl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){Ut(n,n.return,s)}}l&64&&Zf(n),l&512&&Xa(n,n.return);break;case 3:if(vn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{wo(t,e)}catch(s){Ut(n,n.return,s)}}break;case 27:e===null&&l&4&&Wf(n);case 26:case 5:vn(t,n),e===null&&l&4&&Jf(n),l&512&&Xa(n,n.return);break;case 12:vn(t,n);break;case 31:vn(t,n),l&4&&eh(t,n);break;case 13:vn(t,n),l&4&&nh(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=wy.bind(null,n),e0(t,n))));break;case 22:if(l=n.memoizedState!==null||yn,!l){e=e!==null&&e.memoizedState!==null||ee,a=yn;var i=ee;yn=l,(ee=e)&&!i?pn(t,n,(n.subtreeFlags&8772)!==0):vn(t,n),yn=a,ee=i}break;case 30:break;default:vn(t,n)}}function Pf(t){var e=t.alternate;e!==null&&(t.alternate=null,Pf(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Yu(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 Zt=null,be=!1;function gn(t,e,n){for(n=n.child;n!==null;)th(t,e,n),n=n.sibling}function th(t,e,n){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(An,n)}catch{}switch(n.tag){case 26:ee||Fe(n,e),gn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ee||Fe(n,e);var l=Zt,a=be;Xn(n.type)&&(Zt=n.stateNode,be=!1),gn(t,e,n),Ia(n.stateNode),Zt=l,be=a;break;case 5:ee||Fe(n,e);case 6:if(l=Zt,a=be,Zt=null,gn(t,e,n),Zt=l,be=a,Zt!==null)if(be)try{(Zt.nodeType===9?Zt.body:Zt.nodeName==="HTML"?Zt.ownerDocument.body:Zt).removeChild(n.stateNode)}catch(i){Ut(n,e,i)}else try{Zt.removeChild(n.stateNode)}catch(i){Ut(n,e,i)}break;case 18:Zt!==null&&(be?(t=Zt,Zh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ca(t)):Zh(Zt,n.stateNode));break;case 4:l=Zt,a=be,Zt=n.stateNode.containerInfo,be=!0,gn(t,e,n),Zt=l,be=a;break;case 0:case 11:case 14:case 15:qn(2,n,e),ee||qn(4,n,e),gn(t,e,n);break;case 1:ee||(Fe(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Kf(n,e,l)),gn(t,e,n);break;case 21:gn(t,e,n);break;case 22:ee=(l=ee)||n.memoizedState!==null,gn(t,e,n),ee=l;break;default:gn(t,e,n)}}function eh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ca(t)}catch(n){Ut(e,e.return,n)}}}function nh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ca(t)}catch(n){Ut(e,e.return,n)}}function zy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ff),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ff),e;default:throw Error(r(435,t.tag))}}function tu(t,e){var n=zy(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var a=qy.bind(null,t,l);l.then(a,a)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],i=t,s=e,f=s;t:for(;f!==null;){switch(f.tag){case 27:if(Xn(f.type)){Zt=f.stateNode,be=!1;break t}break;case 5:Zt=f.stateNode,be=!1;break t;case 3:case 4:Zt=f.stateNode.containerInfo,be=!0;break t}f=f.return}if(Zt===null)throw Error(r(160));th(i,s,a),Zt=null,be=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)lh(e,t),e=e.sibling}var Ze=null;function lh(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),Ee(t),l&4&&(qn(3,t,t.return),Ga(3,t),qn(5,t,t.return));break;case 1:Se(e,t),Ee(t),l&512&&(ee||n===null||Fe(n,n.return)),l&64&&yn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=Ze;if(Se(e,t),Ee(t),l&512&&(ee||n===null||Fe(n,n.return)),l&4){var i=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case"title":i=a.getElementsByTagName("title")[0],(!i||i[ga]||i[re]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),he(i,l,n),i[re]=t,ue(i),l=i;break t;case"link":var s=ld("link","href",a).get(l+(n.href||""));if(s){for(var f=0;f<s.length;f++)if(i=s[f],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(f,1);break e}}i=a.createElement(l),he(i,l,n),a.head.appendChild(i);break;case"meta":if(s=ld("meta","content",a).get(l+(n.content||""))){for(f=0;f<s.length;f++)if(i=s[f],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(f,1);break e}}i=a.createElement(l),he(i,l,n),a.head.appendChild(i);break;default:throw Error(r(468,l))}i[re]=t,ue(i),l=i}t.stateNode=l}else ad(a,t.type,t.stateNode);else t.stateNode=nd(a,l,t.memoizedProps);else i!==l?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,l===null?ad(a,t.type,t.stateNode):nd(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&cr(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),Ee(t),l&512&&(ee||n===null||Fe(n,n.return)),n!==null&&l&4&&cr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),Ee(t),l&512&&(ee||n===null||Fe(n,n.return)),t.flags&32){a=t.stateNode;try{Nl(a,"")}catch(F){Ut(t,t.return,F)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,cr(t,a,n!==null?n.memoizedProps:a)),l&1024&&(or=!0);break;case 6:if(Se(e,t),Ee(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(F){Ut(t,t.return,F)}}break;case 3:if(gu=null,a=Ze,Ze=mu(e.containerInfo),Se(e,t),Ze=a,Ee(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ca(e.containerInfo)}catch(F){Ut(t,t.return,F)}or&&(or=!1,ah(t));break;case 4:l=Ze,Ze=mu(t.stateNode.containerInfo),Se(e,t),Ee(t),Ze=l;break;case 12:Se(e,t),Ee(t);break;case 31:Se(e,t),Ee(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tu(t,l)));break;case 13:Se(e,t),Ee(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nu=ye()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tu(t,l)));break;case 22:a=t.memoizedState!==null;var y=n!==null&&n.memoizedState!==null,T=yn,x=ee;if(yn=T||a,ee=x||y,Se(e,t),ee=x,yn=T,Ee(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||y||yn||ee||dl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){y=n=e;try{if(i=y.stateNode,a)s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{f=y.stateNode;var L=y.memoizedProps.style,R=L!=null&&L.hasOwnProperty("display")?L.display:null;f.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(F){Ut(y,y.return,F)}}}else if(e.tag===6){if(n===null){y=e;try{y.stateNode.nodeValue=a?"":y.memoizedProps}catch(F){Ut(y,y.return,F)}}}else if(e.tag===18){if(n===null){y=e;try{var D=y.stateNode;a?Kh(D,!0):Kh(y.stateNode,!1)}catch(F){Ut(y,y.return,F)}}}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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,tu(t,n))));break;case 19:Se(e,t),Ee(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tu(t,l)));break;case 30:break;case 21:break;default:Se(e,t),Ee(t)}}function Ee(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(kf(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode,i=rr(t);Pi(t,i,a);break;case 5:var s=n.stateNode;n.flags&32&&(Nl(s,""),n.flags&=-33);var f=rr(t);Pi(t,f,s);break;case 3:case 4:var y=n.stateNode.containerInfo,T=rr(t);sr(t,T,y);break;default:throw Error(r(161))}}catch(x){Ut(t,t.return,x)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ah(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ah(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function vn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)If(t,e.alternate,e),e=e.sibling}function dl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:qn(4,e,e.return),dl(e);break;case 1:Fe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Kf(e,e.return,n),dl(e);break;case 27:Ia(e.stateNode);case 26:case 5:Fe(e,e.return),dl(e);break;case 22:e.memoizedState===null&&dl(e);break;case 30:dl(e);break;default:dl(e)}t=t.sibling}}function pn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,i=e,s=i.flags;switch(i.tag){case 0:case 11:case 15:pn(a,i,n),Ga(4,i);break;case 1:if(pn(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(T){Ut(l,l.return,T)}if(l=i,a=l.updateQueue,a!==null){var f=l.stateNode;try{var y=a.shared.hiddenCallbacks;if(y!==null)for(a.shared.hiddenCallbacks=null,a=0;a<y.length;a++)Uo(y[a],f)}catch(T){Ut(l,l.return,T)}}n&&s&64&&Zf(i),Xa(i,i.return);break;case 27:Wf(i);case 26:case 5:pn(a,i,n),n&&l===null&&s&4&&Jf(i),Xa(i,i.return);break;case 12:pn(a,i,n);break;case 31:pn(a,i,n),n&&s&4&&eh(a,i);break;case 13:pn(a,i,n),n&&s&4&&nh(a,i);break;case 22:i.memoizedState===null&&pn(a,i,n),Xa(i,i.return);break;case 30:break;default:pn(a,i,n)}e=e.sibling}}function fr(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Da(n))}function hr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Da(t))}function Ke(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(t,e,n,l),e=e.sibling}function ih(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Ke(t,e,n,l),a&2048&&Ga(9,e);break;case 1:Ke(t,e,n,l);break;case 3:Ke(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Da(t)));break;case 12:if(a&2048){Ke(t,e,n,l),t=e.stateNode;try{var i=e.memoizedProps,s=i.id,f=i.onPostCommit;typeof f=="function"&&f(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(y){Ut(e,e.return,y)}}else Ke(t,e,n,l);break;case 31:Ke(t,e,n,l);break;case 13:Ke(t,e,n,l);break;case 23:break;case 22:i=e.stateNode,s=e.alternate,e.memoizedState!==null?i._visibility&2?Ke(t,e,n,l):$a(t,e):i._visibility&2?Ke(t,e,n,l):(i._visibility|=2,Wl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),a&2048&&fr(s,e);break;case 24:Ke(t,e,n,l),a&2048&&hr(e.alternate,e);break;default:Ke(t,e,n,l)}}function Wl(t,e,n,l,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,s=e,f=n,y=l,T=s.flags;switch(s.tag){case 0:case 11:case 15:Wl(i,s,f,y,a),Ga(8,s);break;case 23:break;case 22:var x=s.stateNode;s.memoizedState!==null?x._visibility&2?Wl(i,s,f,y,a):$a(i,s):(x._visibility|=2,Wl(i,s,f,y,a)),a&&T&2048&&fr(s.alternate,s);break;case 24:Wl(i,s,f,y,a),a&&T&2048&&hr(s.alternate,s);break;default:Wl(i,s,f,y,a)}e=e.sibling}}function $a(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:$a(n,l),a&2048&&fr(l.alternate,l);break;case 24:$a(n,l),a&2048&&hr(l.alternate,l);break;default:$a(n,l)}e=e.sibling}}var Va=8192;function Fl(t,e,n){if(t.subtreeFlags&Va)for(t=t.child;t!==null;)uh(t,e,n),t=t.sibling}function uh(t,e,n){switch(t.tag){case 26:Fl(t,e,n),t.flags&Va&&t.memoizedState!==null&&d0(n,Ze,t.memoizedState,t.memoizedProps);break;case 5:Fl(t,e,n);break;case 3:case 4:var l=Ze;Ze=mu(t.stateNode.containerInfo),Fl(t,e,n),Ze=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Va,Va=16777216,Fl(t,e,n),Va=l):Fl(t,e,n));break;default:Fl(t,e,n)}}function ch(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 Za(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ce=l,sh(l,t)}ch(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rh(t),t=t.sibling}function rh(t){switch(t.tag){case 0:case 11:case 15:Za(t),t.flags&2048&&qn(9,t,t.return);break;case 3:Za(t);break;case 12:Za(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,eu(t)):Za(t);break;default:Za(t)}}function eu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ce=l,sh(l,t)}ch(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:qn(8,e,e.return),eu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,eu(e));break;default:eu(e)}t=t.sibling}}function sh(t,e){for(;ce!==null;){var n=ce;switch(n.tag){case 0:case 11:case 15:qn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Da(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ce=l;else t:for(n=t;ce!==null;){l=ce;var a=l.sibling,i=l.return;if(Pf(l),l===n){ce=null;break t}if(a!==null){a.return=i,ce=a;break t}ce=i}}}var Cy={getCacheForType:function(t){var e=oe(It),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return oe(It).controller.signal}},Dy=typeof WeakMap=="function"?WeakMap:Map,Mt=0,jt=null,pt=null,St=0,xt=0,Ce=null,Ln=!1,Il=!1,dr=!1,bn=0,Jt=0,Hn=0,ml=0,mr=0,De=0,Pl=0,Ka=null,_e=null,yr=!1,nu=0,oh=0,lu=1/0,au=null,jn=null,ae=0,Yn=null,ta=null,Sn=0,gr=0,vr=null,fh=null,Ja=0,pr=null;function Ne(){return(Mt&2)!==0&&St!==0?St&-St:C.T!==null?Ar():mi()}function hh(){if(De===0)if((St&536870912)===0||_t){var t=ut;ut<<=1,(ut&3932160)===0&&(ut=262144),De=t}else De=536870912;return t=Re.current,t!==null&&(t.flags|=32),De}function Te(t,e,n){(t===jt&&(xt===2||xt===9)||t.cancelPendingCommit!==null)&&(ea(t,0),Qn(t,St,De,!1)),Me(t,n),((Mt&2)===0||t!==jt)&&(t===jt&&((Mt&2)===0&&(ml|=n),Jt===4&&Qn(t,St,De,!1)),Ie(t))}function dh(t,e,n){if((Mt&6)!==0)throw Error(r(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ot(t,e),a=l?By(t,e):Sr(t,e,!0),i=l;do{if(a===0){Il&&!l&&Qn(t,e,0,!1);break}else{if(n=t.current.alternate,i&&!Ny(n)){a=Sr(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var f=t;a=Ka;var y=f.current.memoizedState.isDehydrated;if(y&&(ea(f,s).flags|=256),s=Sr(f,s,!1),s!==2){if(dr&&!y){f.errorRecoveryDisabledLanes|=i,ml|=i,a=4;break t}i=_e,_e=a,i!==null&&(_e===null?_e=i:_e.push.apply(_e,i))}a=s}if(i=!1,a!==2)continue}}if(a===1){ea(t,0),Qn(t,e,0,!0);break}t:{switch(l=t,i=a,i){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Qn(l,e,De,!Ln);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(a=nu+300-ye(),10<a)){if(Qn(l,e,De,!Ln),Ot(l,0,!0)!==0)break t;Sn=e,l.timeoutHandle=$h(mh.bind(null,l,n,_e,au,yr,e,De,ml,Pl,Ln,i,"Throttled",-0,0),a);break t}mh(l,n,_e,au,yr,e,De,ml,Pl,Ln,i,null,-0,0)}}break}while(!0);Ie(t)}function mh(t,e,n,l,a,i,s,f,y,T,x,L,R,D){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},uh(e,i,L);var F=(i&62914560)===i?nu-ye():(i&4194048)===i?oh-ye():0;if(F=m0(L,F),F!==null){Sn=i,t.cancelPendingCommit=F(_h.bind(null,t,e,i,n,l,a,s,f,y,x,L,null,R,D)),Qn(t,i,s,!T);return}}_h(t,e,i,n,l,a,s,f,y)}function Ny(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],i=a.getSnapshot;a=a.value;try{if(!Ae(i(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 Qn(t,e,n,l){e&=~mr,e&=~ml,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var i=31-h(a),s=1<<i;l[i]=-1,a&=~s}n!==0&&Wn(t,n,e)}function iu(){return(Mt&6)===0?(ka(0),!1):!0}function br(){if(pt!==null){if(xt===0)var t=pt.return;else t=pt,sn=il=null,wc(t),Vl=null,Ma=0,t=pt;for(;t!==null;)Vf(t.alternate,t),t=t.return;pt=null}}function ea(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Wy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Sn=0,br(),jt=t,pt=n=cn(t.current,null),St=e,xt=0,Ce=null,Ln=!1,Il=ot(t,e),dr=!1,Pl=De=mr=ml=Hn=Jt=0,_e=Ka=null,yr=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-h(l),i=1<<a;e|=t[a],l&=~i}return bn=e,Ri(),n}function yh(t,e){ht=null,C.H=ja,e===$l||e===Ui?(e=No(),xt=3):e===Tc?(e=No(),xt=4):xt=e===Fc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ce=e,pt===null&&(Jt=1,Ji(t,we(e,t.current)))}function gh(){var t=Re.current;return t===null?!0:(St&4194048)===St?je===null:(St&62914560)===St||(St&536870912)!==0?t===je:!1}function vh(){var t=C.H;return C.H=ja,t===null?ja:t}function ph(){var t=C.A;return C.A=Cy,t}function uu(){Jt=4,Ln||(St&4194048)!==St&&Re.current!==null||(Il=!0),(Hn&134217727)===0&&(ml&134217727)===0||jt===null||Qn(jt,St,De,!1)}function Sr(t,e,n){var l=Mt;Mt|=2;var a=vh(),i=ph();(jt!==t||St!==e)&&(au=null,ea(t,e)),e=!1;var s=Jt;t:do try{if(xt!==0&&pt!==null){var f=pt,y=Ce;switch(xt){case 8:br(),s=6;break t;case 3:case 2:case 9:case 6:Re.current===null&&(e=!0);var T=xt;if(xt=0,Ce=null,na(t,f,y,T),n&&Il){s=0;break t}break;default:T=xt,xt=0,Ce=null,na(t,f,y,T)}}My(),s=Jt;break}catch(x){yh(t,x)}while(!0);return e&&t.shellSuspendCounter++,sn=il=null,Mt=l,C.H=a,C.A=i,pt===null&&(jt=null,St=0,Ri()),s}function My(){for(;pt!==null;)bh(pt)}function By(t,e){var n=Mt;Mt|=2;var l=vh(),a=ph();jt!==t||St!==e?(au=null,lu=ye()+500,ea(t,e)):Il=ot(t,e);t:do try{if(xt!==0&&pt!==null){e=pt;var i=Ce;e:switch(xt){case 1:xt=0,Ce=null,na(t,e,i,1);break;case 2:case 9:if(Co(i)){xt=0,Ce=null,Sh(e);break}e=function(){xt!==2&&xt!==9||jt!==t||(xt=7),Ie(t)},i.then(e,e);break t;case 3:xt=7;break t;case 4:xt=5;break t;case 7:Co(i)?(xt=0,Ce=null,Sh(e)):(xt=0,Ce=null,na(t,e,i,7));break;case 5:var s=null;switch(pt.tag){case 26:s=pt.memoizedState;case 5:case 27:var f=pt;if(s?id(s):f.stateNode.complete){xt=0,Ce=null;var y=f.sibling;if(y!==null)pt=y;else{var T=f.return;T!==null?(pt=T,cu(T)):pt=null}break e}}xt=0,Ce=null,na(t,e,i,5);break;case 6:xt=0,Ce=null,na(t,e,i,6);break;case 8:br(),Jt=6;break t;default:throw Error(r(462))}}xy();break}catch(x){yh(t,x)}while(!0);return sn=il=null,C.H=l,C.A=a,Mt=n,pt!==null?0:(jt=null,St=0,Ri(),Jt)}function xy(){for(;pt!==null&&!qu();)bh(pt)}function bh(t){var e=Xf(t.alternate,t,bn);t.memoizedProps=t.pendingProps,e===null?cu(t):pt=e}function Sh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Lf(n,e,e.pendingProps,e.type,void 0,St);break;case 11:e=Lf(n,e,e.pendingProps,e.type.render,e.ref,St);break;case 5:wc(e);default:Vf(n,e),e=pt=vo(e,bn),e=Xf(n,e,bn)}t.memoizedProps=t.pendingProps,e===null?cu(t):pt=e}function na(t,e,n,l){sn=il=null,wc(e),Vl=null,Ma=0;var a=e.return;try{if(Ey(t,a,e,n,St)){Jt=1,Ji(t,we(n,t.current)),pt=null;return}}catch(i){if(a!==null)throw pt=a,i;Jt=1,Ji(t,we(n,t.current)),pt=null;return}e.flags&32768?(_t||l===1?t=!0:Il||(St&536870912)!==0?t=!1:(Ln=t=!0,(l===2||l===9||l===3||l===6)&&(l=Re.current,l!==null&&l.tag===13&&(l.flags|=16384))),Eh(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){Eh(e,Ln);return}t=e.return;var n=Ay(e.alternate,e,bn);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);Jt===0&&(Jt=5)}function Eh(t,e){do{var n=Oy(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);Jt=6,pt=null}function _h(t,e,n,l,a,i,s,f,y){t.cancelPendingCommit=null;do ru();while(ae!==0);if((Mt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(i=e.lanes|e.childLanes,i|=rc,hi(t,n,i,s,f,y),t===jt&&(pt=jt=null,St=0),ta=e,Yn=t,Sn=n,gr=i,vr=a,fh=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ly(Tl,function(){return zh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=C.T,C.T=null,a=X.p,X.p=2,s=Mt,Mt|=4;try{Ry(t,e,n)}finally{Mt=s,X.p=a,C.T=l}}ae=1,Th(),Ah(),Oh()}}function Th(){if(ae===1){ae=0;var t=Yn,e=ta,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var l=X.p;X.p=2;var a=Mt;Mt|=4;try{lh(e,t);var i=Br,s=co(t.containerInfo),f=i.focusedElem,y=i.selectionRange;if(s!==f&&f&&f.ownerDocument&&uo(f.ownerDocument.documentElement,f)){if(y!==null&&lc(f)){var T=y.start,x=y.end;if(x===void 0&&(x=T),"selectionStart"in f)f.selectionStart=T,f.selectionEnd=Math.min(x,f.value.length);else{var L=f.ownerDocument||document,R=L&&L.defaultView||window;if(R.getSelection){var D=R.getSelection(),F=f.textContent.length,lt=Math.min(y.start,F),Lt=y.end===void 0?lt:Math.min(y.end,F);!D.extend&&lt>Lt&&(s=Lt,Lt=lt,lt=s);var E=io(f,lt),b=io(f,Lt);if(E&&b&&(D.rangeCount!==1||D.anchorNode!==E.node||D.anchorOffset!==E.offset||D.focusNode!==b.node||D.focusOffset!==b.offset)){var _=L.createRange();_.setStart(E.node,E.offset),D.removeAllRanges(),lt>Lt?(D.addRange(_),D.extend(b.node,b.offset)):(_.setEnd(b.node,b.offset),D.addRange(_))}}}}for(L=[],D=f;D=D.parentNode;)D.nodeType===1&&L.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<L.length;f++){var w=L[f];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Su=!!Mr,Br=Mr=null}finally{Mt=a,X.p=l,C.T=n}}t.current=e,ae=2}}function Ah(){if(ae===2){ae=0;var t=Yn,e=ta,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=C.T,C.T=null;var l=X.p;X.p=2;var a=Mt;Mt|=4;try{If(t,e.alternate,e)}finally{Mt=a,X.p=l,C.T=n}}ae=3}}function Oh(){if(ae===4||ae===3){ae=0,El();var t=Yn,e=ta,n=Sn,l=fh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ae=5:(ae=0,ta=Yn=null,Rh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(jn=null),Fn(n),e=e.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(An,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=C.T,a=X.p,X.p=2,C.T=null;try{for(var i=t.onRecoverableError,s=0;s<l.length;s++){var f=l[s];i(f.value,{componentStack:f.stack})}}finally{C.T=e,X.p=a}}(Sn&3)!==0&&ru(),Ie(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===pr?Ja++:(Ja=0,pr=t):Ja=0,ka(0)}}function Rh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Da(e)))}function ru(){return Th(),Ah(),Oh(),zh()}function zh(){if(ae!==5)return!1;var t=Yn,e=gr;gr=0;var n=Fn(Sn),l=C.T,a=X.p;try{X.p=32>n?32:n,C.T=null,n=vr,vr=null;var i=Yn,s=Sn;if(ae=0,ta=Yn=null,Sn=0,(Mt&6)!==0)throw Error(r(331));var f=Mt;if(Mt|=4,rh(i.current),ih(i,i.current,s,n),Mt=f,ka(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(An,i)}catch{}return!0}finally{X.p=a,C.T=l,Rh(t,e)}}function Ch(t,e,n){e=we(n,e),e=Wc(t.stateNode,e,2),t=xn(t,e,2),t!==null&&(Me(t,2),Ie(t))}function Ut(t,e,n){if(t.tag===3)Ch(t,t,n);else for(;e!==null;){if(e.tag===3){Ch(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(jn===null||!jn.has(l))){t=we(n,t),n=Df(2),l=xn(e,n,2),l!==null&&(Nf(n,l,e,t),Me(l,2),Ie(l));break}}e=e.return}}function Er(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Dy;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(dr=!0,a.add(n),t=Uy.bind(null,t,e,n),e.then(t,t))}function Uy(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,jt===t&&(St&n)===n&&(Jt===4||Jt===3&&(St&62914560)===St&&300>ye()-nu?(Mt&2)===0&&ea(t,0):mr|=n,Pl===St&&(Pl=0)),Ie(t)}function Dh(t,e){e===0&&(e=Rt()),t=nl(t,e),t!==null&&(Me(t,e),Ie(t))}function wy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Dh(t,n)}function qy(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Dh(t,n)}function Ly(t,e){return ha(t,e)}var su=null,la=null,_r=!1,ou=!1,Tr=!1,Gn=0;function Ie(t){t!==la&&t.next===null&&(la===null?su=la=t:la=la.next=t),ou=!0,_r||(_r=!0,jy())}function ka(t,e){if(!Tr&&ou){Tr=!0;do for(var n=!1,l=su;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var i=0;else{var s=l.suspendedLanes,f=l.pingedLanes;i=(1<<31-h(42|t)+1)-1,i&=a&~(s&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,xh(l,i))}else i=St,i=Ot(l,l===jt?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||ot(l,i)||(n=!0,xh(l,i));l=l.next}while(n);Tr=!1}}function Hy(){Nh()}function Nh(){ou=_r=!1;var t=0;Gn!==0&&ky()&&(t=Gn);for(var e=ye(),n=null,l=su;l!==null;){var a=l.next,i=Mh(l,e);i===0?(l.next=null,n===null?su=a:n.next=a,a===null&&(la=n)):(n=l,(t!==0||(i&3)!==0)&&(ou=!0)),l=a}ae!==0&&ae!==5||ka(t),Gn!==0&&(Gn=0)}function Mh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var s=31-h(i),f=1<<s,y=a[s];y===-1?((f&n)===0||(f&l)!==0)&&(a[s]=le(f,e)):y<=e&&(t.expiredLanes|=f),i&=~f}if(e=jt,n=St,n=Ot(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(xt===2||xt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Sl(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ot(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Sl(l),Fn(n)){case 2:case 8:n=Tn;break;case 32:n=Tl;break;case 268435456:n=fi;break;default:n=Tl}return l=Bh.bind(null,t),n=ha(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Sl(l),t.callbackPriority=2,t.callbackNode=null,2}function Bh(t,e){if(ae!==0&&ae!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(ru()&&t.callbackNode!==n)return null;var l=St;return l=Ot(t,t===jt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(dh(t,l,e),Mh(t,ye()),t.callbackNode!=null&&t.callbackNode===n?Bh.bind(null,t):null)}function xh(t,e){if(ru())return null;dh(t,e,!0)}function jy(){Fy(function(){(Mt&6)!==0?ha(_l,Hy):Nh()})}function Ar(){if(Gn===0){var t=Gl;t===0&&(t=q,q<<=1,(q&261888)===0&&(q=256)),Gn=t}return Gn}function Uh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:pi(""+t)}function wh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Yy(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var i=Uh((a[ve]||null).action),s=l.submitter;s&&(e=(e=s[ve]||null)?Uh(e.formAction):s.getAttribute("formAction"),e!==null&&(i=e,s=null));var f=new _i("action","action",null,l,a);t.push({event:f,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Gn!==0){var y=s?wh(a,s):new FormData(a);$c(n,{pending:!0,data:y,method:a.method,action:i},null,y)}}else typeof i=="function"&&(f.preventDefault(),y=s?wh(a,s):new FormData(a),$c(n,{pending:!0,data:y,method:a.method,action:i},i,y))},currentTarget:a}]})}}for(var Or=0;Or<cc.length;Or++){var Rr=cc[Or],Qy=Rr.toLowerCase(),Gy=Rr[0].toUpperCase()+Rr.slice(1);Ve(Qy,"on"+Gy)}Ve(oo,"onAnimationEnd"),Ve(fo,"onAnimationIteration"),Ve(ho,"onAnimationStart"),Ve("dblclick","onDoubleClick"),Ve("focusin","onFocus"),Ve("focusout","onBlur"),Ve(ay,"onTransitionRun"),Ve(iy,"onTransitionStart"),Ve(uy,"onTransitionCancel"),Ve(mo,"onTransitionEnd"),Cl("onMouseEnter",["mouseout","mouseover"]),Cl("onMouseLeave",["mouseout","mouseover"]),Cl("onPointerEnter",["pointerout","pointerover"]),Cl("onPointerLeave",["pointerout","pointerover"]),In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),In("onBeforeInput",["compositionend","keypress","textInput","paste"]),In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wa="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(" "),Xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wa));function qh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var i=void 0;if(e)for(var s=l.length-1;0<=s;s--){var f=l[s],y=f.instance,T=f.currentTarget;if(f=f.listener,y!==i&&a.isPropagationStopped())break t;i=f,a.currentTarget=T;try{i(a)}catch(x){Oi(x)}a.currentTarget=null,i=y}else for(s=0;s<l.length;s++){if(f=l[s],y=f.instance,T=f.currentTarget,f=f.listener,y!==i&&a.isPropagationStopped())break t;i=f,a.currentTarget=T;try{i(a)}catch(x){Oi(x)}a.currentTarget=null,i=y}}}}function bt(t,e){var n=e[ju];n===void 0&&(n=e[ju]=new Set);var l=t+"__bubble";n.has(l)||(Lh(e,t,2,!1),n.add(l))}function zr(t,e,n){var l=0;e&&(l|=4),Lh(n,t,l,e)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Cr(t){if(!t[fu]){t[fu]=!0,Cs.forEach(function(n){n!=="selectionchange"&&(Xy.has(n)||zr(n,!1,t),zr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[fu]||(e[fu]=!0,zr("selectionchange",!1,e))}}function Lh(t,e,n,l){switch(hd(e)){case 2:var a=v0;break;case 8:a=p0;break;default:a=Xr}n=a.bind(null,e,n,t),a=void 0,!Ju||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function Dr(t,e,n,l,a){var i=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var s=l.tag;if(s===3||s===4){var f=l.stateNode.containerInfo;if(f===a)break;if(s===4)for(s=l.return;s!==null;){var y=s.tag;if((y===3||y===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;f!==null;){if(s=Ol(f),s===null)return;if(y=s.tag,y===5||y===6||y===26||y===27){l=i=s;continue t}f=f.parentNode}}l=l.return}Ys(function(){var T=i,x=Zu(n),L=[];t:{var R=yo.get(t);if(R!==void 0){var D=_i,F=t;switch(t){case"keypress":if(Si(n)===0)break t;case"keydown":case"keyup":D=qm;break;case"focusin":F="focus",D=Iu;break;case"focusout":F="blur",D=Iu;break;case"beforeblur":case"afterblur":D=Iu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Xs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Am;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=jm;break;case oo:case fo:case ho:D=zm;break;case mo:D=Qm;break;case"scroll":case"scrollend":D=_m;break;case"wheel":D=Xm;break;case"copy":case"cut":case"paste":D=Dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Vs;break;case"toggle":case"beforetoggle":D=Vm}var lt=(e&4)!==0,Lt=!lt&&(t==="scroll"||t==="scrollend"),E=lt?R!==null?R+"Capture":null:R;lt=[];for(var b=T,_;b!==null;){var w=b;if(_=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||_===null||E===null||(w=pa(b,E),w!=null&&lt.push(Fa(b,w,_))),Lt)break;b=b.return}0<lt.length&&(R=new D(R,F,null,n,x),L.push({event:R,listeners:lt}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",R&&n!==Vu&&(F=n.relatedTarget||n.fromElement)&&(Ol(F)||F[Al]))break t;if((D||R)&&(R=x.window===x?x:(R=x.ownerDocument)?R.defaultView||R.parentWindow:window,D?(F=n.relatedTarget||n.toElement,D=T,F=F?Ol(F):null,F!==null&&(Lt=v(F),lt=F.tag,F!==Lt||lt!==5&&lt!==27&&lt!==6)&&(F=null)):(D=null,F=T),D!==F)){if(lt=Xs,w="onMouseLeave",E="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(lt=Vs,w="onPointerLeave",E="onPointerEnter",b="pointer"),Lt=D==null?R:va(D),_=F==null?R:va(F),R=new lt(w,b+"leave",D,n,x),R.target=Lt,R.relatedTarget=_,w=null,Ol(x)===T&&(lt=new lt(E,b+"enter",F,n,x),lt.target=_,lt.relatedTarget=Lt,w=lt),Lt=w,D&&F)e:{for(lt=$y,E=D,b=F,_=0,w=E;w;w=lt(w))_++;w=0;for(var nt=b;nt;nt=lt(nt))w++;for(;0<_-w;)E=lt(E),_--;for(;0<w-_;)b=lt(b),w--;for(;_--;){if(E===b||b!==null&&E===b.alternate){lt=E;break e}E=lt(E),b=lt(b)}lt=null}else lt=null;D!==null&&Hh(L,R,D,lt,!1),F!==null&&Lt!==null&&Hh(L,Lt,F,lt,!0)}}t:{if(R=T?va(T):window,D=R.nodeName&&R.nodeName.toLowerCase(),D==="select"||D==="input"&&R.type==="file")var zt=Ps;else if(Fs(R))if(to)zt=ey;else{zt=Pm;var P=Im}else D=R.nodeName,!D||D.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?T&&$u(T.elementType)&&(zt=Ps):zt=ty;if(zt&&(zt=zt(t,T))){Is(L,zt,n,x);break t}P&&P(t,R,T),t==="focusout"&&T&&R.type==="number"&&T.memoizedProps.value!=null&&Xu(R,"number",R.value)}switch(P=T?va(T):window,t){case"focusin":(Fs(P)||P.contentEditable==="true")&&(Ul=P,ac=T,Ra=null);break;case"focusout":Ra=ac=Ul=null;break;case"mousedown":ic=!0;break;case"contextmenu":case"mouseup":case"dragend":ic=!1,ro(L,n,x);break;case"selectionchange":if(ly)break;case"keydown":case"keyup":ro(L,n,x)}var mt;if(tc)t:{switch(t){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else xl?ks(t,n)&&(Et="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Et="onCompositionStart");Et&&(Zs&&n.locale!=="ko"&&(xl||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&xl&&(mt=Qs()):(Rn=x,ku="value"in Rn?Rn.value:Rn.textContent,xl=!0)),P=hu(T,Et),0<P.length&&(Et=new $s(Et,t,null,n,x),L.push({event:Et,listeners:P}),mt?Et.data=mt:(mt=Ws(n),mt!==null&&(Et.data=mt)))),(mt=Km?Jm(t,n):km(t,n))&&(Et=hu(T,"onBeforeInput"),0<Et.length&&(P=new $s("onBeforeInput","beforeinput",null,n,x),L.push({event:P,listeners:Et}),P.data=mt)),Yy(L,t,T,n,x)}qh(L,e)})}function Fa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function hu(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=pa(t,n),a!=null&&l.unshift(Fa(t,a,i)),a=pa(t,e),a!=null&&l.push(Fa(t,a,i))),t.tag===3)return l;t=t.return}return[]}function $y(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hh(t,e,n,l,a){for(var i=e._reactName,s=[];n!==null&&n!==l;){var f=n,y=f.alternate,T=f.stateNode;if(f=f.tag,y!==null&&y===l)break;f!==5&&f!==26&&f!==27||T===null||(y=T,a?(T=pa(n,i),T!=null&&s.unshift(Fa(n,T,y))):a||(T=pa(n,i),T!=null&&s.push(Fa(n,T,y)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var Vy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function jh(t){return(typeof t=="string"?t:""+t).replace(Vy,`
`).replace(Zy,"")}function Yh(t,e){return e=jh(e),jh(t)===e}function qt(t,e,n,l,a,i){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Nl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Nl(t,""+l);break;case"className":gi(t,"class",l);break;case"tabIndex":gi(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":gi(t,n,l);break;case"style":Hs(t,l,i);break;case"data":if(e!=="object"){gi(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=pi(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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 i=="function"&&(n==="formAction"?(e!=="input"&&qt(t,e,"name",a.name,a,null),qt(t,e,"formEncType",a.formEncType,a,null),qt(t,e,"formMethod",a.formMethod,a,null),qt(t,e,"formTarget",a.formTarget,a,null)):(qt(t,e,"encType",a.encType,a,null),qt(t,e,"method",a.method,a,null),qt(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=pi(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=an);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=pi(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":bt("beforetoggle",t),bt("toggle",t),yi(t,"popover",l);break;case"xlinkActuate":ln(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ln(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ln(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ln(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ln(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ln(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ln(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ln(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ln(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":yi(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Sm.get(n)||n,yi(t,n,l))}}function Nr(t,e,n,l,a,i){switch(n){case"style":Hs(t,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Nl(t,l):(typeof l=="number"||typeof l=="bigint")&&Nl(t,""+l);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=an);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ds.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),i=t[ve]||null,i=i!=null?i[n]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof l=="function")){typeof i!="function"&&i!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):yi(t,n,l)}}}function he(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",t),bt("load",t);var l=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(s!=null)switch(i){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:qt(t,e,i,s,n,null)}}a&&qt(t,e,"srcSet",n.srcSet,n,null),l&&qt(t,e,"src",n.src,n,null);return;case"input":bt("invalid",t);var f=i=s=a=null,y=null,T=null;for(l in n)if(n.hasOwnProperty(l)){var x=n[l];if(x!=null)switch(l){case"name":a=x;break;case"type":s=x;break;case"checked":y=x;break;case"defaultChecked":T=x;break;case"value":i=x;break;case"defaultValue":f=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(137,e));break;default:qt(t,e,l,x,n,null)}}Us(t,i,f,y,T,s,a,!1);return;case"select":bt("invalid",t),l=s=i=null;for(a in n)if(n.hasOwnProperty(a)&&(f=n[a],f!=null))switch(a){case"value":i=f;break;case"defaultValue":s=f;break;case"multiple":l=f;default:qt(t,e,a,f,n,null)}e=i,n=s,t.multiple=!!l,e!=null?Dl(t,!!l,e,!1):n!=null&&Dl(t,!!l,n,!0);return;case"textarea":bt("invalid",t),i=a=l=null;for(s in n)if(n.hasOwnProperty(s)&&(f=n[s],f!=null))switch(s){case"value":l=f;break;case"defaultValue":a=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:qt(t,e,s,f,n,null)}qs(t,l,a,i);return;case"option":for(y in n)if(n.hasOwnProperty(y)&&(l=n[y],l!=null))switch(y){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:qt(t,e,y,l,n,null)}return;case"dialog":bt("beforetoggle",t),bt("toggle",t),bt("cancel",t),bt("close",t);break;case"iframe":case"object":bt("load",t);break;case"video":case"audio":for(l=0;l<Wa.length;l++)bt(Wa[l],t);break;case"image":bt("error",t),bt("load",t);break;case"details":bt("toggle",t);break;case"embed":case"source":case"link":bt("error",t),bt("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(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:qt(t,e,T,l,n,null)}return;default:if($u(e)){for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!==void 0&&Nr(t,e,x,l,n,void 0));return}}for(f in n)n.hasOwnProperty(f)&&(l=n[f],l!=null&&qt(t,e,f,l,n,null))}function Ky(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,s=null,f=null,y=null,T=null,x=null;for(D in n){var L=n[D];if(n.hasOwnProperty(D)&&L!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":y=L;default:l.hasOwnProperty(D)||qt(t,e,D,null,l,L)}}for(var R in l){var D=l[R];if(L=n[R],l.hasOwnProperty(R)&&(D!=null||L!=null))switch(R){case"type":i=D;break;case"name":a=D;break;case"checked":T=D;break;case"defaultChecked":x=D;break;case"value":s=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:D!==L&&qt(t,e,R,D,l,L)}}Gu(t,s,f,y,T,x,i,a);return;case"select":D=s=f=R=null;for(i in n)if(y=n[i],n.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":D=y;default:l.hasOwnProperty(i)||qt(t,e,i,null,l,y)}for(a in l)if(i=l[a],y=n[a],l.hasOwnProperty(a)&&(i!=null||y!=null))switch(a){case"value":R=i;break;case"defaultValue":f=i;break;case"multiple":s=i;default:i!==y&&qt(t,e,a,i,l,y)}e=f,n=s,l=D,R!=null?Dl(t,!!n,R,!1):!!l!=!!n&&(e!=null?Dl(t,!!n,e,!0):Dl(t,!!n,n?[]:"",!1));return;case"textarea":D=R=null;for(f in n)if(a=n[f],n.hasOwnProperty(f)&&a!=null&&!l.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:qt(t,e,f,null,l,a)}for(s in l)if(a=l[s],i=n[s],l.hasOwnProperty(s)&&(a!=null||i!=null))switch(s){case"value":R=a;break;case"defaultValue":D=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==i&&qt(t,e,s,a,l,i)}ws(t,R,D);return;case"option":for(var F in n)if(R=n[F],n.hasOwnProperty(F)&&R!=null&&!l.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:qt(t,e,F,null,l,R)}for(y in l)if(R=l[y],D=n[y],l.hasOwnProperty(y)&&R!==D&&(R!=null||D!=null))switch(y){case"selected":t.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:qt(t,e,y,R,l,D)}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 lt in n)R=n[lt],n.hasOwnProperty(lt)&&R!=null&&!l.hasOwnProperty(lt)&&qt(t,e,lt,null,l,R);for(T in l)if(R=l[T],D=n[T],l.hasOwnProperty(T)&&R!==D&&(R!=null||D!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,e));break;default:qt(t,e,T,R,l,D)}return;default:if($u(e)){for(var Lt in n)R=n[Lt],n.hasOwnProperty(Lt)&&R!==void 0&&!l.hasOwnProperty(Lt)&&Nr(t,e,Lt,void 0,l,R);for(x in l)R=l[x],D=n[x],!l.hasOwnProperty(x)||R===D||R===void 0&&D===void 0||Nr(t,e,x,R,l,D);return}}for(var E in n)R=n[E],n.hasOwnProperty(E)&&R!=null&&!l.hasOwnProperty(E)&&qt(t,e,E,null,l,R);for(L in l)R=l[L],D=n[L],!l.hasOwnProperty(L)||R===D||R==null&&D==null||qt(t,e,L,R,l,D)}function Qh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,s=a.initiatorType,f=a.duration;if(i&&f&&Qh(s)){for(s=0,f=a.responseEnd,l+=1;l<n.length;l++){var y=n[l],T=y.startTime;if(T>f)break;var x=y.transferSize,L=y.initiatorType;x&&Qh(L)&&(y=y.responseEnd,s+=x*(y<f?1:(f-T)/(y-T)))}if(--l,e+=8*(i+s)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Mr=null,Br=null;function du(t){return t.nodeType===9?t:t.ownerDocument}function Gh(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 Xh(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 xr(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 Ur=null;function ky(){var t=window.event;return t&&t.type==="popstate"?t===Ur?!1:(Ur=t,!0):(Ur=null,!1)}var $h=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,Vh=typeof Promise=="function"?Promise:void 0,Fy=typeof queueMicrotask=="function"?queueMicrotask:typeof Vh<"u"?function(t){return Vh.resolve(null).then(t).catch(Iy)}:$h;function Iy(t){setTimeout(function(){throw t})}function Xn(t){return t==="head"}function Zh(t,e){var n=e,l=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(a),ca(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ia(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ia(n);for(var i=n.firstChild;i;){var s=i.nextSibling,f=i.nodeName;i[ga]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=s}}else n==="body"&&Ia(t.ownerDocument.body);n=a}while(n);ca(e)}function Kh(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function wr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wr(n),Yu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Py(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ga])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==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(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ye(t.nextSibling),t===null)break}return null}function t0(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ye(t.nextSibling),t===null))return null;return t}function Jh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ye(t.nextSibling),t===null))return null;return t}function qr(t){return t.data==="$?"||t.data==="$~"}function Lr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function e0(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ye(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Hr=null;function kh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ye(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Wh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Fh(t,e,n){switch(e=du(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ia(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Yu(t)}var Qe=new Map,Ih=new Set;function mu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var En=X.d;X.d={f:n0,r:l0,D:a0,C:i0,L:u0,m:c0,X:s0,S:r0,M:o0};function n0(){var t=En.f(),e=iu();return t||e}function l0(t){var e=Rl(t);e!==null&&e.tag===5&&e.type==="form"?yf(e):En.r(t)}var aa=typeof document>"u"?null:document;function Ph(t,e,n){var l=aa;if(l&&typeof e=="string"&&e){var a=xe(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Ih.has(a)||(Ih.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),he(e,"link",t),ue(e),l.head.appendChild(e)))}}function a0(t){En.D(t),Ph("dns-prefetch",t,null)}function i0(t,e){En.C(t,e),Ph("preconnect",t,e)}function u0(t,e,n){En.L(t,e,n);var l=aa;if(l&&t&&e){var a='link[rel="preload"][as="'+xe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+xe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+xe(n.imageSizes)+'"]')):a+='[href="'+xe(t)+'"]';var i=a;switch(e){case"style":i=ia(t);break;case"script":i=ua(t)}Qe.has(i)||(t=z({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Qe.set(i,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(Pa(i))||e==="script"&&l.querySelector(ti(i))||(e=l.createElement("link"),he(e,"link",t),ue(e),l.head.appendChild(e)))}}function c0(t,e){En.m(t,e);var n=aa;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+xe(l)+'"][href="'+xe(t)+'"]',i=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ua(t)}if(!Qe.has(i)&&(t=z({rel:"modulepreload",href:t},e),Qe.set(i,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ti(i)))return}l=n.createElement("link"),he(l,"link",t),ue(l),n.head.appendChild(l)}}}function r0(t,e,n){En.S(t,e,n);var l=aa;if(l&&t){var a=zl(l).hoistableStyles,i=ia(t);e=e||"default";var s=a.get(i);if(!s){var f={loading:0,preload:null};if(s=l.querySelector(Pa(i)))f.loading=5;else{t=z({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Qe.get(i))&&jr(t,n);var y=s=l.createElement("link");ue(y),he(y,"link",t),y._p=new Promise(function(T,x){y.onload=T,y.onerror=x}),y.addEventListener("load",function(){f.loading|=1}),y.addEventListener("error",function(){f.loading|=2}),f.loading|=4,yu(s,e,l)}s={type:"stylesheet",instance:s,count:1,state:f},a.set(i,s)}}}function s0(t,e){En.X(t,e);var n=aa;if(n&&t){var l=zl(n).hoistableScripts,a=ua(t),i=l.get(a);i||(i=n.querySelector(ti(a)),i||(t=z({src:t,async:!0},e),(e=Qe.get(a))&&Yr(t,e),i=n.createElement("script"),ue(i),he(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function o0(t,e){En.M(t,e);var n=aa;if(n&&t){var l=zl(n).hoistableScripts,a=ua(t),i=l.get(a);i||(i=n.querySelector(ti(a)),i||(t=z({src:t,async:!0,type:"module"},e),(e=Qe.get(a))&&Yr(t,e),i=n.createElement("script"),ue(i),he(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function td(t,e,n,l){var a=(a=gt.current)?mu(a):null;if(!a)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ia(n.href),n=zl(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ia(n.href);var i=zl(a).hoistableStyles,s=i.get(t);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,s),(i=a.querySelector(Pa(t)))&&!i._p&&(s.instance=i,s.state.loading=5),Qe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Qe.set(t,n),i||f0(a,t,n,s.state))),e&&l===null)throw Error(r(528,""));return s}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ua(n),n=zl(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ia(t){return'href="'+xe(t)+'"'}function Pa(t){return'link[rel="stylesheet"]['+t+"]"}function ed(t){return z({},t,{"data-precedence":t.precedence,precedence:null})}function f0(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),he(e,"link",n),ue(e),t.head.appendChild(e))}function ua(t){return'[src="'+xe(t)+'"]'}function ti(t){return"script[async]"+t}function nd(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+xe(n.href)+'"]');if(l)return e.instance=l,ue(l),l;var a=z({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ue(l),he(l,"style",a),yu(l,n.precedence,t),e.instance=l;case"stylesheet":a=ia(n.href);var i=t.querySelector(Pa(a));if(i)return e.state.loading|=4,e.instance=i,ue(i),i;l=ed(n),(a=Qe.get(a))&&jr(l,a),i=(t.ownerDocument||t).createElement("link"),ue(i);var s=i;return s._p=new Promise(function(f,y){s.onload=f,s.onerror=y}),he(i,"link",l),e.state.loading|=4,yu(i,n.precedence,t),e.instance=i;case"script":return i=ua(n.src),(a=t.querySelector(ti(i)))?(e.instance=a,ue(a),a):(l=n,(a=Qe.get(i))&&(l=z({},n),Yr(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),ue(a),he(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,yu(l,n.precedence,t));return e.instance}function yu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,s=0;s<l.length;s++){var f=l[s];if(f.dataset.precedence===e)i=f;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function jr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Yr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var gu=null;function ld(t,e,n){if(gu===null){var l=new Map,a=gu=new Map;a.set(n,l)}else a=gu,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var i=n[a];if(!(i[ga]||i[re]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(e)||"";s=t+s;var f=l.get(s);f?f.push(i):l.set(s,[i])}}return l}function ad(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function h0(t,e,n){if(n===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 id(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function d0(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=ia(l.href),i=e.querySelector(Pa(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=vu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=i,ue(i);return}i=e.ownerDocument||e,l=ed(l),(a=Qe.get(a))&&jr(l,a),i=i.createElement("link"),ue(i);var s=i;s._p=new Promise(function(f,y){s.onload=f,s.onerror=y}),he(i,"link",l),n.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=vu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Qr=0;function m0(t,e){return t.stylesheets&&t.count===0&&bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&Qr===0&&(Qr=62500*Jy());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>Qr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var pu=null;function bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,pu=new Map,e.forEach(y0,t),pu=null,vu.call(t))}function y0(t,e){if(!(e.state.loading&4)){var n=pu.get(t);if(n)var l=n.get(null);else{n=new Map,pu.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var s=a[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),l=s)}l&&n.set(null,l)}a=e.instance,s=a.getAttribute("data-precedence"),i=n.get(s)||l,i===l&&n.set(null,a),n.set(s,a),this.count++,l=vu.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var ei={$$typeof:it,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function g0(t,e,n,l,a,i,s,f,y){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=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function ud(t,e,n,l,a,i,s,f,y,T,x,L){return t=new g0(t,e,n,s,y,T,x,L,f),e=1,i===!0&&(e|=24),i=Oe(3,null,null,e),t.current=i,i.stateNode=t,e=Sc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:e},Ac(i),t}function cd(t){return t?(t=Ll,t):Ll}function rd(t,e,n,l,a,i){a=cd(a),l.context===null?l.context=a:l.pendingContext=a,l=Bn(e),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=xn(t,l,e),n!==null&&(Te(n,t,e),xa(n,t,e))}function sd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Gr(t,e){sd(t,e),(t=t.alternate)&&sd(t,e)}function od(t){if(t.tag===13||t.tag===31){var e=nl(t,67108864);e!==null&&Te(e,t,67108864),Gr(t,67108864)}}function fd(t){if(t.tag===13||t.tag===31){var e=Ne();e=ya(e);var n=nl(t,e);n!==null&&Te(n,t,e),Gr(t,e)}}var Su=!0;function v0(t,e,n,l){var a=C.T;C.T=null;var i=X.p;try{X.p=2,Xr(t,e,n,l)}finally{X.p=i,C.T=a}}function p0(t,e,n,l){var a=C.T;C.T=null;var i=X.p;try{X.p=8,Xr(t,e,n,l)}finally{X.p=i,C.T=a}}function Xr(t,e,n,l){if(Su){var a=$r(l);if(a===null)Dr(t,e,l,Eu,n),dd(t,l);else if(S0(a,t,e,n,l))l.stopPropagation();else if(dd(t,l),e&4&&-1<b0.indexOf(t)){for(;a!==null;){var i=Rl(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=k(i.pendingLanes);if(s!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;s;){var y=1<<31-h(s);f.entanglements[1]|=y,s&=~y}Ie(i),(Mt&6)===0&&(lu=ye()+500,ka(0))}}break;case 31:case 13:f=nl(i,2),f!==null&&Te(f,i,2),iu(),Gr(i,2)}if(i=$r(l),i===null&&Dr(t,e,l,Eu,n),i===a)break;a=i}a!==null&&l.stopPropagation()}else Dr(t,e,l,null,n)}}function $r(t){return t=Zu(t),Vr(t)}var Eu=null;function Vr(t){if(Eu=null,t=Ol(t),t!==null){var e=v(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=A(e),t!==null)return t;t=null}else if(n===31){if(t=O(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Eu=t,null}function hd(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(_n()){case _l:return 2;case Tn:return 8;case Tl:case Lu:return 32;case fi:return 268435456;default:return 32}default:return 32}}var Zr=!1,$n=null,Vn=null,Zn=null,ni=new Map,li=new Map,Kn=[],b0="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 dd(t,e){switch(t){case"focusin":case"focusout":$n=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":ni.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":li.delete(e.pointerId)}}function ai(t,e,n,l,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},e!==null&&(e=Rl(e),e!==null&&od(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function S0(t,e,n,l,a){switch(e){case"focusin":return $n=ai($n,t,e,n,l,a),!0;case"dragenter":return Vn=ai(Vn,t,e,n,l,a),!0;case"mouseover":return Zn=ai(Zn,t,e,n,l,a),!0;case"pointerover":var i=a.pointerId;return ni.set(i,ai(ni.get(i)||null,t,e,n,l,a)),!0;case"gotpointercapture":return i=a.pointerId,li.set(i,ai(li.get(i)||null,t,e,n,l,a)),!0}return!1}function md(t){var e=Ol(t.target);if(e!==null){var n=v(e);if(n!==null){if(e=n.tag,e===13){if(e=A(n),e!==null){t.blockedOn=e,Rs(t.priority,function(){fd(n)});return}}else if(e===31){if(e=O(n),e!==null){t.blockedOn=e,Rs(t.priority,function(){fd(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _u(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=$r(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Vu=l,n.target.dispatchEvent(l),Vu=null}else return e=Rl(n),e!==null&&od(e),t.blockedOn=n,!1;e.shift()}return!0}function yd(t,e,n){_u(t)&&n.delete(e)}function E0(){Zr=!1,$n!==null&&_u($n)&&($n=null),Vn!==null&&_u(Vn)&&(Vn=null),Zn!==null&&_u(Zn)&&(Zn=null),ni.forEach(yd),li.forEach(yd)}function Tu(t,e){t.blockedOn===e&&(t.blockedOn=null,Zr||(Zr=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,E0)))}var Au=null;function gd(t){Au!==t&&(Au=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Au===t&&(Au=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(Vr(l||n)===null)continue;break}var i=Rl(n);i!==null&&(t.splice(e,3),e-=3,$c(i,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function ca(t){function e(y){return Tu(y,t)}$n!==null&&Tu($n,t),Vn!==null&&Tu(Vn,t),Zn!==null&&Tu(Zn,t),ni.forEach(e),li.forEach(e);for(var n=0;n<Kn.length;n++){var l=Kn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)md(n),n.blockedOn===null&&Kn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],s=a[ve]||null;if(typeof i=="function")s||gd(n);else if(s){var f=null;if(i&&i.hasAttribute("formAction")){if(a=i,s=i[ve]||null)f=s.formAction;else if(Vr(a)!==null)continue}else f=s.action;typeof f=="function"?n[l+1]=f:(n.splice(l,3),l-=3),gd(n)}}}function vd(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function Kr(t){this._internalRoot=t}Ou.prototype.render=Kr.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,l=Ne();rd(n,l,t,e,null,null)},Ou.prototype.unmount=Kr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;rd(t.current,2,null,t,null,null),iu(),e[Al]=null}};function Ou(t){this._internalRoot=t}Ou.prototype.unstable_scheduleHydration=function(t){if(t){var e=mi();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Kn.length&&e!==0&&e<Kn[n].priority;n++);Kn.splice(n,0,t),n===0&&md(t)}};var pd=u.version;if(pd!=="19.2.0")throw Error(r(527,pd,"19.2.0"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=d(e),t=t!==null?M(t):null,t=t===null?null:t.stateNode,t};var _0={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ru.isDisabled&&Ru.supportsFiber)try{An=Ru.inject(_0),de=Ru}catch{}}return ui.createRoot=function(t,e){if(!m(t))throw Error(r(299));var n=!1,l="",a=Of,i=Rf,s=zf;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=ud(t,1,!1,null,null,n,l,null,a,i,s,vd),t[Al]=e.current,Cr(t),new Kr(e)},ui.hydrateRoot=function(t,e,n){if(!m(t))throw Error(r(299));var l=!1,a="",i=Of,s=Rf,f=zf,y=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(f=n.onRecoverableError),n.formState!==void 0&&(y=n.formState)),e=ud(t,1,!0,e,n??null,l,a,y,i,s,f,vd),e.context=cd(null),n=e.current,l=Ne(),l=ya(l),a=Bn(l),a.callback=null,xn(n,a,l),n=l,e.current.lanes=n,Me(e,n),Ie(e),t[Al]=e.current,Cr(t),new Ou(e)},ui.version="19.2.0",ui}var Cd;function x0(){if(Cd)return Wr.exports;Cd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(u){console.error(u)}}return o(),Wr.exports=B0(),Wr.exports}var U0=x0();const tn=Object.create(null);tn.open="0";tn.close="1";tn.ping="2";tn.pong="3";tn.message="4";tn.upgrade="5";tn.noop="6";const Nu=Object.create(null);Object.keys(tn).forEach(o=>{Nu[tn[o]]=o});const ys={type:"error",data:"parser error"},kd=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Wd=typeof ArrayBuffer=="function",Fd=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o&&o.buffer instanceof ArrayBuffer,Es=({type:o,data:u},c,r)=>kd&&u instanceof Blob?c?r(u):Dd(u,r):Wd&&(u instanceof ArrayBuffer||Fd(u))?c?r(u):Dd(new Blob([u]),r):r(tn[o]+(u||"")),Dd=(o,u)=>{const c=new FileReader;return c.onload=function(){const r=c.result.split(",")[1];u("b"+(r||""))},c.readAsDataURL(o)};function Nd(o){return o instanceof Uint8Array?o:o instanceof ArrayBuffer?new Uint8Array(o):new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}let ts;function w0(o,u){if(kd&&o.data instanceof Blob)return o.data.arrayBuffer().then(Nd).then(u);if(Wd&&(o.data instanceof ArrayBuffer||Fd(o.data)))return u(Nd(o.data));Es(o,!1,c=>{ts||(ts=new TextEncoder),u(ts.encode(c))})}const Md="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ri=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<Md.length;o++)ri[Md.charCodeAt(o)]=o;const q0=o=>{let u=o.length*.75,c=o.length,r,m=0,v,A,O,g;o[o.length-1]==="="&&(u--,o[o.length-2]==="="&&u--);const d=new ArrayBuffer(u),M=new Uint8Array(d);for(r=0;r<c;r+=4)v=ri[o.charCodeAt(r)],A=ri[o.charCodeAt(r+1)],O=ri[o.charCodeAt(r+2)],g=ri[o.charCodeAt(r+3)],M[m++]=v<<2|A>>4,M[m++]=(A&15)<<4|O>>2,M[m++]=(O&3)<<6|g&63;return d},L0=typeof ArrayBuffer=="function",_s=(o,u)=>{if(typeof o!="string")return{type:"message",data:Id(o,u)};const c=o.charAt(0);return c==="b"?{type:"message",data:H0(o.substring(1),u)}:Nu[c]?o.length>1?{type:Nu[c],data:o.substring(1)}:{type:Nu[c]}:ys},H0=(o,u)=>{if(L0){const c=q0(o);return Id(c,u)}else return{base64:!0,data:o}},Id=(o,u)=>{switch(u){case"blob":return o instanceof Blob?o:new Blob([o]);case"arraybuffer":default:return o instanceof ArrayBuffer?o:o.buffer}},Pd="",j0=(o,u)=>{const c=o.length,r=new Array(c);let m=0;o.forEach((v,A)=>{Es(v,!1,O=>{r[A]=O,++m===c&&u(r.join(Pd))})})},Y0=(o,u)=>{const c=o.split(Pd),r=[];for(let m=0;m<c.length;m++){const v=_s(c[m],u);if(r.push(v),v.type==="error")break}return r};function Q0(){return new TransformStream({transform(o,u){w0(o,c=>{const r=c.length;let m;if(r<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,r);else if(r<65536){m=new Uint8Array(3);const v=new DataView(m.buffer);v.setUint8(0,126),v.setUint16(1,r)}else{m=new Uint8Array(9);const v=new DataView(m.buffer);v.setUint8(0,127),v.setBigUint64(1,BigInt(r))}o.data&&typeof o.data!="string"&&(m[0]|=128),u.enqueue(m),u.enqueue(c)})}})}let es;function zu(o){return o.reduce((u,c)=>u+c.length,0)}function Cu(o,u){if(o[0].length===u)return o.shift();const c=new Uint8Array(u);let r=0;for(let m=0;m<u;m++)c[m]=o[0][r++],r===o[0].length&&(o.shift(),r=0);return o.length&&r<o[0].length&&(o[0]=o[0].slice(r)),c}function G0(o,u){es||(es=new TextDecoder);const c=[];let r=0,m=-1,v=!1;return new TransformStream({transform(A,O){for(c.push(A);;){if(r===0){if(zu(c)<1)break;const g=Cu(c,1);v=(g[0]&128)===128,m=g[0]&127,m<126?r=3:m===126?r=1:r=2}else if(r===1){if(zu(c)<2)break;const g=Cu(c,2);m=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),r=3}else if(r===2){if(zu(c)<8)break;const g=Cu(c,8),d=new DataView(g.buffer,g.byteOffset,g.length),M=d.getUint32(0);if(M>Math.pow(2,21)-1){O.enqueue(ys);break}m=M*Math.pow(2,32)+d.getUint32(4),r=3}else{if(zu(c)<m)break;const g=Cu(c,m);O.enqueue(_s(v?g:es.decode(g),u)),r=0}if(m===0||m>o){O.enqueue(ys);break}}}})}const tm=4;function ne(o){if(o)return X0(o)}function X0(o){for(var u in ne.prototype)o[u]=ne.prototype[u];return o}ne.prototype.on=ne.prototype.addEventListener=function(o,u){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(u),this};ne.prototype.once=function(o,u){function c(){this.off(o,c),u.apply(this,arguments)}return c.fn=u,this.on(o,c),this};ne.prototype.off=ne.prototype.removeListener=ne.prototype.removeAllListeners=ne.prototype.removeEventListener=function(o,u){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+o];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var r,m=0;m<c.length;m++)if(r=c[m],r===u||r.fn===u){c.splice(m,1);break}return c.length===0&&delete this._callbacks["$"+o],this};ne.prototype.emit=function(o){this._callbacks=this._callbacks||{};for(var u=new Array(arguments.length-1),c=this._callbacks["$"+o],r=1;r<arguments.length;r++)u[r-1]=arguments[r];if(c){c=c.slice(0);for(var r=0,m=c.length;r<m;++r)c[r].apply(this,u)}return this};ne.prototype.emitReserved=ne.prototype.emit;ne.prototype.listeners=function(o){return this._callbacks=this._callbacks||{},this._callbacks["$"+o]||[]};ne.prototype.hasListeners=function(o){return!!this.listeners(o).length};const Uu=typeof Promise=="function"&&typeof Promise.resolve=="function"?u=>Promise.resolve().then(u):(u,c)=>c(u,0),Ge=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),$0="arraybuffer";function em(o,...u){return u.reduce((c,r)=>(o.hasOwnProperty(r)&&(c[r]=o[r]),c),{})}const V0=Ge.setTimeout,Z0=Ge.clearTimeout;function wu(o,u){u.useNativeTimers?(o.setTimeoutFn=V0.bind(Ge),o.clearTimeoutFn=Z0.bind(Ge)):(o.setTimeoutFn=Ge.setTimeout.bind(Ge),o.clearTimeoutFn=Ge.clearTimeout.bind(Ge))}const K0=1.33;function J0(o){return typeof o=="string"?k0(o):Math.ceil((o.byteLength||o.size)*K0)}function k0(o){let u=0,c=0;for(let r=0,m=o.length;r<m;r++)u=o.charCodeAt(r),u<128?c+=1:u<2048?c+=2:u<55296||u>=57344?c+=3:(r++,c+=4);return c}function nm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function W0(o){let u="";for(let c in o)o.hasOwnProperty(c)&&(u.length&&(u+="&"),u+=encodeURIComponent(c)+"="+encodeURIComponent(o[c]));return u}function F0(o){let u={},c=o.split("&");for(let r=0,m=c.length;r<m;r++){let v=c[r].split("=");u[decodeURIComponent(v[0])]=decodeURIComponent(v[1])}return u}class I0 extends Error{constructor(u,c,r){super(u),this.description=c,this.context=r,this.type="TransportError"}}class Ts extends ne{constructor(u){super(),this.writable=!1,wu(this,u),this.opts=u,this.query=u.query,this.socket=u.socket,this.supportsBinary=!u.forceBase64}onError(u,c,r){return super.emitReserved("error",new I0(u,c,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(u){this.readyState==="open"&&this.write(u)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(u){const c=_s(u,this.socket.binaryType);this.onPacket(c)}onPacket(u){super.emitReserved("packet",u)}onClose(u){this.readyState="closed",super.emitReserved("close",u)}pause(u){}createUri(u,c={}){return u+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const u=this.opts.hostname;return u.indexOf(":")===-1?u:"["+u+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(u){const c=W0(u);return c.length?"?"+c:""}}class P0 extends Ts{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(u){this.readyState="pausing";const c=()=>{this.readyState="paused",u()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||c()})),this.writable||(r++,this.once("drain",function(){--r||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(u){const c=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Y0(u,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const u=()=>{this.write([{type:"close"}])};this.readyState==="open"?u():this.once("open",u)}write(u){this.writable=!1,j0(u,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const u=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=nm()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(u,c)}}let lm=!1;try{lm=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const tg=lm;function eg(){}class ng extends P0{constructor(u){if(super(u),typeof location<"u"){const c=location.protocol==="https:";let r=location.port;r||(r=c?"443":"80"),this.xd=typeof location<"u"&&u.hostname!==location.hostname||r!==u.port}}doWrite(u,c){const r=this.request({method:"POST",data:u});r.on("success",c),r.on("error",(m,v)=>{this.onError("xhr post error",m,v)})}doPoll(){const u=this.request();u.on("data",this.onData.bind(this)),u.on("error",(c,r)=>{this.onError("xhr poll error",c,r)}),this.pollXhr=u}}class Pe extends ne{constructor(u,c,r){super(),this.createRequest=u,wu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=c,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var u;const c=em(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(c);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let m in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(m)&&r.setRequestHeader(m,this._opts.extraHeaders[m])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(u=this._opts.cookieJar)===null||u===void 0||u.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var m;r.readyState===3&&((m=this._opts.cookieJar)===null||m===void 0||m.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(m){this.setTimeoutFn(()=>{this._onError(m)},0);return}typeof document<"u"&&(this._index=Pe.requestsCount++,Pe.requests[this._index]=this)}_onError(u){this.emitReserved("error",u,this._xhr),this._cleanup(!0)}_cleanup(u){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=eg,u)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Pe.requests[this._index],this._xhr=null}}_onLoad(){const u=this._xhr.responseText;u!==null&&(this.emitReserved("data",u),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Pe.requestsCount=0;Pe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Bd);else if(typeof addEventListener=="function"){const o="onpagehide"in Ge?"pagehide":"unload";addEventListener(o,Bd,!1)}}function Bd(){for(let o in Pe.requests)Pe.requests.hasOwnProperty(o)&&Pe.requests[o].abort()}const lg=(function(){const o=am({xdomain:!1});return o&&o.responseType!==null})();class ag extends ng{constructor(u){super(u);const c=u&&u.forceBase64;this.supportsBinary=lg&&!c}request(u={}){return Object.assign(u,{xd:this.xd},this.opts),new Pe(am,this.uri(),u)}}function am(o){const u=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!u||tg))return new XMLHttpRequest}catch{}if(!u)try{return new Ge[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const im=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ig extends Ts{get name(){return"websocket"}doOpen(){const u=this.uri(),c=this.opts.protocols,r=im?{}:em(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(u,c,r)}catch(m){return this.emitReserved("error",m)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=u=>this.onClose({description:"websocket connection closed",context:u}),this.ws.onmessage=u=>this.onData(u.data),this.ws.onerror=u=>this.onError("websocket error",u)}write(u){this.writable=!1;for(let c=0;c<u.length;c++){const r=u[c],m=c===u.length-1;Es(r,this.supportsBinary,v=>{try{this.doWrite(r,v)}catch{}m&&Uu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const u=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=nm()),this.supportsBinary||(c.b64=1),this.createUri(u,c)}}const ns=Ge.WebSocket||Ge.MozWebSocket;class ug extends ig{createSocket(u,c,r){return im?new ns(u,c,r):c?new ns(u,c):new ns(u)}doWrite(u,c){this.ws.send(c)}}class cg extends Ts{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(u){return this.emitReserved("error",u)}this._transport.closed.then(()=>{this.onClose()}).catch(u=>{this.onError("webtransport error",u)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(u=>{const c=G0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=u.readable.pipeThrough(c).getReader(),m=Q0();m.readable.pipeTo(u.writable),this._writer=m.writable.getWriter();const v=()=>{r.read().then(({done:O,value:g})=>{O||(this.onPacket(g),v())}).catch(O=>{})};v();const A={type:"open"};this.query.sid&&(A.data=`{"sid":"${this.query.sid}"}`),this._writer.write(A).then(()=>this.onOpen())})})}write(u){this.writable=!1;for(let c=0;c<u.length;c++){const r=u[c],m=c===u.length-1;this._writer.write(r).then(()=>{m&&Uu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var u;(u=this._transport)===null||u===void 0||u.close()}}const rg={websocket:ug,webtransport:cg,polling:ag},sg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,og=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function gs(o){if(o.length>8e3)throw"URI too long";const u=o,c=o.indexOf("["),r=o.indexOf("]");c!=-1&&r!=-1&&(o=o.substring(0,c)+o.substring(c,r).replace(/:/g,";")+o.substring(r,o.length));let m=sg.exec(o||""),v={},A=14;for(;A--;)v[og[A]]=m[A]||"";return c!=-1&&r!=-1&&(v.source=u,v.host=v.host.substring(1,v.host.length-1).replace(/;/g,":"),v.authority=v.authority.replace("[","").replace("]","").replace(/;/g,":"),v.ipv6uri=!0),v.pathNames=fg(v,v.path),v.queryKey=hg(v,v.query),v}function fg(o,u){const c=/\/{2,9}/g,r=u.replace(c,"/").split("/");return(u.slice(0,1)=="/"||u.length===0)&&r.splice(0,1),u.slice(-1)=="/"&&r.splice(r.length-1,1),r}function hg(o,u){const c={};return u.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,m,v){m&&(c[m]=v)}),c}const vs=typeof addEventListener=="function"&&typeof removeEventListener=="function",Mu=[];vs&&addEventListener("offline",()=>{Mu.forEach(o=>o())},!1);class kn extends ne{constructor(u,c){if(super(),this.binaryType=$0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,u&&typeof u=="object"&&(c=u,u=null),u){const r=gs(u);c.hostname=r.host,c.secure=r.protocol==="https"||r.protocol==="wss",c.port=r.port,r.query&&(c.query=r.query)}else c.host&&(c.hostname=gs(c.host).host);wu(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},c.transports.forEach(r=>{const m=r.prototype.name;this.transports.push(m),this._transportsByName[m]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=F0(this.opts.query)),vs&&(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"})},Mu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(u){const c=Object.assign({},this.opts.query);c.EIO=tm,c.transport=u,this.id&&(c.sid=this.id);const r=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[u]);return new this._transportsByName[u](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const u=this.opts.rememberUpgrade&&kn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const c=this.createTransport(u);c.open(),this.setTransport(c)}setTransport(u){this.transport&&this.transport.removeAllListeners(),this.transport=u,u.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",kn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(u){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",u),this.emitReserved("heartbeat"),u.type){case"open":this.onHandshake(JSON.parse(u.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=u.data,this._onError(c);break;case"message":this.emitReserved("data",u.data),this.emitReserved("message",u.data);break}}onHandshake(u){this.emitReserved("handshake",u),this.id=u.sid,this.transport.query.sid=u.sid,this._pingInterval=u.pingInterval,this._pingTimeout=u.pingTimeout,this._maxPayload=u.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const u=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+u,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},u),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 u=this._getWritablePackets();this.transport.send(u),this._prevBufferLen=u.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let r=0;r<this.writeBuffer.length;r++){const m=this.writeBuffer[r].data;if(m&&(c+=J0(m)),r>0&&c>this._maxPayload)return this.writeBuffer.slice(0,r);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const u=Date.now()>this._pingTimeoutTime;return u&&(this._pingTimeoutTime=0,Uu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),u}write(u,c,r){return this._sendPacket("message",u,c,r),this}send(u,c,r){return this._sendPacket("message",u,c,r),this}_sendPacket(u,c,r,m){if(typeof c=="function"&&(m=c,c=void 0),typeof r=="function"&&(m=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const v={type:u,data:c,options:r};this.emitReserved("packetCreate",v),this.writeBuffer.push(v),m&&this.once("flush",m),this.flush()}close(){const u=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),u()},r=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():u()}):this.upgrading?r():u()),this}_onError(u){if(kn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",u),this._onClose("transport error",u)}_onClose(u,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(),vs&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Mu.indexOf(this._offlineEventListener);r!==-1&&Mu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",u,c),this.writeBuffer=[],this._prevBufferLen=0}}}kn.protocol=tm;class dg extends kn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let u=0;u<this._upgrades.length;u++)this._probe(this._upgrades[u])}_probe(u){let c=this.createTransport(u),r=!1;kn.priorWebsocketSuccess=!1;const m=()=>{r||(c.send([{type:"ping",data:"probe"}]),c.once("packet",z=>{if(!r)if(z.type==="pong"&&z.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;kn.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(M(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const U=new Error("probe error");U.transport=c.name,this.emitReserved("upgradeError",U)}}))};function v(){r||(r=!0,M(),c.close(),c=null)}const A=z=>{const U=new Error("probe error: "+z);U.transport=c.name,v(),this.emitReserved("upgradeError",U)};function O(){A("transport closed")}function g(){A("socket closed")}function d(z){c&&z.name!==c.name&&v()}const M=()=>{c.removeListener("open",m),c.removeListener("error",A),c.removeListener("close",O),this.off("close",g),this.off("upgrading",d)};c.once("open",m),c.once("error",A),c.once("close",O),this.once("close",g),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&u!=="webtransport"?this.setTimeoutFn(()=>{r||c.open()},200):c.open()}onHandshake(u){this._upgrades=this._filterUpgrades(u.upgrades),super.onHandshake(u)}_filterUpgrades(u){const c=[];for(let r=0;r<u.length;r++)~this.transports.indexOf(u[r])&&c.push(u[r]);return c}}let mg=class extends dg{constructor(u,c={}){const r=typeof u=="object"?u:c;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(m=>rg[m]).filter(m=>!!m)),super(u,r)}};function yg(o,u="",c){let r=o;c=c||typeof location<"u"&&location,o==null&&(o=c.protocol+"//"+c.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=c.protocol+o:o=c.host+o),/^(https?|wss?):\/\//.test(o)||(typeof c<"u"?o=c.protocol+"//"+o:o="https://"+o),r=gs(o)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const v=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+v+":"+r.port+u,r.href=r.protocol+"://"+v+(c&&c.port===r.port?"":":"+r.port),r}const gg=typeof ArrayBuffer=="function",vg=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer,um=Object.prototype.toString,pg=typeof Blob=="function"||typeof Blob<"u"&&um.call(Blob)==="[object BlobConstructor]",bg=typeof File=="function"||typeof File<"u"&&um.call(File)==="[object FileConstructor]";function As(o){return gg&&(o instanceof ArrayBuffer||vg(o))||pg&&o instanceof Blob||bg&&o instanceof File}function Bu(o,u){if(!o||typeof o!="object")return!1;if(Array.isArray(o)){for(let c=0,r=o.length;c<r;c++)if(Bu(o[c]))return!0;return!1}if(As(o))return!0;if(o.toJSON&&typeof o.toJSON=="function"&&arguments.length===1)return Bu(o.toJSON(),!0);for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)&&Bu(o[c]))return!0;return!1}function Sg(o){const u=[],c=o.data,r=o;return r.data=ps(c,u),r.attachments=u.length,{packet:r,buffers:u}}function ps(o,u){if(!o)return o;if(As(o)){const c={_placeholder:!0,num:u.length};return u.push(o),c}else if(Array.isArray(o)){const c=new Array(o.length);for(let r=0;r<o.length;r++)c[r]=ps(o[r],u);return c}else if(typeof o=="object"&&!(o instanceof Date)){const c={};for(const r in o)Object.prototype.hasOwnProperty.call(o,r)&&(c[r]=ps(o[r],u));return c}return o}function Eg(o,u){return o.data=bs(o.data,u),delete o.attachments,o}function bs(o,u){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<u.length)return u[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let c=0;c<o.length;c++)o[c]=bs(o[c],u);else if(typeof o=="object")for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&(o[c]=bs(o[c],u));return o}const _g=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Tg=5;var Tt;(function(o){o[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK"})(Tt||(Tt={}));class Ag{constructor(u){this.replacer=u}encode(u){return(u.type===Tt.EVENT||u.type===Tt.ACK)&&Bu(u)?this.encodeAsBinary({type:u.type===Tt.EVENT?Tt.BINARY_EVENT:Tt.BINARY_ACK,nsp:u.nsp,data:u.data,id:u.id}):[this.encodeAsString(u)]}encodeAsString(u){let c=""+u.type;return(u.type===Tt.BINARY_EVENT||u.type===Tt.BINARY_ACK)&&(c+=u.attachments+"-"),u.nsp&&u.nsp!=="/"&&(c+=u.nsp+","),u.id!=null&&(c+=u.id),u.data!=null&&(c+=JSON.stringify(u.data,this.replacer)),c}encodeAsBinary(u){const c=Sg(u),r=this.encodeAsString(c.packet),m=c.buffers;return m.unshift(r),m}}function xd(o){return Object.prototype.toString.call(o)==="[object Object]"}class Os extends ne{constructor(u){super(),this.reviver=u}add(u){let c;if(typeof u=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(u);const r=c.type===Tt.BINARY_EVENT;r||c.type===Tt.BINARY_ACK?(c.type=r?Tt.EVENT:Tt.ACK,this.reconstructor=new Og(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(As(u)||u.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(u),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: "+u)}decodeString(u){let c=0;const r={type:Number(u.charAt(0))};if(Tt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Tt.BINARY_EVENT||r.type===Tt.BINARY_ACK){const v=c+1;for(;u.charAt(++c)!=="-"&&c!=u.length;);const A=u.substring(v,c);if(A!=Number(A)||u.charAt(c)!=="-")throw new Error("Illegal attachments");r.attachments=Number(A)}if(u.charAt(c+1)==="/"){const v=c+1;for(;++c&&!(u.charAt(c)===","||c===u.length););r.nsp=u.substring(v,c)}else r.nsp="/";const m=u.charAt(c+1);if(m!==""&&Number(m)==m){const v=c+1;for(;++c;){const A=u.charAt(c);if(A==null||Number(A)!=A){--c;break}if(c===u.length)break}r.id=Number(u.substring(v,c+1))}if(u.charAt(++c)){const v=this.tryParse(u.substr(c));if(Os.isPayloadValid(r.type,v))r.data=v;else throw new Error("invalid payload")}return r}tryParse(u){try{return JSON.parse(u,this.reviver)}catch{return!1}}static isPayloadValid(u,c){switch(u){case Tt.CONNECT:return xd(c);case Tt.DISCONNECT:return c===void 0;case Tt.CONNECT_ERROR:return typeof c=="string"||xd(c);case Tt.EVENT:case Tt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&_g.indexOf(c[0])===-1);case Tt.ACK:case Tt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Og{constructor(u){this.packet=u,this.buffers=[],this.reconPack=u}takeBinaryData(u){if(this.buffers.push(u),this.buffers.length===this.reconPack.attachments){const c=Eg(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Rg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Os,Encoder:Ag,get PacketType(){return Tt},protocol:Tg},Symbol.toStringTag,{value:"Module"}));function Je(o,u,c){return o.on(u,c),function(){o.off(u,c)}}const zg=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class cm extends ne{constructor(u,c,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=u,this.nsp=c,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const u=this.io;this.subs=[Je(u,"open",this.onopen.bind(this)),Je(u,"packet",this.onpacket.bind(this)),Je(u,"error",this.onerror.bind(this)),Je(u,"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(...u){return u.unshift("message"),this.emit.apply(this,u),this}emit(u,...c){var r,m,v;if(zg.hasOwnProperty(u))throw new Error('"'+u.toString()+'" is a reserved event name');if(c.unshift(u),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const A={type:Tt.EVENT,data:c};if(A.options={},A.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const M=this.ids++,z=c.pop();this._registerAckCallback(M,z),A.id=M}const O=(m=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||m===void 0?void 0:m.writable,g=this.connected&&!(!((v=this.io.engine)===null||v===void 0)&&v._hasPingExpired());return this.flags.volatile&&!O||(g?(this.notifyOutgoingListeners(A),this.packet(A)):this.sendBuffer.push(A)),this.flags={},this}_registerAckCallback(u,c){var r;const m=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(m===void 0){this.acks[u]=c;return}const v=this.io.setTimeoutFn(()=>{delete this.acks[u];for(let O=0;O<this.sendBuffer.length;O++)this.sendBuffer[O].id===u&&this.sendBuffer.splice(O,1);c.call(this,new Error("operation has timed out"))},m),A=(...O)=>{this.io.clearTimeoutFn(v),c.apply(this,O)};A.withError=!0,this.acks[u]=A}emitWithAck(u,...c){return new Promise((r,m)=>{const v=(A,O)=>A?m(A):r(O);v.withError=!0,c.push(v),this.emit(u,...c)})}_addToQueue(u){let c;typeof u[u.length-1]=="function"&&(c=u.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:u,flags:Object.assign({fromQueue:!0},this.flags)};u.push((m,...v)=>r!==this._queue[0]?void 0:(m!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(m)):(this._queue.shift(),c&&c(null,...v)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(u=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!u||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(u){u.nsp=this.nsp,this.io._packet(u)}onopen(){typeof this.auth=="function"?this.auth(u=>{this._sendConnectPacket(u)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(u){this.packet({type:Tt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},u):u})}onerror(u){this.connected||this.emitReserved("connect_error",u)}onclose(u,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",u,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(u=>{if(!this.sendBuffer.some(r=>String(r.id)===u)){const r=this.acks[u];delete this.acks[u],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(u){if(u.nsp===this.nsp)switch(u.type){case Tt.CONNECT:u.data&&u.data.sid?this.onconnect(u.data.sid,u.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 Tt.EVENT:case Tt.BINARY_EVENT:this.onevent(u);break;case Tt.ACK:case Tt.BINARY_ACK:this.onack(u);break;case Tt.DISCONNECT:this.ondisconnect();break;case Tt.CONNECT_ERROR:this.destroy();const r=new Error(u.data.message);r.data=u.data.data,this.emitReserved("connect_error",r);break}}onevent(u){const c=u.data||[];u.id!=null&&c.push(this.ack(u.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(u){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const r of c)r.apply(this,u)}super.emit.apply(this,u),this._pid&&u.length&&typeof u[u.length-1]=="string"&&(this._lastOffset=u[u.length-1])}ack(u){const c=this;let r=!1;return function(...m){r||(r=!0,c.packet({type:Tt.ACK,id:u,data:m}))}}onack(u){const c=this.acks[u.id];typeof c=="function"&&(delete this.acks[u.id],c.withError&&u.data.unshift(null),c.apply(this,u.data))}onconnect(u,c){this.id=u,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(u=>this.emitEvent(u)),this.receiveBuffer=[],this.sendBuffer.forEach(u=>{this.notifyOutgoingListeners(u),this.packet(u)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(u=>u()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Tt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(u){return this.flags.compress=u,this}get volatile(){return this.flags.volatile=!0,this}timeout(u){return this.flags.timeout=u,this}onAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(u),this}prependAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(u),this}offAny(u){if(!this._anyListeners)return this;if(u){const c=this._anyListeners;for(let r=0;r<c.length;r++)if(u===c[r])return c.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(u),this}prependAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(u),this}offAnyOutgoing(u){if(!this._anyOutgoingListeners)return this;if(u){const c=this._anyOutgoingListeners;for(let r=0;r<c.length;r++)if(u===c[r])return c.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(u){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const r of c)r.apply(this,u.data)}}}function sa(o){o=o||{},this.ms=o.min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}sa.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var u=Math.random(),c=Math.floor(u*this.jitter*o);o=(Math.floor(u*10)&1)==0?o-c:o+c}return Math.min(o,this.max)|0};sa.prototype.reset=function(){this.attempts=0};sa.prototype.setMin=function(o){this.ms=o};sa.prototype.setMax=function(o){this.max=o};sa.prototype.setJitter=function(o){this.jitter=o};class Ss extends ne{constructor(u,c){var r;super(),this.nsps={},this.subs=[],u&&typeof u=="object"&&(c=u,u=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,wu(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((r=c.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new sa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=u;const m=c.parser||Rg;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(u){return arguments.length?(this._reconnection=!!u,u||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(u){return u===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=u,this)}reconnectionDelay(u){var c;return u===void 0?this._reconnectionDelay:(this._reconnectionDelay=u,(c=this.backoff)===null||c===void 0||c.setMin(u),this)}randomizationFactor(u){var c;return u===void 0?this._randomizationFactor:(this._randomizationFactor=u,(c=this.backoff)===null||c===void 0||c.setJitter(u),this)}reconnectionDelayMax(u){var c;return u===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=u,(c=this.backoff)===null||c===void 0||c.setMax(u),this)}timeout(u){return arguments.length?(this._timeout=u,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(u){if(~this._readyState.indexOf("open"))return this;this.engine=new mg(this.uri,this.opts);const c=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const m=Je(c,"open",function(){r.onopen(),u&&u()}),v=O=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",O),u?u(O):this.maybeReconnectOnOpen()},A=Je(c,"error",v);if(this._timeout!==!1){const O=this._timeout,g=this.setTimeoutFn(()=>{m(),v(new Error("timeout")),c.close()},O);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(m),this.subs.push(A),this}connect(u){return this.open(u)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const u=this.engine;this.subs.push(Je(u,"ping",this.onping.bind(this)),Je(u,"data",this.ondata.bind(this)),Je(u,"error",this.onerror.bind(this)),Je(u,"close",this.onclose.bind(this)),Je(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(u){try{this.decoder.add(u)}catch(c){this.onclose("parse error",c)}}ondecoded(u){Uu(()=>{this.emitReserved("packet",u)},this.setTimeoutFn)}onerror(u){this.emitReserved("error",u)}socket(u,c){let r=this.nsps[u];return r?this._autoConnect&&!r.active&&r.connect():(r=new cm(this,u,c),this.nsps[u]=r),r}_destroy(u){const c=Object.keys(this.nsps);for(const r of c)if(this.nsps[r].active)return;this._close()}_packet(u){const c=this.encoder.encode(u);for(let r=0;r<c.length;r++)this.engine.write(c[r],u.options)}cleanup(){this.subs.forEach(u=>u()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(u,c){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",u,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const u=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{u.skipReconnect||(this.emitReserved("reconnect_attempt",u.backoff.attempts),!u.skipReconnect&&u.open(m=>{m?(u._reconnecting=!1,u.reconnect(),this.emitReserved("reconnect_error",m)):u.onreconnect()}))},c);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const u=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",u)}}const ci={};function xu(o,u){typeof o=="object"&&(u=o,o=void 0),u=u||{};const c=yg(o,u.path||"/socket.io"),r=c.source,m=c.id,v=c.path,A=ci[m]&&v in ci[m].nsps,O=u.forceNew||u["force new connection"]||u.multiplex===!1||A;let g;return O?g=new Ss(r,u):(ci[m]||(ci[m]=new Ss(r,u)),g=ci[m]),c.query&&!u.query&&(u.query=c.queryKey),g.socket(c.path,u)}Object.assign(xu,{Manager:Ss,Socket:cm,io:xu,connect:xu});function Cg({code:o,isConnected:u,onCreateRoom:c,onJoinRoom:r,joinCode:m,setJoinCode:v}){const A=()=>{if(m){const g=m.trim();r(g)}},O=g=>{g.key==="Enter"&&A()};return W.jsx("div",{className:"mb-2",children:o?W.jsx(W.Fragment,{children:W.jsxs("p",{className:"text-lg",children:["Code: ",W.jsx("strong",{className:"text-3xl",children:o})]})}):W.jsxs(W.Fragment,{children:[W.jsx("button",{onClick:c,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Create Room"}),W.jsxs("div",{className:"inline-block whitespace-nowrap",children:[W.jsx("input",{type:"text",className:"width-212",value:m,onChange:g=>v(g.target.value),onKeyDown:O,placeholder:"Enter code to join"}),W.jsx("button",{onClick:A,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})]})})}function Dg({files:o,setFiles:u,dataChannels:c,dataChannelsRef:r,useFallback:m,socket:v,code:A,socketId:O,localFilesRef:g,downloadStates:d,setDownloadStates:M,cancelDownload:z,cancelRequestsRef:U,downloadCounts:Y,handleDeleteFile:G,SERVER_URL:Z}){const vt=ct.useRef(null),J=ct.useRef({}),Dt=(H,rt=256)=>new Promise(dt=>{if(!H.type.startsWith("image/")){dt(null);return}const st=new Image,At=document.createElement("canvas"),Vt=At.getContext("2d");st.onload=()=>{const{width:ie,height:Ft}=st,C=Math.min(rt/ie,rt/Ft,1);At.width=ie*C,At.height=Ft*C,Vt.drawImage(st,0,0,At.width,At.height),At.toBlob(X=>{dt(X)},"image/jpeg",.7)},st.src=URL.createObjectURL(H)}),it=async()=>{const H=vt.current.files;if(!H||H.length===0)return;const rt=Array.from(H).map(dt=>({name:dt.name,size:dt.size,peerId:O,thumbnail:!!dt.type.startsWith("image/")}));if(m){const dt=new FormData;Array.from(H).forEach(st=>dt.append("files",st));try{if(!(await fetch(`${Z}/api/upload/${A}`,{method:"POST",body:dt,headers:{"x-socket-id":O}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",rt)}catch(st){console.error("Error uploading files:",st)}}else{const dt=await Promise.all(Array.from(H).map(async st=>({name:st.name,thumbnail:st.type.startsWith("image/")?await Dt(st):null})));g.current={...g.current,...Object.fromEntries(Array.from(H).map(st=>[st.name,st])),...Object.fromEntries(dt.filter(({thumbnail:st})=>st).map(({name:st,thumbnail:At})=>[`${st}_thumbnail`,At]))},dt.forEach(({name:st,thumbnail:At})=>{if(At){const Vt=URL.createObjectURL(At);J.current[st]=Vt,console.log(`Cached thumbnail URL for ${st}: ${Vt}`)}}),console.log("Stored files in localFilesRef:",Object.keys(g.current)),v.emit("file-list",{code:A,files:rt}),console.log("Shared file list:",rt)}u(dt=>[...dt,...rt]),vt.current.value=""},Qt=async H=>{if(U.current.has(H.name)&&(U.current.delete(H.name),console.log(`Cleared previous cancel for ${H.name}, starting new request to ${H.peerId}`)),d[H.name]?.status==="downloading"){z(H.name,H.peerId),console.log(`Canceling download for ${H.name}`);return}if(M(rt=>({...rt,[H.name]:{status:"downloading",progress:0,total:H.size,peerId:H.peerId}})),console.log(`Starting download for ${H.name}, downloadStates:`,{...d,[H.name]:{status:"downloading",progress:0}}),m){v.emit("download-start-fallback",{code:A,fileName:H.name});const rt=document.createElement("a");rt.href=`${Z}/uploads/${H.path.split("/").pop()}`,rt.download=H.name,rt.click(),console.log(`Downloading file via server: ${H.name}`),M(dt=>({...dt,[H.name]:{status:"completed",progress:100}})),v.emit("download-end-fallback",{code:A,fileName:H.name})}else if(H.peerId===O){const rt=g.current[H.name]||o.find(dt=>dt.name===H.name)?.file;if(rt){v.emit("download-start-fallback",{code:A,fileName:H.name});const dt=URL.createObjectURL(rt),st=document.createElement("a");st.href=dt,st.download=H.name,st.click(),URL.revokeObjectURL(dt),console.log(`Downloaded local file: ${H.name}`),M(At=>({...At,[H.name]:{status:"saved",progress:100}})),v.emit("download-end-fallback",{code:A,fileName:H.name})}else console.error(`Local file not found: ${H.name}`)}else c[H.peerId]?.readyState==="open"?(r.current[H.peerId].send(JSON.stringify({type:"request-file",fileName:H.name})),console.log(`Requested file ${H.name} from ${H.peerId}`)):console.error(`Data channel not open for peer ${H.peerId}`)},Yt=H=>{const rt=H.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"}[rt]||"unknown.png"}`},Gt=H=>H?H<1024?`${H} B`:H<1024*1024?`${(H/1024).toFixed(2)} KB`:H<1024*1024*1024?`${(H/(1024*1024)).toFixed(2)} MB`:`${(H/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",I=H=>{if(!H.thumbnail)return console.log(`No thumbnail flag for ${H.name}`),null;if(J.current[H.name])return J.current[H.name];const rt=g.current[`${H.name}_thumbnail`];if(rt){const dt=URL.createObjectURL(rt);return J.current[H.name]=dt,console.log(`Generated and cached thumbnail URL for ${H.name}: ${dt}`),dt}return console.log(`No thumbnail available for ${H.name}`),null};return ct.useEffect(()=>()=>{Object.values(J.current).forEach(H=>{H&&URL.revokeObjectURL(H)}),J.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),W.jsxs("div",{children:[W.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),W.jsx("input",{type:"file",multiple:!0,ref:vt,onChange:it,className:"mb-2"}),W.jsx("ul",{className:"space-y-2",children:o.map((H,rt)=>(d[H.name]?.status==="downloading"||d[H.name]?.status,W.jsxs("li",{className:"flex items-center space-x-2",children:[H.thumbnail&&W.jsx("img",{src:I(H)||Yt(H.name),alt:`${H.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${H.name}, requesting...`)}})||W.jsx("img",{src:Yt(H.name),alt:"file icon",className:"w-6 h-6",onError:dt=>dt.target.style.display="none"}),W.jsxs("span",{children:["(",Gt(H.size),")"]}),H.peerId!==O&&W.jsx("button",{onClick:()=>Qt(H),className:`px-4 py-2 rounded ${d[H.name]?.status==="saved"?"bg-green-500 text-white":d[H.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:d[H.name]?.status==="saved"?"Saved ✓":d[H.name]?.status==="downloading"?`Cancel ${(d[H.name]?.progress||0).toFixed(2)}%`:"Download"}),H.peerId===O&&W.jsx(W.Fragment,{children:W.jsx("button",{onClick:()=>G(H.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"})}),Y[H.name]>0&&W.jsxs("span",{children:[Y[H.name]," downloading"]}),W.jsx("span",{children:H.name})]},rt)))})]})}function Ng({textHistory:o,setTextHistory:u,dataChannels:c,useFallback:r,socket:m,code:v,copied:A,setCopied:O}){const[g,d]=ct.useState(""),M=()=>{g.trim()&&(console.log("handleSend:",{dataChannels:c,useFallback:r,code:v}),!r&&Object.keys(c).length>0?Object.keys(c).forEach(Y=>{c[Y].readyState==="open"&&(c[Y].send(JSON.stringify({type:"text",text:g})),console.log(`Sent text to peer ${Y}`))}):r&&m&&v&&(m.emit("text",{code:v,text:g}),console.log(`Sending text via socket for room ${v}: ${g}`)),u(Y=>[...Y,g]),d(""))},z=Y=>{Y.key==="Enter"&&!Y.shiftKey&&(Y.preventDefault(),M())},U=Y=>{const G=document.getElementById(`msg-${Y}`);G?(navigator.clipboard.writeText(G.textContent),O(`msg-${Y}`),setTimeout(()=>O(null),2e3)):console.warn(`Element msg-${Y} not found or selection API unavailable`)};return W.jsxs("div",{className:"mb-4",children:[W.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),W.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:g,onChange:Y=>d(Y.target.value),onKeyDown:z,placeholder:"Enter text to share"}),W.jsx("button",{className:"bg-emerald-600 text-darkPurple px-4 py-2 rounded hover:bg-emerald-500",onClick:M,children:"Send"}),W.jsx("br",{}),W.jsxs("div",{className:"mt-2",id:"textview",children:[W.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),W.jsx("ul",{className:"list-disc pl-5",children:o?.length>0?o.map((Y,G)=>W.jsxs("li",{children:[W.jsx("button",{className:"bg-sky-600 text-darkPurple px-4 py-2 rounded hover:bg-sky-500",onClick:()=>U(G),children:A===`msg-${G}`?"Copied!":"{}"}),W.jsx("pre",{id:`msg-${G}`,children:Y})]},G)):W.jsx("li",{children:W.jsx("pre",{children:"No messages yet"})})})]})]})}var ra={},ls={exports:{}},as,Ud;function Mg(){if(Ud)return as;Ud=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return as=o,as}var is,wd;function Bg(){if(wd)return is;wd=1;var o=Mg();function u(){}function c(){}return c.resetWarningCache=u,is=function(){function r(A,O,g,d,M,z){if(z!==o){var U=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}}r.isRequired=r;function m(){return r}var v={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:m,element:r,elementType:r,instanceOf:m,node:r,objectOf:m,oneOf:m,oneOfType:m,shape:m,exact:m,checkPropTypes:c,resetWarningCache:u};return v.PropTypes=v,v},is}var qd;function rm(){return qd||(qd=1,ls.exports=Bg()()),ls.exports}var us,Ld;function sm(){return Ld||(Ld=1,us={L:1,M:0,Q:3,H:2}),us}var cs,Hd;function om(){return Hd||(Hd=1,cs={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),cs}var rs,jd;function xg(){if(jd)return rs;jd=1;var o=om();function u(c){this.mode=o.MODE_8BIT_BYTE,this.data=c}return u.prototype={getLength:function(c){return this.data.length},write:function(c){for(var r=0;r<this.data.length;r++)c.put(this.data.charCodeAt(r),8)}},rs=u,rs}var ss,Yd;function Ug(){if(Yd)return ss;Yd=1;var o=sm();function u(c,r){this.totalCount=c,this.dataCount=r}return u.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],u.getRSBlocks=function(c,r){var m=u.getRsBlockTable(c,r);if(m==null)throw new Error("bad rs block @ typeNumber:"+c+"/errorCorrectLevel:"+r);for(var v=m.length/3,A=new Array,O=0;O<v;O++)for(var g=m[O*3+0],d=m[O*3+1],M=m[O*3+2],z=0;z<g;z++)A.push(new u(d,M));return A},u.getRsBlockTable=function(c,r){switch(r){case o.L:return u.RS_BLOCK_TABLE[(c-1)*4+0];case o.M:return u.RS_BLOCK_TABLE[(c-1)*4+1];case o.Q:return u.RS_BLOCK_TABLE[(c-1)*4+2];case o.H:return u.RS_BLOCK_TABLE[(c-1)*4+3];default:return}},ss=u,ss}var os,Qd;function wg(){if(Qd)return os;Qd=1;function o(){this.buffer=new Array,this.length=0}return o.prototype={get:function(u){var c=Math.floor(u/8);return(this.buffer[c]>>>7-u%8&1)==1},put:function(u,c){for(var r=0;r<c;r++)this.putBit((u>>>c-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(u){var c=Math.floor(this.length/8);this.buffer.length<=c&&this.buffer.push(0),u&&(this.buffer[c]|=128>>>this.length%8),this.length++}},os=o,os}var fs,Gd;function fm(){if(Gd)return fs;Gd=1;for(var o={glog:function(c){if(c<1)throw new Error("glog("+c+")");return o.LOG_TABLE[c]},gexp:function(c){for(;c<0;)c+=255;for(;c>=256;)c-=255;return o.EXP_TABLE[c]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},u=0;u<8;u++)o.EXP_TABLE[u]=1<<u;for(var u=8;u<256;u++)o.EXP_TABLE[u]=o.EXP_TABLE[u-4]^o.EXP_TABLE[u-5]^o.EXP_TABLE[u-6]^o.EXP_TABLE[u-8];for(var u=0;u<255;u++)o.LOG_TABLE[o.EXP_TABLE[u]]=u;return fs=o,fs}var hs,Xd;function hm(){if(Xd)return hs;Xd=1;var o=fm();function u(c,r){if(c.length==null)throw new Error(c.length+"/"+r);for(var m=0;m<c.length&&c[m]==0;)m++;this.num=new Array(c.length-m+r);for(var v=0;v<c.length-m;v++)this.num[v]=c[v+m]}return u.prototype={get:function(c){return this.num[c]},getLength:function(){return this.num.length},multiply:function(c){for(var r=new Array(this.getLength()+c.getLength()-1),m=0;m<this.getLength();m++)for(var v=0;v<c.getLength();v++)r[m+v]^=o.gexp(o.glog(this.get(m))+o.glog(c.get(v)));return new u(r,0)},mod:function(c){if(this.getLength()-c.getLength()<0)return this;for(var r=o.glog(this.get(0))-o.glog(c.get(0)),m=new Array(this.getLength()),v=0;v<this.getLength();v++)m[v]=this.get(v);for(var v=0;v<c.getLength();v++)m[v]^=o.gexp(o.glog(c.get(v))+r);return new u(m,0).mod(c)}},hs=u,hs}var ds,$d;function qg(){if($d)return ds;$d=1;var o=om(),u=hm(),c=fm(),r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(v){for(var A=v<<10;m.getBCHDigit(A)-m.getBCHDigit(m.G15)>=0;)A^=m.G15<<m.getBCHDigit(A)-m.getBCHDigit(m.G15);return(v<<10|A)^m.G15_MASK},getBCHTypeNumber:function(v){for(var A=v<<12;m.getBCHDigit(A)-m.getBCHDigit(m.G18)>=0;)A^=m.G18<<m.getBCHDigit(A)-m.getBCHDigit(m.G18);return v<<12|A},getBCHDigit:function(v){for(var A=0;v!=0;)A++,v>>>=1;return A},getPatternPosition:function(v){return m.PATTERN_POSITION_TABLE[v-1]},getMask:function(v,A,O){switch(v){case r.PATTERN000:return(A+O)%2==0;case r.PATTERN001:return A%2==0;case r.PATTERN010:return O%3==0;case r.PATTERN011:return(A+O)%3==0;case r.PATTERN100:return(Math.floor(A/2)+Math.floor(O/3))%2==0;case r.PATTERN101:return A*O%2+A*O%3==0;case r.PATTERN110:return(A*O%2+A*O%3)%2==0;case r.PATTERN111:return(A*O%3+(A+O)%2)%2==0;default:throw new Error("bad maskPattern:"+v)}},getErrorCorrectPolynomial:function(v){for(var A=new u([1],0),O=0;O<v;O++)A=A.multiply(new u([1,c.gexp(O)],0));return A},getLengthInBits:function(v,A){if(1<=A&&A<10)switch(v){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:throw new Error("mode:"+v)}else if(A<27)switch(v){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw new Error("mode:"+v)}else if(A<41)switch(v){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:throw new Error("mode:"+v)}else throw new Error("type:"+A)},getLostPoint:function(v){for(var A=v.getModuleCount(),O=0,g=0;g<A;g++)for(var d=0;d<A;d++){for(var M=0,z=v.isDark(g,d),U=-1;U<=1;U++)if(!(g+U<0||A<=g+U))for(var Y=-1;Y<=1;Y++)d+Y<0||A<=d+Y||U==0&&Y==0||z==v.isDark(g+U,d+Y)&&M++;M>5&&(O+=3+M-5)}for(var g=0;g<A-1;g++)for(var d=0;d<A-1;d++){var G=0;v.isDark(g,d)&&G++,v.isDark(g+1,d)&&G++,v.isDark(g,d+1)&&G++,v.isDark(g+1,d+1)&&G++,(G==0||G==4)&&(O+=3)}for(var g=0;g<A;g++)for(var d=0;d<A-6;d++)v.isDark(g,d)&&!v.isDark(g,d+1)&&v.isDark(g,d+2)&&v.isDark(g,d+3)&&v.isDark(g,d+4)&&!v.isDark(g,d+5)&&v.isDark(g,d+6)&&(O+=40);for(var d=0;d<A;d++)for(var g=0;g<A-6;g++)v.isDark(g,d)&&!v.isDark(g+1,d)&&v.isDark(g+2,d)&&v.isDark(g+3,d)&&v.isDark(g+4,d)&&!v.isDark(g+5,d)&&v.isDark(g+6,d)&&(O+=40);for(var Z=0,d=0;d<A;d++)for(var g=0;g<A;g++)v.isDark(g,d)&&Z++;var vt=Math.abs(100*Z/A/A-50)/5;return O+=vt*10,O}};return ds=m,ds}var ms,Vd;function Lg(){if(Vd)return ms;Vd=1;var o=xg(),u=Ug(),c=wg(),r=qg(),m=hm();function v(O,g){this.typeNumber=O,this.errorCorrectLevel=g,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var A=v.prototype;return A.addData=function(O){var g=new o(O);this.dataList.push(g),this.dataCache=null},A.isDark=function(O,g){if(O<0||this.moduleCount<=O||g<0||this.moduleCount<=g)throw new Error(O+","+g);return this.modules[O][g]},A.getModuleCount=function(){return this.moduleCount},A.make=function(){if(this.typeNumber<1){var O=1;for(O=1;O<40;O++){for(var g=u.getRSBlocks(O,this.errorCorrectLevel),d=new c,M=0,z=0;z<g.length;z++)M+=g[z].dataCount;for(var z=0;z<this.dataList.length;z++){var U=this.dataList[z];d.put(U.mode,4),d.put(U.getLength(),r.getLengthInBits(U.mode,O)),U.write(d)}if(d.getLengthInBits()<=M*8)break}this.typeNumber=O}this.makeImpl(!1,this.getBestMaskPattern())},A.makeImpl=function(O,g){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var d=0;d<this.moduleCount;d++){this.modules[d]=new Array(this.moduleCount);for(var M=0;M<this.moduleCount;M++)this.modules[d][M]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(O,g),this.typeNumber>=7&&this.setupTypeNumber(O),this.dataCache==null&&(this.dataCache=v.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,g)},A.setupPositionProbePattern=function(O,g){for(var d=-1;d<=7;d++)if(!(O+d<=-1||this.moduleCount<=O+d))for(var M=-1;M<=7;M++)g+M<=-1||this.moduleCount<=g+M||(0<=d&&d<=6&&(M==0||M==6)||0<=M&&M<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=M&&M<=4?this.modules[O+d][g+M]=!0:this.modules[O+d][g+M]=!1)},A.getBestMaskPattern=function(){for(var O=0,g=0,d=0;d<8;d++){this.makeImpl(!0,d);var M=r.getLostPoint(this);(d==0||O>M)&&(O=M,g=d)}return g},A.createMovieClip=function(O,g,d){var M=O.createEmptyMovieClip(g,d),z=1;this.make();for(var U=0;U<this.modules.length;U++)for(var Y=U*z,G=0;G<this.modules[U].length;G++){var Z=G*z,vt=this.modules[U][G];vt&&(M.beginFill(0,100),M.moveTo(Z,Y),M.lineTo(Z+z,Y),M.lineTo(Z+z,Y+z),M.lineTo(Z,Y+z),M.endFill())}return M},A.setupTimingPattern=function(){for(var O=8;O<this.moduleCount-8;O++)this.modules[O][6]==null&&(this.modules[O][6]=O%2==0);for(var g=8;g<this.moduleCount-8;g++)this.modules[6][g]==null&&(this.modules[6][g]=g%2==0)},A.setupPositionAdjustPattern=function(){for(var O=r.getPatternPosition(this.typeNumber),g=0;g<O.length;g++)for(var d=0;d<O.length;d++){var M=O[g],z=O[d];if(this.modules[M][z]==null)for(var U=-2;U<=2;U++)for(var Y=-2;Y<=2;Y++)U==-2||U==2||Y==-2||Y==2||U==0&&Y==0?this.modules[M+U][z+Y]=!0:this.modules[M+U][z+Y]=!1}},A.setupTypeNumber=function(O){for(var g=r.getBCHTypeNumber(this.typeNumber),d=0;d<18;d++){var M=!O&&(g>>d&1)==1;this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=M}for(var d=0;d<18;d++){var M=!O&&(g>>d&1)==1;this.modules[d%3+this.moduleCount-8-3][Math.floor(d/3)]=M}},A.setupTypeInfo=function(O,g){for(var d=this.errorCorrectLevel<<3|g,M=r.getBCHTypeInfo(d),z=0;z<15;z++){var U=!O&&(M>>z&1)==1;z<6?this.modules[z][8]=U:z<8?this.modules[z+1][8]=U:this.modules[this.moduleCount-15+z][8]=U}for(var z=0;z<15;z++){var U=!O&&(M>>z&1)==1;z<8?this.modules[8][this.moduleCount-z-1]=U:z<9?this.modules[8][15-z-1+1]=U:this.modules[8][15-z-1]=U}this.modules[this.moduleCount-8][8]=!O},A.mapData=function(O,g){for(var d=-1,M=this.moduleCount-1,z=7,U=0,Y=this.moduleCount-1;Y>0;Y-=2)for(Y==6&&Y--;;){for(var G=0;G<2;G++)if(this.modules[M][Y-G]==null){var Z=!1;U<O.length&&(Z=(O[U]>>>z&1)==1);var vt=r.getMask(g,M,Y-G);vt&&(Z=!Z),this.modules[M][Y-G]=Z,z--,z==-1&&(U++,z=7)}if(M+=d,M<0||this.moduleCount<=M){M-=d,d=-d;break}}},v.PAD0=236,v.PAD1=17,v.createData=function(O,g,d){for(var M=u.getRSBlocks(O,g),z=new c,U=0;U<d.length;U++){var Y=d[U];z.put(Y.mode,4),z.put(Y.getLength(),r.getLengthInBits(Y.mode,O)),Y.write(z)}for(var G=0,U=0;U<M.length;U++)G+=M[U].dataCount;if(z.getLengthInBits()>G*8)throw new Error("code length overflow. ("+z.getLengthInBits()+">"+G*8+")");for(z.getLengthInBits()+4<=G*8&&z.put(0,4);z.getLengthInBits()%8!=0;)z.putBit(!1);for(;!(z.getLengthInBits()>=G*8||(z.put(v.PAD0,8),z.getLengthInBits()>=G*8));)z.put(v.PAD1,8);return v.createBytes(z,M)},v.createBytes=function(O,g){for(var d=0,M=0,z=0,U=new Array(g.length),Y=new Array(g.length),G=0;G<g.length;G++){var Z=g[G].dataCount,vt=g[G].totalCount-Z;M=Math.max(M,Z),z=Math.max(z,vt),U[G]=new Array(Z);for(var J=0;J<U[G].length;J++)U[G][J]=255&O.buffer[J+d];d+=Z;var Dt=r.getErrorCorrectPolynomial(vt),it=new m(U[G],Dt.getLength()-1),Qt=it.mod(Dt);Y[G]=new Array(Dt.getLength()-1);for(var J=0;J<Y[G].length;J++){var Yt=J+Qt.getLength()-Y[G].length;Y[G][J]=Yt>=0?Qt.get(Yt):0}}for(var Gt=0,J=0;J<g.length;J++)Gt+=g[J].totalCount;for(var I=new Array(Gt),H=0,J=0;J<M;J++)for(var G=0;G<g.length;G++)J<U[G].length&&(I[H++]=U[G][J]);for(var J=0;J<z;J++)for(var G=0;G<g.length;G++)J<Y[G].length&&(I[H++]=Y[G][J]);return I},ms=v,ms}var Du={},Zd;function Hg(){if(Zd)return Du;Zd=1,Object.defineProperty(Du,"__esModule",{value:!0});var o=Object.assign||function(d){for(var M=1;M<arguments.length;M++){var z=arguments[M];for(var U in z)Object.prototype.hasOwnProperty.call(z,U)&&(d[U]=z[U])}return d},u=rm(),c=v(u),r=si(),m=v(r);function v(d){return d&&d.__esModule?d:{default:d}}function A(d,M){var z={};for(var U in d)M.indexOf(U)>=0||Object.prototype.hasOwnProperty.call(d,U)&&(z[U]=d[U]);return z}var O={bgColor:c.default.oneOfType([c.default.object,c.default.string]).isRequired,bgD:c.default.string.isRequired,fgColor:c.default.oneOfType([c.default.object,c.default.string]).isRequired,fgD:c.default.string.isRequired,size:c.default.number.isRequired,title:c.default.string,viewBoxSize:c.default.number.isRequired,xmlns:c.default.string},g=(0,r.forwardRef)(function(d,M){var z=d.bgColor,U=d.bgD,Y=d.fgD,G=d.fgColor,Z=d.size,vt=d.title,J=d.viewBoxSize,Dt=d.xmlns,it=Dt===void 0?"http://www.w3.org/2000/svg":Dt,Qt=A(d,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return m.default.createElement("svg",o({},Qt,{height:Z,ref:M,viewBox:"0 0 "+J+" "+J,width:Z,xmlns:it}),vt?m.default.createElement("title",null,vt):null,m.default.createElement("path",{d:U,fill:z}),m.default.createElement("path",{d:Y,fill:G}))});return g.displayName="QRCodeSvg",g.propTypes=O,Du.default=g,Du}var Kd;function jg(){if(Kd)return ra;Kd=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.QRCode=void 0;var o=Object.assign||function(Z){for(var vt=1;vt<arguments.length;vt++){var J=arguments[vt];for(var Dt in J)Object.prototype.hasOwnProperty.call(J,Dt)&&(Z[Dt]=J[Dt])}return Z},u=rm(),c=z(u),r=sm(),m=z(r),v=Lg(),A=z(v),O=si(),g=z(O),d=Hg(),M=z(d);function z(Z){return Z&&Z.__esModule?Z:{default:Z}}function U(Z,vt){var J={};for(var Dt in Z)vt.indexOf(Dt)>=0||Object.prototype.hasOwnProperty.call(Z,Dt)&&(J[Dt]=Z[Dt]);return J}var Y={bgColor:c.default.oneOfType([c.default.object,c.default.string]),fgColor:c.default.oneOfType([c.default.object,c.default.string]),level:c.default.string,size:c.default.number,value:c.default.string.isRequired},G=(0,O.forwardRef)(function(Z,vt){var J=Z.bgColor,Dt=J===void 0?"#FFFFFF":J,it=Z.fgColor,Qt=it===void 0?"#000000":it,Yt=Z.level,Gt=Yt===void 0?"L":Yt,I=Z.size,H=I===void 0?256:I,rt=Z.value,dt=U(Z,["bgColor","fgColor","level","size","value"]),st=new A.default(-1,m.default[Gt]);st.addData(rt),st.make();var At=st.modules;return g.default.createElement(M.default,o({},dt,{bgColor:Dt,bgD:At.map(function(Vt,ie){return Vt.map(function(Ft,C){return Ft?"":"M "+C+" "+ie+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:Qt,fgD:At.map(function(Vt,ie){return Vt.map(function(Ft,C){return Ft?"M "+C+" "+ie+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:vt,size:H,viewBoxSize:At.length}))});return ra.QRCode=G,G.displayName="QRCode",G.propTypes=Y,ra.default=G,ra}var Yg=jg();const Qg=A0(Yg),Jd="",K=xu("/",{transports:["polling"],withCredentials:!0});function Gg(){const[o,u]=ct.useState(!0),[c,r]=ct.useState(""),[m,v]=ct.useState(""),[A,O]=ct.useState(!1),[g,d]=ct.useState(!1),[M,z]=ct.useState(!1),[U,Y]=ct.useState(!1),[G,Z]=ct.useState(600),[vt,J]=ct.useState([]),[Dt,it]=ct.useState(""),[Qt,Yt]=ct.useState({}),[Gt,I]=ct.useState([]),[H,rt]=ct.useState({}),[dt,st]=ct.useState([]),[At,Vt]=ct.useState({}),[ie,Ft]=ct.useState(0),C=ct.useRef({}),X=ct.useRef([]),tt=ct.useRef({}),yt=ct.useRef(new Set),Nt=ct.useRef({}),p=ct.useRef(new Set),N=ct.useRef({}),j=ct.useRef({}),V=ct.useRef({}),et=ct.useRef({}),gt=ct.useRef(0),at=ct.useRef({}),Bt=ct.useRef({}),Ht=ct.useRef(vt),en=ct.useRef(null),[yl,oa]=ct.useState(0),[fa,nn]=ct.useState(!1);window.binaryStateRef=at,window.localFilesRef=C,window.downloadStates=H,ct.useEffect(()=>{window.downloadStates=H},[H]),ct.useEffect(()=>{Ht.current=vt},[vt]);const gl=window.location.protocol,vl=window.location.hostname||"localhost",oi="",pl=(c||"").replace(/ /g,"_"),bl=`${gl}//${vl}${oi}/room/${pl||""}`,ha=()=>{nn(h=>!h)},Sl=async h=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const B=h==="link"?bl:pl;await navigator.clipboard.writeText(B),O(h),setTimeout(()=>O(null),2e3)}catch(B){console.error(`Failed to copy ${h}:`,B)}},qu=async()=>{try{const h=await fetch(`${Jd}/api/generate-code`,{method:"GET",credentials:"include"}),{code:B,error:Q}=await h.json();if(Q){it(Q);return}r(B),d(!0),it(""),Y(!1),K.emit("create",B,S=>{S?.error?(console.error(`Create room failed: ${S.error}`),it(`Failed to create room: ${S.error}`)):console.log(`Successfully created room ${B}`)})}catch(h){console.error("Error generating code:",h),it("Failed to generate room code")}},El=h=>{if(!h){it("Please enter a room code");return}const B=h.replace(/_/g," ");r(B),it(""),Y(!1),K.emit("join",B,Q=>{if(!Q||Q.error){const S=Q?.error||"Failed to join room";S.includes("Already in room")?(I([]),it(""),Ft(q=>q+1),console.error(`Re-enter room: ${S}`)):(console.error(`Join room failed: ${S}`),retryCount<3?(console.log(`Retrying join room ${B}, attempt ${retryCount+1}/3`),setTimeout(()=>El(h,retryCount+1),2e3)):(_n(),it(`Failed to join room after retries: ${S}`),window.history.pushState({},"","/")))}else console.log(`Successfully joined room ${B}`),it("")})},ye=()=>{K.emit("leave",c,h=>{h?.error?(console.error(`Leave room failed: ${h.error}`),it(`Failed to leave room: ${h.error}`),_n(),I([]),r(""),v(""),C.current={},X.current=[],window.history.pushState({},"","/")):(console.log(`Successfully left room ${c}: ${h.message}`),_n(),I([]),r(""),v(""),C.current={},X.current=[],window.history.pushState({},"","/"))})},_n=()=>{r(""),d(!1),z(!1),Y(!1),Z(600),I([]),J([]),it(""),Yt({}),st([]),Vt({}),C.current={},Object.values(N.current).forEach(h=>{h.onicecandidate=null,h.oniceconnectionstatechange=null,h.onicecandidateerror=null,h.ondatachannel=null,h.onnegotiationneeded=null,h.close()}),Object.values(j.current).forEach(h=>{h.readyState==="open"&&h.close()}),Object.values(V.current).forEach(h=>{h.readyState==="open"&&h.close()}),N.current={},j.current={},V.current={},Object.keys(et.current).forEach(h=>clearTimeout(et.current[h])),et.current={},tt.current={},yt.current=new Set,Nt.current={},p.current=new Set,at.current={},Bt.current={}},_l=(h,B,Q=!1)=>{if(!h||h===K.id||h==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${h}`);return}if(U){console.log(`Skipping WebRTC setup for ${h} due to fallback mode`);return}if(N.current[h]){console.log(`WebRTC connection already exists for ${h}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${h} (${Q?"offerer":"answerer"}, attempt ${tt.current[h]||1}/3)`);const S=new RTCPeerConnection({iceServers:[{urls:"turn:twily.info:5349",username:"ana",credential:"butt"},{urls:"stun:stun.l.google.com:19302"}]});tt.current[h]=(tt.current[h]||0)+1,N.current[h]=S,S.ondatachannel=$=>{const k=$.channel;k.label==="file-share"?(j.current[h]=k,k.onopen=()=>{console.log(`Main DataChannel opened with peer ${h}`),z(!0),Z(0),Object.keys(et.current).forEach(ot=>{console.log(`Clearing timeout for ${ot}`),clearTimeout(et.current[ot])}),et.current={},tt.current[h]=0,j.current.true&&delete j.current.true,Yt({...j.current});const Ot=X.current.map(ot=>({name:ot.name,size:ot.size,peerId:ot.peerId,thumbnail:!!C.current[`${ot.name}_thumbnail`]}));k.send(JSON.stringify({type:"file-list",files:Ot})),Ot.forEach(ot=>{const le=`${ot.name}:${ot.peerId}`;ot.thumbnail&&ot.peerId!==K.id&&!C.current[`${ot.name}_thumbnail`]&&!p.current.has(le)&&Tn(ot)}),g&&setTimeout(()=>{k.readyState==="open"?(k.send(JSON.stringify({type:"text-history",history:Ht.current})),console.log(`Sent text-history to ${h}:`,Ht.current)):console.warn(`Main channel not open for ${h}, skipping text-history send`)},1e3)},k.onmessage=Ot=>An(h,Ot),k.onclose=()=>{console.log(`Main DataChannel closed with peer ${h}`),delete N.current[h],Yt({...j.current})},k.onerror=Ot=>{console.error(`Main DataChannel error with ${h}:`,Ot)}):k.label==="binary-transfer"&&(k.binaryType="arraybuffer",V.current[h]=k,k.onmessage=Ot=>de(h,Ot),k.onclose=()=>{console.log(`Binary channel closed with peer ${h}`)},k.onerror=Ot=>{console.error(`Binary channel error with ${h}:`,Ot)})};let q=null,ut=null;return Q&&(q=S.createDataChannel("file-share"),j.current[h]=q,q.onopen=()=>{console.log(`Main DataChannel opened with peer ${h} (joiner)`),z(!0),Z(0),Object.keys(et.current).forEach(k=>{console.log(`Clearing timeout for ${k}`),clearTimeout(et.current[k])}),et.current={},tt.current[h]=0,j.current.true&&delete j.current.true,Yt({...j.current});const $=X.current.map(k=>({name:k.name,size:k.size,peerId:k.peerId,thumbnail:!!C.current[`${k.name}_thumbnail`]}));q.send(JSON.stringify({type:"file-list",files:$})),$.forEach(k=>{const Ot=`${k.name}:${k.peerId}`;k.thumbnail&&k.peerId!==K.id&&!C.current[`${k.name}_thumbnail`]&&!p.current.has(Ot)&&Tn(k)}),g&&setTimeout(()=>{q.readyState==="open"?(q.send(JSON.stringify({type:"text-history",history:Ht.current})),console.log(`Sent text-history to ${h}:`,Ht.current)):console.warn(`Main channel not open for ${h}, skipping text-history send`)},1e3)},q.onmessage=$=>An(h,$),q.onclose=()=>{console.log(`Main DataChannel closed with peer ${h}`),delete N.current[h],Yt({...j.current})},q.onerror=$=>{console.error(`Main DataChannel error with ${h}:`,$)},ut=S.createDataChannel("binary-transfer"),ut.binaryType="arraybuffer",V.current[h]=ut,ut.onmessage=$=>de(h,$),ut.onclose=()=>{console.log(`Binary channel closed with peer ${h}`)},ut.onerror=$=>{console.error(`Binary channel error with ${h}:`,$)}),S.onicecandidate=$=>{$.candidate&&B&&(K.emit("ice-candidate",{code:B,candidate:$.candidate,to:h,from:K.id}),console.log(`Sent ICE candidate to ${h} from ${K.id}: ${$.candidate.candidate}`))},S.onicecandidateerror=$=>{console.error(`ICE candidate error for ${h}:`,$)},S.oniceconnectionstatechange=()=>{console.log(`ICE state with ${h} (${g?"creator":"joiner"}): ${S.iceConnectionState}`),typeof tt.current[h]<"u"?S.iceConnectionState==="failed"||S.iceConnectionState==="disconnected"?(console.log(`WebRTC ${S.iceConnectionState} with ${h}, retrying in 5s (attempt ${tt.current[h]}/3)`),setTimeout(()=>{S.iceConnectionState!=="connected"&&!U&&tt.current[h]<3?_l(h,B,Q):S.iceConnectionState!=="connected"&&!U&&(console.log(`Max retries reached for ${h}, switching to fallback`),Y(!0),it("WebRTC connection failed after retries, using server fallback"),Z(0),I([]),J([]),g&&K.emit("fallback",{code:B}))},5e3)):S.iceConnectionState==="connected"&&(z(!0),Y(!1),it(""),clearTimeout(et.current[h]),tt.current[h]=0):(console.log(`err: peerId ${h} not found in retryCountsRef`),Y(!1))},S.onnegotiationneeded=async()=>{try{const $=await S.createOffer();await S.setLocalDescription($),K.emit("offer",{code:B,offer:S.localDescription,to:h,from:K.id}),console.log(`Sent renegotiation offer to ${h} for room ${B}`)}catch($){console.error(`Negotiation needed error for ${h}:`,$)}},Q&&S.createOffer().then($=>{S.setLocalDescription($),K.emit("offer",{code:B,offer:$,to:h,from:K.id}),console.log(`Sent offer to ${h} for room ${B}`)}).catch($=>{console.error(`Error creating offer for ${h}:`,$),it("Failed to create WebRTC offer"),Y(!0),Z(0),I([]),J([]),g&&K.emit("fallback",{code:B})}),()=>clearTimeout(et.current[h])};ct.useEffect(()=>(K.on("peer-joined",h=>{if(!h||!h.peerId||h.peerId==="true"){console.error("Invalid peer-joined data:",h);return}const{peerId:B}=h;console.log(`Peer ${B} joined room ${c}`),_l(B,c,!0)}),K.on("peer-left",h=>{const{peerId:B}=h;if(N.current[B]){N.current[B].close(),j.current[B]?.readyState==="open"&&j.current[B].close(),V.current[B]?.readyState==="open"&&V.current[B].close(),delete N.current[B],delete j.current[B],delete V.current[B],delete et.current[B],Object.keys(at.current).forEach(S=>{at.current[S].peerId===B&&(delete at.current[S],p.current.delete(`${at.current[S]?.fileName}:${B}`))}),Yt({...j.current}),console.log(`Peer ${B} left room`),I(S=>{const q=S.filter(ut=>ut.peerId!==B);return Object.values(j.current).forEach(ut=>{ut.readyState==="open"&&ut.send(JSON.stringify({type:"file-list",files:q.map($=>({name:$.name,size:$.size,peerId:$.peerId,thumbnail:!!C.current[`${$.name}_thumbnail`]}))}))}),q});let Q=!1;Object.keys(Bt.current).forEach(S=>{Bt.current[S].delete(B)&&(Q=!0,da(S,Bt.current[S].size))}),Q&&Vt(S=>({...S}))}g&&Object.keys(N.current).length===0&&(z(!1),U?(Y(!1),it("")):Z(600))}),K.on("offer",async({code:h,offer:B,to:Q,from:S})=>{if(Q!==K.id||U||h!==c){console.log(`Ignoring offer from ${S} (to=${Q}, socket.id=${K.id}, useFallback=${U}, code mismatch: ${h} vs ${c})`);return}console.log(`Received offer from ${S} for room ${h}`),N.current[S]||(console.log(`No existing connection for ${S}, setting up as answerer`),_l(S,h,!1));try{const q=N.current[S];await q.setRemoteDescription(new RTCSessionDescription(B));const ut=await q.createAnswer();await q.setLocalDescription(ut),K.emit("answer",{code:h,answer:ut,to:S,from:K.id}),console.log(`Sent answer to ${S} from ${K.id} for room ${h}`)}catch(q){console.error(`Error handling offer from ${S}:`,q),it("Failed to process WebRTC offer"),Y(!0),Z(0),I([]),J([]),g&&K.emit("fallback",{code:h})}}),K.on("answer",async({code:h,answer:B,to:Q,from:S})=>{if(Q!==K.id||U||h!==c){console.log(`Ignoring answer from ${S} (to=${Q}, socket.id=${K.id}, useFallback=${U}, code mismatch: ${h} vs ${c})`);return}if(console.log(`Received answer from ${S} for room ${h}`),N.current[S])try{await N.current[S].setRemoteDescription(new RTCSessionDescription(B)),console.log(`Successfully set remote description for answer from ${S}`)}catch(q){console.error(`Error handling answer from ${S}:`,q),it("Failed to process WebRTC answer"),Y(!0),Z(0),I([]),J([]),g&&K.emit("fallback",{code:h})}else console.warn(`No peer connection found for ${S} when receiving answer`)}),K.on("room-status",({useFallback:h,textHistory:B,files:Q})=>{h&&(console.log(`Received room-status: useFallback=${h}, textHistory=`,B),Y(h),J(B||[]),I(Q||[]),z(!0),Z(0),it("Room is in fallback mode"))}),K.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),Y(!0),it("Room switched to fallback mode"),Z(0),I([]),J([]),Vt({}),Object.values(N.current).forEach(h=>h.close()),N.current={},j.current={},V.current={},Object.keys(et.current).forEach(h=>clearTimeout(et.current[h])),et.current={},tt.current={},p.current=new Set}),K.on("ice-candidate",async({code:h,candidate:B,from:Q,to:S})=>{if(S!==K.id||h!==c){console.log(`Ignoring ICE candidate from ${Q} (to=${S}, code mismatch: ${h} vs ${c})`);return}if(console.log(`Received ICE candidate from ${Q}`),N.current[Q])try{await N.current[Q].addIceCandidate(new RTCIceCandidate(B)),console.log(`Added ICE candidate from ${Q}`)}catch(q){console.error(`Error adding ICE candidate from ${Q}:`,q)}else console.warn(`No peer connection found for ${Q} when receiving ICE candidate`)}),K.on("error",h=>{_n(),console.log("Server error:",h),it(h),h.includes("Invalid code")||h.includes("room not found")?window.history.pushState({},"","/"):h.includes("Room closed by")&&v("")}),K.on("files",h=>{console.log("Received files:",h),I(h)}),K.on("text",({text:h})=>{console.log(`Received text via socket for room ${c}:`,h),J(B=>[...B,h])}),K.on("file-list",({files:h})=>{I(B=>{const Q=h.filter(S=>!B.some(q=>q.name===S.name&&q.peerId===S.peerId)).map(S=>({...S,peerId:S.peerId||"unknown"}));return Q.forEach(S=>{const q=`${S.name}:${S.peerId}`;S.thumbnail&&!C.current[`${S.name}_thumbnail`]&&!p.current.has(q)?(console.log(`Requesting thumbnail for ${S.name} from ${S.peerId}`),Tn(S)):S.thumbnail&&console.log(`Thumbnail for ${S.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",h),[...B,...Q]})}),K.on("update-count-fallback",({fileName:h,count:B})=>{Vt(Q=>({...Q,[h]:B}))}),K.on("room-status-check",({exists:h,isInRoom:B})=>{h?B||(console.log(`Rejoining room ${c}`),El(c)):(_n(),it("Room closed"),v(""),console.log(`Room ${c} closed`))}),K.on("connect",()=>{console.log(`[CLIENT-CONNECT] Connected at ${new Date().toISOString()}`)}),K.on("disconnect",(h,B)=>{console.log(`[CLIENT-DISCONNECT] Disconnected. Reason: ${h} at ${new Date().toISOString()}`),B&&console.log(`[CLIENT-DETAILS] Message: ${B.message}, Description: ${B.description}, Context: ${B.context}`)}),K.on("ping",()=>{console.log(`[CLIENT-PING] Sent at ${new Date().toISOString()}`)}),K.on("pong",()=>{console.log(`[CLIENT-PONG] Received at ${new Date().toISOString()}`)}),()=>{K.off("peer-joined"),K.off("offer"),K.off("answer"),K.off("room-status"),K.off("fallback"),K.off("peer-left"),K.off("ice-candidate"),K.off("error"),K.off("files"),K.off("text"),K.off("file-list"),K.off("update-count-fallback"),K.off("room-status-check")}),[c,g,U]),ct.useEffect(()=>{const h=()=>{c&&(K.emit("check-room-status",c),console.log(`Reconnected, checking room status for ${c}`))};return K.io.on("reconnect",h),()=>{K.io.off("reconnect",h)}},[c]),ct.useEffect(()=>{const h=()=>{document.visibilityState==="visible"&&c&&(K.disconnected&&(K.connect(),console.log("Tab visible, reconnecting socket")),K.emit("check-room-status",c),console.log(`Tab visible, checking room status for ${c}`))};return document.addEventListener("visibilitychange",h),()=>{document.removeEventListener("visibilitychange",h)}},[c]),ct.useEffect(()=>{if(g&&G>0&&!M&&!U){const h=setInterval(()=>{Z(B=>B<=1?(_n(),it("No one joined the room"),0):B-1)},1e3);return()=>clearInterval(h)}},[g,G,M,U,c]),ct.useEffect(()=>{X.current=Gt,console.log("Updated filesRef:",X.current)},[Gt]),ct.useEffect(()=>{const h=Object.keys(N.current);st([K.id,...h].sort())},[Qt,ie]),ct.useEffect(()=>{en.current&&oa(en.current.getBoundingClientRect().height)},[dt]),ct.useEffect(()=>{if(!c){const h=window.location.pathname;if(h.startsWith("/room/")){const B=h.slice(6).replace(/_/g," ");El(B)}}},[]);const Tn=h=>{const B=`${h.name}:${h.peerId}`;if(h.thumbnail&&h.peerId!==K.id&&!U){const Q=(Nt.current[h.name]||0)+1;if(Q>3){console.error(`Max retries reached for thumbnail ${h.name} from ${h.peerId}`);return}if(p.current.has(B)){console.log(`Thumbnail request for ${h.name} from ${h.peerId} already in progress, skipping`);return}const S=j.current[h.peerId];S?.readyState==="open"?(Nt.current[h.name]=Q,p.current.add(B),S.send(JSON.stringify({type:"request-thumbnail",fileName:h.name})),console.log(`Requested thumbnail for ${h.name} from ${h.peerId} via WebRTC (retry ${Q})`)):(console.warn(`Data channel not ready for ${h.peerId}, retrying in 1s`),setTimeout(()=>{p.current.has(B)||Tn(h)},1e3))}else console.error(`Cannot request thumbnail for ${h.name}:`,{isThumbnail:h.thumbnail,isLocal:h.peerId===K.id,useFallback:U,channelOpen:j.current[h.peerId]?.readyState})},Tl=async(h,B,Q,S)=>{const q=V.current[h];if(!q||q.readyState!=="open"){console.error(`Binary channel not open for ${h}`);return}if(S.size>100*1024){console.warn(`Thumbnail ${Q} size ${S.size} exceeds 100KB limit, skipping`);return}const ut=gt.current++;console.log(`Sending ${B} ${Q} to ${h}, size: ${S.size}`),q.send(JSON.stringify({type:"start",transferId:ut,kind:B,fileName:Q,size:S.size}));const $=new FileReader;$.onload=()=>{const k=$.result,Ot=new TextEncoder().encode(Q),ot=8+Ot.length,le=new ArrayBuffer(ot+k.byteLength),Rt=new DataView(le);Rt.setUint32(0,ut),Rt.setUint32(4,Ot.length),new Uint8Array(le).set(Ot,8),new Uint8Array(le).set(new Uint8Array(k),ot),q.send(le),q.send(JSON.stringify({type:"end",transferId:ut}))},$.onerror=k=>{console.error(`Error reading ${B} ${Q} for ${h}:`,k)},$.readAsArrayBuffer(S)},Lu=async(h,B,Q)=>{if(!B){console.error(`No fileName provided for sendFileChunked to ${h}`);return}const S=V.current[h];if(!S||S.readyState!=="open"){console.error(`Binary channel not open for ${h}`);return}yt.current.has(B)&&(yt.current.delete(B),console.log(`Cleared previous cancel for ${B}, starting new send to ${h}`));const q=gt.current++;console.log(`Sending start message for file ${B} to ${h}, transferId: ${q}, size: ${Q.size}`),S.send(JSON.stringify({type:"start",transferId:q,kind:"file",fileName:B,size:Q.size}));const ut=8*1024*1024,$=4*1024*1024;S.bufferedAmountLowThreshold=$;let k;S.onbufferedamountlow=()=>{k&&(k(),k=null)};const Ot=()=>S.bufferedAmount<=ut?Promise.resolve():new Promise(Rt=>{k=Rt});await Ot();const ot=16384;let le=0;for(console.log(`--- offset : ${le} --- file.size : ${Q.size}`);le<Q.size;){if(yt.current.has(B)){console.log(`Canceled sending ${B} to ${h}`),S.send(JSON.stringify({type:"cancel",transferId:q}));return}const Rt=Q.slice(le,le+ot);if(console.log(`--- slice.size : ${Rt.size}`),Rt.size===0)break;try{const $e=await new Promise((di,ya)=>{const Fn=new FileReader;Fn.onload=mi=>di(mi.target.result),Fn.onerror=ya,Fn.readAsArrayBuffer(Rt)});if(yt.current.has(B)){console.log(`Canceled sending ${B} to ${h} during read`),S.send(JSON.stringify({type:"cancel",transferId:q}));return}const Me=new TextEncoder().encode(B),hi=8+Me.length,Wn=new ArrayBuffer(hi+$e.byteLength),ma=new DataView(Wn);ma.setUint32(0,q),ma.setUint32(4,Me.length),new Uint8Array(Wn).set(Me,8),new Uint8Array(Wn).set(new Uint8Array($e),hi),S.send(Wn),await Ot(),le+=$e.byteLength}catch($e){console.error(`Error reading ${B}:`,$e),S.send(JSON.stringify({type:"cancel",transferId:q}));return}}S.send(JSON.stringify({type:"end",transferId:q})),yt.current.delete(B),console.log(`Finished sending ${B} to ${h}`)},fi=(h,B)=>{if(!yt.current.has(h)){yt.current.add(h);const Q=j.current[B];Q&&Q.readyState==="open"&&(Q.send(JSON.stringify({type:"end-download",fileName:h})),Q.send(JSON.stringify({type:"cancel-download",fileName:h})),console.log(`Sent end-download and cancel-download for ${h} to ${B}`)),rt(S=>{const q=S[h]?.status==="saved",{[h]:ut,...$}=S;return q?{...$,[h]:{status:"saved",progress:100,peerId:B}}:$}),Object.keys(at.current).forEach(S=>{const q=at.current[S];q.fileName===h&&q.peerId===B&&(delete at.current[S],p.current.delete(`${h}:${B}`))}),console.log(`Canceled download for ${h} locally`)}},Hu=h=>{I(B=>B.filter(Q=>Q.name!==h)),delete C.current[h],delete C.current[`${h}_thumbnail`],Object.values(j.current).forEach(B=>{B.readyState==="open"&&B.send(JSON.stringify({type:"remove-file",fileName:h}))}),Bt.current[h]&&(delete Bt.current[h],Vt(B=>{const{[h]:Q,...S}=B;return S}),da(h,0)),console.log(`Deleted file ${h} and notified peers`)},da=(h,B)=>{Vt(Q=>({...Q,[h]:B})),Object.values(j.current).forEach(Q=>{Q.readyState==="open"&&Q.send(JSON.stringify({type:"update-count",fileName:h,count:B}))})},An=(h,B)=>{const Q=B.data;try{if(typeof Q=="string"){const S=JSON.parse(Q);if(S.type==="text")J(q=>[...q,S.text]),console.log(`Received text via WebRTC from ${h}: ${S.text}`);else if(S.type==="text-history")console.log(`Received text-history from ${h}:`,S.history,"Current textHistory:",vt),Array.isArray(S.history)?J(S.history):console.warn(`Invalid text-history format from ${h}:`,S.history);else if(S.type==="request-file"){const q=C.current[S.fileName];q?(console.log(`Handling request-file for ${S.fileName} from ${h}`),Xe(h,S.fileName,"start"),Lu(h,S.fileName,q)):console.error(`File not found: ${S.fileName}`)}else if(S.type==="request-thumbnail"){const q=C.current[`${S.fileName}_thumbnail`];q?(console.log(`Handling request-thumbnail for ${S.fileName} from ${h}`),Tl(h,"thumbnail",S.fileName,q)):console.error(`Thumbnail not found for ${S.fileName}`)}else S.type==="end-download"?Xe(h,S.fileName,"end"):S.type==="remove-file"?(I(q=>q.filter(ut=>ut.name!==S.fileName)),console.log(`Removed file ${S.fileName} from list`)):S.type==="update-count"?Vt(q=>({...q,[S.fileName]:S.count})):S.type==="file-list"&&I(q=>{const ut=S.files.filter($=>!q.some(k=>k.name===$.name&&k.peerId===$.peerId)).map($=>({...$,peerId:$.peerId||"unknown"}));return ut.forEach($=>{const k=`${$.name}:${$.peerId}`;$.thumbnail&&!C.current[`${$.name}_thumbnail`]&&!p.current.has(k)?(console.log(`Requesting thumbnail for ${$.name} from ${$.peerId}`),Tn($)):$.thumbnail&&console.log(`Thumbnail for ${$.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",S.files),[...q,...ut]})}else console.warn(`Unexpected non-string message on main channel from ${h}`),console.log(Q)}catch(S){console.error(`Error processing message from ${h}:`,S)}},de=(h,B)=>{const Q=B.data;if(typeof Q=="string")try{const S=JSON.parse(Q);if(S.type==="start"){if(S.transferId===void 0||S.transferId===null||!S.fileName||!S.kind||!S.size){console.error(`Invalid start message from ${h}:`,S);return}if(at.current[S.transferId]){console.warn(`TransferId ${S.transferId} already exists for ${h}, ignoring new start for ${S.fileName}`);return}at.current[S.transferId]={kind:S.kind,fileName:S.fileName,chunks:[],expectedSize:S.size,received:0,peerId:h},console.log(`Started ${S.kind} transfer ${S.transferId} for ${S.fileName} from ${h}, expected size: ${S.size}`),S.kind==="file"&&rt(q=>({...q,[S.fileName]:{status:"downloading",progress:0,total:S.size,received:0,peerId:h}}))}else if(S.type==="end"){const q=at.current[S.transferId];if(!q){console.warn(`No state for transferId ${S.transferId} from ${h}`);return}if(q.received>=q.expectedSize){const ut=new Blob(q.chunks,{type:q.kind==="thumbnail"?"image/jpeg":"application/octet-stream"});if(console.log(`Assembled ${q.kind} ${q.fileName}, size: ${ut.size}`),q.kind==="thumbnail")C.current[`${q.fileName}_thumbnail`]=ut,console.log(`Received thumbnail for ${q.fileName} from ${h}, size: ${ut.size}`),I($=>$.map(k=>k.name===q.fileName&&k.peerId!==K.id?{...k,thumbnail:!0}:k)),p.current.delete(`${q.fileName}:${h}`);else if(q.kind==="file"){C.current[q.fileName]=ut;const $=URL.createObjectURL(ut);at.current[S.transferId].blobUrl=$,console.log(`Stored blobUrl ${$} for transferId ${S.transferId}, fileName: ${q.fileName}`),console.log("binaryStateRef.current keys: ",JSON.stringify(Object.keys(at.current))),console.log(`binaryStateRef.current[${S.transferId}]: `,JSON.stringify(at.current[S.transferId]));const k=document.createElement("a");k.href=$,k.download=q.fileName,k.click(),setTimeout(()=>{URL.revokeObjectURL($),console.log(`Revoked blobUrl ${$} for transferId ${S.transferId}`)},5e3),rt(ot=>({...ot,[q.fileName]:{status:"saved",progress:100,peerId:h}}));const Ot=j.current[h];Ot&&Ot.readyState==="open"&&Ot.send(JSON.stringify({type:"end-download",fileName:q.fileName}))}}else console.warn(`Size mismatch for ${q.kind} ${q.fileName}: received ${q.received}, expected ${q.expectedSize}`),q.kind==="file"&&rt(ut=>({...ut,[q.fileName]:{status:"error",progress:q.received/q.expectedSize*100}})),p.current.delete(`${q.fileName}:${h}`)}else if(S.type==="cancel"){const q=at.current[S.transferId];q&&q.kind==="file"&&rt(ut=>({...ut,[q.fileName]:{status:"canceled",progress:0}})),p.current.delete(`${q.fileName}:${h}`),delete at.current[S.transferId]}}catch(S){console.error(`Error processing binary control message from ${h}:`,S)}else if(Q instanceof ArrayBuffer){if(Q.byteLength<8){console.warn(`Invalid binary message size from ${h}: ${Q.byteLength} bytes`);return}const S=new DataView(Q),q=S.getUint32(0),ut=S.getUint32(4);if(Q.byteLength<8+ut){console.warn(`Invalid binary message: insufficient length for fileName from ${h}`);return}const $=new Uint8Array(Q,8,ut),k=new TextDecoder().decode($),Ot=Q.slice(8+ut),ot=at.current[q];if(ot&&ot.fileName===k){if(yt.current.has(ot.fileName)){console.log(`Ignoring chunk for canceled ${ot.kind} ${ot.fileName}`);return}if(ot.chunks.push(Ot),ot.received+=Ot.byteLength,ot.kind==="file"){const le=Math.min(100,ot.received/ot.expectedSize*100);rt(Rt=>({...Rt,[ot.fileName]:{...Rt[ot.fileName],progress:le,received:ot.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${q} from ${h}: expected ${ot?.fileName}, got ${k}`)}else if(Q instanceof Blob){console.log(`Received Blob message from ${h}, size: ${Q.size}`),console.dir(Q);const S=new FileReader;S.onload=()=>{const q=S.result;if(q.byteLength<4){console.warn(`Invalid Blob-converted ArrayBuffer size from ${h}: ${q.byteLength} bytes`);return}const ut=new DataView(q),$=ut.getUint32(0),k=ut.getUint32(4);if(q.byteLength<8+k){console.warn(`Invalid Blob-converted ArrayBuffer: insufficient length for fileName from ${h}`);return}const Ot=new Uint8Array(q,8,k),ot=new TextDecoder().decode(Ot),le=q.slice(8+k),Rt=at.current[$];if(Rt&&Rt.fileName===ot){if(yt.current.has(Rt.fileName)){console.log(`Ignoring chunk for canceled ${Rt.kind} ${Rt.fileName}`);return}if(Rt.chunks.push(le),Rt.received+=le.byteLength,console.log(`Received Blob chunk for ${Rt.kind} ${Rt.fileName}, transferId ${$}: ${Rt.received}/${Rt.expectedSize}`),Rt.kind==="file"){const $e=Math.min(100,Rt.received/Rt.expectedSize*100);rt(Me=>({...Me,[Rt.fileName]:{...Me[Rt.fileName],progress:$e,received:Rt.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${$} from ${h}: expected ${Rt?.fileName}, got ${ot}`)},S.onerror=q=>{console.error(`Error reading Blob from ${h}:`,q)},S.readAsArrayBuffer(Q)}else console.warn(`Unexpected message type from ${h}:`,typeof Q),console.log(Q)},Xe=(h,B,Q)=>{if(C.current[B]){Bt.current[B]=Bt.current[B]||new Set,Q==="start"?(Bt.current[B].add(h),console.log(`Started download of ${B} by ${h}, count: ${Bt.current[B].size}`)):Q==="end"&&(Bt.current[B].delete(h),console.log(`Ended download of ${B} by ${h}, count: ${Bt.current[B].size}`));const S=Bt.current[B].size;da(B,S)}};return W.jsxs("div",{className:"container mx-auto left",style:{marginTop:`${yl+50}px`},children:[W.jsxs(W.Fragment,{children:[c&&W.jsx(W.Fragment,{children:g&&G>0&&!M&&W.jsxs("p",{children:["Waiting for peer(s) to connect [WebRTC]... ",G,"s"]})}),W.jsx("h1",{className:"text-2xl font-bold mb-2 cursor-default",children:"Quick File Share"}),Dt&&W.jsx("p",{className:"text-red-500 mb-2",children:Dt}),W.jsx(Cg,{code:c,isConnected:M,onCreateRoom:qu,onJoinRoom:El,joinCode:m,setJoinCode:v})]}),c&&W.jsxs(W.Fragment,{children:[W.jsxs("p",{className:"text-lg",children:[gl,"//",vl,oi,"/room/",W.jsx("strong",{children:pl||"N/A"})]}),W.jsx("div",{className:`printable-qr transition-all duration-300 cursor-pointer ${fa?"fullscreenqr":"normalscreenqr"}`,onClick:ha,role:"button","aria-label":fa?"Minimize QR code":"Maximize QR code",style:{float:"right",height:"200px",marginTop:"-200px",background:"#000",position:"relative",zIndex:"100"},children:W.jsx(Qg,{value:bl,size:256,bgColor:"#ffffff",fgColor:"#000000",level:"H",style:{height:"auto",maxWidth:"100%",width:"100%"}})}),W.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:ye,children:g?"Close Room":"Leave Room"}),"●",W.jsx("button",{onClick:()=>Sl("link"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:A==="link"?"Copied!":"Copy Link"}),W.jsx("button",{onClick:()=>Sl("code"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:A==="code"?"Copied!":"Copy Code"}),W.jsxs("div",{ref:en,className:"mb-4 fixed top-0 right-10 text-right",children:[W.jsxs("h2",{className:"text-xl font-bold text-right",children:["Connected Users (",dt.length,"):"]}),W.jsx("ul",{children:dt.filter(h=>h!=null).map((h,B)=>W.jsxs("li",{children:[K.id&&h===K.id?"(You)":""," ",h]},h||`user-${B}`))})]}),W.jsx(Ng,{textHistory:vt,setTextHistory:J,dataChannels:Qt,useFallback:U,socket:K,code:c,copied:A,setCopied:O}),W.jsx(Dg,{files:Gt,setFiles:I,dataChannels:Qt,dataChannelsRef:j,useFallback:U,socket:K,code:c,socketId:K.id,localFilesRef:C,downloadStates:H,setDownloadStates:rt,cancelDownload:fi,cancelRequestsRef:yt,downloadCounts:At,handleDeleteFile:Hu,SERVER_URL:Jd}),U&&W.jsx("p",{className:"text-red-500",children:"Using server fallback"})]}),!c&&o&&W.jsx("a",{href:"/apk/",id:"apk",children:W.jsx("button",{children:"APK"})})]})}U0.createRoot(document.getElementById("root")).render(W.jsx(ct.StrictMode,{children:W.jsx(Gg,{})}));
