(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))c(m);new MutationObserver(m=>{for(const g of m)if(g.type==="childList")for(const T of g.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&c(T)}).observe(document,{childList:!0,subtree:!0});function r(m){const g={};return m.integrity&&(g.integrity=m.integrity),m.referrerPolicy&&(g.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?g.credentials="include":m.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function c(m){if(m.ep)return;m.ep=!0;const g=r(m);fetch(m.href,g)}})();function u0(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var jc={exports:{}},tu={};/**
 * @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 ld;function i0(){if(ld)return tu;ld=1;var o=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(c,m,g){var T=null;if(g!==void 0&&(T=""+g),m.key!==void 0&&(T=""+m.key),"key"in m){g={};for(var R in m)R!=="key"&&(g[R]=m[R])}else g=m;return m=g.ref,{$$typeof:o,type:c,key:T,ref:m!==void 0?m:null,props:g}}return tu.Fragment=i,tu.jsx=r,tu.jsxs=r,tu}var ad;function r0(){return ad||(ad=1,jc.exports=i0()),jc.exports}var V=r0(),Yc={exports:{}},gt={};/**
 * @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 ud;function c0(){if(ud)return gt;ud=1;var o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),z=Symbol.iterator;function M(p){return p===null||typeof p!="object"?null:(p=z&&p[z]||p["@@iterator"],typeof p=="function"?p:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,Z={};function ft(p,U,Q){this.props=p,this.context=U,this.refs=Z,this.updater=Q||k}ft.prototype.isReactComponent={},ft.prototype.setState=function(p,U){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,U,"setState")},ft.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function W(){}W.prototype=ft.prototype;function Nt(p,U,Q){this.props=p,this.context=U,this.refs=Z,this.updater=Q||k}var lt=Nt.prototype=new W;lt.constructor=Nt,$(lt,ft.prototype),lt.isPureReactComponent=!0;var Yt=Array.isArray,at={H:null,A:null,T:null,S:null,V:null},Qt=Object.prototype.hasOwnProperty;function mt(p,U,Q,j,P,ut){return Q=ut.ref,{$$typeof:o,type:p,key:U,ref:Q!==void 0?Q:null,props:ut}}function q(p,U){return mt(p.type,U,void 0,void 0,void 0,p.props)}function ot(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function yt(p){var U={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(Q){return U[Q]})}var ht=/\/+/g;function Tt(p,U){return typeof p=="object"&&p!==null&&p.key!=null?yt(""+p.key):U.toString(36)}function Gt(){}function fe(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Gt,Gt):(p.status="pending",p.then(function(U){p.status==="pending"&&(p.status="fulfilled",p.value=U)},function(U){p.status==="pending"&&(p.status="rejected",p.reason=U)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function jt(p,U,Q,j,P){var ut=typeof p;(ut==="undefined"||ut==="boolean")&&(p=null);var ct=!1;if(p===null)ct=!0;else switch(ut){case"bigint":case"string":case"number":ct=!0;break;case"object":switch(p.$$typeof){case o:case i:ct=!0;break;case O:return ct=p._init,jt(ct(p._payload),U,Q,j,P)}}if(ct)return P=P(p),ct=j===""?"."+Tt(p,0):j,Yt(P)?(Q="",ct!=null&&(Q=ct.replace(ht,"$&/")+"/"),jt(P,U,Q,"",function(ge){return ge})):P!=null&&(ot(P)&&(P=q(P,Q+(P.key==null||p&&p.key===P.key?"":(""+P.key).replace(ht,"$&/")+"/")+ct)),U.push(P)),1;ct=0;var Dt=j===""?".":j+":";if(Yt(p))for(var bt=0;bt<p.length;bt++)j=p[bt],ut=Dt+Tt(j,bt),ct+=jt(j,U,Q,ut,P);else if(bt=M(p),typeof bt=="function")for(p=bt.call(p),bt=0;!(j=p.next()).done;)j=j.value,ut=Dt+Tt(j,bt++),ct+=jt(j,U,Q,ut,P);else if(ut==="object"){if(typeof p.then=="function")return jt(fe(p),U,Q,j,P);throw U=String(p),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ct}function x(p,U,Q){if(p==null)return p;var j=[],P=0;return jt(p,j,"","",function(ut){return U.call(Q,ut,P++)}),j}function G(p){if(p._status===-1){var U=p._result;U=U(),U.then(function(Q){(p._status===0||p._status===-1)&&(p._status=1,p._result=Q)},function(Q){(p._status===0||p._status===-1)&&(p._status=2,p._result=Q)}),p._status===-1&&(p._status=0,p._result=U)}if(p._status===1)return p._result.default;throw p._result}var I=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)};function vt(){}return gt.Children={map:x,forEach:function(p,U,Q){x(p,function(){U.apply(this,arguments)},Q)},count:function(p){var U=0;return x(p,function(){U++}),U},toArray:function(p){return x(p,function(U){return U})||[]},only:function(p){if(!ot(p))throw Error("React.Children.only expected to receive a single React element child.");return p}},gt.Component=ft,gt.Fragment=r,gt.Profiler=m,gt.PureComponent=Nt,gt.StrictMode=c,gt.Suspense=v,gt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at,gt.__COMPILER_RUNTIME={__proto__:null,c:function(p){return at.H.useMemoCache(p)}},gt.cache=function(p){return function(){return p.apply(null,arguments)}},gt.cloneElement=function(p,U,Q){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var j=$({},p.props),P=p.key,ut=void 0;if(U!=null)for(ct in U.ref!==void 0&&(ut=void 0),U.key!==void 0&&(P=""+U.key),U)!Qt.call(U,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&U.ref===void 0||(j[ct]=U[ct]);var ct=arguments.length-2;if(ct===1)j.children=Q;else if(1<ct){for(var Dt=Array(ct),bt=0;bt<ct;bt++)Dt[bt]=arguments[bt+2];j.children=Dt}return mt(p.type,P,void 0,void 0,ut,j)},gt.createContext=function(p){return p={$$typeof:T,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:g,_context:p},p},gt.createElement=function(p,U,Q){var j,P={},ut=null;if(U!=null)for(j in U.key!==void 0&&(ut=""+U.key),U)Qt.call(U,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(P[j]=U[j]);var ct=arguments.length-2;if(ct===1)P.children=Q;else if(1<ct){for(var Dt=Array(ct),bt=0;bt<ct;bt++)Dt[bt]=arguments[bt+2];P.children=Dt}if(p&&p.defaultProps)for(j in ct=p.defaultProps,ct)P[j]===void 0&&(P[j]=ct[j]);return mt(p,ut,void 0,void 0,null,P)},gt.createRef=function(){return{current:null}},gt.forwardRef=function(p){return{$$typeof:R,render:p}},gt.isValidElement=ot,gt.lazy=function(p){return{$$typeof:O,_payload:{_status:-1,_result:p},_init:G}},gt.memo=function(p,U){return{$$typeof:d,type:p,compare:U===void 0?null:U}},gt.startTransition=function(p){var U=at.T,Q={};at.T=Q;try{var j=p(),P=at.S;P!==null&&P(Q,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(vt,I)}catch(ut){I(ut)}finally{at.T=U}},gt.unstable_useCacheRefresh=function(){return at.H.useCacheRefresh()},gt.use=function(p){return at.H.use(p)},gt.useActionState=function(p,U,Q){return at.H.useActionState(p,U,Q)},gt.useCallback=function(p,U){return at.H.useCallback(p,U)},gt.useContext=function(p){return at.H.useContext(p)},gt.useDebugValue=function(){},gt.useDeferredValue=function(p,U){return at.H.useDeferredValue(p,U)},gt.useEffect=function(p,U,Q){var j=at.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return j.useEffect(p,U)},gt.useId=function(){return at.H.useId()},gt.useImperativeHandle=function(p,U,Q){return at.H.useImperativeHandle(p,U,Q)},gt.useInsertionEffect=function(p,U){return at.H.useInsertionEffect(p,U)},gt.useLayoutEffect=function(p,U){return at.H.useLayoutEffect(p,U)},gt.useMemo=function(p,U){return at.H.useMemo(p,U)},gt.useOptimistic=function(p,U){return at.H.useOptimistic(p,U)},gt.useReducer=function(p,U,Q){return at.H.useReducer(p,U,Q)},gt.useRef=function(p){return at.H.useRef(p)},gt.useState=function(p){return at.H.useState(p)},gt.useSyncExternalStore=function(p,U,Q){return at.H.useSyncExternalStore(p,U,Q)},gt.useTransition=function(){return at.H.useTransition()},gt.version="19.1.1",gt}var id;function au(){return id||(id=1,Yc.exports=c0()),Yc.exports}var rt=au(),Qc={exports:{}},eu={},Gc={exports:{}},Xc={};/**
 * @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 rd;function s0(){return rd||(rd=1,function(o){function i(x,G){var I=x.length;x.push(G);t:for(;0<I;){var vt=I-1>>>1,p=x[vt];if(0<m(p,G))x[vt]=G,x[I]=p,I=vt;else break t}}function r(x){return x.length===0?null:x[0]}function c(x){if(x.length===0)return null;var G=x[0],I=x.pop();if(I!==G){x[0]=I;t:for(var vt=0,p=x.length,U=p>>>1;vt<U;){var Q=2*(vt+1)-1,j=x[Q],P=Q+1,ut=x[P];if(0>m(j,I))P<p&&0>m(ut,j)?(x[vt]=ut,x[P]=I,vt=P):(x[vt]=j,x[Q]=I,vt=Q);else if(P<p&&0>m(ut,I))x[vt]=ut,x[P]=I,vt=P;else break t}}return G}function m(x,G){var I=x.sortIndex-G.sortIndex;return I!==0?I:x.id-G.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;o.unstable_now=function(){return g.now()}}else{var T=Date,R=T.now();o.unstable_now=function(){return T.now()-R}}var v=[],d=[],O=1,z=null,M=3,k=!1,$=!1,Z=!1,ft=!1,W=typeof setTimeout=="function"?setTimeout:null,Nt=typeof clearTimeout=="function"?clearTimeout:null,lt=typeof setImmediate<"u"?setImmediate:null;function Yt(x){for(var G=r(d);G!==null;){if(G.callback===null)c(d);else if(G.startTime<=x)c(d),G.sortIndex=G.expirationTime,i(v,G);else break;G=r(d)}}function at(x){if(Z=!1,Yt(x),!$)if(r(v)!==null)$=!0,Qt||(Qt=!0,Tt());else{var G=r(d);G!==null&&jt(at,G.startTime-x)}}var Qt=!1,mt=-1,q=5,ot=-1;function yt(){return ft?!0:!(o.unstable_now()-ot<q)}function ht(){if(ft=!1,Qt){var x=o.unstable_now();ot=x;var G=!0;try{t:{$=!1,Z&&(Z=!1,Nt(mt),mt=-1),k=!0;var I=M;try{e:{for(Yt(x),z=r(v);z!==null&&!(z.expirationTime>x&&yt());){var vt=z.callback;if(typeof vt=="function"){z.callback=null,M=z.priorityLevel;var p=vt(z.expirationTime<=x);if(x=o.unstable_now(),typeof p=="function"){z.callback=p,Yt(x),G=!0;break e}z===r(v)&&c(v),Yt(x)}else c(v);z=r(v)}if(z!==null)G=!0;else{var U=r(d);U!==null&&jt(at,U.startTime-x),G=!1}}break t}finally{z=null,M=I,k=!1}G=void 0}}finally{G?Tt():Qt=!1}}}var Tt;if(typeof lt=="function")Tt=function(){lt(ht)};else if(typeof MessageChannel<"u"){var Gt=new MessageChannel,fe=Gt.port2;Gt.port1.onmessage=ht,Tt=function(){fe.postMessage(null)}}else Tt=function(){W(ht,0)};function jt(x,G){mt=W(function(){x(o.unstable_now())},G)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(x){x.callback=null},o.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<x?Math.floor(1e3/x):5},o.unstable_getCurrentPriorityLevel=function(){return M},o.unstable_next=function(x){switch(M){case 1:case 2:case 3:var G=3;break;default:G=M}var I=M;M=G;try{return x()}finally{M=I}},o.unstable_requestPaint=function(){ft=!0},o.unstable_runWithPriority=function(x,G){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var I=M;M=x;try{return G()}finally{M=I}},o.unstable_scheduleCallback=function(x,G,I){var vt=o.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?vt+I:vt):I=vt,x){case 1:var p=-1;break;case 2:p=250;break;case 5:p=1073741823;break;case 4:p=1e4;break;default:p=5e3}return p=I+p,x={id:O++,callback:G,priorityLevel:x,startTime:I,expirationTime:p,sortIndex:-1},I>vt?(x.sortIndex=I,i(d,x),r(v)===null&&x===r(d)&&(Z?(Nt(mt),mt=-1):Z=!0,jt(at,I-vt))):(x.sortIndex=p,i(v,x),$||k||($=!0,Qt||(Qt=!0,Tt()))),x},o.unstable_shouldYield=yt,o.unstable_wrapCallback=function(x){var G=M;return function(){var I=M;M=G;try{return x.apply(this,arguments)}finally{M=I}}}}(Xc)),Xc}var cd;function o0(){return cd||(cd=1,Gc.exports=s0()),Gc.exports}var $c={exports:{}},de={};/**
 * @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 sd;function f0(){if(sd)return de;sd=1;var o=au();function i(v){var d="https://react.dev/errors/"+v;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)d+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+v+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},m=Symbol.for("react.portal");function g(v,d,O){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:z==null?null:""+z,children:v,containerInfo:d,implementation:O}}var T=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(v,d){if(v==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,de.createPortal=function(v,d){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(i(299));return g(v,d,null,O)},de.flushSync=function(v){var d=T.T,O=c.p;try{if(T.T=null,c.p=2,v)return v()}finally{T.T=d,c.p=O,c.d.f()}},de.preconnect=function(v,d){typeof v=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,c.d.C(v,d))},de.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},de.preinit=function(v,d){if(typeof v=="string"&&d&&typeof d.as=="string"){var O=d.as,z=R(O,d.crossOrigin),M=typeof d.integrity=="string"?d.integrity:void 0,k=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;O==="style"?c.d.S(v,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:z,integrity:M,fetchPriority:k}):O==="script"&&c.d.X(v,{crossOrigin:z,integrity:M,fetchPriority:k,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},de.preinitModule=function(v,d){if(typeof v=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var O=R(d.as,d.crossOrigin);c.d.M(v,{crossOrigin:O,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&c.d.M(v)},de.preload=function(v,d){if(typeof v=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var O=d.as,z=R(O,d.crossOrigin);c.d.L(v,O,{crossOrigin:z,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},de.preloadModule=function(v,d){if(typeof v=="string")if(d){var O=R(d.as,d.crossOrigin);c.d.m(v,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:O,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else c.d.m(v)},de.requestFormReset=function(v){c.d.r(v)},de.unstable_batchedUpdates=function(v,d){return v(d)},de.useFormState=function(v,d,O){return T.H.useFormState(v,d,O)},de.useFormStatus=function(){return T.H.useHostTransitionStatus()},de.version="19.1.1",de}var od;function h0(){if(od)return $c.exports;od=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(i){console.error(i)}}return o(),$c.exports=f0(),$c.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 fd;function d0(){if(fd)return eu;fd=1;var o=o0(),i=au(),r=h0();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function g(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function T(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 R(t){if(g(t)!==t)throw Error(c(188))}function v(t){var e=t.alternate;if(!e){if(e=g(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return R(a),t;if(u===l)return R(a),e;u=u.sibling}throw Error(c(188))}if(n.return!==l.return)n=a,l=u;else{for(var s=!1,f=a.child;f;){if(f===n){s=!0,n=a,l=u;break}if(f===l){s=!0,l=a,n=u;break}f=f.sibling}if(!s){for(f=u.child;f;){if(f===n){s=!0,n=u,l=a;break}if(f===l){s=!0,l=u,n=a;break}f=f.sibling}if(!s)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function d(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=d(t),e!==null)return e;t=t.sibling}return null}var O=Object.assign,z=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ft=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),Nt=Symbol.for("react.consumer"),lt=Symbol.for("react.context"),Yt=Symbol.for("react.forward_ref"),at=Symbol.for("react.suspense"),Qt=Symbol.for("react.suspense_list"),mt=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),ot=Symbol.for("react.activity"),yt=Symbol.for("react.memo_cache_sentinel"),ht=Symbol.iterator;function Tt(t){return t===null||typeof t!="object"?null:(t=ht&&t[ht]||t["@@iterator"],typeof t=="function"?t:null)}var Gt=Symbol.for("react.client.reference");function fe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Gt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case $:return"Fragment";case ft:return"Profiler";case Z:return"StrictMode";case at:return"Suspense";case Qt:return"SuspenseList";case ot:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case lt:return(t.displayName||"Context")+".Provider";case Nt:return(t._context.displayName||"Context")+".Consumer";case Yt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case mt:return e=t.displayName||null,e!==null?e:fe(t.type)||"Memo";case q:e=t._payload,t=t._init;try{return fe(t(e))}catch{}}return null}var jt=Array.isArray,x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},vt=[],p=-1;function U(t){return{current:t}}function Q(t){0>p||(t.current=vt[p],vt[p]=null,p--)}function j(t,e){p++,vt[p]=t.current,t.current=e}var P=U(null),ut=U(null),ct=U(null),Dt=U(null);function bt(t,e){switch(j(ct,e),j(ut,t),j(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Mh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Mh(e),t=Bh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(P),j(P,t)}function ge(){Q(P),Q(ut),Q(ct)}function Xn(t){t.memoizedState!==null&&j(Dt,t);var e=P.current,n=Bh(e,t.type);e!==n&&(j(ut,t),j(P,n))}function fl(t){ut.current===t&&(Q(P),Q(ut)),Dt.current===t&&(Q(Dt),Ja._currentValue=I)}var Il=Object.prototype.hasOwnProperty,hl=o.unstable_scheduleCallback,ta=o.unstable_cancelCallback,uu=o.unstable_shouldYield,iu=o.unstable_requestPaint,Ee=o.unstable_now,ea=o.unstable_getCurrentPriorityLevel,na=o.unstable_ImmediatePriority,ru=o.unstable_UserBlockingPriority,$n=o.unstable_NormalPriority,Di=o.unstable_LowPriority,kn=o.unstable_IdlePriority,Ni=o.log,vn=o.unstable_setDisableYieldValue,tn=null,te=null;function $e(t){if(typeof Ni=="function"&&vn(t),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(tn,t)}catch{}}var me=Math.clz32?Math.clz32:la,xi=Math.log,zi=Math.LN2;function la(t){return t>>>=0,t===0?32:31-(xi(t)/zi|0)|0}var Vn=256,Zn=4194304;function ke(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 h(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,u=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var f=l&134217727;return f!==0?(l=f&~u,l!==0?a=ke(l):(s&=f,s!==0?a=ke(s):n||(n=f&~t,n!==0&&(a=ke(n))))):(f=l&~u,f!==0?a=ke(f):s!==0?a=ke(s):n||(n=l&~t,n!==0&&(a=ke(n)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:a}function B(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Y(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 S(){var t=Vn;return Vn<<=1,(Vn&4194048)===0&&(Vn=256),t}function L(){var t=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),t}function st(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function X(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function F(t,e,n,l,a,u){var s=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var f=t.entanglements,y=t.expirationTimes,A=t.hiddenUpdates;for(n=s&~n;0<n;){var C=31-me(n),H=1<<C;f[C]=0,y[C]=-1;var D=A[C];if(D!==null)for(A[C]=null,C=0;C<D.length;C++){var N=D[C];N!==null&&(N.lane&=-536870913)}n&=~H}l!==0&&zt(t,l,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(s&~e))}function zt(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-me(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&4194090}function dt(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-me(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function Zt(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 Rt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ve(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:Fh(t.type))}function pn(t,e){var n=G.p;try{return G.p=t,e()}finally{G.p=n}}var je=Math.random().toString(36).slice(2),Kt="__reactFiber$"+je,re="__reactProps$"+je,bn="__reactContainer$"+je,aa="__reactEvents$"+je,ua="__reactListeners$"+je,Mi="__reactHandles$"+je,vs="__reactResources$"+je,ia="__reactMarker$"+je;function Bi(t){delete t[Kt],delete t[re],delete t[aa],delete t[ua],delete t[Mi]}function dl(t){var e=t[Kt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[bn]||n[Kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=qh(t);t!==null;){if(n=t[Kt])return n;t=qh(t)}return e}t=n,n=t.parentNode}return null}function ml(t){if(t=t[Kt]||t[bn]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function ra(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function yl(t){var e=t[vs];return e||(e=t[vs]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function le(t){t[ia]=!0}var ps=new Set,bs={};function Kn(t,e){gl(t,e),gl(t+"Capture",e)}function gl(t,e){for(bs[t]=e,t=0;t<e.length;t++)ps.add(e[t])}var Fd=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]*$"),Ss={},Es={};function Pd(t){return Il.call(Es,t)?!0:Il.call(Ss,t)?!1:Fd.test(t)?Es[t]=!0:(Ss[t]=!0,!1)}function cu(t,e,n){if(Pd(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function su(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function en(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}var Ci,_s;function vl(t){if(Ci===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ci=e&&e[1]||"",_s=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ci+t+_s}var Ui=!1;function wi(t,e){if(!t||Ui)return"";Ui=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(N){var D=N}Reflect.construct(t,[],H)}else{try{H.call()}catch(N){D=N}t.call(H.prototype)}}else{try{throw Error()}catch(N){D=N}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(N){if(N&&D&&typeof N.stack=="string")return[N.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),s=u[0],f=u[1];if(s&&f){var y=s.split(`
`),A=f.split(`
`);for(a=l=0;l<y.length&&!y[l].includes("DetermineComponentFrameRoot");)l++;for(;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;if(l===y.length||a===A.length)for(l=y.length-1,a=A.length-1;1<=l&&0<=a&&y[l]!==A[a];)a--;for(;1<=l&&0<=a;l--,a--)if(y[l]!==A[a]){if(l!==1||a!==1)do if(l--,a--,0>a||y[l]!==A[a]){var C=`
`+y[l].replace(" at new "," at ");return t.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",t.displayName)),C}while(1<=l&&0<=a);break}}}finally{Ui=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?vl(n):""}function Id(t){switch(t.tag){case 26:case 27:case 5:return vl(t.type);case 16:return vl("Lazy");case 13:return vl("Suspense");case 19:return vl("SuspenseList");case 0:case 15:return wi(t.type,!1);case 11:return wi(t.type.render,!1);case 1:return wi(t.type,!0);case 31:return vl("Activity");default:return""}}function Ts(t){try{var e="";do e+=Id(t),t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function As(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function tm(t){var e=As(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),l=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ou(t){t._valueTracker||(t._valueTracker=tm(t))}function Rs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=As(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function fu(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 em=/[\n"\\]/g;function ze(t){return t.replace(em,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function qi(t,e,n,l,a,u,s,f){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+xe(e)):t.value!==""+xe(e)&&(t.value=""+xe(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?Li(t,s,xe(e)):n!=null?Li(t,s,xe(n)):l!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+xe(f):t.removeAttribute("name")}function Os(t,e,n,l,a,u,s,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;n=n!=null?""+xe(n):"",e=e!=null?""+xe(e):n,f||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=f?t.checked:!!l,t.defaultChecked=!!l,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s)}function Li(t,e,n){e==="number"&&fu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function pl(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+xe(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function Ds(t,e,n){if(e!=null&&(e=""+xe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+xe(n):""}function Ns(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(jt(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=xe(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l)}function bl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var nm=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 xs(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||nm.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function zs(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&xs(t,a,l)}else for(var u in e)e.hasOwnProperty(u)&&xs(t,u,e[u])}function Hi(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 lm=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"]]),am=/^[\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 hu(t){return am.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var ji=null;function Yi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Sl=null,El=null;function Ms(t){var e=ml(t);if(e&&(t=e.stateNode)){var n=t[re]||null;t:switch(t=e.stateNode,e.type){case"input":if(qi(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ze(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[re]||null;if(!a)throw Error(c(90));qi(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Rs(l)}break t;case"textarea":Ds(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&pl(t,!!n.multiple,e,!1)}}}var Qi=!1;function Bs(t,e,n){if(Qi)return t(e,n);Qi=!0;try{var l=t(e);return l}finally{if(Qi=!1,(Sl!==null||El!==null)&&(Fu(),Sl&&(e=Sl,t=El,El=Sl=null,Ms(e),t)))for(e=0;e<t.length;e++)Ms(t[e])}}function ca(t,e){var n=t.stateNode;if(n===null)return null;var l=n[re]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gi=!1;if(nn)try{var sa={};Object.defineProperty(sa,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",sa,sa),window.removeEventListener("test",sa,sa)}catch{Gi=!1}var Sn=null,Xi=null,du=null;function Cs(){if(du)return du;var t,e=Xi,n=e.length,l,a="value"in Sn?Sn.value:Sn.textContent,u=a.length;for(t=0;t<n&&e[t]===a[t];t++);var s=n-t;for(l=1;l<=s&&e[n-l]===a[u-l];l++);return du=a.slice(t,1<l?1-l:void 0)}function mu(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 yu(){return!0}function Us(){return!1}function ve(t){function e(n,l,a,u,s){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(n=t[f],this[f]=n?n(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?yu:Us,this.isPropagationStopped=Us,this}return O(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yu)},persist:function(){},isPersistent:yu}),e}var Jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gu=ve(Jn),oa=O({},Jn,{view:0,detail:0}),um=ve(oa),$i,ki,fa,vu=O({},oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zi,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!==fa&&(fa&&t.type==="mousemove"?($i=t.screenX-fa.screenX,ki=t.screenY-fa.screenY):ki=$i=0,fa=t),$i)},movementY:function(t){return"movementY"in t?t.movementY:ki}}),ws=ve(vu),im=O({},vu,{dataTransfer:0}),rm=ve(im),cm=O({},oa,{relatedTarget:0}),Vi=ve(cm),sm=O({},Jn,{animationName:0,elapsedTime:0,pseudoElement:0}),om=ve(sm),fm=O({},Jn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),hm=ve(fm),dm=O({},Jn,{data:0}),qs=ve(dm),mm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ym={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"},gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vm(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=gm[t])?!!e[t]:!1}function Zi(){return vm}var pm=O({},oa,{key:function(t){if(t.key){var e=mm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=mu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ym[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zi,charCode:function(t){return t.type==="keypress"?mu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),bm=ve(pm),Sm=O({},vu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ls=ve(Sm),Em=O({},oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zi}),_m=ve(Em),Tm=O({},Jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Am=ve(Tm),Rm=O({},vu,{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}),Om=ve(Rm),Dm=O({},Jn,{newState:0,oldState:0}),Nm=ve(Dm),xm=[9,13,27,32],Ki=nn&&"CompositionEvent"in window,ha=null;nn&&"documentMode"in document&&(ha=document.documentMode);var zm=nn&&"TextEvent"in window&&!ha,Hs=nn&&(!Ki||ha&&8<ha&&11>=ha),js=" ",Ys=!1;function Qs(t,e){switch(t){case"keyup":return xm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gs(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _l=!1;function Mm(t,e){switch(t){case"compositionend":return Gs(e);case"keypress":return e.which!==32?null:(Ys=!0,js);case"textInput":return t=e.data,t===js&&Ys?null:t;default:return null}}function Bm(t,e){if(_l)return t==="compositionend"||!Ki&&Qs(t,e)?(t=Cs(),du=Xi=Sn=null,_l=!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 Hs&&e.locale!=="ko"?null:e.data;default:return null}}var Cm={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 Xs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Cm[t.type]:e==="textarea"}function $s(t,e,n,l){Sl?El?El.push(l):El=[l]:Sl=l,e=li(e,"onChange"),0<e.length&&(n=new gu("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var da=null,ma=null;function Um(t){Oh(t,0)}function pu(t){var e=ra(t);if(Rs(e))return t}function ks(t,e){if(t==="change")return e}var Vs=!1;if(nn){var Ji;if(nn){var Wi="oninput"in document;if(!Wi){var Zs=document.createElement("div");Zs.setAttribute("oninput","return;"),Wi=typeof Zs.oninput=="function"}Ji=Wi}else Ji=!1;Vs=Ji&&(!document.documentMode||9<document.documentMode)}function Ks(){da&&(da.detachEvent("onpropertychange",Js),ma=da=null)}function Js(t){if(t.propertyName==="value"&&pu(ma)){var e=[];$s(e,ma,t,Yi(t)),Bs(Um,e)}}function wm(t,e,n){t==="focusin"?(Ks(),da=e,ma=n,da.attachEvent("onpropertychange",Js)):t==="focusout"&&Ks()}function qm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return pu(ma)}function Lm(t,e){if(t==="click")return pu(e)}function Hm(t,e){if(t==="input"||t==="change")return pu(e)}function jm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:jm;function ya(t,e){if(_e(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Il.call(e,a)||!_e(t[a],e[a]))return!1}return!0}function Ws(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Fs(t,e){var n=Ws(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Ws(n)}}function Ps(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ps(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Is(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=fu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=fu(t.document)}return e}function Fi(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 Ym=nn&&"documentMode"in document&&11>=document.documentMode,Tl=null,Pi=null,ga=null,Ii=!1;function to(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ii||Tl==null||Tl!==fu(l)||(l=Tl,"selectionStart"in l&&Fi(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ga&&ya(ga,l)||(ga=l,l=li(Pi,"onSelect"),0<l.length&&(e=new gu("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Tl)))}function Wn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Al={animationend:Wn("Animation","AnimationEnd"),animationiteration:Wn("Animation","AnimationIteration"),animationstart:Wn("Animation","AnimationStart"),transitionrun:Wn("Transition","TransitionRun"),transitionstart:Wn("Transition","TransitionStart"),transitioncancel:Wn("Transition","TransitionCancel"),transitionend:Wn("Transition","TransitionEnd")},tr={},eo={};nn&&(eo=document.createElement("div").style,"AnimationEvent"in window||(delete Al.animationend.animation,delete Al.animationiteration.animation,delete Al.animationstart.animation),"TransitionEvent"in window||delete Al.transitionend.transition);function Fn(t){if(tr[t])return tr[t];if(!Al[t])return t;var e=Al[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in eo)return tr[t]=e[n];return t}var no=Fn("animationend"),lo=Fn("animationiteration"),ao=Fn("animationstart"),Qm=Fn("transitionrun"),Gm=Fn("transitionstart"),Xm=Fn("transitioncancel"),uo=Fn("transitionend"),io=new Map,er="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(" ");er.push("scrollEnd");function Ye(t,e){io.set(t,e),Kn(e,[t])}var ro=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var n=ro.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ts(e)},ro.set(t,e),e)}return{value:t,source:e,stack:Ts(e)}}var Be=[],Rl=0,nr=0;function bu(){for(var t=Rl,e=nr=Rl=0;e<t;){var n=Be[e];Be[e++]=null;var l=Be[e];Be[e++]=null;var a=Be[e];Be[e++]=null;var u=Be[e];if(Be[e++]=null,l!==null&&a!==null){var s=l.pending;s===null?a.next=a:(a.next=s.next,s.next=a),l.pending=a}u!==0&&co(n,a,u)}}function Su(t,e,n,l){Be[Rl++]=t,Be[Rl++]=e,Be[Rl++]=n,Be[Rl++]=l,nr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function lr(t,e,n,l){return Su(t,e,n,l),Eu(t)}function Ol(t,e){return Su(t,null,null,e),Eu(t)}function co(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-me(n),t=u.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),u):null}function Eu(t){if(50<Qa)throw Qa=0,sc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Dl={};function $m(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,n,l){return new $m(t,e,n,l)}function ar(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ln(t,e){var n=t.alternate;return n===null?(n=Te(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function so(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function _u(t,e,n,l,a,u){var s=0;if(l=t,typeof t=="function")ar(t)&&(s=1);else if(typeof t=="string")s=Vy(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ot:return t=Te(31,n,e,a),t.elementType=ot,t.lanes=u,t;case $:return Pn(n.children,a,u,e);case Z:s=8,a|=24;break;case ft:return t=Te(12,n,e,a|2),t.elementType=ft,t.lanes=u,t;case at:return t=Te(13,n,e,a),t.elementType=at,t.lanes=u,t;case Qt:return t=Te(19,n,e,a),t.elementType=Qt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case W:case lt:s=10;break t;case Nt:s=9;break t;case Yt:s=11;break t;case mt:s=14;break t;case q:s=16,l=null;break t}s=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=Te(s,n,e,a),e.elementType=t,e.type=l,e.lanes=u,e}function Pn(t,e,n,l){return t=Te(7,t,l,e),t.lanes=n,t}function ur(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function ir(t,e,n){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Nl=[],xl=0,Tu=null,Au=0,Ce=[],Ue=0,In=null,an=1,un="";function tl(t,e){Nl[xl++]=Au,Nl[xl++]=Tu,Tu=t,Au=e}function oo(t,e,n){Ce[Ue++]=an,Ce[Ue++]=un,Ce[Ue++]=In,In=t;var l=an;t=un;var a=32-me(l)-1;l&=~(1<<a),n+=1;var u=32-me(e)+a;if(30<u){var s=a-a%5;u=(l&(1<<s)-1).toString(32),l>>=s,a-=s,an=1<<32-me(e)+a|n<<a|l,un=u+t}else an=1<<u|n<<a|l,un=t}function rr(t){t.return!==null&&(tl(t,1),oo(t,1,0))}function cr(t){for(;t===Tu;)Tu=Nl[--xl],Nl[xl]=null,Au=Nl[--xl],Nl[xl]=null;for(;t===In;)In=Ce[--Ue],Ce[Ue]=null,un=Ce[--Ue],Ce[Ue]=null,an=Ce[--Ue],Ce[Ue]=null}var ye=null,kt=null,Mt=!1,el=null,Ze=!1,sr=Error(c(519));function nl(t){var e=Error(c(418,""));throw ba(Me(e,t)),sr}function fo(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Kt]=t,e[re]=l,n){case"dialog":_t("cancel",e),_t("close",e);break;case"iframe":case"object":case"embed":_t("load",e);break;case"video":case"audio":for(n=0;n<Xa.length;n++)_t(Xa[n],e);break;case"source":_t("error",e);break;case"img":case"image":case"link":_t("error",e),_t("load",e);break;case"details":_t("toggle",e);break;case"input":_t("invalid",e),Os(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ou(e);break;case"select":_t("invalid",e);break;case"textarea":_t("invalid",e),Ns(e,l.value,l.defaultValue,l.children),ou(e)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||zh(e.textContent,n)?(l.popover!=null&&(_t("beforetoggle",e),_t("toggle",e)),l.onScroll!=null&&_t("scroll",e),l.onScrollEnd!=null&&_t("scrollend",e),l.onClick!=null&&(e.onclick=ai),e=!0):e=!1,e||nl(t)}function ho(t){for(ye=t.return;ye;)switch(ye.tag){case 5:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:ye=ye.return}}function va(t){if(t!==ye)return!1;if(!Mt)return ho(t),Mt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Rc(t.type,t.memoizedProps)),n=!n),n&&kt&&nl(t),ho(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){kt=Ge(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}kt=null}}else e===27?(e=kt,qn(t.type)?(t=xc,xc=null,kt=t):kt=e):kt=ye?Ge(t.stateNode.nextSibling):null;return!0}function pa(){kt=ye=null,Mt=!1}function mo(){var t=el;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),el=null),t}function ba(t){el===null?el=[t]:el.push(t)}var or=U(null),ll=null,rn=null;function En(t,e,n){j(or,e._currentValue),e._currentValue=n}function cn(t){t._currentValue=or.current,Q(or)}function fr(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function hr(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var s=a.child;u=u.firstContext;t:for(;u!==null;){var f=u;u=a;for(var y=0;y<e.length;y++)if(f.context===e[y]){u.lanes|=n,f=u.alternate,f!==null&&(f.lanes|=n),fr(u.return,n,t),l||(s=null);break t}u=f.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(c(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),fr(s,n,t),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Sa(t,e,n,l){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(c(387));if(s=s.memoizedProps,s!==null){var f=a.type;_e(a.pendingProps.value,s.value)||(t!==null?t.push(f):t=[f])}}else if(a===Dt.current){if(s=a.alternate,s===null)throw Error(c(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ja):t=[Ja])}a=a.return}t!==null&&hr(e,t,n,l),e.flags|=262144}function Ru(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function al(t){ll=t,rn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function he(t){return yo(ll,t)}function Ou(t,e){return ll===null&&al(t),yo(t,e)}function yo(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},rn===null){if(t===null)throw Error(c(308));rn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else rn=rn.next=e;return n}var km=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Vm=o.unstable_scheduleCallback,Zm=o.unstable_NormalPriority,ee={$$typeof:lt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dr(){return{controller:new km,data:new Map,refCount:0}}function Ea(t){t.refCount--,t.refCount===0&&Vm(Zm,function(){t.controller.abort()})}var _a=null,mr=0,zl=0,Ml=null;function Km(t,e){if(_a===null){var n=_a=[];mr=0,zl=gc(),Ml={status:"pending",value:void 0,then:function(l){n.push(l)}}}return mr++,e.then(go,go),e}function go(){if(--mr===0&&_a!==null){Ml!==null&&(Ml.status="fulfilled");var t=_a;_a=null,zl=0,Ml=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Jm(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var vo=x.S;x.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&Km(t,e),vo!==null&&vo(t,e)};var ul=U(null);function yr(){var t=ul.current;return t!==null?t:Ht.pooledCache}function Du(t,e){e===null?j(ul,ul.current):j(ul,e.pool)}function po(){var t=yr();return t===null?null:{parent:ee._currentValue,pool:t}}var Ta=Error(c(460)),bo=Error(c(474)),Nu=Error(c(542)),gr={then:function(){}};function So(t){return t=t.status,t==="fulfilled"||t==="rejected"}function xu(){}function Eo(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(xu,xu),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,To(t),t;default:if(typeof e.status=="string")e.then(xu,xu);else{if(t=Ht,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,To(t),t}throw Aa=e,Ta}}var Aa=null;function _o(){if(Aa===null)throw Error(c(459));var t=Aa;return Aa=null,t}function To(t){if(t===Ta||t===Nu)throw Error(c(483))}var _n=!1;function vr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pr(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 Tn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function An(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Bt&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=Eu(t),co(t,null,n),e}return Su(t,l,e,n),Eu(t)}function Ra(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,dt(t,n)}}function br(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?a=u=s:u=u.next=s,n=n.next}while(n!==null);u===null?a=u=e:u=u.next=e}else a=u=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Sr=!1;function Oa(){if(Sr){var t=Ml;if(t!==null)throw t}}function Da(t,e,n,l){Sr=!1;var a=t.updateQueue;_n=!1;var u=a.firstBaseUpdate,s=a.lastBaseUpdate,f=a.shared.pending;if(f!==null){a.shared.pending=null;var y=f,A=y.next;y.next=null,s===null?u=A:s.next=A,s=y;var C=t.alternate;C!==null&&(C=C.updateQueue,f=C.lastBaseUpdate,f!==s&&(f===null?C.firstBaseUpdate=A:f.next=A,C.lastBaseUpdate=y))}if(u!==null){var H=a.baseState;s=0,C=A=y=null,f=u;do{var D=f.lane&-536870913,N=D!==f.lane;if(N?(Ot&D)===D:(l&D)===D){D!==0&&D===zl&&(Sr=!0),C!==null&&(C=C.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var it=t,et=f;D=e;var qt=n;switch(et.tag){case 1:if(it=et.payload,typeof it=="function"){H=it.call(qt,H,D);break t}H=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=et.payload,D=typeof it=="function"?it.call(qt,H,D):it,D==null)break t;H=O({},H,D);break t;case 2:_n=!0}}D=f.callback,D!==null&&(t.flags|=64,N&&(t.flags|=8192),N=a.callbacks,N===null?a.callbacks=[D]:N.push(D))}else N={lane:D,tag:f.tag,payload:f.payload,callback:f.callback,next:null},C===null?(A=C=N,y=H):C=C.next=N,s|=D;if(f=f.next,f===null){if(f=a.shared.pending,f===null)break;N=f,f=N.next,N.next=null,a.lastBaseUpdate=N,a.shared.pending=null}}while(!0);C===null&&(y=H),a.baseState=y,a.firstBaseUpdate=A,a.lastBaseUpdate=C,u===null&&(a.shared.lanes=0),Bn|=s,t.lanes=s,t.memoizedState=H}}function Ao(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function Ro(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Ao(n[t],e)}var Bl=U(null),zu=U(0);function Oo(t,e){t=yn,j(zu,t),j(Bl,e),yn=t|e.baseLanes}function Er(){j(zu,yn),j(Bl,Bl.current)}function _r(){yn=zu.current,Q(Bl),Q(zu)}var Rn=0,pt=null,Ut=null,Ft=null,Mu=!1,Cl=!1,il=!1,Bu=0,Na=0,Ul=null,Wm=0;function Jt(){throw Error(c(321))}function Tr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!_e(t[n],e[n]))return!1;return!0}function Ar(t,e,n,l,a,u){return Rn=u,pt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,x.H=t===null||t.memoizedState===null?of:ff,il=!1,u=n(l,a),il=!1,Cl&&(u=No(e,n,l,a)),Do(t),u}function Do(t){x.H=Hu;var e=Ut!==null&&Ut.next!==null;if(Rn=0,Ft=Ut=pt=null,Mu=!1,Na=0,Ul=null,e)throw Error(c(300));t===null||ae||(t=t.dependencies,t!==null&&Ru(t)&&(ae=!0))}function No(t,e,n,l){pt=t;var a=0;do{if(Cl&&(Ul=null),Na=0,Cl=!1,25<=a)throw Error(c(301));if(a+=1,Ft=Ut=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}x.H=ly,u=e(n,l)}while(Cl);return u}function Fm(){var t=x.H,e=t.useState()[0];return e=typeof e.then=="function"?xa(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(pt.flags|=1024),e}function Rr(){var t=Bu!==0;return Bu=0,t}function Or(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Dr(t){if(Mu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Mu=!1}Rn=0,Ft=Ut=pt=null,Cl=!1,Na=Bu=0,Ul=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?pt.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function Pt(){if(Ut===null){var t=pt.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=Ft===null?pt.memoizedState:Ft.next;if(e!==null)Ft=e,Ut=t;else{if(t===null)throw pt.alternate===null?Error(c(467)):Error(c(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},Ft===null?pt.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function Nr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xa(t){var e=Na;return Na+=1,Ul===null&&(Ul=[]),t=Eo(Ul,t,e),e=pt,(Ft===null?e.memoizedState:Ft.next)===null&&(e=e.alternate,x.H=e===null||e.memoizedState===null?of:ff),t}function Cu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xa(t);if(t.$$typeof===lt)return he(t)}throw Error(c(438,String(t)))}function xr(t){var e=null,n=pt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=pt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Nr(),pt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=yt;return e.index++,n}function sn(t,e){return typeof e=="function"?e(t):e}function Uu(t){var e=Pt();return zr(e,Ut,t)}function zr(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var a=t.baseQueue,u=l.pending;if(u!==null){if(a!==null){var s=a.next;a.next=u.next,u.next=s}e.baseQueue=a=u,l.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var f=s=null,y=null,A=e,C=!1;do{var H=A.lane&-536870913;if(H!==A.lane?(Ot&H)===H:(Rn&H)===H){var D=A.revertLane;if(D===0)y!==null&&(y=y.next={lane:0,revertLane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),H===zl&&(C=!0);else if((Rn&D)===D){A=A.next,D===zl&&(C=!0);continue}else H={lane:0,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=H,s=u):y=y.next=H,pt.lanes|=D,Bn|=D;H=A.action,il&&n(u,H),u=A.hasEagerState?A.eagerState:n(u,H)}else D={lane:H,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=D,s=u):y=y.next=D,pt.lanes|=H,Bn|=H;A=A.next}while(A!==null&&A!==e);if(y===null?s=u:y.next=f,!_e(u,t.memoizedState)&&(ae=!0,C&&(n=Ml,n!==null)))throw n;t.memoizedState=u,t.baseState=s,t.baseQueue=y,l.lastRenderedState=u}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Mr(t){var e=Pt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,u=e.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do u=t(u,s.action),s=s.next;while(s!==a);_e(u,e.memoizedState)||(ae=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function xo(t,e,n){var l=pt,a=Pt(),u=Mt;if(u){if(n===void 0)throw Error(c(407));n=n()}else n=e();var s=!_e((Ut||a).memoizedState,n);s&&(a.memoizedState=n,ae=!0),a=a.queue;var f=Bo.bind(null,l,a,t);if(za(2048,8,f,[t]),a.getSnapshot!==e||s||Ft!==null&&Ft.memoizedState.tag&1){if(l.flags|=2048,wl(9,wu(),Mo.bind(null,l,a,n,e),null),Ht===null)throw Error(c(349));u||(Rn&124)!==0||zo(l,e,n)}return n}function zo(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=pt.updateQueue,e===null?(e=Nr(),pt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Mo(t,e,n,l){e.value=n,e.getSnapshot=l,Co(e)&&Uo(t)}function Bo(t,e,n){return n(function(){Co(e)&&Uo(t)})}function Co(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_e(t,n)}catch{return!0}}function Uo(t){var e=Ol(t,2);e!==null&&Ne(e,t,2)}function Br(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),il){$e(!0);try{n()}finally{$e(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:t},e}function wo(t,e,n,l){return t.baseState=n,zr(t,Ut,typeof l=="function"?l:sn)}function Pm(t,e,n,l,a){if(Lu(t))throw Error(c(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(s){u.listeners.push(s)}};x.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,qo(e,u)):(u.next=n.next,e.pending=n.next=u)}}function qo(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var u=x.T,s={};x.T=s;try{var f=n(a,l),y=x.S;y!==null&&y(s,f),Lo(t,e,f)}catch(A){Cr(t,e,A)}finally{x.T=u}}else try{u=n(a,l),Lo(t,e,u)}catch(A){Cr(t,e,A)}}function Lo(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Ho(t,e,l)},function(l){return Cr(t,e,l)}):Ho(t,e,n)}function Ho(t,e,n){e.status="fulfilled",e.value=n,jo(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,qo(t,n)))}function Cr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,jo(e),e=e.next;while(e!==l)}t.action=null}function jo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Yo(t,e){return e}function Qo(t,e){if(Mt){var n=Ht.formState;if(n!==null){t:{var l=pt;if(Mt){if(kt){e:{for(var a=kt,u=Ze;a.nodeType!==8;){if(!u){a=null;break e}if(a=Ge(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){kt=Ge(a.nextSibling),l=a.data==="F!";break t}}nl(l)}l=!1}l&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:e},n.queue=l,n=rf.bind(null,pt,l),l.dispatch=n,l=Br(!1),u=Hr.bind(null,pt,!1,l.queue),l=pe(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=Pm.bind(null,pt,a,u,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Go(t){var e=Pt();return Xo(e,Ut,t)}function Xo(t,e,n){if(e=zr(t,e,Yo)[0],t=Uu(sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=xa(e)}catch(s){throw s===Ta?Nu:s}else l=e;e=Pt();var a=e.queue,u=a.dispatch;return n!==e.memoizedState&&(pt.flags|=2048,wl(9,wu(),Im.bind(null,a,n),null)),[l,u,t]}function Im(t,e){t.action=e}function $o(t){var e=Pt(),n=Ut;if(n!==null)return Xo(e,n,t);Pt(),e=e.memoizedState,n=Pt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function wl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=pt.updateQueue,e===null&&(e=Nr(),pt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function wu(){return{destroy:void 0,resource:void 0}}function ko(){return Pt().memoizedState}function qu(t,e,n,l){var a=pe();l=l===void 0?null:l,pt.flags|=t,a.memoizedState=wl(1|e,wu(),n,l)}function za(t,e,n,l){var a=Pt();l=l===void 0?null:l;var u=a.memoizedState.inst;Ut!==null&&l!==null&&Tr(l,Ut.memoizedState.deps)?a.memoizedState=wl(e,u,n,l):(pt.flags|=t,a.memoizedState=wl(1|e,u,n,l))}function Vo(t,e){qu(8390656,8,t,e)}function Zo(t,e){za(2048,8,t,e)}function Ko(t,e){return za(4,2,t,e)}function Jo(t,e){return za(4,4,t,e)}function Wo(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Fo(t,e,n){n=n!=null?n.concat([t]):null,za(4,4,Wo.bind(null,e,t),n)}function Ur(){}function Po(t,e){var n=Pt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Tr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Io(t,e){var n=Pt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Tr(e,l[1]))return l[0];if(l=t(),il){$e(!0);try{t()}finally{$e(!1)}}return n.memoizedState=[l,e],l}function wr(t,e,n){return n===void 0||(Rn&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=lh(),pt.lanes|=t,Bn|=t,n)}function tf(t,e,n,l){return _e(n,e)?n:Bl.current!==null?(t=wr(t,n,l),_e(t,e)||(ae=!0),t):(Rn&42)===0?(ae=!0,t.memoizedState=n):(t=lh(),pt.lanes|=t,Bn|=t,e)}function ef(t,e,n,l,a){var u=G.p;G.p=u!==0&&8>u?u:8;var s=x.T,f={};x.T=f,Hr(t,!1,e,n);try{var y=a(),A=x.S;if(A!==null&&A(f,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=Jm(y,l);Ma(t,e,C,De(t))}else Ma(t,e,l,De(t))}catch(H){Ma(t,e,{then:function(){},status:"rejected",reason:H},De())}finally{G.p=u,x.T=s}}function ty(){}function qr(t,e,n,l){if(t.tag!==5)throw Error(c(476));var a=nf(t).queue;ef(t,a,e,I,n===null?ty:function(){return lf(t),n(l)})}function nf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:I},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function lf(t){var e=nf(t).next.queue;Ma(t,e,{},De())}function Lr(){return he(Ja)}function af(){return Pt().memoizedState}function uf(){return Pt().memoizedState}function ey(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=De();t=Tn(n);var l=An(e,t,n);l!==null&&(Ne(l,e,n),Ra(l,e,n)),e={cache:dr()},t.payload=e;return}e=e.return}}function ny(t,e,n){var l=De();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Lu(t)?cf(e,n):(n=lr(t,e,n,l),n!==null&&(Ne(n,t,l),sf(n,e,l)))}function rf(t,e,n){var l=De();Ma(t,e,n,l)}function Ma(t,e,n,l){var a={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lu(t))cf(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var s=e.lastRenderedState,f=u(s,n);if(a.hasEagerState=!0,a.eagerState=f,_e(f,s))return Su(t,e,a,0),Ht===null&&bu(),!1}catch{}finally{}if(n=lr(t,e,a,l),n!==null)return Ne(n,t,l),sf(n,e,l),!0}return!1}function Hr(t,e,n,l){if(l={lane:2,revertLane:gc(),action:l,hasEagerState:!1,eagerState:null,next:null},Lu(t)){if(e)throw Error(c(479))}else e=lr(t,n,l,2),e!==null&&Ne(e,t,2)}function Lu(t){var e=t.alternate;return t===pt||e!==null&&e===pt}function cf(t,e){Cl=Mu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function sf(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,dt(t,n)}}var Hu={readContext:he,use:Cu,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt},of={readContext:he,use:Cu,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:he,useEffect:Vo,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,qu(4194308,4,Wo.bind(null,e,t),n)},useLayoutEffect:function(t,e){return qu(4194308,4,t,e)},useInsertionEffect:function(t,e){qu(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var l=t();if(il){$e(!0);try{t()}finally{$e(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=pe();if(n!==void 0){var a=n(e);if(il){$e(!0);try{n(e)}finally{$e(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=ny.bind(null,pt,t),[l.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Br(t);var e=t.queue,n=rf.bind(null,pt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ur,useDeferredValue:function(t,e){var n=pe();return wr(n,t,e)},useTransition:function(){var t=Br(!1);return t=ef.bind(null,pt,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=pt,a=pe();if(Mt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Ht===null)throw Error(c(349));(Ot&124)!==0||zo(l,e,n)}a.memoizedState=n;var u={value:n,getSnapshot:e};return a.queue=u,Vo(Bo.bind(null,l,u,t),[t]),l.flags|=2048,wl(9,wu(),Mo.bind(null,l,u,n,e),null),n},useId:function(){var t=pe(),e=Ht.identifierPrefix;if(Mt){var n=un,l=an;n=(l&~(1<<32-me(l)-1)).toString(32)+n,e="«"+e+"R"+n,n=Bu++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=Wm++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:Lr,useFormState:Qo,useActionState:Qo,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Hr.bind(null,pt,!0,n),n.dispatch=e,[t,e]},useMemoCache:xr,useCacheRefresh:function(){return pe().memoizedState=ey.bind(null,pt)}},ff={readContext:he,use:Cu,useCallback:Po,useContext:he,useEffect:Zo,useImperativeHandle:Fo,useInsertionEffect:Ko,useLayoutEffect:Jo,useMemo:Io,useReducer:Uu,useRef:ko,useState:function(){return Uu(sn)},useDebugValue:Ur,useDeferredValue:function(t,e){var n=Pt();return tf(n,Ut.memoizedState,t,e)},useTransition:function(){var t=Uu(sn)[0],e=Pt().memoizedState;return[typeof t=="boolean"?t:xa(t),e]},useSyncExternalStore:xo,useId:af,useHostTransitionStatus:Lr,useFormState:Go,useActionState:Go,useOptimistic:function(t,e){var n=Pt();return wo(n,Ut,t,e)},useMemoCache:xr,useCacheRefresh:uf},ly={readContext:he,use:Cu,useCallback:Po,useContext:he,useEffect:Zo,useImperativeHandle:Fo,useInsertionEffect:Ko,useLayoutEffect:Jo,useMemo:Io,useReducer:Mr,useRef:ko,useState:function(){return Mr(sn)},useDebugValue:Ur,useDeferredValue:function(t,e){var n=Pt();return Ut===null?wr(n,t,e):tf(n,Ut.memoizedState,t,e)},useTransition:function(){var t=Mr(sn)[0],e=Pt().memoizedState;return[typeof t=="boolean"?t:xa(t),e]},useSyncExternalStore:xo,useId:af,useHostTransitionStatus:Lr,useFormState:$o,useActionState:$o,useOptimistic:function(t,e){var n=Pt();return Ut!==null?wo(n,Ut,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:xr,useCacheRefresh:uf},ql=null,Ba=0;function ju(t){var e=Ba;return Ba+=1,ql===null&&(ql=[]),Eo(ql,t,e)}function Ca(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Yu(t,e){throw e.$$typeof===z?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hf(t){var e=t._init;return e(t._payload)}function df(t){function e(E,b){if(t){var _=E.deletions;_===null?(E.deletions=[b],E.flags|=16):_.push(b)}}function n(E,b){if(!t)return null;for(;b!==null;)e(E,b),b=b.sibling;return null}function l(E){for(var b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function a(E,b){return E=ln(E,b),E.index=0,E.sibling=null,E}function u(E,b,_){return E.index=_,t?(_=E.alternate,_!==null?(_=_.index,_<b?(E.flags|=67108866,b):_):(E.flags|=67108866,b)):(E.flags|=1048576,b)}function s(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function f(E,b,_,w){return b===null||b.tag!==6?(b=ur(_,E.mode,w),b.return=E,b):(b=a(b,_),b.return=E,b)}function y(E,b,_,w){var J=_.type;return J===$?C(E,b,_.props.children,w,_.key):b!==null&&(b.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===q&&hf(J)===b.type)?(b=a(b,_.props),Ca(b,_),b.return=E,b):(b=_u(_.type,_.key,_.props,null,E.mode,w),Ca(b,_),b.return=E,b)}function A(E,b,_,w){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=ir(_,E.mode,w),b.return=E,b):(b=a(b,_.children||[]),b.return=E,b)}function C(E,b,_,w,J){return b===null||b.tag!==7?(b=Pn(_,E.mode,w,J),b.return=E,b):(b=a(b,_),b.return=E,b)}function H(E,b,_){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=ur(""+b,E.mode,_),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case M:return _=_u(b.type,b.key,b.props,null,E.mode,_),Ca(_,b),_.return=E,_;case k:return b=ir(b,E.mode,_),b.return=E,b;case q:var w=b._init;return b=w(b._payload),H(E,b,_)}if(jt(b)||Tt(b))return b=Pn(b,E.mode,_,null),b.return=E,b;if(typeof b.then=="function")return H(E,ju(b),_);if(b.$$typeof===lt)return H(E,Ou(E,b),_);Yu(E,b)}return null}function D(E,b,_,w){var J=b!==null?b.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return J!==null?null:f(E,b,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case M:return _.key===J?y(E,b,_,w):null;case k:return _.key===J?A(E,b,_,w):null;case q:return J=_._init,_=J(_._payload),D(E,b,_,w)}if(jt(_)||Tt(_))return J!==null?null:C(E,b,_,w,null);if(typeof _.then=="function")return D(E,b,ju(_),w);if(_.$$typeof===lt)return D(E,b,Ou(E,_),w);Yu(E,_)}return null}function N(E,b,_,w,J){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return E=E.get(_)||null,f(b,E,""+w,J);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case M:return E=E.get(w.key===null?_:w.key)||null,y(b,E,w,J);case k:return E=E.get(w.key===null?_:w.key)||null,A(b,E,w,J);case q:var St=w._init;return w=St(w._payload),N(E,b,_,w,J)}if(jt(w)||Tt(w))return E=E.get(_)||null,C(b,E,w,J,null);if(typeof w.then=="function")return N(E,b,_,ju(w),J);if(w.$$typeof===lt)return N(E,b,_,Ou(b,w),J);Yu(b,w)}return null}function it(E,b,_,w){for(var J=null,St=null,tt=b,nt=b=0,ie=null;tt!==null&&nt<_.length;nt++){tt.index>nt?(ie=tt,tt=null):ie=tt.sibling;var xt=D(E,tt,_[nt],w);if(xt===null){tt===null&&(tt=ie);break}t&&tt&&xt.alternate===null&&e(E,tt),b=u(xt,b,nt),St===null?J=xt:St.sibling=xt,St=xt,tt=ie}if(nt===_.length)return n(E,tt),Mt&&tl(E,nt),J;if(tt===null){for(;nt<_.length;nt++)tt=H(E,_[nt],w),tt!==null&&(b=u(tt,b,nt),St===null?J=tt:St.sibling=tt,St=tt);return Mt&&tl(E,nt),J}for(tt=l(tt);nt<_.length;nt++)ie=N(tt,E,nt,_[nt],w),ie!==null&&(t&&ie.alternate!==null&&tt.delete(ie.key===null?nt:ie.key),b=u(ie,b,nt),St===null?J=ie:St.sibling=ie,St=ie);return t&&tt.forEach(function(Qn){return e(E,Qn)}),Mt&&tl(E,nt),J}function et(E,b,_,w){if(_==null)throw Error(c(151));for(var J=null,St=null,tt=b,nt=b=0,ie=null,xt=_.next();tt!==null&&!xt.done;nt++,xt=_.next()){tt.index>nt?(ie=tt,tt=null):ie=tt.sibling;var Qn=D(E,tt,xt.value,w);if(Qn===null){tt===null&&(tt=ie);break}t&&tt&&Qn.alternate===null&&e(E,tt),b=u(Qn,b,nt),St===null?J=Qn:St.sibling=Qn,St=Qn,tt=ie}if(xt.done)return n(E,tt),Mt&&tl(E,nt),J;if(tt===null){for(;!xt.done;nt++,xt=_.next())xt=H(E,xt.value,w),xt!==null&&(b=u(xt,b,nt),St===null?J=xt:St.sibling=xt,St=xt);return Mt&&tl(E,nt),J}for(tt=l(tt);!xt.done;nt++,xt=_.next())xt=N(tt,E,nt,xt.value,w),xt!==null&&(t&&xt.alternate!==null&&tt.delete(xt.key===null?nt:xt.key),b=u(xt,b,nt),St===null?J=xt:St.sibling=xt,St=xt);return t&&tt.forEach(function(a0){return e(E,a0)}),Mt&&tl(E,nt),J}function qt(E,b,_,w){if(typeof _=="object"&&_!==null&&_.type===$&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case M:t:{for(var J=_.key;b!==null;){if(b.key===J){if(J=_.type,J===$){if(b.tag===7){n(E,b.sibling),w=a(b,_.props.children),w.return=E,E=w;break t}}else if(b.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===q&&hf(J)===b.type){n(E,b.sibling),w=a(b,_.props),Ca(w,_),w.return=E,E=w;break t}n(E,b);break}else e(E,b);b=b.sibling}_.type===$?(w=Pn(_.props.children,E.mode,w,_.key),w.return=E,E=w):(w=_u(_.type,_.key,_.props,null,E.mode,w),Ca(w,_),w.return=E,E=w)}return s(E);case k:t:{for(J=_.key;b!==null;){if(b.key===J)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){n(E,b.sibling),w=a(b,_.children||[]),w.return=E,E=w;break t}else{n(E,b);break}else e(E,b);b=b.sibling}w=ir(_,E.mode,w),w.return=E,E=w}return s(E);case q:return J=_._init,_=J(_._payload),qt(E,b,_,w)}if(jt(_))return it(E,b,_,w);if(Tt(_)){if(J=Tt(_),typeof J!="function")throw Error(c(150));return _=J.call(_),et(E,b,_,w)}if(typeof _.then=="function")return qt(E,b,ju(_),w);if(_.$$typeof===lt)return qt(E,b,Ou(E,_),w);Yu(E,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,b!==null&&b.tag===6?(n(E,b.sibling),w=a(b,_),w.return=E,E=w):(n(E,b),w=ur(_,E.mode,w),w.return=E,E=w),s(E)):n(E,b)}return function(E,b,_,w){try{Ba=0;var J=qt(E,b,_,w);return ql=null,J}catch(tt){if(tt===Ta||tt===Nu)throw tt;var St=Te(29,tt,null,E.mode);return St.lanes=w,St.return=E,St}finally{}}}var Ll=df(!0),mf=df(!1),we=U(null),Ke=null;function On(t){var e=t.alternate;j(ne,ne.current&1),j(we,t),Ke===null&&(e===null||Bl.current!==null||e.memoizedState!==null)&&(Ke=t)}function yf(t){if(t.tag===22){if(j(ne,ne.current),j(we,t),Ke===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ke=t)}}else Dn()}function Dn(){j(ne,ne.current),j(we,we.current)}function on(t){Q(we),Ke===t&&(Ke=null),Q(ne)}var ne=U(0);function Qu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Nc(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function jr(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:O({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Yr={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=De(),a=Tn(l);a.payload=e,n!=null&&(a.callback=n),e=An(t,a,l),e!==null&&(Ne(e,t,l),Ra(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=De(),a=Tn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=An(t,a,l),e!==null&&(Ne(e,t,l),Ra(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=De(),l=Tn(n);l.tag=2,e!=null&&(l.callback=e),e=An(t,l,n),e!==null&&(Ne(e,t,n),Ra(e,t,n))}};function gf(t,e,n,l,a,u,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,s):e.prototype&&e.prototype.isPureReactComponent?!ya(n,l)||!ya(a,u):!0}function vf(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Yr.enqueueReplaceState(e,e.state,null)}function rl(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=O({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}var Gu=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 pf(t){Gu(t)}function bf(t){console.error(t)}function Sf(t){Gu(t)}function Xu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Ef(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Qr(t,e,n){return n=Tn(n),n.tag=3,n.payload={element:null},n.callback=function(){Xu(t,e)},n}function _f(t){return t=Tn(t),t.tag=3,t}function Tf(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var u=l.value;t.payload=function(){return a(u)},t.callback=function(){Ef(e,n,l)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){Ef(e,n,l),typeof a!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var f=l.stack;this.componentDidCatch(l.value,{componentStack:f!==null?f:""})})}function ay(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Sa(e,n,a,!0),n=we.current,n!==null){switch(n.tag){case 13:return Ke===null?fc():n.alternate===null&&Vt===0&&(Vt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===gr?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),dc(t,l,a)),!1;case 22:return n.flags|=65536,l===gr?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),dc(t,l,a)),!1}throw Error(c(435,n.tag))}return dc(t,l,a),fc(),!1}if(Mt)return e=we.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==sr&&(t=Error(c(422),{cause:l}),ba(Me(t,n)))):(l!==sr&&(e=Error(c(423),{cause:l}),ba(Me(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=Me(l,n),a=Qr(t.stateNode,l,a),br(t,a),Vt!==4&&(Vt=2)),!1;var u=Error(c(520),{cause:l});if(u=Me(u,n),Ya===null?Ya=[u]:Ya.push(u),Vt!==4&&(Vt=2),e===null)return!0;l=Me(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=Qr(n.stateNode,l,t),br(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Cn===null||!Cn.has(u))))return n.flags|=65536,a&=-a,n.lanes|=a,a=_f(a),Tf(a,t,n,l),br(n,a),!1}n=n.return}while(n!==null);return!1}var Af=Error(c(461)),ae=!1;function ce(t,e,n,l){e.child=t===null?mf(e,null,n,l):Ll(e,t.child,n,l)}function Rf(t,e,n,l,a){n=n.render;var u=e.ref;if("ref"in l){var s={};for(var f in l)f!=="ref"&&(s[f]=l[f])}else s=l;return al(e),l=Ar(t,e,n,s,u,a),f=Rr(),t!==null&&!ae?(Or(t,e,a),fn(t,e,a)):(Mt&&f&&rr(e),e.flags|=1,ce(t,e,l,a),e.child)}function Of(t,e,n,l,a){if(t===null){var u=n.type;return typeof u=="function"&&!ar(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Df(t,e,u,l,a)):(t=_u(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Jr(t,a)){var s=u.memoizedProps;if(n=n.compare,n=n!==null?n:ya,n(s,l)&&t.ref===e.ref)return fn(t,e,a)}return e.flags|=1,t=ln(u,l),t.ref=e.ref,t.return=e,e.child=t}function Df(t,e,n,l,a){if(t!==null){var u=t.memoizedProps;if(ya(u,l)&&t.ref===e.ref)if(ae=!1,e.pendingProps=l=u,Jr(t,a))(t.flags&131072)!==0&&(ae=!0);else return e.lanes=t.lanes,fn(t,e,a)}return Gr(t,e,n,l,a)}function Nf(t,e,n){var l=e.pendingProps,a=l.children,u=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((e.flags&128)!==0){if(l=u!==null?u.baseLanes|n:n,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;e.childLanes=u&~l}else e.childLanes=0,e.child=null;return xf(t,e,l,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Du(e,u!==null?u.cachePool:null),u!==null?Oo(e,u):Er(),yf(e);else return e.lanes=e.childLanes=536870912,xf(t,e,u!==null?u.baseLanes|n:n,n)}else u!==null?(Du(e,u.cachePool),Oo(e,u),Dn(),e.memoizedState=null):(t!==null&&Du(e,null),Er(),Dn());return ce(t,e,a,n),e.child}function xf(t,e,n,l){var a=yr();return a=a===null?null:{parent:ee._currentValue,pool:a},e.memoizedState={baseLanes:n,cachePool:a},t!==null&&Du(e,null),Er(),yf(e),t!==null&&Sa(t,e,l,!0),null}function $u(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Gr(t,e,n,l,a){return al(e),n=Ar(t,e,n,l,void 0,a),l=Rr(),t!==null&&!ae?(Or(t,e,a),fn(t,e,a)):(Mt&&l&&rr(e),e.flags|=1,ce(t,e,n,a),e.child)}function zf(t,e,n,l,a,u){return al(e),e.updateQueue=null,n=No(e,l,n,a),Do(t),l=Rr(),t!==null&&!ae?(Or(t,e,u),fn(t,e,u)):(Mt&&l&&rr(e),e.flags|=1,ce(t,e,n,u),e.child)}function Mf(t,e,n,l,a){if(al(e),e.stateNode===null){var u=Dl,s=n.contextType;typeof s=="object"&&s!==null&&(u=he(s)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Yr,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},vr(e),s=n.contextType,u.context=typeof s=="object"&&s!==null?he(s):Dl,u.state=e.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(jr(e,n,s,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&Yr.enqueueReplaceState(u,u.state,null),Da(e,l,u,a),Oa(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var f=e.memoizedProps,y=rl(n,f);u.props=y;var A=u.context,C=n.contextType;s=Dl,typeof C=="object"&&C!==null&&(s=he(C));var H=n.getDerivedStateFromProps;C=typeof H=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||A!==s)&&vf(e,u,l,s),_n=!1;var D=e.memoizedState;u.state=D,Da(e,l,u,a),Oa(),A=e.memoizedState,f||D!==A||_n?(typeof H=="function"&&(jr(e,n,H,l),A=e.memoizedState),(y=_n||gf(e,n,y,l,D,A,s))?(C||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=A),u.props=l,u.state=A,u.context=s,l=y):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,pr(t,e),s=e.memoizedProps,C=rl(n,s),u.props=C,H=e.pendingProps,D=u.context,A=n.contextType,y=Dl,typeof A=="object"&&A!==null&&(y=he(A)),f=n.getDerivedStateFromProps,(A=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==H||D!==y)&&vf(e,u,l,y),_n=!1,D=e.memoizedState,u.state=D,Da(e,l,u,a),Oa();var N=e.memoizedState;s!==H||D!==N||_n||t!==null&&t.dependencies!==null&&Ru(t.dependencies)?(typeof f=="function"&&(jr(e,n,f,l),N=e.memoizedState),(C=_n||gf(e,n,C,l,D,N,y)||t!==null&&t.dependencies!==null&&Ru(t.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,N,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,N,y)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=N),u.props=l,u.state=N,u.context=y,l=C):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,$u(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=Ll(e,t.child,null,a),e.child=Ll(e,null,n,a)):ce(t,e,n,a),e.memoizedState=u.state,t=e.child):t=fn(t,e,a),t}function Bf(t,e,n,l){return pa(),e.flags|=256,ce(t,e,n,l),e.child}var Xr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $r(t){return{baseLanes:t,cachePool:po()}}function kr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=qe),t}function Cf(t,e,n){var l=e.pendingProps,a=!1,u=(e.flags&128)!==0,s;if((s=u)||(s=t!==null&&t.memoizedState===null?!1:(ne.current&2)!==0),s&&(a=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(Mt){if(a?On(e):Dn(),Mt){var f=kt,y;if(y=f){t:{for(y=f,f=Ze;y.nodeType!==8;){if(!f){f=null;break t}if(y=Ge(y.nextSibling),y===null){f=null;break t}}f=y}f!==null?(e.memoizedState={dehydrated:f,treeContext:In!==null?{id:an,overflow:un}:null,retryLane:536870912,hydrationErrors:null},y=Te(18,null,null,0),y.stateNode=f,y.return=e,e.child=y,ye=e,kt=null,y=!0):y=!1}y||nl(e)}if(f=e.memoizedState,f!==null&&(f=f.dehydrated,f!==null))return Nc(f)?e.lanes=32:e.lanes=536870912,null;on(e)}return f=l.children,l=l.fallback,a?(Dn(),a=e.mode,f=ku({mode:"hidden",children:f},a),l=Pn(l,a,n,null),f.return=e,l.return=e,f.sibling=l,e.child=f,a=e.child,a.memoizedState=$r(n),a.childLanes=kr(t,s,n),e.memoizedState=Xr,l):(On(e),Vr(e,f))}if(y=t.memoizedState,y!==null&&(f=y.dehydrated,f!==null)){if(u)e.flags&256?(On(e),e.flags&=-257,e=Zr(t,e,n)):e.memoizedState!==null?(Dn(),e.child=t.child,e.flags|=128,e=null):(Dn(),a=l.fallback,f=e.mode,l=ku({mode:"visible",children:l.children},f),a=Pn(a,f,n,null),a.flags|=2,l.return=e,a.return=e,l.sibling=a,e.child=l,Ll(e,t.child,null,n),l=e.child,l.memoizedState=$r(n),l.childLanes=kr(t,s,n),e.memoizedState=Xr,e=a);else if(On(e),Nc(f)){if(s=f.nextSibling&&f.nextSibling.dataset,s)var A=s.dgst;s=A,l=Error(c(419)),l.stack="",l.digest=s,ba({value:l,source:null,stack:null}),e=Zr(t,e,n)}else if(ae||Sa(t,e,n,!1),s=(n&t.childLanes)!==0,ae||s){if(s=Ht,s!==null&&(l=n&-n,l=(l&42)!==0?1:Zt(l),l=(l&(s.suspendedLanes|n))!==0?0:l,l!==0&&l!==y.retryLane))throw y.retryLane=l,Ol(t,l),Ne(s,t,l),Af;f.data==="$?"||fc(),e=Zr(t,e,n)}else f.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=y.treeContext,kt=Ge(f.nextSibling),ye=e,Mt=!0,el=null,Ze=!1,t!==null&&(Ce[Ue++]=an,Ce[Ue++]=un,Ce[Ue++]=In,an=t.id,un=t.overflow,In=e),e=Vr(e,l.children),e.flags|=4096);return e}return a?(Dn(),a=l.fallback,f=e.mode,y=t.child,A=y.sibling,l=ln(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&65011712,A!==null?a=ln(A,a):(a=Pn(a,f,n,null),a.flags|=2),a.return=e,l.return=e,l.sibling=a,e.child=l,l=a,a=e.child,f=t.child.memoizedState,f===null?f=$r(n):(y=f.cachePool,y!==null?(A=ee._currentValue,y=y.parent!==A?{parent:A,pool:A}:y):y=po(),f={baseLanes:f.baseLanes|n,cachePool:y}),a.memoizedState=f,a.childLanes=kr(t,s,n),e.memoizedState=Xr,l):(On(e),n=t.child,t=n.sibling,n=ln(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=n,e.memoizedState=null,n)}function Vr(t,e){return e=ku({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ku(t,e){return t=Te(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Zr(t,e,n){return Ll(e,t.child,null,n),t=Vr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Uf(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),fr(t.return,e,n)}function Kr(t,e,n,l,a){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=a)}function wf(t,e,n){var l=e.pendingProps,a=l.revealOrder,u=l.tail;if(ce(t,e,l.children,n),l=ne.current,(l&2)!==0)l=l&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Uf(t,n,e);else if(t.tag===19)Uf(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(j(ne,l),a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Qu(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Kr(e,!1,a,n,u);break;case"backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Qu(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Kr(e,!0,n,null,u);break;case"together":Kr(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function fn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Bn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Sa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Jr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ru(t)))}function uy(t,e,n){switch(e.tag){case 3:bt(e,e.stateNode.containerInfo),En(e,ee,t.memoizedState.cache),pa();break;case 27:case 5:Xn(e);break;case 4:bt(e,e.stateNode.containerInfo);break;case 10:En(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(On(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Cf(t,e,n):(On(e),t=fn(t,e,n),t!==null?t.sibling:null);On(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Sa(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return wf(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),j(ne,ne.current),l)break;return null;case 22:case 23:return e.lanes=0,Nf(t,e,n);case 24:En(e,ee,t.memoizedState.cache)}return fn(t,e,n)}function qf(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ae=!0;else{if(!Jr(t,n)&&(e.flags&128)===0)return ae=!1,uy(t,e,n);ae=(t.flags&131072)!==0}else ae=!1,Mt&&(e.flags&1048576)!==0&&oo(e,Au,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var l=e.elementType,a=l._init;if(l=a(l._payload),e.type=l,typeof l=="function")ar(l)?(t=rl(l,t),e.tag=1,e=Mf(null,e,l,t,n)):(e.tag=0,e=Gr(null,e,l,t,n));else{if(l!=null){if(a=l.$$typeof,a===Yt){e.tag=11,e=Rf(null,e,l,t,n);break t}else if(a===mt){e.tag=14,e=Of(null,e,l,t,n);break t}}throw e=fe(l)||l,Error(c(306,e,""))}}return e;case 0:return Gr(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=rl(l,e.pendingProps),Mf(t,e,l,a,n);case 3:t:{if(bt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var u=e.memoizedState;a=u.element,pr(t,e),Da(e,l,null,n);var s=e.memoizedState;if(l=s.cache,En(e,ee,l),l!==u.cache&&hr(e,[ee],n,!0),Oa(),l=s.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Bf(t,e,l,n);break t}else if(l!==a){a=Me(Error(c(424)),e),ba(a),e=Bf(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(kt=Ge(t.firstChild),ye=e,Mt=!0,el=null,Ze=!0,n=mf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(pa(),l===a){e=fn(t,e,n);break t}ce(t,e,l,n)}e=e.child}return e;case 26:return $u(t,e),t===null?(n=Yh(e.type,null,e.pendingProps,null))?e.memoizedState=n:Mt||(n=e.type,t=e.pendingProps,l=ui(ct.current).createElement(n),l[Kt]=e,l[re]=t,oe(l,n,t),le(l),e.stateNode=l):e.memoizedState=Yh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Xn(e),t===null&&Mt&&(l=e.stateNode=Lh(e.type,e.pendingProps,ct.current),ye=e,Ze=!0,a=kt,qn(e.type)?(xc=a,kt=Ge(l.firstChild)):kt=a),ce(t,e,e.pendingProps.children,n),$u(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Mt&&((a=l=kt)&&(l=Cy(l,e.type,e.pendingProps,Ze),l!==null?(e.stateNode=l,ye=e,kt=Ge(l.firstChild),Ze=!1,a=!0):a=!1),a||nl(e)),Xn(e),a=e.type,u=e.pendingProps,s=t!==null?t.memoizedProps:null,l=u.children,Rc(a,u)?l=null:s!==null&&Rc(a,s)&&(e.flags|=32),e.memoizedState!==null&&(a=Ar(t,e,Fm,null,null,n),Ja._currentValue=a),$u(t,e),ce(t,e,l,n),e.child;case 6:return t===null&&Mt&&((t=n=kt)&&(n=Uy(n,e.pendingProps,Ze),n!==null?(e.stateNode=n,ye=e,kt=null,t=!0):t=!1),t||nl(e)),null;case 13:return Cf(t,e,n);case 4:return bt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ll(e,null,l,n):ce(t,e,l,n),e.child;case 11:return Rf(t,e,e.type,e.pendingProps,n);case 7:return ce(t,e,e.pendingProps,n),e.child;case 8:return ce(t,e,e.pendingProps.children,n),e.child;case 12:return ce(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,En(e,e.type,l.value),ce(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,al(e),a=he(a),l=l(a),e.flags|=1,ce(t,e,l,n),e.child;case 14:return Of(t,e,e.type,e.pendingProps,n);case 15:return Df(t,e,e.type,e.pendingProps,n);case 19:return wf(t,e,n);case 31:return l=e.pendingProps,n=e.mode,l={mode:l.mode,children:l.children},t===null?(n=ku(l,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=ln(t.child,l),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return Nf(t,e,n);case 24:return al(e),l=he(ee),t===null?(a=yr(),a===null&&(a=Ht,u=dr(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=n),a=u),e.memoizedState={parent:l,cache:a},vr(e),En(e,ee,a)):((t.lanes&n)!==0&&(pr(t,e),Da(e,null,null,n),Oa()),a=t.memoizedState,u=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),En(e,ee,l)):(l=u.cache,En(e,ee,l),l!==a.cache&&hr(e,[ee],n,!0))),ce(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function hn(t){t.flags|=4}function Lf(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!kh(e)){if(e=we.current,e!==null&&((Ot&4194048)===Ot?Ke!==null:(Ot&62914560)!==Ot&&(Ot&536870912)===0||e!==Ke))throw Aa=gr,bo;t.flags|=8192}}function Vu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?L():536870912,t.lanes|=e,Ql|=e)}function Ua(t,e){if(!Mt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function $t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function iy(t,e,n){var l=e.pendingProps;switch(cr(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(e),null;case 1:return $t(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),cn(ee),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(va(e)?hn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,mo())),$t(e),null;case 26:return n=e.memoizedState,t===null?(hn(e),n!==null?($t(e),Lf(e,n)):($t(e),e.flags&=-16777217)):n?n!==t.memoizedState?(hn(e),$t(e),Lf(e,n)):($t(e),e.flags&=-16777217):(t.memoizedProps!==l&&hn(e),$t(e),e.flags&=-16777217),null;case 27:fl(e),n=ct.current;var a=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&hn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return $t(e),null}t=P.current,va(e)?fo(e):(t=Lh(a,l,n),e.stateNode=t,hn(e))}return $t(e),null;case 5:if(fl(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&hn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return $t(e),null}if(t=P.current,va(e))fo(e);else{switch(a=ui(ct.current),t){case 1:t=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?a.createElement("select",{is:l.is}):a.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?a.createElement(n,{is:l.is}):a.createElement(n)}}t[Kt]=e,t[re]=l;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=t;t:switch(oe(t,n,l),n){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&hn(e)}}return $t(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&hn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=ct.current,va(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=ye,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[Kt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||zh(t.nodeValue,n)),t||nl(e)}else t=ui(t).createTextNode(l),t[Kt]=e,e.stateNode=t}return $t(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=va(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(c(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));a[Kt]=e}else pa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;$t(e),a=!1}else a=mo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(on(e),e):(on(e),null)}if(on(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=l!==null,t=t!==null&&t.memoizedState!==null,n){l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool);var u=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==a&&(l.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Vu(e,e.updateQueue),$t(e),null;case 4:return ge(),t===null&&Sc(e.stateNode.containerInfo),$t(e),null;case 10:return cn(e.type),$t(e),null;case 19:if(Q(ne),a=e.memoizedState,a===null)return $t(e),null;if(l=(e.flags&128)!==0,u=a.rendering,u===null)if(l)Ua(a,!1);else{if(Vt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Qu(t),u!==null){for(e.flags|=128,Ua(a,!1),t=u.updateQueue,e.updateQueue=t,Vu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)so(n,t),n=n.sibling;return j(ne,ne.current&1|2),e.child}t=t.sibling}a.tail!==null&&Ee()>Ju&&(e.flags|=128,l=!0,Ua(a,!1),e.lanes=4194304)}else{if(!l)if(t=Qu(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Vu(e,t),Ua(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Mt)return $t(e),null}else 2*Ee()-a.renderingStartTime>Ju&&n!==536870912&&(e.flags|=128,l=!0,Ua(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=Ee(),e.sibling=null,t=ne.current,j(ne,l?t&1|2:t&1),e):($t(e),null);case 22:case 23:return on(e),_r(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&($t(e),e.subtreeFlags&6&&(e.flags|=8192)):$t(e),n=e.updateQueue,n!==null&&Vu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Q(ul),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),cn(ee),$t(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function ry(t,e){switch(cr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return cn(ee),ge(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return fl(e),null;case 13:if(on(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));pa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(ne),null;case 4:return ge(),null;case 10:return cn(e.type),null;case 22:case 23:return on(e),_r(),t!==null&&Q(ul),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return cn(ee),null;case 25:return null;default:return null}}function Hf(t,e){switch(cr(e),e.tag){case 3:cn(ee),ge();break;case 26:case 27:case 5:fl(e);break;case 4:ge();break;case 13:on(e);break;case 19:Q(ne);break;case 10:cn(e.type);break;case 22:case 23:on(e),_r(),t!==null&&Q(ul);break;case 24:cn(ee)}}function wa(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var u=n.create,s=n.inst;l=u(),s.destroy=l}n=n.next}while(n!==a)}}catch(f){Lt(e,e.return,f)}}function Nn(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&t)===t){var s=l.inst,f=s.destroy;if(f!==void 0){s.destroy=void 0,a=e;var y=n,A=f;try{A()}catch(C){Lt(a,y,C)}}}l=l.next}while(l!==u)}}catch(C){Lt(e,e.return,C)}}function jf(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Ro(e,n)}catch(l){Lt(t,t.return,l)}}}function Yf(t,e,n){n.props=rl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Lt(t,e,l)}}function qa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(a){Lt(t,e,a)}}function Je(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){Lt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Lt(t,e,a)}else n.current=null}function Qf(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){Lt(t,t.return,a)}}function Wr(t,e,n){try{var l=t.stateNode;Ny(l,t.type,n,e),l[re]=e}catch(a){Lt(t,t.return,a)}}function Gf(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&qn(t.type)||t.tag===4}function Fr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Gf(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&&qn(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 Pr(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ai));else if(l!==4&&(l===27&&qn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Pr(t,e,n),t=t.sibling;t!==null;)Pr(t,e,n),t=t.sibling}function Zu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Zu(t,e,n),t=t.sibling;t!==null;)Zu(t,e,n),t=t.sibling}function Xf(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);oe(e,l,n),e[Kt]=t,e[re]=n}catch(u){Lt(t,t.return,u)}}var dn=!1,Wt=!1,Ir=!1,$f=typeof WeakSet=="function"?WeakSet:Set,ue=null;function cy(t,e){if(t=t.containerInfo,Tc=fi,t=Is(t),Fi(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var s=0,f=-1,y=-1,A=0,C=0,H=t,D=null;e:for(;;){for(var N;H!==n||a!==0&&H.nodeType!==3||(f=s+a),H!==u||l!==0&&H.nodeType!==3||(y=s+l),H.nodeType===3&&(s+=H.nodeValue.length),(N=H.firstChild)!==null;)D=H,H=N;for(;;){if(H===t)break e;if(D===n&&++A===a&&(f=s),D===u&&++C===l&&(y=s),(N=H.nextSibling)!==null)break;H=D,D=H.parentNode}H=N}n=f===-1||y===-1?null:{start:f,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ac={focusedElem:t,selectionRange:n},fi=!1,ue=e;ue!==null;)if(e=ue,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,ue=t;else for(;ue!==null;){switch(e=ue,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,a=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var it=rl(n.type,a,n.elementType===n.type);t=l.getSnapshotBeforeUpdate(it,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(et){Lt(n,n.return,et)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Dc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Dc(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(c(163))}if(t=e.sibling,t!==null){t.return=e.return,ue=t;break}ue=e.return}}function kf(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:xn(t,n),l&4&&wa(5,n);break;case 1:if(xn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(s){Lt(n,n.return,s)}else{var a=rl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){Lt(n,n.return,s)}}l&64&&jf(n),l&512&&qa(n,n.return);break;case 3:if(xn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Ro(t,e)}catch(s){Lt(n,n.return,s)}}break;case 27:e===null&&l&4&&Xf(n);case 26:case 5:xn(t,n),e===null&&l&4&&Qf(n),l&512&&qa(n,n.return);break;case 12:xn(t,n);break;case 13:xn(t,n),l&4&&Kf(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=vy.bind(null,n),wy(t,n))));break;case 22:if(l=n.memoizedState!==null||dn,!l){e=e!==null&&e.memoizedState!==null||Wt,a=dn;var u=Wt;dn=l,(Wt=e)&&!u?zn(t,n,(n.subtreeFlags&8772)!==0):xn(t,n),dn=a,Wt=u}break;case 30:break;default:xn(t,n)}}function Vf(t){var e=t.alternate;e!==null&&(t.alternate=null,Vf(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Bi(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 Xt=null,be=!1;function mn(t,e,n){for(n=n.child;n!==null;)Zf(t,e,n),n=n.sibling}function Zf(t,e,n){if(te&&typeof te.onCommitFiberUnmount=="function")try{te.onCommitFiberUnmount(tn,n)}catch{}switch(n.tag){case 26:Wt||Je(n,e),mn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||Je(n,e);var l=Xt,a=be;qn(n.type)&&(Xt=n.stateNode,be=!1),mn(t,e,n),ka(n.stateNode),Xt=l,be=a;break;case 5:Wt||Je(n,e);case 6:if(l=Xt,a=be,Xt=null,mn(t,e,n),Xt=l,be=a,Xt!==null)if(be)try{(Xt.nodeType===9?Xt.body:Xt.nodeName==="HTML"?Xt.ownerDocument.body:Xt).removeChild(n.stateNode)}catch(u){Lt(n,e,u)}else try{Xt.removeChild(n.stateNode)}catch(u){Lt(n,e,u)}break;case 18:Xt!==null&&(be?(t=Xt,wh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ia(t)):wh(Xt,n.stateNode));break;case 4:l=Xt,a=be,Xt=n.stateNode.containerInfo,be=!0,mn(t,e,n),Xt=l,be=a;break;case 0:case 11:case 14:case 15:Wt||Nn(2,n,e),Wt||Nn(4,n,e),mn(t,e,n);break;case 1:Wt||(Je(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Yf(n,e,l)),mn(t,e,n);break;case 21:mn(t,e,n);break;case 22:Wt=(l=Wt)||n.memoizedState!==null,mn(t,e,n),Wt=l;break;default:mn(t,e,n)}}function Kf(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ia(t)}catch(n){Lt(e,e.return,n)}}function sy(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new $f),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new $f),e;default:throw Error(c(435,t.tag))}}function tc(t,e){var n=sy(t);e.forEach(function(l){var a=py.bind(null,t,l);n.has(l)||(n.add(l),l.then(a,a))})}function Ae(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],u=t,s=e,f=s;t:for(;f!==null;){switch(f.tag){case 27:if(qn(f.type)){Xt=f.stateNode,be=!1;break t}break;case 5:Xt=f.stateNode,be=!1;break t;case 3:case 4:Xt=f.stateNode.containerInfo,be=!0;break t}f=f.return}if(Xt===null)throw Error(c(160));Zf(u,s,a),Xt=null,be=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Jf(e,t),e=e.sibling}var Qe=null;function Jf(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ae(e,t),Re(t),l&4&&(Nn(3,t,t.return),wa(3,t),Nn(5,t,t.return));break;case 1:Ae(e,t),Re(t),l&512&&(Wt||n===null||Je(n,n.return)),l&64&&dn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=Qe;if(Ae(e,t),Re(t),l&512&&(Wt||n===null||Je(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case"title":u=a.getElementsByTagName("title")[0],(!u||u[ia]||u[Kt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(l),a.head.insertBefore(u,a.querySelector("head > title"))),oe(u,l,n),u[Kt]=t,le(u),l=u;break t;case"link":var s=Xh("link","href",a).get(l+(n.href||""));if(s){for(var f=0;f<s.length;f++)if(u=s[f],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(f,1);break e}}u=a.createElement(l),oe(u,l,n),a.head.appendChild(u);break;case"meta":if(s=Xh("meta","content",a).get(l+(n.content||""))){for(f=0;f<s.length;f++)if(u=s[f],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(f,1);break e}}u=a.createElement(l),oe(u,l,n),a.head.appendChild(u);break;default:throw Error(c(468,l))}u[Kt]=t,le(u),l=u}t.stateNode=l}else $h(a,t.type,t.stateNode);else t.stateNode=Gh(a,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?$h(a,t.type,t.stateNode):Gh(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Wr(t,t.memoizedProps,n.memoizedProps)}break;case 27:Ae(e,t),Re(t),l&512&&(Wt||n===null||Je(n,n.return)),n!==null&&l&4&&Wr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Ae(e,t),Re(t),l&512&&(Wt||n===null||Je(n,n.return)),t.flags&32){a=t.stateNode;try{bl(a,"")}catch(N){Lt(t,t.return,N)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,Wr(t,a,n!==null?n.memoizedProps:a)),l&1024&&(Ir=!0);break;case 6:if(Ae(e,t),Re(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(N){Lt(t,t.return,N)}}break;case 3:if(ci=null,a=Qe,Qe=ii(e.containerInfo),Ae(e,t),Qe=a,Re(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ia(e.containerInfo)}catch(N){Lt(t,t.return,N)}Ir&&(Ir=!1,Wf(t));break;case 4:l=Qe,Qe=ii(t.stateNode.containerInfo),Ae(e,t),Re(t),Qe=l;break;case 12:Ae(e,t),Re(t);break;case 13:Ae(e,t),Re(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ic=Ee()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tc(t,l)));break;case 22:a=t.memoizedState!==null;var y=n!==null&&n.memoizedState!==null,A=dn,C=Wt;if(dn=A||a,Wt=C||y,Ae(e,t),Wt=C,dn=A,Re(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||y||dn||Wt||cl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){y=n=e;try{if(u=y.stateNode,a)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{f=y.stateNode;var H=y.memoizedProps.style,D=H!=null&&H.hasOwnProperty("display")?H.display:null;f.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(N){Lt(y,y.return,N)}}}else if(e.tag===6){if(n===null){y=e;try{y.stateNode.nodeValue=a?"":y.memoizedProps}catch(N){Lt(y,y.return,N)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,tc(t,n))));break;case 19:Ae(e,t),Re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,tc(t,l)));break;case 30:break;case 21:break;default:Ae(e,t),Re(t)}}function Re(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Gf(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var a=n.stateNode,u=Fr(t);Zu(t,u,a);break;case 5:var s=n.stateNode;n.flags&32&&(bl(s,""),n.flags&=-33);var f=Fr(t);Zu(t,f,s);break;case 3:case 4:var y=n.stateNode.containerInfo,A=Fr(t);Pr(t,A,y);break;default:throw Error(c(161))}}catch(C){Lt(t,t.return,C)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Wf(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Wf(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function xn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)kf(t,e.alternate,e),e=e.sibling}function cl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Nn(4,e,e.return),cl(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Yf(e,e.return,n),cl(e);break;case 27:ka(e.stateNode);case 26:case 5:Je(e,e.return),cl(e);break;case 22:e.memoizedState===null&&cl(e);break;case 30:cl(e);break;default:cl(e)}t=t.sibling}}function zn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,u=e,s=u.flags;switch(u.tag){case 0:case 11:case 15:zn(a,u,n),wa(4,u);break;case 1:if(zn(a,u,n),l=u,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(A){Lt(l,l.return,A)}if(l=u,a=l.updateQueue,a!==null){var f=l.stateNode;try{var y=a.shared.hiddenCallbacks;if(y!==null)for(a.shared.hiddenCallbacks=null,a=0;a<y.length;a++)Ao(y[a],f)}catch(A){Lt(l,l.return,A)}}n&&s&64&&jf(u),qa(u,u.return);break;case 27:Xf(u);case 26:case 5:zn(a,u,n),n&&l===null&&s&4&&Qf(u),qa(u,u.return);break;case 12:zn(a,u,n);break;case 13:zn(a,u,n),n&&s&4&&Kf(a,u);break;case 22:u.memoizedState===null&&zn(a,u,n),qa(u,u.return);break;case 30:break;default:zn(a,u,n)}e=e.sibling}}function ec(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Ea(n))}function nc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ea(t))}function We(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ff(t,e,n,l),e=e.sibling}function Ff(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,n,l),a&2048&&wa(9,e);break;case 1:We(t,e,n,l);break;case 3:We(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ea(t)));break;case 12:if(a&2048){We(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,s=u.id,f=u.onPostCommit;typeof f=="function"&&f(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(y){Lt(e,e.return,y)}}else We(t,e,n,l);break;case 13:We(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,s=e.alternate,e.memoizedState!==null?u._visibility&2?We(t,e,n,l):La(t,e):u._visibility&2?We(t,e,n,l):(u._visibility|=2,Hl(t,e,n,l,(e.subtreeFlags&10256)!==0)),a&2048&&ec(s,e);break;case 24:We(t,e,n,l),a&2048&&nc(e.alternate,e);break;default:We(t,e,n,l)}}function Hl(t,e,n,l,a){for(a=a&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,s=e,f=n,y=l,A=s.flags;switch(s.tag){case 0:case 11:case 15:Hl(u,s,f,y,a),wa(8,s);break;case 23:break;case 22:var C=s.stateNode;s.memoizedState!==null?C._visibility&2?Hl(u,s,f,y,a):La(u,s):(C._visibility|=2,Hl(u,s,f,y,a)),a&&A&2048&&ec(s.alternate,s);break;case 24:Hl(u,s,f,y,a),a&&A&2048&&nc(s.alternate,s);break;default:Hl(u,s,f,y,a)}e=e.sibling}}function La(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:La(n,l),a&2048&&ec(l.alternate,l);break;case 24:La(n,l),a&2048&&nc(l.alternate,l);break;default:La(n,l)}e=e.sibling}}var Ha=8192;function jl(t){if(t.subtreeFlags&Ha)for(t=t.child;t!==null;)Pf(t),t=t.sibling}function Pf(t){switch(t.tag){case 26:jl(t),t.flags&Ha&&t.memoizedState!==null&&Ky(Qe,t.memoizedState,t.memoizedProps);break;case 5:jl(t);break;case 3:case 4:var e=Qe;Qe=ii(t.stateNode.containerInfo),jl(t),Qe=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Ha,Ha=16777216,jl(t),Ha=e):jl(t));break;default:jl(t)}}function If(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 ja(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ue=l,eh(l,t)}If(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)th(t),t=t.sibling}function th(t){switch(t.tag){case 0:case 11:case 15:ja(t),t.flags&2048&&Nn(9,t,t.return);break;case 3:ja(t);break;case 12:ja(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ku(t)):ja(t);break;default:ja(t)}}function Ku(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ue=l,eh(l,t)}If(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Nn(8,e,e.return),Ku(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ku(e));break;default:Ku(e)}t=t.sibling}}function eh(t,e){for(;ue!==null;){var n=ue;switch(n.tag){case 0:case 11:case 15:Nn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ea(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ue=l;else t:for(n=t;ue!==null;){l=ue;var a=l.sibling,u=l.return;if(Vf(l),l===n){ue=null;break t}if(a!==null){a.return=u,ue=a;break t}ue=u}}}var oy={getCacheForType:function(t){var e=he(ee),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},fy=typeof WeakMap=="function"?WeakMap:Map,Bt=0,Ht=null,Et=null,Ot=0,Ct=0,Oe=null,Mn=!1,Yl=!1,lc=!1,yn=0,Vt=0,Bn=0,sl=0,ac=0,qe=0,Ql=0,Ya=null,Se=null,uc=!1,ic=0,Ju=1/0,Wu=null,Cn=null,se=0,Un=null,Gl=null,Xl=0,rc=0,cc=null,nh=null,Qa=0,sc=null;function De(){if((Bt&2)!==0&&Ot!==0)return Ot&-Ot;if(x.T!==null){var t=zl;return t!==0?t:gc()}return Ve()}function lh(){qe===0&&(qe=(Ot&536870912)===0||Mt?S():536870912);var t=we.current;return t!==null&&(t.flags|=32),qe}function Ne(t,e,n){(t===Ht&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&($l(t,0),wn(t,Ot,qe,!1)),X(t,n),((Bt&2)===0||t!==Ht)&&(t===Ht&&((Bt&2)===0&&(sl|=n),Vt===4&&wn(t,Ot,qe,!1)),Fe(t))}function ah(t,e,n){if((Bt&6)!==0)throw Error(c(327));var l=!n&&(e&124)===0&&(e&t.expiredLanes)===0||B(t,e),a=l?my(t,e):hc(t,e,!0),u=l;do{if(a===0){Yl&&!l&&wn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!hy(n)){a=hc(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var f=t;a=Ya;var y=f.current.memoizedState.isDehydrated;if(y&&($l(f,s).flags|=256),s=hc(f,s,!1),s!==2){if(lc&&!y){f.errorRecoveryDisabledLanes|=u,sl|=u,a=4;break t}u=Se,Se=a,u!==null&&(Se===null?Se=u:Se.push.apply(Se,u))}a=s}if(u=!1,a!==2)continue}}if(a===1){$l(t,0),wn(t,e,0,!0);break}t:{switch(l=t,u=a,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:wn(l,e,qe,!Mn);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(a=ic+300-Ee(),10<a)){if(wn(l,e,qe,!Mn),h(l,0,!0)!==0)break t;l.timeoutHandle=Ch(uh.bind(null,l,n,Se,Wu,uc,e,qe,sl,Ql,Mn,u,2,-0,0),a);break t}uh(l,n,Se,Wu,uc,e,qe,sl,Ql,Mn,u,0,-0,0)}}break}while(!0);Fe(t)}function uh(t,e,n,l,a,u,s,f,y,A,C,H,D,N){if(t.timeoutHandle=-1,H=e.subtreeFlags,(H&8192||(H&16785408)===16785408)&&(Ka={stylesheets:null,count:0,unsuspend:Zy},Pf(e),H=Jy(),H!==null)){t.cancelPendingCommit=H(hh.bind(null,t,e,u,n,l,a,s,f,y,C,1,D,N)),wn(t,u,s,!A);return}hh(t,e,u,n,l,a,s,f,y)}function hy(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],u=a.getSnapshot;a=a.value;try{if(!_e(u(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function wn(t,e,n,l){e&=~ac,e&=~sl,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var u=31-me(a),s=1<<u;l[u]=-1,a&=~s}n!==0&&zt(t,n,e)}function Fu(){return(Bt&6)===0?(Ga(0),!1):!0}function oc(){if(Et!==null){if(Ct===0)var t=Et.return;else t=Et,rn=ll=null,Dr(t),ql=null,Ba=0,t=Et;for(;t!==null;)Hf(t.alternate,t),t=t.return;Et=null}}function $l(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,zy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),oc(),Ht=t,Et=n=ln(t.current,null),Ot=e,Ct=0,Oe=null,Mn=!1,Yl=B(t,e),lc=!1,Ql=qe=ac=sl=Bn=Vt=0,Se=Ya=null,uc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-me(l),u=1<<a;e|=t[a],l&=~u}return yn=e,bu(),n}function ih(t,e){pt=null,x.H=Hu,e===Ta||e===Nu?(e=_o(),Ct=3):e===bo?(e=_o(),Ct=4):Ct=e===Af?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oe=e,Et===null&&(Vt=1,Xu(t,Me(e,t.current)))}function rh(){var t=x.H;return x.H=Hu,t===null?Hu:t}function ch(){var t=x.A;return x.A=oy,t}function fc(){Vt=4,Mn||(Ot&4194048)!==Ot&&we.current!==null||(Yl=!0),(Bn&134217727)===0&&(sl&134217727)===0||Ht===null||wn(Ht,Ot,qe,!1)}function hc(t,e,n){var l=Bt;Bt|=2;var a=rh(),u=ch();(Ht!==t||Ot!==e)&&(Wu=null,$l(t,e)),e=!1;var s=Vt;t:do try{if(Ct!==0&&Et!==null){var f=Et,y=Oe;switch(Ct){case 8:oc(),s=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var A=Ct;if(Ct=0,Oe=null,kl(t,f,y,A),n&&Yl){s=0;break t}break;default:A=Ct,Ct=0,Oe=null,kl(t,f,y,A)}}dy(),s=Vt;break}catch(C){ih(t,C)}while(!0);return e&&t.shellSuspendCounter++,rn=ll=null,Bt=l,x.H=a,x.A=u,Et===null&&(Ht=null,Ot=0,bu()),s}function dy(){for(;Et!==null;)sh(Et)}function my(t,e){var n=Bt;Bt|=2;var l=rh(),a=ch();Ht!==t||Ot!==e?(Wu=null,Ju=Ee()+500,$l(t,e)):Yl=B(t,e);t:do try{if(Ct!==0&&Et!==null){e=Et;var u=Oe;e:switch(Ct){case 1:Ct=0,Oe=null,kl(t,e,u,1);break;case 2:case 9:if(So(u)){Ct=0,Oe=null,oh(e);break}e=function(){Ct!==2&&Ct!==9||Ht!==t||(Ct=7),Fe(t)},u.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:So(u)?(Ct=0,Oe=null,oh(e)):(Ct=0,Oe=null,kl(t,e,u,7));break;case 5:var s=null;switch(Et.tag){case 26:s=Et.memoizedState;case 5:case 27:var f=Et;if(!s||kh(s)){Ct=0,Oe=null;var y=f.sibling;if(y!==null)Et=y;else{var A=f.return;A!==null?(Et=A,Pu(A)):Et=null}break e}}Ct=0,Oe=null,kl(t,e,u,5);break;case 6:Ct=0,Oe=null,kl(t,e,u,6);break;case 8:oc(),Vt=6;break t;default:throw Error(c(462))}}yy();break}catch(C){ih(t,C)}while(!0);return rn=ll=null,x.H=l,x.A=a,Bt=n,Et!==null?0:(Ht=null,Ot=0,bu(),Vt)}function yy(){for(;Et!==null&&!uu();)sh(Et)}function sh(t){var e=qf(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?Pu(t):Et=e}function oh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=zf(n,e,e.pendingProps,e.type,void 0,Ot);break;case 11:e=zf(n,e,e.pendingProps,e.type.render,e.ref,Ot);break;case 5:Dr(e);default:Hf(n,e),e=Et=so(e,yn),e=qf(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?Pu(t):Et=e}function kl(t,e,n,l){rn=ll=null,Dr(e),ql=null,Ba=0;var a=e.return;try{if(ay(t,a,e,n,Ot)){Vt=1,Xu(t,Me(n,t.current)),Et=null;return}}catch(u){if(a!==null)throw Et=a,u;Vt=1,Xu(t,Me(n,t.current)),Et=null;return}e.flags&32768?(Mt||l===1?t=!0:Yl||(Ot&536870912)!==0?t=!1:(Mn=t=!0,(l===2||l===9||l===3||l===6)&&(l=we.current,l!==null&&l.tag===13&&(l.flags|=16384))),fh(e,t)):Pu(e)}function Pu(t){var e=t;do{if((e.flags&32768)!==0){fh(e,Mn);return}t=e.return;var n=iy(e.alternate,e,yn);if(n!==null){Et=n;return}if(e=e.sibling,e!==null){Et=e;return}Et=e=t}while(e!==null);Vt===0&&(Vt=5)}function fh(t,e){do{var n=ry(t.alternate,t);if(n!==null){n.flags&=32767,Et=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Et=t;return}Et=t=n}while(t!==null);Vt=6,Et=null}function hh(t,e,n,l,a,u,s,f,y){t.cancelPendingCommit=null;do Iu();while(se!==0);if((Bt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=nr,F(t,n,u,s,f,y),t===Ht&&(Et=Ht=null,Ot=0),Gl=e,Un=t,Xl=n,rc=u,cc=a,nh=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,by($n,function(){return vh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=x.T,x.T=null,a=G.p,G.p=2,s=Bt,Bt|=4;try{cy(t,e,n)}finally{Bt=s,G.p=a,x.T=l}}se=1,dh(),mh(),yh()}}function dh(){if(se===1){se=0;var t=Un,e=Gl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=x.T,x.T=null;var l=G.p;G.p=2;var a=Bt;Bt|=4;try{Jf(e,t);var u=Ac,s=Is(t.containerInfo),f=u.focusedElem,y=u.selectionRange;if(s!==f&&f&&f.ownerDocument&&Ps(f.ownerDocument.documentElement,f)){if(y!==null&&Fi(f)){var A=y.start,C=y.end;if(C===void 0&&(C=A),"selectionStart"in f)f.selectionStart=A,f.selectionEnd=Math.min(C,f.value.length);else{var H=f.ownerDocument||document,D=H&&H.defaultView||window;if(D.getSelection){var N=D.getSelection(),it=f.textContent.length,et=Math.min(y.start,it),qt=y.end===void 0?et:Math.min(y.end,it);!N.extend&&et>qt&&(s=qt,qt=et,et=s);var E=Fs(f,et),b=Fs(f,qt);if(E&&b&&(N.rangeCount!==1||N.anchorNode!==E.node||N.anchorOffset!==E.offset||N.focusNode!==b.node||N.focusOffset!==b.offset)){var _=H.createRange();_.setStart(E.node,E.offset),N.removeAllRanges(),et>qt?(N.addRange(_),N.extend(b.node,b.offset)):(_.setEnd(b.node,b.offset),N.addRange(_))}}}}for(H=[],N=f;N=N.parentNode;)N.nodeType===1&&H.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<H.length;f++){var w=H[f];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}fi=!!Tc,Ac=Tc=null}finally{Bt=a,G.p=l,x.T=n}}t.current=e,se=2}}function mh(){if(se===2){se=0;var t=Un,e=Gl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=x.T,x.T=null;var l=G.p;G.p=2;var a=Bt;Bt|=4;try{kf(t,e.alternate,e)}finally{Bt=a,G.p=l,x.T=n}}se=3}}function yh(){if(se===4||se===3){se=0,iu();var t=Un,e=Gl,n=Xl,l=nh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?se=5:(se=0,Gl=Un=null,gh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Cn=null),Rt(n),e=e.stateNode,te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(tn,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=x.T,a=G.p,G.p=2,x.T=null;try{for(var u=t.onRecoverableError,s=0;s<l.length;s++){var f=l[s];u(f.value,{componentStack:f.stack})}}finally{x.T=e,G.p=a}}(Xl&3)!==0&&Iu(),Fe(t),a=t.pendingLanes,(n&4194090)!==0&&(a&42)!==0?t===sc?Qa++:(Qa=0,sc=t):Qa=0,Ga(0)}}function gh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ea(e)))}function Iu(t){return dh(),mh(),yh(),vh()}function vh(){if(se!==5)return!1;var t=Un,e=rc;rc=0;var n=Rt(Xl),l=x.T,a=G.p;try{G.p=32>n?32:n,x.T=null,n=cc,cc=null;var u=Un,s=Xl;if(se=0,Gl=Un=null,Xl=0,(Bt&6)!==0)throw Error(c(331));var f=Bt;if(Bt|=4,th(u.current),Ff(u,u.current,s,n),Bt=f,Ga(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(tn,u)}catch{}return!0}finally{G.p=a,x.T=l,gh(t,e)}}function ph(t,e,n){e=Me(n,e),e=Qr(t.stateNode,e,2),t=An(t,e,2),t!==null&&(X(t,2),Fe(t))}function Lt(t,e,n){if(t.tag===3)ph(t,t,n);else for(;e!==null;){if(e.tag===3){ph(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Cn===null||!Cn.has(l))){t=Me(n,t),n=_f(2),l=An(e,n,2),l!==null&&(Tf(n,l,e,t),X(l,2),Fe(l));break}}e=e.return}}function dc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new fy;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(lc=!0,a.add(n),t=gy.bind(null,t,e,n),e.then(t,t))}function gy(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ht===t&&(Ot&n)===n&&(Vt===4||Vt===3&&(Ot&62914560)===Ot&&300>Ee()-ic?(Bt&2)===0&&$l(t,0):ac|=n,Ql===Ot&&(Ql=0)),Fe(t)}function bh(t,e){e===0&&(e=L()),t=Ol(t,e),t!==null&&(X(t,e),Fe(t))}function vy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),bh(t,n)}function py(t,e){var n=0;switch(t.tag){case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),bh(t,n)}function by(t,e){return hl(t,e)}var ti=null,Vl=null,mc=!1,ei=!1,yc=!1,ol=0;function Fe(t){t!==Vl&&t.next===null&&(Vl===null?ti=Vl=t:Vl=Vl.next=t),ei=!0,mc||(mc=!0,Ey())}function Ga(t,e){if(!yc&&ei){yc=!0;do for(var n=!1,l=ti;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var u=0;else{var s=l.suspendedLanes,f=l.pingedLanes;u=(1<<31-me(42|t)+1)-1,u&=a&~(s&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Th(l,u))}else u=Ot,u=h(l,l===Ht?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||B(l,u)||(n=!0,Th(l,u));l=l.next}while(n);yc=!1}}function Sy(){Sh()}function Sh(){ei=mc=!1;var t=0;ol!==0&&(xy()&&(t=ol),ol=0);for(var e=Ee(),n=null,l=ti;l!==null;){var a=l.next,u=Eh(l,e);u===0?(l.next=null,n===null?ti=a:n.next=a,a===null&&(Vl=n)):(n=l,(t!==0||(u&3)!==0)&&(ei=!0)),l=a}Ga(t)}function Eh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var s=31-me(u),f=1<<s,y=a[s];y===-1?((f&n)===0||(f&l)!==0)&&(a[s]=Y(f,e)):y<=e&&(t.expiredLanes|=f),u&=~f}if(e=Ht,n=Ot,n=h(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ta(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||B(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&ta(l),Rt(n)){case 2:case 8:n=ru;break;case 32:n=$n;break;case 268435456:n=kn;break;default:n=$n}return l=_h.bind(null,t),n=hl(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&ta(l),t.callbackPriority=2,t.callbackNode=null,2}function _h(t,e){if(se!==0&&se!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Iu()&&t.callbackNode!==n)return null;var l=Ot;return l=h(t,t===Ht?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(ah(t,l,e),Eh(t,Ee()),t.callbackNode!=null&&t.callbackNode===n?_h.bind(null,t):null)}function Th(t,e){if(Iu())return null;ah(t,e,!0)}function Ey(){My(function(){(Bt&6)!==0?hl(na,Sy):Sh()})}function gc(){return ol===0&&(ol=S()),ol}function Ah(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:hu(""+t)}function Rh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function _y(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var u=Ah((a[re]||null).action),s=l.submitter;s&&(e=(e=s[re]||null)?Ah(e.formAction):s.getAttribute("formAction"),e!==null&&(u=e,s=null));var f=new gu("action","action",null,l,a);t.push({event:f,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ol!==0){var y=s?Rh(a,s):new FormData(a);qr(n,{pending:!0,data:y,method:a.method,action:u},null,y)}}else typeof u=="function"&&(f.preventDefault(),y=s?Rh(a,s):new FormData(a),qr(n,{pending:!0,data:y,method:a.method,action:u},u,y))},currentTarget:a}]})}}for(var vc=0;vc<er.length;vc++){var pc=er[vc],Ty=pc.toLowerCase(),Ay=pc[0].toUpperCase()+pc.slice(1);Ye(Ty,"on"+Ay)}Ye(no,"onAnimationEnd"),Ye(lo,"onAnimationIteration"),Ye(ao,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(Qm,"onTransitionRun"),Ye(Gm,"onTransitionStart"),Ye(Xm,"onTransitionCancel"),Ye(uo,"onTransitionEnd"),gl("onMouseEnter",["mouseout","mouseover"]),gl("onMouseLeave",["mouseout","mouseover"]),gl("onPointerEnter",["pointerout","pointerover"]),gl("onPointerLeave",["pointerout","pointerover"]),Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xa="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(" "),Ry=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xa));function Oh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var s=l.length-1;0<=s;s--){var f=l[s],y=f.instance,A=f.currentTarget;if(f=f.listener,y!==u&&a.isPropagationStopped())break t;u=f,a.currentTarget=A;try{u(a)}catch(C){Gu(C)}a.currentTarget=null,u=y}else for(s=0;s<l.length;s++){if(f=l[s],y=f.instance,A=f.currentTarget,f=f.listener,y!==u&&a.isPropagationStopped())break t;u=f,a.currentTarget=A;try{u(a)}catch(C){Gu(C)}a.currentTarget=null,u=y}}}}function _t(t,e){var n=e[aa];n===void 0&&(n=e[aa]=new Set);var l=t+"__bubble";n.has(l)||(Dh(e,t,2,!1),n.add(l))}function bc(t,e,n){var l=0;e&&(l|=4),Dh(n,t,l,e)}var ni="_reactListening"+Math.random().toString(36).slice(2);function Sc(t){if(!t[ni]){t[ni]=!0,ps.forEach(function(n){n!=="selectionchange"&&(Ry.has(n)||bc(n,!1,t),bc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ni]||(e[ni]=!0,bc("selectionchange",!1,e))}}function Dh(t,e,n,l){switch(Fh(e)){case 2:var a=Py;break;case 8:a=Iy;break;default:a=Uc}n=a.bind(null,e,n,t),a=void 0,!Gi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function Ec(t,e,n,l,a){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var s=l.tag;if(s===3||s===4){var f=l.stateNode.containerInfo;if(f===a)break;if(s===4)for(s=l.return;s!==null;){var y=s.tag;if((y===3||y===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;f!==null;){if(s=dl(f),s===null)return;if(y=s.tag,y===5||y===6||y===26||y===27){l=u=s;continue t}f=f.parentNode}}l=l.return}Bs(function(){var A=u,C=Yi(n),H=[];t:{var D=io.get(t);if(D!==void 0){var N=gu,it=t;switch(t){case"keypress":if(mu(n)===0)break t;case"keydown":case"keyup":N=bm;break;case"focusin":it="focus",N=Vi;break;case"focusout":it="blur",N=Vi;break;case"beforeblur":case"afterblur":N=Vi;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=ws;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=rm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=_m;break;case no:case lo:case ao:N=om;break;case uo:N=Am;break;case"scroll":case"scrollend":N=um;break;case"wheel":N=Om;break;case"copy":case"cut":case"paste":N=hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Ls;break;case"toggle":case"beforetoggle":N=Nm}var et=(e&4)!==0,qt=!et&&(t==="scroll"||t==="scrollend"),E=et?D!==null?D+"Capture":null:D;et=[];for(var b=A,_;b!==null;){var w=b;if(_=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||_===null||E===null||(w=ca(b,E),w!=null&&et.push($a(b,w,_))),qt)break;b=b.return}0<et.length&&(D=new N(D,it,null,n,C),H.push({event:D,listeners:et}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",D&&n!==ji&&(it=n.relatedTarget||n.fromElement)&&(dl(it)||it[bn]))break t;if((N||D)&&(D=C.window===C?C:(D=C.ownerDocument)?D.defaultView||D.parentWindow:window,N?(it=n.relatedTarget||n.toElement,N=A,it=it?dl(it):null,it!==null&&(qt=g(it),et=it.tag,it!==qt||et!==5&&et!==27&&et!==6)&&(it=null)):(N=null,it=A),N!==it)){if(et=ws,w="onMouseLeave",E="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(et=Ls,w="onPointerLeave",E="onPointerEnter",b="pointer"),qt=N==null?D:ra(N),_=it==null?D:ra(it),D=new et(w,b+"leave",N,n,C),D.target=qt,D.relatedTarget=_,w=null,dl(C)===A&&(et=new et(E,b+"enter",it,n,C),et.target=_,et.relatedTarget=qt,w=et),qt=w,N&&it)e:{for(et=N,E=it,b=0,_=et;_;_=Zl(_))b++;for(_=0,w=E;w;w=Zl(w))_++;for(;0<b-_;)et=Zl(et),b--;for(;0<_-b;)E=Zl(E),_--;for(;b--;){if(et===E||E!==null&&et===E.alternate)break e;et=Zl(et),E=Zl(E)}et=null}else et=null;N!==null&&Nh(H,D,N,et,!1),it!==null&&qt!==null&&Nh(H,qt,it,et,!0)}}t:{if(D=A?ra(A):window,N=D.nodeName&&D.nodeName.toLowerCase(),N==="select"||N==="input"&&D.type==="file")var J=ks;else if(Xs(D))if(Vs)J=Hm;else{J=qm;var St=wm}else N=D.nodeName,!N||N.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?A&&Hi(A.elementType)&&(J=ks):J=Lm;if(J&&(J=J(t,A))){$s(H,J,n,C);break t}St&&St(t,D,A),t==="focusout"&&A&&D.type==="number"&&A.memoizedProps.value!=null&&Li(D,"number",D.value)}switch(St=A?ra(A):window,t){case"focusin":(Xs(St)||St.contentEditable==="true")&&(Tl=St,Pi=A,ga=null);break;case"focusout":ga=Pi=Tl=null;break;case"mousedown":Ii=!0;break;case"contextmenu":case"mouseup":case"dragend":Ii=!1,to(H,n,C);break;case"selectionchange":if(Ym)break;case"keydown":case"keyup":to(H,n,C)}var tt;if(Ki)t:{switch(t){case"compositionstart":var nt="onCompositionStart";break t;case"compositionend":nt="onCompositionEnd";break t;case"compositionupdate":nt="onCompositionUpdate";break t}nt=void 0}else _l?Qs(t,n)&&(nt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(nt="onCompositionStart");nt&&(Hs&&n.locale!=="ko"&&(_l||nt!=="onCompositionStart"?nt==="onCompositionEnd"&&_l&&(tt=Cs()):(Sn=C,Xi="value"in Sn?Sn.value:Sn.textContent,_l=!0)),St=li(A,nt),0<St.length&&(nt=new qs(nt,t,null,n,C),H.push({event:nt,listeners:St}),tt?nt.data=tt:(tt=Gs(n),tt!==null&&(nt.data=tt)))),(tt=zm?Mm(t,n):Bm(t,n))&&(nt=li(A,"onBeforeInput"),0<nt.length&&(St=new qs("onBeforeInput","beforeinput",null,n,C),H.push({event:St,listeners:nt}),St.data=tt)),_y(H,t,A,n,C)}Oh(H,e)})}function $a(t,e,n){return{instance:t,listener:e,currentTarget:n}}function li(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=ca(t,n),a!=null&&l.unshift($a(t,a,u)),a=ca(t,e),a!=null&&l.push($a(t,a,u))),t.tag===3)return l;t=t.return}return[]}function Zl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Nh(t,e,n,l,a){for(var u=e._reactName,s=[];n!==null&&n!==l;){var f=n,y=f.alternate,A=f.stateNode;if(f=f.tag,y!==null&&y===l)break;f!==5&&f!==26&&f!==27||A===null||(y=A,a?(A=ca(n,u),A!=null&&s.unshift($a(n,A,y))):a||(A=ca(n,u),A!=null&&s.push($a(n,A,y)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var Oy=/\r\n?/g,Dy=/\u0000|\uFFFD/g;function xh(t){return(typeof t=="string"?t:""+t).replace(Oy,`
`).replace(Dy,"")}function zh(t,e){return e=xh(e),xh(t)===e}function ai(){}function wt(t,e,n,l,a,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||bl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&bl(t,""+l);break;case"className":su(t,"class",l);break;case"tabIndex":su(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":su(t,n,l);break;case"style":zs(t,l,u);break;case"data":if(e!=="object"){su(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=hu(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&wt(t,e,"name",a.name,a,null),wt(t,e,"formEncType",a.formEncType,a,null),wt(t,e,"formMethod",a.formMethod,a,null),wt(t,e,"formTarget",a.formTarget,a,null)):(wt(t,e,"encType",a.encType,a,null),wt(t,e,"method",a.method,a,null),wt(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=hu(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ai);break;case"onScroll":l!=null&&_t("scroll",t);break;case"onScrollEnd":l!=null&&_t("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=hu(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":_t("beforetoggle",t),_t("toggle",t),cu(t,"popover",l);break;case"xlinkActuate":en(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":en(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":en(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":en(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":en(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":en(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":en(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":en(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":en(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":cu(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=lm.get(n)||n,cu(t,n,l))}}function _c(t,e,n,l,a,u){switch(n){case"style":zs(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?bl(t,l):(typeof l=="number"||typeof l=="bigint")&&bl(t,""+l);break;case"onScroll":l!=null&&_t("scroll",t);break;case"onScrollEnd":l!=null&&_t("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bs.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),u=t[re]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):cu(t,n,l)}}}function oe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",t),_t("load",t);var l=!1,a=!1,u;for(u in n)if(n.hasOwnProperty(u)){var s=n[u];if(s!=null)switch(u){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:wt(t,e,u,s,n,null)}}a&&wt(t,e,"srcSet",n.srcSet,n,null),l&&wt(t,e,"src",n.src,n,null);return;case"input":_t("invalid",t);var f=u=s=a=null,y=null,A=null;for(l in n)if(n.hasOwnProperty(l)){var C=n[l];if(C!=null)switch(l){case"name":a=C;break;case"type":s=C;break;case"checked":y=C;break;case"defaultChecked":A=C;break;case"value":u=C;break;case"defaultValue":f=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,e));break;default:wt(t,e,l,C,n,null)}}Os(t,u,f,y,A,s,a,!1),ou(t);return;case"select":_t("invalid",t),l=s=u=null;for(a in n)if(n.hasOwnProperty(a)&&(f=n[a],f!=null))switch(a){case"value":u=f;break;case"defaultValue":s=f;break;case"multiple":l=f;default:wt(t,e,a,f,n,null)}e=u,n=s,t.multiple=!!l,e!=null?pl(t,!!l,e,!1):n!=null&&pl(t,!!l,n,!0);return;case"textarea":_t("invalid",t),u=a=l=null;for(s in n)if(n.hasOwnProperty(s)&&(f=n[s],f!=null))switch(s){case"value":l=f;break;case"defaultValue":a=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(c(91));break;default:wt(t,e,s,f,n,null)}Ns(t,l,a,u),ou(t);return;case"option":for(y in n)if(n.hasOwnProperty(y)&&(l=n[y],l!=null))switch(y){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:wt(t,e,y,l,n,null)}return;case"dialog":_t("beforetoggle",t),_t("toggle",t),_t("cancel",t),_t("close",t);break;case"iframe":case"object":_t("load",t);break;case"video":case"audio":for(l=0;l<Xa.length;l++)_t(Xa[l],t);break;case"image":_t("error",t),_t("load",t);break;case"details":_t("toggle",t);break;case"embed":case"source":case"link":_t("error",t),_t("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in n)if(n.hasOwnProperty(A)&&(l=n[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:wt(t,e,A,l,n,null)}return;default:if(Hi(e)){for(C in n)n.hasOwnProperty(C)&&(l=n[C],l!==void 0&&_c(t,e,C,l,n,void 0));return}}for(f in n)n.hasOwnProperty(f)&&(l=n[f],l!=null&&wt(t,e,f,l,n,null))}function Ny(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,s=null,f=null,y=null,A=null,C=null;for(N in n){var H=n[N];if(n.hasOwnProperty(N)&&H!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":y=H;default:l.hasOwnProperty(N)||wt(t,e,N,null,l,H)}}for(var D in l){var N=l[D];if(H=n[D],l.hasOwnProperty(D)&&(N!=null||H!=null))switch(D){case"type":u=N;break;case"name":a=N;break;case"checked":A=N;break;case"defaultChecked":C=N;break;case"value":s=N;break;case"defaultValue":f=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,e));break;default:N!==H&&wt(t,e,D,N,l,H)}}qi(t,s,f,y,A,C,u,a);return;case"select":N=s=f=D=null;for(u in n)if(y=n[u],n.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":N=y;default:l.hasOwnProperty(u)||wt(t,e,u,null,l,y)}for(a in l)if(u=l[a],y=n[a],l.hasOwnProperty(a)&&(u!=null||y!=null))switch(a){case"value":D=u;break;case"defaultValue":f=u;break;case"multiple":s=u;default:u!==y&&wt(t,e,a,u,l,y)}e=f,n=s,l=N,D!=null?pl(t,!!n,D,!1):!!l!=!!n&&(e!=null?pl(t,!!n,e,!0):pl(t,!!n,n?[]:"",!1));return;case"textarea":N=D=null;for(f in n)if(a=n[f],n.hasOwnProperty(f)&&a!=null&&!l.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:wt(t,e,f,null,l,a)}for(s in l)if(a=l[s],u=n[s],l.hasOwnProperty(s)&&(a!=null||u!=null))switch(s){case"value":D=a;break;case"defaultValue":N=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(c(91));break;default:a!==u&&wt(t,e,s,a,l,u)}Ds(t,D,N);return;case"option":for(var it in n)if(D=n[it],n.hasOwnProperty(it)&&D!=null&&!l.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:wt(t,e,it,null,l,D)}for(y in l)if(D=l[y],N=n[y],l.hasOwnProperty(y)&&D!==N&&(D!=null||N!=null))switch(y){case"selected":t.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:wt(t,e,y,D,l,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 et in n)D=n[et],n.hasOwnProperty(et)&&D!=null&&!l.hasOwnProperty(et)&&wt(t,e,et,null,l,D);for(A in l)if(D=l[A],N=n[A],l.hasOwnProperty(A)&&D!==N&&(D!=null||N!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,e));break;default:wt(t,e,A,D,l,N)}return;default:if(Hi(e)){for(var qt in n)D=n[qt],n.hasOwnProperty(qt)&&D!==void 0&&!l.hasOwnProperty(qt)&&_c(t,e,qt,void 0,l,D);for(C in l)D=l[C],N=n[C],!l.hasOwnProperty(C)||D===N||D===void 0&&N===void 0||_c(t,e,C,D,l,N);return}}for(var E in n)D=n[E],n.hasOwnProperty(E)&&D!=null&&!l.hasOwnProperty(E)&&wt(t,e,E,null,l,D);for(H in l)D=l[H],N=n[H],!l.hasOwnProperty(H)||D===N||D==null&&N==null||wt(t,e,H,D,l,N)}var Tc=null,Ac=null;function ui(t){return t.nodeType===9?t:t.ownerDocument}function Mh(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 Bh(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 Rc(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 Oc=null;function xy(){var t=window.event;return t&&t.type==="popstate"?t===Oc?!1:(Oc=t,!0):(Oc=null,!1)}var Ch=typeof setTimeout=="function"?setTimeout:void 0,zy=typeof clearTimeout=="function"?clearTimeout:void 0,Uh=typeof Promise=="function"?Promise:void 0,My=typeof queueMicrotask=="function"?queueMicrotask:typeof Uh<"u"?function(t){return Uh.resolve(null).then(t).catch(By)}:Ch;function By(t){setTimeout(function(){throw t})}function qn(t){return t==="head"}function wh(t,e){var n=e,l=0,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(0<l&&8>l){n=l;var s=t.ownerDocument;if(n&1&&ka(s.documentElement),n&2&&ka(s.body),n&4)for(n=s.head,ka(n),s=n.firstChild;s;){var f=s.nextSibling,y=s.nodeName;s[ia]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=f}}if(a===0){t.removeChild(u),Ia(e);return}a--}else n==="$"||n==="$?"||n==="$!"?a++:l=n.charCodeAt(0)-48;else l=0;n=u}while(n);Ia(e)}function Dc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Dc(n),Bi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Cy(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ia])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function Uy(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ge(t.nextSibling),t===null))return null;return t}function Nc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function wy(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var xc=null;function qh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function Lh(t,e,n){switch(e=ui(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function ka(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Bi(t)}var Le=new Map,Hh=new Set;function ii(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gn=G.d;G.d={f:qy,r:Ly,D:Hy,C:jy,L:Yy,m:Qy,X:Xy,S:Gy,M:$y};function qy(){var t=gn.f(),e=Fu();return t||e}function Ly(t){var e=ml(t);e!==null&&e.tag===5&&e.type==="form"?lf(e):gn.r(t)}var Kl=typeof document>"u"?null:document;function jh(t,e,n){var l=Kl;if(l&&typeof e=="string"&&e){var a=ze(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Hh.has(a)||(Hh.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),oe(e,"link",t),le(e),l.head.appendChild(e)))}}function Hy(t){gn.D(t),jh("dns-prefetch",t,null)}function jy(t,e){gn.C(t,e),jh("preconnect",t,e)}function Yy(t,e,n){gn.L(t,e,n);var l=Kl;if(l&&t&&e){var a='link[rel="preload"][as="'+ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+ze(n.imageSizes)+'"]')):a+='[href="'+ze(t)+'"]';var u=a;switch(e){case"style":u=Jl(t);break;case"script":u=Wl(t)}Le.has(u)||(t=O({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Le.set(u,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(Va(u))||e==="script"&&l.querySelector(Za(u))||(e=l.createElement("link"),oe(e,"link",t),le(e),l.head.appendChild(e)))}}function Qy(t,e){gn.m(t,e);var n=Kl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+ze(l)+'"][href="'+ze(t)+'"]',u=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Wl(t)}if(!Le.has(u)&&(t=O({rel:"modulepreload",href:t},e),Le.set(u,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Za(u)))return}l=n.createElement("link"),oe(l,"link",t),le(l),n.head.appendChild(l)}}}function Gy(t,e,n){gn.S(t,e,n);var l=Kl;if(l&&t){var a=yl(l).hoistableStyles,u=Jl(t);e=e||"default";var s=a.get(u);if(!s){var f={loading:0,preload:null};if(s=l.querySelector(Va(u)))f.loading=5;else{t=O({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Le.get(u))&&zc(t,n);var y=s=l.createElement("link");le(y),oe(y,"link",t),y._p=new Promise(function(A,C){y.onload=A,y.onerror=C}),y.addEventListener("load",function(){f.loading|=1}),y.addEventListener("error",function(){f.loading|=2}),f.loading|=4,ri(s,e,l)}s={type:"stylesheet",instance:s,count:1,state:f},a.set(u,s)}}}function Xy(t,e){gn.X(t,e);var n=Kl;if(n&&t){var l=yl(n).hoistableScripts,a=Wl(t),u=l.get(a);u||(u=n.querySelector(Za(a)),u||(t=O({src:t,async:!0},e),(e=Le.get(a))&&Mc(t,e),u=n.createElement("script"),le(u),oe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function $y(t,e){gn.M(t,e);var n=Kl;if(n&&t){var l=yl(n).hoistableScripts,a=Wl(t),u=l.get(a);u||(u=n.querySelector(Za(a)),u||(t=O({src:t,async:!0,type:"module"},e),(e=Le.get(a))&&Mc(t,e),u=n.createElement("script"),le(u),oe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function Yh(t,e,n,l){var a=(a=ct.current)?ii(a):null;if(!a)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Jl(n.href),n=yl(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Jl(n.href);var u=yl(a).hoistableStyles,s=u.get(t);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,s),(u=a.querySelector(Va(t)))&&!u._p&&(s.instance=u,s.state.loading=5),Le.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Le.set(t,n),u||ky(a,t,n,s.state))),e&&l===null)throw Error(c(528,""));return s}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Wl(n),n=yl(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Jl(t){return'href="'+ze(t)+'"'}function Va(t){return'link[rel="stylesheet"]['+t+"]"}function Qh(t){return O({},t,{"data-precedence":t.precedence,precedence:null})}function ky(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),oe(e,"link",n),le(e),t.head.appendChild(e))}function Wl(t){return'[src="'+ze(t)+'"]'}function Za(t){return"script[async]"+t}function Gh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+ze(n.href)+'"]');if(l)return e.instance=l,le(l),l;var a=O({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),le(l),oe(l,"style",a),ri(l,n.precedence,t),e.instance=l;case"stylesheet":a=Jl(n.href);var u=t.querySelector(Va(a));if(u)return e.state.loading|=4,e.instance=u,le(u),u;l=Qh(n),(a=Le.get(a))&&zc(l,a),u=(t.ownerDocument||t).createElement("link"),le(u);var s=u;return s._p=new Promise(function(f,y){s.onload=f,s.onerror=y}),oe(u,"link",l),e.state.loading|=4,ri(u,n.precedence,t),e.instance=u;case"script":return u=Wl(n.src),(a=t.querySelector(Za(u)))?(e.instance=a,le(a),a):(l=n,(a=Le.get(u))&&(l=O({},n),Mc(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),le(a),oe(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,ri(l,n.precedence,t));return e.instance}function ri(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,u=a,s=0;s<l.length;s++){var f=l[s];if(f.dataset.precedence===e)u=f;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function zc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Mc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ci=null;function Xh(t,e,n){if(ci===null){var l=new Map,a=ci=new Map;a.set(n,l)}else a=ci,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var u=n[a];if(!(u[ia]||u[Kt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(e)||"";s=t+s;var f=l.get(s);f?f.push(u):l.set(s,[u])}}return l}function $h(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Vy(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function kh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ka=null;function Zy(){}function Ky(t,e,n){if(Ka===null)throw Error(c(475));var l=Ka;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=Jl(n.href),u=t.querySelector(Va(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=si.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,le(u);return}u=t.ownerDocument||t,n=Qh(n),(a=Le.get(a))&&zc(n,a),u=u.createElement("link"),le(u);var s=u;s._p=new Promise(function(f,y){s.onload=f,s.onerror=y}),oe(u,"link",n),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=si.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function Jy(){if(Ka===null)throw Error(c(475));var t=Ka;return t.stylesheets&&t.count===0&&Bc(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Bc(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function si(){if(this.count--,this.count===0){if(this.stylesheets)Bc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var oi=null;function Bc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,oi=new Map,e.forEach(Wy,t),oi=null,si.call(t))}function Wy(t,e){if(!(e.state.loading&4)){var n=oi.get(t);if(n)var l=n.get(null);else{n=new Map,oi.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var s=a[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),l=s)}l&&n.set(null,l)}a=e.instance,s=a.getAttribute("data-precedence"),u=n.get(s)||l,u===l&&n.set(null,a),n.set(s,a),this.count++,l=si.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ja={$$typeof:lt,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Fy(t,e,n,l,a,u,s,f){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=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function Vh(t,e,n,l,a,u,s,f,y,A,C,H){return t=new Fy(t,e,n,s,f,y,A,H),e=1,u===!0&&(e|=24),u=Te(3,null,null,e),t.current=u,u.stateNode=t,e=dr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},vr(u),t}function Zh(t){return t?(t=Dl,t):Dl}function Kh(t,e,n,l,a,u){a=Zh(a),l.context===null?l.context=a:l.pendingContext=a,l=Tn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=An(t,l,e),n!==null&&(Ne(n,t,e),Ra(n,t,e))}function Jh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Cc(t,e){Jh(t,e),(t=t.alternate)&&Jh(t,e)}function Wh(t){if(t.tag===13){var e=Ol(t,67108864);e!==null&&Ne(e,t,67108864),Cc(t,67108864)}}var fi=!0;function Py(t,e,n,l){var a=x.T;x.T=null;var u=G.p;try{G.p=2,Uc(t,e,n,l)}finally{G.p=u,x.T=a}}function Iy(t,e,n,l){var a=x.T;x.T=null;var u=G.p;try{G.p=8,Uc(t,e,n,l)}finally{G.p=u,x.T=a}}function Uc(t,e,n,l){if(fi){var a=wc(l);if(a===null)Ec(t,e,l,hi,n),Ph(t,l);else if(e0(a,t,e,n,l))l.stopPropagation();else if(Ph(t,l),e&4&&-1<t0.indexOf(t)){for(;a!==null;){var u=ml(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=ke(u.pendingLanes);if(s!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;s;){var y=1<<31-me(s);f.entanglements[1]|=y,s&=~y}Fe(u),(Bt&6)===0&&(Ju=Ee()+500,Ga(0))}}break;case 13:f=Ol(u,2),f!==null&&Ne(f,u,2),Fu(),Cc(u,2)}if(u=wc(l),u===null&&Ec(t,e,l,hi,n),u===a)break;a=u}a!==null&&l.stopPropagation()}else Ec(t,e,l,null,n)}}function wc(t){return t=Yi(t),qc(t)}var hi=null;function qc(t){if(hi=null,t=dl(t),t!==null){var e=g(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=T(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return hi=t,null}function Fh(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(ea()){case na:return 2;case ru:return 8;case $n:case Di:return 32;case kn:return 268435456;default:return 32}default:return 32}}var Lc=!1,Ln=null,Hn=null,jn=null,Wa=new Map,Fa=new Map,Yn=[],t0="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 Ph(t,e){switch(t){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Hn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":Wa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fa.delete(e.pointerId)}}function Pa(t,e,n,l,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[a]},e!==null&&(e=ml(e),e!==null&&Wh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function e0(t,e,n,l,a){switch(e){case"focusin":return Ln=Pa(Ln,t,e,n,l,a),!0;case"dragenter":return Hn=Pa(Hn,t,e,n,l,a),!0;case"mouseover":return jn=Pa(jn,t,e,n,l,a),!0;case"pointerover":var u=a.pointerId;return Wa.set(u,Pa(Wa.get(u)||null,t,e,n,l,a)),!0;case"gotpointercapture":return u=a.pointerId,Fa.set(u,Pa(Fa.get(u)||null,t,e,n,l,a)),!0}return!1}function Ih(t){var e=dl(t.target);if(e!==null){var n=g(e);if(n!==null){if(e=n.tag,e===13){if(e=T(n),e!==null){t.blockedOn=e,pn(t.priority,function(){if(n.tag===13){var l=De();l=Zt(l);var a=Ol(n,l);a!==null&&Ne(a,n,l),Cc(n,l)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function di(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=wc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);ji=l,n.target.dispatchEvent(l),ji=null}else return e=ml(n),e!==null&&Wh(e),t.blockedOn=n,!1;e.shift()}return!0}function td(t,e,n){di(t)&&n.delete(e)}function n0(){Lc=!1,Ln!==null&&di(Ln)&&(Ln=null),Hn!==null&&di(Hn)&&(Hn=null),jn!==null&&di(jn)&&(jn=null),Wa.forEach(td),Fa.forEach(td)}function mi(t,e){t.blockedOn===e&&(t.blockedOn=null,Lc||(Lc=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,n0)))}var yi=null;function ed(t){yi!==t&&(yi=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){yi===t&&(yi=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(qc(l||n)===null)continue;break}var u=ml(n);u!==null&&(t.splice(e,3),e-=3,qr(u,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Ia(t){function e(y){return mi(y,t)}Ln!==null&&mi(Ln,t),Hn!==null&&mi(Hn,t),jn!==null&&mi(jn,t),Wa.forEach(e),Fa.forEach(e);for(var n=0;n<Yn.length;n++){var l=Yn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&Yn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],u=n[l+1],s=a[re]||null;if(typeof u=="function")s||ed(n);else if(s){var f=null;if(u&&u.hasAttribute("formAction")){if(a=u,s=u[re]||null)f=s.formAction;else if(qc(a)!==null)continue}else f=s.action;typeof f=="function"?n[l+1]=f:(n.splice(l,3),l-=3),ed(n)}}}function Hc(t){this._internalRoot=t}gi.prototype.render=Hc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=De();Kh(n,l,t,e,null,null)},gi.prototype.unmount=Hc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Kh(t.current,2,null,t,null,null),Fu(),e[bn]=null}};function gi(t){this._internalRoot=t}gi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ve();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Yn.length&&e!==0&&e<Yn[n].priority;n++);Yn.splice(n,0,t),n===0&&Ih(t)}};var nd=i.version;if(nd!=="19.1.1")throw Error(c(527,nd,"19.1.1"));G.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=v(e),t=t!==null?d(t):null,t=t===null?null:t.stateNode,t};var l0={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vi.isDisabled&&vi.supportsFiber)try{tn=vi.inject(l0),te=vi}catch{}}return eu.createRoot=function(t,e){if(!m(t))throw Error(c(299));var n=!1,l="",a=pf,u=bf,s=Sf,f=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(f=e.unstable_transitionCallbacks)),e=Vh(t,1,!1,null,null,n,l,a,u,s,f,null),t[bn]=e.current,Sc(t),new Hc(e)},eu.hydrateRoot=function(t,e,n){if(!m(t))throw Error(c(299));var l=!1,a="",u=pf,s=bf,f=Sf,y=null,A=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(f=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(y=n.unstable_transitionCallbacks),n.formState!==void 0&&(A=n.formState)),e=Vh(t,1,!0,e,n??null,l,a,u,s,f,y,A),e.context=Zh(null),n=e.current,l=De(),l=Zt(l),a=Tn(l),a.callback=null,An(n,a,l),n=l,e.current.lanes=n,X(e,n),Fe(e),t[bn]=e.current,Sc(t),new gi(e)},eu.version="19.1.1",eu}var hd;function m0(){if(hd)return Qc.exports;hd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(i){console.error(i)}}return o(),Qc.exports=d0(),Qc.exports}var y0=m0();const Ie=Object.create(null);Ie.open="0";Ie.close="1";Ie.ping="2";Ie.pong="3";Ie.message="4";Ie.upgrade="5";Ie.noop="6";const Ei=Object.create(null);Object.keys(Ie).forEach(o=>{Ei[Ie[o]]=o});const is={type:"error",data:"parser error"},Cd=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ud=typeof ArrayBuffer=="function",wd=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o&&o.buffer instanceof ArrayBuffer,hs=({type:o,data:i},r,c)=>Cd&&i instanceof Blob?r?c(i):dd(i,c):Ud&&(i instanceof ArrayBuffer||wd(i))?r?c(i):dd(new Blob([i]),c):c(Ie[o]+(i||"")),dd=(o,i)=>{const r=new FileReader;return r.onload=function(){const c=r.result.split(",")[1];i("b"+(c||""))},r.readAsDataURL(o)};function md(o){return o instanceof Uint8Array?o:o instanceof ArrayBuffer?new Uint8Array(o):new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}let kc;function g0(o,i){if(Cd&&o.data instanceof Blob)return o.data.arrayBuffer().then(md).then(i);if(Ud&&(o.data instanceof ArrayBuffer||wd(o.data)))return i(md(o.data));hs(o,!1,r=>{kc||(kc=new TextEncoder),i(kc.encode(r))})}const yd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<yd.length;o++)lu[yd.charCodeAt(o)]=o;const v0=o=>{let i=o.length*.75,r=o.length,c,m=0,g,T,R,v;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const d=new ArrayBuffer(i),O=new Uint8Array(d);for(c=0;c<r;c+=4)g=lu[o.charCodeAt(c)],T=lu[o.charCodeAt(c+1)],R=lu[o.charCodeAt(c+2)],v=lu[o.charCodeAt(c+3)],O[m++]=g<<2|T>>4,O[m++]=(T&15)<<4|R>>2,O[m++]=(R&3)<<6|v&63;return d},p0=typeof ArrayBuffer=="function",ds=(o,i)=>{if(typeof o!="string")return{type:"message",data:qd(o,i)};const r=o.charAt(0);return r==="b"?{type:"message",data:b0(o.substring(1),i)}:Ei[r]?o.length>1?{type:Ei[r],data:o.substring(1)}:{type:Ei[r]}:is},b0=(o,i)=>{if(p0){const r=v0(o);return qd(r,i)}else return{base64:!0,data:o}},qd=(o,i)=>{switch(i){case"blob":return o instanceof Blob?o:new Blob([o]);case"arraybuffer":default:return o instanceof ArrayBuffer?o:o.buffer}},Ld="",S0=(o,i)=>{const r=o.length,c=new Array(r);let m=0;o.forEach((g,T)=>{hs(g,!1,R=>{c[T]=R,++m===r&&i(c.join(Ld))})})},E0=(o,i)=>{const r=o.split(Ld),c=[];for(let m=0;m<r.length;m++){const g=ds(r[m],i);if(c.push(g),g.type==="error")break}return c};function _0(){return new TransformStream({transform(o,i){g0(o,r=>{const c=r.length;let m;if(c<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,c);else if(c<65536){m=new Uint8Array(3);const g=new DataView(m.buffer);g.setUint8(0,126),g.setUint16(1,c)}else{m=new Uint8Array(9);const g=new DataView(m.buffer);g.setUint8(0,127),g.setBigUint64(1,BigInt(c))}o.data&&typeof o.data!="string"&&(m[0]|=128),i.enqueue(m),i.enqueue(r)})}})}let Vc;function pi(o){return o.reduce((i,r)=>i+r.length,0)}function bi(o,i){if(o[0].length===i)return o.shift();const r=new Uint8Array(i);let c=0;for(let m=0;m<i;m++)r[m]=o[0][c++],c===o[0].length&&(o.shift(),c=0);return o.length&&c<o[0].length&&(o[0]=o[0].slice(c)),r}function T0(o,i){Vc||(Vc=new TextDecoder);const r=[];let c=0,m=-1,g=!1;return new TransformStream({transform(T,R){for(r.push(T);;){if(c===0){if(pi(r)<1)break;const v=bi(r,1);g=(v[0]&128)===128,m=v[0]&127,m<126?c=3:m===126?c=1:c=2}else if(c===1){if(pi(r)<2)break;const v=bi(r,2);m=new DataView(v.buffer,v.byteOffset,v.length).getUint16(0),c=3}else if(c===2){if(pi(r)<8)break;const v=bi(r,8),d=new DataView(v.buffer,v.byteOffset,v.length),O=d.getUint32(0);if(O>Math.pow(2,21)-1){R.enqueue(is);break}m=O*Math.pow(2,32)+d.getUint32(4),c=3}else{if(pi(r)<m)break;const v=bi(r,m);R.enqueue(ds(g?v:Vc.decode(v),i)),c=0}if(m===0||m>o){R.enqueue(is);break}}}})}const Hd=4;function It(o){if(o)return A0(o)}function A0(o){for(var i in It.prototype)o[i]=It.prototype[i];return o}It.prototype.on=It.prototype.addEventListener=function(o,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(i),this};It.prototype.once=function(o,i){function r(){this.off(o,r),i.apply(this,arguments)}return r.fn=i,this.on(o,r),this};It.prototype.off=It.prototype.removeListener=It.prototype.removeAllListeners=It.prototype.removeEventListener=function(o,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+o];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var c,m=0;m<r.length;m++)if(c=r[m],c===i||c.fn===i){r.splice(m,1);break}return r.length===0&&delete this._callbacks["$"+o],this};It.prototype.emit=function(o){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),r=this._callbacks["$"+o],c=1;c<arguments.length;c++)i[c-1]=arguments[c];if(r){r=r.slice(0);for(var c=0,m=r.length;c<m;++c)r[c].apply(this,i)}return this};It.prototype.emitReserved=It.prototype.emit;It.prototype.listeners=function(o){return this._callbacks=this._callbacks||{},this._callbacks["$"+o]||[]};It.prototype.hasListeners=function(o){return!!this.listeners(o).length};const Ri=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,r)=>r(i,0),He=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),R0="arraybuffer";function jd(o,...i){return i.reduce((r,c)=>(o.hasOwnProperty(c)&&(r[c]=o[c]),r),{})}const O0=He.setTimeout,D0=He.clearTimeout;function Oi(o,i){i.useNativeTimers?(o.setTimeoutFn=O0.bind(He),o.clearTimeoutFn=D0.bind(He)):(o.setTimeoutFn=He.setTimeout.bind(He),o.clearTimeoutFn=He.clearTimeout.bind(He))}const N0=1.33;function x0(o){return typeof o=="string"?z0(o):Math.ceil((o.byteLength||o.size)*N0)}function z0(o){let i=0,r=0;for(let c=0,m=o.length;c<m;c++)i=o.charCodeAt(c),i<128?r+=1:i<2048?r+=2:i<55296||i>=57344?r+=3:(c++,r+=4);return r}function Yd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function M0(o){let i="";for(let r in o)o.hasOwnProperty(r)&&(i.length&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(o[r]));return i}function B0(o){let i={},r=o.split("&");for(let c=0,m=r.length;c<m;c++){let g=r[c].split("=");i[decodeURIComponent(g[0])]=decodeURIComponent(g[1])}return i}class C0 extends Error{constructor(i,r,c){super(i),this.description=r,this.context=c,this.type="TransportError"}}class ms extends It{constructor(i){super(),this.writable=!1,Oi(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,r,c){return super.emitReserved("error",new C0(i,r,c)),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 r=ds(i,this.socket.binaryType);this.onPacket(r)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,r={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=M0(i);return r.length?"?"+r:""}}class U0 extends ms{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const r=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let c=0;this._polling&&(c++,this.once("pollComplete",function(){--c||r()})),this.writable||(c++,this.once("drain",function(){--c||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const r=c=>{if(this.readyState==="opening"&&c.type==="open"&&this.onOpen(),c.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(c)};E0(i,this.socket.binaryType).forEach(r),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,S0(i,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Yd()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(i,r)}}let Qd=!1;try{Qd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const w0=Qd;function q0(){}class L0 extends U0{constructor(i){if(super(i),typeof location<"u"){const r=location.protocol==="https:";let c=location.port;c||(c=r?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||c!==i.port}}doWrite(i,r){const c=this.request({method:"POST",data:i});c.on("success",r),c.on("error",(m,g)=>{this.onError("xhr post error",m,g)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(r,c)=>{this.onError("xhr poll error",r,c)}),this.pollXhr=i}}class Pe extends It{constructor(i,r,c){super(),this.createRequest=i,Oi(this,c),this._opts=c,this._method=c.method||"GET",this._uri=r,this._data=c.data!==void 0?c.data:null,this._create()}_create(){var i;const r=jd(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const c=this._xhr=this.createRequest(r);try{c.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){c.setDisableHeaderCheck&&c.setDisableHeaderCheck(!0);for(let m in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(m)&&c.setRequestHeader(m,this._opts.extraHeaders[m])}}catch{}if(this._method==="POST")try{c.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{c.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(c),"withCredentials"in c&&(c.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(c.timeout=this._opts.requestTimeout),c.onreadystatechange=()=>{var m;c.readyState===3&&((m=this._opts.cookieJar)===null||m===void 0||m.parseCookies(c.getResponseHeader("set-cookie"))),c.readyState===4&&(c.status===200||c.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof c.status=="number"?c.status:0)},0))},c.send(this._data)}catch(m){this.setTimeoutFn(()=>{this._onError(m)},0);return}typeof document<"u"&&(this._index=Pe.requestsCount++,Pe.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=q0,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Pe.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()}}Pe.requestsCount=0;Pe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gd);else if(typeof addEventListener=="function"){const o="onpagehide"in He?"pagehide":"unload";addEventListener(o,gd,!1)}}function gd(){for(let o in Pe.requests)Pe.requests.hasOwnProperty(o)&&Pe.requests[o].abort()}const H0=function(){const o=Gd({xdomain:!1});return o&&o.responseType!==null}();class j0 extends L0{constructor(i){super(i);const r=i&&i.forceBase64;this.supportsBinary=H0&&!r}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Pe(Gd,this.uri(),i)}}function Gd(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||w0))return new XMLHttpRequest}catch{}if(!i)try{return new He[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Xd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y0 extends ms{get name(){return"websocket"}doOpen(){const i=this.uri(),r=this.opts.protocols,c=Xd?{}:jd(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,r,c)}catch(m){return this.emitReserved("error",m)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=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 r=0;r<i.length;r++){const c=i[r],m=r===i.length-1;hs(c,this.supportsBinary,g=>{try{this.doWrite(c,g)}catch{}m&&Ri(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Yd()),this.supportsBinary||(r.b64=1),this.createUri(i,r)}}const Zc=He.WebSocket||He.MozWebSocket;class Q0 extends Y0{createSocket(i,r,c){return Xd?new Zc(i,r,c):r?new Zc(i,r):new Zc(i)}doWrite(i,r){this.ws.send(r)}}class G0 extends ms{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 r=T0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=i.readable.pipeThrough(r).getReader(),m=_0();m.readable.pipeTo(i.writable),this._writer=m.writable.getWriter();const g=()=>{c.read().then(({done:R,value:v})=>{R||(this.onPacket(v),g())}).catch(R=>{})};g();const T={type:"open"};this.query.sid&&(T.data=`{"sid":"${this.query.sid}"}`),this._writer.write(T).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const c=i[r],m=r===i.length-1;this._writer.write(c).then(()=>{m&&Ri(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const X0={websocket:Q0,webtransport:G0,polling:j0},$0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,k0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function rs(o){if(o.length>8e3)throw"URI too long";const i=o,r=o.indexOf("["),c=o.indexOf("]");r!=-1&&c!=-1&&(o=o.substring(0,r)+o.substring(r,c).replace(/:/g,";")+o.substring(c,o.length));let m=$0.exec(o||""),g={},T=14;for(;T--;)g[k0[T]]=m[T]||"";return r!=-1&&c!=-1&&(g.source=i,g.host=g.host.substring(1,g.host.length-1).replace(/;/g,":"),g.authority=g.authority.replace("[","").replace("]","").replace(/;/g,":"),g.ipv6uri=!0),g.pathNames=V0(g,g.path),g.queryKey=Z0(g,g.query),g}function V0(o,i){const r=/\/{2,9}/g,c=i.replace(r,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&c.splice(0,1),i.slice(-1)=="/"&&c.splice(c.length-1,1),c}function Z0(o,i){const r={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,m,g){m&&(r[m]=g)}),r}const cs=typeof addEventListener=="function"&&typeof removeEventListener=="function",_i=[];cs&&addEventListener("offline",()=>{_i.forEach(o=>o())},!1);class Gn extends It{constructor(i,r){if(super(),this.binaryType=R0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(r=i,i=null),i){const c=rs(i);r.hostname=c.host,r.secure=c.protocol==="https"||c.protocol==="wss",r.port=c.port,c.query&&(r.query=c.query)}else r.host&&(r.hostname=rs(r.host).host);Oi(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(c=>{const m=c.prototype.name;this.transports.push(m),this._transportsByName[m]=c}),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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=B0(this.opts.query)),cs&&(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"})},_i.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const r=Object.assign({},this.opts.query);r.EIO=Hd,r.transport=i,this.id&&(r.sid=this.id);const c=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](c)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&Gn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(i);r.open(),this.setTransport(r)}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",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Gn.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 r=new Error("server error");r.code=i.data,this._onError(r);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 r=1;for(let c=0;c<this.writeBuffer.length;c++){const m=this.writeBuffer[c].data;if(m&&(r+=x0(m)),c>0&&r>this._maxPayload)return this.writeBuffer.slice(0,c);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,Ri(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,r,c){return this._sendPacket("message",i,r,c),this}send(i,r,c){return this._sendPacket("message",i,r,c),this}_sendPacket(i,r,c,m){if(typeof r=="function"&&(m=r,r=void 0),typeof c=="function"&&(m=c,c=null),this.readyState==="closing"||this.readyState==="closed")return;c=c||{},c.compress=c.compress!==!1;const g={type:i,data:r,options:c};this.emitReserved("packetCreate",g),this.writeBuffer.push(g),m&&this.once("flush",m),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),i()},c=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?c():i()}):this.upgrading?c():i()),this}_onError(i){if(Gn.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,r){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(),cs&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const c=_i.indexOf(this._offlineEventListener);c!==-1&&_i.splice(c,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,r),this.writeBuffer=[],this._prevBufferLen=0}}}Gn.protocol=Hd;class K0 extends Gn{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 r=this.createTransport(i),c=!1;Gn.priorWebsocketSuccess=!1;const m=()=>{c||(r.send([{type:"ping",data:"probe"}]),r.once("packet",z=>{if(!c)if(z.type==="pong"&&z.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Gn.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{c||this.readyState!=="closed"&&(O(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const M=new Error("probe error");M.transport=r.name,this.emitReserved("upgradeError",M)}}))};function g(){c||(c=!0,O(),r.close(),r=null)}const T=z=>{const M=new Error("probe error: "+z);M.transport=r.name,g(),this.emitReserved("upgradeError",M)};function R(){T("transport closed")}function v(){T("socket closed")}function d(z){r&&z.name!==r.name&&g()}const O=()=>{r.removeListener("open",m),r.removeListener("error",T),r.removeListener("close",R),this.off("close",v),this.off("upgrading",d)};r.once("open",m),r.once("error",T),r.once("close",R),this.once("close",v),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{c||r.open()},200):r.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const r=[];for(let c=0;c<i.length;c++)~this.transports.indexOf(i[c])&&r.push(i[c]);return r}}let J0=class extends K0{constructor(i,r={}){const c=typeof i=="object"?i:r;(!c.transports||c.transports&&typeof c.transports[0]=="string")&&(c.transports=(c.transports||["polling","websocket","webtransport"]).map(m=>X0[m]).filter(m=>!!m)),super(i,c)}};function W0(o,i="",r){let c=o;r=r||typeof location<"u"&&location,o==null&&(o=r.protocol+"//"+r.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=r.protocol+o:o=r.host+o),/^(https?|wss?):\/\//.test(o)||(typeof r<"u"?o=r.protocol+"//"+o:o="https://"+o),c=rs(o)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const g=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+g+":"+c.port+i,c.href=c.protocol+"://"+g+(r&&r.port===c.port?"":":"+c.port),c}const F0=typeof ArrayBuffer=="function",P0=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer,$d=Object.prototype.toString,I0=typeof Blob=="function"||typeof Blob<"u"&&$d.call(Blob)==="[object BlobConstructor]",t1=typeof File=="function"||typeof File<"u"&&$d.call(File)==="[object FileConstructor]";function ys(o){return F0&&(o instanceof ArrayBuffer||P0(o))||I0&&o instanceof Blob||t1&&o instanceof File}function Ti(o,i){if(!o||typeof o!="object")return!1;if(Array.isArray(o)){for(let r=0,c=o.length;r<c;r++)if(Ti(o[r]))return!0;return!1}if(ys(o))return!0;if(o.toJSON&&typeof o.toJSON=="function"&&arguments.length===1)return Ti(o.toJSON(),!0);for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&Ti(o[r]))return!0;return!1}function e1(o){const i=[],r=o.data,c=o;return c.data=ss(r,i),c.attachments=i.length,{packet:c,buffers:i}}function ss(o,i){if(!o)return o;if(ys(o)){const r={_placeholder:!0,num:i.length};return i.push(o),r}else if(Array.isArray(o)){const r=new Array(o.length);for(let c=0;c<o.length;c++)r[c]=ss(o[c],i);return r}else if(typeof o=="object"&&!(o instanceof Date)){const r={};for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=ss(o[c],i));return r}return o}function n1(o,i){return o.data=os(o.data,i),delete o.attachments,o}function os(o,i){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<i.length)return i[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let r=0;r<o.length;r++)o[r]=os(o[r],i);else if(typeof o=="object")for(const r in o)Object.prototype.hasOwnProperty.call(o,r)&&(o[r]=os(o[r],i));return o}const l1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],a1=5;var At;(function(o){o[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK"})(At||(At={}));class u1{constructor(i){this.replacer=i}encode(i){return(i.type===At.EVENT||i.type===At.ACK)&&Ti(i)?this.encodeAsBinary({type:i.type===At.EVENT?At.BINARY_EVENT:At.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let r=""+i.type;return(i.type===At.BINARY_EVENT||i.type===At.BINARY_ACK)&&(r+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(r+=i.nsp+","),i.id!=null&&(r+=i.id),i.data!=null&&(r+=JSON.stringify(i.data,this.replacer)),r}encodeAsBinary(i){const r=e1(i),c=this.encodeAsString(r.packet),m=r.buffers;return m.unshift(c),m}}function vd(o){return Object.prototype.toString.call(o)==="[object Object]"}class gs extends It{constructor(i){super(),this.reviver=i}add(i){let r;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(i);const c=r.type===At.BINARY_EVENT;c||r.type===At.BINARY_ACK?(r.type=c?At.EVENT:At.ACK,this.reconstructor=new i1(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(ys(i)||i.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(i),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let r=0;const c={type:Number(i.charAt(0))};if(At[c.type]===void 0)throw new Error("unknown packet type "+c.type);if(c.type===At.BINARY_EVENT||c.type===At.BINARY_ACK){const g=r+1;for(;i.charAt(++r)!=="-"&&r!=i.length;);const T=i.substring(g,r);if(T!=Number(T)||i.charAt(r)!=="-")throw new Error("Illegal attachments");c.attachments=Number(T)}if(i.charAt(r+1)==="/"){const g=r+1;for(;++r&&!(i.charAt(r)===","||r===i.length););c.nsp=i.substring(g,r)}else c.nsp="/";const m=i.charAt(r+1);if(m!==""&&Number(m)==m){const g=r+1;for(;++r;){const T=i.charAt(r);if(T==null||Number(T)!=T){--r;break}if(r===i.length)break}c.id=Number(i.substring(g,r+1))}if(i.charAt(++r)){const g=this.tryParse(i.substr(r));if(gs.isPayloadValid(c.type,g))c.data=g;else throw new Error("invalid payload")}return c}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,r){switch(i){case At.CONNECT:return vd(r);case At.DISCONNECT:return r===void 0;case At.CONNECT_ERROR:return typeof r=="string"||vd(r);case At.EVENT:case At.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&l1.indexOf(r[0])===-1);case At.ACK:case At.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class i1{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const r=n1(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const r1=Object.freeze(Object.defineProperty({__proto__:null,Decoder:gs,Encoder:u1,get PacketType(){return At},protocol:a1},Symbol.toStringTag,{value:"Module"}));function Xe(o,i,r){return o.on(i,r),function(){o.off(i,r)}}const c1=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class kd extends It{constructor(i,r,c){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=r,c&&c.auth&&(this.auth=c.auth),this._opts=Object.assign({},c),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Xe(i,"open",this.onopen.bind(this)),Xe(i,"packet",this.onpacket.bind(this)),Xe(i,"error",this.onerror.bind(this)),Xe(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,...r){var c,m,g;if(c1.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(r.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const T={type:At.EVENT,data:r};if(T.options={},T.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const O=this.ids++,z=r.pop();this._registerAckCallback(O,z),T.id=O}const R=(m=(c=this.io.engine)===null||c===void 0?void 0:c.transport)===null||m===void 0?void 0:m.writable,v=this.connected&&!(!((g=this.io.engine)===null||g===void 0)&&g._hasPingExpired());return this.flags.volatile&&!R||(v?(this.notifyOutgoingListeners(T),this.packet(T)):this.sendBuffer.push(T)),this.flags={},this}_registerAckCallback(i,r){var c;const m=(c=this.flags.timeout)!==null&&c!==void 0?c:this._opts.ackTimeout;if(m===void 0){this.acks[i]=r;return}const g=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let R=0;R<this.sendBuffer.length;R++)this.sendBuffer[R].id===i&&this.sendBuffer.splice(R,1);r.call(this,new Error("operation has timed out"))},m),T=(...R)=>{this.io.clearTimeoutFn(g),r.apply(this,R)};T.withError=!0,this.acks[i]=T}emitWithAck(i,...r){return new Promise((c,m)=>{const g=(T,R)=>T?m(T):c(R);g.withError=!0,r.push(g),this.emit(i,...r)})}_addToQueue(i){let r;typeof i[i.length-1]=="function"&&(r=i.pop());const c={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((m,...g)=>c!==this._queue[0]?void 0:(m!==null?c.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(m)):(this._queue.shift(),r&&r(null,...g)),c.pending=!1,this._drainQueue())),this._queue.push(c),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!i||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:At.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(c=>String(c.id)===i)){const c=this.acks[i];delete this.acks[i],c.withError&&c.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case At.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 At.EVENT:case At.BINARY_EVENT:this.onevent(i);break;case At.ACK:case At.BINARY_ACK:this.onack(i);break;case At.DISCONNECT:this.ondisconnect();break;case At.CONNECT_ERROR:this.destroy();const c=new Error(i.data.message);c.data=i.data.data,this.emitReserved("connect_error",c);break}}onevent(i){const r=i.data||[];i.id!=null&&r.push(this.ack(i.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const c of r)c.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 r=this;let c=!1;return function(...m){c||(c=!0,r.packet({type:At.ACK,id:i,data:m}))}}onack(i){const r=this.acks[i.id];typeof r=="function"&&(delete this.acks[i.id],r.withError&&i.data.unshift(null),r.apply(this,i.data))}onconnect(i,r){this.id=i,this.recovered=r&&this._pid===r,this._pid=r,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:At.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 r=this._anyListeners;for(let c=0;c<r.length;c++)if(i===r[c])return r.splice(c,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 r=this._anyOutgoingListeners;for(let c=0;c<r.length;c++)if(i===r[c])return r.splice(c,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const c of r)c.apply(this,i.data)}}}function Pl(o){o=o||{},this.ms=o.min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}Pl.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),r=Math.floor(i*this.jitter*o);o=(Math.floor(i*10)&1)==0?o-r:o+r}return Math.min(o,this.max)|0};Pl.prototype.reset=function(){this.attempts=0};Pl.prototype.setMin=function(o){this.ms=o};Pl.prototype.setMax=function(o){this.max=o};Pl.prototype.setJitter=function(o){this.jitter=o};class fs extends It{constructor(i,r){var c;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(r=i,i=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Oi(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((c=r.randomizationFactor)!==null&&c!==void 0?c:.5),this.backoff=new Pl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=i;const m=r.parser||r1;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=r.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 r;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(r=this.backoff)===null||r===void 0||r.setMin(i),this)}randomizationFactor(i){var r;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(r=this.backoff)===null||r===void 0||r.setJitter(i),this)}reconnectionDelayMax(i){var r;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(r=this.backoff)===null||r===void 0||r.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 J0(this.uri,this.opts);const r=this.engine,c=this;this._readyState="opening",this.skipReconnect=!1;const m=Xe(r,"open",function(){c.onopen(),i&&i()}),g=R=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",R),i?i(R):this.maybeReconnectOnOpen()},T=Xe(r,"error",g);if(this._timeout!==!1){const R=this._timeout,v=this.setTimeoutFn(()=>{m(),g(new Error("timeout")),r.close()},R);this.opts.autoUnref&&v.unref(),this.subs.push(()=>{this.clearTimeoutFn(v)})}return this.subs.push(m),this.subs.push(T),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Xe(i,"ping",this.onping.bind(this)),Xe(i,"data",this.ondata.bind(this)),Xe(i,"error",this.onerror.bind(this)),Xe(i,"close",this.onclose.bind(this)),Xe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(r){this.onclose("parse error",r)}}ondecoded(i){Ri(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,r){let c=this.nsps[i];return c?this._autoConnect&&!c.active&&c.connect():(c=new kd(this,i,r),this.nsps[i]=c),c}_destroy(i){const r=Object.keys(this.nsps);for(const c of r)if(this.nsps[c].active)return;this._close()}_packet(i){const r=this.encoder.encode(i);for(let c=0;c<r.length;c++)this.engine.write(r[c],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,r){var c;this.cleanup(),(c=this.engine)===null||c===void 0||c.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,r),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 r=this.backoff.duration();this._reconnecting=!0;const c=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(m=>{m?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",m)):i.onreconnect()}))},r);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const nu={};function Ai(o,i){typeof o=="object"&&(i=o,o=void 0),i=i||{};const r=W0(o,i.path||"/socket.io"),c=r.source,m=r.id,g=r.path,T=nu[m]&&g in nu[m].nsps,R=i.forceNew||i["force new connection"]||i.multiplex===!1||T;let v;return R?v=new fs(c,i):(nu[m]||(nu[m]=new fs(c,i)),v=nu[m]),r.query&&!i.query&&(i.query=r.queryKey),v.socket(r.path,i)}Object.assign(Ai,{Manager:fs,Socket:kd,io:Ai,connect:Ai});function s1({code:o,isConnected:i,onCreateRoom:r,onJoinRoom:c,joinCode:m,setJoinCode:g}){const T=()=>{if(m){const v=m.trim();c(v)}},R=v=>{v.key==="Enter"&&T()};return V.jsx("div",{className:"mb-2",children:o?V.jsx(V.Fragment,{children:V.jsxs("p",{className:"text-lg",children:["Code: ",V.jsx("strong",{className:"text-3xl",children:o})]})}):V.jsxs(V.Fragment,{children:[V.jsx("button",{onClick:r,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Create Room"}),V.jsxs("div",{className:"inline-block whitespace-nowrap",children:[V.jsx("input",{type:"text",className:"width-212",value:m,onChange:v=>g(v.target.value),onKeyDown:R,placeholder:"Enter code to join"}),V.jsx("button",{onClick:T,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})]})})}function o1({files:o,setFiles:i,dataChannels:r,dataChannelsRef:c,useFallback:m,socket:g,code:T,socketId:R,localFilesRef:v,downloadStates:d,setDownloadStates:O,cancelDownload:z,cancelRequestsRef:M,downloadCounts:k,handleDeleteFile:$,SERVER_URL:Z}){const ft=rt.useRef(null),W=rt.useRef({}),Nt=(q,ot=256)=>new Promise(yt=>{if(!q.type.startsWith("image/")){yt(null);return}const ht=new Image,Tt=document.createElement("canvas"),Gt=Tt.getContext("2d");ht.onload=()=>{const{width:fe,height:jt}=ht,x=Math.min(ot/fe,ot/jt,1);Tt.width=fe*x,Tt.height=jt*x,Gt.drawImage(ht,0,0,Tt.width,Tt.height),Tt.toBlob(G=>{yt(G)},"image/jpeg",.7)},ht.src=URL.createObjectURL(q)}),lt=async()=>{const q=ft.current.files;if(!q||q.length===0)return;const ot=Array.from(q).map(yt=>({name:yt.name,size:yt.size,peerId:R,thumbnail:!!yt.type.startsWith("image/")}));if(m){const yt=new FormData;Array.from(q).forEach(ht=>yt.append("files",ht));try{if(!(await fetch(`${Z}/api/upload/${T}`,{method:"POST",body:yt,headers:{"x-socket-id":R}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",ot)}catch(ht){console.error("Error uploading files:",ht)}}else{const yt=await Promise.all(Array.from(q).map(async ht=>({name:ht.name,thumbnail:ht.type.startsWith("image/")?await Nt(ht):null})));v.current={...v.current,...Object.fromEntries(Array.from(q).map(ht=>[ht.name,ht])),...Object.fromEntries(yt.filter(({thumbnail:ht})=>ht).map(({name:ht,thumbnail:Tt})=>[`${ht}_thumbnail`,Tt]))},yt.forEach(({name:ht,thumbnail:Tt})=>{if(Tt){const Gt=URL.createObjectURL(Tt);W.current[ht]=Gt,console.log(`Cached thumbnail URL for ${ht}: ${Gt}`)}}),console.log("Stored files in localFilesRef:",Object.keys(v.current)),g.emit("file-list",{code:T,files:ot}),console.log("Shared file list:",ot)}i(yt=>[...yt,...ot]),ft.current.value=""},Yt=async q=>{if(M.current.has(q.name)&&(M.current.delete(q.name),console.log(`Cleared previous cancel for ${q.name}, starting new request to ${q.peerId}`)),d[q.name]?.status==="downloading"){z(q.name,q.peerId),console.log(`Canceling download for ${q.name}`);return}if(O(ot=>({...ot,[q.name]:{status:"downloading",progress:0,total:q.size,peerId:q.peerId}})),console.log(`Starting download for ${q.name}, downloadStates:`,{...d,[q.name]:{status:"downloading",progress:0}}),m){g.emit("download-start-fallback",{code:T,fileName:q.name});const ot=document.createElement("a");ot.href=`${Z}/uploads/${q.path.split("/").pop()}`,ot.download=q.name,ot.click(),console.log(`Downloading file via server: ${q.name}`),O(yt=>({...yt,[q.name]:{status:"completed",progress:100}})),g.emit("download-end-fallback",{code:T,fileName:q.name})}else if(q.peerId===R){const ot=v.current[q.name]||o.find(yt=>yt.name===q.name)?.file;if(ot){g.emit("download-start-fallback",{code:T,fileName:q.name});const yt=URL.createObjectURL(ot),ht=document.createElement("a");ht.href=yt,ht.download=q.name,ht.click(),URL.revokeObjectURL(yt),console.log(`Downloaded local file: ${q.name}`),O(Tt=>({...Tt,[q.name]:{status:"saved",progress:100}})),g.emit("download-end-fallback",{code:T,fileName:q.name})}else console.error(`Local file not found: ${q.name}`)}else r[q.peerId]?.readyState==="open"?(c.current[q.peerId].send(JSON.stringify({type:"request-file",fileName:q.name})),console.log(`Requested file ${q.name} from ${q.peerId}`)):console.error(`Data channel not open for peer ${q.peerId}`)},at=q=>{const ot=q.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"}[ot]||"unknown.png"}`},Qt=q=>q?q<1024?`${q} B`:q<1024*1024?`${(q/1024).toFixed(2)} KB`:q<1024*1024*1024?`${(q/(1024*1024)).toFixed(2)} MB`:`${(q/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",mt=q=>{if(!q.thumbnail)return console.log(`No thumbnail flag for ${q.name}`),null;if(W.current[q.name])return W.current[q.name];const ot=v.current[`${q.name}_thumbnail`];if(ot){const yt=URL.createObjectURL(ot);return W.current[q.name]=yt,console.log(`Generated and cached thumbnail URL for ${q.name}: ${yt}`),yt}return console.log(`No thumbnail available for ${q.name}`),null};return rt.useEffect(()=>()=>{Object.values(W.current).forEach(q=>{q&&URL.revokeObjectURL(q)}),W.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),V.jsxs("div",{children:[V.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),V.jsx("input",{type:"file",multiple:!0,ref:ft,onChange:lt,className:"mb-2"}),V.jsx("ul",{className:"space-y-2",children:o.map((q,ot)=>(d[q.name]?.status==="downloading"||d[q.name]?.status,V.jsxs("li",{className:"flex items-center space-x-2",children:[q.thumbnail&&V.jsx("img",{src:mt(q)||at(q.name),alt:`${q.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${q.name}, requesting...`)}})||V.jsx("img",{src:at(q.name),alt:"file icon",className:"w-6 h-6",onError:yt=>yt.target.style.display="none"}),V.jsxs("span",{children:["(",Qt(q.size),")"]}),q.peerId!==R&&V.jsx("button",{onClick:()=>Yt(q),className:`px-4 py-2 rounded ${d[q.name]?.status==="saved"?"bg-green-500 text-white":d[q.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:d[q.name]?.status==="saved"?"Saved ✓":d[q.name]?.status==="downloading"?`Cancel ${(d[q.name]?.progress||0).toFixed(2)}%`:"Download"}),q.peerId===R&&V.jsx(V.Fragment,{children:V.jsx("button",{onClick:()=>$(q.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"})}),k[q.name]>0&&V.jsxs("span",{children:[k[q.name]," downloading"]}),V.jsx("span",{children:q.name})]},ot)))})]})}function f1({textHistory:o,setTextHistory:i,dataChannels:r,useFallback:c,socket:m,code:g}){const[T,R]=rt.useState(""),v=()=>{T.trim()&&(console.log("handleSend:",{dataChannels:r,useFallback:c,code:g}),!c&&Object.keys(r).length>0?Object.keys(r).forEach(z=>{r[z].readyState==="open"&&(r[z].send(JSON.stringify({type:"text",text:T})),console.log(`Sent text to peer ${z}`))}):c&&m&&g&&(m.emit("text",{code:g,text:T}),console.log(`Sending text via socket for room ${g}: ${T}`)),i(z=>[...z,T]),R(""))},d=z=>{z.key==="Enter"&&!z.shiftKey&&(z.preventDefault(),v())},O=z=>{const M=document.getElementById(`msg-${z}`);M?navigator.clipboard.writeText(M.textContent):console.warn(`Element msg-${z} not found or selection API unavailable`)};return V.jsxs("div",{className:"mb-4",children:[V.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),V.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:T,onChange:z=>R(z.target.value),onKeyDown:d,placeholder:"Enter text to share"}),V.jsx("button",{className:"bg-emerald-600 text-darkPurple px-4 py-2 rounded hover:bg-emerald-500",onClick:v,children:"Send"}),V.jsx("br",{}),V.jsxs("div",{className:"mt-2",id:"textview",children:[V.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),V.jsx("ul",{className:"list-disc pl-5",children:o?.length>0?o.map((z,M)=>V.jsxs("li",{children:[V.jsx("button",{className:"bg-sky-600 text-darkPurple px-4 py-2 rounded hover:bg-sky-500",onClick:()=>O(M),children:"{}"}),V.jsx("pre",{id:`msg-${M}`,children:z})]},M)):V.jsx("li",{children:V.jsx("pre",{children:"No messages yet"})})})]})]})}var Fl={},Kc={exports:{}},Jc,pd;function h1(){if(pd)return Jc;pd=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jc=o,Jc}var Wc,bd;function d1(){if(bd)return Wc;bd=1;var o=h1();function i(){}function r(){}return r.resetWarningCache=i,Wc=function(){function c(T,R,v,d,O,z){if(z!==o){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}}c.isRequired=c;function m(){return c}var g={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:m,element:c,elementType:c,instanceOf:m,node:c,objectOf:m,oneOf:m,oneOfType:m,shape:m,exact:m,checkPropTypes:r,resetWarningCache:i};return g.PropTypes=g,g},Wc}var Sd;function Vd(){return Sd||(Sd=1,Kc.exports=d1()()),Kc.exports}var Fc,Ed;function Zd(){return Ed||(Ed=1,Fc={L:1,M:0,Q:3,H:2}),Fc}var Pc,_d;function Kd(){return _d||(_d=1,Pc={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),Pc}var Ic,Td;function m1(){if(Td)return Ic;Td=1;var o=Kd();function i(r){this.mode=o.MODE_8BIT_BYTE,this.data=r}return i.prototype={getLength:function(r){return this.data.length},write:function(r){for(var c=0;c<this.data.length;c++)r.put(this.data.charCodeAt(c),8)}},Ic=i,Ic}var ts,Ad;function y1(){if(Ad)return ts;Ad=1;var o=Zd();function i(r,c){this.totalCount=r,this.dataCount=c}return i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(r,c){var m=i.getRsBlockTable(r,c);if(m==null)throw new Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+c);for(var g=m.length/3,T=new Array,R=0;R<g;R++)for(var v=m[R*3+0],d=m[R*3+1],O=m[R*3+2],z=0;z<v;z++)T.push(new i(d,O));return T},i.getRsBlockTable=function(r,c){switch(c){case o.L:return i.RS_BLOCK_TABLE[(r-1)*4+0];case o.M:return i.RS_BLOCK_TABLE[(r-1)*4+1];case o.Q:return i.RS_BLOCK_TABLE[(r-1)*4+2];case o.H:return i.RS_BLOCK_TABLE[(r-1)*4+3];default:return}},ts=i,ts}var es,Rd;function g1(){if(Rd)return es;Rd=1;function o(){this.buffer=new Array,this.length=0}return o.prototype={get:function(i){var r=Math.floor(i/8);return(this.buffer[r]>>>7-i%8&1)==1},put:function(i,r){for(var c=0;c<r;c++)this.putBit((i>>>r-c-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(i){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),i&&(this.buffer[r]|=128>>>this.length%8),this.length++}},es=o,es}var ns,Od;function Jd(){if(Od)return ns;Od=1;for(var o={glog:function(r){if(r<1)throw new Error("glog("+r+")");return o.LOG_TABLE[r]},gexp:function(r){for(;r<0;)r+=255;for(;r>=256;)r-=255;return o.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;i<8;i++)o.EXP_TABLE[i]=1<<i;for(var i=8;i<256;i++)o.EXP_TABLE[i]=o.EXP_TABLE[i-4]^o.EXP_TABLE[i-5]^o.EXP_TABLE[i-6]^o.EXP_TABLE[i-8];for(var i=0;i<255;i++)o.LOG_TABLE[o.EXP_TABLE[i]]=i;return ns=o,ns}var ls,Dd;function Wd(){if(Dd)return ls;Dd=1;var o=Jd();function i(r,c){if(r.length==null)throw new Error(r.length+"/"+c);for(var m=0;m<r.length&&r[m]==0;)m++;this.num=new Array(r.length-m+c);for(var g=0;g<r.length-m;g++)this.num[g]=r[g+m]}return i.prototype={get:function(r){return this.num[r]},getLength:function(){return this.num.length},multiply:function(r){for(var c=new Array(this.getLength()+r.getLength()-1),m=0;m<this.getLength();m++)for(var g=0;g<r.getLength();g++)c[m+g]^=o.gexp(o.glog(this.get(m))+o.glog(r.get(g)));return new i(c,0)},mod:function(r){if(this.getLength()-r.getLength()<0)return this;for(var c=o.glog(this.get(0))-o.glog(r.get(0)),m=new Array(this.getLength()),g=0;g<this.getLength();g++)m[g]=this.get(g);for(var g=0;g<r.getLength();g++)m[g]^=o.gexp(o.glog(r.get(g))+c);return new i(m,0).mod(r)}},ls=i,ls}var as,Nd;function v1(){if(Nd)return as;Nd=1;var o=Kd(),i=Wd(),r=Jd(),c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(g){for(var T=g<<10;m.getBCHDigit(T)-m.getBCHDigit(m.G15)>=0;)T^=m.G15<<m.getBCHDigit(T)-m.getBCHDigit(m.G15);return(g<<10|T)^m.G15_MASK},getBCHTypeNumber:function(g){for(var T=g<<12;m.getBCHDigit(T)-m.getBCHDigit(m.G18)>=0;)T^=m.G18<<m.getBCHDigit(T)-m.getBCHDigit(m.G18);return g<<12|T},getBCHDigit:function(g){for(var T=0;g!=0;)T++,g>>>=1;return T},getPatternPosition:function(g){return m.PATTERN_POSITION_TABLE[g-1]},getMask:function(g,T,R){switch(g){case c.PATTERN000:return(T+R)%2==0;case c.PATTERN001:return T%2==0;case c.PATTERN010:return R%3==0;case c.PATTERN011:return(T+R)%3==0;case c.PATTERN100:return(Math.floor(T/2)+Math.floor(R/3))%2==0;case c.PATTERN101:return T*R%2+T*R%3==0;case c.PATTERN110:return(T*R%2+T*R%3)%2==0;case c.PATTERN111:return(T*R%3+(T+R)%2)%2==0;default:throw new Error("bad maskPattern:"+g)}},getErrorCorrectPolynomial:function(g){for(var T=new i([1],0),R=0;R<g;R++)T=T.multiply(new i([1,r.gexp(R)],0));return T},getLengthInBits:function(g,T){if(1<=T&&T<10)switch(g){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:throw new Error("mode:"+g)}else if(T<27)switch(g){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw new Error("mode:"+g)}else if(T<41)switch(g){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:throw new Error("mode:"+g)}else throw new Error("type:"+T)},getLostPoint:function(g){for(var T=g.getModuleCount(),R=0,v=0;v<T;v++)for(var d=0;d<T;d++){for(var O=0,z=g.isDark(v,d),M=-1;M<=1;M++)if(!(v+M<0||T<=v+M))for(var k=-1;k<=1;k++)d+k<0||T<=d+k||M==0&&k==0||z==g.isDark(v+M,d+k)&&O++;O>5&&(R+=3+O-5)}for(var v=0;v<T-1;v++)for(var d=0;d<T-1;d++){var $=0;g.isDark(v,d)&&$++,g.isDark(v+1,d)&&$++,g.isDark(v,d+1)&&$++,g.isDark(v+1,d+1)&&$++,($==0||$==4)&&(R+=3)}for(var v=0;v<T;v++)for(var d=0;d<T-6;d++)g.isDark(v,d)&&!g.isDark(v,d+1)&&g.isDark(v,d+2)&&g.isDark(v,d+3)&&g.isDark(v,d+4)&&!g.isDark(v,d+5)&&g.isDark(v,d+6)&&(R+=40);for(var d=0;d<T;d++)for(var v=0;v<T-6;v++)g.isDark(v,d)&&!g.isDark(v+1,d)&&g.isDark(v+2,d)&&g.isDark(v+3,d)&&g.isDark(v+4,d)&&!g.isDark(v+5,d)&&g.isDark(v+6,d)&&(R+=40);for(var Z=0,d=0;d<T;d++)for(var v=0;v<T;v++)g.isDark(v,d)&&Z++;var ft=Math.abs(100*Z/T/T-50)/5;return R+=ft*10,R}};return as=m,as}var us,xd;function p1(){if(xd)return us;xd=1;var o=m1(),i=y1(),r=g1(),c=v1(),m=Wd();function g(R,v){this.typeNumber=R,this.errorCorrectLevel=v,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var T=g.prototype;return T.addData=function(R){var v=new o(R);this.dataList.push(v),this.dataCache=null},T.isDark=function(R,v){if(R<0||this.moduleCount<=R||v<0||this.moduleCount<=v)throw new Error(R+","+v);return this.modules[R][v]},T.getModuleCount=function(){return this.moduleCount},T.make=function(){if(this.typeNumber<1){var R=1;for(R=1;R<40;R++){for(var v=i.getRSBlocks(R,this.errorCorrectLevel),d=new r,O=0,z=0;z<v.length;z++)O+=v[z].dataCount;for(var z=0;z<this.dataList.length;z++){var M=this.dataList[z];d.put(M.mode,4),d.put(M.getLength(),c.getLengthInBits(M.mode,R)),M.write(d)}if(d.getLengthInBits()<=O*8)break}this.typeNumber=R}this.makeImpl(!1,this.getBestMaskPattern())},T.makeImpl=function(R,v){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var d=0;d<this.moduleCount;d++){this.modules[d]=new Array(this.moduleCount);for(var O=0;O<this.moduleCount;O++)this.modules[d][O]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(R,v),this.typeNumber>=7&&this.setupTypeNumber(R),this.dataCache==null&&(this.dataCache=g.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,v)},T.setupPositionProbePattern=function(R,v){for(var d=-1;d<=7;d++)if(!(R+d<=-1||this.moduleCount<=R+d))for(var O=-1;O<=7;O++)v+O<=-1||this.moduleCount<=v+O||(0<=d&&d<=6&&(O==0||O==6)||0<=O&&O<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=O&&O<=4?this.modules[R+d][v+O]=!0:this.modules[R+d][v+O]=!1)},T.getBestMaskPattern=function(){for(var R=0,v=0,d=0;d<8;d++){this.makeImpl(!0,d);var O=c.getLostPoint(this);(d==0||R>O)&&(R=O,v=d)}return v},T.createMovieClip=function(R,v,d){var O=R.createEmptyMovieClip(v,d),z=1;this.make();for(var M=0;M<this.modules.length;M++)for(var k=M*z,$=0;$<this.modules[M].length;$++){var Z=$*z,ft=this.modules[M][$];ft&&(O.beginFill(0,100),O.moveTo(Z,k),O.lineTo(Z+z,k),O.lineTo(Z+z,k+z),O.lineTo(Z,k+z),O.endFill())}return O},T.setupTimingPattern=function(){for(var R=8;R<this.moduleCount-8;R++)this.modules[R][6]==null&&(this.modules[R][6]=R%2==0);for(var v=8;v<this.moduleCount-8;v++)this.modules[6][v]==null&&(this.modules[6][v]=v%2==0)},T.setupPositionAdjustPattern=function(){for(var R=c.getPatternPosition(this.typeNumber),v=0;v<R.length;v++)for(var d=0;d<R.length;d++){var O=R[v],z=R[d];if(this.modules[O][z]==null)for(var M=-2;M<=2;M++)for(var k=-2;k<=2;k++)M==-2||M==2||k==-2||k==2||M==0&&k==0?this.modules[O+M][z+k]=!0:this.modules[O+M][z+k]=!1}},T.setupTypeNumber=function(R){for(var v=c.getBCHTypeNumber(this.typeNumber),d=0;d<18;d++){var O=!R&&(v>>d&1)==1;this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=O}for(var d=0;d<18;d++){var O=!R&&(v>>d&1)==1;this.modules[d%3+this.moduleCount-8-3][Math.floor(d/3)]=O}},T.setupTypeInfo=function(R,v){for(var d=this.errorCorrectLevel<<3|v,O=c.getBCHTypeInfo(d),z=0;z<15;z++){var M=!R&&(O>>z&1)==1;z<6?this.modules[z][8]=M:z<8?this.modules[z+1][8]=M:this.modules[this.moduleCount-15+z][8]=M}for(var z=0;z<15;z++){var M=!R&&(O>>z&1)==1;z<8?this.modules[8][this.moduleCount-z-1]=M:z<9?this.modules[8][15-z-1+1]=M:this.modules[8][15-z-1]=M}this.modules[this.moduleCount-8][8]=!R},T.mapData=function(R,v){for(var d=-1,O=this.moduleCount-1,z=7,M=0,k=this.moduleCount-1;k>0;k-=2)for(k==6&&k--;;){for(var $=0;$<2;$++)if(this.modules[O][k-$]==null){var Z=!1;M<R.length&&(Z=(R[M]>>>z&1)==1);var ft=c.getMask(v,O,k-$);ft&&(Z=!Z),this.modules[O][k-$]=Z,z--,z==-1&&(M++,z=7)}if(O+=d,O<0||this.moduleCount<=O){O-=d,d=-d;break}}},g.PAD0=236,g.PAD1=17,g.createData=function(R,v,d){for(var O=i.getRSBlocks(R,v),z=new r,M=0;M<d.length;M++){var k=d[M];z.put(k.mode,4),z.put(k.getLength(),c.getLengthInBits(k.mode,R)),k.write(z)}for(var $=0,M=0;M<O.length;M++)$+=O[M].dataCount;if(z.getLengthInBits()>$*8)throw new Error("code length overflow. ("+z.getLengthInBits()+">"+$*8+")");for(z.getLengthInBits()+4<=$*8&&z.put(0,4);z.getLengthInBits()%8!=0;)z.putBit(!1);for(;!(z.getLengthInBits()>=$*8||(z.put(g.PAD0,8),z.getLengthInBits()>=$*8));)z.put(g.PAD1,8);return g.createBytes(z,O)},g.createBytes=function(R,v){for(var d=0,O=0,z=0,M=new Array(v.length),k=new Array(v.length),$=0;$<v.length;$++){var Z=v[$].dataCount,ft=v[$].totalCount-Z;O=Math.max(O,Z),z=Math.max(z,ft),M[$]=new Array(Z);for(var W=0;W<M[$].length;W++)M[$][W]=255&R.buffer[W+d];d+=Z;var Nt=c.getErrorCorrectPolynomial(ft),lt=new m(M[$],Nt.getLength()-1),Yt=lt.mod(Nt);k[$]=new Array(Nt.getLength()-1);for(var W=0;W<k[$].length;W++){var at=W+Yt.getLength()-k[$].length;k[$][W]=at>=0?Yt.get(at):0}}for(var Qt=0,W=0;W<v.length;W++)Qt+=v[W].totalCount;for(var mt=new Array(Qt),q=0,W=0;W<O;W++)for(var $=0;$<v.length;$++)W<M[$].length&&(mt[q++]=M[$][W]);for(var W=0;W<z;W++)for(var $=0;$<v.length;$++)W<k[$].length&&(mt[q++]=k[$][W]);return mt},us=g,us}var Si={},zd;function b1(){if(zd)return Si;zd=1,Object.defineProperty(Si,"__esModule",{value:!0});var o=Object.assign||function(d){for(var O=1;O<arguments.length;O++){var z=arguments[O];for(var M in z)Object.prototype.hasOwnProperty.call(z,M)&&(d[M]=z[M])}return d},i=Vd(),r=g(i),c=au(),m=g(c);function g(d){return d&&d.__esModule?d:{default:d}}function T(d,O){var z={};for(var M in d)O.indexOf(M)>=0||Object.prototype.hasOwnProperty.call(d,M)&&(z[M]=d[M]);return z}var R={bgColor:r.default.oneOfType([r.default.object,r.default.string]).isRequired,bgD:r.default.string.isRequired,fgColor:r.default.oneOfType([r.default.object,r.default.string]).isRequired,fgD:r.default.string.isRequired,size:r.default.number.isRequired,title:r.default.string,viewBoxSize:r.default.number.isRequired,xmlns:r.default.string},v=(0,c.forwardRef)(function(d,O){var z=d.bgColor,M=d.bgD,k=d.fgD,$=d.fgColor,Z=d.size,ft=d.title,W=d.viewBoxSize,Nt=d.xmlns,lt=Nt===void 0?"http://www.w3.org/2000/svg":Nt,Yt=T(d,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return m.default.createElement("svg",o({},Yt,{height:Z,ref:O,viewBox:"0 0 "+W+" "+W,width:Z,xmlns:lt}),ft?m.default.createElement("title",null,ft):null,m.default.createElement("path",{d:M,fill:z}),m.default.createElement("path",{d:k,fill:$}))});return v.displayName="QRCodeSvg",v.propTypes=R,Si.default=v,Si}var Md;function S1(){if(Md)return Fl;Md=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.QRCode=void 0;var o=Object.assign||function(Z){for(var ft=1;ft<arguments.length;ft++){var W=arguments[ft];for(var Nt in W)Object.prototype.hasOwnProperty.call(W,Nt)&&(Z[Nt]=W[Nt])}return Z},i=Vd(),r=z(i),c=Zd(),m=z(c),g=p1(),T=z(g),R=au(),v=z(R),d=b1(),O=z(d);function z(Z){return Z&&Z.__esModule?Z:{default:Z}}function M(Z,ft){var W={};for(var Nt in Z)ft.indexOf(Nt)>=0||Object.prototype.hasOwnProperty.call(Z,Nt)&&(W[Nt]=Z[Nt]);return W}var k={bgColor:r.default.oneOfType([r.default.object,r.default.string]),fgColor:r.default.oneOfType([r.default.object,r.default.string]),level:r.default.string,size:r.default.number,value:r.default.string.isRequired},$=(0,R.forwardRef)(function(Z,ft){var W=Z.bgColor,Nt=W===void 0?"#FFFFFF":W,lt=Z.fgColor,Yt=lt===void 0?"#000000":lt,at=Z.level,Qt=at===void 0?"L":at,mt=Z.size,q=mt===void 0?256:mt,ot=Z.value,yt=M(Z,["bgColor","fgColor","level","size","value"]),ht=new T.default(-1,m.default[Qt]);ht.addData(ot),ht.make();var Tt=ht.modules;return v.default.createElement(O.default,o({},yt,{bgColor:Nt,bgD:Tt.map(function(Gt,fe){return Gt.map(function(jt,x){return jt?"":"M "+x+" "+fe+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:Yt,fgD:Tt.map(function(Gt,fe){return Gt.map(function(jt,x){return jt?"M "+x+" "+fe+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:ft,size:q,viewBoxSize:Tt.length}))});return Fl.QRCode=$,$.displayName="QRCode",$.propTypes=k,Fl.default=$,Fl}var E1=S1();const _1=u0(E1),Bd="",K=Ai("/",{withCredentials:!0});function T1(){const[o,i]=rt.useState(!0),[r,c]=rt.useState(""),[m,g]=rt.useState(""),[T,R]=rt.useState(!1),[v,d]=rt.useState(!1),[O,z]=rt.useState(!1),[M,k]=rt.useState(!1),[$,Z]=rt.useState(600),[ft,W]=rt.useState([]),[Nt,lt]=rt.useState(""),[Yt,at]=rt.useState({}),[Qt,mt]=rt.useState([]),[q,ot]=rt.useState({}),[yt,ht]=rt.useState([]),[Tt,Gt]=rt.useState({}),[fe,jt]=rt.useState(0),x=rt.useRef({}),G=rt.useRef([]),I=rt.useRef({}),vt=rt.useRef(new Set),p=rt.useRef({}),U=rt.useRef(new Set),Q=rt.useRef({}),j=rt.useRef({}),P=rt.useRef({}),ut=rt.useRef({}),ct=rt.useRef(0),Dt=rt.useRef({}),bt=rt.useRef({}),ge=rt.useRef(ft),Xn=rt.useRef(null),[fl,Il]=rt.useState(0),[hl,ta]=rt.useState(!1);window.binaryStateRef=Dt,window.localFilesRef=x,window.downloadStates=q,rt.useEffect(()=>{window.downloadStates=q},[q]),rt.useEffect(()=>{ge.current=ft},[ft]);const uu=window.location.protocol,iu=window.location.hostname||"localhost",Ee="",ea=(r||"").replace(/ /g,"_"),na=`${uu}//${iu}${Ee}/room/${ea||""}`,ru=()=>{ta(h=>!h)},$n=async h=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const B=h==="link"?na:ea;await navigator.clipboard.writeText(B),R(h),setTimeout(()=>R(null),2e3)}catch(B){console.error(`Failed to copy ${h}:`,B)}},Di=async()=>{try{const h=await fetch(`${Bd}/api/generate-code`,{method:"GET",credentials:"include"}),{code:B,error:Y}=await h.json();if(Y){lt(Y);return}c(B),d(!0),lt(""),k(!1),K.emit("create",B,S=>{S?.error?(console.error(`Create room failed: ${S.error}`),lt(`Failed to create room: ${S.error}`)):console.log(`Successfully created room ${B}`)})}catch(h){console.error("Error generating code:",h),lt("Failed to generate room code")}},kn=h=>{if(!h){lt("Please enter a room code");return}const B=h.replace(/_/g," ");c(B),lt(""),k(!1),K.emit("join",B,Y=>{if(!Y||Y.error){const S=Y?.error||"Failed to join room";S.includes("Already in room")?(mt([]),lt(""),jt(L=>L+1),console.error(`Re-enter room: ${S}`)):(console.error(`Join room failed: ${S}`),retryCount<3?(console.log(`Retrying join room ${B}, attempt ${retryCount+1}/3`),setTimeout(()=>kn(h,retryCount+1),2e3)):(vn(),lt(`Failed to join room after retries: ${S}`),window.history.pushState({},"","/")))}else console.log(`Successfully joined room ${B}`),lt("")})},Ni=()=>{K.emit("leave",r,h=>{h?.error?(console.error(`Leave room failed: ${h.error}`),lt(`Failed to leave room: ${h.error}`),vn(),mt([]),c(""),g(""),x.current={},G.current=[],window.history.pushState({},"","/")):(console.log(`Successfully left room ${r}: ${h.message}`),vn(),mt([]),c(""),g(""),x.current={},G.current=[],window.history.pushState({},"","/"))})},vn=()=>{c(""),d(!1),z(!1),k(!1),Z(600),mt([]),W([]),lt(""),at({}),ht([]),Gt({}),x.current={},Object.values(Q.current).forEach(h=>{h.onicecandidate=null,h.oniceconnectionstatechange=null,h.onicecandidateerror=null,h.ondatachannel=null,h.onnegotiationneeded=null,h.close()}),Object.values(j.current).forEach(h=>{h.readyState==="open"&&h.close()}),Object.values(P.current).forEach(h=>{h.readyState==="open"&&h.close()}),Q.current={},j.current={},P.current={},Object.keys(ut.current).forEach(h=>clearTimeout(ut.current[h])),ut.current={},I.current={},vt.current=new Set,p.current={},U.current=new Set,Dt.current={},bt.current={}},tn=(h,B,Y=!1)=>{if(!h||h===K.id||h==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${h}`);return}if(M){console.log(`Skipping WebRTC setup for ${h} due to fallback mode`);return}if(Q.current[h]){console.log(`WebRTC connection already exists for ${h}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${h} (${Y?"offerer":"answerer"}, attempt ${I.current[h]||1}/3)`);const S=new RTCPeerConnection({iceServers:[{urls:"turn:twily.info:5349",username:"ana",credential:"butt"},{urls:"stun:stun.l.google.com:19302"}]});I.current[h]=(I.current[h]||0)+1,Q.current[h]=S,S.ondatachannel=X=>{const F=X.channel;F.label==="file-share"?(j.current[h]=F,F.onopen=()=>{console.log(`Main DataChannel opened with peer ${h}`),z(!0),Z(0),Object.keys(ut.current).forEach(dt=>{console.log(`Clearing timeout for ${dt}`),clearTimeout(ut.current[dt])}),ut.current={},I.current[h]=0,j.current.true&&delete j.current.true,at({...j.current});const zt=G.current.map(dt=>({name:dt.name,size:dt.size,peerId:dt.peerId,thumbnail:!!x.current[`${dt.name}_thumbnail`]}));F.send(JSON.stringify({type:"file-list",files:zt})),zt.forEach(dt=>{const Zt=`${dt.name}:${dt.peerId}`;dt.thumbnail&&dt.peerId!==K.id&&!x.current[`${dt.name}_thumbnail`]&&!U.current.has(Zt)&&te(dt)}),v&&setTimeout(()=>{F.readyState==="open"?(F.send(JSON.stringify({type:"text-history",history:ge.current})),console.log(`Sent text-history to ${h}:`,ge.current)):console.warn(`Main channel not open for ${h}, skipping text-history send`)},1e3)},F.onmessage=zt=>Vn(h,zt),F.onclose=()=>{console.log(`Main DataChannel closed with peer ${h}`),delete Q.current[h],at({...j.current})},F.onerror=zt=>{console.error(`Main DataChannel error with ${h}:`,zt)}):F.label==="binary-transfer"&&(F.binaryType="arraybuffer",P.current[h]=F,F.onmessage=zt=>Zn(h,zt),F.onclose=()=>{console.log(`Binary channel closed with peer ${h}`)},F.onerror=zt=>{console.error(`Binary channel error with ${h}:`,zt)})};let L=null,st=null;return Y&&(L=S.createDataChannel("file-share"),j.current[h]=L,L.onopen=()=>{console.log(`Main DataChannel opened with peer ${h} (joiner)`),z(!0),Z(0),Object.keys(ut.current).forEach(F=>{console.log(`Clearing timeout for ${F}`),clearTimeout(ut.current[F])}),ut.current={},I.current[h]=0,j.current.true&&delete j.current.true,at({...j.current});const X=G.current.map(F=>({name:F.name,size:F.size,peerId:F.peerId,thumbnail:!!x.current[`${F.name}_thumbnail`]}));L.send(JSON.stringify({type:"file-list",files:X})),X.forEach(F=>{const zt=`${F.name}:${F.peerId}`;F.thumbnail&&F.peerId!==K.id&&!x.current[`${F.name}_thumbnail`]&&!U.current.has(zt)&&te(F)}),v&&setTimeout(()=>{L.readyState==="open"?(L.send(JSON.stringify({type:"text-history",history:ge.current})),console.log(`Sent text-history to ${h}:`,ge.current)):console.warn(`Main channel not open for ${h}, skipping text-history send`)},1e3)},L.onmessage=X=>Vn(h,X),L.onclose=()=>{console.log(`Main DataChannel closed with peer ${h}`),delete Q.current[h],at({...j.current})},L.onerror=X=>{console.error(`Main DataChannel error with ${h}:`,X)},st=S.createDataChannel("binary-transfer"),st.binaryType="arraybuffer",P.current[h]=st,st.onmessage=X=>Zn(h,X),st.onclose=()=>{console.log(`Binary channel closed with peer ${h}`)},st.onerror=X=>{console.error(`Binary channel error with ${h}:`,X)}),S.onicecandidate=X=>{X.candidate&&B&&(K.emit("ice-candidate",{code:B,candidate:X.candidate,to:h,from:K.id}),console.log(`Sent ICE candidate to ${h} from ${K.id}: ${X.candidate.candidate}`))},S.onicecandidateerror=X=>{console.error(`ICE candidate error for ${h}:`,X)},S.oniceconnectionstatechange=()=>{console.log(`ICE state with ${h} (${v?"creator":"joiner"}): ${S.iceConnectionState}`),typeof I.current[h]<"u"?S.iceConnectionState==="failed"||S.iceConnectionState==="disconnected"?(console.log(`WebRTC ${S.iceConnectionState} with ${h}, retrying in 5s (attempt ${I.current[h]}/3)`),setTimeout(()=>{S.iceConnectionState!=="connected"&&!M&&I.current[h]<3?tn(h,B,Y):S.iceConnectionState!=="connected"&&!M&&(console.log(`Max retries reached for ${h}, switching to fallback`),k(!0),lt("WebRTC connection failed after retries, using server fallback"),Z(0),mt([]),W([]),v&&K.emit("fallback",{code:B}))},5e3)):S.iceConnectionState==="connected"&&(z(!0),k(!1),lt(""),clearTimeout(ut.current[h]),I.current[h]=0):(console.log(`err: peerId ${h} not found in retryCountsRef`),k(!1))},S.onnegotiationneeded=async()=>{try{const X=await S.createOffer();await S.setLocalDescription(X),K.emit("offer",{code:B,offer:S.localDescription,to:h,from:K.id}),console.log(`Sent renegotiation offer to ${h} for room ${B}`)}catch(X){console.error(`Negotiation needed error for ${h}:`,X)}},Y&&S.createOffer().then(X=>{S.setLocalDescription(X),K.emit("offer",{code:B,offer:X,to:h,from:K.id}),console.log(`Sent offer to ${h} for room ${B}`)}).catch(X=>{console.error(`Error creating offer for ${h}:`,X),lt("Failed to create WebRTC offer"),k(!0),Z(0),mt([]),W([]),v&&K.emit("fallback",{code:B})}),()=>clearTimeout(ut.current[h])};rt.useEffect(()=>(K.on("peer-joined",h=>{if(!h||!h.peerId||h.peerId==="true"){console.error("Invalid peer-joined data:",h);return}const{peerId:B}=h;console.log(`Peer ${B} joined room ${r}`),tn(B,r,!0)}),K.on("peer-left",h=>{const{peerId:B}=h;if(Q.current[B]){Q.current[B].close(),j.current[B]?.readyState==="open"&&j.current[B].close(),P.current[B]?.readyState==="open"&&P.current[B].close(),delete Q.current[B],delete j.current[B],delete P.current[B],delete ut.current[B],Object.keys(Dt.current).forEach(S=>{Dt.current[S].peerId===B&&(delete Dt.current[S],U.current.delete(`${Dt.current[S]?.fileName}:${B}`))}),at({...j.current}),console.log(`Peer ${B} left room`),mt(S=>{const L=S.filter(st=>st.peerId!==B);return Object.values(j.current).forEach(st=>{st.readyState==="open"&&st.send(JSON.stringify({type:"file-list",files:L.map(X=>({name:X.name,size:X.size,peerId:X.peerId,thumbnail:!!x.current[`${X.name}_thumbnail`]}))}))}),L});let Y=!1;Object.keys(bt.current).forEach(S=>{bt.current[S].delete(B)&&(Y=!0,la(S,bt.current[S].size))}),Y&&Gt(S=>({...S}))}v&&Object.keys(Q.current).length===0&&(z(!1),M?(k(!1),lt("")):Z(600))}),K.on("offer",async({code:h,offer:B,to:Y,from:S})=>{if(Y!==K.id||M||h!==r){console.log(`Ignoring offer from ${S} (to=${Y}, socket.id=${K.id}, useFallback=${M}, code mismatch: ${h} vs ${r})`);return}console.log(`Received offer from ${S} for room ${h}`),Q.current[S]||(console.log(`No existing connection for ${S}, setting up as answerer`),tn(S,h,!1));try{const L=Q.current[S];await L.setRemoteDescription(new RTCSessionDescription(B));const st=await L.createAnswer();await L.setLocalDescription(st),K.emit("answer",{code:h,answer:st,to:S,from:K.id}),console.log(`Sent answer to ${S} from ${K.id} for room ${h}`)}catch(L){console.error(`Error handling offer from ${S}:`,L),lt("Failed to process WebRTC offer"),k(!0),Z(0),mt([]),W([]),v&&K.emit("fallback",{code:h})}}),K.on("answer",async({code:h,answer:B,to:Y,from:S})=>{if(Y!==K.id||M||h!==r){console.log(`Ignoring answer from ${S} (to=${Y}, socket.id=${K.id}, useFallback=${M}, code mismatch: ${h} vs ${r})`);return}if(console.log(`Received answer from ${S} for room ${h}`),Q.current[S])try{await Q.current[S].setRemoteDescription(new RTCSessionDescription(B)),console.log(`Successfully set remote description for answer from ${S}`)}catch(L){console.error(`Error handling answer from ${S}:`,L),lt("Failed to process WebRTC answer"),k(!0),Z(0),mt([]),W([]),v&&K.emit("fallback",{code:h})}else console.warn(`No peer connection found for ${S} when receiving answer`)}),K.on("room-status",({useFallback:h,textHistory:B,files:Y})=>{h&&(console.log(`Received room-status: useFallback=${h}, textHistory=`,B),k(h),W(B||[]),mt(Y||[]),z(!0),Z(0),lt("Room is in fallback mode"))}),K.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),k(!0),lt("Room switched to fallback mode"),Z(0),mt([]),W([]),Gt({}),Object.values(Q.current).forEach(h=>h.close()),Q.current={},j.current={},P.current={},Object.keys(ut.current).forEach(h=>clearTimeout(ut.current[h])),ut.current={},I.current={},U.current=new Set}),K.on("ice-candidate",async({code:h,candidate:B,from:Y,to:S})=>{if(S!==K.id||h!==r){console.log(`Ignoring ICE candidate from ${Y} (to=${S}, code mismatch: ${h} vs ${r})`);return}if(console.log(`Received ICE candidate from ${Y}`),Q.current[Y])try{await Q.current[Y].addIceCandidate(new RTCIceCandidate(B)),console.log(`Added ICE candidate from ${Y}`)}catch(L){console.error(`Error adding ICE candidate from ${Y}:`,L)}else console.warn(`No peer connection found for ${Y} when receiving ICE candidate`)}),K.on("error",h=>{vn(),console.log("Server error:",h),lt(h),h.includes("Invalid code")||h.includes("room not found")?window.history.pushState({},"","/"):h.includes("Room closed by")&&g("")}),K.on("files",h=>{console.log("Received files:",h),mt(h)}),K.on("text",({text:h})=>{console.log(`Received text via socket for room ${r}:`,h),W(B=>[...B,h])}),K.on("file-list",({files:h})=>{mt(B=>{const Y=h.filter(S=>!B.some(L=>L.name===S.name&&L.peerId===S.peerId)).map(S=>({...S,peerId:S.peerId||"unknown"}));return Y.forEach(S=>{const L=`${S.name}:${S.peerId}`;S.thumbnail&&!x.current[`${S.name}_thumbnail`]&&!U.current.has(L)?(console.log(`Requesting thumbnail for ${S.name} from ${S.peerId}`),te(S)):S.thumbnail&&console.log(`Thumbnail for ${S.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",h),[...B,...Y]})}),K.on("update-count-fallback",({fileName:h,count:B})=>{Gt(Y=>({...Y,[h]:B}))}),K.on("room-status-check",({exists:h,isInRoom:B})=>{h?B||(console.log(`Rejoining room ${r}`),kn(r)):(vn(),lt("Room closed"),g(""),console.log(`Room ${r} closed`))}),()=>{K.off("peer-joined"),K.off("offer"),K.off("answer"),K.off("room-status"),K.off("fallback"),K.off("peer-left"),K.off("ice-candidate"),K.off("error"),K.off("files"),K.off("text"),K.off("file-list"),K.off("update-count-fallback"),K.off("room-status-check")}),[r,v,M]),rt.useEffect(()=>{const h=()=>{r&&(K.emit("check-room-status",r),console.log(`Reconnected, checking room status for ${r}`))};return K.io.on("reconnect",h),()=>{K.io.off("reconnect",h)}},[r]),rt.useEffect(()=>{const h=()=>{document.visibilityState==="visible"&&r&&(K.disconnected&&(K.connect(),console.log("Tab visible, reconnecting socket")),K.emit("check-room-status",r),console.log(`Tab visible, checking room status for ${r}`))};return document.addEventListener("visibilitychange",h),()=>{document.removeEventListener("visibilitychange",h)}},[r]),rt.useEffect(()=>{if(v&&$>0&&!O&&!M){const h=setInterval(()=>{Z(B=>B<=1?(vn(),lt("No one joined the room"),0):B-1)},1e3);return()=>clearInterval(h)}},[v,$,O,M,r]),rt.useEffect(()=>{G.current=Qt,console.log("Updated filesRef:",G.current)},[Qt]),rt.useEffect(()=>{const h=Object.keys(Q.current);ht([K.id,...h].sort())},[Yt,fe]),rt.useEffect(()=>{Xn.current&&Il(Xn.current.getBoundingClientRect().height)},[yt]),rt.useEffect(()=>{if(!r){const h=window.location.pathname;if(h.startsWith("/room/")){const B=h.slice(6).replace(/_/g," ");kn(B)}}},[]);const te=h=>{const B=`${h.name}:${h.peerId}`;if(h.thumbnail&&h.peerId!==K.id&&!M){const Y=(p.current[h.name]||0)+1;if(Y>3){console.error(`Max retries reached for thumbnail ${h.name} from ${h.peerId}`);return}if(U.current.has(B)){console.log(`Thumbnail request for ${h.name} from ${h.peerId} already in progress, skipping`);return}const S=j.current[h.peerId];S?.readyState==="open"?(p.current[h.name]=Y,U.current.add(B),S.send(JSON.stringify({type:"request-thumbnail",fileName:h.name})),console.log(`Requested thumbnail for ${h.name} from ${h.peerId} via WebRTC (retry ${Y})`)):(console.warn(`Data channel not ready for ${h.peerId}, retrying in 1s`),setTimeout(()=>{U.current.has(B)||te(h)},1e3))}else console.error(`Cannot request thumbnail for ${h.name}:`,{isThumbnail:h.thumbnail,isLocal:h.peerId===K.id,useFallback:M,channelOpen:j.current[h.peerId]?.readyState})},$e=async(h,B,Y,S)=>{const L=P.current[h];if(!L||L.readyState!=="open"){console.error(`Binary channel not open for ${h}`);return}if(S.size>100*1024){console.warn(`Thumbnail ${Y} size ${S.size} exceeds 100KB limit, skipping`);return}const st=ct.current++;console.log(`Sending ${B} ${Y} to ${h}, size: ${S.size}`),L.send(JSON.stringify({type:"start",transferId:st,kind:B,fileName:Y,size:S.size}));const X=new FileReader;X.onload=()=>{const F=X.result,zt=new TextEncoder().encode(Y),dt=8+zt.length,Zt=new ArrayBuffer(dt+F.byteLength),Rt=new DataView(Zt);Rt.setUint32(0,st),Rt.setUint32(4,zt.length),new Uint8Array(Zt).set(zt,8),new Uint8Array(Zt).set(new Uint8Array(F),dt),L.send(Zt),L.send(JSON.stringify({type:"end",transferId:st}))},X.onerror=F=>{console.error(`Error reading ${B} ${Y} for ${h}:`,F)},X.readAsArrayBuffer(S)},me=async(h,B,Y)=>{if(!B){console.error(`No fileName provided for sendFileChunked to ${h}`);return}const S=P.current[h];if(!S||S.readyState!=="open"){console.error(`Binary channel not open for ${h}`);return}vt.current.has(B)&&(vt.current.delete(B),console.log(`Cleared previous cancel for ${B}, starting new send to ${h}`));const L=ct.current++;console.log(`Sending start message for file ${B} to ${h}, transferId: ${L}, size: ${Y.size}`),S.send(JSON.stringify({type:"start",transferId:L,kind:"file",fileName:B,size:Y.size}));const st=8*1024*1024,X=4*1024*1024;S.bufferedAmountLowThreshold=X;let F;S.onbufferedamountlow=()=>{F&&(F(),F=null)};const zt=()=>S.bufferedAmount<=st?Promise.resolve():new Promise(Rt=>{F=Rt});await zt();const dt=16384;let Zt=0;for(console.log(`--- offset : ${Zt} --- file.size : ${Y.size}`);Zt<Y.size;){if(vt.current.has(B)){console.log(`Canceled sending ${B} to ${h}`),S.send(JSON.stringify({type:"cancel",transferId:L}));return}const Rt=Y.slice(Zt,Zt+dt);if(console.log(`--- slice.size : ${Rt.size}`),Rt.size===0)break;try{const Ve=await new Promise((bn,aa)=>{const ua=new FileReader;ua.onload=Mi=>bn(Mi.target.result),ua.onerror=aa,ua.readAsArrayBuffer(Rt)});if(vt.current.has(B)){console.log(`Canceled sending ${B} to ${h} during read`),S.send(JSON.stringify({type:"cancel",transferId:L}));return}const pn=new TextEncoder().encode(B),je=8+pn.length,Kt=new ArrayBuffer(je+Ve.byteLength),re=new DataView(Kt);re.setUint32(0,L),re.setUint32(4,pn.length),new Uint8Array(Kt).set(pn,8),new Uint8Array(Kt).set(new Uint8Array(Ve),je),S.send(Kt),await zt(),Zt+=Ve.byteLength}catch(Ve){console.error(`Error reading ${B}:`,Ve),S.send(JSON.stringify({type:"cancel",transferId:L}));return}}S.send(JSON.stringify({type:"end",transferId:L})),vt.current.delete(B),console.log(`Finished sending ${B} to ${h}`)},xi=(h,B)=>{if(!vt.current.has(h)){vt.current.add(h);const Y=j.current[B];Y&&Y.readyState==="open"&&(Y.send(JSON.stringify({type:"end-download",fileName:h})),Y.send(JSON.stringify({type:"cancel-download",fileName:h})),console.log(`Sent end-download and cancel-download for ${h} to ${B}`)),ot(S=>{const L=S[h]?.status==="saved",{[h]:st,...X}=S;return L?{...X,[h]:{status:"saved",progress:100,peerId:B}}:X}),Object.keys(Dt.current).forEach(S=>{const L=Dt.current[S];L.fileName===h&&L.peerId===B&&(delete Dt.current[S],U.current.delete(`${h}:${B}`))}),console.log(`Canceled download for ${h} locally`)}},zi=h=>{mt(B=>B.filter(Y=>Y.name!==h)),delete x.current[h],delete x.current[`${h}_thumbnail`],Object.values(j.current).forEach(B=>{B.readyState==="open"&&B.send(JSON.stringify({type:"remove-file",fileName:h}))}),bt.current[h]&&(delete bt.current[h],Gt(B=>{const{[h]:Y,...S}=B;return S}),la(h,0)),console.log(`Deleted file ${h} and notified peers`)},la=(h,B)=>{Gt(Y=>({...Y,[h]:B})),Object.values(j.current).forEach(Y=>{Y.readyState==="open"&&Y.send(JSON.stringify({type:"update-count",fileName:h,count:B}))})},Vn=(h,B)=>{const Y=B.data;try{if(typeof Y=="string"){const S=JSON.parse(Y);if(S.type==="text")W(L=>[...L,S.text]),console.log(`Received text via WebRTC from ${h}: ${S.text}`);else if(S.type==="text-history")console.log(`Received text-history from ${h}:`,S.history,"Current textHistory:",ft),Array.isArray(S.history)?W(S.history):console.warn(`Invalid text-history format from ${h}:`,S.history);else if(S.type==="request-file"){const L=x.current[S.fileName];L?(console.log(`Handling request-file for ${S.fileName} from ${h}`),ke(h,S.fileName,"start"),me(h,S.fileName,L)):console.error(`File not found: ${S.fileName}`)}else if(S.type==="request-thumbnail"){const L=x.current[`${S.fileName}_thumbnail`];L?(console.log(`Handling request-thumbnail for ${S.fileName} from ${h}`),$e(h,"thumbnail",S.fileName,L)):console.error(`Thumbnail not found for ${S.fileName}`)}else S.type==="end-download"?ke(h,S.fileName,"end"):S.type==="remove-file"?(mt(L=>L.filter(st=>st.name!==S.fileName)),console.log(`Removed file ${S.fileName} from list`)):S.type==="update-count"?Gt(L=>({...L,[S.fileName]:S.count})):S.type==="file-list"&&mt(L=>{const st=S.files.filter(X=>!L.some(F=>F.name===X.name&&F.peerId===X.peerId)).map(X=>({...X,peerId:X.peerId||"unknown"}));return st.forEach(X=>{const F=`${X.name}:${X.peerId}`;X.thumbnail&&!x.current[`${X.name}_thumbnail`]&&!U.current.has(F)?(console.log(`Requesting thumbnail for ${X.name} from ${X.peerId}`),te(X)):X.thumbnail&&console.log(`Thumbnail for ${X.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",S.files),[...L,...st]})}else console.warn(`Unexpected non-string message on main channel from ${h}`),console.log(Y)}catch(S){console.error(`Error processing message from ${h}:`,S)}},Zn=(h,B)=>{const Y=B.data;if(typeof Y=="string")try{const S=JSON.parse(Y);if(S.type==="start"){if(S.transferId===void 0||S.transferId===null||!S.fileName||!S.kind||!S.size){console.error(`Invalid start message from ${h}:`,S);return}if(Dt.current[S.transferId]){console.warn(`TransferId ${S.transferId} already exists for ${h}, ignoring new start for ${S.fileName}`);return}Dt.current[S.transferId]={kind:S.kind,fileName:S.fileName,chunks:[],expectedSize:S.size,received:0,peerId:h},console.log(`Started ${S.kind} transfer ${S.transferId} for ${S.fileName} from ${h}, expected size: ${S.size}`),S.kind==="file"&&ot(L=>({...L,[S.fileName]:{status:"downloading",progress:0,total:S.size,received:0,peerId:h}}))}else if(S.type==="end"){const L=Dt.current[S.transferId];if(!L){console.warn(`No state for transferId ${S.transferId} from ${h}`);return}if(L.received>=L.expectedSize){const st=new Blob(L.chunks,{type:L.kind==="thumbnail"?"image/jpeg":"application/octet-stream"});if(console.log(`Assembled ${L.kind} ${L.fileName}, size: ${st.size}`),L.kind==="thumbnail")x.current[`${L.fileName}_thumbnail`]=st,console.log(`Received thumbnail for ${L.fileName} from ${h}, size: ${st.size}`),mt(X=>X.map(F=>F.name===L.fileName&&F.peerId!==K.id?{...F,thumbnail:!0}:F)),U.current.delete(`${L.fileName}:${h}`);else if(L.kind==="file"){x.current[L.fileName]=st;const X=URL.createObjectURL(st);Dt.current[S.transferId].blobUrl=X,console.log(`Stored blobUrl ${X} for transferId ${S.transferId}, fileName: ${L.fileName}`),console.log("binaryStateRef.current keys: ",JSON.stringify(Object.keys(Dt.current))),console.log(`binaryStateRef.current[${S.transferId}]: `,JSON.stringify(Dt.current[S.transferId]));const F=document.createElement("a");F.href=X,F.download=L.fileName,F.click(),setTimeout(()=>{URL.revokeObjectURL(X),console.log(`Revoked blobUrl ${X} for transferId ${S.transferId}`)},5e3),ot(dt=>({...dt,[L.fileName]:{status:"saved",progress:100,peerId:h}}));const zt=j.current[h];zt&&zt.readyState==="open"&&zt.send(JSON.stringify({type:"end-download",fileName:L.fileName}))}}else console.warn(`Size mismatch for ${L.kind} ${L.fileName}: received ${L.received}, expected ${L.expectedSize}`),L.kind==="file"&&ot(st=>({...st,[L.fileName]:{status:"error",progress:L.received/L.expectedSize*100}})),U.current.delete(`${L.fileName}:${h}`)}else if(S.type==="cancel"){const L=Dt.current[S.transferId];L&&L.kind==="file"&&ot(st=>({...st,[L.fileName]:{status:"canceled",progress:0}})),U.current.delete(`${L.fileName}:${h}`),delete Dt.current[S.transferId]}}catch(S){console.error(`Error processing binary control message from ${h}:`,S)}else if(Y instanceof ArrayBuffer){if(Y.byteLength<8){console.warn(`Invalid binary message size from ${h}: ${Y.byteLength} bytes`);return}const S=new DataView(Y),L=S.getUint32(0),st=S.getUint32(4);if(Y.byteLength<8+st){console.warn(`Invalid binary message: insufficient length for fileName from ${h}`);return}const X=new Uint8Array(Y,8,st),F=new TextDecoder().decode(X),zt=Y.slice(8+st),dt=Dt.current[L];if(dt&&dt.fileName===F){if(vt.current.has(dt.fileName)){console.log(`Ignoring chunk for canceled ${dt.kind} ${dt.fileName}`);return}if(dt.chunks.push(zt),dt.received+=zt.byteLength,dt.kind==="file"){const Zt=Math.min(100,dt.received/dt.expectedSize*100);ot(Rt=>({...Rt,[dt.fileName]:{...Rt[dt.fileName],progress:Zt,received:dt.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${L} from ${h}: expected ${dt?.fileName}, got ${F}`)}else if(Y instanceof Blob){console.log(`Received Blob message from ${h}, size: ${Y.size}`),console.dir(Y);const S=new FileReader;S.onload=()=>{const L=S.result;if(L.byteLength<4){console.warn(`Invalid Blob-converted ArrayBuffer size from ${h}: ${L.byteLength} bytes`);return}const st=new DataView(L),X=st.getUint32(0),F=st.getUint32(4);if(L.byteLength<8+F){console.warn(`Invalid Blob-converted ArrayBuffer: insufficient length for fileName from ${h}`);return}const zt=new Uint8Array(L,8,F),dt=new TextDecoder().decode(zt),Zt=L.slice(8+F),Rt=Dt.current[X];if(Rt&&Rt.fileName===dt){if(vt.current.has(Rt.fileName)){console.log(`Ignoring chunk for canceled ${Rt.kind} ${Rt.fileName}`);return}if(Rt.chunks.push(Zt),Rt.received+=Zt.byteLength,console.log(`Received Blob chunk for ${Rt.kind} ${Rt.fileName}, transferId ${X}: ${Rt.received}/${Rt.expectedSize}`),Rt.kind==="file"){const Ve=Math.min(100,Rt.received/Rt.expectedSize*100);ot(pn=>({...pn,[Rt.fileName]:{...pn[Rt.fileName],progress:Ve,received:Rt.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${X} from ${h}: expected ${Rt?.fileName}, got ${dt}`)},S.onerror=L=>{console.error(`Error reading Blob from ${h}:`,L)},S.readAsArrayBuffer(Y)}else console.warn(`Unexpected message type from ${h}:`,typeof Y),console.log(Y)},ke=(h,B,Y)=>{if(x.current[B]){bt.current[B]=bt.current[B]||new Set,Y==="start"?(bt.current[B].add(h),console.log(`Started download of ${B} by ${h}, count: ${bt.current[B].size}`)):Y==="end"&&(bt.current[B].delete(h),console.log(`Ended download of ${B} by ${h}, count: ${bt.current[B].size}`));const S=bt.current[B].size;la(B,S)}};return V.jsxs("div",{className:"container mx-auto left",style:{marginTop:`${fl+50}px`},children:[V.jsxs(V.Fragment,{children:[r&&V.jsx(V.Fragment,{children:v&&$>0&&!O&&V.jsxs("p",{children:["Waiting for peer(s) to connect [WebRTC]... ",$,"s"]})}),V.jsx("h1",{className:"text-2xl font-bold mb-2 cursor-default",children:"Quick File Share"}),Nt&&V.jsx("p",{className:"text-red-500 mb-2",children:Nt}),V.jsx(s1,{code:r,isConnected:O,onCreateRoom:Di,onJoinRoom:kn,joinCode:m,setJoinCode:g})]}),r&&V.jsxs(V.Fragment,{children:[V.jsxs("p",{className:"text-lg",children:[uu,"//",iu,Ee,"/room/",V.jsx("strong",{children:ea||"N/A"})]}),V.jsx("div",{className:`printable-qr transition-all duration-300 cursor-pointer ${hl?"fullscreenqr":"normalscreenqr"}`,onClick:ru,role:"button","aria-label":hl?"Minimize QR code":"Maximize QR code",style:{float:"right",height:"200px",marginTop:"-200px",background:"#000",position:"relative",zIndex:"100"},children:V.jsx(_1,{value:na,size:256,bgColor:"#ffffff",fgColor:"#000000",level:"H",style:{height:"auto",maxWidth:"100%",width:"100%"}})}),V.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:Ni,children:v?"Close Room":"Leave Room"}),"●",V.jsx("button",{onClick:()=>$n("link"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:T==="link"?"Copied!":"Copy Link"}),V.jsx("button",{onClick:()=>$n("code"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:T==="code"?"Copied!":"Copy Code"}),V.jsxs("div",{ref:Xn,className:"mb-4 fixed top-0 right-10 text-right",children:[V.jsxs("h2",{className:"text-xl font-bold text-right",children:["Connected Users (",yt.length,"):"]}),V.jsx("ul",{children:yt.filter(h=>h!=null).map((h,B)=>V.jsxs("li",{children:[K.id&&h===K.id?"(You)":""," ",h]},h||`user-${B}`))})]}),V.jsx(f1,{textHistory:ft,setTextHistory:W,dataChannels:Yt,useFallback:M,socket:K,code:r}),V.jsx(o1,{files:Qt,setFiles:mt,dataChannels:Yt,dataChannelsRef:j,useFallback:M,socket:K,code:r,socketId:K.id,localFilesRef:x,downloadStates:q,setDownloadStates:ot,cancelDownload:xi,cancelRequestsRef:vt,downloadCounts:Tt,handleDeleteFile:zi,SERVER_URL:Bd}),M&&V.jsx("p",{className:"text-red-500",children:"Using server fallback"})]}),!r&&o&&V.jsx("a",{href:"/apk/",id:"apk",children:V.jsx("button",{children:"APK"})})]})}y0.createRoot(document.getElementById("root")).render(V.jsx(rt.StrictMode,{children:V.jsx(T1,{})}));
