(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))s(g);new MutationObserver(g=>{for(const O of g)if(O.type==="childList")for(const w of O.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&s(w)}).observe(document,{childList:!0,subtree:!0});function c(g){const O={};return g.integrity&&(O.integrity=g.integrity),g.referrerPolicy&&(O.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?O.credentials="include":g.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function s(g){if(g.ep)return;g.ep=!0;const O=c(g);fetch(g.href,O)}})();var Ds={exports:{}},Za={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Lh;function Rm(){if(Lh)return Za;Lh=1;var f=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,g,O){var w=null;if(O!==void 0&&(w=""+O),g.key!==void 0&&(w=""+g.key),"key"in g){O={};for(var G in g)G!=="key"&&(O[G]=g[G])}else O=g;return g=O.ref,{$$typeof:f,type:s,key:w,ref:g!==void 0?g:null,props:O}}return Za.Fragment=i,Za.jsx=c,Za.jsxs=c,Za}var Yh;function zm(){return Yh||(Yh=1,Ds.exports=Rm()),Ds.exports}var V=zm(),xs={exports:{}},st={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Xh;function Nm(){if(Xh)return st;Xh=1;var f=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),w=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),P=Symbol.iterator;function at(y){return y===null||typeof y!="object"?null:(y=P&&y[P]||y["@@iterator"],typeof y=="function"?y:null)}var At={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qt=Object.assign,Et={};function Ht(y,z,j){this.props=y,this.context=z,this.refs=Et,this.updater=j||At}Ht.prototype.isReactComponent={},Ht.prototype.setState=function(y,z){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,z,"setState")},Ht.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function Yt(){}Yt.prototype=Ht.prototype;function re(y,z,j){this.props=y,this.context=z,this.refs=Et,this.updater=j||At}var pt=re.prototype=new Yt;pt.constructor=re,Qt(pt,Ht.prototype),pt.isPureReactComponent=!0;var fe=Array.isArray,nt={H:null,A:null,T:null,S:null,V:null},ee=Object.prototype.hasOwnProperty;function Wt(y,z,j,L,J,mt){return j=mt.ref,{$$typeof:f,type:y,key:z,ref:j!==void 0?j:null,props:mt}}function B(y,z){return Wt(y.type,z,void 0,void 0,void 0,y.props)}function ft(y){return typeof y=="object"&&y!==null&&y.$$typeof===f}function W(y){var z={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(j){return z[j]})}var ut=/\/+/g;function it(y,z){return typeof y=="object"&&y!==null&&y.key!=null?W(""+y.key):z.toString(36)}function Ct(){}function he(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(Ct,Ct):(y.status="pending",y.then(function(z){y.status==="pending"&&(y.status="fulfilled",y.value=z)},function(z){y.status==="pending"&&(y.status="rejected",y.reason=z)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function bt(y,z,j,L,J){var mt=typeof y;(mt==="undefined"||mt==="boolean")&&(y=null);var et=!1;if(y===null)et=!0;else switch(mt){case"bigint":case"string":case"number":et=!0;break;case"object":switch(y.$$typeof){case f:case i:et=!0;break;case q:return et=y._init,bt(et(y._payload),z,j,L,J)}}if(et)return J=J(y),et=L===""?"."+it(y,0):L,fe(J)?(j="",et!=null&&(j=et.replace(ut,"$&/")+"/"),bt(J,z,j,"",function(je){return je})):J!=null&&(ft(J)&&(J=B(J,j+(J.key==null||y&&y.key===J.key?"":(""+J.key).replace(ut,"$&/")+"/")+et)),z.push(J)),1;et=0;var ue=L===""?".":L+":";if(fe(y))for(var Mt=0;Mt<y.length;Mt++)L=y[Mt],mt=ue+it(L,Mt),et+=bt(L,z,j,mt,J);else if(Mt=at(y),typeof Mt=="function")for(y=Mt.call(y),Mt=0;!(L=y.next()).done;)L=L.value,mt=ue+it(L,Mt++),et+=bt(L,z,j,mt,J);else if(mt==="object"){if(typeof y.then=="function")return bt(he(y),z,j,L,J);throw z=String(y),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return et}function T(y,z,j){if(y==null)return y;var L=[],J=0;return bt(y,L,"","",function(mt){return z.call(j,mt,J++)}),L}function C(y){if(y._status===-1){var z=y._result;z=z(),z.then(function(j){(y._status===0||y._status===-1)&&(y._status=1,y._result=j)},function(j){(y._status===0||y._status===-1)&&(y._status=2,y._result=j)}),y._status===-1&&(y._status=0,y._result=z)}if(y._status===1)return y._result.default;throw y._result}var Z=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function lt(){}return st.Children={map:T,forEach:function(y,z,j){T(y,function(){z.apply(this,arguments)},j)},count:function(y){var z=0;return T(y,function(){z++}),z},toArray:function(y){return T(y,function(z){return z})||[]},only:function(y){if(!ft(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},st.Component=Ht,st.Fragment=c,st.Profiler=g,st.PureComponent=re,st.StrictMode=s,st.Suspense=D,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=nt,st.__COMPILER_RUNTIME={__proto__:null,c:function(y){return nt.H.useMemoCache(y)}},st.cache=function(y){return function(){return y.apply(null,arguments)}},st.cloneElement=function(y,z,j){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var L=Qt({},y.props),J=y.key,mt=void 0;if(z!=null)for(et in z.ref!==void 0&&(mt=void 0),z.key!==void 0&&(J=""+z.key),z)!ee.call(z,et)||et==="key"||et==="__self"||et==="__source"||et==="ref"&&z.ref===void 0||(L[et]=z[et]);var et=arguments.length-2;if(et===1)L.children=j;else if(1<et){for(var ue=Array(et),Mt=0;Mt<et;Mt++)ue[Mt]=arguments[Mt+2];L.children=ue}return Wt(y.type,J,void 0,void 0,mt,L)},st.createContext=function(y){return y={$$typeof:w,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:O,_context:y},y},st.createElement=function(y,z,j){var L,J={},mt=null;if(z!=null)for(L in z.key!==void 0&&(mt=""+z.key),z)ee.call(z,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(J[L]=z[L]);var et=arguments.length-2;if(et===1)J.children=j;else if(1<et){for(var ue=Array(et),Mt=0;Mt<et;Mt++)ue[Mt]=arguments[Mt+2];J.children=ue}if(y&&y.defaultProps)for(L in et=y.defaultProps,et)J[L]===void 0&&(J[L]=et[L]);return Wt(y,mt,void 0,void 0,null,J)},st.createRef=function(){return{current:null}},st.forwardRef=function(y){return{$$typeof:G,render:y}},st.isValidElement=ft,st.lazy=function(y){return{$$typeof:q,_payload:{_status:-1,_result:y},_init:C}},st.memo=function(y,z){return{$$typeof:A,type:y,compare:z===void 0?null:z}},st.startTransition=function(y){var z=nt.T,j={};nt.T=j;try{var L=y(),J=nt.S;J!==null&&J(j,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(lt,Z)}catch(mt){Z(mt)}finally{nt.T=z}},st.unstable_useCacheRefresh=function(){return nt.H.useCacheRefresh()},st.use=function(y){return nt.H.use(y)},st.useActionState=function(y,z,j){return nt.H.useActionState(y,z,j)},st.useCallback=function(y,z){return nt.H.useCallback(y,z)},st.useContext=function(y){return nt.H.useContext(y)},st.useDebugValue=function(){},st.useDeferredValue=function(y,z){return nt.H.useDeferredValue(y,z)},st.useEffect=function(y,z,j){var L=nt.H;if(typeof j=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return L.useEffect(y,z)},st.useId=function(){return nt.H.useId()},st.useImperativeHandle=function(y,z,j){return nt.H.useImperativeHandle(y,z,j)},st.useInsertionEffect=function(y,z){return nt.H.useInsertionEffect(y,z)},st.useLayoutEffect=function(y,z){return nt.H.useLayoutEffect(y,z)},st.useMemo=function(y,z){return nt.H.useMemo(y,z)},st.useOptimistic=function(y,z){return nt.H.useOptimistic(y,z)},st.useReducer=function(y,z,j){return nt.H.useReducer(y,z,j)},st.useRef=function(y){return nt.H.useRef(y)},st.useState=function(y){return nt.H.useState(y)},st.useSyncExternalStore=function(y,z,j){return nt.H.useSyncExternalStore(y,z,j)},st.useTransition=function(){return nt.H.useTransition()},st.version="19.1.1",st}var Gh;function Vs(){return Gh||(Gh=1,xs.exports=Nm()),xs.exports}var yt=Vs(),Us={exports:{}},$a={},Ms={exports:{}},Bs={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Qh;function Dm(){return Qh||(Qh=1,function(f){function i(T,C){var Z=T.length;T.push(C);t:for(;0<Z;){var lt=Z-1>>>1,y=T[lt];if(0<g(y,C))T[lt]=C,T[Z]=y,Z=lt;else break t}}function c(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var C=T[0],Z=T.pop();if(Z!==C){T[0]=Z;t:for(var lt=0,y=T.length,z=y>>>1;lt<z;){var j=2*(lt+1)-1,L=T[j],J=j+1,mt=T[J];if(0>g(L,Z))J<y&&0>g(mt,L)?(T[lt]=mt,T[J]=Z,lt=J):(T[lt]=L,T[j]=Z,lt=j);else if(J<y&&0>g(mt,Z))T[lt]=mt,T[J]=Z,lt=J;else break t}}return C}function g(T,C){var Z=T.sortIndex-C.sortIndex;return Z!==0?Z:T.id-C.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;f.unstable_now=function(){return O.now()}}else{var w=Date,G=w.now();f.unstable_now=function(){return w.now()-G}}var D=[],A=[],q=1,P=null,at=3,At=!1,Qt=!1,Et=!1,Ht=!1,Yt=typeof setTimeout=="function"?setTimeout:null,re=typeof clearTimeout=="function"?clearTimeout:null,pt=typeof setImmediate<"u"?setImmediate:null;function fe(T){for(var C=c(A);C!==null;){if(C.callback===null)s(A);else if(C.startTime<=T)s(A),C.sortIndex=C.expirationTime,i(D,C);else break;C=c(A)}}function nt(T){if(Et=!1,fe(T),!Qt)if(c(D)!==null)Qt=!0,ee||(ee=!0,it());else{var C=c(A);C!==null&&bt(nt,C.startTime-T)}}var ee=!1,Wt=-1,B=5,ft=-1;function W(){return Ht?!0:!(f.unstable_now()-ft<B)}function ut(){if(Ht=!1,ee){var T=f.unstable_now();ft=T;var C=!0;try{t:{Qt=!1,Et&&(Et=!1,re(Wt),Wt=-1),At=!0;var Z=at;try{e:{for(fe(T),P=c(D);P!==null&&!(P.expirationTime>T&&W());){var lt=P.callback;if(typeof lt=="function"){P.callback=null,at=P.priorityLevel;var y=lt(P.expirationTime<=T);if(T=f.unstable_now(),typeof y=="function"){P.callback=y,fe(T),C=!0;break e}P===c(D)&&s(D),fe(T)}else s(D);P=c(D)}if(P!==null)C=!0;else{var z=c(A);z!==null&&bt(nt,z.startTime-T),C=!1}}break t}finally{P=null,at=Z,At=!1}C=void 0}}finally{C?it():ee=!1}}}var it;if(typeof pt=="function")it=function(){pt(ut)};else if(typeof MessageChannel<"u"){var Ct=new MessageChannel,he=Ct.port2;Ct.port1.onmessage=ut,it=function(){he.postMessage(null)}}else it=function(){Yt(ut,0)};function bt(T,C){Wt=Yt(function(){T(f.unstable_now())},C)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(T){T.callback=null},f.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<T?Math.floor(1e3/T):5},f.unstable_getCurrentPriorityLevel=function(){return at},f.unstable_next=function(T){switch(at){case 1:case 2:case 3:var C=3;break;default:C=at}var Z=at;at=C;try{return T()}finally{at=Z}},f.unstable_requestPaint=function(){Ht=!0},f.unstable_runWithPriority=function(T,C){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Z=at;at=T;try{return C()}finally{at=Z}},f.unstable_scheduleCallback=function(T,C,Z){var lt=f.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?lt+Z:lt):Z=lt,T){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=Z+y,T={id:q++,callback:C,priorityLevel:T,startTime:Z,expirationTime:y,sortIndex:-1},Z>lt?(T.sortIndex=Z,i(A,T),c(D)===null&&T===c(A)&&(Et?(re(Wt),Wt=-1):Et=!0,bt(nt,Z-lt))):(T.sortIndex=y,i(D,T),Qt||At||(Qt=!0,ee||(ee=!0,it()))),T},f.unstable_shouldYield=W,f.unstable_wrapCallback=function(T){var C=at;return function(){var Z=at;at=C;try{return T.apply(this,arguments)}finally{at=Z}}}}(Bs)),Bs}var Vh;function xm(){return Vh||(Vh=1,Ms.exports=Dm()),Ms.exports}var Cs={exports:{}},se={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Zh;function Um(){if(Zh)return se;Zh=1;var f=Vs();function i(D){var A="https://react.dev/errors/"+D;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var q=2;q<arguments.length;q++)A+="&args[]="+encodeURIComponent(arguments[q])}return"Minified React error #"+D+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},g=Symbol.for("react.portal");function O(D,A,q){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:P==null?null:""+P,children:D,containerInfo:A,implementation:q}}var w=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function G(D,A){if(D==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,se.createPortal=function(D,A){var q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(i(299));return O(D,A,null,q)},se.flushSync=function(D){var A=w.T,q=s.p;try{if(w.T=null,s.p=2,D)return D()}finally{w.T=A,s.p=q,s.d.f()}},se.preconnect=function(D,A){typeof D=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,s.d.C(D,A))},se.prefetchDNS=function(D){typeof D=="string"&&s.d.D(D)},se.preinit=function(D,A){if(typeof D=="string"&&A&&typeof A.as=="string"){var q=A.as,P=G(q,A.crossOrigin),at=typeof A.integrity=="string"?A.integrity:void 0,At=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;q==="style"?s.d.S(D,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:P,integrity:at,fetchPriority:At}):q==="script"&&s.d.X(D,{crossOrigin:P,integrity:at,fetchPriority:At,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},se.preinitModule=function(D,A){if(typeof D=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var q=G(A.as,A.crossOrigin);s.d.M(D,{crossOrigin:q,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&s.d.M(D)},se.preload=function(D,A){if(typeof D=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var q=A.as,P=G(q,A.crossOrigin);s.d.L(D,q,{crossOrigin:P,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},se.preloadModule=function(D,A){if(typeof D=="string")if(A){var q=G(A.as,A.crossOrigin);s.d.m(D,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:q,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else s.d.m(D)},se.requestFormReset=function(D){s.d.r(D)},se.unstable_batchedUpdates=function(D,A){return D(A)},se.useFormState=function(D,A,q){return w.H.useFormState(D,A,q)},se.useFormStatus=function(){return w.H.useHostTransitionStatus()},se.version="19.1.1",se}var $h;function Mm(){if($h)return Cs.exports;$h=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(i){console.error(i)}}return f(),Cs.exports=Um(),Cs.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Kh;function Bm(){if(Kh)return $a;Kh=1;var f=xm(),i=Vs(),c=Mm();function s(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 g(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function O(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 w(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 G(t){if(O(t)!==t)throw Error(s(188))}function D(t){var e=t.alternate;if(!e){if(e=O(t),e===null)throw Error(s(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return G(a),t;if(u===l)return G(a),e;u=u.sibling}throw Error(s(188))}if(n.return!==l.return)n=a,l=u;else{for(var r=!1,o=a.child;o;){if(o===n){r=!0,n=a,l=u;break}if(o===l){r=!0,l=a,n=u;break}o=o.sibling}if(!r){for(o=u.child;o;){if(o===n){r=!0,n=u,l=a;break}if(o===l){r=!0,l=u,n=a;break}o=o.sibling}if(!r)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?t:e}function A(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=A(t),e!==null)return e;t=t.sibling}return null}var q=Object.assign,P=Symbol.for("react.element"),at=Symbol.for("react.transitional.element"),At=Symbol.for("react.portal"),Qt=Symbol.for("react.fragment"),Et=Symbol.for("react.strict_mode"),Ht=Symbol.for("react.profiler"),Yt=Symbol.for("react.provider"),re=Symbol.for("react.consumer"),pt=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Wt=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),ft=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),ut=Symbol.iterator;function it(t){return t===null||typeof t!="object"?null:(t=ut&&t[ut]||t["@@iterator"],typeof t=="function"?t:null)}var Ct=Symbol.for("react.client.reference");function he(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ct?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Qt:return"Fragment";case Ht:return"Profiler";case Et:return"StrictMode";case nt:return"Suspense";case ee:return"SuspenseList";case ft:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case At:return"Portal";case pt:return(t.displayName||"Context")+".Provider";case re:return(t._context.displayName||"Context")+".Consumer";case fe:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Wt:return e=t.displayName||null,e!==null?e:he(t.type)||"Memo";case B:e=t._payload,t=t._init;try{return he(t(e))}catch{}}return null}var bt=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},lt=[],y=-1;function z(t){return{current:t}}function j(t){0>y||(t.current=lt[y],lt[y]=null,y--)}function L(t,e){y++,lt[y]=t.current,t.current=e}var J=z(null),mt=z(null),et=z(null),ue=z(null);function Mt(t,e){switch(L(et,e),L(mt,t),L(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dh(e),t=yh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(J),L(J,t)}function je(){j(J),j(mt),j(et)}function Kl(t){t.memoizedState!==null&&L(ue,t);var e=J.current,n=yh(e,t.type);e!==n&&(L(mt,t),L(J,n))}function yn(t){mt.current===t&&(j(J),j(mt)),ue.current===t&&(j(ue),Ya._currentValue=Z)}var Ln=Object.prototype.hasOwnProperty,Fe=f.unstable_scheduleCallback,kl=f.unstable_cancelCallback,vi=f.unstable_shouldYield,pi=f.unstable_requestPaint,Re=f.unstable_now,Ja=f.unstable_getCurrentPriorityLevel,Jl=f.unstable_ImmediatePriority,Wl=f.unstable_UserBlockingPriority,il=f.unstable_NormalPriority,d=f.unstable_LowPriority,M=f.unstable_IdlePriority,H=f.log,p=f.unstable_setDisableYieldValue,x=null,$=null;function Y(t){if(typeof H=="function"&&p(t),$&&typeof $.setStrictMode=="function")try{$.setStrictMode(x,t)}catch{}}var X=Math.clz32?Math.clz32:Kt,Ot=Math.log,ct=Math.LN2;function Kt(t){return t>>>=0,t===0?32:31-(Ot(t)/ct|0)|0}var gt=256,ze=4194304;function de(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Yn(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,u=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var o=l&134217727;return o!==0?(l=o&~u,l!==0?a=de(l):(r&=o,r!==0?a=de(r):n||(n=o&~t,n!==0&&(a=de(n))))):(o=l&~u,o!==0?a=de(o):r!==0?a=de(r):n||(n=l&~t,n!==0&&(a=de(n)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:a}function Qe(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Wa(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fa(){var t=gt;return gt<<=1,(gt&4194048)===0&&(gt=256),t}function Pa(){var t=ze;return ze<<=1,(ze&62914560)===0&&(ze=4194304),t}function Xn(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Gn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yd(t,e,n,l,a,u){var r=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 o=t.entanglements,h=t.expirationTimes,S=t.hiddenUpdates;for(n=r&~n;0<n;){var R=31-X(n),U=1<<R;o[R]=0,h[R]=-1;var _=S[R];if(_!==null)for(S[R]=null,R=0;R<_.length;R++){var E=_[R];E!==null&&(E.lane&=-536870913)}n&=~U}l!==0&&Ws(t,l,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(r&~e))}function Ws(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-X(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&4194090}function Fs(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-X(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function bi(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Si(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ps(){var t=C.p;return t!==0?t:(t=window.event,t===void 0?32:Bh(t.type))}function md(t,e){var n=C.p;try{return C.p=t,e()}finally{C.p=n}}var mn=Math.random().toString(36).slice(2),ie="__reactFiber$"+mn,ye="__reactProps$"+mn,cl="__reactContainer$"+mn,_i="__reactEvents$"+mn,gd="__reactListeners$"+mn,vd="__reactHandles$"+mn,Is="__reactResources$"+mn,Fl="__reactMarker$"+mn;function Ei(t){delete t[ie],delete t[ye],delete t[_i],delete t[gd],delete t[vd]}function sl(t){var e=t[ie];if(e)return e;for(var n=t.parentNode;n;){if(e=n[cl]||n[ie]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=ph(t);t!==null;){if(n=t[ie])return n;t=ph(t)}return e}t=n,n=t.parentNode}return null}function rl(t){if(t=t[ie]||t[cl]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Pl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function fl(t){var e=t[Is];return e||(e=t[Is]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Fl]=!0}var tr=new Set,er={};function Qn(t,e){ol(t,e),ol(t+"Capture",e)}function ol(t,e){for(er[t]=e,t=0;t<e.length;t++)tr.add(e[t])}var pd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),nr={},lr={};function bd(t){return Ln.call(lr,t)?!0:Ln.call(nr,t)?!1:pd.test(t)?lr[t]=!0:(nr[t]=!0,!1)}function Ia(t,e,n){if(bd(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 tu(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 Pe(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)}}var Ti,ar;function hl(t){if(Ti===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ti=e&&e[1]||"",ar=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ti+t+ar}var Ai=!1;function Oi(t,e){if(!t||Ai)return"";Ai=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(E){var _=E}Reflect.construct(t,[],U)}else{try{U.call()}catch(E){_=E}t.call(U.prototype)}}else{try{throw Error()}catch(E){_=E}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(E){if(E&&_&&typeof E.stack=="string")return[E.stack,_.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 u=l.DetermineComponentFrameRoot(),r=u[0],o=u[1];if(r&&o){var h=r.split(`
`),S=o.split(`
`);for(a=l=0;l<h.length&&!h[l].includes("DetermineComponentFrameRoot");)l++;for(;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;if(l===h.length||a===S.length)for(l=h.length-1,a=S.length-1;1<=l&&0<=a&&h[l]!==S[a];)a--;for(;1<=l&&0<=a;l--,a--)if(h[l]!==S[a]){if(l!==1||a!==1)do if(l--,a--,0>a||h[l]!==S[a]){var R=`
`+h[l].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=l&&0<=a);break}}}finally{Ai=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?hl(n):""}function Sd(t){switch(t.tag){case 26:case 27:case 5:return hl(t.type);case 16:return hl("Lazy");case 13:return hl("Suspense");case 19:return hl("SuspenseList");case 0:case 15:return Oi(t.type,!1);case 11:return Oi(t.type.render,!1);case 1:return Oi(t.type,!0);case 31:return hl("Activity");default:return""}}function ur(t){try{var e="";do e+=Sd(t),t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function Ne(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ir(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _d(t){var e=ir(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),l=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(r){l=""+r,u.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function eu(t){t._valueTracker||(t._valueTracker=_d(t))}function cr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=ir(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function nu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ed=/[\n"\\]/g;function De(t){return t.replace(Ed,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ri(t,e,n,l,a,u,r,o){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ne(e)):t.value!==""+Ne(e)&&(t.value=""+Ne(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?zi(t,r,Ne(e)):n!=null?zi(t,r,Ne(n)):l!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+Ne(o):t.removeAttribute("name")}function sr(t,e,n,l,a,u,r,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;n=n!=null?""+Ne(n):"",e=e!=null?""+Ne(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=o?t.checked:!!l,t.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r)}function zi(t,e,n){e==="number"&&nu(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=""+Ne(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 rr(t,e,n){if(e!=null&&(e=""+Ne(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ne(n):""}function fr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(s(92));if(bt(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ne(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l)}function yl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Td=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function or(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||Td.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function hr(t,e,n){if(e!=null&&typeof e!="object")throw Error(s(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&&or(t,a,l)}else for(var u in e)e.hasOwnProperty(u)&&or(t,u,e[u])}function Ni(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ad=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Od=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lu(t){return Od.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Di=null;function xi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ml=null,gl=null;function dr(t){var e=rl(t);if(e&&(t=e.stateNode)){var n=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ri(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="'+De(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[ye]||null;if(!a)throw Error(s(90));Ri(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&&cr(l)}break t;case"textarea":rr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&dl(t,!!n.multiple,e,!1)}}}var Ui=!1;function yr(t,e,n){if(Ui)return t(e,n);Ui=!0;try{var l=t(e);return l}finally{if(Ui=!1,(ml!==null||gl!==null)&&(Gu(),ml&&(e=ml,t=gl,gl=ml=null,dr(e),t)))for(e=0;e<t.length;e++)dr(t[e])}}function Il(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ye]||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(s(231,e,typeof n));return n}var Ie=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mi=!1;if(Ie)try{var ta={};Object.defineProperty(ta,"passive",{get:function(){Mi=!0}}),window.addEventListener("test",ta,ta),window.removeEventListener("test",ta,ta)}catch{Mi=!1}var gn=null,Bi=null,au=null;function mr(){if(au)return au;var t,e=Bi,n=e.length,l,a="value"in gn?gn.value:gn.textContent,u=a.length;for(t=0;t<n&&e[t]===a[t];t++);var r=n-t;for(l=1;l<=r&&e[n-l]===a[u-l];l++);return au=a.slice(t,1<l?1-l:void 0)}function uu(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 iu(){return!0}function gr(){return!1}function me(t){function e(n,l,a,u,r){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=u,this.target=r,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?iu:gr,this.isPropagationStopped=gr,this}return q(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=iu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=iu)},persist:function(){},isPersistent:iu}),e}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cu=me(Vn),ea=q({},Vn,{view:0,detail:0}),Rd=me(ea),Ci,qi,na,su=q({},ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hi,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!==na&&(na&&t.type==="mousemove"?(Ci=t.screenX-na.screenX,qi=t.screenY-na.screenY):qi=Ci=0,na=t),Ci)},movementY:function(t){return"movementY"in t?t.movementY:qi}}),vr=me(su),zd=q({},su,{dataTransfer:0}),Nd=me(zd),Dd=q({},ea,{relatedTarget:0}),wi=me(Dd),xd=q({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ud=me(xd),Md=q({},Vn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bd=me(Md),Cd=q({},Vn,{data:0}),pr=me(Cd),qd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wd={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"},Hd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jd(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Hd[t])?!!e[t]:!1}function Hi(){return jd}var Ld=q({},ea,{key:function(t){if(t.key){var e=qd[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=uu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wd[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hi,charCode:function(t){return t.type==="keypress"?uu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?uu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Yd=me(Ld),Xd=q({},su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),br=me(Xd),Gd=q({},ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hi}),Qd=me(Gd),Vd=q({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zd=me(Vd),$d=q({},su,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Kd=me($d),kd=q({},Vn,{newState:0,oldState:0}),Jd=me(kd),Wd=[9,13,27,32],ji=Ie&&"CompositionEvent"in window,la=null;Ie&&"documentMode"in document&&(la=document.documentMode);var Fd=Ie&&"TextEvent"in window&&!la,Sr=Ie&&(!ji||la&&8<la&&11>=la),_r=" ",Er=!1;function Tr(t,e){switch(t){case"keyup":return Wd.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ar(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var vl=!1;function Pd(t,e){switch(t){case"compositionend":return Ar(e);case"keypress":return e.which!==32?null:(Er=!0,_r);case"textInput":return t=e.data,t===_r&&Er?null:t;default:return null}}function Id(t,e){if(vl)return t==="compositionend"||!ji&&Tr(t,e)?(t=mr(),au=Bi=gn=null,vl=!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 Sr&&e.locale!=="ko"?null:e.data;default:return null}}var ty={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Or(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ty[t.type]:e==="textarea"}function Rr(t,e,n,l){ml?gl?gl.push(l):gl=[l]:ml=l,e=ku(e,"onChange"),0<e.length&&(n=new cu("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var aa=null,ua=null;function ey(t){sh(t,0)}function ru(t){var e=Pl(t);if(cr(e))return t}function zr(t,e){if(t==="change")return e}var Nr=!1;if(Ie){var Li;if(Ie){var Yi="oninput"in document;if(!Yi){var Dr=document.createElement("div");Dr.setAttribute("oninput","return;"),Yi=typeof Dr.oninput=="function"}Li=Yi}else Li=!1;Nr=Li&&(!document.documentMode||9<document.documentMode)}function xr(){aa&&(aa.detachEvent("onpropertychange",Ur),ua=aa=null)}function Ur(t){if(t.propertyName==="value"&&ru(ua)){var e=[];Rr(e,ua,t,xi(t)),yr(ey,e)}}function ny(t,e,n){t==="focusin"?(xr(),aa=e,ua=n,aa.attachEvent("onpropertychange",Ur)):t==="focusout"&&xr()}function ly(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ru(ua)}function ay(t,e){if(t==="click")return ru(e)}function uy(t,e){if(t==="input"||t==="change")return ru(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:iy;function ia(t,e){if(be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var 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(!Ln.call(e,a)||!be(t[a],e[a]))return!1}return!0}function Mr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Br(t,e){var n=Mr(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=Mr(n)}}function Cr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Cr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function qr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=nu(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=nu(t.document)}return e}function Xi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var cy=Ie&&"documentMode"in document&&11>=document.documentMode,pl=null,Gi=null,ca=null,Qi=!1;function wr(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qi||pl==null||pl!==nu(l)||(l=pl,"selectionStart"in l&&Xi(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}),ca&&ia(ca,l)||(ca=l,l=ku(Gi,"onSelect"),0<l.length&&(e=new cu("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=pl)))}function Zn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var bl={animationend:Zn("Animation","AnimationEnd"),animationiteration:Zn("Animation","AnimationIteration"),animationstart:Zn("Animation","AnimationStart"),transitionrun:Zn("Transition","TransitionRun"),transitionstart:Zn("Transition","TransitionStart"),transitioncancel:Zn("Transition","TransitionCancel"),transitionend:Zn("Transition","TransitionEnd")},Vi={},Hr={};Ie&&(Hr=document.createElement("div").style,"AnimationEvent"in window||(delete bl.animationend.animation,delete bl.animationiteration.animation,delete bl.animationstart.animation),"TransitionEvent"in window||delete bl.transitionend.transition);function $n(t){if(Vi[t])return Vi[t];if(!bl[t])return t;var e=bl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Hr)return Vi[t]=e[n];return t}var jr=$n("animationend"),Lr=$n("animationiteration"),Yr=$n("animationstart"),sy=$n("transitionrun"),ry=$n("transitionstart"),fy=$n("transitioncancel"),Xr=$n("transitionend"),Gr=new Map,Zi="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Zi.push("scrollEnd");function Le(t,e){Gr.set(t,e),Qn(e,[t])}var Qr=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=Qr.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ur(e)},Qr.set(t,e),e)}return{value:t,source:e,stack:ur(e)}}var Ue=[],Sl=0,$i=0;function fu(){for(var t=Sl,e=$i=Sl=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 u=Ue[e];if(Ue[e++]=null,l!==null&&a!==null){var r=l.pending;r===null?a.next=a:(a.next=r.next,r.next=a),l.pending=a}u!==0&&Vr(n,a,u)}}function ou(t,e,n,l){Ue[Sl++]=t,Ue[Sl++]=e,Ue[Sl++]=n,Ue[Sl++]=l,$i|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Ki(t,e,n,l){return ou(t,e,n,l),hu(t)}function _l(t,e){return ou(t,null,null,e),hu(t)}function Vr(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-X(n),t=u.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),u):null}function hu(t){if(50<Ma)throw Ma=0,Ic=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var El={};function oy(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 Se(t,e,n,l){return new oy(t,e,n,l)}function ki(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn(t,e){var n=t.alternate;return n===null?(n=Se(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 Zr(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 du(t,e,n,l,a,u){var r=0;if(l=t,typeof t=="function")ki(t)&&(r=1);else if(typeof t=="string")r=dm(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ft:return t=Se(31,n,e,a),t.elementType=ft,t.lanes=u,t;case Qt:return Kn(n.children,a,u,e);case Et:r=8,a|=24;break;case Ht:return t=Se(12,n,e,a|2),t.elementType=Ht,t.lanes=u,t;case nt:return t=Se(13,n,e,a),t.elementType=nt,t.lanes=u,t;case ee:return t=Se(19,n,e,a),t.elementType=ee,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Yt:case pt:r=10;break t;case re:r=9;break t;case fe:r=11;break t;case Wt:r=14;break t;case B:r=16,l=null;break t}r=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=Se(r,n,e,a),e.elementType=t,e.type=l,e.lanes=u,e}function Kn(t,e,n,l){return t=Se(7,t,l,e),t.lanes=n,t}function Ji(t,e,n){return t=Se(6,t,null,e),t.lanes=n,t}function Wi(t,e,n){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Tl=[],Al=0,yu=null,mu=0,Me=[],Be=0,kn=null,en=1,nn="";function Jn(t,e){Tl[Al++]=mu,Tl[Al++]=yu,yu=t,mu=e}function $r(t,e,n){Me[Be++]=en,Me[Be++]=nn,Me[Be++]=kn,kn=t;var l=en;t=nn;var a=32-X(l)-1;l&=~(1<<a),n+=1;var u=32-X(e)+a;if(30<u){var r=a-a%5;u=(l&(1<<r)-1).toString(32),l>>=r,a-=r,en=1<<32-X(e)+a|n<<a|l,nn=u+t}else en=1<<u|n<<a|l,nn=t}function Fi(t){t.return!==null&&(Jn(t,1),$r(t,1,0))}function Pi(t){for(;t===yu;)yu=Tl[--Al],Tl[Al]=null,mu=Tl[--Al],Tl[Al]=null;for(;t===kn;)kn=Me[--Be],Me[Be]=null,nn=Me[--Be],Me[Be]=null,en=Me[--Be],Me[Be]=null}var oe=null,jt=null,Tt=!1,Wn=null,Ve=!1,Ii=Error(s(519));function Fn(t){var e=Error(s(418,""));throw fa(xe(e,t)),Ii}function Kr(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ie]=t,e[ye]=l,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<Ca.length;n++)dt(Ca[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),sr(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),eu(e);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),fr(e,l.value,l.defaultValue,l.children),eu(e)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||hh(e.textContent,n)?(l.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),l.onScroll!=null&&dt("scroll",e),l.onScrollEnd!=null&&dt("scrollend",e),l.onClick!=null&&(e.onclick=Ju),e=!0):e=!1,e||Fn(t)}function kr(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 13:Ve=!1;return;case 27:case 3:Ve=!0;return;default:oe=oe.return}}function sa(t){if(t!==oe)return!1;if(!Tt)return kr(t),Tt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ms(t.type,t.memoizedProps)),n=!n),n&&jt&&Fn(t),kr(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){jt=Xe(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}jt=null}}else e===27?(e=jt,Mn(t.type)?(t=bs,bs=null,jt=t):jt=e):jt=oe?Xe(t.stateNode.nextSibling):null;return!0}function ra(){jt=oe=null,Tt=!1}function Jr(){var t=Wn;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),Wn=null),t}function fa(t){Wn===null?Wn=[t]:Wn.push(t)}var tc=z(null),Pn=null,ln=null;function vn(t,e,n){L(tc,e._currentValue),e._currentValue=n}function an(t){t._currentValue=tc.current,j(tc)}function ec(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 nc(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var r=a.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=a;for(var h=0;h<e.length;h++)if(o.context===e[h]){u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),ec(u.return,n,t),l||(r=null);break t}u=o.next}}else if(a.tag===18){if(r=a.return,r===null)throw Error(s(341));r.lanes|=n,u=r.alternate,u!==null&&(u.lanes|=n),ec(r,n,t),r=null}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===t){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}}function oa(t,e,n,l){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var r=a.alternate;if(r===null)throw Error(s(387));if(r=r.memoizedProps,r!==null){var o=a.type;be(a.pendingProps.value,r.value)||(t!==null?t.push(o):t=[o])}}else if(a===ue.current){if(r=a.alternate,r===null)throw Error(s(387));r.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ya):t=[Ya])}a=a.return}t!==null&&nc(e,t,n,l),e.flags|=262144}function gu(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function In(t){Pn=t,ln=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ce(t){return Wr(Pn,t)}function vu(t,e){return Pn===null&&In(t),Wr(t,e)}function Wr(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},ln===null){if(t===null)throw Error(s(308));ln=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ln=ln.next=e;return n}var hy=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()})}},dy=f.unstable_scheduleCallback,yy=f.unstable_NormalPriority,kt={$$typeof:pt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new hy,data:new Map,refCount:0}}function ha(t){t.refCount--,t.refCount===0&&dy(yy,function(){t.controller.abort()})}var da=null,ac=0,Ol=0,Rl=null;function my(t,e){if(da===null){var n=da=[];ac=0,Ol=is(),Rl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return ac++,e.then(Fr,Fr),e}function Fr(){if(--ac===0&&da!==null){Rl!==null&&(Rl.status="fulfilled");var t=da;da=null,Ol=0,Rl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gy(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 Pr=T.S;T.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&my(t,e),Pr!==null&&Pr(t,e)};var tl=z(null);function uc(){var t=tl.current;return t!==null?t:Bt.pooledCache}function pu(t,e){e===null?L(tl,tl.current):L(tl,e.pool)}function Ir(){var t=uc();return t===null?null:{parent:kt._currentValue,pool:t}}var ya=Error(s(460)),tf=Error(s(474)),bu=Error(s(542)),ic={then:function(){}};function ef(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Su(){}function nf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Su,Su),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,af(t),t;default:if(typeof e.status=="string")e.then(Su,Su);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(s(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,af(t),t}throw ma=e,ya}}var ma=null;function lf(){if(ma===null)throw Error(s(459));var t=ma;return ma=null,t}function af(t){if(t===ya||t===bu)throw Error(s(483))}var pn=!1;function cc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Rt&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=hu(t),Vr(t,null,n),e}return ou(t,l,e,n),hu(t)}function ga(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,Fs(t,n)}}function rc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?a=u=r:u=u.next=r,n=n.next}while(n!==null);u===null?a=u=e:u=u.next=e}else a=u=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:u,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 fc=!1;function va(){if(fc){var t=Rl;if(t!==null)throw t}}function pa(t,e,n,l){fc=!1;var a=t.updateQueue;pn=!1;var u=a.firstBaseUpdate,r=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var h=o,S=h.next;h.next=null,r===null?u=S:r.next=S,r=h;var R=t.alternate;R!==null&&(R=R.updateQueue,o=R.lastBaseUpdate,o!==r&&(o===null?R.firstBaseUpdate=S:o.next=S,R.lastBaseUpdate=h))}if(u!==null){var U=a.baseState;r=0,R=S=h=null,o=u;do{var _=o.lane&-536870913,E=_!==o.lane;if(E?(St&_)===_:(l&_)===_){_!==0&&_===Ol&&(fc=!0),R!==null&&(R=R.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var tt=t,F=o;_=e;var xt=n;switch(F.tag){case 1:if(tt=F.payload,typeof tt=="function"){U=tt.call(xt,U,_);break t}U=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=F.payload,_=typeof tt=="function"?tt.call(xt,U,_):tt,_==null)break t;U=q({},U,_);break t;case 2:pn=!0}}_=o.callback,_!==null&&(t.flags|=64,E&&(t.flags|=8192),E=a.callbacks,E===null?a.callbacks=[_]:E.push(_))}else E={lane:_,tag:o.tag,payload:o.payload,callback:o.callback,next:null},R===null?(S=R=E,h=U):R=R.next=E,r|=_;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;E=o,o=E.next,E.next=null,a.lastBaseUpdate=E,a.shared.pending=null}}while(!0);R===null&&(h=U),a.baseState=h,a.firstBaseUpdate=S,a.lastBaseUpdate=R,u===null&&(a.shared.lanes=0),Nn|=r,t.lanes=r,t.memoizedState=U}}function uf(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function cf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)uf(n[t],e)}var zl=z(null),_u=z(0);function sf(t,e){t=hn,L(_u,t),L(zl,e),hn=t|e.baseLanes}function oc(){L(_u,hn),L(zl,zl.current)}function hc(){hn=_u.current,j(zl),j(_u)}var _n=0,rt=null,Nt=null,Vt=null,Eu=!1,Nl=!1,el=!1,Tu=0,ba=0,Dl=null,vy=0;function Xt(){throw Error(s(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!be(t[n],e[n]))return!1;return!0}function yc(t,e,n,l,a,u){return _n=u,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Zf:$f,el=!1,u=n(l,a),el=!1,Nl&&(u=ff(e,n,l,a)),rf(t),u}function rf(t){T.H=Du;var e=Nt!==null&&Nt.next!==null;if(_n=0,Vt=Nt=rt=null,Eu=!1,ba=0,Dl=null,e)throw Error(s(300));t===null||Pt||(t=t.dependencies,t!==null&&gu(t)&&(Pt=!0))}function ff(t,e,n,l){rt=t;var a=0;do{if(Nl&&(Dl=null),ba=0,Nl=!1,25<=a)throw Error(s(301));if(a+=1,Vt=Nt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=Ay,u=e(n,l)}while(Nl);return u}function py(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?Sa(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(rt.flags|=1024),e}function mc(){var t=Tu!==0;return Tu=0,t}function gc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function vc(t){if(Eu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Eu=!1}_n=0,Vt=Nt=rt=null,Nl=!1,ba=Tu=0,Dl=null}function ge(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?rt.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Zt(){if(Nt===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=Vt===null?rt.memoizedState:Vt.next;if(e!==null)Vt=e,Nt=t;else{if(t===null)throw rt.alternate===null?Error(s(467)):Error(s(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Vt===null?rt.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function pc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(t){var e=ba;return ba+=1,Dl===null&&(Dl=[]),t=nf(Dl,t,e),e=rt,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Zf:$f),t}function Au(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sa(t);if(t.$$typeof===pt)return ce(t)}throw Error(s(438,String(t)))}function bc(t){var e=null,n=rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=rt.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=pc(),rt.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]=W;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function Ou(t){var e=Zt();return Sc(e,Nt,t)}function Sc(t,e,n){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var a=t.baseQueue,u=l.pending;if(u!==null){if(a!==null){var r=a.next;a.next=u.next,u.next=r}e.baseQueue=a=u,l.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var o=r=null,h=null,S=e,R=!1;do{var U=S.lane&-536870913;if(U!==S.lane?(St&U)===U:(_n&U)===U){var _=S.revertLane;if(_===0)h!==null&&(h=h.next={lane:0,revertLane:0,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),U===Ol&&(R=!0);else if((_n&_)===_){S=S.next,_===Ol&&(R=!0);continue}else U={lane:0,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=U,r=u):h=h.next=U,rt.lanes|=_,Nn|=_;U=S.action,el&&n(u,U),u=S.hasEagerState?S.eagerState:n(u,U)}else _={lane:U,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=_,r=u):h=h.next=_,rt.lanes|=U,Nn|=U;S=S.next}while(S!==null&&S!==e);if(h===null?r=u:h.next=o,!be(u,t.memoizedState)&&(Pt=!0,R&&(n=Rl,n!==null)))throw n;t.memoizedState=u,t.baseState=r,t.baseQueue=h,l.lastRenderedState=u}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function _c(t){var e=Zt(),n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,u=e.memoizedState;if(a!==null){n.pending=null;var r=a=a.next;do u=t(u,r.action),r=r.next;while(r!==a);be(u,e.memoizedState)||(Pt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function of(t,e,n){var l=rt,a=Zt(),u=Tt;if(u){if(n===void 0)throw Error(s(407));n=n()}else n=e();var r=!be((Nt||a).memoizedState,n);r&&(a.memoizedState=n,Pt=!0),a=a.queue;var o=yf.bind(null,l,a,t);if(_a(2048,8,o,[t]),a.getSnapshot!==e||r||Vt!==null&&Vt.memoizedState.tag&1){if(l.flags|=2048,xl(9,Ru(),df.bind(null,l,a,n,e),null),Bt===null)throw Error(s(349));u||(_n&124)!==0||hf(l,e,n)}return n}function hf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=rt.updateQueue,e===null?(e=pc(),rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function df(t,e,n,l){e.value=n,e.getSnapshot=l,mf(e)&&gf(t)}function yf(t,e,n){return n(function(){mf(e)&&gf(t)})}function mf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!be(t,n)}catch{return!0}}function gf(t){var e=_l(t,2);e!==null&&Oe(e,t,2)}function Ec(t){var e=ge();if(typeof t=="function"){var n=t;if(t=n(),el){Y(!0);try{n()}finally{Y(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function vf(t,e,n,l){return t.baseState=n,Sc(t,Nt,typeof l=="function"?l:un)}function by(t,e,n,l,a){if(Nu(t))throw Error(s(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){u.listeners.push(r)}};T.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,pf(e,u)):(u.next=n.next,e.pending=n.next=u)}}function pf(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var u=T.T,r={};T.T=r;try{var o=n(a,l),h=T.S;h!==null&&h(r,o),bf(t,e,o)}catch(S){Tc(t,e,S)}finally{T.T=u}}else try{u=n(a,l),bf(t,e,u)}catch(S){Tc(t,e,S)}}function bf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Sf(t,e,l)},function(l){return Tc(t,e,l)}):Sf(t,e,n)}function Sf(t,e,n){e.status="fulfilled",e.value=n,_f(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,pf(t,n)))}function Tc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,_f(e),e=e.next;while(e!==l)}t.action=null}function _f(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ef(t,e){return e}function Tf(t,e){if(Tt){var n=Bt.formState;if(n!==null){t:{var l=rt;if(Tt){if(jt){e:{for(var a=jt,u=Ve;a.nodeType!==8;){if(!u){a=null;break e}if(a=Xe(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){jt=Xe(a.nextSibling),l=a.data==="F!";break t}}Fn(l)}l=!1}l&&(e=n[0])}}return n=ge(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ef,lastRenderedState:e},n.queue=l,n=Gf.bind(null,rt,l),l.dispatch=n,l=Ec(!1),u=Nc.bind(null,rt,!1,l.queue),l=ge(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=by.bind(null,rt,a,u,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Af(t){var e=Zt();return Of(e,Nt,t)}function Of(t,e,n){if(e=Sc(t,e,Ef)[0],t=Ou(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Sa(e)}catch(r){throw r===ya?bu:r}else l=e;e=Zt();var a=e.queue,u=a.dispatch;return n!==e.memoizedState&&(rt.flags|=2048,xl(9,Ru(),Sy.bind(null,a,n),null)),[l,u,t]}function Sy(t,e){t.action=e}function Rf(t){var e=Zt(),n=Nt;if(n!==null)return Of(e,n,t);Zt(),e=e.memoizedState,n=Zt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function xl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=rt.updateQueue,e===null&&(e=pc(),rt.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 Ru(){return{destroy:void 0,resource:void 0}}function zf(){return Zt().memoizedState}function zu(t,e,n,l){var a=ge();l=l===void 0?null:l,rt.flags|=t,a.memoizedState=xl(1|e,Ru(),n,l)}function _a(t,e,n,l){var a=Zt();l=l===void 0?null:l;var u=a.memoizedState.inst;Nt!==null&&l!==null&&dc(l,Nt.memoizedState.deps)?a.memoizedState=xl(e,u,n,l):(rt.flags|=t,a.memoizedState=xl(1|e,u,n,l))}function Nf(t,e){zu(8390656,8,t,e)}function Df(t,e){_a(2048,8,t,e)}function xf(t,e){return _a(4,2,t,e)}function Uf(t,e){return _a(4,4,t,e)}function Mf(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 Bf(t,e,n){n=n!=null?n.concat([t]):null,_a(4,4,Mf.bind(null,e,t),n)}function Ac(){}function Cf(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&dc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function qf(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&dc(e,l[1]))return l[0];if(l=t(),el){Y(!0);try{t()}finally{Y(!1)}}return n.memoizedState=[l,e],l}function Oc(t,e,n){return n===void 0||(_n&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=Lo(),rt.lanes|=t,Nn|=t,n)}function wf(t,e,n,l){return be(n,e)?n:zl.current!==null?(t=Oc(t,n,l),be(t,e)||(Pt=!0),t):(_n&42)===0?(Pt=!0,t.memoizedState=n):(t=Lo(),rt.lanes|=t,Nn|=t,e)}function Hf(t,e,n,l,a){var u=C.p;C.p=u!==0&&8>u?u:8;var r=T.T,o={};T.T=o,Nc(t,!1,e,n);try{var h=a(),S=T.S;if(S!==null&&S(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var R=gy(h,l);Ea(t,e,R,Ae(t))}else Ea(t,e,l,Ae(t))}catch(U){Ea(t,e,{then:function(){},status:"rejected",reason:U},Ae())}finally{C.p=u,T.T=r}}function _y(){}function Rc(t,e,n,l){if(t.tag!==5)throw Error(s(476));var a=jf(t).queue;Hf(t,a,e,Z,n===null?_y:function(){return Lf(t),n(l)})}function jf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Lf(t){var e=jf(t).next.queue;Ea(t,e,{},Ae())}function zc(){return ce(Ya)}function Yf(){return Zt().memoizedState}function Xf(){return Zt().memoizedState}function Ey(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ae();t=bn(n);var l=Sn(e,t,n);l!==null&&(Oe(l,e,n),ga(l,e,n)),e={cache:lc()},t.payload=e;return}e=e.return}}function Ty(t,e,n){var l=Ae();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Nu(t)?Qf(e,n):(n=Ki(t,e,n,l),n!==null&&(Oe(n,t,l),Vf(n,e,l)))}function Gf(t,e,n){var l=Ae();Ea(t,e,n,l)}function Ea(t,e,n,l){var a={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nu(t))Qf(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var r=e.lastRenderedState,o=u(r,n);if(a.hasEagerState=!0,a.eagerState=o,be(o,r))return ou(t,e,a,0),Bt===null&&fu(),!1}catch{}finally{}if(n=Ki(t,e,a,l),n!==null)return Oe(n,t,l),Vf(n,e,l),!0}return!1}function Nc(t,e,n,l){if(l={lane:2,revertLane:is(),action:l,hasEagerState:!1,eagerState:null,next:null},Nu(t)){if(e)throw Error(s(479))}else e=Ki(t,n,l,2),e!==null&&Oe(e,t,2)}function Nu(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function Qf(t,e){Nl=Eu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vf(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Fs(t,n)}}var Du={readContext:ce,use:Au,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt},Zf={readContext:ce,use:Au,useCallback:function(t,e){return ge().memoizedState=[t,e===void 0?null:e],t},useContext:ce,useEffect:Nf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,zu(4194308,4,Mf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return zu(4194308,4,t,e)},useInsertionEffect:function(t,e){zu(4,2,t,e)},useMemo:function(t,e){var n=ge();e=e===void 0?null:e;var l=t();if(el){Y(!0);try{t()}finally{Y(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ge();if(n!==void 0){var a=n(e);if(el){Y(!0);try{n(e)}finally{Y(!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=Ty.bind(null,rt,t),[l.memoizedState,t]},useRef:function(t){var e=ge();return t={current:t},e.memoizedState=t},useState:function(t){t=Ec(t);var e=t.queue,n=Gf.bind(null,rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ac,useDeferredValue:function(t,e){var n=ge();return Oc(n,t,e)},useTransition:function(){var t=Ec(!1);return t=Hf.bind(null,rt,t.queue,!0,!1),ge().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=rt,a=ge();if(Tt){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),Bt===null)throw Error(s(349));(St&124)!==0||hf(l,e,n)}a.memoizedState=n;var u={value:n,getSnapshot:e};return a.queue=u,Nf(yf.bind(null,l,u,t),[t]),l.flags|=2048,xl(9,Ru(),df.bind(null,l,u,n,e),null),n},useId:function(){var t=ge(),e=Bt.identifierPrefix;if(Tt){var n=nn,l=en;n=(l&~(1<<32-X(l)-1)).toString(32)+n,e="«"+e+"R"+n,n=Tu++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=vy++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:zc,useFormState:Tf,useActionState:Tf,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=Nc.bind(null,rt,!0,n),n.dispatch=e,[t,e]},useMemoCache:bc,useCacheRefresh:function(){return ge().memoizedState=Ey.bind(null,rt)}},$f={readContext:ce,use:Au,useCallback:Cf,useContext:ce,useEffect:Df,useImperativeHandle:Bf,useInsertionEffect:xf,useLayoutEffect:Uf,useMemo:qf,useReducer:Ou,useRef:zf,useState:function(){return Ou(un)},useDebugValue:Ac,useDeferredValue:function(t,e){var n=Zt();return wf(n,Nt.memoizedState,t,e)},useTransition:function(){var t=Ou(un)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:of,useId:Yf,useHostTransitionStatus:zc,useFormState:Af,useActionState:Af,useOptimistic:function(t,e){var n=Zt();return vf(n,Nt,t,e)},useMemoCache:bc,useCacheRefresh:Xf},Ay={readContext:ce,use:Au,useCallback:Cf,useContext:ce,useEffect:Df,useImperativeHandle:Bf,useInsertionEffect:xf,useLayoutEffect:Uf,useMemo:qf,useReducer:_c,useRef:zf,useState:function(){return _c(un)},useDebugValue:Ac,useDeferredValue:function(t,e){var n=Zt();return Nt===null?Oc(n,t,e):wf(n,Nt.memoizedState,t,e)},useTransition:function(){var t=_c(un)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:of,useId:Yf,useHostTransitionStatus:zc,useFormState:Rf,useActionState:Rf,useOptimistic:function(t,e){var n=Zt();return Nt!==null?vf(n,Nt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:bc,useCacheRefresh:Xf},Ul=null,Ta=0;function xu(t){var e=Ta;return Ta+=1,Ul===null&&(Ul=[]),nf(Ul,t,e)}function Aa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Uu(t,e){throw e.$$typeof===P?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Kf(t){var e=t._init;return e(t._payload)}function kf(t){function e(v,m){if(t){var b=v.deletions;b===null?(v.deletions=[m],v.flags|=16):b.push(m)}}function n(v,m){if(!t)return null;for(;m!==null;)e(v,m),m=m.sibling;return null}function l(v){for(var m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function a(v,m){return v=tn(v,m),v.index=0,v.sibling=null,v}function u(v,m,b){return v.index=b,t?(b=v.alternate,b!==null?(b=b.index,b<m?(v.flags|=67108866,m):b):(v.flags|=67108866,m)):(v.flags|=1048576,m)}function r(v){return t&&v.alternate===null&&(v.flags|=67108866),v}function o(v,m,b,N){return m===null||m.tag!==6?(m=Ji(b,v.mode,N),m.return=v,m):(m=a(m,b),m.return=v,m)}function h(v,m,b,N){var Q=b.type;return Q===Qt?R(v,m,b.props.children,N,b.key):m!==null&&(m.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===B&&Kf(Q)===m.type)?(m=a(m,b.props),Aa(m,b),m.return=v,m):(m=du(b.type,b.key,b.props,null,v.mode,N),Aa(m,b),m.return=v,m)}function S(v,m,b,N){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=Wi(b,v.mode,N),m.return=v,m):(m=a(m,b.children||[]),m.return=v,m)}function R(v,m,b,N,Q){return m===null||m.tag!==7?(m=Kn(b,v.mode,N,Q),m.return=v,m):(m=a(m,b),m.return=v,m)}function U(v,m,b){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Ji(""+m,v.mode,b),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case at:return b=du(m.type,m.key,m.props,null,v.mode,b),Aa(b,m),b.return=v,b;case At:return m=Wi(m,v.mode,b),m.return=v,m;case B:var N=m._init;return m=N(m._payload),U(v,m,b)}if(bt(m)||it(m))return m=Kn(m,v.mode,b,null),m.return=v,m;if(typeof m.then=="function")return U(v,xu(m),b);if(m.$$typeof===pt)return U(v,vu(v,m),b);Uu(v,m)}return null}function _(v,m,b,N){var Q=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return Q!==null?null:o(v,m,""+b,N);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case at:return b.key===Q?h(v,m,b,N):null;case At:return b.key===Q?S(v,m,b,N):null;case B:return Q=b._init,b=Q(b._payload),_(v,m,b,N)}if(bt(b)||it(b))return Q!==null?null:R(v,m,b,N,null);if(typeof b.then=="function")return _(v,m,xu(b),N);if(b.$$typeof===pt)return _(v,m,vu(v,b),N);Uu(v,b)}return null}function E(v,m,b,N,Q){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return v=v.get(b)||null,o(m,v,""+N,Q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case at:return v=v.get(N.key===null?b:N.key)||null,h(m,v,N,Q);case At:return v=v.get(N.key===null?b:N.key)||null,S(m,v,N,Q);case B:var ot=N._init;return N=ot(N._payload),E(v,m,b,N,Q)}if(bt(N)||it(N))return v=v.get(b)||null,R(m,v,N,Q,null);if(typeof N.then=="function")return E(v,m,b,xu(N),Q);if(N.$$typeof===pt)return E(v,m,b,vu(m,N),Q);Uu(m,N)}return null}function tt(v,m,b,N){for(var Q=null,ot=null,K=m,I=m=0,te=null;K!==null&&I<b.length;I++){K.index>I?(te=K,K=null):te=K.sibling;var _t=_(v,K,b[I],N);if(_t===null){K===null&&(K=te);break}t&&K&&_t.alternate===null&&e(v,K),m=u(_t,m,I),ot===null?Q=_t:ot.sibling=_t,ot=_t,K=te}if(I===b.length)return n(v,K),Tt&&Jn(v,I),Q;if(K===null){for(;I<b.length;I++)K=U(v,b[I],N),K!==null&&(m=u(K,m,I),ot===null?Q=K:ot.sibling=K,ot=K);return Tt&&Jn(v,I),Q}for(K=l(K);I<b.length;I++)te=E(K,v,I,b[I],N),te!==null&&(t&&te.alternate!==null&&K.delete(te.key===null?I:te.key),m=u(te,m,I),ot===null?Q=te:ot.sibling=te,ot=te);return t&&K.forEach(function(Hn){return e(v,Hn)}),Tt&&Jn(v,I),Q}function F(v,m,b,N){if(b==null)throw Error(s(151));for(var Q=null,ot=null,K=m,I=m=0,te=null,_t=b.next();K!==null&&!_t.done;I++,_t=b.next()){K.index>I?(te=K,K=null):te=K.sibling;var Hn=_(v,K,_t.value,N);if(Hn===null){K===null&&(K=te);break}t&&K&&Hn.alternate===null&&e(v,K),m=u(Hn,m,I),ot===null?Q=Hn:ot.sibling=Hn,ot=Hn,K=te}if(_t.done)return n(v,K),Tt&&Jn(v,I),Q;if(K===null){for(;!_t.done;I++,_t=b.next())_t=U(v,_t.value,N),_t!==null&&(m=u(_t,m,I),ot===null?Q=_t:ot.sibling=_t,ot=_t);return Tt&&Jn(v,I),Q}for(K=l(K);!_t.done;I++,_t=b.next())_t=E(K,v,I,_t.value,N),_t!==null&&(t&&_t.alternate!==null&&K.delete(_t.key===null?I:_t.key),m=u(_t,m,I),ot===null?Q=_t:ot.sibling=_t,ot=_t);return t&&K.forEach(function(Om){return e(v,Om)}),Tt&&Jn(v,I),Q}function xt(v,m,b,N){if(typeof b=="object"&&b!==null&&b.type===Qt&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case at:t:{for(var Q=b.key;m!==null;){if(m.key===Q){if(Q=b.type,Q===Qt){if(m.tag===7){n(v,m.sibling),N=a(m,b.props.children),N.return=v,v=N;break t}}else if(m.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===B&&Kf(Q)===m.type){n(v,m.sibling),N=a(m,b.props),Aa(N,b),N.return=v,v=N;break t}n(v,m);break}else e(v,m);m=m.sibling}b.type===Qt?(N=Kn(b.props.children,v.mode,N,b.key),N.return=v,v=N):(N=du(b.type,b.key,b.props,null,v.mode,N),Aa(N,b),N.return=v,v=N)}return r(v);case At:t:{for(Q=b.key;m!==null;){if(m.key===Q)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),N=a(m,b.children||[]),N.return=v,v=N;break t}else{n(v,m);break}else e(v,m);m=m.sibling}N=Wi(b,v.mode,N),N.return=v,v=N}return r(v);case B:return Q=b._init,b=Q(b._payload),xt(v,m,b,N)}if(bt(b))return tt(v,m,b,N);if(it(b)){if(Q=it(b),typeof Q!="function")throw Error(s(150));return b=Q.call(b),F(v,m,b,N)}if(typeof b.then=="function")return xt(v,m,xu(b),N);if(b.$$typeof===pt)return xt(v,m,vu(v,b),N);Uu(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),N=a(m,b),N.return=v,v=N):(n(v,m),N=Ji(b,v.mode,N),N.return=v,v=N),r(v)):n(v,m)}return function(v,m,b,N){try{Ta=0;var Q=xt(v,m,b,N);return Ul=null,Q}catch(K){if(K===ya||K===bu)throw K;var ot=Se(29,K,null,v.mode);return ot.lanes=N,ot.return=v,ot}finally{}}}var Ml=kf(!0),Jf=kf(!1),Ce=z(null),Ze=null;function En(t){var e=t.alternate;L(Jt,Jt.current&1),L(Ce,t),Ze===null&&(e===null||zl.current!==null||e.memoizedState!==null)&&(Ze=t)}function Wf(t){if(t.tag===22){if(L(Jt,Jt.current),L(Ce,t),Ze===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ze=t)}}else Tn()}function Tn(){L(Jt,Jt.current),L(Ce,Ce.current)}function cn(t){j(Ce),Ze===t&&(Ze=null),j(Jt)}var Jt=z(0);function Mu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||ps(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Dc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:q({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var xc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ae(),a=bn(l);a.payload=e,n!=null&&(a.callback=n),e=Sn(t,a,l),e!==null&&(Oe(e,t,l),ga(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ae(),a=bn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=Sn(t,a,l),e!==null&&(Oe(e,t,l),ga(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ae(),l=bn(n);l.tag=2,e!=null&&(l.callback=e),e=Sn(t,l,n),e!==null&&(Oe(e,t,n),ga(e,t,n))}};function Ff(t,e,n,l,a,u,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,r):e.prototype&&e.prototype.isPureReactComponent?!ia(n,l)||!ia(a,u):!0}function Pf(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&&xc.enqueueReplaceState(e,e.state,null)}function nl(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=q({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}var Bu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function If(t){Bu(t)}function to(t){console.error(t)}function eo(t){Bu(t)}function Cu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function no(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 Uc(t,e,n){return n=bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Cu(t,e)},n}function lo(t){return t=bn(t),t.tag=3,t}function ao(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var u=l.value;t.payload=function(){return a(u)},t.callback=function(){no(e,n,l)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){no(e,n,l),typeof a!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function Oy(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&oa(e,n,a,!0),n=Ce.current,n!==null){switch(n.tag){case 13:return Ze===null?es():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===ic?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),ls(t,l,a)),!1;case 22:return n.flags|=65536,l===ic?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)),ls(t,l,a)),!1}throw Error(s(435,n.tag))}return ls(t,l,a),es(),!1}if(Tt)return e=Ce.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==Ii&&(t=Error(s(422),{cause:l}),fa(xe(t,n)))):(l!==Ii&&(e=Error(s(423),{cause:l}),fa(xe(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=xe(l,n),a=Uc(t.stateNode,l,a),rc(t,a),Lt!==4&&(Lt=2)),!1;var u=Error(s(520),{cause:l});if(u=xe(u,n),Ua===null?Ua=[u]:Ua.push(u),Lt!==4&&(Lt=2),e===null)return!0;l=xe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=Uc(n.stateNode,l,t),rc(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Dn===null||!Dn.has(u))))return n.flags|=65536,a&=-a,n.lanes|=a,a=lo(a),ao(a,t,n,l),rc(n,a),!1}n=n.return}while(n!==null);return!1}var uo=Error(s(461)),Pt=!1;function ne(t,e,n,l){e.child=t===null?Jf(e,null,n,l):Ml(e,t.child,n,l)}function io(t,e,n,l,a){n=n.render;var u=e.ref;if("ref"in l){var r={};for(var o in l)o!=="ref"&&(r[o]=l[o])}else r=l;return In(e),l=yc(t,e,n,r,u,a),o=mc(),t!==null&&!Pt?(gc(t,e,a),sn(t,e,a)):(Tt&&o&&Fi(e),e.flags|=1,ne(t,e,l,a),e.child)}function co(t,e,n,l,a){if(t===null){var u=n.type;return typeof u=="function"&&!ki(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,so(t,e,u,l,a)):(t=du(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Lc(t,a)){var r=u.memoizedProps;if(n=n.compare,n=n!==null?n:ia,n(r,l)&&t.ref===e.ref)return sn(t,e,a)}return e.flags|=1,t=tn(u,l),t.ref=e.ref,t.return=e,e.child=t}function so(t,e,n,l,a){if(t!==null){var u=t.memoizedProps;if(ia(u,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=u,Lc(t,a))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,sn(t,e,a)}return Mc(t,e,n,l,a)}function ro(t,e,n){var l=e.pendingProps,a=l.children,u=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((e.flags&128)!==0){if(l=u!==null?u.baseLanes|n:n,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;e.childLanes=u&~l}else e.childLanes=0,e.child=null;return fo(t,e,l,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&pu(e,u!==null?u.cachePool:null),u!==null?sf(e,u):oc(),Wf(e);else return e.lanes=e.childLanes=536870912,fo(t,e,u!==null?u.baseLanes|n:n,n)}else u!==null?(pu(e,u.cachePool),sf(e,u),Tn(),e.memoizedState=null):(t!==null&&pu(e,null),oc(),Tn());return ne(t,e,a,n),e.child}function fo(t,e,n,l){var a=uc();return a=a===null?null:{parent:kt._currentValue,pool:a},e.memoizedState={baseLanes:n,cachePool:a},t!==null&&pu(e,null),oc(),Wf(e),t!==null&&oa(t,e,l,!0),null}function qu(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(s(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Mc(t,e,n,l,a){return In(e),n=yc(t,e,n,l,void 0,a),l=mc(),t!==null&&!Pt?(gc(t,e,a),sn(t,e,a)):(Tt&&l&&Fi(e),e.flags|=1,ne(t,e,n,a),e.child)}function oo(t,e,n,l,a,u){return In(e),e.updateQueue=null,n=ff(e,l,n,a),rf(t),l=mc(),t!==null&&!Pt?(gc(t,e,u),sn(t,e,u)):(Tt&&l&&Fi(e),e.flags|=1,ne(t,e,n,u),e.child)}function ho(t,e,n,l,a){if(In(e),e.stateNode===null){var u=El,r=n.contextType;typeof r=="object"&&r!==null&&(u=ce(r)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=xc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},cc(e),r=n.contextType,u.context=typeof r=="object"&&r!==null?ce(r):El,u.state=e.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(Dc(e,n,r,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&xc.enqueueReplaceState(u,u.state,null),pa(e,l,u,a),va(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,h=nl(n,o);u.props=h;var S=u.context,R=n.contextType;r=El,typeof R=="object"&&R!==null&&(r=ce(R));var U=n.getDerivedStateFromProps;R=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||S!==r)&&Pf(e,u,l,r),pn=!1;var _=e.memoizedState;u.state=_,pa(e,l,u,a),va(),S=e.memoizedState,o||_!==S||pn?(typeof U=="function"&&(Dc(e,n,U,l),S=e.memoizedState),(h=pn||Ff(e,n,h,l,_,S,r))?(R||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=S),u.props=l,u.state=S,u.context=r,l=h):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,sc(t,e),r=e.memoizedProps,R=nl(n,r),u.props=R,U=e.pendingProps,_=u.context,S=n.contextType,h=El,typeof S=="object"&&S!==null&&(h=ce(S)),o=n.getDerivedStateFromProps,(S=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==U||_!==h)&&Pf(e,u,l,h),pn=!1,_=e.memoizedState,u.state=_,pa(e,l,u,a),va();var E=e.memoizedState;r!==U||_!==E||pn||t!==null&&t.dependencies!==null&&gu(t.dependencies)?(typeof o=="function"&&(Dc(e,n,o,l),E=e.memoizedState),(R=pn||Ff(e,n,R,l,_,E,h)||t!==null&&t.dependencies!==null&&gu(t.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,E,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,E,h)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=E),u.props=l,u.state=E,u.context=h,l=R):(typeof u.componentDidUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,qu(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=Ml(e,t.child,null,a),e.child=Ml(e,null,n,a)):ne(t,e,n,a),e.memoizedState=u.state,t=e.child):t=sn(t,e,a),t}function yo(t,e,n,l){return ra(),e.flags|=256,ne(t,e,n,l),e.child}var Bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(t){return{baseLanes:t,cachePool:Ir()}}function qc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=qe),t}function mo(t,e,n){var l=e.pendingProps,a=!1,u=(e.flags&128)!==0,r;if((r=u)||(r=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),r&&(a=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(Tt){if(a?En(e):Tn(),Tt){var o=jt,h;if(h=o){t:{for(h=o,o=Ve;h.nodeType!==8;){if(!o){o=null;break t}if(h=Xe(h.nextSibling),h===null){o=null;break t}}o=h}o!==null?(e.memoizedState={dehydrated:o,treeContext:kn!==null?{id:en,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},h=Se(18,null,null,0),h.stateNode=o,h.return=e,e.child=h,oe=e,jt=null,h=!0):h=!1}h||Fn(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return ps(o)?e.lanes=32:e.lanes=536870912,null;cn(e)}return o=l.children,l=l.fallback,a?(Tn(),a=e.mode,o=wu({mode:"hidden",children:o},a),l=Kn(l,a,n,null),o.return=e,l.return=e,o.sibling=l,e.child=o,a=e.child,a.memoizedState=Cc(n),a.childLanes=qc(t,r,n),e.memoizedState=Bc,l):(En(e),wc(e,o))}if(h=t.memoizedState,h!==null&&(o=h.dehydrated,o!==null)){if(u)e.flags&256?(En(e),e.flags&=-257,e=Hc(t,e,n)):e.memoizedState!==null?(Tn(),e.child=t.child,e.flags|=128,e=null):(Tn(),a=l.fallback,o=e.mode,l=wu({mode:"visible",children:l.children},o),a=Kn(a,o,n,null),a.flags|=2,l.return=e,a.return=e,l.sibling=a,e.child=l,Ml(e,t.child,null,n),l=e.child,l.memoizedState=Cc(n),l.childLanes=qc(t,r,n),e.memoizedState=Bc,e=a);else if(En(e),ps(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var S=r.dgst;r=S,l=Error(s(419)),l.stack="",l.digest=r,fa({value:l,source:null,stack:null}),e=Hc(t,e,n)}else if(Pt||oa(t,e,n,!1),r=(n&t.childLanes)!==0,Pt||r){if(r=Bt,r!==null&&(l=n&-n,l=(l&42)!==0?1:bi(l),l=(l&(r.suspendedLanes|n))!==0?0:l,l!==0&&l!==h.retryLane))throw h.retryLane=l,_l(t,l),Oe(r,t,l),uo;o.data==="$?"||es(),e=Hc(t,e,n)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,jt=Xe(o.nextSibling),oe=e,Tt=!0,Wn=null,Ve=!1,t!==null&&(Me[Be++]=en,Me[Be++]=nn,Me[Be++]=kn,en=t.id,nn=t.overflow,kn=e),e=wc(e,l.children),e.flags|=4096);return e}return a?(Tn(),a=l.fallback,o=e.mode,h=t.child,S=h.sibling,l=tn(h,{mode:"hidden",children:l.children}),l.subtreeFlags=h.subtreeFlags&65011712,S!==null?a=tn(S,a):(a=Kn(a,o,n,null),a.flags|=2),a.return=e,l.return=e,l.sibling=a,e.child=l,l=a,a=e.child,o=t.child.memoizedState,o===null?o=Cc(n):(h=o.cachePool,h!==null?(S=kt._currentValue,h=h.parent!==S?{parent:S,pool:S}:h):h=Ir(),o={baseLanes:o.baseLanes|n,cachePool:h}),a.memoizedState=o,a.childLanes=qc(t,r,n),e.memoizedState=Bc,l):(En(e),n=t.child,t=n.sibling,n=tn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n)}function wc(t,e){return e=wu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function wu(t,e){return t=Se(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Hc(t,e,n){return Ml(e,t.child,null,n),t=wc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function go(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),ec(t.return,e,n)}function jc(t,e,n,l,a){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=a)}function vo(t,e,n){var l=e.pendingProps,a=l.revealOrder,u=l.tail;if(ne(t,e,l.children,n),l=Jt.current,(l&2)!==0)l=l&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&go(t,n,e);else if(t.tag===19)go(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}l&=1}switch(L(Jt,l),a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Mu(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),jc(e,!1,a,n,u);break;case"backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Mu(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}jc(e,!0,n,null,u);break;case"together":jc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Nn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(oa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,n=tn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=tn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Lc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&gu(t)))}function Ry(t,e,n){switch(e.tag){case 3:Mt(e,e.stateNode.containerInfo),vn(e,kt,t.memoizedState.cache),ra();break;case 27:case 5:Kl(e);break;case 4:Mt(e,e.stateNode.containerInfo);break;case 10:vn(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(En(e),e.flags|=128,null):(n&e.child.childLanes)!==0?mo(t,e,n):(En(e),t=sn(t,e,n),t!==null?t.sibling:null);En(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(oa(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return vo(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),L(Jt,Jt.current),l)break;return null;case 22:case 23:return e.lanes=0,ro(t,e,n);case 24:vn(e,kt,t.memoizedState.cache)}return sn(t,e,n)}function po(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!Lc(t,n)&&(e.flags&128)===0)return Pt=!1,Ry(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,Tt&&(e.flags&1048576)!==0&&$r(e,mu,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var l=e.elementType,a=l._init;if(l=a(l._payload),e.type=l,typeof l=="function")ki(l)?(t=nl(l,t),e.tag=1,e=ho(null,e,l,t,n)):(e.tag=0,e=Mc(null,e,l,t,n));else{if(l!=null){if(a=l.$$typeof,a===fe){e.tag=11,e=io(null,e,l,t,n);break t}else if(a===Wt){e.tag=14,e=co(null,e,l,t,n);break t}}throw e=he(l)||l,Error(s(306,e,""))}}return e;case 0:return Mc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=nl(l,e.pendingProps),ho(t,e,l,a,n);case 3:t:{if(Mt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var u=e.memoizedState;a=u.element,sc(t,e),pa(e,l,null,n);var r=e.memoizedState;if(l=r.cache,vn(e,kt,l),l!==u.cache&&nc(e,[kt],n,!0),va(),l=r.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=yo(t,e,l,n);break t}else if(l!==a){a=xe(Error(s(424)),e),fa(a),e=yo(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(jt=Xe(t.firstChild),oe=e,Tt=!0,Wn=null,Ve=!0,n=Jf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ra(),l===a){e=sn(t,e,n);break t}ne(t,e,l,n)}e=e.child}return e;case 26:return qu(t,e),t===null?(n=Eh(e.type,null,e.pendingProps,null))?e.memoizedState=n:Tt||(n=e.type,t=e.pendingProps,l=Wu(et.current).createElement(n),l[ie]=e,l[ye]=t,ae(l,n,t),Ft(l),e.stateNode=l):e.memoizedState=Eh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Kl(e),t===null&&Tt&&(l=e.stateNode=bh(e.type,e.pendingProps,et.current),oe=e,Ve=!0,a=jt,Mn(e.type)?(bs=a,jt=Xe(l.firstChild)):jt=a),ne(t,e,e.pendingProps.children,n),qu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Tt&&((a=l=jt)&&(l=tm(l,e.type,e.pendingProps,Ve),l!==null?(e.stateNode=l,oe=e,jt=Xe(l.firstChild),Ve=!1,a=!0):a=!1),a||Fn(e)),Kl(e),a=e.type,u=e.pendingProps,r=t!==null?t.memoizedProps:null,l=u.children,ms(a,u)?l=null:r!==null&&ms(a,r)&&(e.flags|=32),e.memoizedState!==null&&(a=yc(t,e,py,null,null,n),Ya._currentValue=a),qu(t,e),ne(t,e,l,n),e.child;case 6:return t===null&&Tt&&((t=n=jt)&&(n=em(n,e.pendingProps,Ve),n!==null?(e.stateNode=n,oe=e,jt=null,t=!0):t=!1),t||Fn(e)),null;case 13:return mo(t,e,n);case 4:return Mt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ml(e,null,l,n):ne(t,e,l,n),e.child;case 11:return io(t,e,e.type,e.pendingProps,n);case 7:return ne(t,e,e.pendingProps,n),e.child;case 8:return ne(t,e,e.pendingProps.children,n),e.child;case 12:return ne(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,vn(e,e.type,l.value),ne(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,In(e),a=ce(a),l=l(a),e.flags|=1,ne(t,e,l,n),e.child;case 14:return co(t,e,e.type,e.pendingProps,n);case 15:return so(t,e,e.type,e.pendingProps,n);case 19:return vo(t,e,n);case 31:return l=e.pendingProps,n=e.mode,l={mode:l.mode,children:l.children},t===null?(n=wu(l,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=tn(t.child,l),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return ro(t,e,n);case 24:return In(e),l=ce(kt),t===null?(a=uc(),a===null&&(a=Bt,u=lc(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=n),a=u),e.memoizedState={parent:l,cache:a},cc(e),vn(e,kt,a)):((t.lanes&n)!==0&&(sc(t,e),pa(e,null,null,n),va()),a=t.memoizedState,u=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),vn(e,kt,l)):(l=u.cache,vn(e,kt,l),l!==a.cache&&nc(e,[kt],n,!0))),ne(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function rn(t){t.flags|=4}function bo(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zh(e)){if(e=Ce.current,e!==null&&((St&4194048)===St?Ze!==null:(St&62914560)!==St&&(St&536870912)===0||e!==Ze))throw ma=ic,tf;t.flags|=8192}}function Hu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Pa():536870912,t.lanes|=e,wl|=e)}function Oa(t,e){if(!Tt)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 wt(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 zy(t,e,n){var l=e.pendingProps;switch(Pi(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(e),null;case 1:return wt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),an(kt),je(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(sa(e)?rn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Jr())),wt(e),null;case 26:return n=e.memoizedState,t===null?(rn(e),n!==null?(wt(e),bo(e,n)):(wt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(rn(e),wt(e),bo(e,n)):(wt(e),e.flags&=-16777217):(t.memoizedProps!==l&&rn(e),wt(e),e.flags&=-16777217),null;case 27:yn(e),n=et.current;var a=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&rn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return wt(e),null}t=J.current,sa(e)?Kr(e):(t=bh(a,l,n),e.stateNode=t,rn(e))}return wt(e),null;case 5:if(yn(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&rn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return wt(e),null}if(t=J.current,sa(e))Kr(e);else{switch(a=Wu(et.current),t){case 1:t=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?a.createElement("select",{is:l.is}):a.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?a.createElement(n,{is:l.is}):a.createElement(n)}}t[ie]=e,t[ye]=l;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=t;t:switch(ae(t,n,l),n){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&rn(e)}}return wt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&rn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(s(166));if(t=et.current,sa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=oe,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[ie]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||hh(t.nodeValue,n)),t||Fn(e)}else t=Wu(t).createTextNode(l),t[ie]=e,e.stateNode=t}return wt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=sa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[ie]=e}else ra(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;wt(e),a=!1}else a=Jr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(cn(e),e):(cn(e),null)}if(cn(e),(e.flags&128)!==0)return e.lanes=n,e;if(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);var u=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==a&&(l.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Hu(e,e.updateQueue),wt(e),null;case 4:return je(),t===null&&fs(e.stateNode.containerInfo),wt(e),null;case 10:return an(e.type),wt(e),null;case 19:if(j(Jt),a=e.memoizedState,a===null)return wt(e),null;if(l=(e.flags&128)!==0,u=a.rendering,u===null)if(l)Oa(a,!1);else{if(Lt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Mu(t),u!==null){for(e.flags|=128,Oa(a,!1),t=u.updateQueue,e.updateQueue=t,Hu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Zr(n,t),n=n.sibling;return L(Jt,Jt.current&1|2),e.child}t=t.sibling}a.tail!==null&&Re()>Yu&&(e.flags|=128,l=!0,Oa(a,!1),e.lanes=4194304)}else{if(!l)if(t=Mu(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Hu(e,t),Oa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Tt)return wt(e),null}else 2*Re()-a.renderingStartTime>Yu&&n!==536870912&&(e.flags|=128,l=!0,Oa(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Re(),e.sibling=null,t=Jt.current,L(Jt,l?t&1|2:t&1),e):(wt(e),null);case 22:case 23:return cn(e),hc(),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&&(wt(e),e.subtreeFlags&6&&(e.flags|=8192)):wt(e),n=e.updateQueue,n!==null&&Hu(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&&j(tl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(kt),wt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Ny(t,e){switch(Pi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(kt),je(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return yn(e),null;case 13:if(cn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));ra()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Jt),null;case 4:return je(),null;case 10:return an(e.type),null;case 22:case 23:return cn(e),hc(),t!==null&&j(tl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return an(kt),null;case 25:return null;default:return null}}function So(t,e){switch(Pi(e),e.tag){case 3:an(kt),je();break;case 26:case 27:case 5:yn(e);break;case 4:je();break;case 13:cn(e);break;case 19:j(Jt);break;case 10:an(e.type);break;case 22:case 23:cn(e),hc(),t!==null&&j(tl);break;case 24:an(kt)}}function Ra(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 u=n.create,r=n.inst;l=u(),r.destroy=l}n=n.next}while(n!==a)}}catch(o){Ut(e,e.return,o)}}function An(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&t)===t){var r=l.inst,o=r.destroy;if(o!==void 0){r.destroy=void 0,a=e;var h=n,S=o;try{S()}catch(R){Ut(a,h,R)}}}l=l.next}while(l!==u)}}catch(R){Ut(e,e.return,R)}}function _o(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{cf(e,n)}catch(l){Ut(t,t.return,l)}}}function Eo(t,e,n){n.props=nl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ut(t,e,l)}}function za(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 $e(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 To(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 Yc(t,e,n){try{var l=t.stateNode;Jy(l,t.type,n,e),l[ye]=e}catch(a){Ut(t,t.return,a)}}function Ao(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Mn(t.type)||t.tag===4}function Xc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ao(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Mn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Gc(t,e,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=Ju));else if(l!==4&&(l===27&&Mn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Gc(t,e,n),t=t.sibling;t!==null;)Gc(t,e,n),t=t.sibling}function ju(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&&Mn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ju(t,e,n),t=t.sibling;t!==null;)ju(t,e,n),t=t.sibling}function Oo(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);ae(e,l,n),e[ie]=t,e[ye]=n}catch(u){Ut(t,t.return,u)}}var fn=!1,Gt=!1,Qc=!1,Ro=typeof WeakSet=="function"?WeakSet:Set,It=null;function Dy(t,e){if(t=t.containerInfo,ds=ni,t=qr(t),Xi(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,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var r=0,o=-1,h=-1,S=0,R=0,U=t,_=null;e:for(;;){for(var E;U!==n||a!==0&&U.nodeType!==3||(o=r+a),U!==u||l!==0&&U.nodeType!==3||(h=r+l),U.nodeType===3&&(r+=U.nodeValue.length),(E=U.firstChild)!==null;)_=U,U=E;for(;;){if(U===t)break e;if(_===n&&++S===a&&(o=r),_===u&&++R===l&&(h=r),(E=U.nextSibling)!==null)break;U=_,_=U.parentNode}U=E}n=o===-1||h===-1?null:{start:o,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(ys={focusedElem:t,selectionRange:n},ni=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,a=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var tt=nl(n.type,a,n.elementType===n.type);t=l.getSnapshotBeforeUpdate(tt,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(F){Ut(n,n.return,F)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)vs(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vs(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=e.sibling,t!==null){t.return=e.return,It=t;break}It=e.return}}function zo(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:On(t,n),l&4&&Ra(5,n);break;case 1:if(On(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(r){Ut(n,n.return,r)}else{var a=nl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){Ut(n,n.return,r)}}l&64&&_o(n),l&512&&za(n,n.return);break;case 3:if(On(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{cf(t,e)}catch(r){Ut(n,n.return,r)}}break;case 27:e===null&&l&4&&Oo(n);case 26:case 5:On(t,n),e===null&&l&4&&To(n),l&512&&za(n,n.return);break;case 12:On(t,n);break;case 13:On(t,n),l&4&&xo(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=jy.bind(null,n),nm(t,n))));break;case 22:if(l=n.memoizedState!==null||fn,!l){e=e!==null&&e.memoizedState!==null||Gt,a=fn;var u=Gt;fn=l,(Gt=e)&&!u?Rn(t,n,(n.subtreeFlags&8772)!==0):On(t,n),fn=a,Gt=u}break;case 30:break;default:On(t,n)}}function No(t){var e=t.alternate;e!==null&&(t.alternate=null,No(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ei(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var qt=null,ve=!1;function on(t,e,n){for(n=n.child;n!==null;)Do(t,e,n),n=n.sibling}function Do(t,e,n){if($&&typeof $.onCommitFiberUnmount=="function")try{$.onCommitFiberUnmount(x,n)}catch{}switch(n.tag){case 26:Gt||$e(n,e),on(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Gt||$e(n,e);var l=qt,a=ve;Mn(n.type)&&(qt=n.stateNode,ve=!1),on(t,e,n),wa(n.stateNode),qt=l,ve=a;break;case 5:Gt||$e(n,e);case 6:if(l=qt,a=ve,qt=null,on(t,e,n),qt=l,ve=a,qt!==null)if(ve)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(n.stateNode)}catch(u){Ut(n,e,u)}else try{qt.removeChild(n.stateNode)}catch(u){Ut(n,e,u)}break;case 18:qt!==null&&(ve?(t=qt,vh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Va(t)):vh(qt,n.stateNode));break;case 4:l=qt,a=ve,qt=n.stateNode.containerInfo,ve=!0,on(t,e,n),qt=l,ve=a;break;case 0:case 11:case 14:case 15:Gt||An(2,n,e),Gt||An(4,n,e),on(t,e,n);break;case 1:Gt||($e(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Eo(n,e,l)),on(t,e,n);break;case 21:on(t,e,n);break;case 22:Gt=(l=Gt)||n.memoizedState!==null,on(t,e,n),Gt=l;break;default:on(t,e,n)}}function xo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Va(t)}catch(n){Ut(e,e.return,n)}}function xy(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ro),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ro),e;default:throw Error(s(435,t.tag))}}function Vc(t,e){var n=xy(t);e.forEach(function(l){var a=Ly.bind(null,t,l);n.has(l)||(n.add(l),l.then(a,a))})}function _e(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],u=t,r=e,o=r;t:for(;o!==null;){switch(o.tag){case 27:if(Mn(o.type)){qt=o.stateNode,ve=!1;break t}break;case 5:qt=o.stateNode,ve=!1;break t;case 3:case 4:qt=o.stateNode.containerInfo,ve=!0;break t}o=o.return}if(qt===null)throw Error(s(160));Do(u,r,a),qt=null,ve=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Uo(e,t),e=e.sibling}var Ye=null;function Uo(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_e(e,t),Ee(t),l&4&&(An(3,t,t.return),Ra(3,t),An(5,t,t.return));break;case 1:_e(e,t),Ee(t),l&512&&(Gt||n===null||$e(n,n.return)),l&64&&fn&&(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=Ye;if(_e(e,t),Ee(t),l&512&&(Gt||n===null||$e(n,n.return)),l&4){var u=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":u=a.getElementsByTagName("title")[0],(!u||u[Fl]||u[ie]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(l),a.head.insertBefore(u,a.querySelector("head > title"))),ae(u,l,n),u[ie]=t,Ft(u),l=u;break t;case"link":var r=Oh("link","href",a).get(l+(n.href||""));if(r){for(var o=0;o<r.length;o++)if(u=r[o],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(o,1);break e}}u=a.createElement(l),ae(u,l,n),a.head.appendChild(u);break;case"meta":if(r=Oh("meta","content",a).get(l+(n.content||""))){for(o=0;o<r.length;o++)if(u=r[o],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(o,1);break e}}u=a.createElement(l),ae(u,l,n),a.head.appendChild(u);break;default:throw Error(s(468,l))}u[ie]=t,Ft(u),l=u}t.stateNode=l}else Rh(a,t.type,t.stateNode);else t.stateNode=Ah(a,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Rh(a,t.type,t.stateNode):Ah(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Yc(t,t.memoizedProps,n.memoizedProps)}break;case 27:_e(e,t),Ee(t),l&512&&(Gt||n===null||$e(n,n.return)),n!==null&&l&4&&Yc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(_e(e,t),Ee(t),l&512&&(Gt||n===null||$e(n,n.return)),t.flags&32){a=t.stateNode;try{yl(a,"")}catch(E){Ut(t,t.return,E)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,Yc(t,a,n!==null?n.memoizedProps:a)),l&1024&&(Qc=!0);break;case 6:if(_e(e,t),Ee(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(E){Ut(t,t.return,E)}}break;case 3:if(Iu=null,a=Ye,Ye=Fu(e.containerInfo),_e(e,t),Ye=a,Ee(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Va(e.containerInfo)}catch(E){Ut(t,t.return,E)}Qc&&(Qc=!1,Mo(t));break;case 4:l=Ye,Ye=Fu(t.stateNode.containerInfo),_e(e,t),Ee(t),Ye=l;break;case 12:_e(e,t),Ee(t);break;case 13:_e(e,t),Ee(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Wc=Re()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vc(t,l)));break;case 22:a=t.memoizedState!==null;var h=n!==null&&n.memoizedState!==null,S=fn,R=Gt;if(fn=S||a,Gt=R||h,_e(e,t),Gt=R,fn=S,Ee(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||h||fn||Gt||ll(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){h=n=e;try{if(u=h.stateNode,a)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{o=h.stateNode;var U=h.memoizedProps.style,_=U!=null&&U.hasOwnProperty("display")?U.display:null;o.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(E){Ut(h,h.return,E)}}}else if(e.tag===6){if(n===null){h=e;try{h.stateNode.nodeValue=a?"":h.memoizedProps}catch(E){Ut(h,h.return,E)}}}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,Vc(t,n))));break;case 19:_e(e,t),Ee(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vc(t,l)));break;case 30:break;case 21:break;default:_e(e,t),Ee(t)}}function Ee(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Ao(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var a=n.stateNode,u=Xc(t);ju(t,u,a);break;case 5:var r=n.stateNode;n.flags&32&&(yl(r,""),n.flags&=-33);var o=Xc(t);ju(t,o,r);break;case 3:case 4:var h=n.stateNode.containerInfo,S=Xc(t);Gc(t,S,h);break;default:throw Error(s(161))}}catch(R){Ut(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Mo(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Mo(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function On(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)zo(t,e.alternate,e),e=e.sibling}function ll(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:An(4,e,e.return),ll(e);break;case 1:$e(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Eo(e,e.return,n),ll(e);break;case 27:wa(e.stateNode);case 26:case 5:$e(e,e.return),ll(e);break;case 22:e.memoizedState===null&&ll(e);break;case 30:ll(e);break;default:ll(e)}t=t.sibling}}function Rn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,u=e,r=u.flags;switch(u.tag){case 0:case 11:case 15:Rn(a,u,n),Ra(4,u);break;case 1:if(Rn(a,u,n),l=u,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(S){Ut(l,l.return,S)}if(l=u,a=l.updateQueue,a!==null){var o=l.stateNode;try{var h=a.shared.hiddenCallbacks;if(h!==null)for(a.shared.hiddenCallbacks=null,a=0;a<h.length;a++)uf(h[a],o)}catch(S){Ut(l,l.return,S)}}n&&r&64&&_o(u),za(u,u.return);break;case 27:Oo(u);case 26:case 5:Rn(a,u,n),n&&l===null&&r&4&&To(u),za(u,u.return);break;case 12:Rn(a,u,n);break;case 13:Rn(a,u,n),n&&r&4&&xo(a,u);break;case 22:u.memoizedState===null&&Rn(a,u,n),za(u,u.return);break;case 30:break;default:Rn(a,u,n)}e=e.sibling}}function Zc(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&&ha(n))}function $c(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ha(t))}function Ke(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bo(t,e,n,l),e=e.sibling}function Bo(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Ke(t,e,n,l),a&2048&&Ra(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&&ha(t)));break;case 12:if(a&2048){Ke(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,r=u.id,o=u.onPostCommit;typeof o=="function"&&o(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){Ut(e,e.return,h)}}else Ke(t,e,n,l);break;case 13:Ke(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,r=e.alternate,e.memoizedState!==null?u._visibility&2?Ke(t,e,n,l):Na(t,e):u._visibility&2?Ke(t,e,n,l):(u._visibility|=2,Bl(t,e,n,l,(e.subtreeFlags&10256)!==0)),a&2048&&Zc(r,e);break;case 24:Ke(t,e,n,l),a&2048&&$c(e.alternate,e);break;default:Ke(t,e,n,l)}}function Bl(t,e,n,l,a){for(a=a&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,r=e,o=n,h=l,S=r.flags;switch(r.tag){case 0:case 11:case 15:Bl(u,r,o,h,a),Ra(8,r);break;case 23:break;case 22:var R=r.stateNode;r.memoizedState!==null?R._visibility&2?Bl(u,r,o,h,a):Na(u,r):(R._visibility|=2,Bl(u,r,o,h,a)),a&&S&2048&&Zc(r.alternate,r);break;case 24:Bl(u,r,o,h,a),a&&S&2048&&$c(r.alternate,r);break;default:Bl(u,r,o,h,a)}e=e.sibling}}function Na(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:Na(n,l),a&2048&&Zc(l.alternate,l);break;case 24:Na(n,l),a&2048&&$c(l.alternate,l);break;default:Na(n,l)}e=e.sibling}}var Da=8192;function Cl(t){if(t.subtreeFlags&Da)for(t=t.child;t!==null;)Co(t),t=t.sibling}function Co(t){switch(t.tag){case 26:Cl(t),t.flags&Da&&t.memoizedState!==null&&mm(Ye,t.memoizedState,t.memoizedProps);break;case 5:Cl(t);break;case 3:case 4:var e=Ye;Ye=Fu(t.stateNode.containerInfo),Cl(t),Ye=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Da,Da=16777216,Cl(t),Da=e):Cl(t));break;default:Cl(t)}}function qo(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function xa(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];It=l,Ho(l,t)}qo(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wo(t),t=t.sibling}function wo(t){switch(t.tag){case 0:case 11:case 15:xa(t),t.flags&2048&&An(9,t,t.return);break;case 3:xa(t);break;case 12:xa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Lu(t)):xa(t);break;default:xa(t)}}function Lu(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];It=l,Ho(l,t)}qo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:An(8,e,e.return),Lu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Lu(e));break;default:Lu(e)}t=t.sibling}}function Ho(t,e){for(;It!==null;){var n=It;switch(n.tag){case 0:case 11:case 15:An(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:ha(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,It=l;else t:for(n=t;It!==null;){l=It;var a=l.sibling,u=l.return;if(No(l),l===n){It=null;break t}if(a!==null){a.return=u,It=a;break t}It=u}}}var Uy={getCacheForType:function(t){var e=ce(kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},My=typeof WeakMap=="function"?WeakMap:Map,Rt=0,Bt=null,ht=null,St=0,zt=0,Te=null,zn=!1,ql=!1,Kc=!1,hn=0,Lt=0,Nn=0,al=0,kc=0,qe=0,wl=0,Ua=null,pe=null,Jc=!1,Wc=0,Yu=1/0,Xu=null,Dn=null,le=0,xn=null,Hl=null,jl=0,Fc=0,Pc=null,jo=null,Ma=0,Ic=null;function Ae(){if((Rt&2)!==0&&St!==0)return St&-St;if(T.T!==null){var t=Ol;return t!==0?t:is()}return Ps()}function Lo(){qe===0&&(qe=(St&536870912)===0||Tt?Fa():536870912);var t=Ce.current;return t!==null&&(t.flags|=32),qe}function Oe(t,e,n){(t===Bt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(Ll(t,0),Un(t,St,qe,!1)),Gn(t,n),((Rt&2)===0||t!==Bt)&&(t===Bt&&((Rt&2)===0&&(al|=n),Lt===4&&Un(t,St,qe,!1)),ke(t))}function Yo(t,e,n){if((Rt&6)!==0)throw Error(s(327));var l=!n&&(e&124)===0&&(e&t.expiredLanes)===0||Qe(t,e),a=l?qy(t,e):ns(t,e,!0),u=l;do{if(a===0){ql&&!l&&Un(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!By(n)){a=ns(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var o=t;a=Ua;var h=o.current.memoizedState.isDehydrated;if(h&&(Ll(o,r).flags|=256),r=ns(o,r,!1),r!==2){if(Kc&&!h){o.errorRecoveryDisabledLanes|=u,al|=u,a=4;break t}u=pe,pe=a,u!==null&&(pe===null?pe=u:pe.push.apply(pe,u))}a=r}if(u=!1,a!==2)continue}}if(a===1){Ll(t,0),Un(t,e,0,!0);break}t:{switch(l=t,u=a,u){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Un(l,e,qe,!zn);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=Wc+300-Re(),10<a)){if(Un(l,e,qe,!zn),Yn(l,0,!0)!==0)break t;l.timeoutHandle=mh(Xo.bind(null,l,n,pe,Xu,Jc,e,qe,al,wl,zn,u,2,-0,0),a);break t}Xo(l,n,pe,Xu,Jc,e,qe,al,wl,zn,u,0,-0,0)}}break}while(!0);ke(t)}function Xo(t,e,n,l,a,u,r,o,h,S,R,U,_,E){if(t.timeoutHandle=-1,U=e.subtreeFlags,(U&8192||(U&16785408)===16785408)&&(La={stylesheets:null,count:0,unsuspend:ym},Co(e),U=gm(),U!==null)){t.cancelPendingCommit=U(ko.bind(null,t,e,u,n,l,a,r,o,h,R,1,_,E)),Un(t,u,r,!S);return}ko(t,e,u,n,l,a,r,o,h)}function By(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],u=a.getSnapshot;a=a.value;try{if(!be(u(),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 Un(t,e,n,l){e&=~kc,e&=~al,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var u=31-X(a),r=1<<u;l[u]=-1,a&=~r}n!==0&&Ws(t,n,e)}function Gu(){return(Rt&6)===0?(Ba(0),!1):!0}function ts(){if(ht!==null){if(zt===0)var t=ht.return;else t=ht,ln=Pn=null,vc(t),Ul=null,Ta=0,t=ht;for(;t!==null;)So(t.alternate,t),t=t.return;ht=null}}function Ll(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Fy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ts(),Bt=t,ht=n=tn(t.current,null),St=e,zt=0,Te=null,zn=!1,ql=Qe(t,e),Kc=!1,wl=qe=kc=al=Nn=Lt=0,pe=Ua=null,Jc=!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-X(l),u=1<<a;e|=t[a],l&=~u}return hn=e,fu(),n}function Go(t,e){rt=null,T.H=Du,e===ya||e===bu?(e=lf(),zt=3):e===tf?(e=lf(),zt=4):zt=e===uo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Te=e,ht===null&&(Lt=1,Cu(t,xe(e,t.current)))}function Qo(){var t=T.H;return T.H=Du,t===null?Du:t}function Vo(){var t=T.A;return T.A=Uy,t}function es(){Lt=4,zn||(St&4194048)!==St&&Ce.current!==null||(ql=!0),(Nn&134217727)===0&&(al&134217727)===0||Bt===null||Un(Bt,St,qe,!1)}function ns(t,e,n){var l=Rt;Rt|=2;var a=Qo(),u=Vo();(Bt!==t||St!==e)&&(Xu=null,Ll(t,e)),e=!1;var r=Lt;t:do try{if(zt!==0&&ht!==null){var o=ht,h=Te;switch(zt){case 8:ts(),r=6;break t;case 3:case 2:case 9:case 6:Ce.current===null&&(e=!0);var S=zt;if(zt=0,Te=null,Yl(t,o,h,S),n&&ql){r=0;break t}break;default:S=zt,zt=0,Te=null,Yl(t,o,h,S)}}Cy(),r=Lt;break}catch(R){Go(t,R)}while(!0);return e&&t.shellSuspendCounter++,ln=Pn=null,Rt=l,T.H=a,T.A=u,ht===null&&(Bt=null,St=0,fu()),r}function Cy(){for(;ht!==null;)Zo(ht)}function qy(t,e){var n=Rt;Rt|=2;var l=Qo(),a=Vo();Bt!==t||St!==e?(Xu=null,Yu=Re()+500,Ll(t,e)):ql=Qe(t,e);t:do try{if(zt!==0&&ht!==null){e=ht;var u=Te;e:switch(zt){case 1:zt=0,Te=null,Yl(t,e,u,1);break;case 2:case 9:if(ef(u)){zt=0,Te=null,$o(e);break}e=function(){zt!==2&&zt!==9||Bt!==t||(zt=7),ke(t)},u.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:ef(u)?(zt=0,Te=null,$o(e)):(zt=0,Te=null,Yl(t,e,u,7));break;case 5:var r=null;switch(ht.tag){case 26:r=ht.memoizedState;case 5:case 27:var o=ht;if(!r||zh(r)){zt=0,Te=null;var h=o.sibling;if(h!==null)ht=h;else{var S=o.return;S!==null?(ht=S,Qu(S)):ht=null}break e}}zt=0,Te=null,Yl(t,e,u,5);break;case 6:zt=0,Te=null,Yl(t,e,u,6);break;case 8:ts(),Lt=6;break t;default:throw Error(s(462))}}wy();break}catch(R){Go(t,R)}while(!0);return ln=Pn=null,T.H=l,T.A=a,Rt=n,ht!==null?0:(Bt=null,St=0,fu(),Lt)}function wy(){for(;ht!==null&&!vi();)Zo(ht)}function Zo(t){var e=po(t.alternate,t,hn);t.memoizedProps=t.pendingProps,e===null?Qu(t):ht=e}function $o(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=oo(n,e,e.pendingProps,e.type,void 0,St);break;case 11:e=oo(n,e,e.pendingProps,e.type.render,e.ref,St);break;case 5:vc(e);default:So(n,e),e=ht=Zr(e,hn),e=po(n,e,hn)}t.memoizedProps=t.pendingProps,e===null?Qu(t):ht=e}function Yl(t,e,n,l){ln=Pn=null,vc(e),Ul=null,Ta=0;var a=e.return;try{if(Oy(t,a,e,n,St)){Lt=1,Cu(t,xe(n,t.current)),ht=null;return}}catch(u){if(a!==null)throw ht=a,u;Lt=1,Cu(t,xe(n,t.current)),ht=null;return}e.flags&32768?(Tt||l===1?t=!0:ql||(St&536870912)!==0?t=!1:(zn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ce.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ko(e,t)):Qu(e)}function Qu(t){var e=t;do{if((e.flags&32768)!==0){Ko(e,zn);return}t=e.return;var n=zy(e.alternate,e,hn);if(n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);Lt===0&&(Lt=5)}function Ko(t,e){do{var n=Ny(t.alternate,t);if(n!==null){n.flags&=32767,ht=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=n}while(t!==null);Lt=6,ht=null}function ko(t,e,n,l,a,u,r,o,h){t.cancelPendingCommit=null;do Vu();while(le!==0);if((Rt&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=$i,yd(t,n,u,r,o,h),t===Bt&&(ht=Bt=null,St=0),Hl=e,xn=t,jl=n,Fc=u,Pc=a,jo=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Yy(il,function(){return Io(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,a=C.p,C.p=2,r=Rt,Rt|=4;try{Dy(t,e,n)}finally{Rt=r,C.p=a,T.T=l}}le=1,Jo(),Wo(),Fo()}}function Jo(){if(le===1){le=0;var t=xn,e=Hl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null;var l=C.p;C.p=2;var a=Rt;Rt|=4;try{Uo(e,t);var u=ys,r=qr(t.containerInfo),o=u.focusedElem,h=u.selectionRange;if(r!==o&&o&&o.ownerDocument&&Cr(o.ownerDocument.documentElement,o)){if(h!==null&&Xi(o)){var S=h.start,R=h.end;if(R===void 0&&(R=S),"selectionStart"in o)o.selectionStart=S,o.selectionEnd=Math.min(R,o.value.length);else{var U=o.ownerDocument||document,_=U&&U.defaultView||window;if(_.getSelection){var E=_.getSelection(),tt=o.textContent.length,F=Math.min(h.start,tt),xt=h.end===void 0?F:Math.min(h.end,tt);!E.extend&&F>xt&&(r=xt,xt=F,F=r);var v=Br(o,F),m=Br(o,xt);if(v&&m&&(E.rangeCount!==1||E.anchorNode!==v.node||E.anchorOffset!==v.offset||E.focusNode!==m.node||E.focusOffset!==m.offset)){var b=U.createRange();b.setStart(v.node,v.offset),E.removeAllRanges(),F>xt?(E.addRange(b),E.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),E.addRange(b))}}}}for(U=[],E=o;E=E.parentNode;)E.nodeType===1&&U.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<U.length;o++){var N=U[o];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}ni=!!ds,ys=ds=null}finally{Rt=a,C.p=l,T.T=n}}t.current=e,le=2}}function Wo(){if(le===2){le=0;var t=xn,e=Hl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=T.T,T.T=null;var l=C.p;C.p=2;var a=Rt;Rt|=4;try{zo(t,e.alternate,e)}finally{Rt=a,C.p=l,T.T=n}}le=3}}function Fo(){if(le===4||le===3){le=0,pi();var t=xn,e=Hl,n=jl,l=jo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?le=5:(le=0,Hl=xn=null,Po(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Dn=null),Si(n),e=e.stateNode,$&&typeof $.onCommitFiberRoot=="function")try{$.onCommitFiberRoot(x,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=T.T,a=C.p,C.p=2,T.T=null;try{for(var u=t.onRecoverableError,r=0;r<l.length;r++){var o=l[r];u(o.value,{componentStack:o.stack})}}finally{T.T=e,C.p=a}}(jl&3)!==0&&Vu(),ke(t),a=t.pendingLanes,(n&4194090)!==0&&(a&42)!==0?t===Ic?Ma++:(Ma=0,Ic=t):Ma=0,Ba(0)}}function Po(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ha(e)))}function Vu(t){return Jo(),Wo(),Fo(),Io()}function Io(){if(le!==5)return!1;var t=xn,e=Fc;Fc=0;var n=Si(jl),l=T.T,a=C.p;try{C.p=32>n?32:n,T.T=null,n=Pc,Pc=null;var u=xn,r=jl;if(le=0,Hl=xn=null,jl=0,(Rt&6)!==0)throw Error(s(331));var o=Rt;if(Rt|=4,wo(u.current),Bo(u,u.current,r,n),Rt=o,Ba(0,!1),$&&typeof $.onPostCommitFiberRoot=="function")try{$.onPostCommitFiberRoot(x,u)}catch{}return!0}finally{C.p=a,T.T=l,Po(t,e)}}function th(t,e,n){e=xe(n,e),e=Uc(t.stateNode,e,2),t=Sn(t,e,2),t!==null&&(Gn(t,2),ke(t))}function Ut(t,e,n){if(t.tag===3)th(t,t,n);else for(;e!==null;){if(e.tag===3){th(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Dn===null||!Dn.has(l))){t=xe(n,t),n=lo(2),l=Sn(e,n,2),l!==null&&(ao(n,l,e,t),Gn(l,2),ke(l));break}}e=e.return}}function ls(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new My;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)||(Kc=!0,a.add(n),t=Hy.bind(null,t,e,n),e.then(t,t))}function Hy(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Bt===t&&(St&n)===n&&(Lt===4||Lt===3&&(St&62914560)===St&&300>Re()-Wc?(Rt&2)===0&&Ll(t,0):kc|=n,wl===St&&(wl=0)),ke(t)}function eh(t,e){e===0&&(e=Pa()),t=_l(t,e),t!==null&&(Gn(t,e),ke(t))}function jy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),eh(t,n)}function Ly(t,e){var n=0;switch(t.tag){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(s(314))}l!==null&&l.delete(e),eh(t,n)}function Yy(t,e){return Fe(t,e)}var Zu=null,Xl=null,as=!1,$u=!1,us=!1,ul=0;function ke(t){t!==Xl&&t.next===null&&(Xl===null?Zu=Xl=t:Xl=Xl.next=t),$u=!0,as||(as=!0,Gy())}function Ba(t,e){if(!us&&$u){us=!0;do for(var n=!1,l=Zu;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var u=0;else{var r=l.suspendedLanes,o=l.pingedLanes;u=(1<<31-X(42|t)+1)-1,u&=a&~(r&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,uh(l,u))}else u=St,u=Yn(l,l===Bt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Qe(l,u)||(n=!0,uh(l,u));l=l.next}while(n);us=!1}}function Xy(){nh()}function nh(){$u=as=!1;var t=0;ul!==0&&(Wy()&&(t=ul),ul=0);for(var e=Re(),n=null,l=Zu;l!==null;){var a=l.next,u=lh(l,e);u===0?(l.next=null,n===null?Zu=a:n.next=a,a===null&&(Xl=n)):(n=l,(t!==0||(u&3)!==0)&&($u=!0)),l=a}Ba(t)}function lh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var r=31-X(u),o=1<<r,h=a[r];h===-1?((o&n)===0||(o&l)!==0)&&(a[r]=Wa(o,e)):h<=e&&(t.expiredLanes|=o),u&=~o}if(e=Bt,n=St,n=Yn(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&kl(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Qe(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&kl(l),Si(n)){case 2:case 8:n=Wl;break;case 32:n=il;break;case 268435456:n=M;break;default:n=il}return l=ah.bind(null,t),n=Fe(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&kl(l),t.callbackPriority=2,t.callbackNode=null,2}function ah(t,e){if(le!==0&&le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Vu()&&t.callbackNode!==n)return null;var l=St;return l=Yn(t,t===Bt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Yo(t,l,e),lh(t,Re()),t.callbackNode!=null&&t.callbackNode===n?ah.bind(null,t):null)}function uh(t,e){if(Vu())return null;Yo(t,e,!0)}function Gy(){Py(function(){(Rt&6)!==0?Fe(Jl,Xy):nh()})}function is(){return ul===0&&(ul=Fa()),ul}function ih(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:lu(""+t)}function ch(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 Qy(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var u=ih((a[ye]||null).action),r=l.submitter;r&&(e=(e=r[ye]||null)?ih(e.formAction):r.getAttribute("formAction"),e!==null&&(u=e,r=null));var o=new cu("action","action",null,l,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ul!==0){var h=r?ch(a,r):new FormData(a);Rc(n,{pending:!0,data:h,method:a.method,action:u},null,h)}}else typeof u=="function"&&(o.preventDefault(),h=r?ch(a,r):new FormData(a),Rc(n,{pending:!0,data:h,method:a.method,action:u},u,h))},currentTarget:a}]})}}for(var cs=0;cs<Zi.length;cs++){var ss=Zi[cs],Vy=ss.toLowerCase(),Zy=ss[0].toUpperCase()+ss.slice(1);Le(Vy,"on"+Zy)}Le(jr,"onAnimationEnd"),Le(Lr,"onAnimationIteration"),Le(Yr,"onAnimationStart"),Le("dblclick","onDoubleClick"),Le("focusin","onFocus"),Le("focusout","onBlur"),Le(sy,"onTransitionRun"),Le(ry,"onTransitionStart"),Le(fy,"onTransitionCancel"),Le(Xr,"onTransitionEnd"),ol("onMouseEnter",["mouseout","mouseover"]),ol("onMouseLeave",["mouseout","mouseover"]),ol("onPointerEnter",["pointerout","pointerover"]),ol("onPointerLeave",["pointerout","pointerover"]),Qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ca="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$y=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ca));function sh(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 u=void 0;if(e)for(var r=l.length-1;0<=r;r--){var o=l[r],h=o.instance,S=o.currentTarget;if(o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=S;try{u(a)}catch(R){Bu(R)}a.currentTarget=null,u=h}else for(r=0;r<l.length;r++){if(o=l[r],h=o.instance,S=o.currentTarget,o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=S;try{u(a)}catch(R){Bu(R)}a.currentTarget=null,u=h}}}}function dt(t,e){var n=e[_i];n===void 0&&(n=e[_i]=new Set);var l=t+"__bubble";n.has(l)||(rh(e,t,2,!1),n.add(l))}function rs(t,e,n){var l=0;e&&(l|=4),rh(n,t,l,e)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function fs(t){if(!t[Ku]){t[Ku]=!0,tr.forEach(function(n){n!=="selectionchange"&&($y.has(n)||rs(n,!1,t),rs(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ku]||(e[Ku]=!0,rs("selectionchange",!1,e))}}function rh(t,e,n,l){switch(Bh(e)){case 2:var a=bm;break;case 8:a=Sm;break;default:a=As}n=a.bind(null,e,n,t),a=void 0,!Mi||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 os(t,e,n,l,a){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var o=l.stateNode.containerInfo;if(o===a)break;if(r===4)for(r=l.return;r!==null;){var h=r.tag;if((h===3||h===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;o!==null;){if(r=sl(o),r===null)return;if(h=r.tag,h===5||h===6||h===26||h===27){l=u=r;continue t}o=o.parentNode}}l=l.return}yr(function(){var S=u,R=xi(n),U=[];t:{var _=Gr.get(t);if(_!==void 0){var E=cu,tt=t;switch(t){case"keypress":if(uu(n)===0)break t;case"keydown":case"keyup":E=Yd;break;case"focusin":tt="focus",E=wi;break;case"focusout":tt="blur",E=wi;break;case"beforeblur":case"afterblur":E=wi;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":E=vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Nd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Qd;break;case jr:case Lr:case Yr:E=Ud;break;case Xr:E=Zd;break;case"scroll":case"scrollend":E=Rd;break;case"wheel":E=Kd;break;case"copy":case"cut":case"paste":E=Bd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=br;break;case"toggle":case"beforetoggle":E=Jd}var F=(e&4)!==0,xt=!F&&(t==="scroll"||t==="scrollend"),v=F?_!==null?_+"Capture":null:_;F=[];for(var m=S,b;m!==null;){var N=m;if(b=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||b===null||v===null||(N=Il(m,v),N!=null&&F.push(qa(m,N,b))),xt)break;m=m.return}0<F.length&&(_=new E(_,tt,null,n,R),U.push({event:_,listeners:F}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",E=t==="mouseout"||t==="pointerout",_&&n!==Di&&(tt=n.relatedTarget||n.fromElement)&&(sl(tt)||tt[cl]))break t;if((E||_)&&(_=R.window===R?R:(_=R.ownerDocument)?_.defaultView||_.parentWindow:window,E?(tt=n.relatedTarget||n.toElement,E=S,tt=tt?sl(tt):null,tt!==null&&(xt=O(tt),F=tt.tag,tt!==xt||F!==5&&F!==27&&F!==6)&&(tt=null)):(E=null,tt=S),E!==tt)){if(F=vr,N="onMouseLeave",v="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(F=br,N="onPointerLeave",v="onPointerEnter",m="pointer"),xt=E==null?_:Pl(E),b=tt==null?_:Pl(tt),_=new F(N,m+"leave",E,n,R),_.target=xt,_.relatedTarget=b,N=null,sl(R)===S&&(F=new F(v,m+"enter",tt,n,R),F.target=b,F.relatedTarget=xt,N=F),xt=N,E&&tt)e:{for(F=E,v=tt,m=0,b=F;b;b=Gl(b))m++;for(b=0,N=v;N;N=Gl(N))b++;for(;0<m-b;)F=Gl(F),m--;for(;0<b-m;)v=Gl(v),b--;for(;m--;){if(F===v||v!==null&&F===v.alternate)break e;F=Gl(F),v=Gl(v)}F=null}else F=null;E!==null&&fh(U,_,E,F,!1),tt!==null&&xt!==null&&fh(U,xt,tt,F,!0)}}t:{if(_=S?Pl(S):window,E=_.nodeName&&_.nodeName.toLowerCase(),E==="select"||E==="input"&&_.type==="file")var Q=zr;else if(Or(_))if(Nr)Q=uy;else{Q=ly;var ot=ny}else E=_.nodeName,!E||E.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?S&&Ni(S.elementType)&&(Q=zr):Q=ay;if(Q&&(Q=Q(t,S))){Rr(U,Q,n,R);break t}ot&&ot(t,_,S),t==="focusout"&&S&&_.type==="number"&&S.memoizedProps.value!=null&&zi(_,"number",_.value)}switch(ot=S?Pl(S):window,t){case"focusin":(Or(ot)||ot.contentEditable==="true")&&(pl=ot,Gi=S,ca=null);break;case"focusout":ca=Gi=pl=null;break;case"mousedown":Qi=!0;break;case"contextmenu":case"mouseup":case"dragend":Qi=!1,wr(U,n,R);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":wr(U,n,R)}var K;if(ji)t:{switch(t){case"compositionstart":var I="onCompositionStart";break t;case"compositionend":I="onCompositionEnd";break t;case"compositionupdate":I="onCompositionUpdate";break t}I=void 0}else vl?Tr(t,n)&&(I="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Sr&&n.locale!=="ko"&&(vl||I!=="onCompositionStart"?I==="onCompositionEnd"&&vl&&(K=mr()):(gn=R,Bi="value"in gn?gn.value:gn.textContent,vl=!0)),ot=ku(S,I),0<ot.length&&(I=new pr(I,t,null,n,R),U.push({event:I,listeners:ot}),K?I.data=K:(K=Ar(n),K!==null&&(I.data=K)))),(K=Fd?Pd(t,n):Id(t,n))&&(I=ku(S,"onBeforeInput"),0<I.length&&(ot=new pr("onBeforeInput","beforeinput",null,n,R),U.push({event:ot,listeners:I}),ot.data=K)),Qy(U,t,S,n,R)}sh(U,e)})}function qa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ku(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Il(t,n),a!=null&&l.unshift(qa(t,a,u)),a=Il(t,e),a!=null&&l.push(qa(t,a,u))),t.tag===3)return l;t=t.return}return[]}function Gl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function fh(t,e,n,l,a){for(var u=e._reactName,r=[];n!==null&&n!==l;){var o=n,h=o.alternate,S=o.stateNode;if(o=o.tag,h!==null&&h===l)break;o!==5&&o!==26&&o!==27||S===null||(h=S,a?(S=Il(n,u),S!=null&&r.unshift(qa(n,S,h))):a||(S=Il(n,u),S!=null&&r.push(qa(n,S,h)))),n=n.return}r.length!==0&&t.push({event:e,listeners:r})}var Ky=/\r\n?/g,ky=/\u0000|\uFFFD/g;function oh(t){return(typeof t=="string"?t:""+t).replace(Ky,`
`).replace(ky,"")}function hh(t,e){return e=oh(e),oh(t)===e}function Ju(){}function Dt(t,e,n,l,a,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||yl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&yl(t,""+l);break;case"className":tu(t,"class",l);break;case"tabIndex":tu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":tu(t,n,l);break;case"style":hr(t,l,u);break;case"data":if(e!=="object"){tu(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=lu(""+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 u=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",a.name,a,null),Dt(t,e,"formEncType",a.formEncType,a,null),Dt(t,e,"formMethod",a.formMethod,a,null),Dt(t,e,"formTarget",a.formTarget,a,null)):(Dt(t,e,"encType",a.encType,a,null),Dt(t,e,"method",a.method,a,null),Dt(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=lu(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Ju);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(s(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=lu(""+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":dt("beforetoggle",t),dt("toggle",t),Ia(t,"popover",l);break;case"xlinkActuate":Pe(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Pe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Pe(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Pe(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Pe(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Pe(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ia(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=Ad.get(n)||n,Ia(t,n,l))}}function hs(t,e,n,l,a,u){switch(n){case"style":hr(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"children":typeof l=="string"?yl(t,l):(typeof l=="number"||typeof l=="bigint")&&yl(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!er.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),u=t[ye]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof l=="function")){typeof u!="function"&&u!==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,""):Ia(t,n,l)}}}function ae(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,a=!1,u;for(u in n)if(n.hasOwnProperty(u)){var r=n[u];if(r!=null)switch(u){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Dt(t,e,u,r,n,null)}}a&&Dt(t,e,"srcSet",n.srcSet,n,null),l&&Dt(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var o=u=r=a=null,h=null,S=null;for(l in n)if(n.hasOwnProperty(l)){var R=n[l];if(R!=null)switch(l){case"name":a=R;break;case"type":r=R;break;case"checked":h=R;break;case"defaultChecked":S=R;break;case"value":u=R;break;case"defaultValue":o=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,e));break;default:Dt(t,e,l,R,n,null)}}sr(t,u,o,h,S,r,a,!1),eu(t);return;case"select":dt("invalid",t),l=r=u=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":u=o;break;case"defaultValue":r=o;break;case"multiple":l=o;default:Dt(t,e,a,o,n,null)}e=u,n=r,t.multiple=!!l,e!=null?dl(t,!!l,e,!1):n!=null&&dl(t,!!l,n,!0);return;case"textarea":dt("invalid",t),u=a=l=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":l=o;break;case"defaultValue":a=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:Dt(t,e,r,o,n,null)}fr(t,l,a,u),eu(t);return;case"option":for(h in n)if(n.hasOwnProperty(h)&&(l=n[h],l!=null))switch(h){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Dt(t,e,h,l,n,null)}return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<Ca.length;l++)dt(Ca[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("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(S in n)if(n.hasOwnProperty(S)&&(l=n[S],l!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Dt(t,e,S,l,n,null)}return;default:if(Ni(e)){for(R in n)n.hasOwnProperty(R)&&(l=n[R],l!==void 0&&hs(t,e,R,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&Dt(t,e,o,l,n,null))}function Jy(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,u=null,r=null,o=null,h=null,S=null,R=null;for(E in n){var U=n[E];if(n.hasOwnProperty(E)&&U!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":h=U;default:l.hasOwnProperty(E)||Dt(t,e,E,null,l,U)}}for(var _ in l){var E=l[_];if(U=n[_],l.hasOwnProperty(_)&&(E!=null||U!=null))switch(_){case"type":u=E;break;case"name":a=E;break;case"checked":S=E;break;case"defaultChecked":R=E;break;case"value":r=E;break;case"defaultValue":o=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(137,e));break;default:E!==U&&Dt(t,e,_,E,l,U)}}Ri(t,r,o,h,S,R,u,a);return;case"select":E=r=o=_=null;for(u in n)if(h=n[u],n.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":E=h;default:l.hasOwnProperty(u)||Dt(t,e,u,null,l,h)}for(a in l)if(u=l[a],h=n[a],l.hasOwnProperty(a)&&(u!=null||h!=null))switch(a){case"value":_=u;break;case"defaultValue":o=u;break;case"multiple":r=u;default:u!==h&&Dt(t,e,a,u,l,h)}e=o,n=r,l=E,_!=null?dl(t,!!n,_,!1):!!l!=!!n&&(e!=null?dl(t,!!n,e,!0):dl(t,!!n,n?[]:"",!1));return;case"textarea":E=_=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Dt(t,e,o,null,l,a)}for(r in l)if(a=l[r],u=n[r],l.hasOwnProperty(r)&&(a!=null||u!=null))switch(r){case"value":_=a;break;case"defaultValue":E=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==u&&Dt(t,e,r,a,l,u)}rr(t,_,E);return;case"option":for(var tt in n)if(_=n[tt],n.hasOwnProperty(tt)&&_!=null&&!l.hasOwnProperty(tt))switch(tt){case"selected":t.selected=!1;break;default:Dt(t,e,tt,null,l,_)}for(h in l)if(_=l[h],E=n[h],l.hasOwnProperty(h)&&_!==E&&(_!=null||E!=null))switch(h){case"selected":t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Dt(t,e,h,_,l,E)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var F in n)_=n[F],n.hasOwnProperty(F)&&_!=null&&!l.hasOwnProperty(F)&&Dt(t,e,F,null,l,_);for(S in l)if(_=l[S],E=n[S],l.hasOwnProperty(S)&&_!==E&&(_!=null||E!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:Dt(t,e,S,_,l,E)}return;default:if(Ni(e)){for(var xt in n)_=n[xt],n.hasOwnProperty(xt)&&_!==void 0&&!l.hasOwnProperty(xt)&&hs(t,e,xt,void 0,l,_);for(R in l)_=l[R],E=n[R],!l.hasOwnProperty(R)||_===E||_===void 0&&E===void 0||hs(t,e,R,_,l,E);return}}for(var v in n)_=n[v],n.hasOwnProperty(v)&&_!=null&&!l.hasOwnProperty(v)&&Dt(t,e,v,null,l,_);for(U in l)_=l[U],E=n[U],!l.hasOwnProperty(U)||_===E||_==null&&E==null||Dt(t,e,U,_,l,E)}var ds=null,ys=null;function Wu(t){return t.nodeType===9?t:t.ownerDocument}function dh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ms(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var gs=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===gs?!1:(gs=t,!0):(gs=null,!1)}var mh=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,gh=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof gh<"u"?function(t){return gh.resolve(null).then(t).catch(Iy)}:mh;function Iy(t){setTimeout(function(){throw t})}function Mn(t){return t==="head"}function vh(t,e){var n=e,l=0,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(0<l&&8>l){n=l;var r=t.ownerDocument;if(n&1&&wa(r.documentElement),n&2&&wa(r.body),n&4)for(n=r.head,wa(n),r=n.firstChild;r;){var o=r.nextSibling,h=r.nodeName;r[Fl]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}if(a===0){t.removeChild(u),Va(e);return}a--}else n==="$"||n==="$?"||n==="$!"?a++:l=n.charCodeAt(0)-48;else l=0;n=u}while(n);Va(e)}function vs(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":vs(n),Ei(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function tm(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[Fl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Xe(t.nextSibling),t===null)break}return null}function em(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Xe(t.nextSibling),t===null))return null;return t}function ps(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function nm(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Xe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var bs=null;function ph(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function bh(t,e,n){switch(e=Wu(n),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function wa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ei(t)}var we=new Map,Sh=new Set;function Fu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var dn=C.d;C.d={f:lm,r:am,D:um,C:im,L:cm,m:sm,X:fm,S:rm,M:om};function lm(){var t=dn.f(),e=Gu();return t||e}function am(t){var e=rl(t);e!==null&&e.tag===5&&e.type==="form"?Lf(e):dn.r(t)}var Ql=typeof document>"u"?null:document;function _h(t,e,n){var l=Ql;if(l&&typeof e=="string"&&e){var a=De(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Sh.has(a)||(Sh.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),ae(e,"link",t),Ft(e),l.head.appendChild(e)))}}function um(t){dn.D(t),_h("dns-prefetch",t,null)}function im(t,e){dn.C(t,e),_h("preconnect",t,e)}function cm(t,e,n){dn.L(t,e,n);var l=Ql;if(l&&t&&e){var a='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+De(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+De(n.imageSizes)+'"]')):a+='[href="'+De(t)+'"]';var u=a;switch(e){case"style":u=Vl(t);break;case"script":u=Zl(t)}we.has(u)||(t=q({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(u,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(Ha(u))||e==="script"&&l.querySelector(ja(u))||(e=l.createElement("link"),ae(e,"link",t),Ft(e),l.head.appendChild(e)))}}function sm(t,e){dn.m(t,e);var n=Ql;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+De(l)+'"][href="'+De(t)+'"]',u=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Zl(t)}if(!we.has(u)&&(t=q({rel:"modulepreload",href:t},e),we.set(u,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ja(u)))return}l=n.createElement("link"),ae(l,"link",t),Ft(l),n.head.appendChild(l)}}}function rm(t,e,n){dn.S(t,e,n);var l=Ql;if(l&&t){var a=fl(l).hoistableStyles,u=Vl(t);e=e||"default";var r=a.get(u);if(!r){var o={loading:0,preload:null};if(r=l.querySelector(Ha(u)))o.loading=5;else{t=q({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(u))&&Ss(t,n);var h=r=l.createElement("link");Ft(h),ae(h,"link",t),h._p=new Promise(function(S,R){h.onload=S,h.onerror=R}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Pu(r,e,l)}r={type:"stylesheet",instance:r,count:1,state:o},a.set(u,r)}}}function fm(t,e){dn.X(t,e);var n=Ql;if(n&&t){var l=fl(n).hoistableScripts,a=Zl(t),u=l.get(a);u||(u=n.querySelector(ja(a)),u||(t=q({src:t,async:!0},e),(e=we.get(a))&&_s(t,e),u=n.createElement("script"),Ft(u),ae(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function om(t,e){dn.M(t,e);var n=Ql;if(n&&t){var l=fl(n).hoistableScripts,a=Zl(t),u=l.get(a);u||(u=n.querySelector(ja(a)),u||(t=q({src:t,async:!0,type:"module"},e),(e=we.get(a))&&_s(t,e),u=n.createElement("script"),Ft(u),ae(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function Eh(t,e,n,l){var a=(a=et.current)?Fu(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Vl(n.href),n=fl(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=Vl(n.href);var u=fl(a).hoistableStyles,r=u.get(t);if(r||(a=a.ownerDocument||a,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,r),(u=a.querySelector(Ha(t)))&&!u._p&&(r.instance=u,r.state.loading=5),we.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},we.set(t,n),u||hm(a,t,n,r.state))),e&&l===null)throw Error(s(528,""));return r}if(e&&l!==null)throw Error(s(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Zl(n),n=fl(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(s(444,t))}}function Vl(t){return'href="'+De(t)+'"'}function Ha(t){return'link[rel="stylesheet"]['+t+"]"}function Th(t){return q({},t,{"data-precedence":t.precedence,precedence:null})}function hm(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}),ae(e,"link",n),Ft(e),t.head.appendChild(e))}function Zl(t){return'[src="'+De(t)+'"]'}function ja(t){return"script[async]"+t}function Ah(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+De(n.href)+'"]');if(l)return e.instance=l,Ft(l),l;var a=q({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Ft(l),ae(l,"style",a),Pu(l,n.precedence,t),e.instance=l;case"stylesheet":a=Vl(n.href);var u=t.querySelector(Ha(a));if(u)return e.state.loading|=4,e.instance=u,Ft(u),u;l=Th(n),(a=we.get(a))&&Ss(l,a),u=(t.ownerDocument||t).createElement("link"),Ft(u);var r=u;return r._p=new Promise(function(o,h){r.onload=o,r.onerror=h}),ae(u,"link",l),e.state.loading|=4,Pu(u,n.precedence,t),e.instance=u;case"script":return u=Zl(n.src),(a=t.querySelector(ja(u)))?(e.instance=a,Ft(a),a):(l=n,(a=we.get(u))&&(l=q({},n),_s(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),Ft(a),ae(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Pu(l,n.precedence,t));return e.instance}function Pu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,u=a,r=0;r<l.length;r++){var o=l[r];if(o.dataset.precedence===e)u=o;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ss(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _s(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Iu=null;function Oh(t,e,n){if(Iu===null){var l=new Map,a=Iu=new Map;a.set(n,l)}else a=Iu,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 u=n[a];if(!(u[Fl]||u[ie]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(e)||"";r=t+r;var o=l.get(r);o?o.push(u):l.set(r,[u])}}return l}function Rh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function dm(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 zh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var La=null;function ym(){}function mm(t,e,n){if(La===null)throw Error(s(475));var l=La;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=Vl(n.href),u=t.querySelector(Ha(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=ti.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,Ft(u);return}u=t.ownerDocument||t,n=Th(n),(a=we.get(a))&&Ss(n,a),u=u.createElement("link"),Ft(u);var r=u;r._p=new Promise(function(o,h){r.onload=o,r.onerror=h}),ae(u,"link",n),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=ti.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function gm(){if(La===null)throw Error(s(475));var t=La;return t.stylesheets&&t.count===0&&Es(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Es(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function ti(){if(this.count--,this.count===0){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ei=null;function Es(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ei=new Map,e.forEach(vm,t),ei=null,ti.call(t))}function vm(t,e){if(!(e.state.loading&4)){var n=ei.get(t);if(n)var l=n.get(null);else{n=new Map,ei.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var r=a[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),l=r)}l&&n.set(null,l)}a=e.instance,r=a.getAttribute("data-precedence"),u=n.get(r)||l,u===l&&n.set(null,a),n.set(r,a),this.count++,l=ti.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ya={$$typeof:pt,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function pm(t,e,n,l,a,u,r,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xn(0),this.hiddenUpdates=Xn(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Nh(t,e,n,l,a,u,r,o,h,S,R,U){return t=new pm(t,e,n,r,o,h,S,U),e=1,u===!0&&(e|=24),u=Se(3,null,null,e),t.current=u,u.stateNode=t,e=lc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},cc(u),t}function Dh(t){return t?(t=El,t):El}function xh(t,e,n,l,a,u){a=Dh(a),l.context===null?l.context=a:l.pendingContext=a,l=bn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Sn(t,l,e),n!==null&&(Oe(n,t,e),ga(n,t,e))}function Uh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ts(t,e){Uh(t,e),(t=t.alternate)&&Uh(t,e)}function Mh(t){if(t.tag===13){var e=_l(t,67108864);e!==null&&Oe(e,t,67108864),Ts(t,67108864)}}var ni=!0;function bm(t,e,n,l){var a=T.T;T.T=null;var u=C.p;try{C.p=2,As(t,e,n,l)}finally{C.p=u,T.T=a}}function Sm(t,e,n,l){var a=T.T;T.T=null;var u=C.p;try{C.p=8,As(t,e,n,l)}finally{C.p=u,T.T=a}}function As(t,e,n,l){if(ni){var a=Os(l);if(a===null)os(t,e,l,li,n),Ch(t,l);else if(Em(a,t,e,n,l))l.stopPropagation();else if(Ch(t,l),e&4&&-1<_m.indexOf(t)){for(;a!==null;){var u=rl(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=de(u.pendingLanes);if(r!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;r;){var h=1<<31-X(r);o.entanglements[1]|=h,r&=~h}ke(u),(Rt&6)===0&&(Yu=Re()+500,Ba(0))}}break;case 13:o=_l(u,2),o!==null&&Oe(o,u,2),Gu(),Ts(u,2)}if(u=Os(l),u===null&&os(t,e,l,li,n),u===a)break;a=u}a!==null&&l.stopPropagation()}else os(t,e,l,null,n)}}function Os(t){return t=xi(t),Rs(t)}var li=null;function Rs(t){if(li=null,t=sl(t),t!==null){var e=O(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=w(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 li=t,null}function Bh(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(Ja()){case Jl:return 2;case Wl:return 8;case il:case d:return 32;case M:return 268435456;default:return 32}default:return 32}}var zs=!1,Bn=null,Cn=null,qn=null,Xa=new Map,Ga=new Map,wn=[],_m="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ch(t,e){switch(t){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Cn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":Xa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ga.delete(e.pointerId)}}function Qa(t,e,n,l,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[a]},e!==null&&(e=rl(e),e!==null&&Mh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Em(t,e,n,l,a){switch(e){case"focusin":return Bn=Qa(Bn,t,e,n,l,a),!0;case"dragenter":return Cn=Qa(Cn,t,e,n,l,a),!0;case"mouseover":return qn=Qa(qn,t,e,n,l,a),!0;case"pointerover":var u=a.pointerId;return Xa.set(u,Qa(Xa.get(u)||null,t,e,n,l,a)),!0;case"gotpointercapture":return u=a.pointerId,Ga.set(u,Qa(Ga.get(u)||null,t,e,n,l,a)),!0}return!1}function qh(t){var e=sl(t.target);if(e!==null){var n=O(e);if(n!==null){if(e=n.tag,e===13){if(e=w(n),e!==null){t.blockedOn=e,md(t.priority,function(){if(n.tag===13){var l=Ae();l=bi(l);var a=_l(n,l);a!==null&&Oe(a,n,l),Ts(n,l)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ai(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Os(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Di=l,n.target.dispatchEvent(l),Di=null}else return e=rl(n),e!==null&&Mh(e),t.blockedOn=n,!1;e.shift()}return!0}function wh(t,e,n){ai(t)&&n.delete(e)}function Tm(){zs=!1,Bn!==null&&ai(Bn)&&(Bn=null),Cn!==null&&ai(Cn)&&(Cn=null),qn!==null&&ai(qn)&&(qn=null),Xa.forEach(wh),Ga.forEach(wh)}function ui(t,e){t.blockedOn===e&&(t.blockedOn=null,zs||(zs=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Tm)))}var ii=null;function Hh(t){ii!==t&&(ii=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){ii===t&&(ii=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(Rs(l||n)===null)continue;break}var u=rl(n);u!==null&&(t.splice(e,3),e-=3,Rc(u,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Va(t){function e(h){return ui(h,t)}Bn!==null&&ui(Bn,t),Cn!==null&&ui(Cn,t),qn!==null&&ui(qn,t),Xa.forEach(e),Ga.forEach(e);for(var n=0;n<wn.length;n++){var l=wn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<wn.length&&(n=wn[0],n.blockedOn===null);)qh(n),n.blockedOn===null&&wn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],u=n[l+1],r=a[ye]||null;if(typeof u=="function")r||Hh(n);else if(r){var o=null;if(u&&u.hasAttribute("formAction")){if(a=u,r=u[ye]||null)o=r.formAction;else if(Rs(a)!==null)continue}else o=r.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),Hh(n)}}}function Ns(t){this._internalRoot=t}ci.prototype.render=Ns.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,l=Ae();xh(n,l,t,e,null,null)},ci.prototype.unmount=Ns.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;xh(t.current,2,null,t,null,null),Gu(),e[cl]=null}};function ci(t){this._internalRoot=t}ci.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ps();t={blockedOn:null,target:t,priority:e};for(var n=0;n<wn.length&&e!==0&&e<wn[n].priority;n++);wn.splice(n,0,t),n===0&&qh(t)}};var jh=i.version;if(jh!=="19.1.1")throw Error(s(527,jh,"19.1.1"));C.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=D(e),t=t!==null?A(t):null,t=t===null?null:t.stateNode,t};var Am={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var si=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!si.isDisabled&&si.supportsFiber)try{x=si.inject(Am),$=si}catch{}}return $a.createRoot=function(t,e){if(!g(t))throw Error(s(299));var n=!1,l="",a=If,u=to,r=eo,o=null;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&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=Nh(t,1,!1,null,null,n,l,a,u,r,o,null),t[cl]=e.current,fs(t),new Ns(e)},$a.hydrateRoot=function(t,e,n){if(!g(t))throw Error(s(299));var l=!1,a="",u=If,r=to,o=eo,h=null,S=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(h=n.unstable_transitionCallbacks),n.formState!==void 0&&(S=n.formState)),e=Nh(t,1,!0,e,n??null,l,a,u,r,o,h,S),e.context=Dh(null),n=e.current,l=Ae(),l=bi(l),a=bn(l),a.callback=null,Sn(n,a,l),n=l,e.current.lanes=n,Gn(e,n),ke(e),t[cl]=e.current,fs(t),new ci(e)},$a.version="19.1.1",$a}var kh;function Cm(){if(kh)return Us.exports;kh=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(i){console.error(i)}}return f(),Us.exports=Bm(),Us.exports}var qm=Cm();const We=Object.create(null);We.open="0";We.close="1";We.ping="2";We.pong="3";We.message="4";We.upgrade="5";We.noop="6";const oi=Object.create(null);Object.keys(We).forEach(f=>{oi[We[f]]=f});const js={type:"error",data:"parser error"},ed=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",nd=typeof ArrayBuffer=="function",ld=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,Zs=({type:f,data:i},c,s)=>ed&&i instanceof Blob?c?s(i):Jh(i,s):nd&&(i instanceof ArrayBuffer||ld(i))?c?s(i):Jh(new Blob([i]),s):s(We[f]+(i||"")),Jh=(f,i)=>{const c=new FileReader;return c.onload=function(){const s=c.result.split(",")[1];i("b"+(s||""))},c.readAsDataURL(f)};function Wh(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let qs;function wm(f,i){if(ed&&f.data instanceof Blob)return f.data.arrayBuffer().then(Wh).then(i);if(nd&&(f.data instanceof ArrayBuffer||ld(f.data)))return i(Wh(f.data));Zs(f,!1,c=>{qs||(qs=new TextEncoder),i(qs.encode(c))})}const Fh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ka=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let f=0;f<Fh.length;f++)ka[Fh.charCodeAt(f)]=f;const Hm=f=>{let i=f.length*.75,c=f.length,s,g=0,O,w,G,D;f[f.length-1]==="="&&(i--,f[f.length-2]==="="&&i--);const A=new ArrayBuffer(i),q=new Uint8Array(A);for(s=0;s<c;s+=4)O=ka[f.charCodeAt(s)],w=ka[f.charCodeAt(s+1)],G=ka[f.charCodeAt(s+2)],D=ka[f.charCodeAt(s+3)],q[g++]=O<<2|w>>4,q[g++]=(w&15)<<4|G>>2,q[g++]=(G&3)<<6|D&63;return A},jm=typeof ArrayBuffer=="function",$s=(f,i)=>{if(typeof f!="string")return{type:"message",data:ad(f,i)};const c=f.charAt(0);return c==="b"?{type:"message",data:Lm(f.substring(1),i)}:oi[c]?f.length>1?{type:oi[c],data:f.substring(1)}:{type:oi[c]}:js},Lm=(f,i)=>{if(jm){const c=Hm(f);return ad(c,i)}else return{base64:!0,data:f}},ad=(f,i)=>{switch(i){case"blob":return f instanceof Blob?f:new Blob([f]);case"arraybuffer":default:return f instanceof ArrayBuffer?f:f.buffer}},ud="",Ym=(f,i)=>{const c=f.length,s=new Array(c);let g=0;f.forEach((O,w)=>{Zs(O,!1,G=>{s[w]=G,++g===c&&i(s.join(ud))})})},Xm=(f,i)=>{const c=f.split(ud),s=[];for(let g=0;g<c.length;g++){const O=$s(c[g],i);if(s.push(O),O.type==="error")break}return s};function Gm(){return new TransformStream({transform(f,i){wm(f,c=>{const s=c.length;let g;if(s<126)g=new Uint8Array(1),new DataView(g.buffer).setUint8(0,s);else if(s<65536){g=new Uint8Array(3);const O=new DataView(g.buffer);O.setUint8(0,126),O.setUint16(1,s)}else{g=new Uint8Array(9);const O=new DataView(g.buffer);O.setUint8(0,127),O.setBigUint64(1,BigInt(s))}f.data&&typeof f.data!="string"&&(g[0]|=128),i.enqueue(g),i.enqueue(c)})}})}let ws;function ri(f){return f.reduce((i,c)=>i+c.length,0)}function fi(f,i){if(f[0].length===i)return f.shift();const c=new Uint8Array(i);let s=0;for(let g=0;g<i;g++)c[g]=f[0][s++],s===f[0].length&&(f.shift(),s=0);return f.length&&s<f[0].length&&(f[0]=f[0].slice(s)),c}function Qm(f,i){ws||(ws=new TextDecoder);const c=[];let s=0,g=-1,O=!1;return new TransformStream({transform(w,G){for(c.push(w);;){if(s===0){if(ri(c)<1)break;const D=fi(c,1);O=(D[0]&128)===128,g=D[0]&127,g<126?s=3:g===126?s=1:s=2}else if(s===1){if(ri(c)<2)break;const D=fi(c,2);g=new DataView(D.buffer,D.byteOffset,D.length).getUint16(0),s=3}else if(s===2){if(ri(c)<8)break;const D=fi(c,8),A=new DataView(D.buffer,D.byteOffset,D.length),q=A.getUint32(0);if(q>Math.pow(2,21)-1){G.enqueue(js);break}g=q*Math.pow(2,32)+A.getUint32(4),s=3}else{if(ri(c)<g)break;const D=fi(c,g);G.enqueue($s(O?D:ws.decode(D),i)),s=0}if(g===0||g>f){G.enqueue(js);break}}}})}const id=4;function $t(f){if(f)return Vm(f)}function Vm(f){for(var i in $t.prototype)f[i]=$t.prototype[i];return f}$t.prototype.on=$t.prototype.addEventListener=function(f,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+f]=this._callbacks["$"+f]||[]).push(i),this};$t.prototype.once=function(f,i){function c(){this.off(f,c),i.apply(this,arguments)}return c.fn=i,this.on(f,c),this};$t.prototype.off=$t.prototype.removeListener=$t.prototype.removeAllListeners=$t.prototype.removeEventListener=function(f,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+f];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+f],this;for(var s,g=0;g<c.length;g++)if(s=c[g],s===i||s.fn===i){c.splice(g,1);break}return c.length===0&&delete this._callbacks["$"+f],this};$t.prototype.emit=function(f){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+f],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(c){c=c.slice(0);for(var s=0,g=c.length;s<g;++s)c[s].apply(this,i)}return this};$t.prototype.emitReserved=$t.prototype.emit;$t.prototype.listeners=function(f){return this._callbacks=this._callbacks||{},this._callbacks["$"+f]||[]};$t.prototype.hasListeners=function(f){return!!this.listeners(f).length};const mi=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),He=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Zm="arraybuffer";function cd(f,...i){return i.reduce((c,s)=>(f.hasOwnProperty(s)&&(c[s]=f[s]),c),{})}const $m=He.setTimeout,Km=He.clearTimeout;function gi(f,i){i.useNativeTimers?(f.setTimeoutFn=$m.bind(He),f.clearTimeoutFn=Km.bind(He)):(f.setTimeoutFn=He.setTimeout.bind(He),f.clearTimeoutFn=He.clearTimeout.bind(He))}const km=1.33;function Jm(f){return typeof f=="string"?Wm(f):Math.ceil((f.byteLength||f.size)*km)}function Wm(f){let i=0,c=0;for(let s=0,g=f.length;s<g;s++)i=f.charCodeAt(s),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(s++,c+=4);return c}function sd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Fm(f){let i="";for(let c in f)f.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(f[c]));return i}function Pm(f){let i={},c=f.split("&");for(let s=0,g=c.length;s<g;s++){let O=c[s].split("=");i[decodeURIComponent(O[0])]=decodeURIComponent(O[1])}return i}class Im extends Error{constructor(i,c,s){super(i),this.description=c,this.context=s,this.type="TransportError"}}class Ks extends $t{constructor(i){super(),this.writable=!1,gi(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,c,s){return super.emitReserved("error",new Im(i,c,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const c=$s(i,this.socket.binaryType);this.onPacket(c)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,c={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const c=Fm(i);return c.length?"?"+c:""}}class t0 extends Ks{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const c=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||c()})),this.writable||(s++,this.once("drain",function(){--s||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Xm(i,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Ym(i,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=sd()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let rd=!1;try{rd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const e0=rd;function n0(){}class l0 extends t0{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let s=location.port;s||(s=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,c){const s=this.request({method:"POST",data:i});s.on("success",c),s.on("error",(g,O)=>{this.onError("xhr post error",g,O)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(c,s)=>{this.onError("xhr poll error",c,s)}),this.pollXhr=i}}class Je extends $t{constructor(i,c,s){super(),this.createRequest=i,gi(this,s),this._opts=s,this._method=s.method||"GET",this._uri=c,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const c=cd(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(c);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let g in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(g)&&s.setRequestHeader(g,this._opts.extraHeaders[g])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var g;s.readyState===3&&((g=this._opts.cookieJar)===null||g===void 0||g.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(g){this.setTimeoutFn(()=>{this._onError(g)},0);return}typeof document<"u"&&(this._index=Je.requestsCount++,Je.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=n0,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Je.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Je.requestsCount=0;Je.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ph);else if(typeof addEventListener=="function"){const f="onpagehide"in He?"pagehide":"unload";addEventListener(f,Ph,!1)}}function Ph(){for(let f in Je.requests)Je.requests.hasOwnProperty(f)&&Je.requests[f].abort()}const a0=function(){const f=fd({xdomain:!1});return f&&f.responseType!==null}();class u0 extends l0{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=a0&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Je(fd,this.uri(),i)}}function fd(f){const i=f.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e0))return new XMLHttpRequest}catch{}if(!i)try{return new He[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const od=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class i0 extends Ks{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,s=od?{}:cd(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,c,s)}catch(g){return this.emitReserved("error",g)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const s=i[c],g=c===i.length-1;Zs(s,this.supportsBinary,O=>{try{this.doWrite(s,O)}catch{}g&&mi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=sd()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const Hs=He.WebSocket||He.MozWebSocket;class c0 extends i0{createSocket(i,c,s){return od?new Hs(i,c,s):c?new Hs(i,c):new Hs(i)}doWrite(i,c){this.ws.send(c)}}class s0 extends Ks{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const c=Qm(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(c).getReader(),g=Gm();g.readable.pipeTo(i.writable),this._writer=g.writable.getWriter();const O=()=>{s.read().then(({done:G,value:D})=>{G||(this.onPacket(D),O())}).catch(G=>{})};O();const w={type:"open"};this.query.sid&&(w.data=`{"sid":"${this.query.sid}"}`),this._writer.write(w).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const s=i[c],g=c===i.length-1;this._writer.write(s).then(()=>{g&&mi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const r0={websocket:c0,webtransport:s0,polling:u0},f0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ls(f){if(f.length>8e3)throw"URI too long";const i=f,c=f.indexOf("["),s=f.indexOf("]");c!=-1&&s!=-1&&(f=f.substring(0,c)+f.substring(c,s).replace(/:/g,";")+f.substring(s,f.length));let g=f0.exec(f||""),O={},w=14;for(;w--;)O[o0[w]]=g[w]||"";return c!=-1&&s!=-1&&(O.source=i,O.host=O.host.substring(1,O.host.length-1).replace(/;/g,":"),O.authority=O.authority.replace("[","").replace("]","").replace(/;/g,":"),O.ipv6uri=!0),O.pathNames=h0(O,O.path),O.queryKey=d0(O,O.query),O}function h0(f,i){const c=/\/{2,9}/g,s=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function d0(f,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,g,O){g&&(c[g]=O)}),c}const Ys=typeof addEventListener=="function"&&typeof removeEventListener=="function",hi=[];Ys&&addEventListener("offline",()=>{hi.forEach(f=>f())},!1);class jn extends $t{constructor(i,c){if(super(),this.binaryType=Zm,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(c=i,i=null),i){const s=Ls(i);c.hostname=s.host,c.secure=s.protocol==="https"||s.protocol==="wss",c.port=s.port,s.query&&(c.query=s.query)}else c.host&&(c.hostname=Ls(c.host).host);gi(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},c.transports.forEach(s=>{const g=s.prototype.name;this.transports.push(g),this._transportsByName[g]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Pm(this.opts.query)),Ys&&(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"})},hi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=id,c.transport=i,this.id&&(c.sid=this.id);const s=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&jn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const c=this.createTransport(i);c.open(),this.setTransport(c)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",c=>this._onClose("transport close",c))}onOpen(){this.readyState="open",jn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const c=new Error("server error");c.code=i.data,this._onError(c);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let s=0;s<this.writeBuffer.length;s++){const g=this.writeBuffer[s].data;if(g&&(c+=Jm(g)),s>0&&c>this._maxPayload)return this.writeBuffer.slice(0,s);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,mi(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,c,s){return this._sendPacket("message",i,c,s),this}send(i,c,s){return this._sendPacket("message",i,c,s),this}_sendPacket(i,c,s,g){if(typeof c=="function"&&(g=c,c=void 0),typeof s=="function"&&(g=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const O={type:i,data:c,options:s};this.emitReserved("packetCreate",O),this.writeBuffer.push(O),g&&this.once("flush",g),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),i()},s=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(jn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,c){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ys&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=hi.indexOf(this._offlineEventListener);s!==-1&&hi.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}jn.protocol=id;class y0 extends jn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let c=this.createTransport(i),s=!1;jn.priorWebsocketSuccess=!1;const g=()=>{s||(c.send([{type:"ping",data:"probe"}]),c.once("packet",P=>{if(!s)if(P.type==="pong"&&P.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;jn.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(q(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const at=new Error("probe error");at.transport=c.name,this.emitReserved("upgradeError",at)}}))};function O(){s||(s=!0,q(),c.close(),c=null)}const w=P=>{const at=new Error("probe error: "+P);at.transport=c.name,O(),this.emitReserved("upgradeError",at)};function G(){w("transport closed")}function D(){w("socket closed")}function A(P){c&&P.name!==c.name&&O()}const q=()=>{c.removeListener("open",g),c.removeListener("error",w),c.removeListener("close",G),this.off("close",D),this.off("upgrading",A)};c.once("open",g),c.once("error",w),c.once("close",G),this.once("close",D),this.once("upgrading",A),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&c.push(i[s]);return c}}let m0=class extends y0{constructor(i,c={}){const s=typeof i=="object"?i:c;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(g=>r0[g]).filter(g=>!!g)),super(i,s)}};function g0(f,i="",c){let s=f;c=c||typeof location<"u"&&location,f==null&&(f=c.protocol+"//"+c.host),typeof f=="string"&&(f.charAt(0)==="/"&&(f.charAt(1)==="/"?f=c.protocol+f:f=c.host+f),/^(https?|wss?):\/\//.test(f)||(typeof c<"u"?f=c.protocol+"//"+f:f="https://"+f),s=Ls(f)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const O=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+O+":"+s.port+i,s.href=s.protocol+"://"+O+(c&&c.port===s.port?"":":"+s.port),s}const v0=typeof ArrayBuffer=="function",p0=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f.buffer instanceof ArrayBuffer,hd=Object.prototype.toString,b0=typeof Blob=="function"||typeof Blob<"u"&&hd.call(Blob)==="[object BlobConstructor]",S0=typeof File=="function"||typeof File<"u"&&hd.call(File)==="[object FileConstructor]";function ks(f){return v0&&(f instanceof ArrayBuffer||p0(f))||b0&&f instanceof Blob||S0&&f instanceof File}function di(f,i){if(!f||typeof f!="object")return!1;if(Array.isArray(f)){for(let c=0,s=f.length;c<s;c++)if(di(f[c]))return!0;return!1}if(ks(f))return!0;if(f.toJSON&&typeof f.toJSON=="function"&&arguments.length===1)return di(f.toJSON(),!0);for(const c in f)if(Object.prototype.hasOwnProperty.call(f,c)&&di(f[c]))return!0;return!1}function _0(f){const i=[],c=f.data,s=f;return s.data=Xs(c,i),s.attachments=i.length,{packet:s,buffers:i}}function Xs(f,i){if(!f)return f;if(ks(f)){const c={_placeholder:!0,num:i.length};return i.push(f),c}else if(Array.isArray(f)){const c=new Array(f.length);for(let s=0;s<f.length;s++)c[s]=Xs(f[s],i);return c}else if(typeof f=="object"&&!(f instanceof Date)){const c={};for(const s in f)Object.prototype.hasOwnProperty.call(f,s)&&(c[s]=Xs(f[s],i));return c}return f}function E0(f,i){return f.data=Gs(f.data,i),delete f.attachments,f}function Gs(f,i){if(!f)return f;if(f&&f._placeholder===!0){if(typeof f.num=="number"&&f.num>=0&&f.num<i.length)return i[f.num];throw new Error("illegal attachments")}else if(Array.isArray(f))for(let c=0;c<f.length;c++)f[c]=Gs(f[c],i);else if(typeof f=="object")for(const c in f)Object.prototype.hasOwnProperty.call(f,c)&&(f[c]=Gs(f[c],i));return f}const T0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],A0=5;var vt;(function(f){f[f.CONNECT=0]="CONNECT",f[f.DISCONNECT=1]="DISCONNECT",f[f.EVENT=2]="EVENT",f[f.ACK=3]="ACK",f[f.CONNECT_ERROR=4]="CONNECT_ERROR",f[f.BINARY_EVENT=5]="BINARY_EVENT",f[f.BINARY_ACK=6]="BINARY_ACK"})(vt||(vt={}));class O0{constructor(i){this.replacer=i}encode(i){return(i.type===vt.EVENT||i.type===vt.ACK)&&di(i)?this.encodeAsBinary({type:i.type===vt.EVENT?vt.BINARY_EVENT:vt.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===vt.BINARY_EVENT||i.type===vt.BINARY_ACK)&&(c+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(c+=i.nsp+","),i.id!=null&&(c+=i.id),i.data!=null&&(c+=JSON.stringify(i.data,this.replacer)),c}encodeAsBinary(i){const c=_0(i),s=this.encodeAsString(c.packet),g=c.buffers;return g.unshift(s),g}}function Ih(f){return Object.prototype.toString.call(f)==="[object Object]"}class Js extends $t{constructor(i){super(),this.reviver=i}add(i){let c;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(i);const s=c.type===vt.BINARY_EVENT;s||c.type===vt.BINARY_ACK?(c.type=s?vt.EVENT:vt.ACK,this.reconstructor=new R0(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(ks(i)||i.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(i),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let c=0;const s={type:Number(i.charAt(0))};if(vt[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===vt.BINARY_EVENT||s.type===vt.BINARY_ACK){const O=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const w=i.substring(O,c);if(w!=Number(w)||i.charAt(c)!=="-")throw new Error("Illegal attachments");s.attachments=Number(w)}if(i.charAt(c+1)==="/"){const O=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););s.nsp=i.substring(O,c)}else s.nsp="/";const g=i.charAt(c+1);if(g!==""&&Number(g)==g){const O=c+1;for(;++c;){const w=i.charAt(c);if(w==null||Number(w)!=w){--c;break}if(c===i.length)break}s.id=Number(i.substring(O,c+1))}if(i.charAt(++c)){const O=this.tryParse(i.substr(c));if(Js.isPayloadValid(s.type,O))s.data=O;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,c){switch(i){case vt.CONNECT:return Ih(c);case vt.DISCONNECT:return c===void 0;case vt.CONNECT_ERROR:return typeof c=="string"||Ih(c);case vt.EVENT:case vt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&T0.indexOf(c[0])===-1);case vt.ACK:case vt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class R0{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const c=E0(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const z0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Js,Encoder:O0,get PacketType(){return vt},protocol:A0},Symbol.toStringTag,{value:"Module"}));function Ge(f,i,c){return f.on(i,c),function(){f.off(i,c)}}const N0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class dd extends $t{constructor(i,c,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=c,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Ge(i,"open",this.onopen.bind(this)),Ge(i,"packet",this.onpacket.bind(this)),Ge(i,"error",this.onerror.bind(this)),Ge(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...c){var s,g,O;if(N0.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(c.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const w={type:vt.EVENT,data:c};if(w.options={},w.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const q=this.ids++,P=c.pop();this._registerAckCallback(q,P),w.id=q}const G=(g=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||g===void 0?void 0:g.writable,D=this.connected&&!(!((O=this.io.engine)===null||O===void 0)&&O._hasPingExpired());return this.flags.volatile&&!G||(D?(this.notifyOutgoingListeners(w),this.packet(w)):this.sendBuffer.push(w)),this.flags={},this}_registerAckCallback(i,c){var s;const g=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(g===void 0){this.acks[i]=c;return}const O=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let G=0;G<this.sendBuffer.length;G++)this.sendBuffer[G].id===i&&this.sendBuffer.splice(G,1);c.call(this,new Error("operation has timed out"))},g),w=(...G)=>{this.io.clearTimeoutFn(O),c.apply(this,G)};w.withError=!0,this.acks[i]=w}emitWithAck(i,...c){return new Promise((s,g)=>{const O=(w,G)=>w?g(w):s(G);O.withError=!0,c.push(O),this.emit(i,...c)})}_addToQueue(i){let c;typeof i[i.length-1]=="function"&&(c=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((g,...O)=>s!==this._queue[0]?void 0:(g!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(g)):(this._queue.shift(),c&&c(null,...O)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!i||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:vt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case vt.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case vt.EVENT:case vt.BINARY_EVENT:this.onevent(i);break;case vt.ACK:case vt.BINARY_ACK:this.onack(i);break;case vt.DISCONNECT:this.ondisconnect();break;case vt.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const c=i.data||[];i.id!=null&&c.push(this.ack(i.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const s of c)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const c=this;let s=!1;return function(...g){s||(s=!0,c.packet({type:vt.ACK,id:i,data:g}))}}onack(i){const c=this.acks[i.id];typeof c=="function"&&(delete this.acks[i.id],c.withError&&i.data.unshift(null),c.apply(this,i.data))}onconnect(i,c){this.id=i,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:vt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const c=this._anyListeners;for(let s=0;s<c.length;s++)if(i===c[s])return c.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const c=this._anyOutgoingListeners;for(let s=0;s<c.length;s++)if(i===c[s])return c.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const s of c)s.apply(this,i.data)}}}function $l(f){f=f||{},this.ms=f.min||100,this.max=f.max||1e4,this.factor=f.factor||2,this.jitter=f.jitter>0&&f.jitter<=1?f.jitter:0,this.attempts=0}$l.prototype.duration=function(){var f=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*f);f=(Math.floor(i*10)&1)==0?f-c:f+c}return Math.min(f,this.max)|0};$l.prototype.reset=function(){this.attempts=0};$l.prototype.setMin=function(f){this.ms=f};$l.prototype.setMax=function(f){this.max=f};$l.prototype.setJitter=function(f){this.jitter=f};class Qs extends $t{constructor(i,c){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(c=i,i=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,gi(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((s=c.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new $l({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const g=c.parser||z0;this.encoder=new g.Encoder,this.decoder=new g.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var c;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(c=this.backoff)===null||c===void 0||c.setMin(i),this)}randomizationFactor(i){var c;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(c=this.backoff)===null||c===void 0||c.setJitter(i),this)}reconnectionDelayMax(i){var c;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(c=this.backoff)===null||c===void 0||c.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new m0(this.uri,this.opts);const c=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const g=Ge(c,"open",function(){s.onopen(),i&&i()}),O=G=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",G),i?i(G):this.maybeReconnectOnOpen()},w=Ge(c,"error",O);if(this._timeout!==!1){const G=this._timeout,D=this.setTimeoutFn(()=>{g(),O(new Error("timeout")),c.close()},G);this.opts.autoUnref&&D.unref(),this.subs.push(()=>{this.clearTimeoutFn(D)})}return this.subs.push(g),this.subs.push(w),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Ge(i,"ping",this.onping.bind(this)),Ge(i,"data",this.ondata.bind(this)),Ge(i,"error",this.onerror.bind(this)),Ge(i,"close",this.onclose.bind(this)),Ge(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(c){this.onclose("parse error",c)}}ondecoded(i){mi(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,c){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new dd(this,i,c),this.nsps[i]=s),s}_destroy(i){const c=Object.keys(this.nsps);for(const s of c)if(this.nsps[s].active)return;this._close()}_packet(i){const c=this.encoder.encode(i);for(let s=0;s<c.length;s++)this.engine.write(c[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,c){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(g=>{g?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",g)):i.onreconnect()}))},c);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ka={};function yi(f,i){typeof f=="object"&&(i=f,f=void 0),i=i||{};const c=g0(f,i.path||"/socket.io"),s=c.source,g=c.id,O=c.path,w=Ka[g]&&O in Ka[g].nsps,G=i.forceNew||i["force new connection"]||i.multiplex===!1||w;let D;return G?D=new Qs(s,i):(Ka[g]||(Ka[g]=new Qs(s,i)),D=Ka[g]),c.query&&!i.query&&(i.query=c.queryKey),D.socket(c.path,i)}Object.assign(yi,{Manager:Qs,Socket:dd,io:yi,connect:yi});function D0({code:f,isConnected:i,onCreateRoom:c,onJoinRoom:s}){const[g,O]=yt.useState(""),w=()=>{if(g){const D=g.trim();s(D)}},G=D=>{D.key==="Enter"&&w()};return V.jsx("div",{className:"mb-2",children:f?V.jsx(V.Fragment,{children:V.jsxs("p",{className:"text-lg",children:["Code: ",V.jsx("strong",{className:"text-3xl",children:f})]})}):V.jsxs(V.Fragment,{children:[V.jsx("button",{onClick:c,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Create Room"}),V.jsx("input",{type:"text",className:"width-212",value:g,onChange:D=>O(D.target.value),onKeyDown:G,placeholder:"Enter code to join"}),V.jsx("button",{onClick:w,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})})}function x0({files:f,setFiles:i,dataChannels:c,dataChannelsRef:s,useFallback:g,socket:O,code:w,socketId:G,localFilesRef:D,downloadStates:A,setDownloadStates:q,cancelDownload:P,cancelRequestsRef:at,downloadCounts:At,handleDeleteFile:Qt,SERVER_URL:Et}){const Ht=yt.useRef(null),Yt=yt.useRef({}),re=(B,ft=256)=>new Promise(W=>{if(!B.type.startsWith("image/")){W(null);return}const ut=new Image,it=document.createElement("canvas"),Ct=it.getContext("2d");ut.onload=()=>{const{width:he,height:bt}=ut,T=Math.min(ft/he,ft/bt,1);it.width=he*T,it.height=bt*T,Ct.drawImage(ut,0,0,it.width,it.height),it.toBlob(C=>{W(C)},"image/jpeg",.7)},ut.src=URL.createObjectURL(B)}),pt=async()=>{const B=Ht.current.files;if(!B||B.length===0)return;const ft=Array.from(B).map(W=>({name:W.name,size:W.size,peerId:G,thumbnail:!!W.type.startsWith("image/")}));if(g){const W=new FormData;Array.from(B).forEach(ut=>W.append("files",ut));try{if(!(await fetch(`${Et}/api/upload/${w}`,{method:"POST",body:W,headers:{"x-socket-id":G}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",ft)}catch(ut){console.error("Error uploading files:",ut)}}else{const W=await Promise.all(Array.from(B).map(async ut=>({name:ut.name,thumbnail:ut.type.startsWith("image/")?await re(ut):null})));D.current={...D.current,...Object.fromEntries(Array.from(B).map(ut=>[ut.name,ut])),...Object.fromEntries(W.filter(({thumbnail:ut})=>ut).map(({name:ut,thumbnail:it})=>[`${ut}_thumbnail`,it]))},W.forEach(({name:ut,thumbnail:it})=>{if(it){const Ct=URL.createObjectURL(it);Yt.current[ut]=Ct,console.log(`Cached thumbnail URL for ${ut}: ${Ct}`)}}),console.log("Stored files in localFilesRef:",Object.keys(D.current)),O.emit("file-list",{code:w,files:ft}),console.log("Shared file list:",ft)}i(W=>[...W,...ft]),Ht.current.value=""},fe=async B=>{if(at.current.has(B.name)&&(at.current.delete(B.name),console.log(`Cleared previous cancel for ${B.name}, starting new request to ${B.peerId}`)),A[B.name]?.status==="downloading"){P(B.name,B.peerId),console.log(`Canceling download for ${B.name}`);return}if(q(ft=>({...ft,[B.name]:{status:"downloading",progress:0,total:B.size,peerId:B.peerId}})),console.log(`Starting download for ${B.name}, downloadStates:`,{...A,[B.name]:{status:"downloading",progress:0}}),g){const ft=document.createElement("a");ft.href=`${Et}/uploads/${B.path.split("/").pop()}`,ft.download=B.name,ft.click(),console.log(`Downloading file via server: ${B.name}`),q(W=>({...W,[B.name]:{status:"completed",progress:100}}))}else if(B.peerId===G){const ft=D.current[B.name]||f.find(W=>W.name===B.name)?.file;if(ft){const W=URL.createObjectURL(ft),ut=document.createElement("a");ut.href=W,ut.download=B.name,ut.click(),URL.revokeObjectURL(W),console.log(`Downloaded local file: ${B.name}`),q(it=>({...it,[B.name]:{status:"saved",progress:100}}))}else console.error(`Local file not found: ${B.name}`)}else c[B.peerId]?.readyState==="open"?(s.current[B.peerId].send(JSON.stringify({type:"request-file",fileName:B.name})),console.log(`Requested file ${B.name} from ${B.peerId}`)):console.error(`Data channel not open for peer ${B.peerId}`)},nt=B=>{const ft=B.split(".").pop().toLowerCase();return`/imgs/${{exe:"executable.png",bin:"executable.png",dll:"executable.png",jpg:"picture.png",jpeg:"picture.png",png:"picture.png",gif:"picture.png",mp3:"audio.png",wav:"audio.png",ogg:"audio.png",mp4:"video.png",mkv:"video.png",avi:"video.png",mov:"video.png",wma:"video.png",pdf:"unknown.png",doc:"unknown.png",docx:"unknown.png",txt:"text.png",log:"text.png",bat:"script.png",sh:"script.png",html:"html.png",xml:"xml.png",zip:"archive.png",gz:"archive.png",bz:"archive.png"}[ft]||"unknown.png"}`},ee=B=>B?B<1024?`${B} B`:B<1024*1024?`${(B/1024).toFixed(2)} KB`:B<1024*1024*1024?`${(B/(1024*1024)).toFixed(2)} MB`:`${(B/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",Wt=B=>{if(!B.thumbnail)return console.log(`No thumbnail flag for ${B.name}`),null;if(Yt.current[B.name])return Yt.current[B.name];const ft=D.current[`${B.name}_thumbnail`];if(ft){const W=URL.createObjectURL(ft);return Yt.current[B.name]=W,console.log(`Generated and cached thumbnail URL for ${B.name}: ${W}`),W}return console.log(`No thumbnail available for ${B.name}`),null};return yt.useEffect(()=>()=>{Object.values(Yt.current).forEach(B=>{B&&URL.revokeObjectURL(B)}),Yt.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),V.jsxs("div",{children:[V.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),V.jsx("input",{type:"file",multiple:!0,ref:Ht,onChange:pt,className:"mb-2"}),V.jsx("ul",{className:"space-y-2",children:f.map((B,ft)=>(A[B.name]?.status==="downloading"||A[B.name]?.status,V.jsxs("li",{className:"flex items-center space-x-2",children:[B.thumbnail&&V.jsx("img",{src:Wt(B)||nt(B.name),alt:`${B.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${B.name}, requesting...`)}})||V.jsx("img",{src:nt(B.name),alt:"file icon",className:"w-6 h-6",onError:W=>W.target.style.display="none"}),V.jsxs("span",{children:["(",ee(B.size),")"]}),B.peerId!==G&&V.jsx("button",{onClick:()=>fe(B),className:`px-4 py-2 rounded ${A[B.name]?.status==="saved"?"bg-green-500 text-white":A[B.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:A[B.name]?.status==="saved"?"Saved ✓":A[B.name]?.status==="downloading"?`Cancel ${(A[B.name]?.progress||0).toFixed(2)}%`:"Download"}),B.peerId===G&&V.jsx(V.Fragment,{children:V.jsx("button",{onClick:()=>Qt(B.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"})}),At[B.name]>0&&V.jsxs("span",{children:[At[B.name]," downloading"]}),V.jsx("span",{children:B.name})]},ft)))})]})}function U0({textHistory:f,setTextHistory:i,dataChannels:c,useFallback:s,socket:g,code:O}){const[w,G]=yt.useState(""),D=()=>{w.trim()&&(console.log("handleSend:",{dataChannels:c,useFallback:s,code:O}),!s&&Object.keys(c).length>0?(Object.keys(c).forEach(q=>{c[q].readyState==="open"&&(c[q].send(JSON.stringify({type:"text",text:w})),console.log(`Sent text to peer ${q}`))}),i(q=>[...q,w])):s&&g&&O&&(g.emit("text",{code:O,text:w}),console.log(`Sending text via socket for room ${O}: ${w}`),i(q=>[...q,w])),G(""))},A=q=>{q.key==="Enter"&&!q.shiftKey&&(q.preventDefault(),D())};return V.jsxs("div",{className:"mb-4",children:[V.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),V.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:w,onChange:q=>G(q.target.value),onKeyDown:A,placeholder:"Enter text to share"}),V.jsx("button",{className:"bg-emerald-600 text-darkPurple px-4 py-2 rounded hover:bg-emerald-500",onClick:D,children:"Send"}),V.jsxs("div",{className:"mt-2",children:[V.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),V.jsx("ul",{className:"list-disc pl-5",children:f?.length>0?f.map((q,P)=>V.jsx("li",{children:V.jsx("pre",{children:q})},P)):V.jsx("li",{children:V.jsx("pre",{children:"No messages yet"})})})]})]})}const td="",k=yi("/",{withCredentials:!0});function M0(){const[f,i]=yt.useState(""),[c,s]=yt.useState(!1),[g,O]=yt.useState(!1),[w,G]=yt.useState(!1),[D,A]=yt.useState(!1),[q,P]=yt.useState(600),[at,At]=yt.useState([]),[Qt,Et]=yt.useState(""),[Ht,Yt]=yt.useState({}),[re,pt]=yt.useState([]),[fe,nt]=yt.useState({}),[ee,Wt]=yt.useState([]),[B,ft]=yt.useState({}),W=yt.useRef({}),ut=yt.useRef([]),it=yt.useRef({}),Ct=yt.useRef(new Set),he=yt.useRef({}),bt=yt.useRef(new Set),T=yt.useRef({}),C=yt.useRef({}),Z=yt.useRef({}),lt=yt.useRef({}),y=yt.useRef(0),z=yt.useRef({}),j=yt.useRef({}),L=window.location.protocol,J=window.location.hostname||"localhost",mt=(f||"").replace(/ /g,"_"),et=`${L}//${J}/room/${mt||""}`,ue=async d=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const M=d==="link"?et:mt;await navigator.clipboard.writeText(M),s(d),setTimeout(()=>s(null),2e3)}catch(M){console.error(`Failed to copy ${d}:`,M)}},Mt=async()=>{try{const d=await fetch(`${td}/api/generate-code`,{method:"GET",credentials:"include"}),{code:M,error:H}=await d.json();if(H){Et(H);return}i(M),O(!0),Et(""),k.emit("create",M)}catch(d){console.error("Error generating code:",d),Et("Failed to generate room code")}},je=d=>{if(!d){Et("Please enter a room code");return}const M=d.replace(/_/g," ");i(M),Et(""),k.emit("join",M)},Kl=()=>{k.emit("leave",f),yn(),window.history.pushState({},"","/")},yn=()=>{i(""),O(!1),G(!1),A(!1),P(600),pt([]),At([]),Et(""),Yt({}),Wt([]),ft({}),W.current={},Object.values(T.current).forEach(d=>{d.onicecandidate=null,d.oniceconnectionstatechange=null,d.onicecandidateerror=null,d.ondatachannel=null,d.onnegotiationneeded=null,d.close()}),T.current={},C.current={},Z.current={},Object.keys(lt.current).forEach(d=>clearTimeout(lt.current[d])),lt.current={},it.current={},Ct.current=new Set,he.current={},bt.current=new Set,z.current={},j.current={}},Ln=(d,M,H=!1)=>{if(!d||d===k.id||d==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${d}`);return}if(D){console.log(`Skipping WebRTC setup for ${d} due to fallback mode`);return}if(T.current[d]){console.log(`WebRTC connection already exists for ${d}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${d} (${H?"offerer":"answerer"}, attempt ${it.current[d]||1}/3)`);const p=new RTCPeerConnection({iceServers:[{urls:"turn:twily.info:5349",username:"ana",credential:"butt"},{urls:"stun:stun.l.google.com:19302"}]});it.current[d]=(it.current[d]||0)+1,T.current[d]=p,p.ondatachannel=Y=>{const X=Y.channel;X.label==="file-share"?(C.current[d]=X,X.onopen=()=>{console.log(`Main DataChannel opened with peer ${d}`),G(!0),P(0),Object.keys(lt.current).forEach(ct=>{console.log(`Clearing timeout for ${ct}`),clearTimeout(lt.current[ct])}),lt.current={},it.current[d]=0,C.current.true&&delete C.current.true,Yt({...C.current});const Ot=ut.current.map(ct=>({name:ct.name,size:ct.size,peerId:ct.peerId,thumbnail:!!W.current[`${ct.name}_thumbnail`]}));X.send(JSON.stringify({type:"file-list",files:Ot})),Ot.forEach(ct=>{const Kt=`${ct.name}:${ct.peerId}`;ct.thumbnail&&ct.peerId!==k.id&&!W.current[`${ct.name}_thumbnail`]&&!bt.current.has(Kt)&&Fe(ct)}),g&&setTimeout(()=>{X.readyState==="open"?(X.send(JSON.stringify({type:"text-history",history:at})),console.log(`Sent text-history to ${d}:`,at)):console.warn(`Main channel not open for ${d}, skipping text-history send`)},1e3)},X.onmessage=Ot=>Jl(d,Ot),X.onclose=()=>{console.log(`Main DataChannel closed with peer ${d}`),delete T.current[d],Yt({...C.current})},X.onerror=Ot=>{console.error(`Main DataChannel error with ${d}:`,Ot)}):X.label==="binary-transfer"&&(X.binaryType="arraybuffer",Z.current[d]=X,X.onmessage=Ot=>Wl(d,Ot),X.onclose=()=>{console.log(`Binary channel closed with peer ${d}`)},X.onerror=Ot=>{console.error(`Binary channel error with ${d}:`,Ot)})};let x=null,$=null;return H&&(x=p.createDataChannel("file-share"),C.current[d]=x,x.onopen=()=>{console.log(`Main DataChannel opened with peer ${d} (joiner)`),G(!0),P(0),Object.keys(lt.current).forEach(X=>{console.log(`Clearing timeout for ${X}`),clearTimeout(lt.current[X])}),lt.current={},it.current[d]=0,C.current.true&&delete C.current.true,Yt({...C.current});const Y=ut.current.map(X=>({name:X.name,size:X.size,peerId:X.peerId,thumbnail:!!W.current[`${X.name}_thumbnail`]}));x.send(JSON.stringify({type:"file-list",files:Y})),Y.forEach(X=>{const Ot=`${X.name}:${X.peerId}`;X.thumbnail&&X.peerId!==k.id&&!W.current[`${X.name}_thumbnail`]&&!bt.current.has(Ot)&&Fe(X)}),g&&setTimeout(()=>{x.readyState==="open"?(x.send(JSON.stringify({type:"text-history",history:at})),console.log(`Sent text-history to ${d}:`,at)):console.warn(`Main channel not open for ${d}, skipping text-history send`)},1e3)},x.onmessage=Y=>Jl(d,Y),x.onclose=()=>{console.log(`Main DataChannel closed with peer ${d}`),delete T.current[d],Yt({...C.current})},x.onerror=Y=>{console.error(`Main DataChannel error with ${d}:`,Y)},$=p.createDataChannel("binary-transfer"),$.binaryType="arraybuffer",Z.current[d]=$,$.onmessage=Y=>Wl(d,Y),$.onclose=()=>{console.log(`Binary channel closed with peer ${d}`)},$.onerror=Y=>{console.error(`Binary channel error with ${d}:`,Y)}),p.onicecandidate=Y=>{Y.candidate&&M&&(k.emit("ice-candidate",{code:M,candidate:Y.candidate,to:d,from:k.id}),console.log(`Sent ICE candidate to ${d} from ${k.id}: ${Y.candidate.candidate}`))},p.onicecandidateerror=Y=>{console.error(`ICE candidate error for ${d}:`,Y)},p.oniceconnectionstatechange=()=>{console.log(`ICE state with ${d} (${g?"creator":"joiner"}): ${p.iceConnectionState}`),p.iceConnectionState==="failed"||p.iceConnectionState==="disconnected"?(console.log(`WebRTC ${p.iceConnectionState} with ${d}, retrying in 5s (attempt ${it.current[d]}/3)`),setTimeout(()=>{p.iceConnectionState!=="connected"&&!D&&it.current[d]<3?Ln(d,M,H):p.iceConnectionState!=="connected"&&!D&&(console.log(`Max retries reached for ${d}, switching to fallback`),A(!0),Et("WebRTC connection failed after retries, using server fallback"),P(0),pt([]),At([]),g&&k.emit("fallback",{code:M}))},5e3)):p.iceConnectionState==="connected"&&(G(!0),A(!1),Et(""),clearTimeout(lt.current[d]),it.current[d]=0)},p.onnegotiationneeded=async()=>{try{const Y=await p.createOffer();await p.setLocalDescription(Y),k.emit("offer",{code:M,offer:p.localDescription,to:d,from:k.id}),console.log(`Sent renegotiation offer to ${d} for room ${M}`)}catch(Y){console.error(`Negotiation needed error for ${d}:`,Y)}},H&&p.createOffer().then(Y=>{p.setLocalDescription(Y),k.emit("offer",{code:M,offer:Y,to:d,from:k.id}),console.log(`Sent offer to ${d} for room ${M}`)}).catch(Y=>{console.error(`Error creating offer for ${d}:`,Y),Et("Failed to create WebRTC offer"),A(!0),P(0),pt([]),At([]),g&&k.emit("fallback",{code:M})}),()=>clearTimeout(lt.current[d])};yt.useEffect(()=>(k.on("peer-joined",d=>{if(!d||!d.peerId||d.peerId==="true"){console.error("Invalid peer-joined data:",d);return}const{peerId:M}=d;console.log(`Peer ${M} joined room ${f}`),Ln(M,f,!0)}),k.on("offer",async({code:d,offer:M,to:H,from:p})=>{if(H!==k.id||D||d!==f){console.log(`Ignoring offer from ${p} (to=${H}, socket.id=${k.id}, useFallback=${D}, code mismatch: ${d} vs ${f})`);return}console.log(`Received offer from ${p} for room ${d}`),T.current[p]||(console.log(`No existing connection for ${p}, setting up as answerer`),Ln(p,d,!1));try{const x=T.current[p];await x.setRemoteDescription(new RTCSessionDescription(M));const $=await x.createAnswer();await x.setLocalDescription($),k.emit("answer",{code:d,answer:$,to:p,from:k.id}),console.log(`Sent answer to ${p} from ${k.id} for room ${d}`)}catch(x){console.error(`Error handling offer from ${p}:`,x),Et("Failed to process WebRTC offer"),A(!0),P(0),pt([]),At([]),g&&k.emit("fallback",{code:d})}}),k.on("answer",async({code:d,answer:M,to:H,from:p})=>{if(H!==k.id||D||d!==f){console.log(`Ignoring answer from ${p} (to=${H}, socket.id=${k.id}, useFallback=${D}, code mismatch: ${d} vs ${f})`);return}if(console.log(`Received answer from ${p} for room ${d}`),T.current[p])try{await T.current[p].setRemoteDescription(new RTCSessionDescription(M)),console.log(`Successfully set remote description for answer from ${p}`)}catch(x){console.error(`Error handling answer from ${p}:`,x),Et("Failed to process WebRTC answer"),A(!0),P(0),pt([]),At([]),g&&k.emit("fallback",{code:d})}else console.warn(`No peer connection found for ${p} when receiving answer`)}),k.on("room-status",({useFallback:d,textHistory:M,files:H})=>{d&&(console.log(`Received room-status: useFallback=${d}, textHistory=`,M),A(d),At(M||[]),pt(H||[]),G(!0),P(0),Et("Room is in fallback mode"))}),k.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),A(!0),Et("Room switched to fallback mode"),P(0),pt([]),At([]),Object.values(T.current).forEach(d=>d.close()),T.current={},C.current={},Z.current={},Object.keys(lt.current).forEach(d=>clearTimeout(lt.current[d])),lt.current={},it.current={},bt.current=new Set}),k.on("peer-left",d=>{const{peerId:M}=d;if(T.current[M]){T.current[M].close(),delete T.current[M],delete C.current[M],delete Z.current[M],delete lt.current[M],Object.keys(z.current).forEach(p=>{z.current[p].peerId===M&&(delete z.current[p],bt.current.delete(`${z.current[p]?.fileName}:${M}`))}),Yt({...C.current}),console.log(`Peer ${M} left room`),pt(p=>{const x=p.filter($=>$.peerId!==M);return Object.values(C.current).forEach($=>{$.readyState==="open"&&$.send(JSON.stringify({type:"file-list",files:x.map(Y=>({name:Y.name,size:Y.size,peerId:Y.peerId,thumbnail:!!W.current[`${Y.name}_thumbnail`]}))}))}),x});let H=!1;Object.keys(j.current).forEach(p=>{j.current[p].delete(M)&&(H=!0,Ja(p,j.current[p].size))}),H&&ft(p=>({...p}))}g&&Object.keys(T.current).length===0&&(G(!1),D?(A(!1),Et("")):P(600))}),k.on("ice-candidate",async({code:d,candidate:M,from:H,to:p})=>{if(p!==k.id||d!==f){console.log(`Ignoring ICE candidate from ${H} (to=${p}, code mismatch: ${d} vs ${f})`);return}if(console.log(`Received ICE candidate from ${H}`),T.current[H])try{await T.current[H].addIceCandidate(new RTCIceCandidate(M)),console.log(`Added ICE candidate from ${H}`)}catch(x){console.error(`Error adding ICE candidate from ${H}:`,x)}else console.warn(`No peer connection found for ${H} when receiving ICE candidate`)}),k.on("error",d=>{Et(d),yn(),console.log("Server error:",d),(d.includes("Invalid code")||d.includes("room not found"))&&window.history.pushState({},"","/")}),k.on("files",d=>{console.log("Received files:",d),pt(d)}),k.on("text",({text:d})=>{console.log(`Received text via socket for room ${f}:`,d),At(M=>[...M,d])}),k.on("file-list",({files:d})=>{pt(M=>{const H=d.filter(p=>!M.some(x=>x.name===p.name&&x.peerId===p.peerId));return H.forEach(p=>{const x=`${p.name}:${p.peerId}`;p.thumbnail&&!W.current[`${p.name}_thumbnail`]&&!bt.current.has(x)?(console.log(`Requesting thumbnail for ${p.name} from ${p.peerId}`),Fe(p)):p.thumbnail&&console.log(`Thumbnail for ${p.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",d),[...M,...H]})}),()=>{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")}),[f,g,D]),yt.useEffect(()=>{if(g&&q>0&&!w&&!D){const d=setInterval(()=>{P(M=>M<=1?(yn(),Et("No one joined the room"),0):M-1)},1e3);return()=>clearInterval(d)}},[g,q,w,D,f]),yt.useEffect(()=>{ut.current=re,console.log("Updated filesRef:",ut.current)},[re]),yt.useEffect(()=>{const d=Object.keys(T.current);Wt([k.id,...d].sort())},[Ht]),yt.useEffect(()=>{if(!f){const d=window.location.pathname;if(d.startsWith("/room/")){const M=d.slice(6).replace(/_/g," ");je(M)}}},[]);const Fe=d=>{const M=`${d.name}:${d.peerId}`;if(d.thumbnail&&d.peerId!==k.id&&!D){const H=(he.current[d.name]||0)+1;if(H>3){console.error(`Max retries reached for thumbnail ${d.name} from ${d.peerId}`);return}if(bt.current.has(M)){console.log(`Thumbnail request for ${d.name} from ${d.peerId} already in progress, skipping`);return}const p=C.current[d.peerId];p?.readyState==="open"?(he.current[d.name]=H,bt.current.add(M),p.send(JSON.stringify({type:"request-thumbnail",fileName:d.name})),console.log(`Requested thumbnail for ${d.name} from ${d.peerId} via WebRTC (retry ${H})`)):(console.warn(`Data channel not ready for ${d.peerId}, retrying in 1s`),setTimeout(()=>{bt.current.has(M)||Fe(d)},1e3))}else console.error(`Cannot request thumbnail for ${d.name}:`,{isThumbnail:d.thumbnail,isLocal:d.peerId===k.id,useFallback:D,channelOpen:C.current[d.peerId]?.readyState})},kl=async(d,M,H,p)=>{const x=Z.current[d];if(!x||x.readyState!=="open"){console.error(`Binary channel not open for ${d}`);return}if(p.size>100*1024){console.warn(`Thumbnail ${H} size ${p.size} exceeds 100KB limit, skipping`);return}const $=y.current++;console.log(`Sending ${M} ${H} to ${d}, size: ${p.size}`),x.send(JSON.stringify({type:"start",transferId:$,kind:M,fileName:H,size:p.size}));const Y=new FileReader;Y.onload=()=>{const X=Y.result,Ot=new TextEncoder().encode(H),ct=8+Ot.length,Kt=new ArrayBuffer(ct+X.byteLength),gt=new DataView(Kt);gt.setUint32(0,$),gt.setUint32(4,Ot.length),new Uint8Array(Kt).set(Ot,8),new Uint8Array(Kt).set(new Uint8Array(X),ct),x.send(Kt),x.send(JSON.stringify({type:"end",transferId:$}))},Y.onerror=X=>{console.error(`Error reading ${M} ${H} for ${d}:`,X)},Y.readAsArrayBuffer(p)},vi=async(d,M,H)=>{if(!M){console.error(`No fileName provided for sendFileChunked to ${d}`);return}const p=Z.current[d];if(!p||p.readyState!=="open"){console.error(`Binary channel not open for ${d}`);return}Ct.current.has(M)&&(Ct.current.delete(M),console.log(`Cleared previous cancel for ${M}, starting new send to ${d}`));const x=y.current++;console.log(`Sending start message for file ${M} to ${d}, transferId: ${x}, size: ${H.size}`),p.send(JSON.stringify({type:"start",transferId:x,kind:"file",fileName:M,size:H.size}));const $=8*1024*1024,Y=4*1024*1024;p.bufferedAmountLowThreshold=Y;let X;p.onbufferedamountlow=()=>{X&&(X(),X=null)};const Ot=()=>p.bufferedAmount<=$?Promise.resolve():new Promise(gt=>{X=gt});await Ot();const ct=16384;let Kt=0;for(console.log(`--- offset : ${Kt} --- file.size : ${H.size}`);Kt<H.size;){if(Ct.current.has(M)){console.log(`Canceled sending ${M} to ${d}`),p.send(JSON.stringify({type:"cancel",transferId:x}));return}const gt=H.slice(Kt,Kt+ct);if(console.log(`--- slice.size : ${gt.size}`),gt.size===0)break;try{const ze=await new Promise((Fa,Pa)=>{const Xn=new FileReader;Xn.onload=Gn=>Fa(Gn.target.result),Xn.onerror=Pa,Xn.readAsArrayBuffer(gt)});if(Ct.current.has(M)){console.log(`Canceled sending ${M} to ${d} during read`),p.send(JSON.stringify({type:"cancel",transferId:x}));return}const de=new TextEncoder().encode(M),Yn=8+de.length,Qe=new ArrayBuffer(Yn+ze.byteLength),Wa=new DataView(Qe);Wa.setUint32(0,x),Wa.setUint32(4,de.length),new Uint8Array(Qe).set(de,8),new Uint8Array(Qe).set(new Uint8Array(ze),Yn),p.send(Qe),await Ot(),Kt+=ze.byteLength}catch(ze){console.error(`Error reading ${M}:`,ze),p.send(JSON.stringify({type:"cancel",transferId:x}));return}}p.send(JSON.stringify({type:"end",transferId:x})),Ct.current.delete(M),console.log(`Finished sending ${M} to ${d}`)},pi=(d,M)=>{if(!Ct.current.has(d)){Ct.current.add(d);const H=C.current[M];H&&H.readyState==="open"&&(H.send(JSON.stringify({type:"end-download",fileName:d})),H.send(JSON.stringify({type:"cancel-download",fileName:d})),console.log(`Sent end-download and cancel-download for ${d} to ${M}`)),nt(p=>{const x=p[d]?.status==="saved",{[d]:$,...Y}=p;return x?{...Y,[d]:{status:"saved",progress:100,peerId:M}}:Y}),Object.keys(z.current).forEach(p=>{const x=z.current[p];x.fileName===d&&x.peerId===M&&(delete z.current[p],bt.current.delete(`${d}:${M}`))}),console.log(`Canceled download for ${d} locally`)}},Re=d=>{pt(M=>M.filter(H=>H.name!==d)),delete W.current[d],delete W.current[`${d}_thumbnail`],Object.values(C.current).forEach(M=>{M.readyState==="open"&&M.send(JSON.stringify({type:"remove-file",fileName:d}))}),console.log(`Deleted file ${d} and notified peers`)},Ja=(d,M)=>{Object.values(C.current).forEach(H=>{H.readyState==="open"&&H.send(JSON.stringify({type:"update-count",fileName:d,count:M}))})},Jl=(d,M)=>{const H=M.data;try{if(typeof H=="string"){const p=JSON.parse(H);if(p.type==="text")At(x=>[...x,p.text]),console.log(`Received text via WebRTC from ${d}: ${p.text}`);else if(p.type==="text-history")console.log(`Received text-history from ${d}:`,p.history,"Current textHistory:",at),Array.isArray(p.history)?At(p.history):console.warn(`Invalid text-history format from ${d}:`,p.history);else if(p.type==="request-file"){const x=W.current[p.fileName];x?(console.log(`Handling request-file for ${p.fileName} from ${d}`),vi(d,p.fileName,x)):console.error(`File not found: ${p.fileName}`)}else if(p.type==="request-thumbnail"){const x=W.current[`${p.fileName}_thumbnail`];x?(console.log(`Handling request-thumbnail for ${p.fileName} from ${d}`),kl(d,"thumbnail",p.fileName,x)):console.error(`Thumbnail not found for ${p.fileName}`)}else p.type==="end-download"?il(d,p.fileName,"end"):p.type==="remove-file"?(pt(x=>x.filter($=>$.name!==p.fileName)),console.log(`Removed file ${p.fileName} from list`)):p.type==="update-count"?ft(x=>({...x,[p.fileName]:p.count})):p.type==="file-list"&&pt(x=>{const $=p.files.filter(Y=>!x.some(X=>X.name===Y.name&&X.peerId===Y.peerId));return $.forEach(Y=>{const X=`${Y.name}:${Y.peerId}`;Y.thumbnail&&!W.current[`${Y.name}_thumbnail`]&&!bt.current.has(X)?(console.log(`Requesting thumbnail for ${Y.name} from ${Y.peerId}`),Fe(Y)):Y.thumbnail&&console.log(`Thumbnail for ${Y.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",p.files),[...x,...$]})}else console.warn(`Unexpected non-string message on main channel from ${d}`),console.log(H)}catch(p){console.error(`Error processing message from ${d}:`,p)}},Wl=(d,M)=>{const H=M.data;if(typeof H=="string")try{const p=JSON.parse(H);if(p.type==="start"){if(p.transferId===void 0||p.transferId===null||!p.fileName||!p.kind||!p.size){console.error(`Invalid start message from ${d}:`,p);return}if(z.current[p.transferId]){console.warn(`TransferId ${p.transferId} already exists for ${d}, ignoring new start for ${p.fileName}`);return}z.current[p.transferId]={kind:p.kind,fileName:p.fileName,chunks:[],expectedSize:p.size,received:0,peerId:d},console.log(`Started ${p.kind} transfer ${p.transferId} for ${p.fileName} from ${d}, expected size: ${p.size}`),p.kind==="file"&&nt(x=>({...x,[p.fileName]:{status:"downloading",progress:0,total:p.size,received:0,peerId:d}}))}else if(p.type==="end"){const x=z.current[p.transferId];if(!x){console.warn(`No state for transferId ${p.transferId} from ${d}`);return}if(x.received>=x.expectedSize){const $=new Blob(x.chunks,{type:x.kind==="thumbnail"?"image/jpeg":"application/octet-stream"});if(console.log(`Assembled ${x.kind} ${x.fileName}, size: ${$.size}`),x.kind==="thumbnail")W.current[`${x.fileName}_thumbnail`]=$,console.log(`Received thumbnail for ${x.fileName} from ${d}, size: ${$.size}`),pt(Y=>Y.map(X=>X.name===x.fileName&&X.peerId!==k.id?{...X,thumbnail:!0}:X)),bt.current.delete(`${x.fileName}:${d}`);else if(x.kind==="file"){W.current[x.fileName]=$;const Y=URL.createObjectURL($),X=document.createElement("a");X.href=Y,X.download=x.fileName,X.click(),URL.revokeObjectURL(Y),nt(ct=>({...ct,[x.fileName]:{status:"saved",progress:100,peerId:d}}));const Ot=C.current[d];Ot&&Ot.readyState==="open"&&Ot.send(JSON.stringify({type:"end-download",fileName:x.fileName}))}}else console.warn(`Size mismatch for ${x.kind} ${x.fileName}: received ${x.received}, expected ${x.expectedSize}`),x.kind==="file"&&nt($=>({...$,[x.fileName]:{status:"error",progress:x.received/x.expectedSize*100}})),bt.current.delete(`${x.fileName}:${d}`);delete z.current[p.transferId]}else if(p.type==="cancel"){const x=z.current[p.transferId];x&&x.kind==="file"&&nt($=>({...$,[x.fileName]:{status:"canceled",progress:0}})),bt.current.delete(`${x.fileName}:${d}`),delete z.current[p.transferId]}}catch(p){console.error(`Error processing binary control message from ${d}:`,p)}else if(H instanceof ArrayBuffer){if(H.byteLength<8){console.warn(`Invalid binary message size from ${d}: ${H.byteLength} bytes`);return}const p=new DataView(H),x=p.getUint32(0),$=p.getUint32(4);if(H.byteLength<8+$){console.warn(`Invalid binary message: insufficient length for fileName from ${d}`);return}const Y=new Uint8Array(H,8,$),X=new TextDecoder().decode(Y),Ot=H.slice(8+$),ct=z.current[x];if(ct&&ct.fileName===X){if(Ct.current.has(ct.fileName)){console.log(`Ignoring chunk for canceled ${ct.kind} ${ct.fileName}`);return}if(ct.chunks.push(Ot),ct.received+=Ot.byteLength,ct.kind==="file"){const Kt=Math.min(100,ct.received/ct.expectedSize*100);nt(gt=>({...gt,[ct.fileName]:{...gt[ct.fileName],progress:Kt,received:ct.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${x} from ${d}: expected ${ct?.fileName}, got ${X}`)}else if(H instanceof Blob){console.log(`Received Blob message from ${d}, size: ${H.size}`),console.dir(H);const p=new FileReader;p.onload=()=>{const x=p.result;if(x.byteLength<4){console.warn(`Invalid Blob-converted ArrayBuffer size from ${d}: ${x.byteLength} bytes`);return}const $=new DataView(x),Y=$.getUint32(0),X=$.getUint32(4);if(x.byteLength<8+X){console.warn(`Invalid Blob-converted ArrayBuffer: insufficient length for fileName from ${d}`);return}const Ot=new Uint8Array(x,8,X),ct=new TextDecoder().decode(Ot),Kt=x.slice(8+X),gt=z.current[Y];if(gt&>.fileName===ct){if(Ct.current.has(gt.fileName)){console.log(`Ignoring chunk for canceled ${gt.kind} ${gt.fileName}`);return}if(gt.chunks.push(Kt),gt.received+=Kt.byteLength,console.log(`Received Blob chunk for ${gt.kind} ${gt.fileName}, transferId ${Y}: ${gt.received}/${gt.expectedSize}`),gt.kind==="file"){const ze=Math.min(100,gt.received/gt.expectedSize*100);nt(de=>({...de,[gt.fileName]:{...de[gt.fileName],progress:ze,received:gt.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${Y} from ${d}: expected ${gt?.fileName}, got ${ct}`)},p.onerror=x=>{console.error(`Error reading Blob from ${d}:`,x)},p.readAsArrayBuffer(H)}else console.warn(`Unexpected message type from ${d}:`,typeof H),console.log(H)},il=(d,M,H)=>{if(W.current[M]){j.current[M]=j.current[M]||new Set,j.current[M].delete(d);const p=j.current[M].size;Ja(M,p)}};return V.jsxs("div",{className:"container mx-auto left",children:[V.jsxs(V.Fragment,{children:[f&&V.jsx(V.Fragment,{children:g&&q>0&&!w&&V.jsxs("p",{children:["Waiting for peer(s) to connect [WebRTC]... ",q,"s"]})}),V.jsx("h1",{className:"text-2xl font-bold mb-2 cursor-default",children:"Quick File Share"}),Qt&&V.jsx("p",{className:"text-red-500 mb-2",children:Qt}),V.jsx(D0,{code:f,isConnected:w,onCreateRoom:Mt,onJoinRoom:je})]}),f&&V.jsxs(V.Fragment,{children:[V.jsxs("p",{className:"text-lg",children:[L,"//",J,"/room/",V.jsx("strong",{children:f||"N/A"})]}),V.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:Kl,children:g?"Close Room":"Leave Room"}),"☻",V.jsx("button",{onClick:()=>ue("link"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:c==="link"?"Copied!":"Copy Link"}),V.jsx("button",{onClick:()=>ue("code"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:c==="code"?"Copied!":"Copy Code"}),V.jsxs("div",{className:"mb-4 fixed top-0 right-10 text-right",children:[V.jsx("h2",{className:"text-xl font-bold text-right",children:"Connected Users:"}),V.jsx("ul",{children:ee.filter(d=>d!=null).map((d,M)=>V.jsxs("li",{children:[k.id&&d===k.id?"(You)":""," ",d]},d||`user-${M}`))})]}),V.jsx(U0,{textHistory:at,setTextHistory:At,dataChannels:Ht,useFallback:D,socket:k,code:f}),V.jsx(x0,{files:re,setFiles:pt,dataChannels:Ht,dataChannelsRef:C,useFallback:D,socket:k,code:f,socketId:k.id,localFilesRef:W,downloadStates:fe,setDownloadStates:nt,cancelDownload:pi,cancelRequestsRef:Ct,downloadCounts:B,handleDeleteFile:Re,SERVER_URL:td}),D&&V.jsx("p",{className:"text-red-500",children:"Using server fallback"})]})]})}qm.createRoot(document.getElementById("root")).render(V.jsx(yt.StrictMode,{children:V.jsx(M0,{})}));
Top