(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 T of g)if(T.type==="childList")for(const U of T.addedNodes)U.tagName==="LINK"&&U.rel==="modulepreload"&&s(U)}).observe(document,{childList:!0,subtree:!0});function c(g){const T={};return g.integrity&&(T.integrity=g.integrity),g.referrerPolicy&&(T.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?T.credentials="include":g.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function s(g){if(g.ep)return;g.ep=!0;const T=c(g);fetch(g.href,T)}})();var _s={exports:{}},Ya={};/**
 * @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 Ch;function Om(){if(Ch)return Ya;Ch=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,g,T){var U=null;if(T!==void 0&&(U=""+T),g.key!==void 0&&(U=""+g.key),"key"in g){T={};for(var Y in g)Y!=="key"&&(T[Y]=g[Y])}else T=g;return g=T.ref,{$$typeof:r,type:s,key:U,ref:g!==void 0?g:null,props:T}}return Ya.Fragment=i,Ya.jsx=c,Ya.jsxs=c,Ya}var Bh;function zm(){return Bh||(Bh=1,_s.exports=Om()),_s.exports}var tt=zm(),Es={exports:{}},at={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qh;function Dm(){if(qh)return at;qh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),U=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),nt=Symbol.iterator;function ct(d){return d===null||typeof d!="object"?null:(d=nt&&d[nt]||d["@@iterator"],typeof d=="function"?d:null)}var gt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ct=Object.assign,ht={};function Gt(d,x,j){this.props=d,this.context=x,this.refs=ht,this.updater=j||gt}Gt.prototype.isReactComponent={},Gt.prototype.setState=function(d,x){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,x,"setState")},Gt.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function $t(){}$t.prototype=Gt.prototype;function ne(d,x,j){this.props=d,this.context=x,this.refs=ht,this.updater=j||gt}var rt=ne.prototype=new $t;rt.constructor=ne,Ct(rt,Gt.prototype),rt.isPureReactComponent=!0;var ae=Array.isArray,et={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function lt(d,x,j,H,y,M){return j=M.ref,{$$typeof:r,type:d,key:x,ref:j!==void 0?j:null,props:M}}function K(d,x){return lt(d.type,x,void 0,void 0,void 0,d.props)}function W(d){return typeof d=="object"&&d!==null&&d.$$typeof===r}function Ut(d){var x={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(j){return x[j]})}var ot=/\/+/g;function I(d,x){return typeof d=="object"&&d!==null&&d.key!=null?Ut(""+d.key):x.toString(36)}function Wt(){}function St(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Wt,Wt):(d.status="pending",d.then(function(x){d.status==="pending"&&(d.status="fulfilled",d.value=x)},function(x){d.status==="pending"&&(d.status="rejected",d.reason=x)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function Mt(d,x,j,H,y){var M=typeof d;(M==="undefined"||M==="boolean")&&(d=null);var q=!1;if(d===null)q=!0;else switch(M){case"bigint":case"string":case"number":q=!0;break;case"object":switch(d.$$typeof){case r:case i:q=!0;break;case B:return q=d._init,Mt(q(d._payload),x,j,H,y)}}if(q)return y=y(d),q=H===""?"."+I(d,0):H,ae(y)?(j="",q!=null&&(j=q.replace(ot,"$&/")+"/"),Mt(y,x,j,"",function(Q){return Q})):y!=null&&(W(y)&&(y=K(y,j+(y.key==null||d&&d.key===y.key?"":(""+y.key).replace(ot,"$&/")+"/")+q)),x.push(y)),1;q=0;var O=H===""?".":H+":";if(ae(d))for(var L=0;L<d.length;L++)H=d[L],M=O+I(H,L),q+=Mt(H,x,j,M,y);else if(L=ct(d),typeof L=="function")for(d=L.call(d),L=0;!(H=d.next()).done;)H=H.value,M=O+I(H,L++),q+=Mt(H,x,j,M,y);else if(M==="object"){if(typeof d.then=="function")return Mt(St(d),x,j,H,y);throw x=String(d),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.")}return q}function A(d,x,j){if(d==null)return d;var H=[],y=0;return Mt(d,H,"","",function(M){return x.call(j,M,y++)}),H}function w(d){if(d._status===-1){var x=d._result;x=x(),x.then(function(j){(d._status===0||d._status===-1)&&(d._status=1,d._result=j)},function(j){(d._status===0||d._status===-1)&&(d._status=2,d._result=j)}),d._status===-1&&(d._status=0,d._result=x)}if(d._status===1)return d._result.default;throw d._result}var J=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var x=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(x))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function pt(){}return at.Children={map:A,forEach:function(d,x,j){A(d,function(){x.apply(this,arguments)},j)},count:function(d){var x=0;return A(d,function(){x++}),x},toArray:function(d){return A(d,function(x){return x})||[]},only:function(d){if(!W(d))throw Error("React.Children.only expected to receive a single React element child.");return d}},at.Component=Gt,at.Fragment=c,at.Profiler=g,at.PureComponent=ne,at.StrictMode=s,at.Suspense=C,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,at.__COMPILER_RUNTIME={__proto__:null,c:function(d){return et.H.useMemoCache(d)}},at.cache=function(d){return function(){return d.apply(null,arguments)}},at.cloneElement=function(d,x,j){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var H=Ct({},d.props),y=d.key,M=void 0;if(x!=null)for(q in x.ref!==void 0&&(M=void 0),x.key!==void 0&&(y=""+x.key),x)!N.call(x,q)||q==="key"||q==="__self"||q==="__source"||q==="ref"&&x.ref===void 0||(H[q]=x[q]);var q=arguments.length-2;if(q===1)H.children=j;else if(1<q){for(var O=Array(q),L=0;L<q;L++)O[L]=arguments[L+2];H.children=O}return lt(d.type,y,void 0,void 0,M,H)},at.createContext=function(d){return d={$$typeof:U,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:T,_context:d},d},at.createElement=function(d,x,j){var H,y={},M=null;if(x!=null)for(H in x.key!==void 0&&(M=""+x.key),x)N.call(x,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(y[H]=x[H]);var q=arguments.length-2;if(q===1)y.children=j;else if(1<q){for(var O=Array(q),L=0;L<q;L++)O[L]=arguments[L+2];y.children=O}if(d&&d.defaultProps)for(H in q=d.defaultProps,q)y[H]===void 0&&(y[H]=q[H]);return lt(d,M,void 0,void 0,null,y)},at.createRef=function(){return{current:null}},at.forwardRef=function(d){return{$$typeof:Y,render:d}},at.isValidElement=W,at.lazy=function(d){return{$$typeof:B,_payload:{_status:-1,_result:d},_init:w}},at.memo=function(d,x){return{$$typeof:E,type:d,compare:x===void 0?null:x}},at.startTransition=function(d){var x=et.T,j={};et.T=j;try{var H=d(),y=et.S;y!==null&&y(j,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(pt,J)}catch(M){J(M)}finally{et.T=x}},at.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},at.use=function(d){return et.H.use(d)},at.useActionState=function(d,x,j){return et.H.useActionState(d,x,j)},at.useCallback=function(d,x){return et.H.useCallback(d,x)},at.useContext=function(d){return et.H.useContext(d)},at.useDebugValue=function(){},at.useDeferredValue=function(d,x){return et.H.useDeferredValue(d,x)},at.useEffect=function(d,x,j){var H=et.H;if(typeof j=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return H.useEffect(d,x)},at.useId=function(){return et.H.useId()},at.useImperativeHandle=function(d,x,j){return et.H.useImperativeHandle(d,x,j)},at.useInsertionEffect=function(d,x){return et.H.useInsertionEffect(d,x)},at.useLayoutEffect=function(d,x){return et.H.useLayoutEffect(d,x)},at.useMemo=function(d,x){return et.H.useMemo(d,x)},at.useOptimistic=function(d,x){return et.H.useOptimistic(d,x)},at.useReducer=function(d,x,j){return et.H.useReducer(d,x,j)},at.useRef=function(d){return et.H.useRef(d)},at.useState=function(d){return et.H.useState(d)},at.useSyncExternalStore=function(d,x,j){return et.H.useSyncExternalStore(d,x,j)},at.useTransition=function(){return et.H.useTransition()},at.version="19.1.1",at}var Hh;function Hs(){return Hh||(Hh=1,Es.exports=Dm()),Es.exports}var mt=Hs(),Ts={exports:{}},ja={},As={exports:{}},Rs={};/**
 * @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 wh;function Mm(){return wh||(wh=1,function(r){function i(A,w){var J=A.length;A.push(w);t:for(;0<J;){var pt=J-1>>>1,d=A[pt];if(0<g(d,w))A[pt]=w,A[J]=d,J=pt;else break t}}function c(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var w=A[0],J=A.pop();if(J!==w){A[0]=J;t:for(var pt=0,d=A.length,x=d>>>1;pt<x;){var j=2*(pt+1)-1,H=A[j],y=j+1,M=A[y];if(0>g(H,J))y<d&&0>g(M,H)?(A[pt]=M,A[y]=J,pt=y):(A[pt]=H,A[j]=J,pt=j);else if(y<d&&0>g(M,J))A[pt]=M,A[y]=J,pt=y;else break t}}return w}function g(A,w){var J=A.sortIndex-w.sortIndex;return J!==0?J:A.id-w.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;r.unstable_now=function(){return T.now()}}else{var U=Date,Y=U.now();r.unstable_now=function(){return U.now()-Y}}var C=[],E=[],B=1,nt=null,ct=3,gt=!1,Ct=!1,ht=!1,Gt=!1,$t=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,rt=typeof setImmediate<"u"?setImmediate:null;function ae(A){for(var w=c(E);w!==null;){if(w.callback===null)s(E);else if(w.startTime<=A)s(E),w.sortIndex=w.expirationTime,i(C,w);else break;w=c(E)}}function et(A){if(ht=!1,ae(A),!Ct)if(c(C)!==null)Ct=!0,N||(N=!0,I());else{var w=c(E);w!==null&&Mt(et,w.startTime-A)}}var N=!1,lt=-1,K=5,W=-1;function Ut(){return Gt?!0:!(r.unstable_now()-W<K)}function ot(){if(Gt=!1,N){var A=r.unstable_now();W=A;var w=!0;try{t:{Ct=!1,ht&&(ht=!1,ne(lt),lt=-1),gt=!0;var J=ct;try{e:{for(ae(A),nt=c(C);nt!==null&&!(nt.expirationTime>A&&Ut());){var pt=nt.callback;if(typeof pt=="function"){nt.callback=null,ct=nt.priorityLevel;var d=pt(nt.expirationTime<=A);if(A=r.unstable_now(),typeof d=="function"){nt.callback=d,ae(A),w=!0;break e}nt===c(C)&&s(C),ae(A)}else s(C);nt=c(C)}if(nt!==null)w=!0;else{var x=c(E);x!==null&&Mt(et,x.startTime-A),w=!1}}break t}finally{nt=null,ct=J,gt=!1}w=void 0}}finally{w?I():N=!1}}}var I;if(typeof rt=="function")I=function(){rt(ot)};else if(typeof MessageChannel<"u"){var Wt=new MessageChannel,St=Wt.port2;Wt.port1.onmessage=ot,I=function(){St.postMessage(null)}}else I=function(){$t(ot,0)};function Mt(A,w){lt=$t(function(){A(r.unstable_now())},w)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(A){A.callback=null},r.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<A?Math.floor(1e3/A):5},r.unstable_getCurrentPriorityLevel=function(){return ct},r.unstable_next=function(A){switch(ct){case 1:case 2:case 3:var w=3;break;default:w=ct}var J=ct;ct=w;try{return A()}finally{ct=J}},r.unstable_requestPaint=function(){Gt=!0},r.unstable_runWithPriority=function(A,w){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var J=ct;ct=A;try{return w()}finally{ct=J}},r.unstable_scheduleCallback=function(A,w,J){var pt=r.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?pt+J:pt):J=pt,A){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=1e4;break;default:d=5e3}return d=J+d,A={id:B++,callback:w,priorityLevel:A,startTime:J,expirationTime:d,sortIndex:-1},J>pt?(A.sortIndex=J,i(E,A),c(C)===null&&A===c(E)&&(ht?(ne(lt),lt=-1):ht=!0,Mt(et,J-pt))):(A.sortIndex=d,i(C,A),Ct||gt||(Ct=!0,N||(N=!0,I()))),A},r.unstable_shouldYield=Ut,r.unstable_wrapCallback=function(A){var w=ct;return function(){var J=ct;ct=w;try{return A.apply(this,arguments)}finally{ct=J}}}}(Rs)),Rs}var Yh;function Nm(){return Yh||(Yh=1,As.exports=Mm()),As.exports}var Os={exports:{}},le={};/**
 * @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 jh;function Um(){if(jh)return le;jh=1;var r=Hs();function i(C){var E="https://react.dev/errors/"+C;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)E+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+C+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},g=Symbol.for("react.portal");function T(C,E,B){var nt=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:nt==null?null:""+nt,children:C,containerInfo:E,implementation:B}}var U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Y(C,E){if(C==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,le.createPortal=function(C,E){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(i(299));return T(C,E,null,B)},le.flushSync=function(C){var E=U.T,B=s.p;try{if(U.T=null,s.p=2,C)return C()}finally{U.T=E,s.p=B,s.d.f()}},le.preconnect=function(C,E){typeof C=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,s.d.C(C,E))},le.prefetchDNS=function(C){typeof C=="string"&&s.d.D(C)},le.preinit=function(C,E){if(typeof C=="string"&&E&&typeof E.as=="string"){var B=E.as,nt=Y(B,E.crossOrigin),ct=typeof E.integrity=="string"?E.integrity:void 0,gt=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;B==="style"?s.d.S(C,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:nt,integrity:ct,fetchPriority:gt}):B==="script"&&s.d.X(C,{crossOrigin:nt,integrity:ct,fetchPriority:gt,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},le.preinitModule=function(C,E){if(typeof C=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var B=Y(E.as,E.crossOrigin);s.d.M(C,{crossOrigin:B,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&s.d.M(C)},le.preload=function(C,E){if(typeof C=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var B=E.as,nt=Y(B,E.crossOrigin);s.d.L(C,B,{crossOrigin:nt,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},le.preloadModule=function(C,E){if(typeof C=="string")if(E){var B=Y(E.as,E.crossOrigin);s.d.m(C,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:B,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else s.d.m(C)},le.requestFormReset=function(C){s.d.r(C)},le.unstable_batchedUpdates=function(C,E){return C(E)},le.useFormState=function(C,E,B){return U.H.useFormState(C,E,B)},le.useFormStatus=function(){return U.H.useHostTransitionStatus()},le.version="19.1.1",le}var Lh;function xm(){if(Lh)return Os.exports;Lh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Os.exports=Um(),Os.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 Xh;function Cm(){if(Xh)return ja;Xh=1;var r=Nm(),i=Hs(),c=xm();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function T(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function U(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Y(t){if(T(t)!==t)throw Error(s(188))}function C(t){var e=t.alternate;if(!e){if(e=T(t),e===null)throw Error(s(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return Y(a),t;if(u===n)return Y(a),e;u=u.sibling}throw Error(s(188))}if(l.return!==n.return)l=a,n=u;else{for(var f=!1,o=a.child;o;){if(o===l){f=!0,l=a,n=u;break}if(o===n){f=!0,n=a,l=u;break}o=o.sibling}if(!f){for(o=u.child;o;){if(o===l){f=!0,l=u,n=a;break}if(o===n){f=!0,n=u,l=a;break}o=o.sibling}if(!f)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:e}function E(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=E(t),e!==null)return e;t=t.sibling}return null}var B=Object.assign,nt=Symbol.for("react.element"),ct=Symbol.for("react.transitional.element"),gt=Symbol.for("react.portal"),Ct=Symbol.for("react.fragment"),ht=Symbol.for("react.strict_mode"),Gt=Symbol.for("react.profiler"),$t=Symbol.for("react.provider"),ne=Symbol.for("react.consumer"),rt=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),lt=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),Ut=Symbol.for("react.memo_cache_sentinel"),ot=Symbol.iterator;function I(t){return t===null||typeof t!="object"?null:(t=ot&&t[ot]||t["@@iterator"],typeof t=="function"?t:null)}var Wt=Symbol.for("react.client.reference");function St(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Wt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ct:return"Fragment";case Gt:return"Profiler";case ht:return"StrictMode";case et:return"Suspense";case N:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case gt:return"Portal";case rt:return(t.displayName||"Context")+".Provider";case ne:return(t._context.displayName||"Context")+".Consumer";case ae:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case lt:return e=t.displayName||null,e!==null?e:St(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return St(t(e))}catch{}}return null}var Mt=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},pt=[],d=-1;function x(t){return{current:t}}function j(t){0>d||(t.current=pt[d],pt[d]=null,d--)}function H(t,e){d++,pt[d]=t.current,t.current=e}var y=x(null),M=x(null),q=x(null),O=x(null);function L(t,e){switch(H(q,e),H(M,t),H(y,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ch(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ch(e),t=sh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(y),H(y,t)}function Q(){j(y),j(M),j(q)}function G(t){t.memoizedState!==null&&H(O,t);var e=y.current,l=sh(e,t.type);e!==l&&(H(M,t),H(y,l))}function P(t){M.current===t&&(j(y),j(M)),O.current===t&&(j(O),Ca._currentValue=J)}var Tt=Object.prototype.hasOwnProperty,_e=r.unstable_scheduleCallback,He=r.unstable_cancelCallback,xl=r.unstable_shouldYield,Pl=r.unstable_requestPaint,Bt=r.unstable_now,we=r.unstable_getCurrentPriorityLevel,oe=r.unstable_ImmediatePriority,Ze=r.unstable_UserBlockingPriority,Cl=r.unstable_NormalPriority,Ln=r.unstable_LowPriority,Ga=r.unstable_IdlePriority,sd=r.log,fd=r.unstable_setDisableYieldValue,Xn=null,he=null;function cl(t){if(typeof sd=="function"&&fd(t),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(Xn,t)}catch{}}var de=Math.clz32?Math.clz32:hd,rd=Math.log,od=Math.LN2;function hd(t){return t>>>=0,t===0?32:31-(rd(t)/od|0)|0}var Qa=256,Va=4194304;function Bl(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 Za(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var o=n&134217727;return o!==0?(n=o&~u,n!==0?a=Bl(n):(f&=o,f!==0?a=Bl(f):l||(l=o&~t,l!==0&&(a=Bl(l))))):(o=n&~u,o!==0?a=Bl(o):f!==0?a=Bl(f):l||(l=n&~t,l!==0&&(a=Bl(l)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:a}function Gn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dd(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 Gs(){var t=Qa;return Qa<<=1,(Qa&4194048)===0&&(Qa=256),t}function Qs(){var t=Va;return Va<<=1,(Va&62914560)===0&&(Va=4194304),t}function ri(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Qn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yd(t,e,l,n,a,u){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,h=t.expirationTimes,b=t.hiddenUpdates;for(l=f&~l;0<l;){var R=31-de(l),D=1<<R;o[R]=0,h[R]=-1;var S=b[R];if(S!==null)for(b[R]=null,R=0;R<S.length;R++){var _=S[R];_!==null&&(_.lane&=-536870913)}l&=~D}n!==0&&Vs(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function Vs(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-de(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&4194090}function Zs(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-de(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function oi(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 hi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ks(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:zh(t.type))}function md(t,e){var l=w.p;try{return w.p=t,e()}finally{w.p=l}}var sl=Math.random().toString(36).slice(2),te="__reactFiber$"+sl,ie="__reactProps$"+sl,Il="__reactContainer$"+sl,di="__reactEvents$"+sl,gd="__reactListeners$"+sl,vd="__reactHandles$"+sl,Js="__reactResources$"+sl,Vn="__reactMarker$"+sl;function yi(t){delete t[te],delete t[ie],delete t[di],delete t[gd],delete t[vd]}function tn(t){var e=t[te];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Il]||l[te]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=hh(t);t!==null;){if(l=t[te])return l;t=hh(t)}return e}t=l,l=t.parentNode}return null}function en(t){if(t=t[te]||t[Il]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Zn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function ln(t){var e=t[Js];return e||(e=t[Js]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Zt(t){t[Vn]=!0}var ks=new Set,$s={};function ql(t,e){nn(t,e),nn(t+"Capture",e)}function nn(t,e){for($s[t]=e,t=0;t<e.length;t++)ks.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]*$"),Ws={},Fs={};function bd(t){return Tt.call(Fs,t)?!0:Tt.call(Ws,t)?!1:pd.test(t)?Fs[t]=!0:(Ws[t]=!0,!1)}function Ka(t,e,l){if(bd(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Ja(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Ke(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}var mi,Ps;function an(t){if(mi===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);mi=e&&e[1]||"",Ps=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+mi+t+Ps}var gi=!1;function vi(t,e){if(!t||gi)return"";gi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(_){var S=_}Reflect.construct(t,[],D)}else{try{D.call()}catch(_){S=_}t.call(D.prototype)}}else{try{throw Error()}catch(_){S=_}(D=t())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(_){if(_&&S&&typeof _.stack=="string")return[_.stack,S.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),f=u[0],o=u[1];if(f&&o){var h=f.split(`
`),b=o.split(`
`);for(a=n=0;n<h.length&&!h[n].includes("DetermineComponentFrameRoot");)n++;for(;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;if(n===h.length||a===b.length)for(n=h.length-1,a=b.length-1;1<=n&&0<=a&&h[n]!==b[a];)a--;for(;1<=n&&0<=a;n--,a--)if(h[n]!==b[a]){if(n!==1||a!==1)do if(n--,a--,0>a||h[n]!==b[a]){var R=`
`+h[n].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=n&&0<=a);break}}}finally{gi=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?an(l):""}function Sd(t){switch(t.tag){case 26:case 27:case 5:return an(t.type);case 16:return an("Lazy");case 13:return an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return vi(t.type,!1);case 11:return vi(t.type.render,!1);case 1:return vi(t.type,!0);case 31:return an("Activity");default:return""}}function Is(t){try{var e="";do e+=Sd(t),t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function Ee(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function tf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _d(t){var e=tf(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ka(t){t._valueTracker||(t._valueTracker=_d(t))}function ef(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=tf(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function $a(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 Te(t){return t.replace(Ed,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function pi(t,e,l,n,a,u,f,o){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ee(e)):t.value!==""+Ee(e)&&(t.value=""+Ee(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?bi(t,f,Ee(e)):l!=null?bi(t,f,Ee(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+Ee(o):t.removeAttribute("name")}function lf(t,e,l,n,a,u,f,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;l=l!=null?""+Ee(l):"",e=e!=null?""+Ee(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=o?t.checked:!!n,t.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f)}function bi(t,e,l){e==="number"&&$a(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function un(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+Ee(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function nf(t,e,l){if(e!=null&&(e=""+Ee(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ee(l):""}function af(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(s(92));if(Mt(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=Ee(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n)}function cn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Td=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function uf(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Td.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function cf(t,e,l){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&uf(t,a,n)}else for(var u in e)e.hasOwnProperty(u)&&uf(t,u,e[u])}function Si(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ad=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wa(t){return Rd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var _i=null;function Ei(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var sn=null,fn=null;function sf(t){var e=en(t);if(e&&(t=e.stateNode)){var l=t[ie]||null;t:switch(t=e.stateNode,e.type){case"input":if(pi(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Te(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[ie]||null;if(!a)throw Error(s(90));pi(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&ef(n)}break t;case"textarea":nf(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&un(t,!!l.multiple,e,!1)}}}var Ti=!1;function ff(t,e,l){if(Ti)return t(e,l);Ti=!0;try{var n=t(e);return n}finally{if(Ti=!1,(sn!==null||fn!==null)&&(qu(),sn&&(e=sn,t=fn,fn=sn=null,sf(e),t)))for(e=0;e<t.length;e++)sf(t[e])}}function Kn(t,e){var l=t.stateNode;if(l===null)return null;var n=l[ie]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(s(231,e,typeof l));return l}var Je=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ai=!1;if(Je)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){Ai=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{Ai=!1}var fl=null,Ri=null,Fa=null;function rf(){if(Fa)return Fa;var t,e=Ri,l=e.length,n,a="value"in fl?fl.value:fl.textContent,u=a.length;for(t=0;t<l&&e[t]===a[t];t++);var f=l-t;for(n=1;n<=f&&e[l-n]===a[u-n];n++);return Fa=a.slice(t,1<n?1-n:void 0)}function Pa(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 Ia(){return!0}function of(){return!1}function ce(t){function e(l,n,a,u,f){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ia:of,this.isPropagationStopped=of,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ia)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ia)},persist:function(){},isPersistent:Ia}),e}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tu=ce(Hl),kn=B({},Hl,{view:0,detail:0}),Od=ce(kn),Oi,zi,$n,eu=B({},kn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mi,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!==$n&&($n&&t.type==="mousemove"?(Oi=t.screenX-$n.screenX,zi=t.screenY-$n.screenY):zi=Oi=0,$n=t),Oi)},movementY:function(t){return"movementY"in t?t.movementY:zi}}),hf=ce(eu),zd=B({},eu,{dataTransfer:0}),Dd=ce(zd),Md=B({},kn,{relatedTarget:0}),Di=ce(Md),Nd=B({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ud=ce(Nd),xd=B({},Hl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cd=ce(xd),Bd=B({},Hl,{data:0}),df=ce(Bd),qd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yd(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=wd[t])?!!e[t]:!1}function Mi(){return Yd}var jd=B({},kn,{key:function(t){if(t.key){var e=qd[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Pa(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hd[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mi,charCode:function(t){return t.type==="keypress"?Pa(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pa(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ld=ce(jd),Xd=B({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yf=ce(Xd),Gd=B({},kn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mi}),Qd=ce(Gd),Vd=B({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zd=ce(Vd),Kd=B({},eu,{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}),Jd=ce(Kd),kd=B({},Hl,{newState:0,oldState:0}),$d=ce(kd),Wd=[9,13,27,32],Ni=Je&&"CompositionEvent"in window,Wn=null;Je&&"documentMode"in document&&(Wn=document.documentMode);var Fd=Je&&"TextEvent"in window&&!Wn,mf=Je&&(!Ni||Wn&&8<Wn&&11>=Wn),gf=" ",vf=!1;function pf(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 bf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var rn=!1;function Pd(t,e){switch(t){case"compositionend":return bf(e);case"keypress":return e.which!==32?null:(vf=!0,gf);case"textInput":return t=e.data,t===gf&&vf?null:t;default:return null}}function Id(t,e){if(rn)return t==="compositionend"||!Ni&&pf(t,e)?(t=rf(),Fa=Ri=fl=null,rn=!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 mf&&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 Sf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ty[t.type]:e==="textarea"}function _f(t,e,l,n){sn?fn?fn.push(n):fn=[n]:sn=n,e=Xu(e,"onChange"),0<e.length&&(l=new tu("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var Fn=null,Pn=null;function ey(t){lh(t,0)}function lu(t){var e=Zn(t);if(ef(e))return t}function Ef(t,e){if(t==="change")return e}var Tf=!1;if(Je){var Ui;if(Je){var xi="oninput"in document;if(!xi){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),xi=typeof Af.oninput=="function"}Ui=xi}else Ui=!1;Tf=Ui&&(!document.documentMode||9<document.documentMode)}function Rf(){Fn&&(Fn.detachEvent("onpropertychange",Of),Pn=Fn=null)}function Of(t){if(t.propertyName==="value"&&lu(Pn)){var e=[];_f(e,Pn,t,Ei(t)),ff(ey,e)}}function ly(t,e,l){t==="focusin"?(Rf(),Fn=e,Pn=l,Fn.attachEvent("onpropertychange",Of)):t==="focusout"&&Rf()}function ny(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return lu(Pn)}function ay(t,e){if(t==="click")return lu(e)}function uy(t,e){if(t==="input"||t==="change")return lu(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ye=typeof Object.is=="function"?Object.is:iy;function In(t,e){if(ye(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Tt.call(e,a)||!ye(t[a],e[a]))return!1}return!0}function zf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Df(t,e){var l=zf(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=zf(l)}}function Mf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Mf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Nf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=$a(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=$a(t.document)}return e}function Ci(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=Je&&"documentMode"in document&&11>=document.documentMode,on=null,Bi=null,ta=null,qi=!1;function Uf(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;qi||on==null||on!==$a(n)||(n=on,"selectionStart"in n&&Ci(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ta&&In(ta,n)||(ta=n,n=Xu(Bi,"onSelect"),0<n.length&&(e=new tu("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=on)))}function wl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var hn={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},Hi={},xf={};Je&&(xf=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function Yl(t){if(Hi[t])return Hi[t];if(!hn[t])return t;var e=hn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in xf)return Hi[t]=e[l];return t}var Cf=Yl("animationend"),Bf=Yl("animationiteration"),qf=Yl("animationstart"),sy=Yl("transitionrun"),fy=Yl("transitionstart"),ry=Yl("transitioncancel"),Hf=Yl("transitionend"),wf=new Map,wi="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");wi.push("scrollEnd");function xe(t,e){wf.set(t,e),ql(e,[t])}var Yf=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var l=Yf.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Is(e)},Yf.set(t,e),e)}return{value:t,source:e,stack:Is(e)}}var Re=[],dn=0,Yi=0;function nu(){for(var t=dn,e=Yi=dn=0;e<t;){var l=Re[e];Re[e++]=null;var n=Re[e];Re[e++]=null;var a=Re[e];Re[e++]=null;var u=Re[e];if(Re[e++]=null,n!==null&&a!==null){var f=n.pending;f===null?a.next=a:(a.next=f.next,f.next=a),n.pending=a}u!==0&&jf(l,a,u)}}function au(t,e,l,n){Re[dn++]=t,Re[dn++]=e,Re[dn++]=l,Re[dn++]=n,Yi|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function ji(t,e,l,n){return au(t,e,l,n),uu(t)}function yn(t,e){return au(t,null,null,e),uu(t)}function jf(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=t.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-de(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function uu(t){if(50<Ra)throw Ra=0,Zc=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var mn={};function oy(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function me(t,e,l,n){return new oy(t,e,l,n)}function Li(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ke(t,e){var l=t.alternate;return l===null?(l=me(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Lf(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function iu(t,e,l,n,a,u){var f=0;if(n=t,typeof t=="function")Li(t)&&(f=1);else if(typeof t=="string")f=dm(t,l,y.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=me(31,l,e,a),t.elementType=W,t.lanes=u,t;case Ct:return jl(l.children,a,u,e);case ht:f=8,a|=24;break;case Gt:return t=me(12,l,e,a|2),t.elementType=Gt,t.lanes=u,t;case et:return t=me(13,l,e,a),t.elementType=et,t.lanes=u,t;case N:return t=me(19,l,e,a),t.elementType=N,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $t:case rt:f=10;break t;case ne:f=9;break t;case ae:f=11;break t;case lt:f=14;break t;case K:f=16,n=null;break t}f=29,l=Error(s(130,t===null?"null":typeof t,"")),n=null}return e=me(f,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function jl(t,e,l,n){return t=me(7,t,n,e),t.lanes=l,t}function Xi(t,e,l){return t=me(6,t,null,e),t.lanes=l,t}function Gi(t,e,l){return e=me(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var gn=[],vn=0,cu=null,su=0,Oe=[],ze=0,Ll=null,$e=1,We="";function Xl(t,e){gn[vn++]=su,gn[vn++]=cu,cu=t,su=e}function Xf(t,e,l){Oe[ze++]=$e,Oe[ze++]=We,Oe[ze++]=Ll,Ll=t;var n=$e;t=We;var a=32-de(n)-1;n&=~(1<<a),l+=1;var u=32-de(e)+a;if(30<u){var f=a-a%5;u=(n&(1<<f)-1).toString(32),n>>=f,a-=f,$e=1<<32-de(e)+a|l<<a|n,We=u+t}else $e=1<<u|l<<a|n,We=t}function Qi(t){t.return!==null&&(Xl(t,1),Xf(t,1,0))}function Vi(t){for(;t===cu;)cu=gn[--vn],gn[vn]=null,su=gn[--vn],gn[vn]=null;for(;t===Ll;)Ll=Oe[--ze],Oe[ze]=null,We=Oe[--ze],Oe[ze]=null,$e=Oe[--ze],Oe[ze]=null}var ue=null,qt=null,bt=!1,Gl=null,Ye=!1,Zi=Error(s(519));function Ql(t){var e=Error(s(418,""));throw na(Ae(e,t)),Zi}function Gf(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[te]=t,e[ie]=n,l){case"dialog":ft("cancel",e),ft("close",e);break;case"iframe":case"object":case"embed":ft("load",e);break;case"video":case"audio":for(l=0;l<za.length;l++)ft(za[l],e);break;case"source":ft("error",e);break;case"img":case"image":case"link":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"input":ft("invalid",e),lf(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),ka(e);break;case"select":ft("invalid",e);break;case"textarea":ft("invalid",e),af(e,n.value,n.defaultValue,n.children),ka(e)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||ih(e.textContent,l)?(n.popover!=null&&(ft("beforetoggle",e),ft("toggle",e)),n.onScroll!=null&&ft("scroll",e),n.onScrollEnd!=null&&ft("scrollend",e),n.onClick!=null&&(e.onclick=Gu),e=!0):e=!1,e||Ql(t)}function Qf(t){for(ue=t.return;ue;)switch(ue.tag){case 5:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:ue=ue.return}}function ea(t){if(t!==ue)return!1;if(!bt)return Qf(t),bt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||cs(t.type,t.memoizedProps)),l=!l),l&&qt&&Ql(t),Qf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(l=t.data,l==="/$"){if(e===0){qt=Be(t.nextSibling);break t}e--}else l!=="$"&&l!=="$!"&&l!=="$?"||e++;t=t.nextSibling}qt=null}}else e===27?(e=qt,Rl(t.type)?(t=os,os=null,qt=t):qt=e):qt=ue?Be(t.stateNode.nextSibling):null;return!0}function la(){qt=ue=null,bt=!1}function Vf(){var t=Gl;return t!==null&&(re===null?re=t:re.push.apply(re,t),Gl=null),t}function na(t){Gl===null?Gl=[t]:Gl.push(t)}var Ki=x(null),Vl=null,Fe=null;function rl(t,e,l){H(Ki,e._currentValue),e._currentValue=l}function Pe(t){t._currentValue=Ki.current,j(Ki)}function Ji(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function ki(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var f=a.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=a;for(var h=0;h<e.length;h++)if(o.context===e[h]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),Ji(u.return,l,t),n||(f=null);break t}u=o.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(s(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),Ji(f,l,t),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function aa(t,e,l,n){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(s(387));if(f=f.memoizedProps,f!==null){var o=a.type;ye(a.pendingProps.value,f.value)||(t!==null?t.push(o):t=[o])}}else if(a===O.current){if(f=a.alternate,f===null)throw Error(s(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ca):t=[Ca])}a=a.return}t!==null&&ki(e,t,l,n),e.flags|=262144}function fu(t){for(t=t.firstContext;t!==null;){if(!ye(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Zl(t){Vl=t,Fe=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ee(t){return Zf(Vl,t)}function ru(t,e){return Vl===null&&Zl(t),Zf(t,e)}function Zf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Fe===null){if(t===null)throw Error(s(308));Fe=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Fe=Fe.next=e;return l}var hy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},dy=r.unstable_scheduleCallback,yy=r.unstable_NormalPriority,Qt={$$typeof:rt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $i(){return{controller:new hy,data:new Map,refCount:0}}function ua(t){t.refCount--,t.refCount===0&&dy(yy,function(){t.controller.abort()})}var ia=null,Wi=0,pn=0,bn=null;function my(t,e){if(ia===null){var l=ia=[];Wi=0,pn=Pc(),bn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Wi++,e.then(Kf,Kf),e}function Kf(){if(--Wi===0&&ia!==null){bn!==null&&(bn.status="fulfilled");var t=ia;ia=null,pn=0,bn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gy(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Jf=A.S;A.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&my(t,e),Jf!==null&&Jf(t,e)};var Kl=x(null);function Fi(){var t=Kl.current;return t!==null?t:Dt.pooledCache}function ou(t,e){e===null?H(Kl,Kl.current):H(Kl,e.pool)}function kf(){var t=Fi();return t===null?null:{parent:Qt._currentValue,pool:t}}var ca=Error(s(460)),$f=Error(s(474)),hu=Error(s(542)),Pi={then:function(){}};function Wf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function du(){}function Ff(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(du,du),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,If(t),t;default:if(typeof e.status=="string")e.then(du,du);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,If(t),t}throw sa=e,ca}}var sa=null;function Pf(){if(sa===null)throw Error(s(459));var t=sa;return sa=null,t}function If(t){if(t===ca||t===hu)throw Error(s(483))}var ol=!1;function Ii(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(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 hl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function dl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(_t&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=uu(t),jf(t,null,l),e}return au(t,n,e,l),uu(t)}function fa(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Zs(t,l)}}function ec(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=f:u=u.next=f,l=l.next}while(l!==null);u===null?a=u=e:u=u.next=e}else a=u=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var lc=!1;function ra(){if(lc){var t=bn;if(t!==null)throw t}}function oa(t,e,l,n){lc=!1;var a=t.updateQueue;ol=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var h=o,b=h.next;h.next=null,f===null?u=b:f.next=b,f=h;var R=t.alternate;R!==null&&(R=R.updateQueue,o=R.lastBaseUpdate,o!==f&&(o===null?R.firstBaseUpdate=b:o.next=b,R.lastBaseUpdate=h))}if(u!==null){var D=a.baseState;f=0,R=b=h=null,o=u;do{var S=o.lane&-536870913,_=S!==o.lane;if(_?(yt&S)===S:(n&S)===S){S!==0&&S===pn&&(lc=!0),R!==null&&(R=R.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var F=t,k=o;S=e;var Ot=l;switch(k.tag){case 1:if(F=k.payload,typeof F=="function"){D=F.call(Ot,D,S);break t}D=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=k.payload,S=typeof F=="function"?F.call(Ot,D,S):F,S==null)break t;D=B({},D,S);break t;case 2:ol=!0}}S=o.callback,S!==null&&(t.flags|=64,_&&(t.flags|=8192),_=a.callbacks,_===null?a.callbacks=[S]:_.push(S))}else _={lane:S,tag:o.tag,payload:o.payload,callback:o.callback,next:null},R===null?(b=R=_,h=D):R=R.next=_,f|=S;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;_=o,o=_.next,_.next=null,a.lastBaseUpdate=_,a.shared.pending=null}}while(!0);R===null&&(h=D),a.baseState=h,a.firstBaseUpdate=b,a.lastBaseUpdate=R,u===null&&(a.shared.lanes=0),_l|=f,t.lanes=f,t.memoizedState=D}}function tr(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function er(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)tr(l[t],e)}var Sn=x(null),yu=x(0);function lr(t,e){t=ul,H(yu,t),H(Sn,e),ul=t|e.baseLanes}function nc(){H(yu,ul),H(Sn,Sn.current)}function ac(){ul=yu.current,j(Sn),j(yu)}var yl=0,ut=null,At=null,jt=null,mu=!1,_n=!1,Jl=!1,gu=0,ha=0,En=null,vy=0;function wt(){throw Error(s(321))}function uc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ye(t[l],e[l]))return!1;return!0}function ic(t,e,l,n,a,u){return yl=u,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?jr:Lr,Jl=!1,u=l(n,a),Jl=!1,_n&&(u=ar(e,l,n,a)),nr(t),u}function nr(t){A.H=Eu;var e=At!==null&&At.next!==null;if(yl=0,jt=At=ut=null,mu=!1,ha=0,En=null,e)throw Error(s(300));t===null||Kt||(t=t.dependencies,t!==null&&fu(t)&&(Kt=!0))}function ar(t,e,l,n){ut=t;var a=0;do{if(_n&&(En=null),ha=0,_n=!1,25<=a)throw Error(s(301));if(a+=1,jt=At=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=Ay,u=e(l,n)}while(_n);return u}function py(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?da(e):e,t=t.useState()[0],(At!==null?At.memoizedState:null)!==t&&(ut.flags|=1024),e}function cc(){var t=gu!==0;return gu=0,t}function sc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function fc(t){if(mu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}mu=!1}yl=0,jt=At=ut=null,_n=!1,ha=gu=0,En=null}function se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?ut.memoizedState=jt=t:jt=jt.next=t,jt}function Lt(){if(At===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=At.next;var e=jt===null?ut.memoizedState:jt.next;if(e!==null)jt=e,At=t;else{if(t===null)throw ut.alternate===null?Error(s(467)):Error(s(310));At=t,t={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},jt===null?ut.memoizedState=jt=t:jt=jt.next=t}return jt}function rc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function da(t){var e=ha;return ha+=1,En===null&&(En=[]),t=Ff(En,t,e),e=ut,(jt===null?e.memoizedState:jt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?jr:Lr),t}function vu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return da(t);if(t.$$typeof===rt)return ee(t)}throw Error(s(438,String(t)))}function oc(t){var e=null,l=ut.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=ut.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=rc(),ut.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=Ut;return e.index++,l}function Ie(t,e){return typeof e=="function"?e(t):e}function pu(t){var e=Lt();return hc(e,At,t)}function hc(t,e,l){var n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}e.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var o=f=null,h=null,b=e,R=!1;do{var D=b.lane&-536870913;if(D!==b.lane?(yt&D)===D:(yl&D)===D){var S=b.revertLane;if(S===0)h!==null&&(h=h.next={lane:0,revertLane:0,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),D===pn&&(R=!0);else if((yl&S)===S){b=b.next,S===pn&&(R=!0);continue}else D={lane:0,revertLane:b.revertLane,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},h===null?(o=h=D,f=u):h=h.next=D,ut.lanes|=S,_l|=S;D=b.action,Jl&&l(u,D),u=b.hasEagerState?b.eagerState:l(u,D)}else S={lane:D,revertLane:b.revertLane,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},h===null?(o=h=S,f=u):h=h.next=S,ut.lanes|=D,_l|=D;b=b.next}while(b!==null&&b!==e);if(h===null?f=u:h.next=o,!ye(u,t.memoizedState)&&(Kt=!0,R&&(l=bn,l!==null)))throw l;t.memoizedState=u,t.baseState=f,t.baseQueue=h,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function dc(t){var e=Lt(),l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,u=e.memoizedState;if(a!==null){l.pending=null;var f=a=a.next;do u=t(u,f.action),f=f.next;while(f!==a);ye(u,e.memoizedState)||(Kt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function ur(t,e,l){var n=ut,a=Lt(),u=bt;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=e();var f=!ye((At||a).memoizedState,l);f&&(a.memoizedState=l,Kt=!0),a=a.queue;var o=sr.bind(null,n,a,t);if(ya(2048,8,o,[t]),a.getSnapshot!==e||f||jt!==null&&jt.memoizedState.tag&1){if(n.flags|=2048,Tn(9,bu(),cr.bind(null,n,a,l,e),null),Dt===null)throw Error(s(349));u||(yl&124)!==0||ir(n,e,l)}return l}function ir(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ut.updateQueue,e===null?(e=rc(),ut.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function cr(t,e,l,n){e.value=l,e.getSnapshot=n,fr(e)&&rr(t)}function sr(t,e,l){return l(function(){fr(e)&&rr(t)})}function fr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ye(t,l)}catch{return!0}}function rr(t){var e=yn(t,2);e!==null&&Se(e,t,2)}function yc(t){var e=se();if(typeof t=="function"){var l=t;if(t=l(),Jl){cl(!0);try{l()}finally{cl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ie,lastRenderedState:t},e}function or(t,e,l,n){return t.baseState=l,hc(t,At,typeof n=="function"?n:Ie)}function by(t,e,l,n,a){if(_u(t))throw Error(s(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};A.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,hr(e,u)):(u.next=l.next,e.pending=l.next=u)}}function hr(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=A.T,f={};A.T=f;try{var o=l(a,n),h=A.S;h!==null&&h(f,o),dr(t,e,o)}catch(b){mc(t,e,b)}finally{A.T=u}}else try{u=l(a,n),dr(t,e,u)}catch(b){mc(t,e,b)}}function dr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){yr(t,e,n)},function(n){return mc(t,e,n)}):yr(t,e,l)}function yr(t,e,l){e.status="fulfilled",e.value=l,mr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,hr(t,l)))}function mc(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,mr(e),e=e.next;while(e!==n)}t.action=null}function mr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function gr(t,e){return e}function vr(t,e){if(bt){var l=Dt.formState;if(l!==null){t:{var n=ut;if(bt){if(qt){e:{for(var a=qt,u=Ye;a.nodeType!==8;){if(!u){a=null;break e}if(a=Be(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){qt=Be(a.nextSibling),n=a.data==="F!";break t}}Ql(n)}n=!1}n&&(e=l[0])}}return l=se(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},l.queue=n,l=Hr.bind(null,ut,n),n.dispatch=l,n=yc(!1),u=Sc.bind(null,ut,!1,n.queue),n=se(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=by.bind(null,ut,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function pr(t){var e=Lt();return br(e,At,t)}function br(t,e,l){if(e=hc(t,e,gr)[0],t=pu(Ie)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=da(e)}catch(f){throw f===ca?hu:f}else n=e;e=Lt();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(ut.flags|=2048,Tn(9,bu(),Sy.bind(null,a,l),null)),[n,u,t]}function Sy(t,e){t.action=e}function Sr(t){var e=Lt(),l=At;if(l!==null)return br(e,l,t);Lt(),e=e.memoizedState,l=Lt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Tn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=ut.updateQueue,e===null&&(e=rc(),ut.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function bu(){return{destroy:void 0,resource:void 0}}function _r(){return Lt().memoizedState}function Su(t,e,l,n){var a=se();n=n===void 0?null:n,ut.flags|=t,a.memoizedState=Tn(1|e,bu(),l,n)}function ya(t,e,l,n){var a=Lt();n=n===void 0?null:n;var u=a.memoizedState.inst;At!==null&&n!==null&&uc(n,At.memoizedState.deps)?a.memoizedState=Tn(e,u,l,n):(ut.flags|=t,a.memoizedState=Tn(1|e,u,l,n))}function Er(t,e){Su(8390656,8,t,e)}function Tr(t,e){ya(2048,8,t,e)}function Ar(t,e){return ya(4,2,t,e)}function Rr(t,e){return ya(4,4,t,e)}function Or(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function zr(t,e,l){l=l!=null?l.concat([t]):null,ya(4,4,Or.bind(null,e,t),l)}function gc(){}function Dr(t,e){var l=Lt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&uc(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Mr(t,e){var l=Lt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&uc(e,n[1]))return n[0];if(n=t(),Jl){cl(!0);try{t()}finally{cl(!1)}}return l.memoizedState=[n,e],n}function vc(t,e,l){return l===void 0||(yl&1073741824)!==0?t.memoizedState=e:(t.memoizedState=l,t=Co(),ut.lanes|=t,_l|=t,l)}function Nr(t,e,l,n){return ye(l,e)?l:Sn.current!==null?(t=vc(t,l,n),ye(t,e)||(Kt=!0),t):(yl&42)===0?(Kt=!0,t.memoizedState=l):(t=Co(),ut.lanes|=t,_l|=t,e)}function Ur(t,e,l,n,a){var u=w.p;w.p=u!==0&&8>u?u:8;var f=A.T,o={};A.T=o,Sc(t,!1,e,l);try{var h=a(),b=A.S;if(b!==null&&b(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var R=gy(h,n);ma(t,e,R,be(t))}else ma(t,e,n,be(t))}catch(D){ma(t,e,{then:function(){},status:"rejected",reason:D},be())}finally{w.p=u,A.T=f}}function _y(){}function pc(t,e,l,n){if(t.tag!==5)throw Error(s(476));var a=xr(t).queue;Ur(t,a,e,J,l===null?_y:function(){return Cr(t),l(n)})}function xr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ie,lastRenderedState:J},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ie,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Cr(t){var e=xr(t).next.queue;ma(t,e,{},be())}function bc(){return ee(Ca)}function Br(){return Lt().memoizedState}function qr(){return Lt().memoizedState}function Ey(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=be();t=hl(l);var n=dl(e,t,l);n!==null&&(Se(n,e,l),fa(n,e,l)),e={cache:$i()},t.payload=e;return}e=e.return}}function Ty(t,e,l){var n=be();l={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},_u(t)?wr(e,l):(l=ji(t,e,l,n),l!==null&&(Se(l,t,n),Yr(l,e,n)))}function Hr(t,e,l){var n=be();ma(t,e,l,n)}function ma(t,e,l,n){var a={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(_u(t))wr(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,o=u(f,l);if(a.hasEagerState=!0,a.eagerState=o,ye(o,f))return au(t,e,a,0),Dt===null&&nu(),!1}catch{}finally{}if(l=ji(t,e,a,n),l!==null)return Se(l,t,n),Yr(l,e,n),!0}return!1}function Sc(t,e,l,n){if(n={lane:2,revertLane:Pc(),action:n,hasEagerState:!1,eagerState:null,next:null},_u(t)){if(e)throw Error(s(479))}else e=ji(t,l,n,2),e!==null&&Se(e,t,2)}function _u(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function wr(t,e){_n=mu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Yr(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Zs(t,l)}}var Eu={readContext:ee,use:vu,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt},jr={readContext:ee,use:vu,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:ee,useEffect:Er,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Su(4194308,4,Or.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Su(4194308,4,t,e)},useInsertionEffect:function(t,e){Su(4,2,t,e)},useMemo:function(t,e){var l=se();e=e===void 0?null:e;var n=t();if(Jl){cl(!0);try{t()}finally{cl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=se();if(l!==void 0){var a=l(e);if(Jl){cl(!0);try{l(e)}finally{cl(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Ty.bind(null,ut,t),[n.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=yc(t);var e=t.queue,l=Hr.bind(null,ut,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:gc,useDeferredValue:function(t,e){var l=se();return vc(l,t,e)},useTransition:function(){var t=yc(!1);return t=Ur.bind(null,ut,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=ut,a=se();if(bt){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),Dt===null)throw Error(s(349));(yt&124)!==0||ir(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,Er(sr.bind(null,n,u,t),[t]),n.flags|=2048,Tn(9,bu(),cr.bind(null,n,u,l,e),null),l},useId:function(){var t=se(),e=Dt.identifierPrefix;if(bt){var l=We,n=$e;l=(n&~(1<<32-de(n)-1)).toString(32)+l,e="«"+e+"R"+l,l=gu++,0<l&&(e+="H"+l.toString(32)),e+="»"}else l=vy++,e="«"+e+"r"+l.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:bc,useFormState:vr,useActionState:vr,useOptimistic:function(t){var e=se();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Sc.bind(null,ut,!0,l),l.dispatch=e,[t,e]},useMemoCache:oc,useCacheRefresh:function(){return se().memoizedState=Ey.bind(null,ut)}},Lr={readContext:ee,use:vu,useCallback:Dr,useContext:ee,useEffect:Tr,useImperativeHandle:zr,useInsertionEffect:Ar,useLayoutEffect:Rr,useMemo:Mr,useReducer:pu,useRef:_r,useState:function(){return pu(Ie)},useDebugValue:gc,useDeferredValue:function(t,e){var l=Lt();return Nr(l,At.memoizedState,t,e)},useTransition:function(){var t=pu(Ie)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:da(t),e]},useSyncExternalStore:ur,useId:Br,useHostTransitionStatus:bc,useFormState:pr,useActionState:pr,useOptimistic:function(t,e){var l=Lt();return or(l,At,t,e)},useMemoCache:oc,useCacheRefresh:qr},Ay={readContext:ee,use:vu,useCallback:Dr,useContext:ee,useEffect:Tr,useImperativeHandle:zr,useInsertionEffect:Ar,useLayoutEffect:Rr,useMemo:Mr,useReducer:dc,useRef:_r,useState:function(){return dc(Ie)},useDebugValue:gc,useDeferredValue:function(t,e){var l=Lt();return At===null?vc(l,t,e):Nr(l,At.memoizedState,t,e)},useTransition:function(){var t=dc(Ie)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:da(t),e]},useSyncExternalStore:ur,useId:Br,useHostTransitionStatus:bc,useFormState:Sr,useActionState:Sr,useOptimistic:function(t,e){var l=Lt();return At!==null?or(l,At,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:oc,useCacheRefresh:qr},An=null,ga=0;function Tu(t){var e=ga;return ga+=1,An===null&&(An=[]),Ff(An,t,e)}function va(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Au(t,e){throw e.$$typeof===nt?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Xr(t){var e=t._init;return e(t._payload)}function Gr(t){function e(v,m){if(t){var p=v.deletions;p===null?(v.deletions=[m],v.flags|=16):p.push(m)}}function l(v,m){if(!t)return null;for(;m!==null;)e(v,m),m=m.sibling;return null}function n(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=ke(v,m),v.index=0,v.sibling=null,v}function u(v,m,p){return v.index=p,t?(p=v.alternate,p!==null?(p=p.index,p<m?(v.flags|=67108866,m):p):(v.flags|=67108866,m)):(v.flags|=1048576,m)}function f(v){return t&&v.alternate===null&&(v.flags|=67108866),v}function o(v,m,p,z){return m===null||m.tag!==6?(m=Xi(p,v.mode,z),m.return=v,m):(m=a(m,p),m.return=v,m)}function h(v,m,p,z){var X=p.type;return X===Ct?R(v,m,p.props.children,z,p.key):m!==null&&(m.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===K&&Xr(X)===m.type)?(m=a(m,p.props),va(m,p),m.return=v,m):(m=iu(p.type,p.key,p.props,null,v.mode,z),va(m,p),m.return=v,m)}function b(v,m,p,z){return m===null||m.tag!==4||m.stateNode.containerInfo!==p.containerInfo||m.stateNode.implementation!==p.implementation?(m=Gi(p,v.mode,z),m.return=v,m):(m=a(m,p.children||[]),m.return=v,m)}function R(v,m,p,z,X){return m===null||m.tag!==7?(m=jl(p,v.mode,z,X),m.return=v,m):(m=a(m,p),m.return=v,m)}function D(v,m,p){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Xi(""+m,v.mode,p),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ct:return p=iu(m.type,m.key,m.props,null,v.mode,p),va(p,m),p.return=v,p;case gt:return m=Gi(m,v.mode,p),m.return=v,m;case K:var z=m._init;return m=z(m._payload),D(v,m,p)}if(Mt(m)||I(m))return m=jl(m,v.mode,p,null),m.return=v,m;if(typeof m.then=="function")return D(v,Tu(m),p);if(m.$$typeof===rt)return D(v,ru(v,m),p);Au(v,m)}return null}function S(v,m,p,z){var X=m!==null?m.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return X!==null?null:o(v,m,""+p,z);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ct:return p.key===X?h(v,m,p,z):null;case gt:return p.key===X?b(v,m,p,z):null;case K:return X=p._init,p=X(p._payload),S(v,m,p,z)}if(Mt(p)||I(p))return X!==null?null:R(v,m,p,z,null);if(typeof p.then=="function")return S(v,m,Tu(p),z);if(p.$$typeof===rt)return S(v,m,ru(v,p),z);Au(v,p)}return null}function _(v,m,p,z,X){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return v=v.get(p)||null,o(m,v,""+z,X);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case ct:return v=v.get(z.key===null?p:z.key)||null,h(m,v,z,X);case gt:return v=v.get(z.key===null?p:z.key)||null,b(m,v,z,X);case K:var it=z._init;return z=it(z._payload),_(v,m,p,z,X)}if(Mt(z)||I(z))return v=v.get(p)||null,R(m,v,z,X,null);if(typeof z.then=="function")return _(v,m,p,Tu(z),X);if(z.$$typeof===rt)return _(v,m,p,ru(m,z),X);Au(m,z)}return null}function F(v,m,p,z){for(var X=null,it=null,V=m,$=m=0,kt=null;V!==null&&$<p.length;$++){V.index>$?(kt=V,V=null):kt=V.sibling;var vt=S(v,V,p[$],z);if(vt===null){V===null&&(V=kt);break}t&&V&&vt.alternate===null&&e(v,V),m=u(vt,m,$),it===null?X=vt:it.sibling=vt,it=vt,V=kt}if($===p.length)return l(v,V),bt&&Xl(v,$),X;if(V===null){for(;$<p.length;$++)V=D(v,p[$],z),V!==null&&(m=u(V,m,$),it===null?X=V:it.sibling=V,it=V);return bt&&Xl(v,$),X}for(V=n(V);$<p.length;$++)kt=_(V,v,$,p[$],z),kt!==null&&(t&&kt.alternate!==null&&V.delete(kt.key===null?$:kt.key),m=u(kt,m,$),it===null?X=kt:it.sibling=kt,it=kt);return t&&V.forEach(function(Nl){return e(v,Nl)}),bt&&Xl(v,$),X}function k(v,m,p,z){if(p==null)throw Error(s(151));for(var X=null,it=null,V=m,$=m=0,kt=null,vt=p.next();V!==null&&!vt.done;$++,vt=p.next()){V.index>$?(kt=V,V=null):kt=V.sibling;var Nl=S(v,V,vt.value,z);if(Nl===null){V===null&&(V=kt);break}t&&V&&Nl.alternate===null&&e(v,V),m=u(Nl,m,$),it===null?X=Nl:it.sibling=Nl,it=Nl,V=kt}if(vt.done)return l(v,V),bt&&Xl(v,$),X;if(V===null){for(;!vt.done;$++,vt=p.next())vt=D(v,vt.value,z),vt!==null&&(m=u(vt,m,$),it===null?X=vt:it.sibling=vt,it=vt);return bt&&Xl(v,$),X}for(V=n(V);!vt.done;$++,vt=p.next())vt=_(V,v,$,vt.value,z),vt!==null&&(t&&vt.alternate!==null&&V.delete(vt.key===null?$:vt.key),m=u(vt,m,$),it===null?X=vt:it.sibling=vt,it=vt);return t&&V.forEach(function(Rm){return e(v,Rm)}),bt&&Xl(v,$),X}function Ot(v,m,p,z){if(typeof p=="object"&&p!==null&&p.type===Ct&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ct:t:{for(var X=p.key;m!==null;){if(m.key===X){if(X=p.type,X===Ct){if(m.tag===7){l(v,m.sibling),z=a(m,p.props.children),z.return=v,v=z;break t}}else if(m.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===K&&Xr(X)===m.type){l(v,m.sibling),z=a(m,p.props),va(z,p),z.return=v,v=z;break t}l(v,m);break}else e(v,m);m=m.sibling}p.type===Ct?(z=jl(p.props.children,v.mode,z,p.key),z.return=v,v=z):(z=iu(p.type,p.key,p.props,null,v.mode,z),va(z,p),z.return=v,v=z)}return f(v);case gt:t:{for(X=p.key;m!==null;){if(m.key===X)if(m.tag===4&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){l(v,m.sibling),z=a(m,p.children||[]),z.return=v,v=z;break t}else{l(v,m);break}else e(v,m);m=m.sibling}z=Gi(p,v.mode,z),z.return=v,v=z}return f(v);case K:return X=p._init,p=X(p._payload),Ot(v,m,p,z)}if(Mt(p))return F(v,m,p,z);if(I(p)){if(X=I(p),typeof X!="function")throw Error(s(150));return p=X.call(p),k(v,m,p,z)}if(typeof p.then=="function")return Ot(v,m,Tu(p),z);if(p.$$typeof===rt)return Ot(v,m,ru(v,p),z);Au(v,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,m!==null&&m.tag===6?(l(v,m.sibling),z=a(m,p),z.return=v,v=z):(l(v,m),z=Xi(p,v.mode,z),z.return=v,v=z),f(v)):l(v,m)}return function(v,m,p,z){try{ga=0;var X=Ot(v,m,p,z);return An=null,X}catch(V){if(V===ca||V===hu)throw V;var it=me(29,V,null,v.mode);return it.lanes=z,it.return=v,it}finally{}}}var Rn=Gr(!0),Qr=Gr(!1),De=x(null),je=null;function ml(t){var e=t.alternate;H(Vt,Vt.current&1),H(De,t),je===null&&(e===null||Sn.current!==null||e.memoizedState!==null)&&(je=t)}function Vr(t){if(t.tag===22){if(H(Vt,Vt.current),H(De,t),je===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(je=t)}}else gl()}function gl(){H(Vt,Vt.current),H(De,De.current)}function tl(t){j(De),je===t&&(je=null),j(Vt)}var Vt=x(0);function Ru(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||rs(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function _c(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Ec={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=be(),a=hl(n);a.payload=e,l!=null&&(a.callback=l),e=dl(t,a,n),e!==null&&(Se(e,t,n),fa(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=be(),a=hl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=dl(t,a,n),e!==null&&(Se(e,t,n),fa(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=be(),n=hl(l);n.tag=2,e!=null&&(n.callback=e),e=dl(t,n,l),e!==null&&(Se(e,t,l),fa(e,t,l))}};function Zr(t,e,l,n,a,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,f):e.prototype&&e.prototype.isPureReactComponent?!In(l,n)||!In(a,u):!0}function Kr(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&Ec.enqueueReplaceState(e,e.state,null)}function kl(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}var Ou=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 Jr(t){Ou(t)}function kr(t){console.error(t)}function $r(t){Ou(t)}function zu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Wr(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Tc(t,e,l){return l=hl(l),l.tag=3,l.payload={element:null},l.callback=function(){zu(t,e)},l}function Fr(t){return t=hl(t),t.tag=3,t}function Pr(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){Wr(e,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Wr(e,l,n),typeof a!="function"&&(El===null?El=new Set([this]):El.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})})}function Ry(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&aa(e,l,a,!0),l=De.current,l!==null){switch(l.tag){case 13:return je===null?Jc():l.alternate===null&&Ht===0&&(Ht=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Pi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),$c(t,n,a)),!1;case 22:return l.flags|=65536,n===Pi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),$c(t,n,a)),!1}throw Error(s(435,l.tag))}return $c(t,n,a),Jc(),!1}if(bt)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Zi&&(t=Error(s(422),{cause:n}),na(Ae(t,l)))):(n!==Zi&&(e=Error(s(423),{cause:n}),na(Ae(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Ae(n,l),a=Tc(t.stateNode,n,a),ec(t,a),Ht!==4&&(Ht=2)),!1;var u=Error(s(520),{cause:n});if(u=Ae(u,l),Aa===null?Aa=[u]:Aa.push(u),Ht!==4&&(Ht=2),e===null)return!0;n=Ae(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=Tc(l.stateNode,n,t),ec(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(El===null||!El.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Fr(a),Pr(a,t,l,n),ec(l,a),!1}l=l.return}while(l!==null);return!1}var Ir=Error(s(461)),Kt=!1;function Ft(t,e,l,n){e.child=t===null?Qr(e,null,l,n):Rn(e,t.child,l,n)}function to(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var f={};for(var o in n)o!=="ref"&&(f[o]=n[o])}else f=n;return Zl(e),n=ic(t,e,l,f,u,a),o=cc(),t!==null&&!Kt?(sc(t,e,a),el(t,e,a)):(bt&&o&&Qi(e),e.flags|=1,Ft(t,e,n,a),e.child)}function eo(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!Li(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,lo(t,e,u,n,a)):(t=iu(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Uc(t,a)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:In,l(f,n)&&t.ref===e.ref)return el(t,e,a)}return e.flags|=1,t=ke(u,n),t.ref=e.ref,t.return=e,e.child=t}function lo(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(In(u,n)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=n=u,Uc(t,a))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,el(t,e,a)}return Ac(t,e,l,n,a)}function no(t,e,l){var n=e.pendingProps,a=n.children,u=t!==null?t.memoizedState:null;if(n.mode==="hidden"){if((e.flags&128)!==0){if(n=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;e.childLanes=u&~n}else e.childLanes=0,e.child=null;return ao(t,e,n,l)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ou(e,u!==null?u.cachePool:null),u!==null?lr(e,u):nc(),Vr(e);else return e.lanes=e.childLanes=536870912,ao(t,e,u!==null?u.baseLanes|l:l,l)}else u!==null?(ou(e,u.cachePool),lr(e,u),gl(),e.memoizedState=null):(t!==null&&ou(e,null),nc(),gl());return Ft(t,e,a,l),e.child}function ao(t,e,l,n){var a=Fi();return a=a===null?null:{parent:Qt._currentValue,pool:a},e.memoizedState={baseLanes:l,cachePool:a},t!==null&&ou(e,null),nc(),Vr(e),t!==null&&aa(t,e,n,!0),null}function Du(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Ac(t,e,l,n,a){return Zl(e),l=ic(t,e,l,n,void 0,a),n=cc(),t!==null&&!Kt?(sc(t,e,a),el(t,e,a)):(bt&&n&&Qi(e),e.flags|=1,Ft(t,e,l,a),e.child)}function uo(t,e,l,n,a,u){return Zl(e),e.updateQueue=null,l=ar(e,n,l,a),nr(t),n=cc(),t!==null&&!Kt?(sc(t,e,u),el(t,e,u)):(bt&&n&&Qi(e),e.flags|=1,Ft(t,e,l,u),e.child)}function io(t,e,l,n,a){if(Zl(e),e.stateNode===null){var u=mn,f=l.contextType;typeof f=="object"&&f!==null&&(u=ee(f)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ec,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},Ii(e),f=l.contextType,u.context=typeof f=="object"&&f!==null?ee(f):mn,u.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(_c(e,l,f,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Ec.enqueueReplaceState(u,u.state,null),oa(e,n,u,a),ra(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,h=kl(l,o);u.props=h;var b=u.context,R=l.contextType;f=mn,typeof R=="object"&&R!==null&&(f=ee(R));var D=l.getDerivedStateFromProps;R=typeof D=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||b!==f)&&Kr(e,u,n,f),ol=!1;var S=e.memoizedState;u.state=S,oa(e,n,u,a),ra(),b=e.memoizedState,o||S!==b||ol?(typeof D=="function"&&(_c(e,l,D,n),b=e.memoizedState),(h=ol||Zr(e,l,h,n,S,b,f))?(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=n,e.memoizedState=b),u.props=n,u.state=b,u.context=f,n=h):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,tc(t,e),f=e.memoizedProps,R=kl(l,f),u.props=R,D=e.pendingProps,S=u.context,b=l.contextType,h=mn,typeof b=="object"&&b!==null&&(h=ee(b)),o=l.getDerivedStateFromProps,(b=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==D||S!==h)&&Kr(e,u,n,h),ol=!1,S=e.memoizedState,u.state=S,oa(e,n,u,a),ra();var _=e.memoizedState;f!==D||S!==_||ol||t!==null&&t.dependencies!==null&&fu(t.dependencies)?(typeof o=="function"&&(_c(e,l,o,n),_=e.memoizedState),(R=ol||Zr(e,l,R,n,S,_,h)||t!==null&&t.dependencies!==null&&fu(t.dependencies))?(b||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,_,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,_,h)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=_),u.props=n,u.state=_,u.context=h,n=R):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Du(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=Rn(e,t.child,null,a),e.child=Rn(e,null,l,a)):Ft(t,e,l,a),e.memoizedState=u.state,t=e.child):t=el(t,e,a),t}function co(t,e,l,n){return la(),e.flags|=256,Ft(t,e,l,n),e.child}var Rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(t){return{baseLanes:t,cachePool:kf()}}function zc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Me),t}function so(t,e,l){var n=e.pendingProps,a=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Vt.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(a?ml(e):gl(),bt){var o=qt,h;if(h=o){t:{for(h=o,o=Ye;h.nodeType!==8;){if(!o){o=null;break t}if(h=Be(h.nextSibling),h===null){o=null;break t}}o=h}o!==null?(e.memoizedState={dehydrated:o,treeContext:Ll!==null?{id:$e,overflow:We}:null,retryLane:536870912,hydrationErrors:null},h=me(18,null,null,0),h.stateNode=o,h.return=e,e.child=h,ue=e,qt=null,h=!0):h=!1}h||Ql(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return rs(o)?e.lanes=32:e.lanes=536870912,null;tl(e)}return o=n.children,n=n.fallback,a?(gl(),a=e.mode,o=Mu({mode:"hidden",children:o},a),n=jl(n,a,l,null),o.return=e,n.return=e,o.sibling=n,e.child=o,a=e.child,a.memoizedState=Oc(l),a.childLanes=zc(t,f,l),e.memoizedState=Rc,n):(ml(e),Dc(e,o))}if(h=t.memoizedState,h!==null&&(o=h.dehydrated,o!==null)){if(u)e.flags&256?(ml(e),e.flags&=-257,e=Mc(t,e,l)):e.memoizedState!==null?(gl(),e.child=t.child,e.flags|=128,e=null):(gl(),a=n.fallback,o=e.mode,n=Mu({mode:"visible",children:n.children},o),a=jl(a,o,l,null),a.flags|=2,n.return=e,a.return=e,n.sibling=a,e.child=n,Rn(e,t.child,null,l),n=e.child,n.memoizedState=Oc(l),n.childLanes=zc(t,f,l),e.memoizedState=Rc,e=a);else if(ml(e),rs(o)){if(f=o.nextSibling&&o.nextSibling.dataset,f)var b=f.dgst;f=b,n=Error(s(419)),n.stack="",n.digest=f,na({value:n,source:null,stack:null}),e=Mc(t,e,l)}else if(Kt||aa(t,e,l,!1),f=(l&t.childLanes)!==0,Kt||f){if(f=Dt,f!==null&&(n=l&-l,n=(n&42)!==0?1:oi(n),n=(n&(f.suspendedLanes|l))!==0?0:n,n!==0&&n!==h.retryLane))throw h.retryLane=n,yn(t,n),Se(f,t,n),Ir;o.data==="$?"||Jc(),e=Mc(t,e,l)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,qt=Be(o.nextSibling),ue=e,bt=!0,Gl=null,Ye=!1,t!==null&&(Oe[ze++]=$e,Oe[ze++]=We,Oe[ze++]=Ll,$e=t.id,We=t.overflow,Ll=e),e=Dc(e,n.children),e.flags|=4096);return e}return a?(gl(),a=n.fallback,o=e.mode,h=t.child,b=h.sibling,n=ke(h,{mode:"hidden",children:n.children}),n.subtreeFlags=h.subtreeFlags&65011712,b!==null?a=ke(b,a):(a=jl(a,o,l,null),a.flags|=2),a.return=e,n.return=e,n.sibling=a,e.child=n,n=a,a=e.child,o=t.child.memoizedState,o===null?o=Oc(l):(h=o.cachePool,h!==null?(b=Qt._currentValue,h=h.parent!==b?{parent:b,pool:b}:h):h=kf(),o={baseLanes:o.baseLanes|l,cachePool:h}),a.memoizedState=o,a.childLanes=zc(t,f,l),e.memoizedState=Rc,n):(ml(e),l=t.child,t=l.sibling,l=ke(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function Dc(t,e){return e=Mu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Mu(t,e){return t=me(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Mc(t,e,l){return Rn(e,t.child,null,l),t=Dc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function fo(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ji(t.return,e,l)}function Nc(t,e,l,n,a){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=l,u.tailMode=a)}function ro(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;if(Ft(t,e,n.children,l),n=Vt.current,(n&2)!==0)n=n&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fo(t,l,e);else if(t.tag===19)fo(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}switch(H(Vt,n),a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&Ru(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),Nc(e,!1,a,l,u);break;case"backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Ru(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}Nc(e,!0,l,null,u);break;case"together":Nc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function el(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),_l|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(aa(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,l=ke(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ke(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Uc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&fu(t)))}function Oy(t,e,l){switch(e.tag){case 3:L(e,e.stateNode.containerInfo),rl(e,Qt,t.memoizedState.cache),la();break;case 27:case 5:G(e);break;case 4:L(e,e.stateNode.containerInfo);break;case 10:rl(e,e.type,e.memoizedProps.value);break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(ml(e),e.flags|=128,null):(l&e.child.childLanes)!==0?so(t,e,l):(ml(e),t=el(t,e,l),t!==null?t.sibling:null);ml(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(aa(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return ro(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),H(Vt,Vt.current),n)break;return null;case 22:case 23:return e.lanes=0,no(t,e,l);case 24:rl(e,Qt,t.memoizedState.cache)}return el(t,e,l)}function oo(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Uc(t,l)&&(e.flags&128)===0)return Kt=!1,Oy(t,e,l);Kt=(t.flags&131072)!==0}else Kt=!1,bt&&(e.flags&1048576)!==0&&Xf(e,su,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var n=e.elementType,a=n._init;if(n=a(n._payload),e.type=n,typeof n=="function")Li(n)?(t=kl(n,t),e.tag=1,e=io(null,e,n,t,l)):(e.tag=0,e=Ac(null,e,n,t,l));else{if(n!=null){if(a=n.$$typeof,a===ae){e.tag=11,e=to(null,e,n,t,l);break t}else if(a===lt){e.tag=14,e=eo(null,e,n,t,l);break t}}throw e=St(n)||n,Error(s(306,e,""))}}return e;case 0:return Ac(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=kl(n,e.pendingProps),io(t,e,n,a,l);case 3:t:{if(L(e,e.stateNode.containerInfo),t===null)throw Error(s(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,tc(t,e),oa(e,n,null,l);var f=e.memoizedState;if(n=f.cache,rl(e,Qt,n),n!==u.cache&&ki(e,[Qt],l,!0),ra(),n=f.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=co(t,e,n,l);break t}else if(n!==a){a=Ae(Error(s(424)),e),na(a),e=co(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(qt=Be(t.firstChild),ue=e,bt=!0,Gl=null,Ye=!0,l=Qr(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(la(),n===a){e=el(t,e,l);break t}Ft(t,e,n,l)}e=e.child}return e;case 26:return Du(t,e),t===null?(l=gh(e.type,null,e.pendingProps,null))?e.memoizedState=l:bt||(l=e.type,t=e.pendingProps,n=Qu(q.current).createElement(l),n[te]=e,n[ie]=t,It(n,l,t),Zt(n),e.stateNode=n):e.memoizedState=gh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return G(e),t===null&&bt&&(n=e.stateNode=dh(e.type,e.pendingProps,q.current),ue=e,Ye=!0,a=qt,Rl(e.type)?(os=a,qt=Be(n.firstChild)):qt=a),Ft(t,e,e.pendingProps.children,l),Du(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((a=n=qt)&&(n=tm(n,e.type,e.pendingProps,Ye),n!==null?(e.stateNode=n,ue=e,qt=Be(n.firstChild),Ye=!1,a=!0):a=!1),a||Ql(e)),G(e),a=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,n=u.children,cs(a,u)?n=null:f!==null&&cs(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=ic(t,e,py,null,null,l),Ca._currentValue=a),Du(t,e),Ft(t,e,n,l),e.child;case 6:return t===null&&bt&&((t=l=qt)&&(l=em(l,e.pendingProps,Ye),l!==null?(e.stateNode=l,ue=e,qt=null,t=!0):t=!1),t||Ql(e)),null;case 13:return so(t,e,l);case 4:return L(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Rn(e,null,n,l):Ft(t,e,n,l),e.child;case 11:return to(t,e,e.type,e.pendingProps,l);case 7:return Ft(t,e,e.pendingProps,l),e.child;case 8:return Ft(t,e,e.pendingProps.children,l),e.child;case 12:return Ft(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,rl(e,e.type,n.value),Ft(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,Zl(e),a=ee(a),n=n(a),e.flags|=1,Ft(t,e,n,l),e.child;case 14:return eo(t,e,e.type,e.pendingProps,l);case 15:return lo(t,e,e.type,e.pendingProps,l);case 19:return ro(t,e,l);case 31:return n=e.pendingProps,l=e.mode,n={mode:n.mode,children:n.children},t===null?(l=Mu(n,l),l.ref=e.ref,e.child=l,l.return=e,e=l):(l=ke(t.child,n),l.ref=e.ref,e.child=l,l.return=e,e=l),e;case 22:return no(t,e,l);case 24:return Zl(e),n=ee(Qt),t===null?(a=Fi(),a===null&&(a=Dt,u=$i(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},Ii(e),rl(e,Qt,a)):((t.lanes&l)!==0&&(tc(t,e),oa(e,null,null,l),ra()),a=t.memoizedState,u=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),rl(e,Qt,n)):(n=u.cache,rl(e,Qt,n),n!==a.cache&&ki(e,[Qt],l,!0))),Ft(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function ll(t){t.flags|=4}function ho(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_h(e)){if(e=De.current,e!==null&&((yt&4194048)===yt?je!==null:(yt&62914560)!==yt&&(yt&536870912)===0||e!==je))throw sa=Pi,$f;t.flags|=8192}}function Nu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Qs():536870912,t.lanes|=e,Mn|=e)}function pa(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function xt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function zy(t,e,l){var n=e.pendingProps;switch(Vi(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(e),null;case 1:return xt(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Pe(Qt),Q(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ea(e)?ll(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Vf())),xt(e),null;case 26:return l=e.memoizedState,t===null?(ll(e),l!==null?(xt(e),ho(e,l)):(xt(e),e.flags&=-16777217)):l?l!==t.memoizedState?(ll(e),xt(e),ho(e,l)):(xt(e),e.flags&=-16777217):(t.memoizedProps!==n&&ll(e),xt(e),e.flags&=-16777217),null;case 27:P(e),l=q.current;var a=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ll(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return xt(e),null}t=y.current,ea(e)?Gf(e):(t=dh(a,n,l),e.stateNode=t,ll(e))}return xt(e),null;case 5:if(P(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ll(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return xt(e),null}if(t=y.current,ea(e))Gf(e);else{switch(a=Qu(q.current),t){case 1:t=a.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=a.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof n.is=="string"?a.createElement("select",{is:n.is}):a.createElement("select"),n.multiple?t.multiple=!0:n.size&&(t.size=n.size);break;default:t=typeof n.is=="string"?a.createElement(l,{is:n.is}):a.createElement(l)}}t[te]=e,t[ie]=n;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=t;t:switch(It(t,l,n),l){case"button":case"input":case"select":case"textarea":t=!!n.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&ll(e)}}return xt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&ll(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(s(166));if(t=q.current,ea(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=ue,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[te]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||ih(t.nodeValue,l)),t||Ql(e)}else t=Qu(t).createTextNode(n),t[te]=e,e.stateNode=t}return xt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=ea(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[te]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;xt(e),a=!1}else a=Vf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(tl(e),e):(tl(e),null)}if(tl(e),(e.flags&128)!==0)return e.lanes=l,e;if(l=n!==null,t=t!==null&&t.memoizedState!==null,l){n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool);var u=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)}return l!==t&&l&&(e.child.flags|=8192),Nu(e,e.updateQueue),xt(e),null;case 4:return Q(),t===null&&ls(e.stateNode.containerInfo),xt(e),null;case 10:return Pe(e.type),xt(e),null;case 19:if(j(Vt),a=e.memoizedState,a===null)return xt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)pa(a,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ru(t),u!==null){for(e.flags|=128,pa(a,!1),t=u.updateQueue,e.updateQueue=t,Nu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Lf(l,t),l=l.sibling;return H(Vt,Vt.current&1|2),e.child}t=t.sibling}a.tail!==null&&Bt()>Cu&&(e.flags|=128,n=!0,pa(a,!1),e.lanes=4194304)}else{if(!n)if(t=Ru(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Nu(e,t),pa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!bt)return xt(e),null}else 2*Bt()-a.renderingStartTime>Cu&&l!==536870912&&(e.flags|=128,n=!0,pa(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=Bt(),e.sibling=null,t=Vt.current,H(Vt,n?t&1|2:t&1),e):(xt(e),null);case 22:case 23:return tl(e),ac(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(xt(e),e.subtreeFlags&6&&(e.flags|=8192)):xt(e),l=e.updateQueue,l!==null&&Nu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&j(Kl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Pe(Qt),xt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Dy(t,e){switch(Vi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pe(Qt),Q(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return P(e),null;case 13:if(tl(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Vt),null;case 4:return Q(),null;case 10:return Pe(e.type),null;case 22:case 23:return tl(e),ac(),t!==null&&j(Kl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Pe(Qt),null;case 25:return null;default:return null}}function yo(t,e){switch(Vi(e),e.tag){case 3:Pe(Qt),Q();break;case 26:case 27:case 5:P(e);break;case 4:Q();break;case 13:tl(e);break;case 19:j(Vt);break;case 10:Pe(e.type);break;case 22:case 23:tl(e),ac(),t!==null&&j(Kl);break;case 24:Pe(Qt)}}function ba(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var u=l.create,f=l.inst;n=u(),f.destroy=n}l=l.next}while(l!==a)}}catch(o){zt(e,e.return,o)}}function vl(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var f=n.inst,o=f.destroy;if(o!==void 0){f.destroy=void 0,a=e;var h=l,b=o;try{b()}catch(R){zt(a,h,R)}}}n=n.next}while(n!==u)}}catch(R){zt(e,e.return,R)}}function mo(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{er(e,l)}catch(n){zt(t,t.return,n)}}}function go(t,e,l){l.props=kl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){zt(t,e,n)}}function Sa(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){zt(t,e,a)}}function Le(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){zt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){zt(t,e,a)}else l.current=null}function vo(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){zt(t,t.return,a)}}function xc(t,e,l){try{var n=t.stateNode;$y(n,t.type,l,e),n[ie]=e}catch(a){zt(t,t.return,a)}}function po(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Rl(t.type)||t.tag===4}function Cc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||po(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&&Rl(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 Bc(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Gu));else if(n!==4&&(n===27&&Rl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Bc(t,e,l),t=t.sibling;t!==null;)Bc(t,e,l),t=t.sibling}function Uu(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Rl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Uu(t,e,l),t=t.sibling;t!==null;)Uu(t,e,l),t=t.sibling}function bo(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);It(e,n,l),e[te]=t,e[ie]=l}catch(u){zt(t,t.return,u)}}var nl=!1,Yt=!1,qc=!1,So=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function My(t,e){if(t=t.containerInfo,us=$u,t=Nf(t),Ci(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var f=0,o=-1,h=-1,b=0,R=0,D=t,S=null;e:for(;;){for(var _;D!==l||a!==0&&D.nodeType!==3||(o=f+a),D!==u||n!==0&&D.nodeType!==3||(h=f+n),D.nodeType===3&&(f+=D.nodeValue.length),(_=D.firstChild)!==null;)S=D,D=_;for(;;){if(D===t)break e;if(S===l&&++b===a&&(o=f),S===u&&++R===n&&(h=f),(_=D.nextSibling)!==null)break;D=S,S=D.parentNode}D=_}l=o===-1||h===-1?null:{start:o,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(is={focusedElem:t,selectionRange:l},$u=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var F=kl(l.type,a,l.elementType===l.type);t=n.getSnapshotBeforeUpdate(F,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(k){zt(l,l.return,k)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)fs(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":fs(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,Jt=t;break}Jt=e.return}}function _o(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:pl(t,l),n&4&&ba(5,l);break;case 1:if(pl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){zt(l,l.return,f)}else{var a=kl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){zt(l,l.return,f)}}n&64&&mo(l),n&512&&Sa(l,l.return);break;case 3:if(pl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{er(t,e)}catch(f){zt(l,l.return,f)}}break;case 27:e===null&&n&4&&bo(l);case 26:case 5:pl(t,l),e===null&&n&4&&vo(l),n&512&&Sa(l,l.return);break;case 12:pl(t,l);break;case 13:pl(t,l),n&4&&Ao(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Yy.bind(null,l),lm(t,l))));break;case 22:if(n=l.memoizedState!==null||nl,!n){e=e!==null&&e.memoizedState!==null||Yt,a=nl;var u=Yt;nl=n,(Yt=e)&&!u?bl(t,l,(l.subtreeFlags&8772)!==0):pl(t,l),nl=a,Yt=u}break;case 30:break;default:pl(t,l)}}function Eo(t){var e=t.alternate;e!==null&&(t.alternate=null,Eo(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&yi(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 Nt=null,fe=!1;function al(t,e,l){for(l=l.child;l!==null;)To(t,e,l),l=l.sibling}function To(t,e,l){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(Xn,l)}catch{}switch(l.tag){case 26:Yt||Le(l,e),al(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Yt||Le(l,e);var n=Nt,a=fe;Rl(l.type)&&(Nt=l.stateNode,fe=!1),al(t,e,l),Ma(l.stateNode),Nt=n,fe=a;break;case 5:Yt||Le(l,e);case 6:if(n=Nt,a=fe,Nt=null,al(t,e,l),Nt=n,fe=a,Nt!==null)if(fe)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(l.stateNode)}catch(u){zt(l,e,u)}else try{Nt.removeChild(l.stateNode)}catch(u){zt(l,e,u)}break;case 18:Nt!==null&&(fe?(t=Nt,oh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),wa(t)):oh(Nt,l.stateNode));break;case 4:n=Nt,a=fe,Nt=l.stateNode.containerInfo,fe=!0,al(t,e,l),Nt=n,fe=a;break;case 0:case 11:case 14:case 15:Yt||vl(2,l,e),Yt||vl(4,l,e),al(t,e,l);break;case 1:Yt||(Le(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&go(l,e,n)),al(t,e,l);break;case 21:al(t,e,l);break;case 22:Yt=(n=Yt)||l.memoizedState!==null,al(t,e,l),Yt=n;break;default:al(t,e,l)}}function Ao(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{wa(t)}catch(l){zt(e,e.return,l)}}function Ny(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new So),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new So),e;default:throw Error(s(435,t.tag))}}function Hc(t,e){var l=Ny(t);e.forEach(function(n){var a=jy.bind(null,t,n);l.has(n)||(l.add(n),n.then(a,a))})}function ge(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=t,f=e,o=f;t:for(;o!==null;){switch(o.tag){case 27:if(Rl(o.type)){Nt=o.stateNode,fe=!1;break t}break;case 5:Nt=o.stateNode,fe=!1;break t;case 3:case 4:Nt=o.stateNode.containerInfo,fe=!0;break t}o=o.return}if(Nt===null)throw Error(s(160));To(u,f,a),Nt=null,fe=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Ro(e,t),e=e.sibling}var Ce=null;function Ro(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ge(e,t),ve(t),n&4&&(vl(3,t,t.return),ba(3,t),vl(5,t,t.return));break;case 1:ge(e,t),ve(t),n&512&&(Yt||l===null||Le(l,l.return)),n&64&&nl&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Ce;if(ge(e,t),ve(t),n&512&&(Yt||l===null||Le(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Vn]||u[te]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),It(u,n,l),u[te]=t,Zt(u),n=u;break t;case"link":var f=bh("link","href",a).get(n+(l.href||""));if(f){for(var o=0;o<f.length;o++)if(u=f[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(o,1);break e}}u=a.createElement(n),It(u,n,l),a.head.appendChild(u);break;case"meta":if(f=bh("meta","content",a).get(n+(l.content||""))){for(o=0;o<f.length;o++)if(u=f[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(o,1);break e}}u=a.createElement(n),It(u,n,l),a.head.appendChild(u);break;default:throw Error(s(468,n))}u[te]=t,Zt(u),n=u}t.stateNode=n}else Sh(a,t.type,t.stateNode);else t.stateNode=ph(a,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Sh(a,t.type,t.stateNode):ph(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&xc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ge(e,t),ve(t),n&512&&(Yt||l===null||Le(l,l.return)),l!==null&&n&4&&xc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ge(e,t),ve(t),n&512&&(Yt||l===null||Le(l,l.return)),t.flags&32){a=t.stateNode;try{cn(a,"")}catch(_){zt(t,t.return,_)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,xc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(qc=!0);break;case 6:if(ge(e,t),ve(t),n&4){if(t.stateNode===null)throw Error(s(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(_){zt(t,t.return,_)}}break;case 3:if(Ku=null,a=Ce,Ce=Vu(e.containerInfo),ge(e,t),Ce=a,ve(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{wa(e.containerInfo)}catch(_){zt(t,t.return,_)}qc&&(qc=!1,Oo(t));break;case 4:n=Ce,Ce=Vu(t.stateNode.containerInfo),ge(e,t),ve(t),Ce=n;break;case 12:ge(e,t),ve(t);break;case 13:ge(e,t),ve(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gc=Bt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Hc(t,n)));break;case 22:a=t.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,b=nl,R=Yt;if(nl=b||a,Yt=R||h,ge(e,t),Yt=R,nl=b,ve(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||h||nl||Yt||$l(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){h=l=e;try{if(u=h.stateNode,a)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{o=h.stateNode;var D=h.memoizedProps.style,S=D!=null&&D.hasOwnProperty("display")?D.display:null;o.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(_){zt(h,h.return,_)}}}else if(e.tag===6){if(l===null){h=e;try{h.stateNode.nodeValue=a?"":h.memoizedProps}catch(_){zt(h,h.return,_)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Hc(t,l))));break;case 19:ge(e,t),ve(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Hc(t,n)));break;case 30:break;case 21:break;default:ge(e,t),ve(t)}}function ve(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(po(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var a=l.stateNode,u=Cc(t);Uu(t,u,a);break;case 5:var f=l.stateNode;l.flags&32&&(cn(f,""),l.flags&=-33);var o=Cc(t);Uu(t,o,f);break;case 3:case 4:var h=l.stateNode.containerInfo,b=Cc(t);Bc(t,b,h);break;default:throw Error(s(161))}}catch(R){zt(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Oo(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Oo(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function pl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)_o(t,e.alternate,e),e=e.sibling}function $l(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:vl(4,e,e.return),$l(e);break;case 1:Le(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&go(e,e.return,l),$l(e);break;case 27:Ma(e.stateNode);case 26:case 5:Le(e,e.return),$l(e);break;case 22:e.memoizedState===null&&$l(e);break;case 30:$l(e);break;default:$l(e)}t=t.sibling}}function bl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:bl(a,u,l),ba(4,u);break;case 1:if(bl(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(b){zt(n,n.return,b)}if(n=u,a=n.updateQueue,a!==null){var o=n.stateNode;try{var h=a.shared.hiddenCallbacks;if(h!==null)for(a.shared.hiddenCallbacks=null,a=0;a<h.length;a++)tr(h[a],o)}catch(b){zt(n,n.return,b)}}l&&f&64&&mo(u),Sa(u,u.return);break;case 27:bo(u);case 26:case 5:bl(a,u,l),l&&n===null&&f&4&&vo(u),Sa(u,u.return);break;case 12:bl(a,u,l);break;case 13:bl(a,u,l),l&&f&4&&Ao(a,u);break;case 22:u.memoizedState===null&&bl(a,u,l),Sa(u,u.return);break;case 30:break;default:bl(a,u,l)}e=e.sibling}}function wc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ua(l))}function Yc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ua(t))}function Xe(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zo(t,e,l,n),e=e.sibling}function zo(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,l,n),a&2048&&ba(9,e);break;case 1:Xe(t,e,l,n);break;case 3:Xe(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ua(t)));break;case 12:if(a&2048){Xe(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,o=u.onPostCommit;typeof o=="function"&&o(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){zt(e,e.return,h)}}else Xe(t,e,l,n);break;case 13:Xe(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?Xe(t,e,l,n):_a(t,e):u._visibility&2?Xe(t,e,l,n):(u._visibility|=2,On(t,e,l,n,(e.subtreeFlags&10256)!==0)),a&2048&&wc(f,e);break;case 24:Xe(t,e,l,n),a&2048&&Yc(e.alternate,e);break;default:Xe(t,e,l,n)}}function On(t,e,l,n,a){for(a=a&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,f=e,o=l,h=n,b=f.flags;switch(f.tag){case 0:case 11:case 15:On(u,f,o,h,a),ba(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?On(u,f,o,h,a):_a(u,f):(R._visibility|=2,On(u,f,o,h,a)),a&&b&2048&&wc(f.alternate,f);break;case 24:On(u,f,o,h,a),a&&b&2048&&Yc(f.alternate,f);break;default:On(u,f,o,h,a)}e=e.sibling}}function _a(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:_a(l,n),a&2048&&wc(n.alternate,n);break;case 24:_a(l,n),a&2048&&Yc(n.alternate,n);break;default:_a(l,n)}e=e.sibling}}var Ea=8192;function zn(t){if(t.subtreeFlags&Ea)for(t=t.child;t!==null;)Do(t),t=t.sibling}function Do(t){switch(t.tag){case 26:zn(t),t.flags&Ea&&t.memoizedState!==null&&mm(Ce,t.memoizedState,t.memoizedProps);break;case 5:zn(t);break;case 3:case 4:var e=Ce;Ce=Vu(t.stateNode.containerInfo),zn(t),Ce=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Ea,Ea=16777216,zn(t),Ea=e):zn(t));break;default:zn(t)}}function Mo(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 Ta(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Jt=n,Uo(n,t)}Mo(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)No(t),t=t.sibling}function No(t){switch(t.tag){case 0:case 11:case 15:Ta(t),t.flags&2048&&vl(9,t,t.return);break;case 3:Ta(t);break;case 12:Ta(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,xu(t)):Ta(t);break;default:Ta(t)}}function xu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Jt=n,Uo(n,t)}Mo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:vl(8,e,e.return),xu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,xu(e));break;default:xu(e)}t=t.sibling}}function Uo(t,e){for(;Jt!==null;){var l=Jt;switch(l.tag){case 0:case 11:case 15:vl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ua(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Jt=n;else t:for(l=t;Jt!==null;){n=Jt;var a=n.sibling,u=n.return;if(Eo(n),n===l){Jt=null;break t}if(a!==null){a.return=u,Jt=a;break t}Jt=u}}}var Uy={getCacheForType:function(t){var e=ee(Qt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l}},xy=typeof WeakMap=="function"?WeakMap:Map,_t=0,Dt=null,st=null,yt=0,Et=0,pe=null,Sl=!1,Dn=!1,jc=!1,ul=0,Ht=0,_l=0,Wl=0,Lc=0,Me=0,Mn=0,Aa=null,re=null,Xc=!1,Gc=0,Cu=1/0,Bu=null,El=null,Pt=0,Tl=null,Nn=null,Un=0,Qc=0,Vc=null,xo=null,Ra=0,Zc=null;function be(){if((_t&2)!==0&&yt!==0)return yt&-yt;if(A.T!==null){var t=pn;return t!==0?t:Pc()}return Ks()}function Co(){Me===0&&(Me=(yt&536870912)===0||bt?Gs():536870912);var t=De.current;return t!==null&&(t.flags|=32),Me}function Se(t,e,l){(t===Dt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(xn(t,0),Al(t,yt,Me,!1)),Qn(t,l),((_t&2)===0||t!==Dt)&&(t===Dt&&((_t&2)===0&&(Wl|=l),Ht===4&&Al(t,yt,Me,!1)),Ge(t))}function Bo(t,e,l){if((_t&6)!==0)throw Error(s(327));var n=!l&&(e&124)===0&&(e&t.expiredLanes)===0||Gn(t,e),a=n?qy(t,e):kc(t,e,!0),u=n;do{if(a===0){Dn&&!n&&Al(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!Cy(l)){a=kc(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var o=t;a=Aa;var h=o.current.memoizedState.isDehydrated;if(h&&(xn(o,f).flags|=256),f=kc(o,f,!1),f!==2){if(jc&&!h){o.errorRecoveryDisabledLanes|=u,Wl|=u,a=4;break t}u=re,re=a,u!==null&&(re===null?re=u:re.push.apply(re,u))}a=f}if(u=!1,a!==2)continue}}if(a===1){xn(t,0),Al(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Al(n,e,Me,!Sl);break t;case 2:re=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=Gc+300-Bt(),10<a)){if(Al(n,e,Me,!Sl),Za(n,0,!0)!==0)break t;n.timeoutHandle=fh(qo.bind(null,n,l,re,Bu,Xc,e,Me,Wl,Mn,Sl,u,2,-0,0),a);break t}qo(n,l,re,Bu,Xc,e,Me,Wl,Mn,Sl,u,0,-0,0)}}break}while(!0);Ge(t)}function qo(t,e,l,n,a,u,f,o,h,b,R,D,S,_){if(t.timeoutHandle=-1,D=e.subtreeFlags,(D&8192||(D&16785408)===16785408)&&(xa={stylesheets:null,count:0,unsuspend:ym},Do(e),D=gm(),D!==null)){t.cancelPendingCommit=D(Go.bind(null,t,e,u,l,n,a,f,o,h,R,1,S,_)),Al(t,u,f,!b);return}Go(t,e,u,l,n,a,f,o,h)}function Cy(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!ye(u(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Al(t,e,l,n){e&=~Lc,e&=~Wl,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-de(a),f=1<<u;n[u]=-1,a&=~f}l!==0&&Vs(t,l,e)}function qu(){return(_t&6)===0?(Oa(0),!1):!0}function Kc(){if(st!==null){if(Et===0)var t=st.return;else t=st,Fe=Vl=null,fc(t),An=null,ga=0,t=st;for(;t!==null;)yo(t.alternate,t),t=t.return;st=null}}function xn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Fy(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Kc(),Dt=t,st=l=ke(t.current,null),yt=e,Et=0,pe=null,Sl=!1,Dn=Gn(t,e),jc=!1,Mn=Me=Lc=Wl=_l=Ht=0,re=Aa=null,Xc=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-de(n),u=1<<a;e|=t[a],n&=~u}return ul=e,nu(),l}function Ho(t,e){ut=null,A.H=Eu,e===ca||e===hu?(e=Pf(),Et=3):e===$f?(e=Pf(),Et=4):Et=e===Ir?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,pe=e,st===null&&(Ht=1,zu(t,Ae(e,t.current)))}function wo(){var t=A.H;return A.H=Eu,t===null?Eu:t}function Yo(){var t=A.A;return A.A=Uy,t}function Jc(){Ht=4,Sl||(yt&4194048)!==yt&&De.current!==null||(Dn=!0),(_l&134217727)===0&&(Wl&134217727)===0||Dt===null||Al(Dt,yt,Me,!1)}function kc(t,e,l){var n=_t;_t|=2;var a=wo(),u=Yo();(Dt!==t||yt!==e)&&(Bu=null,xn(t,e)),e=!1;var f=Ht;t:do try{if(Et!==0&&st!==null){var o=st,h=pe;switch(Et){case 8:Kc(),f=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var b=Et;if(Et=0,pe=null,Cn(t,o,h,b),l&&Dn){f=0;break t}break;default:b=Et,Et=0,pe=null,Cn(t,o,h,b)}}By(),f=Ht;break}catch(R){Ho(t,R)}while(!0);return e&&t.shellSuspendCounter++,Fe=Vl=null,_t=n,A.H=a,A.A=u,st===null&&(Dt=null,yt=0,nu()),f}function By(){for(;st!==null;)jo(st)}function qy(t,e){var l=_t;_t|=2;var n=wo(),a=Yo();Dt!==t||yt!==e?(Bu=null,Cu=Bt()+500,xn(t,e)):Dn=Gn(t,e);t:do try{if(Et!==0&&st!==null){e=st;var u=pe;e:switch(Et){case 1:Et=0,pe=null,Cn(t,e,u,1);break;case 2:case 9:if(Wf(u)){Et=0,pe=null,Lo(e);break}e=function(){Et!==2&&Et!==9||Dt!==t||(Et=7),Ge(t)},u.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Wf(u)?(Et=0,pe=null,Lo(e)):(Et=0,pe=null,Cn(t,e,u,7));break;case 5:var f=null;switch(st.tag){case 26:f=st.memoizedState;case 5:case 27:var o=st;if(!f||_h(f)){Et=0,pe=null;var h=o.sibling;if(h!==null)st=h;else{var b=o.return;b!==null?(st=b,Hu(b)):st=null}break e}}Et=0,pe=null,Cn(t,e,u,5);break;case 6:Et=0,pe=null,Cn(t,e,u,6);break;case 8:Kc(),Ht=6;break t;default:throw Error(s(462))}}Hy();break}catch(R){Ho(t,R)}while(!0);return Fe=Vl=null,A.H=n,A.A=a,_t=l,st!==null?0:(Dt=null,yt=0,nu(),Ht)}function Hy(){for(;st!==null&&!xl();)jo(st)}function jo(t){var e=oo(t.alternate,t,ul);t.memoizedProps=t.pendingProps,e===null?Hu(t):st=e}function Lo(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=uo(l,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=uo(l,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:fc(e);default:yo(l,e),e=st=Lf(e,ul),e=oo(l,e,ul)}t.memoizedProps=t.pendingProps,e===null?Hu(t):st=e}function Cn(t,e,l,n){Fe=Vl=null,fc(e),An=null,ga=0;var a=e.return;try{if(Ry(t,a,e,l,yt)){Ht=1,zu(t,Ae(l,t.current)),st=null;return}}catch(u){if(a!==null)throw st=a,u;Ht=1,zu(t,Ae(l,t.current)),st=null;return}e.flags&32768?(bt||n===1?t=!0:Dn||(yt&536870912)!==0?t=!1:(Sl=t=!0,(n===2||n===9||n===3||n===6)&&(n=De.current,n!==null&&n.tag===13&&(n.flags|=16384))),Xo(e,t)):Hu(e)}function Hu(t){var e=t;do{if((e.flags&32768)!==0){Xo(e,Sl);return}t=e.return;var l=zy(e.alternate,e,ul);if(l!==null){st=l;return}if(e=e.sibling,e!==null){st=e;return}st=e=t}while(e!==null);Ht===0&&(Ht=5)}function Xo(t,e){do{var l=Dy(t.alternate,t);if(l!==null){l.flags&=32767,st=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){st=t;return}st=t=l}while(t!==null);Ht=6,st=null}function Go(t,e,l,n,a,u,f,o,h){t.cancelPendingCommit=null;do wu();while(Pt!==0);if((_t&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=Yi,yd(t,l,u,f,o,h),t===Dt&&(st=Dt=null,yt=0),Nn=e,Tl=t,Un=l,Qc=u,Vc=a,xo=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ly(Cl,function(){return Jo(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=A.T,A.T=null,a=w.p,w.p=2,f=_t,_t|=4;try{My(t,e,l)}finally{_t=f,w.p=a,A.T=n}}Pt=1,Qo(),Vo(),Zo()}}function Qo(){if(Pt===1){Pt=0;var t=Tl,e=Nn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var n=w.p;w.p=2;var a=_t;_t|=4;try{Ro(e,t);var u=is,f=Nf(t.containerInfo),o=u.focusedElem,h=u.selectionRange;if(f!==o&&o&&o.ownerDocument&&Mf(o.ownerDocument.documentElement,o)){if(h!==null&&Ci(o)){var b=h.start,R=h.end;if(R===void 0&&(R=b),"selectionStart"in o)o.selectionStart=b,o.selectionEnd=Math.min(R,o.value.length);else{var D=o.ownerDocument||document,S=D&&D.defaultView||window;if(S.getSelection){var _=S.getSelection(),F=o.textContent.length,k=Math.min(h.start,F),Ot=h.end===void 0?k:Math.min(h.end,F);!_.extend&&k>Ot&&(f=Ot,Ot=k,k=f);var v=Df(o,k),m=Df(o,Ot);if(v&&m&&(_.rangeCount!==1||_.anchorNode!==v.node||_.anchorOffset!==v.offset||_.focusNode!==m.node||_.focusOffset!==m.offset)){var p=D.createRange();p.setStart(v.node,v.offset),_.removeAllRanges(),k>Ot?(_.addRange(p),_.extend(m.node,m.offset)):(p.setEnd(m.node,m.offset),_.addRange(p))}}}}for(D=[],_=o;_=_.parentNode;)_.nodeType===1&&D.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<D.length;o++){var z=D[o];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}$u=!!us,is=us=null}finally{_t=a,w.p=n,A.T=l}}t.current=e,Pt=2}}function Vo(){if(Pt===2){Pt=0;var t=Tl,e=Nn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var n=w.p;w.p=2;var a=_t;_t|=4;try{_o(t,e.alternate,e)}finally{_t=a,w.p=n,A.T=l}}Pt=3}}function Zo(){if(Pt===4||Pt===3){Pt=0,Pl();var t=Tl,e=Nn,l=Un,n=xo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,Nn=Tl=null,Ko(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(El=null),hi(l),e=e.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(Xn,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=A.T,a=w.p,w.p=2,A.T=null;try{for(var u=t.onRecoverableError,f=0;f<n.length;f++){var o=n[f];u(o.value,{componentStack:o.stack})}}finally{A.T=e,w.p=a}}(Un&3)!==0&&wu(),Ge(t),a=t.pendingLanes,(l&4194090)!==0&&(a&42)!==0?t===Zc?Ra++:(Ra=0,Zc=t):Ra=0,Oa(0)}}function Ko(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ua(e)))}function wu(t){return Qo(),Vo(),Zo(),Jo()}function Jo(){if(Pt!==5)return!1;var t=Tl,e=Qc;Qc=0;var l=hi(Un),n=A.T,a=w.p;try{w.p=32>l?32:l,A.T=null,l=Vc,Vc=null;var u=Tl,f=Un;if(Pt=0,Nn=Tl=null,Un=0,(_t&6)!==0)throw Error(s(331));var o=_t;if(_t|=4,No(u.current),zo(u,u.current,f,l),_t=o,Oa(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(Xn,u)}catch{}return!0}finally{w.p=a,A.T=n,Ko(t,e)}}function ko(t,e,l){e=Ae(l,e),e=Tc(t.stateNode,e,2),t=dl(t,e,2),t!==null&&(Qn(t,2),Ge(t))}function zt(t,e,l){if(t.tag===3)ko(t,t,l);else for(;e!==null;){if(e.tag===3){ko(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(El===null||!El.has(n))){t=Ae(l,t),l=Fr(2),n=dl(e,l,2),n!==null&&(Pr(l,n,e,t),Qn(n,2),Ge(n));break}}e=e.return}}function $c(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new xy;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(jc=!0,a.add(l),t=wy.bind(null,t,e,l),e.then(t,t))}function wy(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Dt===t&&(yt&l)===l&&(Ht===4||Ht===3&&(yt&62914560)===yt&&300>Bt()-Gc?(_t&2)===0&&xn(t,0):Lc|=l,Mn===yt&&(Mn=0)),Ge(t)}function $o(t,e){e===0&&(e=Qs()),t=yn(t,e),t!==null&&(Qn(t,e),Ge(t))}function Yy(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),$o(t,l)}function jy(t,e){var l=0;switch(t.tag){case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(e),$o(t,l)}function Ly(t,e){return _e(t,e)}var Yu=null,Bn=null,Wc=!1,ju=!1,Fc=!1,Fl=0;function Ge(t){t!==Bn&&t.next===null&&(Bn===null?Yu=Bn=t:Bn=Bn.next=t),ju=!0,Wc||(Wc=!0,Gy())}function Oa(t,e){if(!Fc&&ju){Fc=!0;do for(var l=!1,n=Yu;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var f=n.suspendedLanes,o=n.pingedLanes;u=(1<<31-de(42|t)+1)-1,u&=a&~(f&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Io(n,u))}else u=yt,u=Za(n,n===Dt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Gn(n,u)||(l=!0,Io(n,u));n=n.next}while(l);Fc=!1}}function Xy(){Wo()}function Wo(){ju=Wc=!1;var t=0;Fl!==0&&(Wy()&&(t=Fl),Fl=0);for(var e=Bt(),l=null,n=Yu;n!==null;){var a=n.next,u=Fo(n,e);u===0?(n.next=null,l===null?Yu=a:l.next=a,a===null&&(Bn=l)):(l=n,(t!==0||(u&3)!==0)&&(ju=!0)),n=a}Oa(t)}function Fo(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-de(u),o=1<<f,h=a[f];h===-1?((o&l)===0||(o&n)!==0)&&(a[f]=dd(o,e)):h<=e&&(t.expiredLanes|=o),u&=~o}if(e=Dt,l=yt,l=Za(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&He(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Gn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&He(n),hi(l)){case 2:case 8:l=Ze;break;case 32:l=Cl;break;case 268435456:l=Ga;break;default:l=Cl}return n=Po.bind(null,t),l=_e(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&He(n),t.callbackPriority=2,t.callbackNode=null,2}function Po(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(wu()&&t.callbackNode!==l)return null;var n=yt;return n=Za(t,t===Dt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Bo(t,n,e),Fo(t,Bt()),t.callbackNode!=null&&t.callbackNode===l?Po.bind(null,t):null)}function Io(t,e){if(wu())return null;Bo(t,e,!0)}function Gy(){Py(function(){(_t&6)!==0?_e(oe,Xy):Wo()})}function Pc(){return Fl===0&&(Fl=Gs()),Fl}function th(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Wa(""+t)}function eh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Qy(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=th((a[ie]||null).action),f=n.submitter;f&&(e=(e=f[ie]||null)?th(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var o=new tu("action","action",null,n,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Fl!==0){var h=f?eh(a,f):new FormData(a);pc(l,{pending:!0,data:h,method:a.method,action:u},null,h)}}else typeof u=="function"&&(o.preventDefault(),h=f?eh(a,f):new FormData(a),pc(l,{pending:!0,data:h,method:a.method,action:u},u,h))},currentTarget:a}]})}}for(var Ic=0;Ic<wi.length;Ic++){var ts=wi[Ic],Vy=ts.toLowerCase(),Zy=ts[0].toUpperCase()+ts.slice(1);xe(Vy,"on"+Zy)}xe(Cf,"onAnimationEnd"),xe(Bf,"onAnimationIteration"),xe(qf,"onAnimationStart"),xe("dblclick","onDoubleClick"),xe("focusin","onFocus"),xe("focusout","onBlur"),xe(sy,"onTransitionRun"),xe(fy,"onTransitionStart"),xe(ry,"onTransitionCancel"),xe(Hf,"onTransitionEnd"),nn("onMouseEnter",["mouseout","mouseover"]),nn("onMouseLeave",["mouseout","mouseover"]),nn("onPointerEnter",["pointerout","pointerover"]),nn("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var za="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(za));function lh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var f=n.length-1;0<=f;f--){var o=n[f],h=o.instance,b=o.currentTarget;if(o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=b;try{u(a)}catch(R){Ou(R)}a.currentTarget=null,u=h}else for(f=0;f<n.length;f++){if(o=n[f],h=o.instance,b=o.currentTarget,o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=b;try{u(a)}catch(R){Ou(R)}a.currentTarget=null,u=h}}}}function ft(t,e){var l=e[di];l===void 0&&(l=e[di]=new Set);var n=t+"__bubble";l.has(n)||(nh(e,t,2,!1),l.add(n))}function es(t,e,l){var n=0;e&&(n|=4),nh(l,t,n,e)}var Lu="_reactListening"+Math.random().toString(36).slice(2);function ls(t){if(!t[Lu]){t[Lu]=!0,ks.forEach(function(l){l!=="selectionchange"&&(Ky.has(l)||es(l,!1,t),es(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Lu]||(e[Lu]=!0,es("selectionchange",!1,e))}}function nh(t,e,l,n){switch(zh(e)){case 2:var a=bm;break;case 8:a=Sm;break;default:a=gs}l=a.bind(null,e,l,t),a=void 0,!Ai||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function ns(t,e,l,n,a){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var o=n.stateNode.containerInfo;if(o===a)break;if(f===4)for(f=n.return;f!==null;){var h=f.tag;if((h===3||h===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;o!==null;){if(f=tn(o),f===null)return;if(h=f.tag,h===5||h===6||h===26||h===27){n=u=f;continue t}o=o.parentNode}}n=n.return}ff(function(){var b=u,R=Ei(l),D=[];t:{var S=wf.get(t);if(S!==void 0){var _=tu,F=t;switch(t){case"keypress":if(Pa(l)===0)break t;case"keydown":case"keyup":_=Ld;break;case"focusin":F="focus",_=Di;break;case"focusout":F="blur",_=Di;break;case"beforeblur":case"afterblur":_=Di;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Qd;break;case Cf:case Bf:case qf:_=Ud;break;case Hf:_=Zd;break;case"scroll":case"scrollend":_=Od;break;case"wheel":_=Jd;break;case"copy":case"cut":case"paste":_=Cd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=yf;break;case"toggle":case"beforetoggle":_=$d}var k=(e&4)!==0,Ot=!k&&(t==="scroll"||t==="scrollend"),v=k?S!==null?S+"Capture":null:S;k=[];for(var m=b,p;m!==null;){var z=m;if(p=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||p===null||v===null||(z=Kn(m,v),z!=null&&k.push(Da(m,z,p))),Ot)break;m=m.return}0<k.length&&(S=new _(S,F,null,l,R),D.push({event:S,listeners:k}))}}if((e&7)===0){t:{if(S=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",S&&l!==_i&&(F=l.relatedTarget||l.fromElement)&&(tn(F)||F[Il]))break t;if((_||S)&&(S=R.window===R?R:(S=R.ownerDocument)?S.defaultView||S.parentWindow:window,_?(F=l.relatedTarget||l.toElement,_=b,F=F?tn(F):null,F!==null&&(Ot=T(F),k=F.tag,F!==Ot||k!==5&&k!==27&&k!==6)&&(F=null)):(_=null,F=b),_!==F)){if(k=hf,z="onMouseLeave",v="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(k=yf,z="onPointerLeave",v="onPointerEnter",m="pointer"),Ot=_==null?S:Zn(_),p=F==null?S:Zn(F),S=new k(z,m+"leave",_,l,R),S.target=Ot,S.relatedTarget=p,z=null,tn(R)===b&&(k=new k(v,m+"enter",F,l,R),k.target=p,k.relatedTarget=Ot,z=k),Ot=z,_&&F)e:{for(k=_,v=F,m=0,p=k;p;p=qn(p))m++;for(p=0,z=v;z;z=qn(z))p++;for(;0<m-p;)k=qn(k),m--;for(;0<p-m;)v=qn(v),p--;for(;m--;){if(k===v||v!==null&&k===v.alternate)break e;k=qn(k),v=qn(v)}k=null}else k=null;_!==null&&ah(D,S,_,k,!1),F!==null&&Ot!==null&&ah(D,Ot,F,k,!0)}}t:{if(S=b?Zn(b):window,_=S.nodeName&&S.nodeName.toLowerCase(),_==="select"||_==="input"&&S.type==="file")var X=Ef;else if(Sf(S))if(Tf)X=uy;else{X=ny;var it=ly}else _=S.nodeName,!_||_.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?b&&Si(b.elementType)&&(X=Ef):X=ay;if(X&&(X=X(t,b))){_f(D,X,l,R);break t}it&&it(t,S,b),t==="focusout"&&b&&S.type==="number"&&b.memoizedProps.value!=null&&bi(S,"number",S.value)}switch(it=b?Zn(b):window,t){case"focusin":(Sf(it)||it.contentEditable==="true")&&(on=it,Bi=b,ta=null);break;case"focusout":ta=Bi=on=null;break;case"mousedown":qi=!0;break;case"contextmenu":case"mouseup":case"dragend":qi=!1,Uf(D,l,R);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":Uf(D,l,R)}var V;if(Ni)t:{switch(t){case"compositionstart":var $="onCompositionStart";break t;case"compositionend":$="onCompositionEnd";break t;case"compositionupdate":$="onCompositionUpdate";break t}$=void 0}else rn?pf(t,l)&&($="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&($="onCompositionStart");$&&(mf&&l.locale!=="ko"&&(rn||$!=="onCompositionStart"?$==="onCompositionEnd"&&rn&&(V=rf()):(fl=R,Ri="value"in fl?fl.value:fl.textContent,rn=!0)),it=Xu(b,$),0<it.length&&($=new df($,t,null,l,R),D.push({event:$,listeners:it}),V?$.data=V:(V=bf(l),V!==null&&($.data=V)))),(V=Fd?Pd(t,l):Id(t,l))&&($=Xu(b,"onBeforeInput"),0<$.length&&(it=new df("onBeforeInput","beforeinput",null,l,R),D.push({event:it,listeners:$}),it.data=V)),Qy(D,t,b,l,R)}lh(D,e)})}function Da(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Xu(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Kn(t,l),a!=null&&n.unshift(Da(t,a,u)),a=Kn(t,e),a!=null&&n.push(Da(t,a,u))),t.tag===3)return n;t=t.return}return[]}function qn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ah(t,e,l,n,a){for(var u=e._reactName,f=[];l!==null&&l!==n;){var o=l,h=o.alternate,b=o.stateNode;if(o=o.tag,h!==null&&h===n)break;o!==5&&o!==26&&o!==27||b===null||(h=b,a?(b=Kn(l,u),b!=null&&f.unshift(Da(l,b,h))):a||(b=Kn(l,u),b!=null&&f.push(Da(l,b,h)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var Jy=/\r\n?/g,ky=/\u0000|\uFFFD/g;function uh(t){return(typeof t=="string"?t:""+t).replace(Jy,`
`).replace(ky,"")}function ih(t,e){return e=uh(e),uh(t)===e}function Gu(){}function Rt(t,e,l,n,a,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||cn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&cn(t,""+n);break;case"className":Ja(t,"class",n);break;case"tabIndex":Ja(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ja(t,l,n);break;case"style":cf(t,n,u);break;case"data":if(e!=="object"){Ja(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Wa(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&Rt(t,e,"name",a.name,a,null),Rt(t,e,"formEncType",a.formEncType,a,null),Rt(t,e,"formMethod",a.formMethod,a,null),Rt(t,e,"formTarget",a.formTarget,a,null)):(Rt(t,e,"encType",a.encType,a,null),Rt(t,e,"method",a.method,a,null),Rt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Wa(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=Gu);break;case"onScroll":n!=null&&ft("scroll",t);break;case"onScrollEnd":n!=null&&ft("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=Wa(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":ft("beforetoggle",t),ft("toggle",t),Ka(t,"popover",n);break;case"xlinkActuate":Ke(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Ke(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Ke(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Ke(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Ke(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Ke(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ka(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ad.get(l)||l,Ka(t,l,n))}}function as(t,e,l,n,a,u){switch(l){case"style":cf(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof n=="string"?cn(t,n):(typeof n=="number"||typeof n=="bigint")&&cn(t,""+n);break;case"onScroll":n!=null&&ft("scroll",t);break;case"onScrollEnd":n!=null&&ft("scrollend",t);break;case"onClick":n!=null&&(t.onclick=Gu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$s.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),u=t[ie]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):Ka(t,l,n)}}}function It(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",t),ft("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Rt(t,e,u,f,l,null)}}a&&Rt(t,e,"srcSet",l.srcSet,l,null),n&&Rt(t,e,"src",l.src,l,null);return;case"input":ft("invalid",t);var o=u=f=a=null,h=null,b=null;for(n in l)if(l.hasOwnProperty(n)){var R=l[n];if(R!=null)switch(n){case"name":a=R;break;case"type":f=R;break;case"checked":h=R;break;case"defaultChecked":b=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:Rt(t,e,n,R,l,null)}}lf(t,u,o,h,b,f,a,!1),ka(t);return;case"select":ft("invalid",t),n=f=u=null;for(a in l)if(l.hasOwnProperty(a)&&(o=l[a],o!=null))switch(a){case"value":u=o;break;case"defaultValue":f=o;break;case"multiple":n=o;default:Rt(t,e,a,o,l,null)}e=u,l=f,t.multiple=!!n,e!=null?un(t,!!n,e,!1):l!=null&&un(t,!!n,l,!0);return;case"textarea":ft("invalid",t),u=a=n=null;for(f in l)if(l.hasOwnProperty(f)&&(o=l[f],o!=null))switch(f){case"value":n=o;break;case"defaultValue":a=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:Rt(t,e,f,o,l,null)}af(t,n,a,u),ka(t);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(n=l[h],n!=null))switch(h){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Rt(t,e,h,n,l,null)}return;case"dialog":ft("beforetoggle",t),ft("toggle",t),ft("cancel",t),ft("close",t);break;case"iframe":case"object":ft("load",t);break;case"video":case"audio":for(n=0;n<za.length;n++)ft(za[n],t);break;case"image":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"embed":case"source":case"link":ft("error",t),ft("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(b in l)if(l.hasOwnProperty(b)&&(n=l[b],n!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Rt(t,e,b,n,l,null)}return;default:if(Si(e)){for(R in l)l.hasOwnProperty(R)&&(n=l[R],n!==void 0&&as(t,e,R,n,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(n=l[o],n!=null&&Rt(t,e,o,n,l,null))}function $y(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,f=null,o=null,h=null,b=null,R=null;for(_ in l){var D=l[_];if(l.hasOwnProperty(_)&&D!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":h=D;default:n.hasOwnProperty(_)||Rt(t,e,_,null,n,D)}}for(var S in n){var _=n[S];if(D=l[S],n.hasOwnProperty(S)&&(_!=null||D!=null))switch(S){case"type":u=_;break;case"name":a=_;break;case"checked":b=_;break;case"defaultChecked":R=_;break;case"value":f=_;break;case"defaultValue":o=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:_!==D&&Rt(t,e,S,_,n,D)}}pi(t,f,o,h,b,R,u,a);return;case"select":_=f=o=S=null;for(u in l)if(h=l[u],l.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":_=h;default:n.hasOwnProperty(u)||Rt(t,e,u,null,n,h)}for(a in n)if(u=n[a],h=l[a],n.hasOwnProperty(a)&&(u!=null||h!=null))switch(a){case"value":S=u;break;case"defaultValue":o=u;break;case"multiple":f=u;default:u!==h&&Rt(t,e,a,u,n,h)}e=o,l=f,n=_,S!=null?un(t,!!l,S,!1):!!n!=!!l&&(e!=null?un(t,!!l,e,!0):un(t,!!l,l?[]:"",!1));return;case"textarea":_=S=null;for(o in l)if(a=l[o],l.hasOwnProperty(o)&&a!=null&&!n.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Rt(t,e,o,null,n,a)}for(f in n)if(a=n[f],u=l[f],n.hasOwnProperty(f)&&(a!=null||u!=null))switch(f){case"value":S=a;break;case"defaultValue":_=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==u&&Rt(t,e,f,a,n,u)}nf(t,S,_);return;case"option":for(var F in l)if(S=l[F],l.hasOwnProperty(F)&&S!=null&&!n.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:Rt(t,e,F,null,n,S)}for(h in n)if(S=n[h],_=l[h],n.hasOwnProperty(h)&&S!==_&&(S!=null||_!=null))switch(h){case"selected":t.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:Rt(t,e,h,S,n,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var k in l)S=l[k],l.hasOwnProperty(k)&&S!=null&&!n.hasOwnProperty(k)&&Rt(t,e,k,null,n,S);for(b in n)if(S=n[b],_=l[b],n.hasOwnProperty(b)&&S!==_&&(S!=null||_!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(137,e));break;default:Rt(t,e,b,S,n,_)}return;default:if(Si(e)){for(var Ot in l)S=l[Ot],l.hasOwnProperty(Ot)&&S!==void 0&&!n.hasOwnProperty(Ot)&&as(t,e,Ot,void 0,n,S);for(R in n)S=n[R],_=l[R],!n.hasOwnProperty(R)||S===_||S===void 0&&_===void 0||as(t,e,R,S,n,_);return}}for(var v in l)S=l[v],l.hasOwnProperty(v)&&S!=null&&!n.hasOwnProperty(v)&&Rt(t,e,v,null,n,S);for(D in n)S=n[D],_=l[D],!n.hasOwnProperty(D)||S===_||S==null&&_==null||Rt(t,e,D,S,n,_)}var us=null,is=null;function Qu(t){return t.nodeType===9?t:t.ownerDocument}function ch(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 sh(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 cs(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 ss=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===ss?!1:(ss=t,!0):(ss=null,!1)}var fh=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,rh=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof rh<"u"?function(t){return rh.resolve(null).then(t).catch(Iy)}:fh;function Iy(t){setTimeout(function(){throw t})}function Rl(t){return t==="head"}function oh(t,e){var l=e,n=0,a=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(0<n&&8>n){l=n;var f=t.ownerDocument;if(l&1&&Ma(f.documentElement),l&2&&Ma(f.body),l&4)for(l=f.head,Ma(l),f=l.firstChild;f;){var o=f.nextSibling,h=f.nodeName;f[Vn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=o}}if(a===0){t.removeChild(u),wa(e);return}a--}else l==="$"||l==="$?"||l==="$!"?a++:n=l.charCodeAt(0)-48;else n=0;l=u}while(l);wa(e)}function fs(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":fs(l),yi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function tm(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Vn])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=Be(t.nextSibling),t===null)break}return null}function em(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Be(t.nextSibling),t===null))return null;return t}function rs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function lm(t,e){var l=t.ownerDocument;if(t.data!=="$?"||l.readyState==="complete")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Be(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 os=null;function hh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(e===0)return t;e--}else l==="/$"&&e++}t=t.previousSibling}return null}function dh(t,e,l){switch(e=Qu(l),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Ma(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);yi(t)}var Ne=new Map,yh=new Set;function Vu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var il=w.d;w.d={f:nm,r:am,D:um,C:im,L:cm,m:sm,X:rm,S:fm,M:om};function nm(){var t=il.f(),e=qu();return t||e}function am(t){var e=en(t);e!==null&&e.tag===5&&e.type==="form"?Cr(e):il.r(t)}var Hn=typeof document>"u"?null:document;function mh(t,e,l){var n=Hn;if(n&&typeof e=="string"&&e){var a=Te(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),yh.has(a)||(yh.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),It(e,"link",t),Zt(e),n.head.appendChild(e)))}}function um(t){il.D(t),mh("dns-prefetch",t,null)}function im(t,e){il.C(t,e),mh("preconnect",t,e)}function cm(t,e,l){il.L(t,e,l);var n=Hn;if(n&&t&&e){var a='link[rel="preload"][as="'+Te(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Te(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Te(l.imageSizes)+'"]')):a+='[href="'+Te(t)+'"]';var u=a;switch(e){case"style":u=wn(t);break;case"script":u=Yn(t)}Ne.has(u)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ne.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Na(u))||e==="script"&&n.querySelector(Ua(u))||(e=n.createElement("link"),It(e,"link",t),Zt(e),n.head.appendChild(e)))}}function sm(t,e){il.m(t,e);var l=Hn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Te(n)+'"][href="'+Te(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Yn(t)}if(!Ne.has(u)&&(t=B({rel:"modulepreload",href:t},e),Ne.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ua(u)))return}n=l.createElement("link"),It(n,"link",t),Zt(n),l.head.appendChild(n)}}}function fm(t,e,l){il.S(t,e,l);var n=Hn;if(n&&t){var a=ln(n).hoistableStyles,u=wn(t);e=e||"default";var f=a.get(u);if(!f){var o={loading:0,preload:null};if(f=n.querySelector(Na(u)))o.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ne.get(u))&&hs(t,l);var h=f=n.createElement("link");Zt(h),It(h,"link",t),h._p=new Promise(function(b,R){h.onload=b,h.onerror=R}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Zu(f,e,n)}f={type:"stylesheet",instance:f,count:1,state:o},a.set(u,f)}}}function rm(t,e){il.X(t,e);var l=Hn;if(l&&t){var n=ln(l).hoistableScripts,a=Yn(t),u=n.get(a);u||(u=l.querySelector(Ua(a)),u||(t=B({src:t,async:!0},e),(e=Ne.get(a))&&ds(t,e),u=l.createElement("script"),Zt(u),It(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function om(t,e){il.M(t,e);var l=Hn;if(l&&t){var n=ln(l).hoistableScripts,a=Yn(t),u=n.get(a);u||(u=l.querySelector(Ua(a)),u||(t=B({src:t,async:!0,type:"module"},e),(e=Ne.get(a))&&ds(t,e),u=l.createElement("script"),Zt(u),It(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function gh(t,e,l,n){var a=(a=q.current)?Vu(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=wn(l.href),l=ln(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=wn(l.href);var u=ln(a).hoistableStyles,f=u.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=a.querySelector(Na(t)))&&!u._p&&(f.instance=u,f.state.loading=5),Ne.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ne.set(t,l),u||hm(a,t,l,f.state))),e&&n===null)throw Error(s(528,""));return f}if(e&&n!==null)throw Error(s(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Yn(l),l=ln(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function wn(t){return'href="'+Te(t)+'"'}function Na(t){return'link[rel="stylesheet"]['+t+"]"}function vh(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function hm(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),It(e,"link",l),Zt(e),t.head.appendChild(e))}function Yn(t){return'[src="'+Te(t)+'"]'}function Ua(t){return"script[async]"+t}function ph(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Te(l.href)+'"]');if(n)return e.instance=n,Zt(n),n;var a=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Zt(n),It(n,"style",a),Zu(n,l.precedence,t),e.instance=n;case"stylesheet":a=wn(l.href);var u=t.querySelector(Na(a));if(u)return e.state.loading|=4,e.instance=u,Zt(u),u;n=vh(l),(a=Ne.get(a))&&hs(n,a),u=(t.ownerDocument||t).createElement("link"),Zt(u);var f=u;return f._p=new Promise(function(o,h){f.onload=o,f.onerror=h}),It(u,"link",n),e.state.loading|=4,Zu(u,l.precedence,t),e.instance=u;case"script":return u=Yn(l.src),(a=t.querySelector(Ua(u)))?(e.instance=a,Zt(a),a):(n=l,(a=Ne.get(u))&&(n=B({},l),ds(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Zt(a),It(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Zu(n,l.precedence,t));return e.instance}function Zu(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,f=0;f<n.length;f++){var o=n[f];if(o.dataset.precedence===e)u=o;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function hs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function ds(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ku=null;function bh(t,e,l){if(Ku===null){var n=new Map,a=Ku=new Map;a.set(l,n)}else a=Ku,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var u=l[a];if(!(u[Vn]||u[te]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var o=n.get(f);o?o.push(u):n.set(f,[u])}}return n}function Sh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function dm(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function _h(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var xa=null;function ym(){}function mm(t,e,l){if(xa===null)throw Error(s(475));var n=xa;if(e.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=wn(l.href),u=t.querySelector(Na(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(n.count++,n=Ju.bind(n),t.then(n,n)),e.state.loading|=4,e.instance=u,Zt(u);return}u=t.ownerDocument||t,l=vh(l),(a=Ne.get(a))&&hs(l,a),u=u.createElement("link"),Zt(u);var f=u;f._p=new Promise(function(o,h){f.onload=o,f.onerror=h}),It(u,"link",l),e.instance=u}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(n.count++,e=Ju.bind(n),t.addEventListener("load",e),t.addEventListener("error",e))}}function gm(){if(xa===null)throw Error(s(475));var t=xa;return t.stylesheets&&t.count===0&&ys(t,t.stylesheets),0<t.count?function(e){var l=setTimeout(function(){if(t.stylesheets&&ys(t,t.stylesheets),t.unsuspend){var n=t.unsuspend;t.unsuspend=null,n()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(l)}}:null}function Ju(){if(this.count--,this.count===0){if(this.stylesheets)ys(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ku=null;function ys(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ku=new Map,e.forEach(vm,t),ku=null,Ju.call(t))}function vm(t,e){if(!(e.state.loading&4)){var l=ku.get(t);if(l)var n=l.get(null);else{l=new Map,ku.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var f=a[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}a=e.instance,f=a.getAttribute("data-precedence"),u=l.get(f)||n,u===n&&l.set(null,a),l.set(f,a),this.count++,n=Ju.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ca={$$typeof:rt,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function pm(t,e,l,n,a,u,f,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ri(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ri(0),this.hiddenUpdates=ri(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Eh(t,e,l,n,a,u,f,o,h,b,R,D){return t=new pm(t,e,l,f,o,h,b,D),e=1,u===!0&&(e|=24),u=me(3,null,null,e),t.current=u,u.stateNode=t,e=$i(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},Ii(u),t}function Th(t){return t?(t=mn,t):mn}function Ah(t,e,l,n,a,u){a=Th(a),n.context===null?n.context=a:n.pendingContext=a,n=hl(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=dl(t,n,e),l!==null&&(Se(l,t,e),fa(l,t,e))}function Rh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function ms(t,e){Rh(t,e),(t=t.alternate)&&Rh(t,e)}function Oh(t){if(t.tag===13){var e=yn(t,67108864);e!==null&&Se(e,t,67108864),ms(t,67108864)}}var $u=!0;function bm(t,e,l,n){var a=A.T;A.T=null;var u=w.p;try{w.p=2,gs(t,e,l,n)}finally{w.p=u,A.T=a}}function Sm(t,e,l,n){var a=A.T;A.T=null;var u=w.p;try{w.p=8,gs(t,e,l,n)}finally{w.p=u,A.T=a}}function gs(t,e,l,n){if($u){var a=vs(n);if(a===null)ns(t,e,n,Wu,l),Dh(t,n);else if(Em(a,t,e,l,n))n.stopPropagation();else if(Dh(t,n),e&4&&-1<_m.indexOf(t)){for(;a!==null;){var u=en(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=Bl(u.pendingLanes);if(f!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;f;){var h=1<<31-de(f);o.entanglements[1]|=h,f&=~h}Ge(u),(_t&6)===0&&(Cu=Bt()+500,Oa(0))}}break;case 13:o=yn(u,2),o!==null&&Se(o,u,2),qu(),ms(u,2)}if(u=vs(n),u===null&&ns(t,e,n,Wu,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else ns(t,e,n,null,l)}}function vs(t){return t=Ei(t),ps(t)}var Wu=null;function ps(t){if(Wu=null,t=tn(t),t!==null){var e=T(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=U(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Wu=t,null}function zh(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(we()){case oe:return 2;case Ze:return 8;case Cl:case Ln:return 32;case Ga:return 268435456;default:return 32}default:return 32}}var bs=!1,Ol=null,zl=null,Dl=null,Ba=new Map,qa=new Map,Ml=[],_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 Dh(t,e){switch(t){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":zl=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":Ba.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":qa.delete(e.pointerId)}}function Ha(t,e,l,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},e!==null&&(e=en(e),e!==null&&Oh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Em(t,e,l,n,a){switch(e){case"focusin":return Ol=Ha(Ol,t,e,l,n,a),!0;case"dragenter":return zl=Ha(zl,t,e,l,n,a),!0;case"mouseover":return Dl=Ha(Dl,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return Ba.set(u,Ha(Ba.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,qa.set(u,Ha(qa.get(u)||null,t,e,l,n,a)),!0}return!1}function Mh(t){var e=tn(t.target);if(e!==null){var l=T(e);if(l!==null){if(e=l.tag,e===13){if(e=U(l),e!==null){t.blockedOn=e,md(t.priority,function(){if(l.tag===13){var n=be();n=oi(n);var a=yn(l,n);a!==null&&Se(a,l,n),ms(l,n)}});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Fu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=vs(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);_i=n,l.target.dispatchEvent(n),_i=null}else return e=en(l),e!==null&&Oh(e),t.blockedOn=l,!1;e.shift()}return!0}function Nh(t,e,l){Fu(t)&&l.delete(e)}function Tm(){bs=!1,Ol!==null&&Fu(Ol)&&(Ol=null),zl!==null&&Fu(zl)&&(zl=null),Dl!==null&&Fu(Dl)&&(Dl=null),Ba.forEach(Nh),qa.forEach(Nh)}function Pu(t,e){t.blockedOn===e&&(t.blockedOn=null,bs||(bs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Tm)))}var Iu=null;function Uh(t){Iu!==t&&(Iu=t,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Iu===t&&(Iu=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(ps(n||l)===null)continue;break}var u=en(l);u!==null&&(t.splice(e,3),e-=3,pc(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function wa(t){function e(h){return Pu(h,t)}Ol!==null&&Pu(Ol,t),zl!==null&&Pu(zl,t),Dl!==null&&Pu(Dl,t),Ba.forEach(e),qa.forEach(e);for(var l=0;l<Ml.length;l++){var n=Ml[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Ml.length&&(l=Ml[0],l.blockedOn===null);)Mh(l),l.blockedOn===null&&Ml.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],f=a[ie]||null;if(typeof u=="function")f||Uh(l);else if(f){var o=null;if(u&&u.hasAttribute("formAction")){if(a=u,f=u[ie]||null)o=f.formAction;else if(ps(a)!==null)continue}else o=f.action;typeof o=="function"?l[n+1]=o:(l.splice(n,3),n-=3),Uh(l)}}}function Ss(t){this._internalRoot=t}ti.prototype.render=Ss.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var l=e.current,n=be();Ah(l,n,t,e,null,null)},ti.prototype.unmount=Ss.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ah(t.current,2,null,t,null,null),qu(),e[Il]=null}};function ti(t){this._internalRoot=t}ti.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ks();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ml.length&&e!==0&&e<Ml[l].priority;l++);Ml.splice(l,0,t),l===0&&Mh(t)}};var xh=i.version;if(xh!=="19.1.1")throw Error(s(527,xh,"19.1.1"));w.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=C(e),t=t!==null?E(t):null,t=t===null?null:t.stateNode,t};var Am={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{Xn=ei.inject(Am),he=ei}catch{}}return ja.createRoot=function(t,e){if(!g(t))throw Error(s(299));var l=!1,n="",a=Jr,u=kr,f=$r,o=null;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=Eh(t,1,!1,null,null,l,n,a,u,f,o,null),t[Il]=e.current,ls(t),new Ss(e)},ja.hydrateRoot=function(t,e,l){if(!g(t))throw Error(s(299));var n=!1,a="",u=Jr,f=kr,o=$r,h=null,b=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(h=l.unstable_transitionCallbacks),l.formState!==void 0&&(b=l.formState)),e=Eh(t,1,!0,e,l??null,n,a,u,f,o,h,b),e.context=Th(null),l=e.current,n=be(),n=oi(n),a=hl(n),a.callback=null,dl(l,a,n),l=n,e.current.lanes=l,Qn(e,l),Ge(e),t[Il]=e.current,ls(t),new ti(e)},ja.version="19.1.1",ja}var Gh;function Bm(){if(Gh)return Ts.exports;Gh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Ts.exports=Cm(),Ts.exports}var qm=Bm();const Ve=Object.create(null);Ve.open="0";Ve.close="1";Ve.ping="2";Ve.pong="3";Ve.message="4";Ve.upgrade="5";Ve.noop="6";const ai=Object.create(null);Object.keys(Ve).forEach(r=>{ai[Ve[r]]=r});const Ns={type:"error",data:"parser error"},$h=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Wh=typeof ArrayBuffer=="function",Fh=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,ws=({type:r,data:i},c,s)=>$h&&i instanceof Blob?c?s(i):Qh(i,s):Wh&&(i instanceof ArrayBuffer||Fh(i))?c?s(i):Qh(new Blob([i]),s):s(Ve[r]+(i||"")),Qh=(r,i)=>{const c=new FileReader;return c.onload=function(){const s=c.result.split(",")[1];i("b"+(s||""))},c.readAsDataURL(r)};function Vh(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let zs;function Hm(r,i){if($h&&r.data instanceof Blob)return r.data.arrayBuffer().then(Vh).then(i);if(Wh&&(r.data instanceof ArrayBuffer||Fh(r.data)))return i(Vh(r.data));ws(r,!1,c=>{zs||(zs=new TextEncoder),i(zs.encode(c))})}const Zh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<Zh.length;r++)Xa[Zh.charCodeAt(r)]=r;const wm=r=>{let i=r.length*.75,c=r.length,s,g=0,T,U,Y,C;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);const E=new ArrayBuffer(i),B=new Uint8Array(E);for(s=0;s<c;s+=4)T=Xa[r.charCodeAt(s)],U=Xa[r.charCodeAt(s+1)],Y=Xa[r.charCodeAt(s+2)],C=Xa[r.charCodeAt(s+3)],B[g++]=T<<2|U>>4,B[g++]=(U&15)<<4|Y>>2,B[g++]=(Y&3)<<6|C&63;return E},Ym=typeof ArrayBuffer=="function",Ys=(r,i)=>{if(typeof r!="string")return{type:"message",data:Ph(r,i)};const c=r.charAt(0);return c==="b"?{type:"message",data:jm(r.substring(1),i)}:ai[c]?r.length>1?{type:ai[c],data:r.substring(1)}:{type:ai[c]}:Ns},jm=(r,i)=>{if(Ym){const c=wm(r);return Ph(c,i)}else return{base64:!0,data:r}},Ph=(r,i)=>{switch(i){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}},Ih="",Lm=(r,i)=>{const c=r.length,s=new Array(c);let g=0;r.forEach((T,U)=>{ws(T,!1,Y=>{s[U]=Y,++g===c&&i(s.join(Ih))})})},Xm=(r,i)=>{const c=r.split(Ih),s=[];for(let g=0;g<c.length;g++){const T=Ys(c[g],i);if(s.push(T),T.type==="error")break}return s};function Gm(){return new TransformStream({transform(r,i){Hm(r,c=>{const s=c.length;let g;if(s<126)g=new Uint8Array(1),new DataView(g.buffer).setUint8(0,s);else if(s<65536){g=new Uint8Array(3);const T=new DataView(g.buffer);T.setUint8(0,126),T.setUint16(1,s)}else{g=new Uint8Array(9);const T=new DataView(g.buffer);T.setUint8(0,127),T.setBigUint64(1,BigInt(s))}r.data&&typeof r.data!="string"&&(g[0]|=128),i.enqueue(g),i.enqueue(c)})}})}let Ds;function li(r){return r.reduce((i,c)=>i+c.length,0)}function ni(r,i){if(r[0].length===i)return r.shift();const c=new Uint8Array(i);let s=0;for(let g=0;g<i;g++)c[g]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),c}function Qm(r,i){Ds||(Ds=new TextDecoder);const c=[];let s=0,g=-1,T=!1;return new TransformStream({transform(U,Y){for(c.push(U);;){if(s===0){if(li(c)<1)break;const C=ni(c,1);T=(C[0]&128)===128,g=C[0]&127,g<126?s=3:g===126?s=1:s=2}else if(s===1){if(li(c)<2)break;const C=ni(c,2);g=new DataView(C.buffer,C.byteOffset,C.length).getUint16(0),s=3}else if(s===2){if(li(c)<8)break;const C=ni(c,8),E=new DataView(C.buffer,C.byteOffset,C.length),B=E.getUint32(0);if(B>Math.pow(2,21)-1){Y.enqueue(Ns);break}g=B*Math.pow(2,32)+E.getUint32(4),s=3}else{if(li(c)<g)break;const C=ni(c,g);Y.enqueue(Ys(T?C:Ds.decode(C),i)),s=0}if(g===0||g>r){Y.enqueue(Ns);break}}}})}const td=4;function Xt(r){if(r)return Vm(r)}function Vm(r){for(var i in Xt.prototype)r[i]=Xt.prototype[i];return r}Xt.prototype.on=Xt.prototype.addEventListener=function(r,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(i),this};Xt.prototype.once=function(r,i){function c(){this.off(r,c),i.apply(this,arguments)}return c.fn=i,this.on(r,c),this};Xt.prototype.off=Xt.prototype.removeListener=Xt.prototype.removeAllListeners=Xt.prototype.removeEventListener=function(r,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+r];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,g=0;g<c.length;g++)if(s=c[g],s===i||s.fn===i){c.splice(g,1);break}return c.length===0&&delete this._callbacks["$"+r],this};Xt.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+r],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(c){c=c.slice(0);for(var s=0,g=c.length;s<g;++s)c[s].apply(this,i)}return this};Xt.prototype.emitReserved=Xt.prototype.emit;Xt.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};Xt.prototype.hasListeners=function(r){return!!this.listeners(r).length};const si=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),Ue=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Zm="arraybuffer";function ed(r,...i){return i.reduce((c,s)=>(r.hasOwnProperty(s)&&(c[s]=r[s]),c),{})}const Km=Ue.setTimeout,Jm=Ue.clearTimeout;function fi(r,i){i.useNativeTimers?(r.setTimeoutFn=Km.bind(Ue),r.clearTimeoutFn=Jm.bind(Ue)):(r.setTimeoutFn=Ue.setTimeout.bind(Ue),r.clearTimeoutFn=Ue.clearTimeout.bind(Ue))}const km=1.33;function $m(r){return typeof r=="string"?Wm(r):Math.ceil((r.byteLength||r.size)*km)}function Wm(r){let i=0,c=0;for(let s=0,g=r.length;s<g;s++)i=r.charCodeAt(s),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(s++,c+=4);return c}function ld(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Fm(r){let i="";for(let c in r)r.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(r[c]));return i}function Pm(r){let i={},c=r.split("&");for(let s=0,g=c.length;s<g;s++){let T=c[s].split("=");i[decodeURIComponent(T[0])]=decodeURIComponent(T[1])}return i}class Im extends Error{constructor(i,c,s){super(i),this.description=c,this.context=s,this.type="TransportError"}}class js extends Xt{constructor(i){super(),this.writable=!1,fi(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=Ys(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 js{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const c=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||c()})),this.writable||(s++,this.once("drain",function(){--s||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Xm(i,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Lm(i,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=ld()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let nd=!1;try{nd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const e0=nd;function l0(){}class n0 extends t0{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let s=location.port;s||(s=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,c){const s=this.request({method:"POST",data:i});s.on("success",c),s.on("error",(g,T)=>{this.onError("xhr post error",g,T)})}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 Qe extends Xt{constructor(i,c,s){super(),this.createRequest=i,fi(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=ed(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=Qe.requestsCount++,Qe.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=l0,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Qe.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()}}Qe.requestsCount=0;Qe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Kh);else if(typeof addEventListener=="function"){const r="onpagehide"in Ue?"pagehide":"unload";addEventListener(r,Kh,!1)}}function Kh(){for(let r in Qe.requests)Qe.requests.hasOwnProperty(r)&&Qe.requests[r].abort()}const a0=function(){const r=ad({xdomain:!1});return r&&r.responseType!==null}();class u0 extends n0{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=a0&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Qe(ad,this.uri(),i)}}function ad(r){const i=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e0))return new XMLHttpRequest}catch{}if(!i)try{return new Ue[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ud=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class i0 extends js{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,s=ud?{}:ed(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;ws(s,this.supportsBinary,T=>{try{this.doWrite(s,T)}catch{}g&&si(()=>{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]=ld()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const Ms=Ue.WebSocket||Ue.MozWebSocket;class c0 extends i0{createSocket(i,c,s){return ud?new Ms(i,c,s):c?new Ms(i,c):new Ms(i)}doWrite(i,c){this.ws.send(c)}}class s0 extends js{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 T=()=>{s.read().then(({done:Y,value:C})=>{Y||(this.onPacket(C),T())}).catch(Y=>{})};T();const U={type:"open"};this.query.sid&&(U.data=`{"sid":"${this.query.sid}"}`),this._writer.write(U).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&&si(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const f0={websocket:c0,webtransport:s0,polling:u0},r0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Us(r){if(r.length>8e3)throw"URI too long";const i=r,c=r.indexOf("["),s=r.indexOf("]");c!=-1&&s!=-1&&(r=r.substring(0,c)+r.substring(c,s).replace(/:/g,";")+r.substring(s,r.length));let g=r0.exec(r||""),T={},U=14;for(;U--;)T[o0[U]]=g[U]||"";return c!=-1&&s!=-1&&(T.source=i,T.host=T.host.substring(1,T.host.length-1).replace(/;/g,":"),T.authority=T.authority.replace("[","").replace("]","").replace(/;/g,":"),T.ipv6uri=!0),T.pathNames=h0(T,T.path),T.queryKey=d0(T,T.query),T}function h0(r,i){const c=/\/{2,9}/g,s=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function d0(r,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,g,T){g&&(c[g]=T)}),c}const xs=typeof addEventListener=="function"&&typeof removeEventListener=="function",ui=[];xs&&addEventListener("offline",()=>{ui.forEach(r=>r())},!1);class Ul extends Xt{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=Us(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=Us(c.host).host);fi(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)),xs&&(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"})},ui.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=td,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&&Ul.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",Ul.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const c=new Error("server error");c.code=i.data,this._onError(c);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let s=0;s<this.writeBuffer.length;s++){const g=this.writeBuffer[s].data;if(g&&(c+=$m(g)),s>0&&c>this._maxPayload)return this.writeBuffer.slice(0,s);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,si(()=>{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 T={type:i,data:c,options:s};this.emitReserved("packetCreate",T),this.writeBuffer.push(T),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(Ul.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(),xs&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=ui.indexOf(this._offlineEventListener);s!==-1&&ui.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}Ul.protocol=td;class y0 extends Ul{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;Ul.priorWebsocketSuccess=!1;const g=()=>{s||(c.send([{type:"ping",data:"probe"}]),c.once("packet",nt=>{if(!s)if(nt.type==="pong"&&nt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Ul.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(B(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const ct=new Error("probe error");ct.transport=c.name,this.emitReserved("upgradeError",ct)}}))};function T(){s||(s=!0,B(),c.close(),c=null)}const U=nt=>{const ct=new Error("probe error: "+nt);ct.transport=c.name,T(),this.emitReserved("upgradeError",ct)};function Y(){U("transport closed")}function C(){U("socket closed")}function E(nt){c&&nt.name!==c.name&&T()}const B=()=>{c.removeListener("open",g),c.removeListener("error",U),c.removeListener("close",Y),this.off("close",C),this.off("upgrading",E)};c.once("open",g),c.once("error",U),c.once("close",Y),this.once("close",C),this.once("upgrading",E),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&c.push(i[s]);return c}}let m0=class extends y0{constructor(i,c={}){const s=typeof i=="object"?i:c;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(g=>f0[g]).filter(g=>!!g)),super(i,s)}};function g0(r,i="",c){let s=r;c=c||typeof location<"u"&&location,r==null&&(r=c.protocol+"//"+c.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=c.protocol+r:r=c.host+r),/^(https?|wss?):\/\//.test(r)||(typeof c<"u"?r=c.protocol+"//"+r:r="https://"+r),s=Us(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const T=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+T+":"+s.port+i,s.href=s.protocol+"://"+T+(c&&c.port===s.port?"":":"+s.port),s}const v0=typeof ArrayBuffer=="function",p0=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,id=Object.prototype.toString,b0=typeof Blob=="function"||typeof Blob<"u"&&id.call(Blob)==="[object BlobConstructor]",S0=typeof File=="function"||typeof File<"u"&&id.call(File)==="[object FileConstructor]";function Ls(r){return v0&&(r instanceof ArrayBuffer||p0(r))||b0&&r instanceof Blob||S0&&r instanceof File}function ii(r,i){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let c=0,s=r.length;c<s;c++)if(ii(r[c]))return!0;return!1}if(Ls(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return ii(r.toJSON(),!0);for(const c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&ii(r[c]))return!0;return!1}function _0(r){const i=[],c=r.data,s=r;return s.data=Cs(c,i),s.attachments=i.length,{packet:s,buffers:i}}function Cs(r,i){if(!r)return r;if(Ls(r)){const c={_placeholder:!0,num:i.length};return i.push(r),c}else if(Array.isArray(r)){const c=new Array(r.length);for(let s=0;s<r.length;s++)c[s]=Cs(r[s],i);return c}else if(typeof r=="object"&&!(r instanceof Date)){const c={};for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&(c[s]=Cs(r[s],i));return c}return r}function E0(r,i){return r.data=Bs(r.data,i),delete r.attachments,r}function Bs(r,i){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<i.length)return i[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let c=0;c<r.length;c++)r[c]=Bs(r[c],i);else if(typeof r=="object")for(const c in r)Object.prototype.hasOwnProperty.call(r,c)&&(r[c]=Bs(r[c],i));return r}const T0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],A0=5;var dt;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(dt||(dt={}));class R0{constructor(i){this.replacer=i}encode(i){return(i.type===dt.EVENT||i.type===dt.ACK)&&ii(i)?this.encodeAsBinary({type:i.type===dt.EVENT?dt.BINARY_EVENT:dt.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===dt.BINARY_EVENT||i.type===dt.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 Jh(r){return Object.prototype.toString.call(r)==="[object Object]"}class Xs extends Xt{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===dt.BINARY_EVENT;s||c.type===dt.BINARY_ACK?(c.type=s?dt.EVENT:dt.ACK,this.reconstructor=new O0(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Ls(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(dt[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===dt.BINARY_EVENT||s.type===dt.BINARY_ACK){const T=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const U=i.substring(T,c);if(U!=Number(U)||i.charAt(c)!=="-")throw new Error("Illegal attachments");s.attachments=Number(U)}if(i.charAt(c+1)==="/"){const T=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););s.nsp=i.substring(T,c)}else s.nsp="/";const g=i.charAt(c+1);if(g!==""&&Number(g)==g){const T=c+1;for(;++c;){const U=i.charAt(c);if(U==null||Number(U)!=U){--c;break}if(c===i.length)break}s.id=Number(i.substring(T,c+1))}if(i.charAt(++c)){const T=this.tryParse(i.substr(c));if(Xs.isPayloadValid(s.type,T))s.data=T;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 dt.CONNECT:return Jh(c);case dt.DISCONNECT:return c===void 0;case dt.CONNECT_ERROR:return typeof c=="string"||Jh(c);case dt.EVENT:case dt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&T0.indexOf(c[0])===-1);case dt.ACK:case dt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class O0{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const c=E0(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const z0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Xs,Encoder:R0,get PacketType(){return dt},protocol:A0},Symbol.toStringTag,{value:"Module"}));function qe(r,i,c){return r.on(i,c),function(){r.off(i,c)}}const D0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class cd extends Xt{constructor(i,c,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=c,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[qe(i,"open",this.onopen.bind(this)),qe(i,"packet",this.onpacket.bind(this)),qe(i,"error",this.onerror.bind(this)),qe(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...c){var s,g,T;if(D0.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(c.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const U={type:dt.EVENT,data:c};if(U.options={},U.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const B=this.ids++,nt=c.pop();this._registerAckCallback(B,nt),U.id=B}const Y=(g=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||g===void 0?void 0:g.writable,C=this.connected&&!(!((T=this.io.engine)===null||T===void 0)&&T._hasPingExpired());return this.flags.volatile&&!Y||(C?(this.notifyOutgoingListeners(U),this.packet(U)):this.sendBuffer.push(U)),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 T=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let Y=0;Y<this.sendBuffer.length;Y++)this.sendBuffer[Y].id===i&&this.sendBuffer.splice(Y,1);c.call(this,new Error("operation has timed out"))},g),U=(...Y)=>{this.io.clearTimeoutFn(T),c.apply(this,Y)};U.withError=!0,this.acks[i]=U}emitWithAck(i,...c){return new Promise((s,g)=>{const T=(U,Y)=>U?g(U):s(Y);T.withError=!0,c.push(T),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,...T)=>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,...T)),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:dt.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 dt.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 dt.EVENT:case dt.BINARY_EVENT:this.onevent(i);break;case dt.ACK:case dt.BINARY_ACK:this.onack(i);break;case dt.DISCONNECT:this.ondisconnect();break;case dt.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:dt.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:dt.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 jn(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}jn.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*r);r=(Math.floor(i*10)&1)==0?r-c:r+c}return Math.min(r,this.max)|0};jn.prototype.reset=function(){this.attempts=0};jn.prototype.setMin=function(r){this.ms=r};jn.prototype.setMax=function(r){this.max=r};jn.prototype.setJitter=function(r){this.jitter=r};class qs extends Xt{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,fi(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 jn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const g=c.parser||z0;this.encoder=new g.Encoder,this.decoder=new g.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var c;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(c=this.backoff)===null||c===void 0||c.setMin(i),this)}randomizationFactor(i){var c;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(c=this.backoff)===null||c===void 0||c.setJitter(i),this)}reconnectionDelayMax(i){var c;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(c=this.backoff)===null||c===void 0||c.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new m0(this.uri,this.opts);const c=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const g=qe(c,"open",function(){s.onopen(),i&&i()}),T=Y=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Y),i?i(Y):this.maybeReconnectOnOpen()},U=qe(c,"error",T);if(this._timeout!==!1){const Y=this._timeout,C=this.setTimeoutFn(()=>{g(),T(new Error("timeout")),c.close()},Y);this.opts.autoUnref&&C.unref(),this.subs.push(()=>{this.clearTimeoutFn(C)})}return this.subs.push(g),this.subs.push(U),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(qe(i,"ping",this.onping.bind(this)),qe(i,"data",this.ondata.bind(this)),qe(i,"error",this.onerror.bind(this)),qe(i,"close",this.onclose.bind(this)),qe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(c){this.onclose("parse error",c)}}ondecoded(i){si(()=>{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 cd(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 La={};function ci(r,i){typeof r=="object"&&(i=r,r=void 0),i=i||{};const c=g0(r,i.path||"/socket.io"),s=c.source,g=c.id,T=c.path,U=La[g]&&T in La[g].nsps,Y=i.forceNew||i["force new connection"]||i.multiplex===!1||U;let C;return Y?C=new qs(s,i):(La[g]||(La[g]=new qs(s,i)),C=La[g]),c.query&&!i.query&&(i.query=c.queryKey),C.socket(c.path,i)}Object.assign(ci,{Manager:qs,Socket:cd,io:ci,connect:ci});function M0({code:r,isConnected:i,isRoomCreator:c,countdown:s,onCreateRoom:g,onJoinRoom:T}){const[U,Y]=mt.useState(""),C=()=>{if(U){const B=U.charAt(U.length-1)==" "?U.substr(0,U.length-1):U;T(B)}},E=B=>{B.key==="Enter"&&C()};return tt.jsx("div",{className:"mb-4",children:r?tt.jsxs(tt.Fragment,{children:[c&&s>0&&!i&&tt.jsxs("p",{children:["Waiting for connection... ",s,"s"]}),tt.jsxs("p",{className:"text-lg",children:["Code: ",tt.jsx("strong",{children:r})]})]}):tt.jsxs(tt.Fragment,{children:[tt.jsx("button",{onClick:g,className:"mr-2",children:"Create Room"}),tt.jsx("input",{type:"text",value:U,onChange:B=>Y(B.target.value),onKeyDown:E,placeholder:"Enter code to join",className:"mr-2"}),tt.jsx("button",{onClick:C,children:"Join"})]})})}function N0({files:r,setFiles:i,dataChannels:c,dataChannelsRef:s,useFallback:g,socket:T,code:U,socketId:Y,localFilesRef:C,downloadStates:E,setDownloadStates:B,cancelDownload:nt,cancelRequestsRef:ct,SERVER_URL:gt}){const Ct=mt.useRef(null),ht=mt.useRef({}),Gt=(N,lt=256)=>new Promise(K=>{if(!N.type.startsWith("image/")){K(null);return}const W=new Image,Ut=document.createElement("canvas"),ot=Ut.getContext("2d");W.onload=()=>{const{width:I,height:Wt}=W,St=Math.min(lt/I,lt/Wt,1);Ut.width=I*St,Ut.height=Wt*St,ot.drawImage(W,0,0,Ut.width,Ut.height),Ut.toBlob(Mt=>{K(Mt)},"image/jpeg",.7)},W.src=URL.createObjectURL(N)}),$t=async()=>{const N=Ct.current.files;if(!N||N.length===0)return;const lt=Array.from(N).map(K=>({name:K.name,size:K.size,peerId:Y,thumbnail:!!K.type.startsWith("image/")}));if(g){const K=new FormData;Array.from(N).forEach(W=>K.append("files",W));try{if(!(await fetch(`${gt}/api/upload/${U}`,{method:"POST",body:K,headers:{"x-socket-id":Y}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",lt)}catch(W){console.error("Error uploading files:",W)}}else{const K=await Promise.all(Array.from(N).map(async W=>({name:W.name,thumbnail:W.type.startsWith("image/")?await Gt(W):null})));C.current={...C.current,...Object.fromEntries(Array.from(N).map(W=>[W.name,W])),...Object.fromEntries(K.filter(({thumbnail:W})=>W).map(({name:W,thumbnail:Ut})=>[`${W}_thumbnail`,Ut]))},K.forEach(({name:W,thumbnail:Ut})=>{if(Ut){const ot=URL.createObjectURL(Ut);ht.current[W]=ot,console.log(`Cached thumbnail URL for ${W}: ${ot}`)}}),console.log("Stored files in localFilesRef:",Object.keys(C.current)),T.emit("file-list",{code:U,files:lt}),console.log("Shared file list:",lt)}i(K=>[...K,...lt]),Ct.current.value=""},ne=async N=>{if(ct.current.has(N.name)&&(ct.current.delete(N.name),console.log(`Cleared previous cancel for ${N.name}, starting new request to ${N.peerId}`)),E[N.name]?.status==="downloading"){nt(N.name,N.peerId),console.log(`Canceling download for ${N.name}`);return}if(B(lt=>({...lt,[N.name]:{status:"downloading",progress:0,total:N.size,peerId:N.peerId}})),console.log(`Starting download for ${N.name}, downloadStates:`,{...E,[N.name]:{status:"downloading",progress:0}}),g){const lt=document.createElement("a");lt.href=`${gt}/uploads/${N.path.split("/").pop()}`,lt.download=N.name,lt.click(),console.log(`Downloading file via server: ${N.name}`),B(K=>({...K,[N.name]:{status:"completed",progress:100}}))}else if(N.peerId===Y){const lt=C.current[N.name]||r.find(K=>K.name===N.name)?.file;if(lt){const K=URL.createObjectURL(lt),W=document.createElement("a");W.href=K,W.download=N.name,W.click(),URL.revokeObjectURL(K),console.log(`Downloaded local file: ${N.name}`),B(Ut=>({...Ut,[N.name]:{status:"saved",progress:100}}))}else console.error(`Local file not found: ${N.name}`)}else c[N.peerId]?.readyState==="open"?(s.current[N.peerId].send(JSON.stringify({type:"request-file",name:N.name})),console.log(`Requested file ${N.name} from ${N.peerId}`)):console.error(`Data channel not open for peer ${N.peerId}`)},rt=N=>{const lt=N.split(".").pop().toLowerCase();return`/imgs/${{exe:"executable.png",bin:"executable.png",dll:"executable.png",jpg:"picture.png",jpeg:"picture.png",png:"picture.png",gif:"picture.png",mp3:"audio.png",wav:"audio.png",ogg:"audio.png",mp4:"video.png",mkv:"video.png",avi:"video.png",mov:"video.png",wma:"video.png",pdf:"unknown.png",doc:"unknown.png",docx:"unknown.png",txt:"text.png",log:"text.png",bat:"script.png",sh:"script.png",html:"html.png",xml:"xml.png",zip:"archive.png",gz:"archive.png",bz:"archive.png"}[lt]||"unknown.png"}`},ae=N=>N?N<1024?`${N} B`:N<1024*1024?`${(N/1024).toFixed(2)} KB`:N<1024*1024*1024?`${(N/(1024*1024)).toFixed(2)} MB`:`${(N/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",et=N=>{if(!N.thumbnail)return console.log(`No thumbnail flag for ${N.name}`),null;if(ht.current[N.name])return ht.current[N.name];const lt=C.current[`${N.name}_thumbnail`];if(lt){const K=URL.createObjectURL(lt);return ht.current[N.name]=K,console.log(`Generated and cached thumbnail URL for ${N.name}: ${K}`),K}return console.log(`No thumbnail available for ${N.name}`),null};return mt.useEffect(()=>()=>{Object.values(ht.current).forEach(N=>{N&&URL.revokeObjectURL(N)}),ht.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),tt.jsxs("div",{children:[tt.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),tt.jsx("input",{type:"file",multiple:!0,ref:Ct,onChange:$t,className:"mb-2"}),tt.jsx("ul",{className:"space-y-2",children:r.map((N,lt)=>(E[N.name]?.status==="downloading"||E[N.name]?.status,tt.jsxs("li",{className:"flex items-center space-x-2",children:[N.thumbnail&&tt.jsx("img",{src:et(N)||rt(N.name),alt:`${N.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${N.name}, requesting...`)}})||tt.jsx("img",{src:rt(N.name),alt:"file icon",className:"w-6 h-6",onError:K=>K.target.style.display="none"}),tt.jsxs("span",{children:["(",ae(N.size),")"]}),N.peerId!==Y&&tt.jsx("button",{onClick:()=>ne(N),className:`ml-2 p-2 rounded ${E[N.name]?.status==="saved"?"bg-green-500 text-white":E[N.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-[#FFE4E6] text-[#4B0082] hover:bg-[#4B0082] hover:text-[#FFE4E6]"}`,children:E[N.name]?.status==="saved"?"Saved ✓":E[N.name]?.status==="downloading"?`Cancel ${(E[N.name]?.progress||0).toFixed(2)}%`:"Download"}),tt.jsx("span",{children:N.name})]},lt)))})]})}function U0({textHistory:r,setTextHistory:i,dataChannels:c,useFallback:s,socket:g,code:T}){const[U,Y]=mt.useState(""),C=()=>{U.trim()&&(console.log("handleSend:",{dataChannels:c,useFallback:s,code:T}),!s&&Object.keys(c).length>0?(Object.keys(c).forEach(B=>{c[B].readyState==="open"&&(c[B].send(JSON.stringify({type:"text",text:U})),console.log(`Sent text to peer ${B}`))}),i(B=>[...B,U])):s&&g&&T&&(g.emit("text",{code:T,text:U}),console.log(`Sending text via socket for room ${T}: ${U}`),i(B=>[...B,U])),Y(""))},E=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),C())};return tt.jsxs("div",{className:"mb-4",children:[tt.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),tt.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:U,onChange:B=>Y(B.target.value),onKeyDown:E,placeholder:"Enter text to share"}),tt.jsx("button",{className:"mt-2 px-4 py-2 bg-purple-900 text-pink-100 rounded hover:bg-purple-700",onClick:C,children:"Send"}),tt.jsxs("div",{className:"mt-2",children:[tt.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),tt.jsx("ul",{className:"list-disc pl-5",children:r?.length>0?r.map((B,nt)=>tt.jsx("li",{children:tt.jsx("pre",{children:B})},nt)):tt.jsx("li",{children:tt.jsx("pre",{children:"No messages yet"})})})]})]})}const kh="",Z=ci("/",{withCredentials:!0});function x0(){const[r,i]=mt.useState(""),[c,s]=mt.useState(!1),[g,T]=mt.useState(!1),[U,Y]=mt.useState(!1),[C,E]=mt.useState(90),[B,nt]=mt.useState(""),[ct,gt]=mt.useState([]),[Ct,ht]=mt.useState(""),[Gt,$t]=mt.useState({}),[ne,rt]=mt.useState([]),[ae,et]=mt.useState({}),N=mt.useRef({}),lt=mt.useRef([]);mt.useRef({});const K=mt.useRef({});mt.useRef({}),mt.useRef({});const W=mt.useRef(new Set),Ut=mt.useRef({}),ot=mt.useRef({}),I=mt.useRef({}),Wt=mt.useRef({}),St=mt.useRef({}),Mt=mt.useRef({}),A=async()=>{try{const y=await fetch(`${kh}/api/generate-code`,{method:"GET",credentials:"include"}),{code:M,error:q}=await y.json();if(q){ht(q);return}i(M),s(!0),ht(""),Z.emit("create",M)}catch(y){console.error("Error generating code:",y),ht("Failed to generate room code")}},w=y=>{if(!y){ht("Please enter a room code");return}i(y),ht(""),Z.emit("join",y)},J=()=>{Z.emit("leave",r),i(""),s(!1),T(!1),Y(!1),E(90),rt([]),nt(""),gt([]),ht(""),$t({}),N.current={},Object.values(ot.current).forEach(y=>y.close()),ot.current={},I.current={},Object.keys(St.current).forEach(y=>clearTimeout(St.current[y])),St.current={}},pt=(y,M,q=!1)=>{if(!y||y===Z.id||y==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${y}`);return}if(U){console.log(`Skipping WebRTC setup for ${y} due to fallback mode`);return}if(ot.current[y]){console.log(`WebRTC connection already exists for ${y}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${y} (${q?"offerer":"answerer"}, attempt ${K.current[y]||1}/3)`);const O=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"turn:openrelay.metered.ca:80",username:"openrelay.project",credential:"openrelayproject"},{urls:"turn:openrelay.metered.ca:443",username:"openrelay.project",credential:"openrelayproject"}]});K.current[y]=(K.current[y]||0)+1,ot.current[y]=O,O.ondatachannel=Q=>{const G=Q.channel;if(G.label==="file-share")I.current[y]=G,G.onopen=()=>{console.log(`Main DataChannel opened with peer ${y}`),T(!0),E(0),Object.keys(St.current).forEach(Tt=>{console.log(`Clearing timeout for ${Tt}`),clearTimeout(St.current[Tt])}),St.current={},K.current[y]=0,I.current.true&&delete I.current.true,$t({...I.current});const P=lt.current.map(Tt=>({name:Tt.name,size:Tt.size,peerId:Tt.peerId,thumbnail:!!N.current[`${Tt.name}_thumbnail`]}));G.send(JSON.stringify({type:"file-list",files:P})),P.forEach(Tt=>{Tt.thumbnail&&Tt.peerId!==Z.id&&!N.current[`${Tt.name}_thumbnail`]&&d(Tt)})},G.onmessage=P=>H(y,P),G.onclose=()=>{console.log(`Main DataChannel closed with peer ${y}`),delete ot.current[y],$t({...I.current})},G.onerror=P=>{console.error(`Main DataChannel error with ${y}:`,P)};else if(G.label.startsWith("file-")){const P=G.label.slice(5);console.log(`Received file channel for ${P} from ${y}`);let Tt=[],_e=0,He=!1;G.onmessage=xl=>{if(He)return;const Pl=xl.data;try{if(typeof Pl=="string"){const Bt=JSON.parse(Pl);if(Bt.type==="file-start")_e=Bt.size,Tt=[],et(we=>({...we,[P]:{status:"downloading",progress:0,total:Bt.size,received:0,peerId:y}})),console.log(`File start on channel: ${P}, size ${Bt.size}`);else if(Bt.type==="file-end"){if(Tt.length>0){const we=Tt.reduce((oe,Ze)=>oe+Ze.byteLength,0);if(we===_e){const oe=P.match(/\.(png|jpe?g)$/i)?`image/${P.split(".").pop().toLowerCase()}`:"application/octet-stream",Ze=new Blob(Tt,{type:oe});N.current[P]=Ze;const Cl=URL.createObjectURL(Ze),Ln=document.createElement("a");Ln.href=Cl,Ln.download=P,Ln.click(),URL.revokeObjectURL(Cl),et(Ga=>({...Ga,[P]:{status:"saved",progress:100}})),console.log(`File ${P} saved`)}else console.error(`Size mismatch for ${P}: ${we}/${_e}`),et(oe=>({...oe,[P]:{status:"error",progress:0}}))}G.close()}else Bt.type==="file-cancel"&&(He=!0,et(we=>({...we,[P]:{status:"canceled",progress:0}})),console.log(`File download canceled for ${P}`),G.close())}else if(Pl instanceof ArrayBuffer){Tt.push(Pl);const Bt=Tt.reduce((oe,Ze)=>oe+Ze.byteLength,0),we=Math.min(100,Bt/_e*100);et(oe=>({...oe,[P]:{...oe[P],progress:we,received:Bt}}))}}catch(Bt){console.error(`Error in file channel message for ${P}:`,Bt)}},G.onclose=()=>{console.log(`File channel closed for ${P}`)},G.onerror=xl=>{console.error(`File channel error for ${P}:`,xl)}}};let L=null;return q&&(L=O.createDataChannel("file-share",{maxRetransmits:99}),I.current[y]=L,L.onopen=()=>{console.log(`Main DataChannel opened with peer ${y} (joiner)`),T(!0),E(0),Object.keys(St.current).forEach(G=>{console.log(`Clearing timeout for ${G}`),clearTimeout(St.current[G])}),St.current={},K.current[y]=0,I.current.true&&delete I.current.true,$t({...I.current});const Q=lt.current.map(G=>({name:G.name,size:G.size,peerId:G.peerId,thumbnail:!!N.current[`${G.name}_thumbnail`]}));L.send(JSON.stringify({type:"file-list",files:Q})),Q.forEach(G=>{G.thumbnail&&G.peerId!==Z.id&&!N.current[`${G.name}_thumbnail`]&&d(G)})},L.onmessage=Q=>H(y,Q),L.onclose=()=>{console.log(`Main DataChannel closed with peer ${y}`),delete ot.current[y],$t({...I.current})},L.onerror=Q=>{console.error(`Main DataChannel error with ${y}:`,Q)}),O.onicecandidate=Q=>{Q.candidate&&M&&(Z.emit("ice-candidate",{code:M,candidate:Q.candidate,to:y,from:Z.id}),console.log(`Sent ICE candidate to ${y} from ${Z.id}: ${Q.candidate.candidate}`))},O.onicecandidateerror=Q=>{console.error(`ICE candidate error for ${y}:`,Q)},O.oniceconnectionstatechange=()=>{console.log(`ICE state with ${y} (${c?"creator":"joiner"}): ${O.iceConnectionState}`),O.iceConnectionState==="failed"||O.iceConnectionState==="disconnected"?(console.log(`WebRTC ${O.iceConnectionState} with ${y}, retrying in 5s (attempt ${K.current[y]}/3)`),setTimeout(()=>{O.iceConnectionState!=="connected"&&!U&&K.current[y]<3?pt(y,M,q):O.iceConnectionState!=="connected"&&!U&&(console.log(`Max retries reached for ${y}, switching to fallback`),Y(!0),ht("WebRTC connection failed after retries, using server fallback"),E(0),rt([]),gt([]),c&&Z.emit("fallback",{code:M}))},5e3)):O.iceConnectionState==="connected"&&(T(!0),Y(!1),ht(""),clearTimeout(St.current[y]),K.current[y]=0)},q&&O.createOffer().then(Q=>{O.setLocalDescription(Q),Z.emit("offer",{code:M,offer:Q,to:y,from:Z.id}),console.log(`Sent offer to ${y} for room ${M}`)}).catch(Q=>{console.error(`Error creating offer for ${y}:`,Q),ht("Failed to create WebRTC offer"),Y(!0),E(0),rt([]),gt([]),c&&Z.emit("fallback",{code:M})}),()=>clearTimeout(St.current[y])};mt.useEffect(()=>(Z.on("peer-joined",y=>{if(!y||!y.peerId||y.peerId==="true"){console.error("Invalid peer-joined data:",y);return}const{peerId:M}=y;console.log(`Peer ${M} joined room ${r}`),pt(M,r,!0)}),Z.on("offer",async({code:y,offer:M,to:q,from:O})=>{if(q!==Z.id||U){console.log(`Ignoring offer from ${O} (to=${q}, socket.id=${Z.id}, useFallback=${U})`);return}console.log(`Received offer from ${O} for room ${y}`),ot.current[O]||(console.log(`No existing connection for ${O}, setting up as answerer`),pt(O,y,!1));try{const L=ot.current[O];await L.setRemoteDescription(new RTCSessionDescription(M));const Q=await L.createAnswer();await L.setLocalDescription(Q),Z.emit("answer",{code:y,answer:Q,to:O,from:Z.id}),console.log(`Sent answer to ${O} from ${Z.id} for room ${y}`)}catch(L){console.error(`Error handling offer from ${O}:`,L),ht("Failed to process WebRTC offer"),Y(!0),E(0),rt([]),gt([]),c&&Z.emit("fallback",{roomCode})}}),Z.on("answer",async({code:y,answer:M,to:q,from:O})=>{if(q!==Z.id||U){console.log(`Ignoring answer from ${O} (to=${q}, socket.id=${Z.id}, useFallback=${U})`);return}if(console.log(`Received answer from ${O} for room ${y}`),ot.current[O])try{await ot.current[O].setRemoteDescription(new RTCSessionDescription(M)),console.log(`Successfully set remote description for answer from ${O}`)}catch(L){console.error(`Error handling answer from ${O}:`,L),ht("Failed to process WebRTC answer"),Y(!0),E(0),rt([]),gt([]),c&&Z.emit("fallback",{roomCode})}else console.warn(`No peer connection found for ${O} when receiving answer`)}),Z.on("room-status",({useFallback:y,textHistory:M,files:q})=>{console.log(`Received room-status: useFallback=${y}, textHistory=`,M),Y(y),gt(M||[]),rt(q||[]),y&&(T(!0),E(0),ht("Room is in fallback mode"))}),Z.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),Y(!0),ht("Room switched to fallback mode"),E(0),rt([]),gt([]),Object.values(ot.current).forEach(y=>y.close()),ot.current={},I.current={},Wt.current={},Object.keys(St.current).forEach(y=>clearTimeout(St.current[y])),St.current={},K.current={}}),Z.on("peer-left",y=>{const{peerId:M}=y;ot.current[M]&&(ot.current[M].close(),delete ot.current[M],delete I.current[M],delete St.current[M],Object.keys(Wt.current).forEach(q=>{q.startsWith(`${M}-`)&&(Wt.current[q]?.close(),delete Wt.current[q])}),$t({...I.current}),console.log(`Peer ${M} left room`),rt(q=>q.filter(O=>O.peerId!==M))),c&&Object.keys(ot.current).length===0&&(T(!1),rt([]),gt([]),U?(Y(!1),ht("")):E(90))}),Z.on("ice-candidate",async({candidate:y,from:M,to:q})=>{if(q!==Z.id){console.log(`Ignoring ICE candidate from ${M} (to=${q})`);return}if(console.log(`Received ICE candidate from ${M}`),ot.current[M])try{await ot.current[M].addIceCandidate(new RTCIceCandidate(y)),console.log(`Added ICE candidate from ${M}`)}catch(O){console.error(`Error adding ICE candidate from ${M}:`,O)}else console.warn(`No peer connection found for ${M} when receiving ICE candidate`)}),Z.on("error",y=>{ht(y),i(""),T(!1),s(!1),E(90),rt([]),nt(""),gt([]),$t({}),Object.values(ot.current).forEach(M=>M.close()),ot.current={},I.current={},Object.keys(St.current).forEach(M=>clearTimeout(St.current[M])),St.current={},console.log("Server error:",y)}),Z.on("files",y=>{console.log("Received files:",y),rt(y)}),Z.on("file",({name:y,path:M,peerId:q,size:O})=>{console.log(`Received file via socket: ${y}, uploader: ${q}`),rt(L=>[...L,{name:y,path:M,peerId:q,size:O}])}),Z.on("text-history",y=>{console.log(`Received text history for room ${r}:`,y),gt(y||[])}),Z.on("text",({text:y})=>{console.log(`Received text via socket for room ${r}:`,y),gt(M=>[...M,y])}),Z.on("file-list",({files:y})=>{rt(M=>{const q=y.filter(O=>!M.some(L=>L.name===O.name&&L.peerId===O.peerId));return q.forEach(O=>{O.thumbnail&&!N.current[`${O.name}_thumbnail`]?(console.log(`Requesting thumbnail for ${O.name} from ${O.peerId}`),d(O)):O.thumbnail&&console.log(`Thumbnail for ${O.name} already cached, skipping request`)}),console.log("Received file-list from server:",y),[...M,...q]})}),()=>{Z.off("peer-joined"),Z.off("offer"),Z.off("answer"),Z.off("room-status"),Z.off("fallback"),Z.off("peer-left"),Z.off("ice-candidate"),Z.off("error"),Z.off("files"),Z.off("file"),Z.off("text"),Z.off("text-history"),Z.off("file-list")}),[r,c,U]),mt.useEffect(()=>{if(c&&C>0&&!g&&!U){const y=setInterval(()=>{E(M=>M<=1?(i(""),s(!1),Z.emit("leave",r),ht("No one joined the room"),0):M-1)},1e3);return()=>clearInterval(y)}},[c,C,g,U,r]),mt.useEffect(()=>{lt.current=ne,console.log("Updated filesRef:",lt.current)},[ne]);const d=y=>{if(y.thumbnail&&y.peerId!==Z.id&&!U){const M=(Ut.current[y.name]||0)+1;if(M>3){console.error(`Max retries reached for thumbnail ${y.name}`);return}const q=I.current[y.peerId];q?.readyState==="open"?(Ut.current[y.name]=M,q.send(JSON.stringify({type:"request-thumbnail",fileName:y.name})),console.log(`Requested thumbnail for ${y.name} from ${y.peerId} via WebRTC (retry ${M})`)):(console.warn(`Data channel not ready for ${y.peerId}, retrying in 1s`),setTimeout(()=>d(y),1e3))}else console.error(`Cannot request thumbnail for ${y.name}:`,{isThumbnail:y.thumbnail,isLocal:y.peerId===Z.id,useFallback:U,channelOpen:I.current[y.peerId]?.readyState})},x=async(y,M,q,O)=>{if(W.current.has(M)&&(W.current.delete(M),console.log(`Cleared previous cancel for ${M}, starting new send to ${y}`)),!O||O.readyState!=="open"){console.error(`Channel not open for ${y}`);return}O.send(JSON.stringify({type:"file-start",name:M,size:q.size}));const L=16384;let Q=0;for(console.log(`--- offset : ${Q} --- file.size : ${q.size}`);Q<q.size;){if(W.current.has(M)){console.log(`Canceled sending ${M} to ${y}`),O.send(JSON.stringify({type:"file-cancel",name:M}));return}const G=q.slice(Q,Q+L);if(console.log(`--- slice.size : ${G.size}`),G.size===0)break;try{const P=await new Promise((Tt,_e)=>{const He=new FileReader;He.onload=xl=>Tt(xl.target.result),He.onerror=_e,He.readAsArrayBuffer(G)});if(W.current.has(M)){console.log(`Canceled sending ${M} to ${y} during read`),O.send(JSON.stringify({type:"file-cancel",name:M}));return}O.send(P),Q+=P.byteLength}catch(P){console.error(`Error reading ${M}:`,P);return}}O.send(JSON.stringify({type:"file-end",name:M})),console.log(`Finished sending ${M} to ${y}`)},j=(y,M)=>{W.current.has(y)||(W.current.add(y),I.current[M]?.readyState==="open"&&(I.current[M].send(JSON.stringify({type:"cancel-download",fileName:y})),console.log(`Sent cancel-download for ${y} to ${M}`)),et(q=>{const O=q[y]?.status==="saved",{[y]:L,...Q}=q;return O?{...Q,[y]:{status:"saved",progress:100,peerId:M}}:Q}),Mt.current[M]?.fileName===y&&delete Mt.current[M],console.log(`Canceled download for ${y} locally`))},H=(y,M)=>{const q=M.data;try{if(typeof q=="string"){const O=JSON.parse(q);if(O.type==="text")gt(L=>[...L,O.text]),console.log(`Received text via WebRTC from ${y}: ${O.text}`);else if(O.type==="request-file"){const L=N.current[O.name];if(L){const Q=ot.current[y];if(Q){const G=`file-${O.name}`,P=Q.createDataChannel(G),Tt=`${y}-${O.name}`;Wt.current[Tt]=P,P.onopen=()=>{console.log(`File channel opened for ${O.name} to ${y}`),x(y,O.name,L,P)},P.onclose=()=>{delete Wt.current[Tt],console.log(`File channel closed for ${O.name}`)},P.onerror=_e=>{console.error(`File channel error for ${O.name}:`,_e)}}else console.error(`No peer connection for ${y}`)}else console.error(`File not found: ${O.name}`)}else if(O.type==="request-thumbnail"){const L=N.current[`${O.fileName}_thumbnail`];if(L&&I.current[y]?.readyState==="open"){const Q=new FileReader;Q.onload=()=>{I.current[y].send(JSON.stringify({type:"thumbnail",fileName:O.fileName})),I.current[y].send(Q.result),console.log(`Sent thumbnail for ${O.fileName} to ${y}`)},Q.readAsArrayBuffer(L)}else console.error(`Thumbnail not found or channel closed for ${O.fileName}, peerId: ${y}, channel: ${I.current[y]?.readyState}`)}else O.type==="thumbnail"?Mt.current[y]={type:"thumbnail",fileName:O.fileName}:O.type==="cancel-download"?(W.current.add(O.fileName),console.log(`Received cancel request for ${O.fileName} from ${y}`)):O.type==="file-list"&&rt(L=>{const Q=O.files.filter(G=>!L.some(P=>P.name===G.name&&P.peerId===G.peerId));return Q.forEach(G=>{G.thumbnail&&!N.current[`${G.name}_thumbnail`]?(console.log(`Requesting thumbnail for ${G.name} from ${G.peerId}`),d(G)):G.thumbnail&&console.log(`Thumbnail for ${G.name} already cached, skipping request`)}),console.log("Received file-list from server:",O.files),[...L,...Q]})}else if(q instanceof ArrayBuffer){const O=Mt.current[y];if(O){if(O.type==="thumbnail"){const L=new Blob([q],{type:"image/jpeg"});N.current[`${O.fileName}_thumbnail`]=L,console.log(`Received thumbnail for ${O.fileName} from ${y}, size: ${L.size}`),rt(Q=>Q.map(G=>G.name===O.fileName&&G.peerId!==Z.id?{...G,thumbnail:!0}:G)),delete Mt.current[y]}else if(O.type==="file"){if(W.current.has(O.fileName)){console.log(`Ignoring chunk for canceled file ${O.fileName}`);return}O.chunks.push(q);const L=O.chunks.reduce((Q,G)=>Q+G.byteLength,0);et(Q=>{const G=O.fileName;if(W.current.has(G))return Q;if(L>O.expectedSize)return console.warn(`Received size exceeds expected for ${G}: ${L}/${O.expectedSize}`),Q;const P=Math.min(100,L/O.expectedSize*100);return{...Q,[G]:{...Q[G],status:"downloading",progress:P,received:L}}})}}else console.warn(`Unexpected ArrayBuffer from ${y}, no current receive state`)}}catch(O){console.error(`Error processing message from ${y}:`,O)}};return tt.jsxs("div",{className:"container mx-auto p-4",children:[tt.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Quick File Share"}),Ct&&tt.jsx("p",{className:"text-red-500 mb-2",children:Ct}),tt.jsx(M0,{code:r,isConnected:g,isRoomCreator:c,countdown:C,onCreateRoom:A,onJoinRoom:w}),r&&tt.jsxs(tt.Fragment,{children:[tt.jsx("button",{className:"mb-4 px-4 py-2 bg-purple-900 text-pink-100 rounded hover:bg-purple-700",onClick:J,children:c?"Close Room":"Leave Room"}),tt.jsx(U0,{textHistory:ct,setTextHistory:gt,dataChannels:Gt,useFallback:U,socket:Z,code:r}),tt.jsx(N0,{files:ne,setFiles:rt,dataChannels:Gt,dataChannelsRef:I,useFallback:U,socket:Z,code:r,socketId:Z.id,localFilesRef:N,downloadStates:ae,setDownloadStates:et,cancelDownload:j,cancelRequestsRef:W,SERVER_URL:kh}),U&&tt.jsx("p",{className:"text-red-500",children:"Using server fallback"})]})]})}qm.createRoot(document.getElementById("root")).render(tt.jsx(mt.StrictMode,{children:tt.jsx(x0,{})}));
