17 lines
268 KiB
JavaScript
17 lines
268 KiB
JavaScript
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))s(v);new MutationObserver(v=>{for(const N of v)if(N.type==="childList")for(const I of N.addedNodes)I.tagName==="LINK"&&I.rel==="modulepreload"&&s(I)}).observe(document,{childList:!0,subtree:!0});function b(v){const N={};return v.integrity&&(N.integrity=v.integrity),v.referrerPolicy&&(N.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?N.credentials="include":v.crossOrigin==="anonymous"?N.credentials="omit":N.credentials="same-origin",N}function s(v){if(v.ep)return;v.ep=!0;const N=b(v);fetch(v.href,N)}})();function dm(O){return O&&O.__esModule&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O}var fr={exports:{}},Mu={};var Kd;function hm(){if(Kd)return Mu;Kd=1;var O=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function b(s,v,N){var I=null;if(N!==void 0&&(I=""+N),v.key!==void 0&&(I=""+v.key),"key"in v){N={};for(var W in v)W!=="key"&&(N[W]=v[W])}else N=v;return v=N.ref,{$$typeof:O,type:s,key:I,ref:v!==void 0?v:null,props:N}}return Mu.Fragment=r,Mu.jsx=b,Mu.jsxs=b,Mu}var Jd;function pm(){return Jd||(Jd=1,fr.exports=hm()),fr.exports}var P=pm(),sr={exports:{}},oe={};var Fd;function mm(){if(Fd)return oe;Fd=1;var O=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),I=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),_e=Symbol.iterator;function Ke(m){return m===null||typeof m!="object"?null:(m=_e&&m[_e]||m["@@iterator"],typeof m=="function"?m:null)}var Ce={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Te=Object.assign,Be={};function Le(m,B,w){this.props=m,this.context=B,this.refs=Be,this.updater=w||Ce}Le.prototype.isReactComponent={},Le.prototype.setState=function(m,B){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,B,"setState")},Le.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function D(){}D.prototype=Le.prototype;function V(m,B,w){this.props=m,this.context=B,this.refs=Be,this.updater=w||Ce}var ue=V.prototype=new D;ue.constructor=V,Te(ue,Le.prototype),ue.isPureReactComponent=!0;var Ue=Array.isArray;function De(){}var re={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function wt(m,B,w){var X=w.ref;return{$$typeof:O,type:m,key:B,ref:X!==void 0?X:null,props:w}}function Sl(m,B){return wt(m.type,B,m.props)}function Xt(m){return typeof m=="object"&&m!==null&&m.$$typeof===O}function st(m){var B={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(w){return B[w]})}var Al=/\/+/g;function Zt(m,B){return typeof m=="object"&&m!==null&&m.key!=null?st(""+m.key):B.toString(36)}function Dt(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(De,De):(m.status="pending",m.then(function(B){m.status==="pending"&&(m.status="fulfilled",m.value=B)},function(B){m.status==="pending"&&(m.status="rejected",m.reason=B)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function M(m,B,w,X,ie){var de=typeof m;(de==="undefined"||de==="boolean")&&(m=null);var Oe=!1;if(m===null)Oe=!0;else switch(de){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(m.$$typeof){case O:case r:Oe=!0;break;case ae:return Oe=m._init,M(Oe(m._payload),B,w,X,ie)}}if(Oe)return ie=ie(m),Oe=X===""?"."+Zt(m,0):X,Ue(ie)?(w="",Oe!=null&&(w=Oe.replace(Al,"$&/")+"/"),M(ie,B,w,"",function(ll){return ll})):ie!=null&&(Xt(ie)&&(ie=Sl(ie,w+(ie.key==null||m&&m.key===ie.key?"":(""+ie.key).replace(Al,"$&/")+"/")+Oe)),B.push(ie)),1;Oe=0;var Ve=X===""?".":X+":";if(Ue(m))for(var Xe=0;Xe<m.length;Xe++)X=m[Xe],de=Ve+Zt(X,Xe),Oe+=M(X,B,w,de,ie);else if(Xe=Ke(m),typeof Xe=="function")for(m=Xe.call(m),Xe=0;!(X=m.next()).done;)X=X.value,de=Ve+Zt(X,Xe++),Oe+=M(X,B,w,de,ie);else if(de==="object"){if(typeof m.then=="function")return M(Dt(m),B,w,X,ie);throw B=String(m),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function R(m,B,w){if(m==null)return m;var X=[],ie=0;return M(m,X,"","",function(de){return B.call(w,de,ie++)}),X}function ne(m){if(m._status===-1){var B=m._result;B=B(),B.then(function(w){(m._status===0||m._status===-1)&&(m._status=1,m._result=w)},function(w){(m._status===0||m._status===-1)&&(m._status=2,m._result=w)}),m._status===-1&&(m._status=0,m._result=B)}if(m._status===1)return m._result.default;throw m._result}var ve=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)},G={map:R,forEach:function(m,B,w){R(m,function(){B.apply(this,arguments)},w)},count:function(m){var B=0;return R(m,function(){B++}),B},toArray:function(m){return R(m,function(B){return B})||[]},only:function(m){if(!Xt(m))throw Error("React.Children.only expected to receive a single React element child.");return m}};return oe.Activity=ee,oe.Children=G,oe.Component=Le,oe.Fragment=b,oe.Profiler=v,oe.PureComponent=V,oe.StrictMode=s,oe.Suspense=H,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re,oe.__COMPILER_RUNTIME={__proto__:null,c:function(m){return re.H.useMemoCache(m)}},oe.cache=function(m){return function(){return m.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(m,B,w){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var X=Te({},m.props),ie=m.key;if(B!=null)for(de in B.key!==void 0&&(ie=""+B.key),B)!tt.call(B,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&B.ref===void 0||(X[de]=B[de]);var de=arguments.length-2;if(de===1)X.children=w;else if(1<de){for(var Oe=Array(de),Ve=0;Ve<de;Ve++)Oe[Ve]=arguments[Ve+2];X.children=Oe}return wt(m.type,ie,X)},oe.createContext=function(m){return m={$$typeof:I,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:N,_context:m},m},oe.createElement=function(m,B,w){var X,ie={},de=null;if(B!=null)for(X in B.key!==void 0&&(de=""+B.key),B)tt.call(B,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ie[X]=B[X]);var Oe=arguments.length-2;if(Oe===1)ie.children=w;else if(1<Oe){for(var Ve=Array(Oe),Xe=0;Xe<Oe;Xe++)Ve[Xe]=arguments[Xe+2];ie.children=Ve}if(m&&m.defaultProps)for(X in Oe=m.defaultProps,Oe)ie[X]===void 0&&(ie[X]=Oe[X]);return wt(m,de,ie)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(m){return{$$typeof:W,render:m}},oe.isValidElement=Xt,oe.lazy=function(m){return{$$typeof:ae,_payload:{_status:-1,_result:m},_init:ne}},oe.memo=function(m,B){return{$$typeof:S,type:m,compare:B===void 0?null:B}},oe.startTransition=function(m){var B=re.T,w={};re.T=w;try{var X=m(),ie=re.S;ie!==null&&ie(w,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(De,ve)}catch(de){ve(de)}finally{B!==null&&w.types!==null&&(B.types=w.types),re.T=B}},oe.unstable_useCacheRefresh=function(){return re.H.useCacheRefresh()},oe.use=function(m){return re.H.use(m)},oe.useActionState=function(m,B,w){return re.H.useActionState(m,B,w)},oe.useCallback=function(m,B){return re.H.useCallback(m,B)},oe.useContext=function(m){return re.H.useContext(m)},oe.useDebugValue=function(){},oe.useDeferredValue=function(m,B){return re.H.useDeferredValue(m,B)},oe.useEffect=function(m,B){return re.H.useEffect(m,B)},oe.useEffectEvent=function(m){return re.H.useEffectEvent(m)},oe.useId=function(){return re.H.useId()},oe.useImperativeHandle=function(m,B,w){return re.H.useImperativeHandle(m,B,w)},oe.useInsertionEffect=function(m,B){return re.H.useInsertionEffect(m,B)},oe.useLayoutEffect=function(m,B){return re.H.useLayoutEffect(m,B)},oe.useMemo=function(m,B){return re.H.useMemo(m,B)},oe.useOptimistic=function(m,B){return re.H.useOptimistic(m,B)},oe.useReducer=function(m,B,w){return re.H.useReducer(m,B,w)},oe.useRef=function(m){return re.H.useRef(m)},oe.useState=function(m){return re.H.useState(m)},oe.useSyncExternalStore=function(m,B,w){return re.H.useSyncExternalStore(m,B,w)},oe.useTransition=function(){return re.H.useTransition()},oe.version="19.2.1",oe}var $d;function vr(){return $d||($d=1,sr.exports=mm()),sr.exports}var gt=vr(),dr={exports:{}},xu={},hr={exports:{}},pr={};var Id;function vm(){return Id||(Id=1,(function(O){function r(M,R){var ne=M.length;M.push(R);e:for(;0<ne;){var ve=ne-1>>>1,G=M[ve];if(0<v(G,R))M[ve]=R,M[ne]=G,ne=ve;else break e}}function b(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var R=M[0],ne=M.pop();if(ne!==R){M[0]=ne;e:for(var ve=0,G=M.length,m=G>>>1;ve<m;){var B=2*(ve+1)-1,w=M[B],X=B+1,ie=M[X];if(0>v(w,ne))X<G&&0>v(ie,w)?(M[ve]=ie,M[X]=ne,ve=X):(M[ve]=w,M[B]=ne,ve=B);else if(X<G&&0>v(ie,ne))M[ve]=ie,M[X]=ne,ve=X;else break e}}return R}function v(M,R){var ne=M.sortIndex-R.sortIndex;return ne!==0?ne:M.id-R.id}if(O.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var N=performance;O.unstable_now=function(){return N.now()}}else{var I=Date,W=I.now();O.unstable_now=function(){return I.now()-W}}var H=[],S=[],ae=1,ee=null,_e=3,Ke=!1,Ce=!1,Te=!1,Be=!1,Le=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ue(M){for(var R=b(S);R!==null;){if(R.callback===null)s(S);else if(R.startTime<=M)s(S),R.sortIndex=R.expirationTime,r(H,R);else break;R=b(S)}}function Ue(M){if(Te=!1,ue(M),!Ce)if(b(H)!==null)Ce=!0,De||(De=!0,st());else{var R=b(S);R!==null&&Dt(Ue,R.startTime-M)}}var De=!1,re=-1,tt=5,wt=-1;function Sl(){return Be?!0:!(O.unstable_now()-wt<tt)}function Xt(){if(Be=!1,De){var M=O.unstable_now();wt=M;var R=!0;try{e:{Ce=!1,Te&&(Te=!1,D(re),re=-1),Ke=!0;var ne=_e;try{t:{for(ue(M),ee=b(H);ee!==null&&!(ee.expirationTime>M&&Sl());){var ve=ee.callback;if(typeof ve=="function"){ee.callback=null,_e=ee.priorityLevel;var G=ve(ee.expirationTime<=M);if(M=O.unstable_now(),typeof G=="function"){ee.callback=G,ue(M),R=!0;break t}ee===b(H)&&s(H),ue(M)}else s(H);ee=b(H)}if(ee!==null)R=!0;else{var m=b(S);m!==null&&Dt(Ue,m.startTime-M),R=!1}}break e}finally{ee=null,_e=ne,Ke=!1}R=void 0}}finally{R?st():De=!1}}}var st;if(typeof V=="function")st=function(){V(Xt)};else if(typeof MessageChannel<"u"){var Al=new MessageChannel,Zt=Al.port2;Al.port1.onmessage=Xt,st=function(){Zt.postMessage(null)}}else st=function(){Le(Xt,0)};function Dt(M,R){re=Le(function(){M(O.unstable_now())},R)}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(M){M.callback=null},O.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):tt=0<M?Math.floor(1e3/M):5},O.unstable_getCurrentPriorityLevel=function(){return _e},O.unstable_next=function(M){switch(_e){case 1:case 2:case 3:var R=3;break;default:R=_e}var ne=_e;_e=R;try{return M()}finally{_e=ne}},O.unstable_requestPaint=function(){Be=!0},O.unstable_runWithPriority=function(M,R){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ne=_e;_e=M;try{return R()}finally{_e=ne}},O.unstable_scheduleCallback=function(M,R,ne){var ve=O.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ve+ne:ve):ne=ve,M){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=ne+G,M={id:ae++,callback:R,priorityLevel:M,startTime:ne,expirationTime:G,sortIndex:-1},ne>ve?(M.sortIndex=ne,r(S,M),b(H)===null&&M===b(S)&&(Te?(D(re),re=-1):Te=!0,Dt(Ue,ne-ve))):(M.sortIndex=G,r(H,M),Ce||Ke||(Ce=!0,De||(De=!0,st()))),M},O.unstable_shouldYield=Sl,O.unstable_wrapCallback=function(M){var R=_e;return function(){var ne=_e;_e=R;try{return M.apply(this,arguments)}finally{_e=ne}}}})(pr)),pr}var Pd;function bm(){return Pd||(Pd=1,hr.exports=vm()),hr.exports}var mr={exports:{}},_t={};var eh;function gm(){if(eh)return _t;eh=1;var O=vr();function r(H){var S="https://react.dev/errors/"+H;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var ae=2;ae<arguments.length;ae++)S+="&args[]="+encodeURIComponent(arguments[ae])}return"Minified React error #"+H+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function b(){}var s={d:{f:b,r:function(){throw Error(r(522))},D:b,C:b,L:b,m:b,X:b,S:b,M:b},p:0,findDOMNode:null},v=Symbol.for("react.portal");function N(H,S,ae){var ee=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:ee==null?null:""+ee,children:H,containerInfo:S,implementation:ae}}var I=O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function W(H,S){if(H==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,_t.createPortal=function(H,S){var ae=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(r(299));return N(H,S,null,ae)},_t.flushSync=function(H){var S=I.T,ae=s.p;try{if(I.T=null,s.p=2,H)return H()}finally{I.T=S,s.p=ae,s.d.f()}},_t.preconnect=function(H,S){typeof H=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,s.d.C(H,S))},_t.prefetchDNS=function(H){typeof H=="string"&&s.d.D(H)},_t.preinit=function(H,S){if(typeof H=="string"&&S&&typeof S.as=="string"){var ae=S.as,ee=W(ae,S.crossOrigin),_e=typeof S.integrity=="string"?S.integrity:void 0,Ke=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;ae==="style"?s.d.S(H,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:ee,integrity:_e,fetchPriority:Ke}):ae==="script"&&s.d.X(H,{crossOrigin:ee,integrity:_e,fetchPriority:Ke,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},_t.preinitModule=function(H,S){if(typeof H=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var ae=W(S.as,S.crossOrigin);s.d.M(H,{crossOrigin:ae,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&s.d.M(H)},_t.preload=function(H,S){if(typeof H=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var ae=S.as,ee=W(ae,S.crossOrigin);s.d.L(H,ae,{crossOrigin:ee,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},_t.preloadModule=function(H,S){if(typeof H=="string")if(S){var ae=W(S.as,S.crossOrigin);s.d.m(H,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:ae,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else s.d.m(H)},_t.requestFormReset=function(H){s.d.r(H)},_t.unstable_batchedUpdates=function(H,S){return H(S)},_t.useFormState=function(H,S,ae){return I.H.useFormState(H,S,ae)},_t.useFormStatus=function(){return I.H.useHostTransitionStatus()},_t.version="19.2.1",_t}var th;function ym(){if(th)return mr.exports;th=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(r){console.error(r)}}return O(),mr.exports=gm(),mr.exports}var lh;function _m(){if(lh)return xu;lh=1;var O=bm(),r=vr(),b=ym();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function N(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function I(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function W(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function H(e){if(N(e)!==e)throw Error(s(188))}function S(e){var t=e.alternate;if(!t){if(t=N(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return H(a),e;if(u===n)return H(a),t;u=u.sibling}throw Error(s(188))}if(l.return!==n.return)l=a,n=u;else{for(var i=!1,c=a.child;c;){if(c===l){i=!0,l=a,n=u;break}if(c===n){i=!0,n=a,l=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===l){i=!0,l=u,n=a;break}if(c===n){i=!0,n=u,l=a;break}c=c.sibling}if(!i)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function ae(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ae(e),t!==null)return t;e=e.sibling}return null}var ee=Object.assign,_e=Symbol.for("react.element"),Ke=Symbol.for("react.transitional.element"),Ce=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Le=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),V=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),wt=Symbol.for("react.activity"),Sl=Symbol.for("react.memo_cache_sentinel"),Xt=Symbol.iterator;function st(e){return e===null||typeof e!="object"?null:(e=Xt&&e[Xt]||e["@@iterator"],typeof e=="function"?e:null)}var Al=Symbol.for("react.client.reference");function Zt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Al?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Te:return"Fragment";case Le:return"Profiler";case Be:return"StrictMode";case Ue:return"Suspense";case De:return"SuspenseList";case wt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ce:return"Portal";case V:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case ue:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:Zt(e.type)||"Memo";case tt:t=e._payload,e=e._init;try{return Zt(e(t))}catch{}}return null}var Dt=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=b.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},ve=[],G=-1;function m(e){return{current:e}}function B(e){0>G||(e.current=ve[G],ve[G]=null,G--)}function w(e,t){G++,ve[G]=e.current,e.current=t}var X=m(null),ie=m(null),de=m(null),Oe=m(null);function Ve(e,t){switch(w(de,t),w(ie,e),w(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bd(t),e=gd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(X),w(X,e)}function Xe(){B(X),B(ie),B(de)}function ll(e){e.memoizedState!==null&&w(Oe,e);var t=X.current,l=gd(t,e.type);t!==l&&(w(ie,e),w(X,l))}function fl(e){ie.current===e&&(B(X),B(ie)),Oe.current===e&&(B(Oe),Tu._currentValue=ne)}var Jn,Fn;function dt(e){if(Jn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Jn=t&&t[1]||"",Fn=-1<l.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+Jn+e+Fn}var wa=!1;function Rt(e,t){if(!e||wa)return"";wa=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(T){var A=T}Reflect.construct(e,[],U)}else{try{U.call()}catch(T){A=T}e.call(U.prototype)}}else{try{throw Error()}catch(T){A=T}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(T){if(T&&A&&typeof T.stack=="string")return[T.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var d=i.split(`
|
|
`),_=c.split(`
|
|
`);for(a=n=0;n<d.length&&!d[n].includes("DetermineComponentFrameRoot");)n++;for(;a<_.length&&!_[a].includes("DetermineComponentFrameRoot");)a++;if(n===d.length||a===_.length)for(n=d.length-1,a=_.length-1;1<=n&&0<=a&&d[n]!==_[a];)a--;for(;1<=n&&0<=a;n--,a--)if(d[n]!==_[a]){if(n!==1||a!==1)do if(n--,a--,0>a||d[n]!==_[a]){var z=`
|
|
`+d[n].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=n&&0<=a);break}}}finally{wa=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?dt(l):""}function lc(e,t){switch(e.tag){case 26:case 27:case 5:return dt(e.type);case 16:return dt("Lazy");case 13:return e.child!==t&&t!==null?dt("Suspense Fallback"):dt("Suspense");case 19:return dt("SuspenseList");case 0:case 15:return Rt(e.type,!1);case 11:return Rt(e.type.render,!1);case 1:return Rt(e.type,!0);case 31:return dt("Activity");default:return""}}function $n(e){try{var t="",l=null;do t+=lc(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var Da=Object.prototype.hasOwnProperty,Tn=O.unstable_scheduleCallback,Ra=O.unstable_cancelCallback,nc=O.unstable_shouldYield,ac=O.unstable_requestPaint,St=O.unstable_now,On=O.unstable_getCurrentPriorityLevel,Hu=O.unstable_ImmediatePriority,wu=O.unstable_UserBlockingPriority,jt=O.unstable_NormalPriority,uc=O.unstable_LowPriority,Du=O.unstable_IdlePriority,sl=O.log,ic=O.unstable_setDisableYieldValue,Cn=null,ot=null;function dl(e){if(typeof sl=="function"&&ic(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Cn,e)}catch{}}var At=Math.clz32?Math.clz32:ja,cc=Math.log,Ru=Math.LN2;function ja(e){return e>>>=0,e===0?32:31-(cc(e)/Ru|0)|0}var Ql=256,zn=262144,In=4194304;function hl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Wl(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var c=n&134217727;return c!==0?(n=c&~u,n!==0?a=hl(n):(i&=c,i!==0?a=hl(i):l||(l=c&~e,l!==0&&(a=hl(l))))):(c=n&~u,c!==0?a=hl(c):i!==0?a=hl(i):l||(l=n&~e,l!==0&&(a=hl(l)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:a}function nl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Mn(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 ju(){var e=In;return In<<=1,(In&62914560)===0&&(In=4194304),e}function Pn(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function El(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xl(e,t,l,n,a,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var c=e.entanglements,d=e.expirationTimes,_=e.hiddenUpdates;for(l=i&~l;0<l;){var z=31-At(l),U=1<<z;c[z]=0,d[z]=-1;var A=_[z];if(A!==null)for(_[z]=null,z=0;z<A.length;z++){var T=A[z];T!==null&&(T.lane&=-536870913)}l&=~U}n!==0&&qu(e,n,0),u!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function qu(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-At(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Gu(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-At(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function ce(e,t){var l=t&-t;return l=(l&42)!==0?1:qa(l),(l&(e.suspendedLanes|t))!==0?0:l}function qa(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ga(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Et(){var e=R.p;return e!==0?e:(e=window.event,e===void 0?32:Yd(e.type))}function ea(e,t){var l=R.p;try{return R.p=e,t()}finally{R.p=l}}var Fe=Math.random().toString(36).slice(2),lt="__reactFiber$"+Fe,ht="__reactProps$"+Fe,Tl="__reactContainer$"+Fe,ta="__reactEvents$"+Fe,Lu="__reactListeners$"+Fe,oc="__reactHandles$"+Fe,Yu="__reactResources$"+Fe,Zl="__reactMarker$"+Fe;function La(e){delete e[lt],delete e[ht],delete e[ta],delete e[Lu],delete e[oc]}function kl(e){var t=e[lt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Tl]||l[lt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Od(e);e!==null;){if(l=e[lt])return l;e=Od(e)}return t}e=l,l=e.parentNode}return null}function Kl(e){if(e=e[lt]||e[Tl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Jl(e){var t=e[Yu];return t||(t=e[Yu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Zl]=!0}var Vu=new Set,Fl={};function Ol(e,t){yt(e,t),yt(e+"Capture",t)}function yt(e,t){for(Fl[e]=t,e=0;e<t.length;e++)Vu.add(t[e])}var Qu=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]*$"),pl={},Wu={};function rc(e){return Da.call(Wu,e)?!0:Da.call(pl,e)?!1:Qu.test(e)?Wu[e]=!0:(pl[e]=!0,!1)}function la(e,t,l){if(rc(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ml(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function al(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $l(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fc(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cl(e){if(!e._valueTracker){var t=$l(e)?"checked":"value";e._valueTracker=fc(e,t,""+e[t])}}function Xu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=$l(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function na(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ya=/[\n"\\]/g;function o(e){return e.replace(Ya,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function f(e,t,l,n,a,u,i,c){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?E(e,i,Ct(t)):l!=null?E(e,i,Ct(l)):n!=null&&e.removeAttribute("value"),a==null&&u!=null&&(e.defaultChecked=!!u),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+Ct(c):e.removeAttribute("name")}function h(e,t,l,n,a,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Cl(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,c||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=c?e.checked:!!n,e.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Cl(e)}function E(e,t,l){t==="number"&&na(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function C(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function j(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function Z(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(s(92));if(Dt(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Cl(e)}function Y(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var be=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 J(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||be.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function me(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&J(e,a,n)}else for(var u in t)t.hasOwnProperty(u)&&J(e,u,t[u])}function ze(e){if(e.indexOf("-")===-1)return!1;switch(e){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 he=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"]]),q=/^[\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 Q(e){return q.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function F(){}var Ze=null;function K(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Re=null,fe=null;function Je(e){var t=Kl(e);if(t&&(e=t.stateNode)){var l=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(f(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+o(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[ht]||null;if(!a)throw Error(s(90));f(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Xu(n)}break e;case"textarea":j(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&C(e,!!l.multiple,t,!1)}}}var kt=!1;function Va(e,t,l){if(kt)return e(t,l);kt=!0;try{var n=e(t);return n}finally{if(kt=!1,(Re!==null||fe!==null)&&(Bi(),Re&&(t=Re,e=fe,fe=Re=null,Je(t),e)))for(t=0;t<e.length;t++)Je(e[t])}}function Il(e,t){var l=e.stateNode;if(l===null)return null;var n=l[ht]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var ul=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bn=!1;if(ul)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){Bn=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch{Bn=!1}var vl=null,L=null,zt=null;function zl(){if(zt)return zt;var e,t=L,l=t.length,n,a="value"in vl?vl.value:vl.textContent,u=a.length;for(e=0;e<l&&t[e]===a[e];e++);var i=l-e;for(n=1;n<=i&&t[l-n]===a[u-n];n++);return zt=a.slice(e,1<n?1-n:void 0)}function Nn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zu(){return!0}function gr(){return!1}function Mt(e){function t(l,n,a,u,i){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(l=e[c],this[c]=l?l(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Zu:gr,this.isPropagationStopped=gr,this}return ee(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Zu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Zu)},persist:function(){},isPersistent:Zu}),t}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ku=Mt(Hn),Qa=ee({},Hn,{view:0,detail:0}),fh=Mt(Qa),sc,dc,Wa,Ku=ee({},Qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wa&&(Wa&&e.type==="mousemove"?(sc=e.screenX-Wa.screenX,dc=e.screenY-Wa.screenY):dc=sc=0,Wa=e),sc)},movementY:function(e){return"movementY"in e?e.movementY:dc}}),yr=Mt(Ku),sh=ee({},Ku,{dataTransfer:0}),dh=Mt(sh),hh=ee({},Qa,{relatedTarget:0}),hc=Mt(hh),ph=ee({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0}),mh=Mt(ph),vh=ee({},Hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bh=Mt(vh),gh=ee({},Hn,{data:0}),_r=Mt(gh),yh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_h={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"},Sh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ah(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sh[e])?!!t[e]:!1}function pc(){return Ah}var Eh=ee({},Qa,{key:function(e){if(e.key){var t=yh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_h[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(e){return e.type==="keypress"?Nn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Th=Mt(Eh),Oh=ee({},Ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sr=Mt(Oh),Ch=ee({},Qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),zh=Mt(Ch),Mh=ee({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),xh=Mt(Mh),Bh=ee({},Ku,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Uh=Mt(Bh),Nh=ee({},Hn,{newState:0,oldState:0}),Hh=Mt(Nh),wh=[9,13,27,32],mc=ul&&"CompositionEvent"in window,Xa=null;ul&&"documentMode"in document&&(Xa=document.documentMode);var Dh=ul&&"TextEvent"in window&&!Xa,Ar=ul&&(!mc||Xa&&8<Xa&&11>=Xa),Er=" ",Tr=!1;function Or(e,t){switch(e){case"keyup":return wh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function Rh(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return t.which!==32?null:(Tr=!0,Er);case"textInput":return e=t.data,e===Er&&Tr?null:e;default:return null}}function jh(e,t){if(aa)return e==="compositionend"||!mc&&Or(e,t)?(e=zl(),zt=L=vl=null,aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ar&&t.locale!=="ko"?null:t.data;default:return null}}var qh={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 zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qh[e.type]:t==="textarea"}function Mr(e,t,l,n){Re?fe?fe.push(n):fe=[n]:Re=n,t=ji(t,"onChange"),0<t.length&&(l=new ku("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Za=null,ka=null;function Gh(e){sd(e,0)}function Ju(e){var t=xn(e);if(Xu(t))return e}function xr(e,t){if(e==="change")return t}var Br=!1;if(ul){var vc;if(ul){var bc="oninput"in document;if(!bc){var Ur=document.createElement("div");Ur.setAttribute("oninput","return;"),bc=typeof Ur.oninput=="function"}vc=bc}else vc=!1;Br=vc&&(!document.documentMode||9<document.documentMode)}function Nr(){Za&&(Za.detachEvent("onpropertychange",Hr),ka=Za=null)}function Hr(e){if(e.propertyName==="value"&&Ju(ka)){var t=[];Mr(t,ka,e,K(e)),Va(Gh,t)}}function Lh(e,t,l){e==="focusin"?(Nr(),Za=t,ka=l,Za.attachEvent("onpropertychange",Hr)):e==="focusout"&&Nr()}function Yh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ju(ka)}function Vh(e,t){if(e==="click")return Ju(t)}function Qh(e,t){if(e==="input"||e==="change")return Ju(t)}function Wh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:Wh;function Ka(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Da.call(t,a)||!qt(e[a],t[a]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dr(e,t){var l=wr(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=wr(l)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=na(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=na(e.document)}return t}function gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Xh=ul&&"documentMode"in document&&11>=document.documentMode,ua=null,yc=null,Ja=null,_c=!1;function qr(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_c||ua==null||ua!==na(n)||(n=ua,"selectionStart"in n&&gc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ja&&Ka(Ja,n)||(Ja=n,n=ji(yc,"onSelect"),0<n.length&&(t=new ku("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=ua)))}function wn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ia={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")},Sc={},Gr={};ul&&(Gr=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function Dn(e){if(Sc[e])return Sc[e];if(!ia[e])return e;var t=ia[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Gr)return Sc[e]=t[l];return e}var Lr=Dn("animationend"),Yr=Dn("animationiteration"),Vr=Dn("animationstart"),Zh=Dn("transitionrun"),kh=Dn("transitionstart"),Kh=Dn("transitioncancel"),Qr=Dn("transitionend"),Wr=new Map,Ac="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(" ");Ac.push("scrollEnd");function il(e,t){Wr.set(e,t),Ol(t,[e])}var Fu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kt=[],ca=0,Ec=0;function $u(){for(var e=ca,t=Ec=ca=0;t<e;){var l=Kt[t];Kt[t++]=null;var n=Kt[t];Kt[t++]=null;var a=Kt[t];Kt[t++]=null;var u=Kt[t];if(Kt[t++]=null,n!==null&&a!==null){var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}u!==0&&Xr(l,a,u)}}function Iu(e,t,l,n){Kt[ca++]=e,Kt[ca++]=t,Kt[ca++]=l,Kt[ca++]=n,Ec|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Tc(e,t,l,n){return Iu(e,t,l,n),Pu(e)}function Rn(e,t){return Iu(e,null,null,t),Pu(e)}function Xr(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=e.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(a=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,a&&t!==null&&(a=31-At(l),e=u.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),u):null}function Pu(e){if(50<bu)throw bu=0,wo=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oa={};function Jh(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,l,n){return new Jh(e,t,l,n)}function Oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ml(e,t){var l=e.alternate;return l===null?(l=Gt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Zr(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ei(e,t,l,n,a,u){var i=0;if(n=e,typeof e=="function")Oc(e)&&(i=1);else if(typeof e=="string")i=em(e,l,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case wt:return e=Gt(31,l,t,a),e.elementType=wt,e.lanes=u,e;case Te:return jn(l.children,a,u,t);case Be:i=8,a|=24;break;case Le:return e=Gt(12,l,t,a|2),e.elementType=Le,e.lanes=u,e;case Ue:return e=Gt(13,l,t,a),e.elementType=Ue,e.lanes=u,e;case De:return e=Gt(19,l,t,a),e.elementType=De,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:i=10;break e;case D:i=9;break e;case ue:i=11;break e;case re:i=14;break e;case tt:i=16,n=null;break e}i=29,l=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=Gt(i,l,t,a),t.elementType=e,t.type=n,t.lanes=u,t}function jn(e,t,l,n){return e=Gt(7,e,n,t),e.lanes=l,e}function Cc(e,t,l){return e=Gt(6,e,null,t),e.lanes=l,e}function kr(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function zc(e,t,l){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=new WeakMap;function Jt(e,t){if(typeof e=="object"&&e!==null){var l=Kr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:$n(t)},Kr.set(e,t),t)}return{value:e,source:t,stack:$n(t)}}var ra=[],fa=0,ti=null,Fa=0,Ft=[],$t=0,Pl=null,bl=1,gl="";function xl(e,t){ra[fa++]=Fa,ra[fa++]=ti,ti=e,Fa=t}function Jr(e,t,l){Ft[$t++]=bl,Ft[$t++]=gl,Ft[$t++]=Pl,Pl=e;var n=bl;e=gl;var a=32-At(n)-1;n&=~(1<<a),l+=1;var u=32-At(t)+a;if(30<u){var i=a-a%5;u=(n&(1<<i)-1).toString(32),n>>=i,a-=i,bl=1<<32-At(t)+a|l<<a|n,gl=u+e}else bl=1<<u|l<<a|n,gl=e}function Mc(e){e.return!==null&&(xl(e,1),Jr(e,1,0))}function xc(e){for(;e===ti;)ti=ra[--fa],ra[fa]=null,Fa=ra[--fa],ra[fa]=null;for(;e===Pl;)Pl=Ft[--$t],Ft[$t]=null,gl=Ft[--$t],Ft[$t]=null,bl=Ft[--$t],Ft[$t]=null}function Fr(e,t){Ft[$t++]=bl,Ft[$t++]=gl,Ft[$t++]=Pl,bl=t.id,gl=t.overflow,Pl=e}var pt=null,Qe=null,Ee=!1,en=null,It=!1,Bc=Error(s(519));function tn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $a(Jt(t,e)),Bc}function $r(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[lt]=e,t[ht]=n,l){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(l=0;l<yu.length;l++)ye(yu[l],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),h(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),Z(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||md(t.textContent,l)?(n.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),n.onScroll!=null&&ye("scroll",t),n.onScrollEnd!=null&&ye("scrollend",t),n.onClick!=null&&(t.onclick=F),t=!0):t=!1,t||tn(e,!0)}function Ir(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:pt=pt.return}}function sa(e){if(e!==pt)return!1;if(!Ee)return Ir(e),Ee=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Jo(e.type,e.memoizedProps)),l=!l),l&&Qe&&tn(e),Ir(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Td(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Td(e)}else t===27?(t=Qe,vn(e.type)?(e=er,er=null,Qe=e):Qe=t):Qe=pt?el(e.stateNode.nextSibling):null;return!0}function qn(){Qe=pt=null,Ee=!1}function Uc(){var e=en;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),en=null),e}function $a(e){en===null?en=[e]:en.push(e)}var Nc=m(null),Gn=null,Bl=null;function ln(e,t,l){w(Nc,t._currentValue),t._currentValue=l}function Ul(e){e._currentValue=Nc.current,B(Nc)}function Hc(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function wc(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var u=a.dependencies;if(u!==null){var i=a.child;u=u.firstContext;e:for(;u!==null;){var c=u;u=a;for(var d=0;d<t.length;d++)if(c.context===t[d]){u.lanes|=l,c=u.alternate,c!==null&&(c.lanes|=l),Hc(u.return,l,e),n||(i=null);break e}u=c.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(s(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Hc(i,l,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function da(e,t,l,n){e=null;for(var a=t,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 i=a.alternate;if(i===null)throw Error(s(387));if(i=i.memoizedProps,i!==null){var c=a.type;qt(a.pendingProps.value,i.value)||(e!==null?e.push(c):e=[c])}}else if(a===Oe.current){if(i=a.alternate,i===null)throw Error(s(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Tu):e=[Tu])}a=a.return}e!==null&&wc(t,e,l,n),t.flags|=262144}function li(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ln(e){Gn=e,Bl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Pr(Gn,e)}function ni(e,t){return Gn===null&&Ln(e),Pr(e,t)}function Pr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Bl===null){if(e===null)throw Error(s(308));Bl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bl=Bl.next=t;return l}var Fh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},$h=O.unstable_scheduleCallback,Ih=O.unstable_NormalPriority,at={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dc(){return{controller:new Fh,data:new Map,refCount:0}}function Ia(e){e.refCount--,e.refCount===0&&$h(Ih,function(){e.controller.abort()})}var Pa=null,Rc=0,ha=0,pa=null;function Ph(e,t){if(Pa===null){var l=Pa=[];Rc=0,ha=Lo(),pa={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Rc++,t.then(ef,ef),t}function ef(){if(--Rc===0&&Pa!==null){pa!==null&&(pa.status="fulfilled");var e=Pa;Pa=null,ha=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ep(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var tf=M.S;M.S=function(e,t){Gs=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ph(e,t),tf!==null&&tf(e,t)};var Yn=m(null);function jc(){var e=Yn.current;return e!==null?e:Ye.pooledCache}function ai(e,t){t===null?w(Yn,Yn.current):w(Yn,t.pool)}function lf(){var e=jc();return e===null?null:{parent:at._currentValue,pool:e}}var ma=Error(s(460)),qc=Error(s(474)),ui=Error(s(542)),ii={then:function(){}};function nf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function af(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(F,F),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cf(e),e;default:if(typeof t.status=="string")t.then(F,F);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cf(e),e}throw Qn=t,ma}}function Vn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Qn=l,ma):l}}var Qn=null;function uf(){if(Qn===null)throw Error(s(459));var e=Qn;return Qn=null,e}function cf(e){if(e===ma||e===ui)throw Error(s(483))}var va=null,eu=0;function ci(e){var t=eu;return eu+=1,va===null&&(va=[]),af(va,e,t)}function tu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function oi(e,t){throw t.$$typeof===_e?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function of(e){function t(g,p){if(e){var y=g.deletions;y===null?(g.deletions=[p],g.flags|=16):y.push(p)}}function l(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function n(g){for(var p=new Map;g!==null;)g.key!==null?p.set(g.key,g):p.set(g.index,g),g=g.sibling;return p}function a(g,p){return g=Ml(g,p),g.index=0,g.sibling=null,g}function u(g,p,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<p?(g.flags|=67108866,p):y):(g.flags|=67108866,p)):(g.flags|=1048576,p)}function i(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function c(g,p,y,x){return p===null||p.tag!==6?(p=Cc(y,g.mode,x),p.return=g,p):(p=a(p,y),p.return=g,p)}function d(g,p,y,x){var te=y.type;return te===Te?z(g,p,y.props.children,x,y.key):p!==null&&(p.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===tt&&Vn(te)===p.type)?(p=a(p,y.props),tu(p,y),p.return=g,p):(p=ei(y.type,y.key,y.props,null,g.mode,x),tu(p,y),p.return=g,p)}function _(g,p,y,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=zc(y,g.mode,x),p.return=g,p):(p=a(p,y.children||[]),p.return=g,p)}function z(g,p,y,x,te){return p===null||p.tag!==7?(p=jn(y,g.mode,x,te),p.return=g,p):(p=a(p,y),p.return=g,p)}function U(g,p,y){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Cc(""+p,g.mode,y),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ke:return y=ei(p.type,p.key,p.props,null,g.mode,y),tu(y,p),y.return=g,y;case Ce:return p=zc(p,g.mode,y),p.return=g,p;case tt:return p=Vn(p),U(g,p,y)}if(Dt(p)||st(p))return p=jn(p,g.mode,y,null),p.return=g,p;if(typeof p.then=="function")return U(g,ci(p),y);if(p.$$typeof===V)return U(g,ni(g,p),y);oi(g,p)}return null}function A(g,p,y,x){var te=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return te!==null?null:c(g,p,""+y,x);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ke:return y.key===te?d(g,p,y,x):null;case Ce:return y.key===te?_(g,p,y,x):null;case tt:return y=Vn(y),A(g,p,y,x)}if(Dt(y)||st(y))return te!==null?null:z(g,p,y,x,null);if(typeof y.then=="function")return A(g,p,ci(y),x);if(y.$$typeof===V)return A(g,p,ni(g,y),x);oi(g,y)}return null}function T(g,p,y,x,te){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return g=g.get(y)||null,c(p,g,""+x,te);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ke:return g=g.get(x.key===null?y:x.key)||null,d(p,g,x,te);case Ce:return g=g.get(x.key===null?y:x.key)||null,_(p,g,x,te);case tt:return x=Vn(x),T(g,p,y,x,te)}if(Dt(x)||st(x))return g=g.get(y)||null,z(p,g,x,te,null);if(typeof x.then=="function")return T(g,p,y,ci(x),te);if(x.$$typeof===V)return T(g,p,y,ni(p,x),te);oi(p,x)}return null}function k(g,p,y,x){for(var te=null,Me=null,$=p,pe=p=0,Ae=null;$!==null&&pe<y.length;pe++){$.index>pe?(Ae=$,$=null):Ae=$.sibling;var xe=A(g,$,y[pe],x);if(xe===null){$===null&&($=Ae);break}e&&$&&xe.alternate===null&&t(g,$),p=u(xe,p,pe),Me===null?te=xe:Me.sibling=xe,Me=xe,$=Ae}if(pe===y.length)return l(g,$),Ee&&xl(g,pe),te;if($===null){for(;pe<y.length;pe++)$=U(g,y[pe],x),$!==null&&(p=u($,p,pe),Me===null?te=$:Me.sibling=$,Me=$);return Ee&&xl(g,pe),te}for($=n($);pe<y.length;pe++)Ae=T($,g,pe,y[pe],x),Ae!==null&&(e&&Ae.alternate!==null&&$.delete(Ae.key===null?pe:Ae.key),p=u(Ae,p,pe),Me===null?te=Ae:Me.sibling=Ae,Me=Ae);return e&&$.forEach(function(Sn){return t(g,Sn)}),Ee&&xl(g,pe),te}function le(g,p,y,x){if(y==null)throw Error(s(151));for(var te=null,Me=null,$=p,pe=p=0,Ae=null,xe=y.next();$!==null&&!xe.done;pe++,xe=y.next()){$.index>pe?(Ae=$,$=null):Ae=$.sibling;var Sn=A(g,$,xe.value,x);if(Sn===null){$===null&&($=Ae);break}e&&$&&Sn.alternate===null&&t(g,$),p=u(Sn,p,pe),Me===null?te=Sn:Me.sibling=Sn,Me=Sn,$=Ae}if(xe.done)return l(g,$),Ee&&xl(g,pe),te;if($===null){for(;!xe.done;pe++,xe=y.next())xe=U(g,xe.value,x),xe!==null&&(p=u(xe,p,pe),Me===null?te=xe:Me.sibling=xe,Me=xe);return Ee&&xl(g,pe),te}for($=n($);!xe.done;pe++,xe=y.next())xe=T($,g,pe,xe.value,x),xe!==null&&(e&&xe.alternate!==null&&$.delete(xe.key===null?pe:xe.key),p=u(xe,p,pe),Me===null?te=xe:Me.sibling=xe,Me=xe);return e&&$.forEach(function(sm){return t(g,sm)}),Ee&&xl(g,pe),te}function Ge(g,p,y,x){if(typeof y=="object"&&y!==null&&y.type===Te&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ke:e:{for(var te=y.key;p!==null;){if(p.key===te){if(te=y.type,te===Te){if(p.tag===7){l(g,p.sibling),x=a(p,y.props.children),x.return=g,g=x;break e}}else if(p.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===tt&&Vn(te)===p.type){l(g,p.sibling),x=a(p,y.props),tu(x,y),x.return=g,g=x;break e}l(g,p);break}else t(g,p);p=p.sibling}y.type===Te?(x=jn(y.props.children,g.mode,x,y.key),x.return=g,g=x):(x=ei(y.type,y.key,y.props,null,g.mode,x),tu(x,y),x.return=g,g=x)}return i(g);case Ce:e:{for(te=y.key;p!==null;){if(p.key===te)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){l(g,p.sibling),x=a(p,y.children||[]),x.return=g,g=x;break e}else{l(g,p);break}else t(g,p);p=p.sibling}x=zc(y,g.mode,x),x.return=g,g=x}return i(g);case tt:return y=Vn(y),Ge(g,p,y,x)}if(Dt(y))return k(g,p,y,x);if(st(y)){if(te=st(y),typeof te!="function")throw Error(s(150));return y=te.call(y),le(g,p,y,x)}if(typeof y.then=="function")return Ge(g,p,ci(y),x);if(y.$$typeof===V)return Ge(g,p,ni(g,y),x);oi(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,p!==null&&p.tag===6?(l(g,p.sibling),x=a(p,y),x.return=g,g=x):(l(g,p),x=Cc(y,g.mode,x),x.return=g,g=x),i(g)):l(g,p)}return function(g,p,y,x){try{eu=0;var te=Ge(g,p,y,x);return va=null,te}catch($){if($===ma||$===ui)throw $;var Me=Gt(29,$,null,g.mode);return Me.lanes=x,Me.return=g,Me}finally{}}}var Wn=of(!0),rf=of(!1),nn=!1;function Gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function an(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function un(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ne&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Pu(e),Xr(e,null,l),t}return Iu(e,n,t,l),Pu(e)}function lu(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Gu(e,l)}}function Yc(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?a=u=t:u=u.next=t}else a=u=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Vc=!1;function nu(){if(Vc){var e=pa;if(e!==null)throw e}}function au(e,t,l,n){Vc=!1;var a=e.updateQueue;nn=!1;var u=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,_=d.next;d.next=null,i===null?u=_:i.next=_,i=d;var z=e.alternate;z!==null&&(z=z.updateQueue,c=z.lastBaseUpdate,c!==i&&(c===null?z.firstBaseUpdate=_:c.next=_,z.lastBaseUpdate=d))}if(u!==null){var U=a.baseState;i=0,z=_=d=null,c=u;do{var A=c.lane&-536870913,T=A!==c.lane;if(T?(Se&A)===A:(n&A)===A){A!==0&&A===ha&&(Vc=!0),z!==null&&(z=z.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var k=e,le=c;A=t;var Ge=l;switch(le.tag){case 1:if(k=le.payload,typeof k=="function"){U=k.call(Ge,U,A);break e}U=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=le.payload,A=typeof k=="function"?k.call(Ge,U,A):k,A==null)break e;U=ee({},U,A);break e;case 2:nn=!0}}A=c.callback,A!==null&&(e.flags|=64,T&&(e.flags|=8192),T=a.callbacks,T===null?a.callbacks=[A]:T.push(A))}else T={lane:A,tag:c.tag,payload:c.payload,callback:c.callback,next:null},z===null?(_=z=T,d=U):z=z.next=T,i|=A;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;T=c,c=T.next,T.next=null,a.lastBaseUpdate=T,a.shared.pending=null}}while(!0);z===null&&(d=U),a.baseState=d,a.firstBaseUpdate=_,a.lastBaseUpdate=z,u===null&&(a.shared.lanes=0),sn|=i,e.lanes=i,e.memoizedState=U}}function ff(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function sf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ff(l[e],t)}var ba=m(null),ri=m(0);function df(e,t){e=Ll,w(ri,e),w(ba,t),Ll=e|t.baseLanes}function Qc(){w(ri,Ll),w(ba,ba.current)}function Wc(){Ll=ri.current,B(ba),B(ri)}var Lt=m(null),Pt=null;function cn(e){var t=e.alternate;w(Pe,Pe.current&1),w(Lt,e),Pt===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(Pt=e)}function Xc(e){w(Pe,Pe.current),w(Lt,e),Pt===null&&(Pt=e)}function hf(e){e.tag===22?(w(Pe,Pe.current),w(Lt,e),Pt===null&&(Pt=e)):on()}function on(){w(Pe,Pe.current),w(Lt,Lt.current)}function Yt(e){B(Lt),Pt===e&&(Pt=null),B(Pe)}var Pe=m(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Io(l)||Po(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nl=0,se=null,je=null,ut=null,si=!1,ga=!1,Xn=!1,di=0,uu=0,ya=null,tp=0;function $e(){throw Error(s(321))}function Zc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!qt(e[l],t[l]))return!1;return!0}function kc(e,t,l,n,a,u){return Nl=u,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Ff:oo,Xn=!1,u=l(n,a),Xn=!1,ga&&(u=mf(t,l,n,a)),pf(e),u}function pf(e){M.H=ou;var t=je!==null&&je.next!==null;if(Nl=0,ut=je=se=null,si=!1,uu=0,ya=null,t)throw Error(s(300));e===null||it||(e=e.dependencies,e!==null&&li(e)&&(it=!0))}function mf(e,t,l,n){se=e;var a=0;do{if(ga&&(ya=null),uu=0,ga=!1,25<=a)throw Error(s(301));if(a+=1,ut=je=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=$f,u=t(l,n)}while(ga);return u}function lp(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?iu(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(se.flags|=1024),t}function Kc(){var e=di!==0;return di=0,e}function Jc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Fc(e){if(si){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}si=!1}Nl=0,ut=je=se=null,ga=!1,uu=di=0,ya=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?se.memoizedState=ut=e:ut=ut.next=e,ut}function et(){if(je===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=ut===null?se.memoizedState:ut.next;if(t!==null)ut=t,je=e;else{if(e===null)throw se.alternate===null?Error(s(467)):Error(s(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},ut===null?se.memoizedState=ut=e:ut=ut.next=e}return ut}function hi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function iu(e){var t=uu;return uu+=1,ya===null&&(ya=[]),e=af(ya,e,t),t=se,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Ff:oo),e}function pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return iu(e);if(e.$$typeof===V)return mt(e)}throw Error(s(438,String(e)))}function $c(e){var t=null,l=se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=se.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=hi(),se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Sl;return t.index++,l}function Hl(e,t){return typeof t=="function"?t(e):t}function mi(e){var t=et();return Ic(t,je,e)}function Ic(e,t,l){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var a=e.baseQueue,u=n.pending;if(u!==null){if(a!==null){var i=a.next;a.next=u.next,u.next=i}t.baseQueue=a=u,n.pending=null}if(u=e.baseState,a===null)e.memoizedState=u;else{t=a.next;var c=i=null,d=null,_=t,z=!1;do{var U=_.lane&-536870913;if(U!==_.lane?(Se&U)===U:(Nl&U)===U){var A=_.revertLane;if(A===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),U===ha&&(z=!0);else if((Nl&A)===A){_=_.next,A===ha&&(z=!0);continue}else U={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},d===null?(c=d=U,i=u):d=d.next=U,se.lanes|=A,sn|=A;U=_.action,Xn&&l(u,U),u=_.hasEagerState?_.eagerState:l(u,U)}else A={lane:U,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},d===null?(c=d=A,i=u):d=d.next=A,se.lanes|=U,sn|=U;_=_.next}while(_!==null&&_!==t);if(d===null?i=u:d.next=c,!qt(u,e.memoizedState)&&(it=!0,z&&(l=pa,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=d,n.lastRenderedState=u}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Pc(e){var t=et(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,u=t.memoizedState;if(a!==null){l.pending=null;var i=a=a.next;do u=e(u,i.action),i=i.next;while(i!==a);qt(u,t.memoizedState)||(it=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,n]}function vf(e,t,l){var n=se,a=et(),u=Ee;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=t();var i=!qt((je||a).memoizedState,l);if(i&&(a.memoizedState=l,it=!0),a=a.queue,lo(yf.bind(null,n,a,e),[e]),a.getSnapshot!==t||i||ut!==null&&ut.memoizedState.tag&1){if(n.flags|=2048,_a(9,{destroy:void 0},gf.bind(null,n,a,l,t),null),Ye===null)throw Error(s(349));u||(Nl&127)!==0||bf(n,t,l)}return l}function bf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=se.updateQueue,t===null?(t=hi(),se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function gf(e,t,l,n){t.value=l,t.getSnapshot=n,_f(t)&&Sf(e)}function yf(e,t,l){return l(function(){_f(t)&&Sf(e)})}function _f(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!qt(e,l)}catch{return!0}}function Sf(e){var t=Rn(e,2);t!==null&&Ht(t,e,2)}function eo(e){var t=Tt();if(typeof e=="function"){var l=e;if(e=l(),Xn){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:e},t}function Af(e,t,l,n){return e.baseState=l,Ic(e,je,typeof n=="function"?n:Hl)}function np(e,t,l,n,a){if(gi(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};M.T!==null?l(!0):u.isTransition=!1,n(u),l=t.pending,l===null?(u.next=t.pending=u,Ef(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Ef(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var u=M.T,i={};M.T=i;try{var c=l(a,n),d=M.S;d!==null&&d(i,c),Tf(e,t,c)}catch(_){to(e,t,_)}finally{u!==null&&i.types!==null&&(u.types=i.types),M.T=u}}else try{u=l(a,n),Tf(e,t,u)}catch(_){to(e,t,_)}}function Tf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Of(e,t,n)},function(n){return to(e,t,n)}):Of(e,t,l)}function Of(e,t,l){t.status="fulfilled",t.value=l,Cf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ef(e,l)))}function to(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Cf(t),t=t.next;while(t!==n)}e.action=null}function Cf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zf(e,t){return t}function Mf(e,t){if(Ee){var l=Ye.formState;if(l!==null){e:{var n=se;if(Ee){if(Qe){t:{for(var a=Qe,u=It;a.nodeType!==8;){if(!u){a=null;break t}if(a=el(a.nextSibling),a===null){a=null;break t}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Qe=el(a.nextSibling),n=a.data==="F!";break e}}tn(n)}n=!1}n&&(t=l[0])}}return l=Tt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zf,lastRenderedState:t},l.queue=n,l=kf.bind(null,se,n),n.dispatch=l,n=eo(!1),u=co.bind(null,se,!1,n.queue),n=Tt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=np.bind(null,se,a,u,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function xf(e){var t=et();return Bf(t,je,e)}function Bf(e,t,l){if(t=Ic(e,t,zf)[0],e=mi(Hl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=iu(t)}catch(i){throw i===ma?ui:i}else n=t;t=et();var a=t.queue,u=a.dispatch;return l!==t.memoizedState&&(se.flags|=2048,_a(9,{destroy:void 0},ap.bind(null,a,l),null)),[n,u,e]}function ap(e,t){e.action=t}function Uf(e){var t=et(),l=je;if(l!==null)return Bf(t,l,e);et(),t=t.memoizedState,l=et();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function _a(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=se.updateQueue,t===null&&(t=hi(),se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Nf(){return et().memoizedState}function vi(e,t,l,n){var a=Tt();se.flags|=e,a.memoizedState=_a(1|t,{destroy:void 0},l,n===void 0?null:n)}function bi(e,t,l,n){var a=et();n=n===void 0?null:n;var u=a.memoizedState.inst;je!==null&&n!==null&&Zc(n,je.memoizedState.deps)?a.memoizedState=_a(t,u,l,n):(se.flags|=e,a.memoizedState=_a(1|t,u,l,n))}function Hf(e,t){vi(8390656,8,e,t)}function lo(e,t){bi(2048,8,e,t)}function up(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=hi(),se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function wf(e){var t=et().memoizedState;return up({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Df(e,t){return bi(4,2,e,t)}function Rf(e,t){return bi(4,4,e,t)}function jf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qf(e,t,l){l=l!=null?l.concat([e]):null,bi(4,4,jf.bind(null,t,e),l)}function no(){}function Gf(e,t){var l=et();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Zc(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Lf(e,t){var l=et();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Zc(t,n[1]))return n[0];if(n=e(),Xn){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[n,t],n}function ao(e,t,l){return l===void 0||(Nl&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ys(),se.lanes|=e,sn|=e,l)}function Yf(e,t,l,n){return qt(l,t)?l:ba.current!==null?(e=ao(e,l,n),qt(e,t)||(it=!0),e):(Nl&42)===0||(Nl&1073741824)!==0&&(Se&261930)===0?(it=!0,e.memoizedState=l):(e=Ys(),se.lanes|=e,sn|=e,t)}function Vf(e,t,l,n,a){var u=R.p;R.p=u!==0&&8>u?u:8;var i=M.T,c={};M.T=c,co(e,!1,t,l);try{var d=a(),_=M.S;if(_!==null&&_(c,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var z=ep(d,n);cu(e,t,z,Wt(e))}else cu(e,t,n,Wt(e))}catch(U){cu(e,t,{then:function(){},status:"rejected",reason:U},Wt())}finally{R.p=u,i!==null&&c.types!==null&&(i.types=c.types),M.T=i}}function ip(){}function uo(e,t,l,n){if(e.tag!==5)throw Error(s(476));var a=Qf(e).queue;Vf(e,a,t,ne,l===null?ip:function(){return Wf(e),l(n)})}function Qf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=Qf(e);t.next===null&&(t=e.alternate.memoizedState),cu(e,t.next.queue,{},Wt())}function io(){return mt(Tu)}function Xf(){return et().memoizedState}function Zf(){return et().memoizedState}function cp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Wt();e=an(l);var n=un(t,e,l);n!==null&&(Ht(n,t,l),lu(n,t,l)),t={cache:Dc()},e.payload=t;return}t=t.return}}function op(e,t,l){var n=Wt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gi(e)?Kf(t,l):(l=Tc(e,t,l,n),l!==null&&(Ht(l,e,n),Jf(l,t,n)))}function kf(e,t,l){var n=Wt();cu(e,t,l,n)}function cu(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gi(e))Kf(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,c=u(i,l);if(a.hasEagerState=!0,a.eagerState=c,qt(c,i))return Iu(e,t,a,0),Ye===null&&$u(),!1}catch{}finally{}if(l=Tc(e,t,a,n),l!==null)return Ht(l,e,n),Jf(l,t,n),!0}return!1}function co(e,t,l,n){if(n={lane:2,revertLane:Lo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gi(e)){if(t)throw Error(s(479))}else t=Tc(e,l,n,2),t!==null&&Ht(t,e,2)}function gi(e){var t=e.alternate;return e===se||t!==null&&t===se}function Kf(e,t){ga=si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Jf(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Gu(e,l)}}var ou={readContext:mt,use:pi,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};ou.useEffectEvent=$e;var Ff={readContext:mt,use:pi,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Hf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,vi(4194308,4,jf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){vi(4,2,e,t)},useMemo:function(e,t){var l=Tt();t=t===void 0?null:t;var n=e();if(Xn){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=Tt();if(l!==void 0){var a=l(t);if(Xn){dl(!0);try{l(t)}finally{dl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=op.bind(null,se,e),[n.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=eo(e);var t=e.queue,l=kf.bind(null,se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:no,useDeferredValue:function(e,t){var l=Tt();return ao(l,e,t)},useTransition:function(){var e=eo(!1);return e=Vf.bind(null,se,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=se,a=Tt();if(Ee){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Ye===null)throw Error(s(349));(Se&127)!==0||bf(n,t,l)}a.memoizedState=l;var u={value:l,getSnapshot:t};return a.queue=u,Hf(yf.bind(null,n,u,e),[e]),n.flags|=2048,_a(9,{destroy:void 0},gf.bind(null,n,u,l,t),null),l},useId:function(){var e=Tt(),t=Ye.identifierPrefix;if(Ee){var l=gl,n=bl;l=(n&~(1<<32-At(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=di++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:io,useFormState:Mf,useActionState:Mf,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=co.bind(null,se,!0,l),l.dispatch=t,[e,t]},useMemoCache:$c,useCacheRefresh:function(){return Tt().memoizedState=cp.bind(null,se)},useEffectEvent:function(e){var t=Tt(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},oo={readContext:mt,use:pi,useCallback:Gf,useContext:mt,useEffect:lo,useImperativeHandle:qf,useInsertionEffect:Df,useLayoutEffect:Rf,useMemo:Lf,useReducer:mi,useRef:Nf,useState:function(){return mi(Hl)},useDebugValue:no,useDeferredValue:function(e,t){var l=et();return Yf(l,je.memoizedState,e,t)},useTransition:function(){var e=mi(Hl)[0],t=et().memoizedState;return[typeof e=="boolean"?e:iu(e),t]},useSyncExternalStore:vf,useId:Xf,useHostTransitionStatus:io,useFormState:xf,useActionState:xf,useOptimistic:function(e,t){var l=et();return Af(l,je,e,t)},useMemoCache:$c,useCacheRefresh:Zf};oo.useEffectEvent=wf;var $f={readContext:mt,use:pi,useCallback:Gf,useContext:mt,useEffect:lo,useImperativeHandle:qf,useInsertionEffect:Df,useLayoutEffect:Rf,useMemo:Lf,useReducer:Pc,useRef:Nf,useState:function(){return Pc(Hl)},useDebugValue:no,useDeferredValue:function(e,t){var l=et();return je===null?ao(l,e,t):Yf(l,je.memoizedState,e,t)},useTransition:function(){var e=Pc(Hl)[0],t=et().memoizedState;return[typeof e=="boolean"?e:iu(e),t]},useSyncExternalStore:vf,useId:Xf,useHostTransitionStatus:io,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var l=et();return je!==null?Af(l,je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:$c,useCacheRefresh:Zf};$f.useEffectEvent=wf;function ro(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:ee({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var fo={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Wt(),a=an(n);a.payload=t,l!=null&&(a.callback=l),t=un(e,a,n),t!==null&&(Ht(t,e,n),lu(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Wt(),a=an(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=un(e,a,n),t!==null&&(Ht(t,e,n),lu(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Wt(),n=an(l);n.tag=2,t!=null&&(n.callback=t),t=un(e,n,l),t!==null&&(Ht(t,e,l),lu(t,e,l))}};function If(e,t,l,n,a,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,i):t.prototype&&t.prototype.isPureReactComponent?!Ka(l,n)||!Ka(a,u):!0}function Pf(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&fo.enqueueReplaceState(t,t.state,null)}function Zn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=ee({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function es(e){Fu(e)}function ts(e){console.error(e)}function ls(e){Fu(e)}function yi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function ns(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function so(e,t,l){return l=an(l),l.tag=3,l.payload={element:null},l.callback=function(){yi(e,t)},l}function as(e){return e=an(e),e.tag=3,e}function us(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;e.payload=function(){return a(u)},e.callback=function(){ns(t,l,n)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){ns(t,l,n),typeof a!="function"&&(dn===null?dn=new Set([this]):dn.add(this));var c=n.stack;this.componentDidCatch(n.value,{componentStack:c!==null?c:""})})}function rp(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&da(t,l,a,!0),l=Lt.current,l!==null){switch(l.tag){case 31:case 13:return Pt===null?Ui():l.alternate===null&&Ie===0&&(Ie=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ii?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),jo(e,n,a)),!1;case 22:return l.flags|=65536,n===ii?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),jo(e,n,a)),!1}throw Error(s(435,l.tag))}return jo(e,n,a),Ui(),!1}if(Ee)return t=Lt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Bc&&(e=Error(s(422),{cause:n}),$a(Jt(e,l)))):(n!==Bc&&(t=Error(s(423),{cause:n}),$a(Jt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Jt(n,l),a=so(e.stateNode,n,a),Yc(e,a),Ie!==4&&(Ie=2)),!1;var u=Error(s(520),{cause:n});if(u=Jt(u,l),vu===null?vu=[u]:vu.push(u),Ie!==4&&(Ie=2),t===null)return!0;n=Jt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=so(l.stateNode,n,e),Yc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(dn===null||!dn.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=as(a),us(a,e,l,n),Yc(l,a),!1}l=l.return}while(l!==null);return!1}var ho=Error(s(461)),it=!1;function vt(e,t,l,n){t.child=e===null?rf(t,null,l,n):Wn(t,e.child,l,n)}function is(e,t,l,n,a){l=l.render;var u=t.ref;if("ref"in n){var i={};for(var c in n)c!=="ref"&&(i[c]=n[c])}else i=n;return Ln(t),n=kc(e,t,l,i,u,a),c=Kc(),e!==null&&!it?(Jc(e,t,a),wl(e,t,a)):(Ee&&c&&Mc(t),t.flags|=1,vt(e,t,n,a),t.child)}function cs(e,t,l,n,a){if(e===null){var u=l.type;return typeof u=="function"&&!Oc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,os(e,t,u,n,a)):(e=ei(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!So(e,a)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ka,l(i,n)&&e.ref===t.ref)return wl(e,t,a)}return t.flags|=1,e=Ml(u,n),e.ref=t.ref,e.return=t,t.child=e}function os(e,t,l,n,a){if(e!==null){var u=e.memoizedProps;if(Ka(u,n)&&e.ref===t.ref)if(it=!1,t.pendingProps=n=u,So(e,a))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,wl(e,t,a)}return po(e,t,l,n,a)}function rs(e,t,l,n){var a=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,t.child=null;return fs(e,t,u,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ai(t,u!==null?u.cachePool:null),u!==null?df(t,u):Qc(),hf(t);else return n=t.lanes=536870912,fs(e,t,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(ai(t,u.cachePool),df(t,u),on(),t.memoizedState=null):(e!==null&&ai(t,null),Qc(),on());return vt(e,t,a,l),t.child}function ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fs(e,t,l,n,a){var u=jc();return u=u===null?null:{parent:at._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ai(t,null),Qc(),hf(t),e!==null&&da(e,t,n,!0),t.childLanes=a,null}function _i(e,t){return t=Ai({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ss(e,t,l){return Wn(t,e.child,null,l),e=_i(t,t.pendingProps),e.flags|=2,Yt(t),t.memoizedState=null,e}function fp(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(n.mode==="hidden")return e=_i(t,n),t.lanes=536870912,ru(null,e);if(Xc(t),(e=Qe)?(e=Ed(e,It),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pl!==null?{id:bl,overflow:gl}:null,retryLane:536870912,hydrationErrors:null},l=kr(e),l.return=t,t.child=l,pt=t,Qe=null)):e=null,e===null)throw tn(t);return t.lanes=536870912,null}return _i(t,n)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Xc(t),a)if(t.flags&256)t.flags&=-257,t=ss(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(it||da(e,t,l,!1),a=(l&e.childLanes)!==0,it||a){if(n=Ye,n!==null&&(i=ce(n,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Rn(e,i),Ht(n,e,i),ho;Ui(),t=ss(e,t,l)}else e=u.treeContext,Qe=el(i.nextSibling),pt=t,Ee=!0,en=null,It=!1,e!==null&&Fr(t,e),t=_i(t,n),t.flags|=4096;return t}return e=Ml(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Si(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function po(e,t,l,n,a){return Ln(t),l=kc(e,t,l,n,void 0,a),n=Kc(),e!==null&&!it?(Jc(e,t,a),wl(e,t,a)):(Ee&&n&&Mc(t),t.flags|=1,vt(e,t,l,a),t.child)}function ds(e,t,l,n,a,u){return Ln(t),t.updateQueue=null,l=mf(t,n,l,a),pf(e),n=Kc(),e!==null&&!it?(Jc(e,t,u),wl(e,t,u)):(Ee&&n&&Mc(t),t.flags|=1,vt(e,t,l,u),t.child)}function hs(e,t,l,n,a){if(Ln(t),t.stateNode===null){var u=oa,i=l.contextType;typeof i=="object"&&i!==null&&(u=mt(i)),u=new l(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=fo,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},Gc(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?mt(i):oa,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(ro(t,l,i,n),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&fo.enqueueReplaceState(u,u.state,null),au(t,n,u,a),nu(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var c=t.memoizedProps,d=Zn(l,c);u.props=d;var _=u.context,z=l.contextType;i=oa,typeof z=="object"&&z!==null&&(i=mt(z));var U=l.getDerivedStateFromProps;z=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||_!==i)&&Pf(t,u,n,i),nn=!1;var A=t.memoizedState;u.state=A,au(t,n,u,a),nu(),_=t.memoizedState,c||A!==_||nn?(typeof U=="function"&&(ro(t,l,U,n),_=t.memoizedState),(d=nn||If(t,l,d,n,A,_,i))?(z||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"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=_),u.props=n,u.state=_,u.context=i,n=d):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,Lc(e,t),i=t.memoizedProps,z=Zn(l,i),u.props=z,U=t.pendingProps,A=u.context,_=l.contextType,d=oa,typeof _=="object"&&_!==null&&(d=mt(_)),c=l.getDerivedStateFromProps,(_=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==U||A!==d)&&Pf(t,u,n,d),nn=!1,A=t.memoizedState,u.state=A,au(t,n,u,a),nu();var T=t.memoizedState;i!==U||A!==T||nn||e!==null&&e.dependencies!==null&&li(e.dependencies)?(typeof c=="function"&&(ro(t,l,c,n),T=t.memoizedState),(z=nn||If(t,l,z,n,A,T,d)||e!==null&&e.dependencies!==null&&li(e.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,T,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,T,d)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=T),u.props=n,u.state=T,u.context=d,n=z):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,Si(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=Wn(t,e.child,null,a),t.child=Wn(t,null,l,a)):vt(e,t,l,a),t.memoizedState=u.state,e=t.child):e=wl(e,t,a),e}function ps(e,t,l,n){return qn(),t.flags|=256,vt(e,t,l,n),t.child}var mo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vo(e){return{baseLanes:e,cachePool:lf()}}function bo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Qt),e}function ms(e,t,l){var n=t.pendingProps,a=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(a?cn(t):on(),(e=Qe)?(e=Ed(e,It),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pl!==null?{id:bl,overflow:gl}:null,retryLane:536870912,hydrationErrors:null},l=kr(e),l.return=t,t.child=l,pt=t,Qe=null)):e=null,e===null)throw tn(t);return Po(e)?t.lanes=32:t.lanes=536870912,null}var c=n.children;return n=n.fallback,a?(on(),a=t.mode,c=Ai({mode:"hidden",children:c},a),n=jn(n,a,l,null),c.return=t,n.return=t,c.sibling=n,t.child=c,n=t.child,n.memoizedState=vo(l),n.childLanes=bo(e,i,l),t.memoizedState=mo,ru(null,n)):(cn(t),go(t,c))}var d=e.memoizedState;if(d!==null&&(c=d.dehydrated,c!==null)){if(u)t.flags&256?(cn(t),t.flags&=-257,t=yo(e,t,l)):t.memoizedState!==null?(on(),t.child=e.child,t.flags|=128,t=null):(on(),c=n.fallback,a=t.mode,n=Ai({mode:"visible",children:n.children},a),c=jn(c,a,l,null),c.flags|=2,n.return=t,c.return=t,n.sibling=c,t.child=n,Wn(t,e.child,null,l),n=t.child,n.memoizedState=vo(l),n.childLanes=bo(e,i,l),t.memoizedState=mo,t=ru(null,n));else if(cn(t),Po(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var _=i.dgst;i=_,n=Error(s(419)),n.stack="",n.digest=i,$a({value:n,source:null,stack:null}),t=yo(e,t,l)}else if(it||da(e,t,l,!1),i=(l&e.childLanes)!==0,it||i){if(i=Ye,i!==null&&(n=ce(i,l),n!==0&&n!==d.retryLane))throw d.retryLane=n,Rn(e,n),Ht(i,e,n),ho;Io(c)||Ui(),t=yo(e,t,l)}else Io(c)?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Qe=el(c.nextSibling),pt=t,Ee=!0,en=null,It=!1,e!==null&&Fr(t,e),t=go(t,n.children),t.flags|=4096);return t}return a?(on(),c=n.fallback,a=t.mode,d=e.child,_=d.sibling,n=Ml(d,{mode:"hidden",children:n.children}),n.subtreeFlags=d.subtreeFlags&65011712,_!==null?c=Ml(_,c):(c=jn(c,a,l,null),c.flags|=2),c.return=t,n.return=t,n.sibling=c,t.child=n,ru(null,n),n=t.child,c=e.child.memoizedState,c===null?c=vo(l):(a=c.cachePool,a!==null?(d=at._currentValue,a=a.parent!==d?{parent:d,pool:d}:a):a=lf(),c={baseLanes:c.baseLanes|l,cachePool:a}),n.memoizedState=c,n.childLanes=bo(e,i,l),t.memoizedState=mo,ru(e.child,n)):(cn(t),l=e.child,e=l.sibling,l=Ml(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function go(e,t){return t=Ai({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ai(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function yo(e,t,l){return Wn(t,e.child,null,l),e=go(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vs(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Hc(e.return,t,l)}function _o(e,t,l,n,a,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=l,i.tailMode=a,i.treeForkCount=u)}function bs(e,t,l){var n=t.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var i=Pe.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,w(Pe,i),vt(e,t,n,l),n=Ee?Fa:0,!c&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vs(e,l,t);else if(e.tag===19)vs(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&fi(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),_o(t,!1,a,l,u,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&fi(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}_o(t,!0,l,null,u,n);break;case"together":_o(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function wl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),sn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(da(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function So(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&li(e)))}function sp(e,t,l){switch(t.tag){case 3:Ve(t,t.stateNode.containerInfo),ln(t,at,e.memoizedState.cache),qn();break;case 27:case 5:ll(t);break;case 4:Ve(t,t.stateNode.containerInfo);break;case 10:ln(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(cn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ms(e,t,l):(cn(t),e=wl(e,t,l),e!==null?e.sibling:null);cn(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(da(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return bs(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),w(Pe,Pe.current),n)break;return null;case 22:return t.lanes=0,rs(e,t,l,t.pendingProps);case 24:ln(t,at,e.memoizedState.cache)}return wl(e,t,l)}function gs(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!So(e,l)&&(t.flags&128)===0)return it=!1,sp(e,t,l);it=(e.flags&131072)!==0}else it=!1,Ee&&(t.flags&1048576)!==0&&Jr(t,Fa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Vn(t.elementType),t.type=e,typeof e=="function")Oc(e)?(n=Zn(e,n),t.tag=1,t=hs(null,t,e,n,l)):(t.tag=0,t=po(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===ue){t.tag=11,t=is(null,t,e,n,l);break e}else if(a===re){t.tag=14,t=cs(null,t,e,n,l);break e}}throw t=Zt(e)||e,Error(s(306,t,""))}}return t;case 0:return po(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Zn(n,t.pendingProps),hs(e,t,n,a,l);case 3:e:{if(Ve(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var u=t.memoizedState;a=u.element,Lc(e,t),au(t,n,null,l);var i=t.memoizedState;if(n=i.cache,ln(t,at,n),n!==u.cache&&wc(t,[at],l,!0),nu(),n=i.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ps(e,t,n,l);break e}else if(n!==a){a=Jt(Error(s(424)),t),$a(a),t=ps(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=el(e.firstChild),pt=t,Ee=!0,en=null,It=!0,l=rf(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(qn(),n===a){t=wl(e,t,l);break e}vt(e,t,n,l)}t=t.child}return t;case 26:return Si(e,t),e===null?(l=xd(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ee||(l=t.type,e=t.pendingProps,n=qi(de.current).createElement(l),n[lt]=t,n[ht]=e,bt(n,l,e),nt(n),t.stateNode=n):t.memoizedState=xd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ll(t),e===null&&Ee&&(n=t.stateNode=Cd(t.type,t.pendingProps,de.current),pt=t,It=!0,a=Qe,vn(t.type)?(er=a,Qe=el(n.firstChild)):Qe=a),vt(e,t,t.pendingProps.children,l),Si(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((a=n=Qe)&&(n=Yp(n,t.type,t.pendingProps,It),n!==null?(t.stateNode=n,pt=t,Qe=el(n.firstChild),It=!1,a=!0):a=!1),a||tn(t)),ll(t),a=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,n=u.children,Jo(a,u)?n=null:i!==null&&Jo(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=kc(e,t,lp,null,null,l),Tu._currentValue=a),Si(e,t),vt(e,t,n,l),t.child;case 6:return e===null&&Ee&&((e=l=Qe)&&(l=Vp(l,t.pendingProps,It),l!==null?(t.stateNode=l,pt=t,Qe=null,e=!0):e=!1),e||tn(t)),null;case 13:return ms(e,t,l);case 4:return Ve(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wn(t,null,n,l):vt(e,t,n,l),t.child;case 11:return is(e,t,t.type,t.pendingProps,l);case 7:return vt(e,t,t.pendingProps,l),t.child;case 8:return vt(e,t,t.pendingProps.children,l),t.child;case 12:return vt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,ln(t,t.type,n.value),vt(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Ln(t),a=mt(a),n=n(a),t.flags|=1,vt(e,t,n,l),t.child;case 14:return cs(e,t,t.type,t.pendingProps,l);case 15:return os(e,t,t.type,t.pendingProps,l);case 19:return bs(e,t,l);case 31:return fp(e,t,l);case 22:return rs(e,t,l,t.pendingProps);case 24:return Ln(t),n=mt(at),e===null?(a=jc(),a===null&&(a=Ye,u=Dc(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),t.memoizedState={parent:n,cache:a},Gc(t),ln(t,at,a)):((e.lanes&l)!==0&&(Lc(e,t),au(t,null,null,l),nu()),a=e.memoizedState,u=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ln(t,at,n)):(n=u.cache,ln(t,at,n),n!==a.cache&&wc(t,[at],l,!0))),vt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Dl(e){e.flags|=4}function Ao(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Xs())e.flags|=8192;else throw Qn=ii,qc}else e.flags&=-16777217}function ys(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wd(t))if(Xs())e.flags|=8192;else throw Qn=ii,qc}function Ei(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ju():536870912,e.lanes|=t,Ta|=t)}function fu(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function dp(e,t,l){var n=t.pendingProps;switch(xc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ul(at),Xe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(sa(t)?Dl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uc())),We(t),null;case 26:var a=t.type,u=t.memoizedState;return e===null?(Dl(t),u!==null?(We(t),ys(t,u)):(We(t),Ao(t,a,null,n,l))):u?u!==e.memoizedState?(Dl(t),We(t),ys(t,u)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Dl(t),We(t),Ao(t,a,e,n,l)),null;case 27:if(fl(t),l=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Dl(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return We(t),null}e=X.current,sa(t)?$r(t):(e=Cd(a,n,l),t.stateNode=e,Dl(t))}return We(t),null;case 5:if(fl(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Dl(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return We(t),null}if(u=X.current,sa(t))$r(t);else{var i=qi(de.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?i.createElement(a,{is:n.is}):i.createElement(a)}}u[lt]=t,u[ht]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(bt(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Dl(t)}}return We(t),Ao(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Dl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=de.current,sa(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=pt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[lt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||md(e.nodeValue,l)),e||tn(t,!0)}else e=qi(e).createTextNode(n),e[lt]=t,t.stateNode=e}return We(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=sa(t),l!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[lt]=t}else qn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else l=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Yt(t),t):(Yt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return We(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=sa(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(s(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[lt]=t}else qn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),a=!1}else a=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Yt(t),t):(Yt(t),null)}return Yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ei(t,t.updateQueue),We(t),null);case 4:return Xe(),e===null&&Wo(t.stateNode.containerInfo),We(t),null;case 10:return Ul(t.type),We(t),null;case 19:if(B(Pe),n=t.memoizedState,n===null)return We(t),null;if(a=(t.flags&128)!==0,u=n.rendering,u===null)if(a)fu(n,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=fi(e),u!==null){for(t.flags|=128,fu(n,!1),e=u.updateQueue,t.updateQueue=e,Ei(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Zr(l,e),l=l.sibling;return w(Pe,Pe.current&1|2),Ee&&xl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&St()>Mi&&(t.flags|=128,a=!0,fu(n,!1),t.lanes=4194304)}else{if(!a)if(e=fi(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ei(t,e),fu(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!Ee)return We(t),null}else 2*St()-n.renderingStartTime>Mi&&l!==536870912&&(t.flags|=128,a=!0,fu(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=St(),e.sibling=null,l=Pe.current,w(Pe,a?l&1|2:l&1),Ee&&xl(t,n.treeForkCount),e):(We(t),null);case 22:case 23:return Yt(t),Wc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),l=t.updateQueue,l!==null&&Ei(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&B(Yn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ul(at),We(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function hp(e,t){switch(xc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(at),Xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fl(t),null;case 31:if(t.memoizedState!==null){if(Yt(t),t.alternate===null)throw Error(s(340));qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Pe),null;case 4:return Xe(),null;case 10:return Ul(t.type),null;case 22:case 23:return Yt(t),Wc(),e!==null&&B(Yn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ul(at),null;case 25:return null;default:return null}}function _s(e,t){switch(xc(t),t.tag){case 3:Ul(at),Xe();break;case 26:case 27:case 5:fl(t);break;case 4:Xe();break;case 31:t.memoizedState!==null&&Yt(t);break;case 13:Yt(t);break;case 19:B(Pe);break;case 10:Ul(t.type);break;case 22:case 23:Yt(t),Wc(),e!==null&&B(Yn);break;case 24:Ul(at)}}function su(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var u=l.create,i=l.inst;n=u(),i.destroy=n}l=l.next}while(l!==a)}}catch(c){we(t,t.return,c)}}function rn(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){var i=n.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=t;var d=l,_=c;try{_()}catch(z){we(a,d,z)}}}n=n.next}while(n!==u)}}catch(z){we(t,t.return,z)}}function Ss(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{sf(t,l)}catch(n){we(e,e.return,n)}}}function As(e,t,l){l.props=Zn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){we(e,t,n)}}function du(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){we(e,t,a)}}function yl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){we(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){we(e,t,a)}else l.current=null}function Es(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){we(e,e.return,a)}}function Eo(e,t,l){try{var n=e.stateNode;Dp(n,e.type,l,t),n[ht]=t}catch(a){we(e,e.return,a)}}function Ts(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&vn(e.type)||e.tag===4}function To(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ts(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&vn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oo(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=F));else if(n!==4&&(n===27&&vn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Oo(e,t,l),e=e.sibling;e!==null;)Oo(e,t,l),e=e.sibling}function Ti(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&vn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ti(e,t,l),e=e.sibling;e!==null;)Ti(e,t,l),e=e.sibling}function Os(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);bt(t,n,l),t[lt]=e,t[ht]=l}catch(u){we(e,e.return,u)}}var Rl=!1,ct=!1,Co=!1,Cs=typeof WeakSet=="function"?WeakSet:Set,ft=null;function pp(e,t){if(e=e.containerInfo,ko=Xi,e=jr(e),gc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var i=0,c=-1,d=-1,_=0,z=0,U=e,A=null;t:for(;;){for(var T;U!==l||a!==0&&U.nodeType!==3||(c=i+a),U!==u||n!==0&&U.nodeType!==3||(d=i+n),U.nodeType===3&&(i+=U.nodeValue.length),(T=U.firstChild)!==null;)A=U,U=T;for(;;){if(U===e)break t;if(A===l&&++_===a&&(c=i),A===u&&++z===n&&(d=i),(T=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=T}l=c===-1||d===-1?null:{start:c,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ko={focusedElem:e,selectionRange:l},Xi=!1,ft=t;ft!==null;)if(t=ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ft=e;else for(;ft!==null;){switch(t=ft,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var k=Zn(l.type,a);e=n.getSnapshotBeforeUpdate(k,u),n.__reactInternalSnapshotBeforeUpdate=e}catch(le){we(l,l.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)$o(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$o(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ft=e;break}ft=t.return}}function zs(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:ql(e,l),n&4&&su(5,l);break;case 1:if(ql(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){we(l,l.return,i)}else{var a=Zn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){we(l,l.return,i)}}n&64&&Ss(l),n&512&&du(l,l.return);break;case 3:if(ql(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{sf(e,t)}catch(i){we(l,l.return,i)}}break;case 27:t===null&&n&4&&Os(l);case 26:case 5:ql(e,l),t===null&&n&4&&Es(l),n&512&&du(l,l.return);break;case 12:ql(e,l);break;case 31:ql(e,l),n&4&&Bs(e,l);break;case 13:ql(e,l),n&4&&Us(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Ep.bind(null,l),Qp(e,l))));break;case 22:if(n=l.memoizedState!==null||Rl,!n){t=t!==null&&t.memoizedState!==null||ct,a=Rl;var u=ct;Rl=n,(ct=t)&&!u?Gl(e,l,(l.subtreeFlags&8772)!==0):ql(e,l),Rl=a,ct=u}break;case 30:break;default:ql(e,l)}}function Ms(e){var t=e.alternate;t!==null&&(e.alternate=null,Ms(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&La(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,xt=!1;function jl(e,t,l){for(l=l.child;l!==null;)xs(e,t,l),l=l.sibling}function xs(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Cn,l)}catch{}switch(l.tag){case 26:ct||yl(l,t),jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ct||yl(l,t);var n=ke,a=xt;vn(l.type)&&(ke=l.stateNode,xt=!1),jl(e,t,l),Su(l.stateNode),ke=n,xt=a;break;case 5:ct||yl(l,t);case 6:if(n=ke,a=xt,ke=null,jl(e,t,l),ke=n,xt=a,ke!==null)if(xt)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(l.stateNode)}catch(u){we(l,t,u)}else try{ke.removeChild(l.stateNode)}catch(u){we(l,t,u)}break;case 18:ke!==null&&(xt?(e=ke,Sd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Na(e)):Sd(ke,l.stateNode));break;case 4:n=ke,a=xt,ke=l.stateNode.containerInfo,xt=!0,jl(e,t,l),ke=n,xt=a;break;case 0:case 11:case 14:case 15:rn(2,l,t),ct||rn(4,l,t),jl(e,t,l);break;case 1:ct||(yl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&As(l,t,n)),jl(e,t,l);break;case 21:jl(e,t,l);break;case 22:ct=(n=ct)||l.memoizedState!==null,jl(e,t,l),ct=n;break;default:jl(e,t,l)}}function Bs(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Na(e)}catch(l){we(t,t.return,l)}}}function Us(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Na(e)}catch(l){we(t,t.return,l)}}function mp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Cs),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Cs),t;default:throw Error(s(435,e.tag))}}function Oi(e,t){var l=mp(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Tp.bind(null,e,n);n.then(a,a)}})}function Bt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 27:if(vn(c.type)){ke=c.stateNode,xt=!1;break e}break;case 5:ke=c.stateNode,xt=!1;break e;case 3:case 4:ke=c.stateNode.containerInfo,xt=!0;break e}c=c.return}if(ke===null)throw Error(s(160));xs(u,i,a),ke=null,xt=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ns(t,e),t=t.sibling}var cl=null;function Ns(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(t,e),Ut(e),n&4&&(rn(3,e,e.return),su(3,e),rn(5,e,e.return));break;case 1:Bt(t,e),Ut(e),n&512&&(ct||l===null||yl(l,l.return)),n&64&&Rl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=cl;if(Bt(t,e),Ut(e),n&512&&(ct||l===null||yl(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Zl]||u[lt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),bt(u,n,l),u[lt]=e,nt(u),n=u;break e;case"link":var i=Nd("link","href",a).get(n+(l.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(c,1);break t}}u=a.createElement(n),bt(u,n,l),a.head.appendChild(u);break;case"meta":if(i=Nd("meta","content",a).get(n+(l.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(c,1);break t}}u=a.createElement(n),bt(u,n,l),a.head.appendChild(u);break;default:throw Error(s(468,n))}u[lt]=e,nt(u),n=u}e.stateNode=n}else Hd(a,e.type,e.stateNode);else e.stateNode=Ud(a,n,e.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Hd(a,e.type,e.stateNode):Ud(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Eo(e,e.memoizedProps,l.memoizedProps)}break;case 27:Bt(t,e),Ut(e),n&512&&(ct||l===null||yl(l,l.return)),l!==null&&n&4&&Eo(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Bt(t,e),Ut(e),n&512&&(ct||l===null||yl(l,l.return)),e.flags&32){a=e.stateNode;try{Y(a,"")}catch(k){we(e,e.return,k)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Eo(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Co=!0);break;case 6:if(Bt(t,e),Ut(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(k){we(e,e.return,k)}}break;case 3:if(Yi=null,a=cl,cl=Gi(t.containerInfo),Bt(t,e),cl=a,Ut(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Na(t.containerInfo)}catch(k){we(e,e.return,k)}Co&&(Co=!1,Hs(e));break;case 4:n=cl,cl=Gi(e.stateNode.containerInfo),Bt(t,e),Ut(e),cl=n;break;case 12:Bt(t,e),Ut(e);break;case 31:Bt(t,e),Ut(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oi(e,n)));break;case 13:Bt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(zi=St()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oi(e,n)));break;case 22:a=e.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,_=Rl,z=ct;if(Rl=_||a,ct=z||d,Bt(t,e),ct=z,Rl=_,Ut(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||d||Rl||ct||kn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){d=l=t;try{if(u=d.stateNode,a)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=d.stateNode;var U=d.memoizedProps.style,A=U!=null&&U.hasOwnProperty("display")?U.display:null;c.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(k){we(d,d.return,k)}}}else if(t.tag===6){if(l===null){d=t;try{d.stateNode.nodeValue=a?"":d.memoizedProps}catch(k){we(d,d.return,k)}}}else if(t.tag===18){if(l===null){d=t;try{var T=d.stateNode;a?Ad(T,!0):Ad(d.stateNode,!1)}catch(k){we(d,d.return,k)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Oi(e,l))));break;case 19:Bt(t,e),Ut(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oi(e,n)));break;case 30:break;case 21:break;default:Bt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Ts(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var a=l.stateNode,u=To(e);Ti(e,u,a);break;case 5:var i=l.stateNode;l.flags&32&&(Y(i,""),l.flags&=-33);var c=To(e);Ti(e,c,i);break;case 3:case 4:var d=l.stateNode.containerInfo,_=To(e);Oo(e,_,d);break;default:throw Error(s(161))}}catch(z){we(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hs(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hs(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ql(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zs(e,t.alternate,t),t=t.sibling}function kn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rn(4,t,t.return),kn(t);break;case 1:yl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&As(t,t.return,l),kn(t);break;case 27:Su(t.stateNode);case 26:case 5:yl(t,t.return),kn(t);break;case 22:t.memoizedState===null&&kn(t);break;case 30:kn(t);break;default:kn(t)}e=e.sibling}}function Gl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:Gl(a,u,l),su(4,u);break;case 1:if(Gl(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(_){we(n,n.return,_)}if(n=u,a=n.updateQueue,a!==null){var c=n.stateNode;try{var d=a.shared.hiddenCallbacks;if(d!==null)for(a.shared.hiddenCallbacks=null,a=0;a<d.length;a++)ff(d[a],c)}catch(_){we(n,n.return,_)}}l&&i&64&&Ss(u),du(u,u.return);break;case 27:Os(u);case 26:case 5:Gl(a,u,l),l&&n===null&&i&4&&Es(u),du(u,u.return);break;case 12:Gl(a,u,l);break;case 31:Gl(a,u,l),l&&i&4&&Bs(a,u);break;case 13:Gl(a,u,l),l&&i&4&&Us(a,u);break;case 22:u.memoizedState===null&&Gl(a,u,l),du(u,u.return);break;case 30:break;default:Gl(a,u,l)}t=t.sibling}}function zo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ia(l))}function Mo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e))}function ol(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ws(e,t,l,n),t=t.sibling}function ws(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ol(e,t,l,n),a&2048&&su(9,t);break;case 1:ol(e,t,l,n);break;case 3:ol(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e)));break;case 12:if(a&2048){ol(e,t,l,n),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){we(t,t.return,d)}}else ol(e,t,l,n);break;case 31:ol(e,t,l,n);break;case 13:ol(e,t,l,n);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?ol(e,t,l,n):hu(e,t):u._visibility&2?ol(e,t,l,n):(u._visibility|=2,Sa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&zo(i,t);break;case 24:ol(e,t,l,n),a&2048&&Mo(t.alternate,t);break;default:ol(e,t,l,n)}}function Sa(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,c=l,d=n,_=i.flags;switch(i.tag){case 0:case 11:case 15:Sa(u,i,c,d,a),su(8,i);break;case 23:break;case 22:var z=i.stateNode;i.memoizedState!==null?z._visibility&2?Sa(u,i,c,d,a):hu(u,i):(z._visibility|=2,Sa(u,i,c,d,a)),a&&_&2048&&zo(i.alternate,i);break;case 24:Sa(u,i,c,d,a),a&&_&2048&&Mo(i.alternate,i);break;default:Sa(u,i,c,d,a)}t=t.sibling}}function hu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:hu(l,n),a&2048&&zo(n.alternate,n);break;case 24:hu(l,n),a&2048&&Mo(n.alternate,n);break;default:hu(l,n)}t=t.sibling}}var pu=8192;function Aa(e,t,l){if(e.subtreeFlags&pu)for(e=e.child;e!==null;)Ds(e,t,l),e=e.sibling}function Ds(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&pu&&e.memoizedState!==null&&tm(l,cl,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var n=cl;cl=Gi(e.stateNode.containerInfo),Aa(e,t,l),cl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=pu,pu=16777216,Aa(e,t,l),pu=n):Aa(e,t,l));break;default:Aa(e,t,l)}}function Rs(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function mu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];ft=n,qs(n,e)}Rs(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)js(e),e=e.sibling}function js(e){switch(e.tag){case 0:case 11:case 15:mu(e),e.flags&2048&&rn(9,e,e.return);break;case 3:mu(e);break;case 12:mu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ci(e)):mu(e);break;default:mu(e)}}function Ci(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];ft=n,qs(n,e)}Rs(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rn(8,t,t.return),Ci(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ci(t));break;default:Ci(t)}e=e.sibling}}function qs(e,t){for(;ft!==null;){var l=ft;switch(l.tag){case 0:case 11:case 15:rn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ia(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,ft=n;else e:for(l=e;ft!==null;){n=ft;var a=n.sibling,u=n.return;if(Ms(n),n===l){ft=null;break e}if(a!==null){a.return=u,ft=a;break e}ft=u}}}var vp={getCacheForType:function(e){var t=mt(at),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return mt(at).controller.signal}},bp=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ye=null,ge=null,Se=0,He=0,Vt=null,fn=!1,Ea=!1,xo=!1,Ll=0,Ie=0,sn=0,Kn=0,Bo=0,Qt=0,Ta=0,vu=null,Nt=null,Uo=!1,zi=0,Gs=0,Mi=1/0,xi=null,dn=null,rt=0,hn=null,Oa=null,Yl=0,No=0,Ho=null,Ls=null,bu=0,wo=null;function Wt(){return(Ne&2)!==0&&Se!==0?Se&-Se:M.T!==null?Lo():Et()}function Ys(){if(Qt===0)if((Se&536870912)===0||Ee){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Qt=e}else Qt=536870912;return e=Lt.current,e!==null&&(e.flags|=32),Qt}function Ht(e,t,l){(e===Ye&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Ca(e,0),pn(e,Se,Qt,!1)),El(e,l),((Ne&2)===0||e!==Ye)&&(e===Ye&&((Ne&2)===0&&(Kn|=l),Ie===4&&pn(e,Se,Qt,!1)),_l(e))}function Vs(e,t,l){if((Ne&6)!==0)throw Error(s(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||nl(e,t),a=n?_p(e,t):Ro(e,t,!0),u=n;do{if(a===0){Ea&&!n&&pn(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!gp(l)){a=Ro(e,t,!1),u=!1;continue}if(a===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var c=e;a=vu;var d=c.current.memoizedState.isDehydrated;if(d&&(Ca(c,i).flags|=256),i=Ro(c,i,!1),i!==2){if(xo&&!d){c.errorRecoveryDisabledLanes|=u,Kn|=u,a=4;break e}u=Nt,Nt=a,u!==null&&(Nt===null?Nt=u:Nt.push.apply(Nt,u))}a=i}if(u=!1,a!==2)continue}}if(a===1){Ca(e,0),pn(e,t,0,!0);break}e:{switch(n=e,u=a,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:pn(n,t,Qt,!fn);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(a=zi+300-St(),10<a)){if(pn(n,t,Qt,!fn),Wl(n,0,!0)!==0)break e;Yl=t,n.timeoutHandle=yd(Qs.bind(null,n,l,Nt,xi,Uo,t,Qt,Kn,Ta,fn,u,"Throttled",-0,0),a);break e}Qs(n,l,Nt,xi,Uo,t,Qt,Kn,Ta,fn,u,null,-0,0)}}break}while(!0);_l(e)}function Qs(e,t,l,n,a,u,i,c,d,_,z,U,A,T){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:F},Ds(t,u,U);var k=(u&62914560)===u?zi-St():(u&4194048)===u?Gs-St():0;if(k=lm(U,k),k!==null){Yl=u,e.cancelPendingCommit=k($s.bind(null,e,t,u,l,n,a,i,c,d,z,U,null,A,T)),pn(e,u,i,!_);return}}$s(e,t,u,l,n,a,i,c,d)}function gp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!qt(u(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pn(e,t,l,n){t&=~Bo,t&=~Kn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var u=31-At(a),i=1<<u;n[u]=-1,a&=~i}l!==0&&qu(e,l,t)}function Bi(){return(Ne&6)===0?(gu(0),!1):!0}function Do(){if(ge!==null){if(He===0)var e=ge.return;else e=ge,Bl=Gn=null,Fc(e),va=null,eu=0,e=ge;for(;e!==null;)_s(e.alternate,e),e=e.return;ge=null}}function Ca(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Yl=0,Do(),Ye=e,ge=l=Ml(e.current,null),Se=t,He=0,Vt=null,fn=!1,Ea=nl(e,t),xo=!1,Ta=Qt=Bo=Kn=sn=Ie=0,Nt=vu=null,Uo=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-At(n),u=1<<a;t|=e[a],n&=~u}return Ll=t,$u(),l}function Ws(e,t){se=null,M.H=ou,t===ma||t===ui?(t=uf(),He=3):t===qc?(t=uf(),He=4):He=t===ho?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Vt=t,ge===null&&(Ie=1,yi(e,Jt(t,e.current)))}function Xs(){var e=Lt.current;return e===null?!0:(Se&4194048)===Se?Pt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Pt:!1}function Zs(){var e=M.H;return M.H=ou,e===null?ou:e}function ks(){var e=M.A;return M.A=vp,e}function Ui(){Ie=4,fn||(Se&4194048)!==Se&&Lt.current!==null||(Ea=!0),(sn&134217727)===0&&(Kn&134217727)===0||Ye===null||pn(Ye,Se,Qt,!1)}function Ro(e,t,l){var n=Ne;Ne|=2;var a=Zs(),u=ks();(Ye!==e||Se!==t)&&(xi=null,Ca(e,t)),t=!1;var i=Ie;e:do try{if(He!==0&&ge!==null){var c=ge,d=Vt;switch(He){case 8:Do(),i=6;break e;case 3:case 2:case 9:case 6:Lt.current===null&&(t=!0);var _=He;if(He=0,Vt=null,za(e,c,d,_),l&&Ea){i=0;break e}break;default:_=He,He=0,Vt=null,za(e,c,d,_)}}yp(),i=Ie;break}catch(z){Ws(e,z)}while(!0);return t&&e.shellSuspendCounter++,Bl=Gn=null,Ne=n,M.H=a,M.A=u,ge===null&&(Ye=null,Se=0,$u()),i}function yp(){for(;ge!==null;)Ks(ge)}function _p(e,t){var l=Ne;Ne|=2;var n=Zs(),a=ks();Ye!==e||Se!==t?(xi=null,Mi=St()+500,Ca(e,t)):Ea=nl(e,t);e:do try{if(He!==0&&ge!==null){t=ge;var u=Vt;t:switch(He){case 1:He=0,Vt=null,za(e,t,u,1);break;case 2:case 9:if(nf(u)){He=0,Vt=null,Js(t);break}t=function(){He!==2&&He!==9||Ye!==e||(He=7),_l(e)},u.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:nf(u)?(He=0,Vt=null,Js(t)):(He=0,Vt=null,za(e,t,u,7));break;case 5:var i=null;switch(ge.tag){case 26:i=ge.memoizedState;case 5:case 27:var c=ge;if(i?wd(i):c.stateNode.complete){He=0,Vt=null;var d=c.sibling;if(d!==null)ge=d;else{var _=c.return;_!==null?(ge=_,Ni(_)):ge=null}break t}}He=0,Vt=null,za(e,t,u,5);break;case 6:He=0,Vt=null,za(e,t,u,6);break;case 8:Do(),Ie=6;break e;default:throw Error(s(462))}}Sp();break}catch(z){Ws(e,z)}while(!0);return Bl=Gn=null,M.H=n,M.A=a,Ne=l,ge!==null?0:(Ye=null,Se=0,$u(),Ie)}function Sp(){for(;ge!==null&&!nc();)Ks(ge)}function Ks(e){var t=gs(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,t===null?Ni(e):ge=t}function Js(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ds(l,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=ds(l,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Fc(t);default:_s(l,t),t=ge=Zr(t,Ll),t=gs(l,t,Ll)}e.memoizedProps=e.pendingProps,t===null?Ni(e):ge=t}function za(e,t,l,n){Bl=Gn=null,Fc(t),va=null,eu=0;var a=t.return;try{if(rp(e,a,t,l,Se)){Ie=1,yi(e,Jt(l,e.current)),ge=null;return}}catch(u){if(a!==null)throw ge=a,u;Ie=1,yi(e,Jt(l,e.current)),ge=null;return}t.flags&32768?(Ee||n===1?e=!0:Ea||(Se&536870912)!==0?e=!1:(fn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Lt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Fs(t,e)):Ni(t)}function Ni(e){var t=e;do{if((t.flags&32768)!==0){Fs(t,fn);return}e=t.return;var l=dp(t.alternate,t,Ll);if(l!==null){ge=l;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ie===0&&(Ie=5)}function Fs(e,t){do{var l=hp(e.alternate,e);if(l!==null){l.flags&=32767,ge=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=l}while(e!==null);Ie=6,ge=null}function $s(e,t,l,n,a,u,i,c,d){e.cancelPendingCommit=null;do Hi();while(rt!==0);if((Ne&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Ec,Xl(e,l,u,i,c,d),e===Ye&&(ge=Ye=null,Se=0),Oa=t,hn=e,Yl=l,No=u,Ho=a,Ls=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Op(jt,function(){return ld(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null,a=R.p,R.p=2,i=Ne,Ne|=4;try{pp(e,t,l)}finally{Ne=i,R.p=a,M.T=n}}rt=1,Is(),Ps(),ed()}}function Is(){if(rt===1){rt=0;var e=hn,t=Oa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var n=R.p;R.p=2;var a=Ne;Ne|=4;try{Ns(t,e);var u=Ko,i=jr(e.containerInfo),c=u.focusedElem,d=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&Rr(c.ownerDocument.documentElement,c)){if(d!==null&&gc(c)){var _=d.start,z=d.end;if(z===void 0&&(z=_),"selectionStart"in c)c.selectionStart=_,c.selectionEnd=Math.min(z,c.value.length);else{var U=c.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var T=A.getSelection(),k=c.textContent.length,le=Math.min(d.start,k),Ge=d.end===void 0?le:Math.min(d.end,k);!T.extend&&le>Ge&&(i=Ge,Ge=le,le=i);var g=Dr(c,le),p=Dr(c,Ge);if(g&&p&&(T.rangeCount!==1||T.anchorNode!==g.node||T.anchorOffset!==g.offset||T.focusNode!==p.node||T.focusOffset!==p.offset)){var y=U.createRange();y.setStart(g.node,g.offset),T.removeAllRanges(),le>Ge?(T.addRange(y),T.extend(p.node,p.offset)):(y.setEnd(p.node,p.offset),T.addRange(y))}}}}for(U=[],T=c;T=T.parentNode;)T.nodeType===1&&U.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<U.length;c++){var x=U[c];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Xi=!!ko,Ko=ko=null}finally{Ne=a,R.p=n,M.T=l}}e.current=t,rt=2}}function Ps(){if(rt===2){rt=0;var e=hn,t=Oa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var n=R.p;R.p=2;var a=Ne;Ne|=4;try{zs(e,t.alternate,t)}finally{Ne=a,R.p=n,M.T=l}}rt=3}}function ed(){if(rt===4||rt===3){rt=0,ac();var e=hn,t=Oa,l=Yl,n=Ls;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,Oa=hn=null,td(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(dn=null),Ga(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Cn,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=M.T,a=R.p,R.p=2,M.T=null;try{for(var u=e.onRecoverableError,i=0;i<n.length;i++){var c=n[i];u(c.value,{componentStack:c.stack})}}finally{M.T=t,R.p=a}}(Yl&3)!==0&&Hi(),_l(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===wo?bu++:(bu=0,wo=e):bu=0,gu(0)}}function td(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ia(t)))}function Hi(){return Is(),Ps(),ed(),ld()}function ld(){if(rt!==5)return!1;var e=hn,t=No;No=0;var l=Ga(Yl),n=M.T,a=R.p;try{R.p=32>l?32:l,M.T=null,l=Ho,Ho=null;var u=hn,i=Yl;if(rt=0,Oa=hn=null,Yl=0,(Ne&6)!==0)throw Error(s(331));var c=Ne;if(Ne|=4,js(u.current),ws(u,u.current,i,l),Ne=c,gu(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Cn,u)}catch{}return!0}finally{R.p=a,M.T=n,td(e,t)}}function nd(e,t,l){t=Jt(l,t),t=so(e.stateNode,t,2),e=un(e,t,2),e!==null&&(El(e,2),_l(e))}function we(e,t,l){if(e.tag===3)nd(e,e,l);else for(;t!==null;){if(t.tag===3){nd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(dn===null||!dn.has(n))){e=Jt(l,e),l=as(2),n=un(t,l,2),n!==null&&(us(l,n,t,e),El(n,2),_l(n));break}}t=t.return}}function jo(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new bp;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(xo=!0,a.add(l),e=Ap.bind(null,e,t,l),t.then(e,e))}function Ap(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ye===e&&(Se&l)===l&&(Ie===4||Ie===3&&(Se&62914560)===Se&&300>St()-zi?(Ne&2)===0&&Ca(e,0):Bo|=l,Ta===Se&&(Ta=0)),_l(e)}function ad(e,t){t===0&&(t=ju()),e=Rn(e,t),e!==null&&(El(e,t),_l(e))}function Ep(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),ad(e,l)}function Tp(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),ad(e,l)}function Op(e,t){return Tn(e,t)}var wi=null,Ma=null,qo=!1,Di=!1,Go=!1,mn=0;function _l(e){e!==Ma&&e.next===null&&(Ma===null?wi=Ma=e:Ma=Ma.next=e),Di=!0,qo||(qo=!0,zp())}function gu(e,t){if(!Go&&Di){Go=!0;do for(var l=!1,n=wi;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var i=n.suspendedLanes,c=n.pingedLanes;u=(1<<31-At(42|e)+1)-1,u&=a&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,od(n,u))}else u=Se,u=Wl(n,n===Ye?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||nl(n,u)||(l=!0,od(n,u));n=n.next}while(l);Go=!1}}function Cp(){ud()}function ud(){Di=qo=!1;var e=0;mn!==0&&jp()&&(e=mn);for(var t=St(),l=null,n=wi;n!==null;){var a=n.next,u=id(n,t);u===0?(n.next=null,l===null?wi=a:l.next=a,a===null&&(Ma=l)):(l=n,(e!==0||(u&3)!==0)&&(Di=!0)),n=a}rt!==0&&rt!==5||gu(e),mn!==0&&(mn=0)}function id(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-At(u),c=1<<i,d=a[i];d===-1?((c&l)===0||(c&n)!==0)&&(a[i]=Mn(c,t)):d<=t&&(e.expiredLanes|=c),u&=~c}if(t=Ye,l=Se,l=Wl(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Ra(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||nl(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Ra(n),Ga(l)){case 2:case 8:l=wu;break;case 32:l=jt;break;case 268435456:l=Du;break;default:l=jt}return n=cd.bind(null,e),l=Tn(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Ra(n),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hi()&&e.callbackNode!==l)return null;var n=Se;return n=Wl(e,e===Ye?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Vs(e,n,t),id(e,St()),e.callbackNode!=null&&e.callbackNode===l?cd.bind(null,e):null)}function od(e,t){if(Hi())return null;Vs(e,t,!0)}function zp(){Gp(function(){(Ne&6)!==0?Tn(Hu,Cp):ud()})}function Lo(){if(mn===0){var e=ha;e===0&&(e=Ql,Ql<<=1,(Ql&261888)===0&&(Ql=256)),mn=e}return mn}function rd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Q(""+e)}function fd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Mp(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var u=rd((a[ht]||null).action),i=n.submitter;i&&(t=(t=i[ht]||null)?rd(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var c=new ku("action","action",null,n,a);e.push({event:c,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(mn!==0){var d=i?fd(a,i):new FormData(a);uo(l,{pending:!0,data:d,method:a.method,action:u},null,d)}}else typeof u=="function"&&(c.preventDefault(),d=i?fd(a,i):new FormData(a),uo(l,{pending:!0,data:d,method:a.method,action:u},u,d))},currentTarget:a}]})}}for(var Yo=0;Yo<Ac.length;Yo++){var Vo=Ac[Yo],xp=Vo.toLowerCase(),Bp=Vo[0].toUpperCase()+Vo.slice(1);il(xp,"on"+Bp)}il(Lr,"onAnimationEnd"),il(Yr,"onAnimationIteration"),il(Vr,"onAnimationStart"),il("dblclick","onDoubleClick"),il("focusin","onFocus"),il("focusout","onBlur"),il(Zh,"onTransitionRun"),il(kh,"onTransitionStart"),il(Kh,"onTransitionCancel"),il(Qr,"onTransitionEnd"),yt("onMouseEnter",["mouseout","mouseover"]),yt("onMouseLeave",["mouseout","mouseover"]),yt("onPointerEnter",["pointerout","pointerover"]),yt("onPointerLeave",["pointerout","pointerover"]),Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yu="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(" "),Up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yu));function sd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var i=n.length-1;0<=i;i--){var c=n[i],d=c.instance,_=c.currentTarget;if(c=c.listener,d!==u&&a.isPropagationStopped())break e;u=c,a.currentTarget=_;try{u(a)}catch(z){Fu(z)}a.currentTarget=null,u=d}else for(i=0;i<n.length;i++){if(c=n[i],d=c.instance,_=c.currentTarget,c=c.listener,d!==u&&a.isPropagationStopped())break e;u=c,a.currentTarget=_;try{u(a)}catch(z){Fu(z)}a.currentTarget=null,u=d}}}}function ye(e,t){var l=t[ta];l===void 0&&(l=t[ta]=new Set);var n=e+"__bubble";l.has(n)||(dd(t,e,2,!1),l.add(n))}function Qo(e,t,l){var n=0;t&&(n|=4),dd(l,e,n,t)}var Ri="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[Ri]){e[Ri]=!0,Vu.forEach(function(l){l!=="selectionchange"&&(Up.has(l)||Qo(l,!1,e),Qo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ri]||(t[Ri]=!0,Qo("selectionchange",!1,t))}}function dd(e,t,l,n){switch(Yd(t)){case 2:var a=um;break;case 8:a=im;break;default:a=ur}l=a.bind(null,t,l,e),a=void 0,!Bn||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Xo(e,t,l,n,a){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var c=n.stateNode.containerInfo;if(c===a)break;if(i===4)for(i=n.return;i!==null;){var d=i.tag;if((d===3||d===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;c!==null;){if(i=kl(c),i===null)return;if(d=i.tag,d===5||d===6||d===26||d===27){n=u=i;continue e}c=c.parentNode}}n=n.return}Va(function(){var _=u,z=K(l),U=[];e:{var A=Wr.get(e);if(A!==void 0){var T=ku,k=e;switch(e){case"keypress":if(Nn(l)===0)break e;case"keydown":case"keyup":T=Th;break;case"focusin":k="focus",T=hc;break;case"focusout":k="blur",T=hc;break;case"beforeblur":case"afterblur":T=hc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=yr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=dh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=zh;break;case Lr:case Yr:case Vr:T=mh;break;case Qr:T=xh;break;case"scroll":case"scrollend":T=fh;break;case"wheel":T=Uh;break;case"copy":case"cut":case"paste":T=bh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Sr;break;case"toggle":case"beforetoggle":T=Hh}var le=(t&4)!==0,Ge=!le&&(e==="scroll"||e==="scrollend"),g=le?A!==null?A+"Capture":null:A;le=[];for(var p=_,y;p!==null;){var x=p;if(y=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||y===null||g===null||(x=Il(p,g),x!=null&&le.push(_u(p,x,y))),Ge)break;p=p.return}0<le.length&&(A=new T(A,k,null,l,z),U.push({event:A,listeners:le}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",A&&l!==Ze&&(k=l.relatedTarget||l.fromElement)&&(kl(k)||k[Tl]))break e;if((T||A)&&(A=z.window===z?z:(A=z.ownerDocument)?A.defaultView||A.parentWindow:window,T?(k=l.relatedTarget||l.toElement,T=_,k=k?kl(k):null,k!==null&&(Ge=N(k),le=k.tag,k!==Ge||le!==5&&le!==27&&le!==6)&&(k=null)):(T=null,k=_),T!==k)){if(le=yr,x="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(le=Sr,x="onPointerLeave",g="onPointerEnter",p="pointer"),Ge=T==null?A:xn(T),y=k==null?A:xn(k),A=new le(x,p+"leave",T,l,z),A.target=Ge,A.relatedTarget=y,x=null,kl(z)===_&&(le=new le(g,p+"enter",k,l,z),le.target=y,le.relatedTarget=Ge,x=le),Ge=x,T&&k)t:{for(le=Np,g=T,p=k,y=0,x=g;x;x=le(x))y++;x=0;for(var te=p;te;te=le(te))x++;for(;0<y-x;)g=le(g),y--;for(;0<x-y;)p=le(p),x--;for(;y--;){if(g===p||p!==null&&g===p.alternate){le=g;break t}g=le(g),p=le(p)}le=null}else le=null;T!==null&&hd(U,A,T,le,!1),k!==null&&Ge!==null&&hd(U,Ge,k,le,!0)}}e:{if(A=_?xn(_):window,T=A.nodeName&&A.nodeName.toLowerCase(),T==="select"||T==="input"&&A.type==="file")var Me=xr;else if(zr(A))if(Br)Me=Qh;else{Me=Yh;var $=Lh}else T=A.nodeName,!T||T.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?_&&ze(_.elementType)&&(Me=xr):Me=Vh;if(Me&&(Me=Me(e,_))){Mr(U,Me,l,z);break e}$&&$(e,A,_),e==="focusout"&&_&&A.type==="number"&&_.memoizedProps.value!=null&&E(A,"number",A.value)}switch($=_?xn(_):window,e){case"focusin":(zr($)||$.contentEditable==="true")&&(ua=$,yc=_,Ja=null);break;case"focusout":Ja=yc=ua=null;break;case"mousedown":_c=!0;break;case"contextmenu":case"mouseup":case"dragend":_c=!1,qr(U,l,z);break;case"selectionchange":if(Xh)break;case"keydown":case"keyup":qr(U,l,z)}var pe;if(mc)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else aa?Or(e,l)&&(Ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(Ar&&l.locale!=="ko"&&(aa||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&aa&&(pe=zl()):(vl=z,L="value"in vl?vl.value:vl.textContent,aa=!0)),$=ji(_,Ae),0<$.length&&(Ae=new _r(Ae,e,null,l,z),U.push({event:Ae,listeners:$}),pe?Ae.data=pe:(pe=Cr(l),pe!==null&&(Ae.data=pe)))),(pe=Dh?Rh(e,l):jh(e,l))&&(Ae=ji(_,"onBeforeInput"),0<Ae.length&&($=new _r("onBeforeInput","beforeinput",null,l,z),U.push({event:$,listeners:Ae}),$.data=pe)),Mp(U,e,_,l,z)}sd(U,t)})}function _u(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ji(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Il(e,l),a!=null&&n.unshift(_u(e,a,u)),a=Il(e,t),a!=null&&n.push(_u(e,a,u))),e.tag===3)return n;e=e.return}return[]}function Np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hd(e,t,l,n,a){for(var u=t._reactName,i=[];l!==null&&l!==n;){var c=l,d=c.alternate,_=c.stateNode;if(c=c.tag,d!==null&&d===n)break;c!==5&&c!==26&&c!==27||_===null||(d=_,a?(_=Il(l,u),_!=null&&i.unshift(_u(l,_,d))):a||(_=Il(l,u),_!=null&&i.push(_u(l,_,d)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var Hp=/\r\n?/g,wp=/\u0000|\uFFFD/g;function pd(e){return(typeof e=="string"?e:""+e).replace(Hp,`
|
|
`).replace(wp,"")}function md(e,t){return t=pd(t),pd(e)===t}function qe(e,t,l,n,a,u){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Y(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Y(e,""+n);break;case"className":ml(e,"class",n);break;case"tabIndex":ml(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ml(e,l,n);break;case"style":me(e,n,u);break;case"data":if(t!=="object"){ml(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Q(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&qe(e,t,"name",a.name,a,null),qe(e,t,"formEncType",a.formEncType,a,null),qe(e,t,"formMethod",a.formMethod,a,null),qe(e,t,"formTarget",a.formTarget,a,null)):(qe(e,t,"encType",a.encType,a,null),qe(e,t,"method",a.method,a,null),qe(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Q(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=F);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Q(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":ye("beforetoggle",e),ye("toggle",e),la(e,"popover",n);break;case"xlinkActuate":al(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":al(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":al(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":al(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":al(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":al(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":al(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":al(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":al(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":la(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=he.get(l)||l,la(e,l,n))}}function Zo(e,t,l,n,a,u){switch(l){case"style":me(e,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof n=="string"?Y(e,n):(typeof n=="number"||typeof n=="bigint")&&Y(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=F);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fl.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),u=e[ht]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):la(e,l,n)}}}function bt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:qe(e,t,u,i,l,null)}}a&&qe(e,t,"srcSet",l.srcSet,l,null),n&&qe(e,t,"src",l.src,l,null);return;case"input":ye("invalid",e);var c=u=i=a=null,d=null,_=null;for(n in l)if(l.hasOwnProperty(n)){var z=l[n];if(z!=null)switch(n){case"name":a=z;break;case"type":i=z;break;case"checked":d=z;break;case"defaultChecked":_=z;break;case"value":u=z;break;case"defaultValue":c=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:qe(e,t,n,z,l,null)}}h(e,u,c,d,_,i,a,!1);return;case"select":ye("invalid",e),n=i=u=null;for(a in l)if(l.hasOwnProperty(a)&&(c=l[a],c!=null))switch(a){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":n=c;default:qe(e,t,a,c,l,null)}t=u,l=i,e.multiple=!!n,t!=null?C(e,!!n,t,!1):l!=null&&C(e,!!n,l,!0);return;case"textarea":ye("invalid",e),u=a=n=null;for(i in l)if(l.hasOwnProperty(i)&&(c=l[i],c!=null))switch(i){case"value":n=c;break;case"defaultValue":a=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:qe(e,t,i,c,l,null)}Z(e,n,a,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(n=l[d],n!=null))switch(d){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:qe(e,t,d,n,l,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(n=0;n<yu.length;n++)ye(yu[n],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(n=l[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:qe(e,t,_,n,l,null)}return;default:if(ze(t)){for(z in l)l.hasOwnProperty(z)&&(n=l[z],n!==void 0&&Zo(e,t,z,n,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(n=l[c],n!=null&&qe(e,t,c,n,l,null))}function Dp(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,i=null,c=null,d=null,_=null,z=null;for(T in l){var U=l[T];if(l.hasOwnProperty(T)&&U!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":d=U;default:n.hasOwnProperty(T)||qe(e,t,T,null,n,U)}}for(var A in n){var T=n[A];if(U=l[A],n.hasOwnProperty(A)&&(T!=null||U!=null))switch(A){case"type":u=T;break;case"name":a=T;break;case"checked":_=T;break;case"defaultChecked":z=T;break;case"value":i=T;break;case"defaultValue":c=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(137,t));break;default:T!==U&&qe(e,t,A,T,n,U)}}f(e,i,c,d,_,z,u,a);return;case"select":T=i=c=A=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":T=d;default:n.hasOwnProperty(u)||qe(e,t,u,null,n,d)}for(a in n)if(u=n[a],d=l[a],n.hasOwnProperty(a)&&(u!=null||d!=null))switch(a){case"value":A=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==d&&qe(e,t,a,u,n,d)}t=c,l=i,n=T,A!=null?C(e,!!l,A,!1):!!n!=!!l&&(t!=null?C(e,!!l,t,!0):C(e,!!l,l?[]:"",!1));return;case"textarea":T=A=null;for(c in l)if(a=l[c],l.hasOwnProperty(c)&&a!=null&&!n.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:qe(e,t,c,null,n,a)}for(i in n)if(a=n[i],u=l[i],n.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case"value":A=a;break;case"defaultValue":T=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==u&&qe(e,t,i,a,n,u)}j(e,A,T);return;case"option":for(var k in l)if(A=l[k],l.hasOwnProperty(k)&&A!=null&&!n.hasOwnProperty(k))switch(k){case"selected":e.selected=!1;break;default:qe(e,t,k,null,n,A)}for(d in n)if(A=n[d],T=l[d],n.hasOwnProperty(d)&&A!==T&&(A!=null||T!=null))switch(d){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:qe(e,t,d,A,n,T)}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 le in l)A=l[le],l.hasOwnProperty(le)&&A!=null&&!n.hasOwnProperty(le)&&qe(e,t,le,null,n,A);for(_ in n)if(A=n[_],T=l[_],n.hasOwnProperty(_)&&A!==T&&(A!=null||T!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,t));break;default:qe(e,t,_,A,n,T)}return;default:if(ze(t)){for(var Ge in l)A=l[Ge],l.hasOwnProperty(Ge)&&A!==void 0&&!n.hasOwnProperty(Ge)&&Zo(e,t,Ge,void 0,n,A);for(z in n)A=n[z],T=l[z],!n.hasOwnProperty(z)||A===T||A===void 0&&T===void 0||Zo(e,t,z,A,n,T);return}}for(var g in l)A=l[g],l.hasOwnProperty(g)&&A!=null&&!n.hasOwnProperty(g)&&qe(e,t,g,null,n,A);for(U in n)A=n[U],T=l[U],!n.hasOwnProperty(U)||A===T||A==null&&T==null||qe(e,t,U,A,n,T)}function vd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,i=a.initiatorType,c=a.duration;if(u&&c&&vd(i)){for(i=0,c=a.responseEnd,n+=1;n<l.length;n++){var d=l[n],_=d.startTime;if(_>c)break;var z=d.transferSize,U=d.initiatorType;z&&vd(U)&&(d=d.responseEnd,i+=z*(d<c?1:(c-_)/(d-_)))}if(--n,t+=8*(u+i)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ko=null,Ko=null;function qi(e){return e.nodeType===9?e:e.ownerDocument}function bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Jo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fo=null;function jp(){var e=window.event;return e&&e.type==="popstate"?e===Fo?!1:(Fo=e,!0):(Fo=null,!1)}var yd=typeof setTimeout=="function"?setTimeout:void 0,qp=typeof clearTimeout=="function"?clearTimeout:void 0,_d=typeof Promise=="function"?Promise:void 0,Gp=typeof queueMicrotask=="function"?queueMicrotask:typeof _d<"u"?function(e){return _d.resolve(null).then(e).catch(Lp)}:yd;function Lp(e){setTimeout(function(){throw e})}function vn(e){return e==="head"}function Sd(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),Na(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Su(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Su(l);for(var u=l.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Zl]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Su(e.ownerDocument.body);l=a}while(l);Na(t)}function Ad(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function $o(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":$o(l),La(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Yp(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Zl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=el(e.nextSibling),e===null)break}return null}function Vp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=el(e.nextSibling),e===null))return null;return e}function Ed(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=el(e.nextSibling),e===null))return null;return e}function Io(e){return e.data==="$?"||e.data==="$~"}function Po(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qp(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function el(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var er=null;function Td(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return el(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Od(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Cd(e,t,l){switch(t=qi(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Su(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);La(e)}var tl=new Map,zd=new Set;function Gi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vl=R.d;R.d={f:Wp,r:Xp,D:Zp,C:kp,L:Kp,m:Jp,X:$p,S:Fp,M:Ip};function Wp(){var e=Vl.f(),t=Bi();return e||t}function Xp(e){var t=Kl(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):Vl.r(e)}var xa=typeof document>"u"?null:document;function Md(e,t,l){var n=xa;if(n&&typeof t=="string"&&t){var a=o(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),zd.has(a)||(zd.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),bt(t,"link",e),nt(t),n.head.appendChild(t)))}}function Zp(e){Vl.D(e),Md("dns-prefetch",e,null)}function kp(e,t){Vl.C(e,t),Md("preconnect",e,t)}function Kp(e,t,l){Vl.L(e,t,l);var n=xa;if(n&&e&&t){var a='link[rel="preload"][as="'+o(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+o(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+o(l.imageSizes)+'"]')):a+='[href="'+o(e)+'"]';var u=a;switch(t){case"style":u=Ba(e);break;case"script":u=Ua(e)}tl.has(u)||(e=ee({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),tl.set(u,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Au(u))||t==="script"&&n.querySelector(Eu(u))||(t=n.createElement("link"),bt(t,"link",e),nt(t),n.head.appendChild(t)))}}function Jp(e,t){Vl.m(e,t);var l=xa;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+o(n)+'"][href="'+o(e)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ua(e)}if(!tl.has(u)&&(e=ee({rel:"modulepreload",href:e},t),tl.set(u,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Eu(u)))return}n=l.createElement("link"),bt(n,"link",e),nt(n),l.head.appendChild(n)}}}function Fp(e,t,l){Vl.S(e,t,l);var n=xa;if(n&&e){var a=Jl(n).hoistableStyles,u=Ba(e);t=t||"default";var i=a.get(u);if(!i){var c={loading:0,preload:null};if(i=n.querySelector(Au(u)))c.loading=5;else{e=ee({rel:"stylesheet",href:e,"data-precedence":t},l),(l=tl.get(u))&&tr(e,l);var d=i=n.createElement("link");nt(d),bt(d,"link",e),d._p=new Promise(function(_,z){d.onload=_,d.onerror=z}),d.addEventListener("load",function(){c.loading|=1}),d.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Li(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:c},a.set(u,i)}}}function $p(e,t){Vl.X(e,t);var l=xa;if(l&&e){var n=Jl(l).hoistableScripts,a=Ua(e),u=n.get(a);u||(u=l.querySelector(Eu(a)),u||(e=ee({src:e,async:!0},t),(t=tl.get(a))&&lr(e,t),u=l.createElement("script"),nt(u),bt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Ip(e,t){Vl.M(e,t);var l=xa;if(l&&e){var n=Jl(l).hoistableScripts,a=Ua(e),u=n.get(a);u||(u=l.querySelector(Eu(a)),u||(e=ee({src:e,async:!0,type:"module"},t),(t=tl.get(a))&&lr(e,t),u=l.createElement("script"),nt(u),bt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function xd(e,t,l,n){var a=(a=de.current)?Gi(a):null;if(!a)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ba(l.href),l=Jl(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ba(l.href);var u=Jl(a).hoistableStyles,i=u.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=a.querySelector(Au(e)))&&!u._p&&(i.instance=u,i.state.loading=5),tl.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},tl.set(e,l),u||Pp(a,e,l,i.state))),t&&n===null)throw Error(s(528,""));return i}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ua(l),l=Jl(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ba(e){return'href="'+o(e)+'"'}function Au(e){return'link[rel="stylesheet"]['+e+"]"}function Bd(e){return ee({},e,{"data-precedence":e.precedence,precedence:null})}function Pp(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),bt(t,"link",l),nt(t),e.head.appendChild(t))}function Ua(e){return'[src="'+o(e)+'"]'}function Eu(e){return"script[async]"+e}function Ud(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+o(l.href)+'"]');if(n)return t.instance=n,nt(n),n;var a=ee({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),nt(n),bt(n,"style",a),Li(n,l.precedence,e),t.instance=n;case"stylesheet":a=Ba(l.href);var u=e.querySelector(Au(a));if(u)return t.state.loading|=4,t.instance=u,nt(u),u;n=Bd(l),(a=tl.get(a))&&tr(n,a),u=(e.ownerDocument||e).createElement("link"),nt(u);var i=u;return i._p=new Promise(function(c,d){i.onload=c,i.onerror=d}),bt(u,"link",n),t.state.loading|=4,Li(u,l.precedence,e),t.instance=u;case"script":return u=Ua(l.src),(a=e.querySelector(Eu(u)))?(t.instance=a,nt(a),a):(n=l,(a=tl.get(u))&&(n=ee({},l),lr(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),nt(a),bt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Li(n,l.precedence,e));return t.instance}function Li(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,i=0;i<n.length;i++){var c=n[i];if(c.dataset.precedence===t)u=c;else if(u!==a)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function tr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yi=null;function Nd(e,t,l){if(Yi===null){var n=new Map,a=Yi=new Map;a.set(l,n)}else a=Yi,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var u=l[a];if(!(u[Zl]||u[lt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var c=n.get(i);c?c.push(u):n.set(i,[u])}}return n}function Hd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function em(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function wd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function tm(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Ba(n.href),u=t.querySelector(Au(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,nt(u);return}u=t.ownerDocument||t,n=Bd(n),(a=tl.get(a))&&tr(n,a),u=u.createElement("link"),nt(u);var i=u;i._p=new Promise(function(c,d){i.onload=c,i.onerror=d}),bt(u,"link",n),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Vi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var nr=0;function lm(e,t){return e.stylesheets&&e.count===0&&Wi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Wi(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&nr===0&&(nr=62500*Rp());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wi(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>nr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Vi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qi=null;function Wi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qi=new Map,t.forEach(nm,e),Qi=null,Vi.call(e))}function nm(e,t){if(!(t.state.loading&4)){var l=Qi.get(e);if(l)var n=l.get(null);else{l=new Map,Qi.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var i=a[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),n=i)}n&&l.set(null,n)}a=t.instance,i=a.getAttribute("data-precedence"),u=l.get(i)||n,u===n&&l.set(null,a),l.set(i,a),this.count++,n=Vi.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Tu={$$typeof:V,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function am(e,t,l,n,a,u,i,c,d){this.tag=1,this.containerInfo=e,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=Pn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0),this.hiddenUpdates=Pn(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Dd(e,t,l,n,a,u,i,c,d,_,z,U){return e=new am(e,t,l,i,d,_,z,U,c),t=1,u===!0&&(t|=24),u=Gt(3,null,null,t),e.current=u,u.stateNode=e,t=Dc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:t},Gc(u),e}function Rd(e){return e?(e=oa,e):oa}function jd(e,t,l,n,a,u){a=Rd(a),n.context===null?n.context=a:n.pendingContext=a,n=an(t),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=un(e,n,t),l!==null&&(Ht(l,e,t),lu(l,e,t))}function qd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ar(e,t){qd(e,t),(e=e.alternate)&&qd(e,t)}function Gd(e){if(e.tag===13||e.tag===31){var t=Rn(e,67108864);t!==null&&Ht(t,e,67108864),ar(e,67108864)}}function Ld(e){if(e.tag===13||e.tag===31){var t=Wt();t=qa(t);var l=Rn(e,t);l!==null&&Ht(l,e,t),ar(e,t)}}var Xi=!0;function um(e,t,l,n){var a=M.T;M.T=null;var u=R.p;try{R.p=2,ur(e,t,l,n)}finally{R.p=u,M.T=a}}function im(e,t,l,n){var a=M.T;M.T=null;var u=R.p;try{R.p=8,ur(e,t,l,n)}finally{R.p=u,M.T=a}}function ur(e,t,l,n){if(Xi){var a=ir(n);if(a===null)Xo(e,t,n,Zi,l),Vd(e,n);else if(om(a,e,t,l,n))n.stopPropagation();else if(Vd(e,n),t&4&&-1<cm.indexOf(e)){for(;a!==null;){var u=Kl(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=hl(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var d=1<<31-At(i);c.entanglements[1]|=d,i&=~d}_l(u),(Ne&6)===0&&(Mi=St()+500,gu(0))}}break;case 31:case 13:c=Rn(u,2),c!==null&&Ht(c,u,2),Bi(),ar(u,2)}if(u=ir(n),u===null&&Xo(e,t,n,Zi,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Xo(e,t,n,null,l)}}function ir(e){return e=K(e),cr(e)}var Zi=null;function cr(e){if(Zi=null,e=kl(e),e!==null){var t=N(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=I(t),e!==null)return e;e=null}else if(l===31){if(e=W(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zi=e,null}function Yd(e){switch(e){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(On()){case Hu:return 2;case wu:return 8;case jt:case uc:return 32;case Du:return 268435456;default:return 32}default:return 32}}var or=!1,bn=null,gn=null,yn=null,Ou=new Map,Cu=new Map,_n=[],cm="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 Vd(e,t){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":gn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":Ou.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cu.delete(t.pointerId)}}function zu(e,t,l,n,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},t!==null&&(t=Kl(t),t!==null&&Gd(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function om(e,t,l,n,a){switch(t){case"focusin":return bn=zu(bn,e,t,l,n,a),!0;case"dragenter":return gn=zu(gn,e,t,l,n,a),!0;case"mouseover":return yn=zu(yn,e,t,l,n,a),!0;case"pointerover":var u=a.pointerId;return Ou.set(u,zu(Ou.get(u)||null,e,t,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Cu.set(u,zu(Cu.get(u)||null,e,t,l,n,a)),!0}return!1}function Qd(e){var t=kl(e.target);if(t!==null){var l=N(t);if(l!==null){if(t=l.tag,t===13){if(t=I(l),t!==null){e.blockedOn=t,ea(e.priority,function(){Ld(l)});return}}else if(t===31){if(t=W(l),t!==null){e.blockedOn=t,ea(e.priority,function(){Ld(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ir(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Ze=n,l.target.dispatchEvent(n),Ze=null}else return t=Kl(l),t!==null&&Gd(t),e.blockedOn=l,!1;t.shift()}return!0}function Wd(e,t,l){ki(e)&&l.delete(t)}function rm(){or=!1,bn!==null&&ki(bn)&&(bn=null),gn!==null&&ki(gn)&&(gn=null),yn!==null&&ki(yn)&&(yn=null),Ou.forEach(Wd),Cu.forEach(Wd)}function Ki(e,t){e.blockedOn===t&&(e.blockedOn=null,or||(or=!0,O.unstable_scheduleCallback(O.unstable_NormalPriority,rm)))}var Ji=null;function Xd(e){Ji!==e&&(Ji=e,O.unstable_scheduleCallback(O.unstable_NormalPriority,function(){Ji===e&&(Ji=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(cr(n||l)===null)continue;break}var u=Kl(l);u!==null&&(e.splice(t,3),t-=3,uo(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Na(e){function t(d){return Ki(d,e)}bn!==null&&Ki(bn,e),gn!==null&&Ki(gn,e),yn!==null&&Ki(yn,e),Ou.forEach(t),Cu.forEach(t);for(var l=0;l<_n.length;l++){var n=_n[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<_n.length&&(l=_n[0],l.blockedOn===null);)Qd(l),l.blockedOn===null&&_n.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],i=a[ht]||null;if(typeof u=="function")i||Xd(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(a=u,i=u[ht]||null)c=i.formAction;else if(cr(a)!==null)continue}else c=i.action;typeof c=="function"?l[n+1]=c:(l.splice(n,3),n-=3),Xd(l)}}}function Zd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function rr(e){this._internalRoot=e}Fi.prototype.render=rr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,n=Wt();jd(l,n,e,t,null,null)},Fi.prototype.unmount=rr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jd(e.current,2,null,e,null,null),Bi(),t[Tl]=null}};function Fi(e){this._internalRoot=e}Fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var l=0;l<_n.length&&t!==0&&t<_n[l].priority;l++);_n.splice(l,0,e),l===0&&Qd(e)}};var kd=r.version;if(kd!=="19.2.1")throw Error(s(527,kd,"19.2.1"));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=S(t),e=e!==null?ae(e):null,e=e===null?null:e.stateNode,e};var fm={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$i.isDisabled&&$i.supportsFiber)try{Cn=$i.inject(fm),ot=$i}catch{}}return xu.createRoot=function(e,t){if(!v(e))throw Error(s(299));var l=!1,n="",a=es,u=ts,i=ls;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Dd(e,1,!1,null,null,l,n,null,a,u,i,Zd),e[Tl]=t.current,Wo(e),new rr(t)},xu.hydrateRoot=function(e,t,l){if(!v(e))throw Error(s(299));var n=!1,a="",u=es,i=ts,c=ls,d=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),t=Dd(e,1,!0,t,l??null,n,a,d,u,i,c,Zd),t.context=Rd(null),l=t.current,n=Wt(),n=qa(n),a=an(n),a.callback=null,un(l,a,n),l=n,t.current.lanes=l,El(t,l),_l(t),e[Tl]=t.current,Wo(e),new Fi(t)},xu.version="19.2.1",xu}var nh;function Sm(){if(nh)return dr.exports;nh=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(r){console.error(r)}}return O(),dr.exports=_m(),dr.exports}var Am=Sm();function Em(O,r){O.terminate=function(){const b=()=>{};this.onerror=b,this.onmessage=b,this.onopen=b;const s=new Date,v=Math.random().toString().substring(2,8),N=this.onclose;this.onclose=I=>{const W=new Date().getTime()-s.getTime();r(`Discarded socket (#${v}) closed after ${W}ms, with code/reason: ${I.code}/${I.reason}`)},this.close(),N?.call(O,{code:4001,reason:`Quick discarding socket (#${v}) without waiting for the shutdown sequence.`,wasClean:!1})}}const Uu={LF:`
|
|
`,NULL:"\0"};class An{get body(){return!this._body&&this.isBinaryBody&&(this._body=new TextDecoder().decode(this._binaryBody)),this._body||""}get binaryBody(){return!this._binaryBody&&!this.isBinaryBody&&(this._binaryBody=new TextEncoder().encode(this._body)),this._binaryBody}constructor(r){const{command:b,headers:s,body:v,binaryBody:N,escapeHeaderValues:I,skipContentLengthHeader:W}=r;this.command=b,this.headers=Object.assign({},s||{}),N?(this._binaryBody=N,this.isBinaryBody=!0):(this._body=v||"",this.isBinaryBody=!1),this.escapeHeaderValues=I||!1,this.skipContentLengthHeader=W||!1}static fromRawFrame(r,b){const s={},v=N=>N.replace(/^\s+|\s+$/g,"");for(const N of r.headers.reverse()){N.indexOf(":");const I=v(N[0]);let W=v(N[1]);b&&r.command!=="CONNECT"&&r.command!=="CONNECTED"&&(W=An.hdrValueUnEscape(W)),s[I]=W}return new An({command:r.command,headers:s,binaryBody:r.binaryBody,escapeHeaderValues:b})}toString(){return this.serializeCmdAndHeaders()}serialize(){const r=this.serializeCmdAndHeaders();return this.isBinaryBody?An.toUnit8Array(r,this._binaryBody).buffer:r+this._body+Uu.NULL}serializeCmdAndHeaders(){const r=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(const b of Object.keys(this.headers||{})){const s=this.headers[b];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?r.push(`${b}:${An.hdrValueEscape(`${s}`)}`):r.push(`${b}:${s}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&r.push(`content-length:${this.bodyLength()}`),r.join(Uu.LF)+Uu.LF+Uu.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){const r=this.binaryBody;return r?r.length:0}static sizeOfUTF8(r){return r?new TextEncoder().encode(r).length:0}static toUnit8Array(r,b){const s=new TextEncoder().encode(r),v=new Uint8Array([0]),N=new Uint8Array(s.length+b.length+v.length);return N.set(s),N.set(b,s.length),N.set(v,s.length+b.length),N}static marshall(r){return new An(r).serialize()}static hdrValueEscape(r){return r.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(r){return r.replace(/\\r/g,"\r").replace(/\\n/g,`
|
|
`).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const ah=0,Ii=10,Pi=13,Tm=58;class Om{constructor(r,b){this.onFrame=r,this.onIncomingPing=b,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(r,b=!1){let s;if(typeof r=="string"?s=this._encoder.encode(r):s=new Uint8Array(r),b&&s[s.length-1]!==0){const v=new Uint8Array(s.length+1);v.set(s,0),v[s.length]=0,s=v}for(let v=0;v<s.length;v++){const N=s[v];this._onByte(N)}}_collectFrame(r){if(r!==ah&&r!==Pi){if(r===Ii){this.onIncomingPing();return}this._onByte=this._collectCommand,this._reinjectByte(r)}}_collectCommand(r){if(r!==Pi){if(r===Ii){this._results.command=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaders;return}this._consumeByte(r)}}_collectHeaders(r){if(r!==Pi){if(r===Ii){this._setupCollectBody();return}this._onByte=this._collectHeaderKey,this._reinjectByte(r)}}_reinjectByte(r){this._onByte(r)}_collectHeaderKey(r){if(r===Tm){this._headerKey=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaderValue;return}this._consumeByte(r)}_collectHeaderValue(r){if(r!==Pi){if(r===Ii){this._results.headers.push([this._headerKey,this._consumeTokenAsUTF8()]),this._headerKey=void 0,this._onByte=this._collectHeaders;return}this._consumeByte(r)}}_setupCollectBody(){const r=this._results.headers.filter(b=>b[0]==="content-length")[0];r?(this._bodyBytesRemaining=parseInt(r[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(r){if(r===ah){this._retrievedBody();return}this._consumeByte(r)}_collectBodyFixedSize(r){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(r)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(r){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",r)}this._initState()}_consumeByte(r){this._token.push(r)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const r=new Uint8Array(this._token);return this._token=[],r}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}var En;(function(O){O[O.CONNECTING=0]="CONNECTING",O[O.OPEN=1]="OPEN",O[O.CLOSING=2]="CLOSING",O[O.CLOSED=3]="CLOSED"})(En||(En={}));var rl;(function(O){O[O.ACTIVE=0]="ACTIVE",O[O.DEACTIVATING=1]="DEACTIVATING",O[O.INACTIVE=2]="INACTIVE"})(rl||(rl={}));var tc;(function(O){O[O.LINEAR=0]="LINEAR",O[O.EXPONENTIAL=1]="EXPONENTIAL"})(tc||(tc={}));var Nu;(function(O){O.Interval="interval",O.Worker="worker"})(Nu||(Nu={}));class Cm{constructor(r,b=Nu.Interval,s){this._interval=r,this._strategy=b,this._debug=s,this._workerScript=`
|
|
var startTime = Date.now();
|
|
setInterval(function() {
|
|
self.postMessage(Date.now() - startTime);
|
|
}, ${this._interval});
|
|
`}start(r){this.stop(),this.shouldUseWorker()?this.runWorker(r):this.runInterval(r)}stop(){this.disposeWorker(),this.disposeInterval()}shouldUseWorker(){return typeof Worker<"u"&&this._strategy===Nu.Worker}runWorker(r){this._debug("Using runWorker for outgoing pings"),this._worker||(this._worker=new Worker(URL.createObjectURL(new Blob([this._workerScript],{type:"text/javascript"}))),this._worker.onmessage=b=>r(b.data))}runInterval(r){if(this._debug("Using runInterval for outgoing pings"),!this._timer){const b=Date.now();this._timer=setInterval(()=>{r(Date.now()-b)},this._interval)}}disposeWorker(){this._worker&&(this._worker.terminate(),delete this._worker,this._debug("Outgoing ping disposeWorker"))}disposeInterval(){this._timer&&(clearInterval(this._timer),delete this._timer,this._debug("Outgoing ping disposeInterval"))}}class Ot{constructor(r){this.versions=r}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(r=>`v${r.replace(".","")}.stomp`)}}Ot.V1_0="1.0";Ot.V1_1="1.1";Ot.V1_2="1.2";Ot.default=new Ot([Ot.V1_2,Ot.V1_1,Ot.V1_0]);class zm{get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}constructor(r,b,s){this._client=r,this._webSocket=b,this._connected=!1,this._serverFrameHandlers={CONNECTED:v=>{this.debug(`connected to server ${v.headers.server}`),this._connected=!0,this._connectedVersion=v.headers.version,this._connectedVersion===Ot.V1_2&&(this._escapeHeaderValues=!0),this._setupHeartbeat(v.headers),this.onConnect(v)},MESSAGE:v=>{const N=v.headers.subscription,I=this._subscriptions[N]||this.onUnhandledMessage,W=v,H=this,S=this._connectedVersion===Ot.V1_2?W.headers.ack:W.headers["message-id"];W.ack=(ae={})=>H.ack(S,N,ae),W.nack=(ae={})=>H.nack(S,N,ae),I(W)},RECEIPT:v=>{const N=this._receiptWatchers[v.headers["receipt-id"]];N?(N(v),delete this._receiptWatchers[v.headers["receipt-id"]]):this.onUnhandledReceipt(v)},ERROR:v=>{this.onStompError(v)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=s.debug,this.stompVersions=s.stompVersions,this.connectHeaders=s.connectHeaders,this.disconnectHeaders=s.disconnectHeaders,this.heartbeatIncoming=s.heartbeatIncoming,this.heartbeatToleranceMultiplier=s.heartbeatGracePeriods,this.heartbeatOutgoing=s.heartbeatOutgoing,this.splitLargeFrames=s.splitLargeFrames,this.maxWebSocketChunkSize=s.maxWebSocketChunkSize,this.forceBinaryWSFrames=s.forceBinaryWSFrames,this.logRawCommunication=s.logRawCommunication,this.appendMissingNULLonIncoming=s.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=s.discardWebsocketOnCommFailure,this.onConnect=s.onConnect,this.onDisconnect=s.onDisconnect,this.onStompError=s.onStompError,this.onWebSocketClose=s.onWebSocketClose,this.onWebSocketError=s.onWebSocketError,this.onUnhandledMessage=s.onUnhandledMessage,this.onUnhandledReceipt=s.onUnhandledReceipt,this.onUnhandledFrame=s.onUnhandledFrame,this.onHeartbeatReceived=s.onHeartbeatReceived,this.onHeartbeatLost=s.onHeartbeatLost}start(){const r=new Om(b=>{const s=An.fromRawFrame(b,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${s}`),(this._serverFrameHandlers[s.command]||this.onUnhandledFrame)(s)},()=>{this.debug("<<< PONG"),this.onHeartbeatReceived()});this._webSocket.onmessage=b=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const s=b.data instanceof ArrayBuffer?new TextDecoder().decode(b.data):b.data;this.debug(`<<< ${s}`)}r.parseChunk(b.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=b=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(b)},this._webSocket.onerror=b=>{this.onWebSocketError(b)},this._webSocket.onopen=()=>{const b=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),b["accept-version"]=this.stompVersions.supportedVersions(),b["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:b})}}_setupHeartbeat(r){if(r.version!==Ot.V1_1&&r.version!==Ot.V1_2||!r["heart-beat"])return;const[b,s]=r["heart-beat"].split(",").map(v=>parseInt(v,10));if(this.heartbeatOutgoing!==0&&s!==0){const v=Math.max(this.heartbeatOutgoing,s);this.debug(`send PING every ${v}ms`),this._pinger=new Cm(v,this._client.heartbeatStrategy,this.debug),this._pinger.start(()=>{this._webSocket.readyState===En.OPEN&&(this._webSocket.send(Uu.LF),this.debug(">>> PING"))})}if(this.heartbeatIncoming!==0&&b!==0){const v=Math.max(this.heartbeatIncoming,b);this.debug(`check PONG every ${v}ms`),this._ponger=setInterval(()=>{const N=Date.now()-this._lastServerActivityTS;N>v*this.heartbeatToleranceMultiplier&&(this.debug(`did not receive server activity for the last ${N}ms`),this.onHeartbeatLost(),this._closeOrDiscardWebsocket())},v)}}_closeOrDiscardWebsocket(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}forceDisconnect(){this._webSocket&&(this._webSocket.readyState===En.CONNECTING||this._webSocket.readyState===En.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&Em(this._webSocket,r=>this.debug(r)),this._webSocket.terminate()}_transmit(r){const{command:b,headers:s,body:v,binaryBody:N,skipContentLengthHeader:I}=r,W=new An({command:b,headers:s,body:v,binaryBody:N,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:I});let H=W.serialize();if(this.logRawCommunication?this.debug(`>>> ${H}`):this.debug(`>>> ${W}`),this.forceBinaryWSFrames&&typeof H=="string"&&(H=new TextEncoder().encode(H)),typeof H!="string"||!this.splitLargeFrames)this._webSocket.send(H);else{let S=H;for(;S.length>0;){const ae=S.substring(0,this.maxWebSocketChunkSize);S=S.substring(this.maxWebSocketChunkSize),this._webSocket.send(ae),this.debug(`chunk sent = ${ae.length}, remaining = ${S.length}`)}}}dispose(){if(this.connected)try{const r=Object.assign({},this.disconnectHeaders);r.receipt||(r.receipt=`close-${this._counter++}`),this.watchForReceipt(r.receipt,b=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(b)}),this._transmit({command:"DISCONNECT",headers:r})}catch(r){this.debug(`Ignoring error during disconnect ${r}`)}else(this._webSocket.readyState===En.CONNECTING||this._webSocket.readyState===En.OPEN)&&this._closeWebsocket()}_cleanUp(){this._connected=!1,this._pinger&&(this._pinger.stop(),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}publish(r){const{destination:b,headers:s,body:v,binaryBody:N,skipContentLengthHeader:I}=r,W=Object.assign({destination:b},s);this._transmit({command:"SEND",headers:W,body:v,binaryBody:N,skipContentLengthHeader:I})}watchForReceipt(r,b){this._receiptWatchers[r]=b}subscribe(r,b,s={}){s=Object.assign({},s),s.id||(s.id=`sub-${this._counter++}`),s.destination=r,this._subscriptions[s.id]=b,this._transmit({command:"SUBSCRIBE",headers:s});const v=this;return{id:s.id,unsubscribe(N){return v.unsubscribe(s.id,N)}}}unsubscribe(r,b={}){b=Object.assign({},b),delete this._subscriptions[r],b.id=r,this._transmit({command:"UNSUBSCRIBE",headers:b})}begin(r){const b=r||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:b}});const s=this;return{id:b,commit(){s.commit(b)},abort(){s.abort(b)}}}commit(r){this._transmit({command:"COMMIT",headers:{transaction:r}})}abort(r){this._transmit({command:"ABORT",headers:{transaction:r}})}ack(r,b,s={}){s=Object.assign({},s),this._connectedVersion===Ot.V1_2?s.id=r:s["message-id"]=r,s.subscription=b,this._transmit({command:"ACK",headers:s})}nack(r,b,s={}){return s=Object.assign({},s),this._connectedVersion===Ot.V1_2?s.id=r:s["message-id"]=r,s.subscription=b,this._transmit({command:"NACK",headers:s})}}class Mm{get webSocket(){return this._stompHandler?._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(r){this._disconnectHeaders=r,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}get connected(){return!!this._stompHandler&&this._stompHandler.connected}get connectedVersion(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}get active(){return this.state===rl.ACTIVE}_changeState(r){this.state=r,this.onChangeState(r)}constructor(r={}){this.stompVersions=Ot.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this._nextReconnectDelay=0,this.maxReconnectDelay=900*1e3,this.reconnectTimeMode=tc.LINEAR,this.heartbeatIncoming=1e4,this.heartbeatToleranceMultiplier=2,this.heartbeatOutgoing=1e4,this.heartbeatStrategy=Nu.Interval,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8*1024,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=rl.INACTIVE;const b=()=>{};this.debug=b,this.beforeConnect=b,this.onConnect=b,this.onDisconnect=b,this.onUnhandledMessage=b,this.onUnhandledReceipt=b,this.onUnhandledFrame=b,this.onHeartbeatReceived=b,this.onHeartbeatLost=b,this.onStompError=b,this.onWebSocketClose=b,this.onWebSocketError=b,this.logRawCommunication=!1,this.onChangeState=b,this.connectHeaders={},this._disconnectHeaders={},this.configure(r)}configure(r){Object.assign(this,r),this.maxReconnectDelay>0&&this.maxReconnectDelay<this.reconnectDelay&&(this.debug(`Warning: maxReconnectDelay (${this.maxReconnectDelay}ms) is less than reconnectDelay (${this.reconnectDelay}ms). Using reconnectDelay as the maxReconnectDelay delay.`),this.maxReconnectDelay=this.reconnectDelay)}activate(){const r=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(rl.ACTIVE),this._nextReconnectDelay=this.reconnectDelay,this._connect()};this.state===rl.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{r()})):r()}async _connect(){if(await this.beforeConnect(this),this._stompHandler){this.debug("There is already a stompHandler, skipping the call to connect");return}if(!this.active){this.debug("Client has been marked inactive, will not attempt to connect");return}this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(()=>{this.connected||(this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`),this.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket...");const r=this._createWebSocket();this._stompHandler=new zm(this,r,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatGracePeriods:this.heartbeatToleranceMultiplier,heartbeatOutgoing:this.heartbeatOutgoing,heartbeatStrategy:this.heartbeatStrategy,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:b=>{if(this._connectionWatcher&&(clearTimeout(this._connectionWatcher),this._connectionWatcher=void 0),this._nextReconnectDelay=this.reconnectDelay,!this.active){this.debug("STOMP got connected while deactivate was issued, will disconnect now"),this._disposeStompHandler();return}this.onConnect(b)},onDisconnect:b=>{this.onDisconnect(b)},onStompError:b=>{this.onStompError(b)},onWebSocketClose:b=>{this._stompHandler=void 0,this.state===rl.DEACTIVATING&&this._changeState(rl.INACTIVE),this.onWebSocketClose(b),this.active&&this._schedule_reconnect()},onWebSocketError:b=>{this.onWebSocketError(b)},onUnhandledMessage:b=>{this.onUnhandledMessage(b)},onUnhandledReceipt:b=>{this.onUnhandledReceipt(b)},onUnhandledFrame:b=>{this.onUnhandledFrame(b)},onHeartbeatReceived:()=>{this.onHeartbeatReceived()},onHeartbeatLost:()=>{this.onHeartbeatLost()}}),this._stompHandler.start()}_createWebSocket(){let r;if(this.webSocketFactory)r=this.webSocketFactory();else if(this.brokerURL)r=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return r.binaryType="arraybuffer",r}_schedule_reconnect(){this._nextReconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this._nextReconnectDelay}ms`),this._reconnector=setTimeout(()=>{this.reconnectTimeMode===tc.EXPONENTIAL&&(this._nextReconnectDelay=this._nextReconnectDelay*2,this.maxReconnectDelay!==0&&(this._nextReconnectDelay=Math.min(this._nextReconnectDelay,this.maxReconnectDelay))),this._connect()},this._nextReconnectDelay))}async deactivate(r={}){const b=r.force||!1,s=this.active;let v;if(this.state===rl.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(rl.DEACTIVATING),this._nextReconnectDelay=0,this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==En.CLOSED){const N=this._stompHandler.onWebSocketClose;v=new Promise((I,W)=>{this._stompHandler.onWebSocketClose=H=>{N(H),I()}})}else return this._changeState(rl.INACTIVE),Promise.resolve();return b?this._stompHandler?.discardWebsocket():s&&this._disposeStompHandler(),v}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(r){this._checkConnection(),this._stompHandler.publish(r)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(r,b){this._checkConnection(),this._stompHandler.watchForReceipt(r,b)}subscribe(r,b,s={}){return this._checkConnection(),this._stompHandler.subscribe(r,b,s)}unsubscribe(r,b={}){this._checkConnection(),this._stompHandler.unsubscribe(r,b)}begin(r){return this._checkConnection(),this._stompHandler.begin(r)}commit(r){this._checkConnection(),this._stompHandler.commit(r)}abort(r){this._checkConnection(),this._stompHandler.abort(r)}ack(r,b,s={}){this._checkConnection(),this._stompHandler.ack(r,b,s)}nack(r,b,s={}){this._checkConnection(),this._stompHandler.nack(r,b,s)}}const rh=gt.createContext(null),br=()=>{const O=gt.useContext(rh);if(!O)throw new Error("useGame must be used within a GameProvider");return O},xm=({children:O})=>{const[r,b]=gt.useState(null),[s,v]=gt.useState(!1),[N,I]=gt.useState(null),[W,H]=gt.useState(null),[S,ae]=gt.useState(null);gt.useEffect(()=>{const Te=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`,Be=new Mm({brokerURL:Te,reconnectDelay:5e3,debug:Le=>{console.log(Le)},onConnect:Le=>{console.log("Connected: "+Le),v(!0),Be.subscribe("/user/queue/errors",D=>{ae(D.body)}),Be.subscribe("/user/queue/player-info",D=>{const V=JSON.parse(D.body);H(V),console.log("Current player set:",V)}),Be.subscribe("/user/queue/created",D=>{const V=JSON.parse(D.body);I(V)})},onStompError:Le=>{console.error("Broker reported error: "+Le.headers.message),console.error("Additional details: "+Le.body),ae(Le.headers.message)},onWebSocketClose:()=>{v(!1),console.log("WebSocket connection closed")}});return Be.activate(),b(Be),()=>{Be.deactivate()}},[]),gt.useEffect(()=>{if(s&&r&&N){const Ce=r.subscribe(`/topic/room/${N.roomId}`,Te=>{const Be=JSON.parse(Te.body);I(Be)});return()=>Ce.unsubscribe()}},[s,r,N?.roomId]);const ee=gt.useCallback((Ce,Te)=>{r&&s&&r.publish({destination:"/app/create",body:JSON.stringify({playerName:Ce,userId:Te})})},[r,s]),_e=gt.useCallback((Ce,Te,Be)=>{r&&s&&r.publish({destination:"/app/join",body:JSON.stringify({roomId:Ce,playerName:Te,userId:Be})})},[r,s]),Ke=gt.useCallback(Ce=>{r&&s&&N&&r.publish({destination:"/app/team/join",body:JSON.stringify({roomId:N.roomId,teamId:Ce})})},[r,s,N]);return P.jsx(rh.Provider,{value:{connected:s,room:N,currentPlayer:W,error:S,createRoom:ee,joinRoom:_e,joinTeam:Ke},children:O})};var ec={},Bu={},uh={},ih;function Bm(){return ih||(ih=1,(function(){var O={},r="";try{r=location.hash.toString()}catch{}var b=H(r),s=Le("initParams");if(s)for(var v in s)typeof b[v]>"u"&&(b[v]=s[v]);Be("initParams",b);var N=!1,I;try{if(N=window.parent!=null&&window!=window.parent,N){window.addEventListener("message",function(D){if(D.source===window.parent){try{var V=JSON.parse(D.data)}catch{return}if(!(!V||!V.eventType))if(V.eventType=="set_custom_style")D.origin==="https://web.telegram.org"&&(I.innerHTML=V.eventData);else if(V.eventType=="reload_iframe"){try{window.parent.postMessage(JSON.stringify({eventType:"iframe_will_reload"}),"*")}catch{}location.reload()}else _e(V.eventType,V.eventData)}}),I=document.createElement("style"),document.head.appendChild(I);try{window.parent.postMessage(JSON.stringify({eventType:"iframe_ready",eventData:{reload_supported:!0}}),"*")}catch{}}}catch{}function W(D){try{return D=D.replace(/\+/g,"%20"),decodeURIComponent(D)}catch{return D}}function H(D){D=D.replace(/^#/,"");var V={};if(!D.length)return V;if(D.indexOf("=")<0&&D.indexOf("?")<0)return V._path=W(D),V;var ue=D.indexOf("?");if(ue>=0){var Ue=D.substr(0,ue);V._path=W(Ue),D=D.substr(ue+1)}var De=S(D);for(var re in De)V[re]=De[re];return V}function S(D){var V={};if(!D.length)return V;var ue=D.split("&"),Ue,De,re,tt;for(Ue=0;Ue<ue.length;Ue++)De=ue[Ue].split("="),re=W(De[0]),tt=De[1]==null?null:W(De[1]),V[re]=tt;return V}function ae(D,V){var ue=D.indexOf("#");if(ue<0)return D+"#"+V;var Ue=D.substr(ue+1);return Ue.indexOf("=")>=0||Ue.indexOf("?")>=0?D+"&"+V:Ue.length>0?D+"?"+V:D+V}function ee(D,V,ue){if(V||(V=function(){}),ue===void 0&&(ue=""),console.log("[Telegram.WebView] > postEvent",D,ue),window.TelegramWebviewProxy!==void 0)TelegramWebviewProxy.postEvent(D,JSON.stringify(ue)),V();else if(window.external&&"notify"in window.external)window.external.notify(JSON.stringify({eventType:D,eventData:ue})),V();else if(N)try{var Ue="https://web.telegram.org";Ue="*",window.parent.postMessage(JSON.stringify({eventType:D,eventData:ue}),Ue),V()}catch(De){V(De)}else V({notAvailable:!0})}function _e(D,V){console.log("[Telegram.WebView] < receiveEvent",D,V),Ke(D,function(ue){ue(D,V)})}function Ke(D,V){var ue=O[D];if(!(ue===void 0||!ue.length))for(var Ue=0;Ue<ue.length;Ue++)try{V(ue[Ue])}catch{}}function Ce(D,V){O[D]===void 0&&(O[D]=[]);var ue=O[D].indexOf(V);ue===-1&&O[D].push(V)}function Te(D,V){if(O[D]!==void 0){var ue=O[D].indexOf(V);ue!==-1&&O[D].splice(ue,1)}}function Be(D,V){try{return window.sessionStorage.setItem("__telegram__"+D,JSON.stringify(V)),!0}catch{}return!1}function Le(D){try{return JSON.parse(window.sessionStorage.getItem("__telegram__"+D))}catch{}return null}window.Telegram||(window.Telegram={}),window.Telegram.WebView={initParams:b,isIframe:N,onEvent:Ce,offEvent:Te,postEvent:ee,receiveEvent:_e,callEventCallbacks:Ke},window.Telegram.Utils={urlSafeDecode:W,urlParseQueryString:S,urlParseHashParams:H,urlAppendHashParams:ae,sessionStorageSet:Be,sessionStorageGet:Le},window.TelegramGameProxy_receiveEvent=_e,window.TelegramGameProxy={receiveEvent:_e}})(),(function(){var O=window.Telegram.Utils,r=window.Telegram.WebView,b=r.initParams,s=r.isIframe,v={},N="",I={},W={},H="light",S="6.0",ae="unknown",ee=!0,_e=!1,Ke=!1,Ce="bg_color",Te="bg_color",Be=null;if(b.tgWebAppData&&b.tgWebAppData.length){N=b.tgWebAppData,I=O.urlParseQueryString(N);for(var Le in I){var D=I[Le];try{(D.substr(0,1)=="{"&&D.substr(-1)=="}"||D.substr(0,1)=="["&&D.substr(-1)=="]")&&(I[Le]=JSON.parse(D))}catch{}}}var V=O.sessionStorageGet("themeParams");if(b.tgWebAppThemeParams&&b.tgWebAppThemeParams.length){var ue=b.tgWebAppThemeParams;try{var Ue=JSON.parse(ue);Ue&&de(Ue)}catch{}}V&&de(V);var De=O.sessionStorageGet("defaultColors");if(b.tgWebAppDefaultColors&&b.tgWebAppDefaultColors.length){var re=b.tgWebAppDefaultColors;try{var tt=JSON.parse(re);tt&&Oe(tt)}catch{}}De&&Oe(De),b.tgWebAppVersion&&(S=b.tgWebAppVersion),b.tgWebAppPlatform&&(ae=b.tgWebAppPlatform);var wt=O.sessionStorageGet("isFullscreen");b.tgWebAppFullscreen&&X(!0),wt&&X(wt=="yes");var Sl=O.sessionStorageGet("isOrientationLocked");Sl&&ie(Sl=="yes");function Xt(o,f){f.theme_params&&(de(f.theme_params),window.Telegram.WebApp.MainButton.setParams({}),window.Telegram.WebApp.SecondaryButton.setParams({}),Ql(),Wl(),El(),G("themeChanged"))}var st=window.innerHeight;function Al(o,f){f.height&&(window.removeEventListener("resize",Zt),Fn(f))}function Zt(o){st!=window.innerHeight&&(st=window.innerHeight,G("viewportChanged",{isStateStable:!0}))}function Dt(o,f){f&&wa(f)}function M(o,f){f&&lc(f)}function R(o,f){f.is_visible?(ee=!0,G("activated")):(ee=!1,G("deactivated"))}function ne(o){if(!(o.metaKey||o.ctrlKey)){for(var f=o.target;f.tagName!="A"&&f.parentNode;)f=f.parentNode;f.tagName=="A"&&f.target!="_blank"&&(f.protocol=="http:"||f.protocol=="https:")&&f.hostname=="t.me"&&(v.openTgLink(f.href),o.preventDefault())}}function ve(o){return o.toString().replace(/^\s+|\s+$/g,"")}function G(o){var f=Array.prototype.slice.call(arguments);o=f.shift(),r.callEventCallbacks("webview:"+o,function(h){h.apply(v,f)})}function m(o,f){r.onEvent("webview:"+o,f)}function B(o,f){r.offEvent("webview:"+o,f)}function w(o,f){var h=document.documentElement;h&&h.style&&h.style.setProperty&&h.style.setProperty("--tg-"+o,f)}function X(o){_e=!!o,O.sessionStorageSet("isFullscreen",_e?"yes":"no")}function ie(o){Ke=!!o,O.sessionStorageSet("isOrientationLocked",Ke?"yes":"no")}function de(o){o.bg_color=="#1c1c1d"&&o.bg_color==o.secondary_bg_color&&(o.secondary_bg_color="#2c2c2e");var f;for(var h in o)(f=Xl(o[h]))&&(W[h]=f,h=="bg_color"&&(H=qu(f)?"dark":"light",w("color-scheme",H)),h="theme-"+h.split("_").join("-"),w(h,f));O.sessionStorageSet("themeParams",W)}function Oe(o){H=="dark"?(o.bg_dark_color&&(Ce=o.bg_dark_color),o.header_dark_color&&(Te=null,Be=o.header_dark_color)):(o.bg_color&&(Ce=o.bg_color),o.header_color&&(Te=null,Be=o.header_color)),O.sessionStorageSet("defaultColors",o)}var Ve={};function Xe(o){for(var f=100;--f;){for(var h="",E="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",C=E.length,j=0;j<o;j++)h+=E[Math.floor(Math.random()*C)];if(!Ve[h])return Ve[h]={},h}throw Error("WebAppCallbackIdGenerateFailed")}var ll=!1,fl=!1,Jn=!0;function Fn(o){typeof o<"u"&&(Jn=!!o.is_expanded,ll=o.height,o.is_state_stable&&(fl=o.height),G("viewportChanged",{isStateStable:!!o.is_state_stable}));var f,h;ll!==!1?f=ll-Fe+"px":f=Fe?"calc(100vh - "+Fe+"px)":"100vh",fl!==!1?h=fl-Fe+"px":h=Fe?"calc(100vh - "+Fe+"px)":"100vh",w("viewport-height",f),w("viewport-stable-height",h)}var dt={top:0,bottom:0,left:0,right:0};function wa(o){typeof o<"u"&&(typeof o.top<"u"&&(dt.top=o.top),typeof o.bottom<"u"&&(dt.bottom=o.bottom),typeof o.left<"u"&&(dt.left=o.left),typeof o.right<"u"&&(dt.right=o.right),G("safeAreaChanged")),w("safe-area-inset-top",dt.top+"px"),w("safe-area-inset-bottom",dt.bottom+"px"),w("safe-area-inset-left",dt.left+"px"),w("safe-area-inset-right",dt.right+"px")}var Rt={top:0,bottom:0,left:0,right:0};function lc(o){typeof o<"u"&&(typeof o.top<"u"&&(Rt.top=o.top),typeof o.bottom<"u"&&(Rt.bottom=o.bottom),typeof o.left<"u"&&(Rt.left=o.left),typeof o.right<"u"&&(Rt.right=o.right),G("contentSafeAreaChanged")),w("content-safe-area-inset-top",Rt.top+"px"),w("content-safe-area-inset-bottom",Rt.bottom+"px"),w("content-safe-area-inset-left",Rt.left+"px"),w("content-safe-area-inset-right",Rt.right+"px")}var $n=!1;function Da(o){if(!ce("6.2")){console.warn("[Telegram.WebApp] Closing confirmation is not supported in version "+S);return}$n=!!o,r.postEvent("web_app_setup_closing_behavior",!1,{need_confirmation:$n})}var Tn=!0;function Ra(o){if(!ce("7.7")){console.warn("[Telegram.WebApp] Changing swipes behavior is not supported in version "+S);return}Tn=!!o,r.postEvent("web_app_setup_swipe_behavior",!1,{allow_vertical_swipe:Tn})}function nc(o,f){X(f.is_fullscreen),G("fullscreenChanged")}function ac(o,f){f.error=="ALREADY_FULLSCREEN"&&!_e&&X(!0),G("fullscreenFailed",{error:f.error})}function St(o){if(!ce("8.0")){console.warn("[Telegram.WebApp] Orientation locking is not supported in version "+S);return}ie(o),r.postEvent("web_app_toggle_orientation_lock",!1,{locked:Ke})}var On=[];function Hu(o,f){G("homeScreenAdded")}function wu(o,f){var h=f.status||"unknown";if(On.length>0){for(var E=0;E<On.length;E++){var C=On[E];C(h)}On=[]}G("homeScreenChecked",{status:h})}var jt=!1;function uc(o,f){if(jt){var h=jt;jt=!1,h.callback&&h.callback(!0),G("shareMessageSent")}}function Du(o,f){if(jt){var h=jt;jt=!1,h.callback&&h.callback(!1),G("shareMessageFailed",{error:f.error})}}var sl=!1;function ic(o,f){if(sl){var h=sl;sl=!1,h.callback&&h.callback(!0),G("emojiStatusSet")}}function Cn(o,f){if(sl){var h=sl;sl=!1,h.callback&&h.callback(!1),G("emojiStatusFailed",{error:f.error})}}var ot=!1;function dl(o,f){if(ot){var h=ot;ot=!1,h.callback&&h.callback(f.status=="allowed"),G("emojiStatusAccessRequested",{status:f.status})}}var yt=!1;function At(){return Te=="secondary_bg_color"?W.secondary_bg_color:Te=="bg_color"?W.bg_color:Be}function cc(o){if(!ce("6.1")){console.warn("[Telegram.WebApp] Header color is not supported in version "+S);return}ce("6.9")||(W.bg_color&&W.bg_color==o?o="bg_color":W.secondary_bg_color&&W.secondary_bg_color==o&&(o="secondary_bg_color"));var f=null,h=null;if(o=="bg_color"||o=="secondary_bg_color")h=o;else if(ce("6.9")&&(f=Xl(o),!f))throw console.error("[Telegram.WebApp] Header color format is invalid",o),Error("WebAppHeaderColorInvalid");if(!ce("6.9")&&h!="bg_color"&&h!="secondary_bg_color")throw console.error("[Telegram.WebApp] Header color key should be one of Telegram.WebApp.themeParams.bg_color, Telegram.WebApp.themeParams.secondary_bg_color, 'bg_color', 'secondary_bg_color'",o),Error("WebAppHeaderColorKeyInvalid");Te=h,Be=f,Ql()}var Ru=null,ja=null;function Ql(){(Ru!=Te||ja!=Be)&&(Ru=Te,ja=Be,ja?r.postEvent("web_app_set_header_color",!1,{color:Be}):r.postEvent("web_app_set_header_color",!1,{color_key:Te}))}function zn(){return Ce=="secondary_bg_color"?W.secondary_bg_color:Ce=="bg_color"?W.bg_color:Ce}function In(o){if(!ce("6.1")){console.warn("[Telegram.WebApp] Background color is not supported in version "+S);return}var f;if(o=="bg_color"||o=="secondary_bg_color")f=o;else if(f=Xl(o),!f)throw console.error("[Telegram.WebApp] Background color format is invalid",o),Error("WebAppBackgroundColorInvalid");Ce=f,Wl()}var hl=null;function Wl(){var o=zn();hl!=o&&(hl=o,r.postEvent("web_app_set_background_color",!1,{color:o}))}var nl="bottom_bar_bg_color";function Mn(){return nl=="bottom_bar_bg_color"?W.bottom_bar_bg_color||W.secondary_bg_color||"#ffffff":nl=="secondary_bg_color"?W.secondary_bg_color:nl=="bg_color"?W.bg_color:nl}function ju(o){if(!ce("7.10")){console.warn("[Telegram.WebApp] Bottom bar color is not supported in version "+S);return}var f;if(o=="bg_color"||o=="secondary_bg_color"||o=="bottom_bar_bg_color")f=o;else if(f=Xl(o),!f)throw console.error("[Telegram.WebApp] Bottom bar color format is invalid",o),Error("WebAppBottomBarColorInvalid");nl=f,El(),window.Telegram.WebApp.SecondaryButton.setParams({})}var Pn=null;function El(){var o=Mn();Pn!=o&&(Pn=o,r.postEvent("web_app_set_bottom_bar_color",!1,{color:o})),b.tgWebAppDebug&&ta()}function Xl(o){o+="";var f;if(f=/^\s*#([0-9a-f]{6})\s*$/i.exec(o))return"#"+f[1].toLowerCase();if(f=/^\s*#([0-9a-f])([0-9a-f])([0-9a-f])\s*$/i.exec(o))return("#"+f[1]+f[1]+f[2]+f[2]+f[3]+f[3]).toLowerCase();if(f=/^\s*rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)\s*$/.exec(o)){var h=parseInt(f[1]),E=parseInt(f[2]),C=parseInt(f[3]);return h=(h<16?"0":"")+h.toString(16),E=(E<16?"0":"")+E.toString(16),C=(C<16?"0":"")+C.toString(16),"#"+h+E+C}return!1}function qu(o){o=o.replace(/[\s#]/g,""),o.length==3&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);var f=parseInt(o.substr(0,2),16),h=parseInt(o.substr(2,2),16),E=parseInt(o.substr(4,2),16),C=Math.sqrt(.299*(f*f)+.587*(h*h)+.114*(E*E));return C<120}function Gu(o,f){typeof o!="string"&&(o=""),typeof f!="string"&&(f=""),o=o.replace(/^\s+|\s+$/g,"").split("."),f=f.replace(/^\s+|\s+$/g,"").split(".");var h=Math.max(o.length,f.length),E,C,j;for(E=0;E<h;E++)if(C=parseInt(o[E])||0,j=parseInt(f[E])||0,C!=j)return C>j?1:-1;return 0}function ce(o){return Gu(S,o)>=0}function qa(o){if(window.Blob)try{return new Blob([o]).size}catch{}for(var f=o.length,h=o.length-1;h>=0;h--){var E=o.charCodeAt(h);E>127&&E<=2047?f++:E>2047&&E<=65535&&(f+=2),E>=56320&&E<=57343&&h--}return f}var Ga=(function(){var o=!1,f={};Object.defineProperty(f,"isVisible",{set:function(J){be({is_visible:J})},get:function(){return o},enumerable:!0});var h=null;r.onEvent("back_button_pressed",E);function E(){G("backButtonClicked")}function C(){return{is_visible:o}}function j(J){return typeof J>"u"&&(J=C()),JSON.stringify(J)}function Z(){return ce("6.1")?!0:(console.warn("[Telegram.WebApp] BackButton is not supported in version "+S),!1)}function Y(){var J=C(),me=j(J);h!==me&&(h=me,r.postEvent("web_app_setup_back_button",!1,J))}function be(J){return Z()&&(typeof J.is_visible<"u"&&(o=!!J.is_visible),Y()),f}return f.onClick=function(J){return Z()&&m("backButtonClicked",J),f},f.offClick=function(J){return Z()&&B("backButtonClicked",J),f},f.show=function(){return be({is_visible:!0})},f.hide=function(){return be({is_visible:!1})},f})(),Et=null,ea={},Fe=0;if(b.tgWebAppDebug){Et=document.createElement("tg-bottom-bar");var lt={display:"flex",gap:"7px",font:"600 14px/18px sans-serif",width:"100%",background:Mn(),position:"fixed",left:"0",right:"0",bottom:"0",margin:"0",padding:"7px",textAlign:"center",boxSizing:"border-box",zIndex:"10000"};for(var ht in lt)Et.style[ht]=lt[ht];document.addEventListener("DOMContentLoaded",function o(f){document.removeEventListener("DOMContentLoaded",o),document.body.appendChild(Et)});var Tl=document.createElement("style");Tl.innerHTML='tg-bottom-button.shine { position: relative; overflow: hidden; } tg-bottom-button.shine:before { content:""; position: absolute; top: 0; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .2), transparent); animation: tg-bottom-button-shine 5s ease-in-out infinite; } @-webkit-keyframes tg-bottom-button-shine { 0% {left: -100%;} 12%,100% {left: 100%}} @keyframes tg-bottom-button-shine { 0% {left: -100%;} 12%,100% {left: 100%}}',Et.appendChild(Tl)}function ta(){var o=ea.main._bottomButton,f=ea.secondary._bottomButton;o.isVisible||f.isVisible?(Et.style.display="flex",Fe=58,o.isVisible&&f.isVisible&&(f.position=="top"?(Et.style.flexDirection="column-reverse",Fe+=51):f.position=="bottom"?(Et.style.flexDirection="column",Fe+=51):f.position=="left"?Et.style.flexDirection="row-reverse":f.position=="right"&&(Et.style.flexDirection="row"))):(Et.style.display="none",Fe=0),Et.style.background=Mn(),document.documentElement&&(document.documentElement.style.boxSizing="border-box",document.documentElement.style.paddingBottom=Fe+"px"),Fn()}var Lu=function(o){var f=o=="main";if(f)var h="web_app_setup_main_button",E="main_button_pressed",C="mainButtonClicked",j="Continue",Z=function(){return W.button_color||"#2481cc"},Y=function(){return W.button_text_color||"#ffffff"};else var h="web_app_setup_secondary_button",E="secondary_button_pressed",C="secondaryButtonClicked",j="Cancel",Z=function(){return Mn()},Y=function(){return W.button_color||"#2481cc"};var be=!1,J=!0,me=!1,ze=!1,he=o,q=j,Q=!1,F=!1,Ze="left",K={};Object.defineProperty(K,"type",{get:function(){return he},enumerable:!0}),Object.defineProperty(K,"text",{set:function(L){K.setParams({text:L})},get:function(){return q},enumerable:!0}),Object.defineProperty(K,"color",{set:function(L){K.setParams({color:L})},get:function(){return Q||Z()},enumerable:!0}),Object.defineProperty(K,"textColor",{set:function(L){K.setParams({text_color:L})},get:function(){return F||Y()},enumerable:!0}),Object.defineProperty(K,"isVisible",{set:function(L){K.setParams({is_visible:L})},get:function(){return be},enumerable:!0}),Object.defineProperty(K,"isProgressVisible",{get:function(){return ze},enumerable:!0}),Object.defineProperty(K,"isActive",{set:function(L){K.setParams({is_active:L})},get:function(){return J},enumerable:!0}),Object.defineProperty(K,"hasShineEffect",{set:function(L){K.setParams({has_shine_effect:L})},get:function(){return me},enumerable:!0}),f||Object.defineProperty(K,"position",{set:function(L){K.setParams({position:L})},get:function(){return Ze},enumerable:!0});var Re=null;r.onEvent(E,Va);var fe=null;if(b.tgWebAppDebug){fe=document.createElement("tg-bottom-button");var Je={display:"none",width:"100%",height:"44px",borderRadius:"0",background:"no-repeat right center",padding:"13px 15px",textAlign:"center",boxSizing:"border-box"};for(var kt in Je)fe.style[kt]=Je[kt];Et.appendChild(fe),fe.addEventListener("click",Va,!1),fe._bottomButton=K,ea[o]=fe}function Va(){J&&G(C)}function Il(){var L=K.color,zt=K.textColor;if(be){var zl={is_visible:!0,is_active:J,is_progress_visible:ze,text:q,color:L,text_color:zt,has_shine_effect:me&&J&&!ze};f||(zl.position=Ze)}else var zl={is_visible:!1};return zl}function ul(L){return typeof L>"u"&&(L=Il()),JSON.stringify(L)}function Bn(){var L=Il(),zt=ul(L);Re!==zt&&(Re=zt,r.postEvent(h,!1,L),b.tgWebAppDebug&&Un(L))}function Un(L){L.is_visible?(fe.style.display="block",fe.style.opacity=L.is_active?"1":"0.8",fe.style.cursor=L.is_active?"pointer":"auto",fe.disabled=!L.is_active,fe.innerText=L.text,fe.className=L.has_shine_effect?"shine":"",fe.style.backgroundImage=L.is_progress_visible?"url('data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewport="0 0 48 48" width="48px" height="48px"><circle cx="50%" cy="50%" stroke="'+L.text_color+'" stroke-width="2.25" stroke-linecap="round" fill="none" stroke-dashoffset="106" r="9" stroke-dasharray="56.52" rotate="-90"><animate attributeName="stroke-dashoffset" attributeType="XML" dur="360s" from="0" to="12500" repeatCount="indefinite"></animate><animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="-90 24 24" to="630 24 24" repeatCount="indefinite"></animateTransform></circle></svg>')+"')":"none",fe.style.backgroundColor=L.color,fe.style.color=L.text_color):fe.style.display="none",ta()}function vl(L){if(typeof L.text<"u"){var zt=ve(L.text);if(!zt.length)throw console.error("[Telegram.WebApp] Bottom button text is required",L.text),Error("WebAppBottomButtonParamInvalid");if(zt.length>64)throw console.error("[Telegram.WebApp] Bottom button text is too long",zt),Error("WebAppBottomButtonParamInvalid");q=zt}if(typeof L.color<"u")if(L.color===!1||L.color===null)Q=!1;else{var zl=Xl(L.color);if(!zl)throw console.error("[Telegram.WebApp] Bottom button color format is invalid",L.color),Error("WebAppBottomButtonParamInvalid");Q=zl}if(typeof L.text_color<"u")if(L.text_color===!1||L.text_color===null)F=!1;else{var Nn=Xl(L.text_color);if(!Nn)throw console.error("[Telegram.WebApp] Bottom button text color format is invalid",L.text_color),Error("WebAppBottomButtonParamInvalid");F=Nn}if(typeof L.is_visible<"u"){if(L.is_visible&&!K.text.length)throw console.error("[Telegram.WebApp] Bottom button text is required"),Error("WebAppBottomButtonParamInvalid");be=!!L.is_visible}if(typeof L.has_shine_effect<"u"&&(me=!!L.has_shine_effect),!f&&typeof L.position<"u"){if(L.position!="left"&&L.position!="right"&&L.position!="top"&&L.position!="bottom")throw console.error("[Telegram.WebApp] Bottom button posiition is invalid",L.position),Error("WebAppBottomButtonParamInvalid");Ze=L.position}return typeof L.is_active<"u"&&(J=!!L.is_active),Bn(),K}return K.setText=function(L){return K.setParams({text:L})},K.onClick=function(L){return m(C,L),K},K.offClick=function(L){return B(C,L),K},K.show=function(){return K.setParams({is_visible:!0})},K.hide=function(){return K.setParams({is_visible:!1})},K.enable=function(){return K.setParams({is_active:!0})},K.disable=function(){return K.setParams({is_active:!1})},K.showProgress=function(L){return J=!!L,ze=!0,Bn(),K},K.hideProgress=function(){return K.isActive||(J=!0),ze=!1,Bn(),K},K.setParams=vl,K},oc=Lu("main"),Yu=Lu("secondary"),Zl=(function(){var o=!1,f={};Object.defineProperty(f,"isVisible",{set:function(J){be({is_visible:J})},get:function(){return o},enumerable:!0});var h=null;r.onEvent("settings_button_pressed",E);function E(){G("settingsButtonClicked")}function C(){return{is_visible:o}}function j(J){return typeof J>"u"&&(J=C()),JSON.stringify(J)}function Z(){return ce("6.10")?!0:(console.warn("[Telegram.WebApp] SettingsButton is not supported in version "+S),!1)}function Y(){var J=C(),me=j(J);h!==me&&(h=me,r.postEvent("web_app_setup_settings_button",!1,J))}function be(J){return Z()&&(typeof J.is_visible<"u"&&(o=!!J.is_visible),Y()),f}return f.onClick=function(J){return Z()&&m("settingsButtonClicked",J),f},f.offClick=function(J){return Z()&&B("settingsButtonClicked",J),f},f.show=function(){return be({is_visible:!0})},f.hide=function(){return be({is_visible:!1})},f})(),La=(function(){var o={};function f(h){if(!ce("6.1"))return console.warn("[Telegram.WebApp] HapticFeedback is not supported in version "+S),o;if(h.type=="impact"){if(h.impact_style!="light"&&h.impact_style!="medium"&&h.impact_style!="heavy"&&h.impact_style!="rigid"&&h.impact_style!="soft")throw console.error("[Telegram.WebApp] Haptic impact style is invalid",h.impact_style),Error("WebAppHapticImpactStyleInvalid")}else if(h.type=="notification"){if(h.notification_type!="error"&&h.notification_type!="success"&&h.notification_type!="warning")throw console.error("[Telegram.WebApp] Haptic notification type is invalid",h.notification_type),Error("WebAppHapticNotificationTypeInvalid")}else if(h.type!="selection_change")throw console.error("[Telegram.WebApp] Haptic feedback type is invalid",h.type),Error("WebAppHapticFeedbackTypeInvalid");return r.postEvent("web_app_trigger_haptic_feedback",!1,h),o}return o.impactOccurred=function(h){return f({type:"impact",impact_style:h})},o.notificationOccurred=function(h){return f({type:"notification",notification_type:h})},o.selectionChanged=function(){return f({type:"selection_change"})},o})(),kl=(function(){var o={};function f(h,E,C){if(!ce("6.9"))throw console.error("[Telegram.WebApp] CloudStorage is not supported in version "+S),Error("WebAppMethodUnsupported");return Ya(h,E,C),o}return o.setItem=function(h,E,C){return f("saveStorageValue",{key:h,value:E},C)},o.getItem=function(h,E){return o.getItems([h],E?function(C,j){C?E(C):E(null,j[h])}:null)},o.getItems=function(h,E){return f("getStorageValues",{keys:h},E)},o.removeItem=function(h,E){return o.removeItems([h],E)},o.removeItems=function(h,E){return f("deleteStorageValues",{keys:h},E)},o.getKeys=function(h){return f("getStorageKeys",{},h)},o})(),Kl=(function(){var o=!1,f=!1,h="unknown",E=!1,C=!1,j=!1,Z="",Y={};Object.defineProperty(Y,"isInited",{get:function(){return o},enumerable:!0}),Object.defineProperty(Y,"isBiometricAvailable",{get:function(){return o&&f},enumerable:!0}),Object.defineProperty(Y,"biometricType",{get:function(){return h||"unknown"},enumerable:!0}),Object.defineProperty(Y,"isAccessRequested",{get:function(){return E},enumerable:!0}),Object.defineProperty(Y,"isAccessGranted",{get:function(){return E&&C},enumerable:!0}),Object.defineProperty(Y,"isBiometricTokenSaved",{get:function(){return j},enumerable:!0}),Object.defineProperty(Y,"deviceId",{get:function(){return Z||""},enumerable:!0});var be={callbacks:[]},J=!1,me=!1,ze=!1;r.onEvent("biometry_info_received",he),r.onEvent("biometry_auth_requested",q),r.onEvent("biometry_token_updated",Q);function he(K,Re){if(o=!0,Re.available?(f=!0,h=Re.type||"unknown",Re.access_requested?(E=!0,C=!!Re.access_granted,j=!!Re.token_saved):(E=!1,C=!1,j=!1)):(f=!1,h="unknown",E=!1,C=!1,j=!1),Z=Re.device_id||"",be.callbacks.length>0){for(var fe=0;fe<be.callbacks.length;fe++){var Je=be.callbacks[fe];Je()}be.callbacks=[]}if(J){var kt=J;J=!1,kt.callback&&kt.callback(C)}G("biometricManagerUpdated")}function q(K,Re){var fe=Re.status=="authorized",Je=Re.token||"";if(me){var kt=me;me=!1,kt.callback&&kt.callback(fe,fe?Je:null)}G("biometricAuthRequested",fe?{isAuthenticated:!0,biometricToken:Je}:{isAuthenticated:!1})}function Q(K,Re){var fe=!1;if(f&&E&&(Re.status=="updated"?(j=!0,fe=!0):Re.status=="removed"&&(j=!1,fe=!0)),ze){var Je=ze;ze=!1,Je.callback&&Je.callback(fe)}G("biometricTokenUpdated",{isUpdated:fe})}function F(){return ce("7.2")?!0:(console.warn("[Telegram.WebApp] BiometricManager is not supported in version "+S),!1)}function Ze(){if(!o)throw console.error("[Telegram.WebApp] BiometricManager should be inited before using."),Error("WebAppBiometricManagerNotInited");return!0}return Y.init=function(K){return!F()||o||(K&&be.callbacks.push(K),r.postEvent("web_app_biometry_get_info",!1)),Y},Y.requestAccess=function(K,Re){if(!F())return Y;if(Ze(),!f)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(J)throw console.error("[Telegram.WebApp] Access is already requested"),Error("WebAppBiometricManagerAccessRequested");var fe={};if(typeof K.reason<"u"){var Je=ve(K.reason);if(Je.length>128)throw console.error("[Telegram.WebApp] Biometric reason is too long",Je),Error("WebAppBiometricRequestAccessParamInvalid");Je.length>0&&(fe.reason=Je)}return J={callback:Re},r.postEvent("web_app_biometry_request_access",!1,fe),Y},Y.authenticate=function(K,Re){if(!F())return Y;if(Ze(),!f)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!C)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(me)throw console.error("[Telegram.WebApp] Authentication request is already in progress."),Error("WebAppBiometricManagerAuthenticationRequested");var fe={};if(typeof K.reason<"u"){var Je=ve(K.reason);if(Je.length>128)throw console.error("[Telegram.WebApp] Biometric reason is too long",Je),Error("WebAppBiometricRequestAccessParamInvalid");Je.length>0&&(fe.reason=Je)}return me={callback:Re},r.postEvent("web_app_biometry_request_auth",!1,fe),Y},Y.updateBiometricToken=function(K,Re){if(!F())return Y;if(K=K||"",K.length>1024)throw console.error("[Telegram.WebApp] Token is too long",K),Error("WebAppBiometricManagerTokenInvalid");if(Ze(),!f)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!C)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(ze)throw console.error("[Telegram.WebApp] Token request is already in progress."),Error("WebAppBiometricManagerTokenUpdateRequested");return ze={callback:Re},r.postEvent("web_app_biometry_update_token",!1,{token:K}),Y},Y.openSettings=function(){if(!F())return Y;if(Ze(),!f)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!E)throw console.error("[Telegram.WebApp] Biometric access was not requested yet."),Error("WebAppBiometricManagerBiometricsAccessNotRequested");return C?(console.warn("[Telegram.WebApp] Biometric access was granted by the user, no need to go to settings."),Y):(r.postEvent("web_app_biometry_open_settings",!1),Y)},Y})(),xn=(function(){var o=!1,f=!1,h=!1,E=!1,C={};Object.defineProperty(C,"isInited",{get:function(){return o},enumerable:!0}),Object.defineProperty(C,"isLocationAvailable",{get:function(){return o&&f},enumerable:!0}),Object.defineProperty(C,"isAccessRequested",{get:function(){return h},enumerable:!0}),Object.defineProperty(C,"isAccessGranted",{get:function(){return h&&E},enumerable:!0});var j={callbacks:[]},Z={callbacks:[]};r.onEvent("location_checked",Y),r.onEvent("location_requested",be);function Y(he,q){if(o=!0,q.available?(f=!0,q.access_requested?(h=!0,E=!!q.access_granted):(h=!1,E=!1)):(f=!1,h=!1,E=!1),j.callbacks.length>0){for(var Q=0;Q<j.callbacks.length;Q++){var F=j.callbacks[Q];F()}j.callbacks=[]}G("locationManagerUpdated")}function be(he,q){if(!q.available)Q=null;else{var Q={latitude:q.latitude,longitude:q.longitude,altitude:null,course:null,speed:null,horizontal_accuracy:null,vertical_accuracy:null,course_accuracy:null,speed_accuracy:null};typeof q.altitude<"u"&&q.altitude!==null&&(Q.altitude=q.altitude),typeof q.course<"u"&&q.course!==null&&(Q.course=q.course%360),typeof q.speed<"u"&&q.speed!==null&&(Q.speed=q.speed),typeof q.horizontal_accuracy<"u"&&q.horizontal_accuracy!==null&&(Q.horizontal_accuracy=q.horizontal_accuracy),typeof q.vertical_accuracy<"u"&&q.vertical_accuracy!==null&&(Q.vertical_accuracy=q.vertical_accuracy),typeof q.course_accuracy<"u"&&q.course_accuracy!==null&&(Q.course_accuracy=q.course_accuracy),typeof q.speed_accuracy<"u"&&q.speed_accuracy!==null&&(Q.speed_accuracy=q.speed_accuracy)}!q.available||!f||!h||!E?(j.callbacks.push(function(){J(Q)}),r.postEvent("web_app_check_location",!1)):J(Q)}function J(he){if(Z.callbacks.length>0){for(var q=0;q<Z.callbacks.length;q++){var Q=Z.callbacks[q];Q(he)}Z.callbacks=[]}he!==null&&G("locationRequested",{locationData:he})}function me(){return ce("8.0")?!0:(console.warn("[Telegram.WebApp] LocationManager is not supported in version "+S),!1)}function ze(){if(!o)throw console.error("[Telegram.WebApp] LocationManager should be inited before using."),Error("WebAppLocationManagerNotInited");return!0}return C.init=function(he){return!me()||o||(he&&j.callbacks.push(he),r.postEvent("web_app_check_location",!1)),C},C.getLocation=function(he){if(!me())return C;if(ze(),!f)throw console.error("[Telegram.WebApp] Location is not available on this device."),Error("WebAppLocationManagerLocationNotAvailable");return Z.callbacks.push(he),r.postEvent("web_app_request_location"),C},C.openSettings=function(){if(!me())return C;if(ze(),!f)throw console.error("[Telegram.WebApp] Location is not available on this device."),Error("WebAppLocationManagerLocationNotAvailable");if(!h)throw console.error("[Telegram.WebApp] Location access was not requested yet."),Error("WebAppLocationManagerLocationAccessNotRequested");return E?(console.warn("[Telegram.WebApp] Location access was granted by the user, no need to go to settings."),C):(r.postEvent("web_app_open_location_settings",!1),C)},C})(),Jl=(function(){var o=!1,f=null,h=null,E=null,C=[],j=[],Z={};Object.defineProperty(Z,"isStarted",{get:function(){return o},enumerable:!0}),Object.defineProperty(Z,"x",{get:function(){return f},enumerable:!0}),Object.defineProperty(Z,"y",{get:function(){return h},enumerable:!0}),Object.defineProperty(Z,"z",{get:function(){return E},enumerable:!0}),r.onEvent("accelerometer_started",Y),r.onEvent("accelerometer_stopped",be),r.onEvent("accelerometer_changed",J),r.onEvent("accelerometer_failed",me);function Y(he,q){if(o=!0,C.length>0){for(var Q=0;Q<C.length;Q++){var F=C[Q];F(!0)}C=[]}G("accelerometerStarted")}function be(he,q){if(o=!1,j.length>0){for(var Q=0;Q<j.length;Q++){var F=j[Q];F(!0)}j=[]}G("accelerometerStopped")}function J(he,q){f=q.x,h=q.y,E=q.z,G("accelerometerChanged")}function me(he,q){if(C.length>0){for(var Q=0;Q<C.length;Q++){var F=C[Q];F(!1)}C=[]}G("accelerometerFailed",{error:q.error})}function ze(){return ce("8.0")?!0:(console.warn("[Telegram.WebApp] Accelerometer is not supported in version "+S),!1)}return Z.start=function(he,q){if(he=he||{},!ze())return Z;var Q={},F=parseInt(he.refresh_rate||1e3);return isNaN(F)||F<20||F>1e3?console.warn("[Telegram.WebApp] Accelerometer refresh_rate is invalid",F):Q.refresh_rate=F,q&&C.push(q),r.postEvent("web_app_start_accelerometer",!1,Q),Z},Z.stop=function(he){return ze()&&(he&&j.push(he),r.postEvent("web_app_stop_accelerometer")),Z},Z})(),nt=(function(){var o=!1,f=null,h=null,E=null,C=!1,j=[],Z=[],Y={};Object.defineProperty(Y,"isStarted",{get:function(){return o},enumerable:!0}),Object.defineProperty(Y,"absolute",{get:function(){return C},enumerable:!0}),Object.defineProperty(Y,"alpha",{get:function(){return f},enumerable:!0}),Object.defineProperty(Y,"beta",{get:function(){return h},enumerable:!0}),Object.defineProperty(Y,"gamma",{get:function(){return E},enumerable:!0}),r.onEvent("device_orientation_started",be),r.onEvent("device_orientation_stopped",J),r.onEvent("device_orientation_changed",me),r.onEvent("device_orientation_failed",ze);function be(q,Q){if(o=!0,j.length>0){for(var F=0;F<j.length;F++){var Ze=j[F];Ze(!0)}j=[]}G("deviceOrientationStarted")}function J(q,Q){if(o=!1,Z.length>0){for(var F=0;F<Z.length;F++){var Ze=Z[F];Ze(!0)}Z=[]}G("deviceOrientationStopped")}function me(q,Q){C=!!Q.absolute,f=Q.alpha,h=Q.beta,E=Q.gamma,G("deviceOrientationChanged")}function ze(q,Q){if(j.length>0){for(var F=0;F<j.length;F++){var Ze=j[F];Ze(!1)}j=[]}G("deviceOrientationFailed",{error:Q.error})}function he(){return ce("8.0")?!0:(console.warn("[Telegram.WebApp] DeviceOrientation is not supported in version "+S),!1)}return Y.start=function(q,Q){if(q=q||{},!he())return Y;var F={},Ze=parseInt(q.refresh_rate||1e3);return isNaN(Ze)||Ze<20||Ze>1e3?console.warn("[Telegram.WebApp] DeviceOrientation refresh_rate is invalid",Ze):F.refresh_rate=Ze,F.need_absolute=!!q.need_absolute,Q&&j.push(Q),r.postEvent("web_app_start_device_orientation",!1,F),Y},Y.stop=function(q){return he()&&(q&&Z.push(q),r.postEvent("web_app_stop_device_orientation")),Y},Y})(),Vu=(function(){var o=!1,f=null,h=null,E=null,C=[],j=[],Z={};Object.defineProperty(Z,"isStarted",{get:function(){return o},enumerable:!0}),Object.defineProperty(Z,"x",{get:function(){return f},enumerable:!0}),Object.defineProperty(Z,"y",{get:function(){return h},enumerable:!0}),Object.defineProperty(Z,"z",{get:function(){return E},enumerable:!0}),r.onEvent("gyroscope_started",Y),r.onEvent("gyroscope_stopped",be),r.onEvent("gyroscope_changed",J),r.onEvent("gyroscope_failed",me);function Y(he,q){if(o=!0,C.length>0){for(var Q=0;Q<C.length;Q++){var F=C[Q];F(!0)}C=[]}G("gyroscopeStarted")}function be(he,q){if(o=!1,j.length>0){for(var Q=0;Q<j.length;Q++){var F=j[Q];F(!0)}j=[]}G("gyroscopeStopped")}function J(he,q){f=q.x,h=q.y,E=q.z,G("gyroscopeChanged")}function me(he,q){if(C.length>0){for(var Q=0;Q<C.length;Q++){var F=C[Q];F(!1)}C=[]}G("gyroscopeFailed",{error:q.error})}function ze(){return ce("8.0")?!0:(console.warn("[Telegram.WebApp] Gyroscope is not supported in version "+S),!1)}return Z.start=function(he,q){if(he=he||{},!ze())return Z;var Q={},F=parseInt(he.refresh_rate||1e3);return isNaN(F)||F<20||F>1e3?console.warn("[Telegram.WebApp] Gyroscope refresh_rate is invalid",F):Q.refresh_rate=F,q&&C.push(q),r.postEvent("web_app_start_gyroscope",!1,Q),Z},Z.stop=function(he){return ze()&&(he&&j.push(he),r.postEvent("web_app_stop_gyroscope")),Z},Z})(),Fl={};function Ol(o,f){if(f.slug&&Fl[f.slug]){var h=Fl[f.slug];delete Fl[f.slug],h.callback&&h.callback(f.status),G("invoiceClosed",{url:h.url,status:f.status})}}var yt=!1;function Qu(o,f){if(yt){var h=yt;yt=!1;var E=null;typeof f.button_id<"u"&&(E=f.button_id),h.callback&&h.callback(E),G("popupClosed",{button_id:E})}}var pl=!1;function Wu(o,f){if(pl){var h=pl,E=null;typeof f.data<"u"&&(E=f.data),h.callback&&h.callback(E)&&(pl=!1,r.postEvent("web_app_close_scan_qr_popup",!1)),G("qrTextReceived",{data:E})}}function rc(o,f){pl=!1,G("scanQrPopupClosed")}function la(o,f){if(f.req_id&&Ve[f.req_id]){var h=Ve[f.req_id];delete Ve[f.req_id];var E=null;typeof f.data<"u"&&(E=f.data),h.callback&&h.callback(E),G("clipboardTextReceived",{data:E})}}var ml=!1;function al(o,f){if(ml){var h=ml;ml=!1,h.callback&&h.callback(f.status=="allowed"),G("writeAccessRequested",{status:f.status})}}function Ct(o,f){var h,E,C=0,j=function(){Ya("getRequestedContact",{},function(Y,be){be&&be.length?(clearTimeout(E),o(be)):(C+=50,h=setTimeout(j,C))})},Z=function(){clearTimeout(h),o("")};E=setTimeout(Z,f),j()}var $l=!1;function fc(o,f){if($l){var h=$l;$l=!1;var E=f.status=="sent",C={status:f.status};E?Ct(function(j){if(j&&j.length){C.response=j,C.responseUnsafe=O.urlParseQueryString(j);for(var Z in C.responseUnsafe){var Y=C.responseUnsafe[Z];try{(Y.substr(0,1)=="{"&&Y.substr(-1)=="}"||Y.substr(0,1)=="["&&Y.substr(-1)=="]")&&(C.responseUnsafe[Z]=JSON.parse(Y))}catch{}}}h.callback&&h.callback(E,C),G("contactRequested",C)},3e3):(h.callback&&h.callback(E,C),G("contactRequested",C))}}var Cl=!1;function Xu(o,f){if(Cl){var h=Cl;Cl=!1;var E=f.status=="downloading";h.callback&&h.callback(E),G("fileDownloadRequested",{status:E?"downloading":"cancelled"})}}function na(o,f){if(f.req_id&&Ve[f.req_id]){var h=Ve[f.req_id];delete Ve[f.req_id];var E=null,C=null;typeof f.result<"u"&&(E=f.result),typeof f.error<"u"&&(C=f.error),h.callback&&h.callback(C,E)}}function Ya(o,f,h){if(!ce("6.9"))throw console.error("[Telegram.WebApp] Method invokeCustomMethod is not supported in version "+S),Error("WebAppMethodUnsupported");var E=Xe(16),C={req_id:E,method:o,params:f||{}};Ve[E]={callback:h},r.postEvent("web_app_invoke_custom_method",!1,C)}window.Telegram||(window.Telegram={}),Object.defineProperty(v,"initData",{get:function(){return N},enumerable:!0}),Object.defineProperty(v,"initDataUnsafe",{get:function(){return I},enumerable:!0}),Object.defineProperty(v,"version",{get:function(){return S},enumerable:!0}),Object.defineProperty(v,"platform",{get:function(){return ae},enumerable:!0}),Object.defineProperty(v,"colorScheme",{get:function(){return H},enumerable:!0}),Object.defineProperty(v,"themeParams",{get:function(){return W},enumerable:!0}),Object.defineProperty(v,"isExpanded",{get:function(){return Jn},enumerable:!0}),Object.defineProperty(v,"viewportHeight",{get:function(){return(ll===!1?window.innerHeight:ll)-Fe},enumerable:!0}),Object.defineProperty(v,"viewportStableHeight",{get:function(){return(fl===!1?window.innerHeight:fl)-Fe},enumerable:!0}),Object.defineProperty(v,"safeAreaInset",{get:function(){return dt},enumerable:!0}),Object.defineProperty(v,"contentSafeAreaInset",{get:function(){return Rt},enumerable:!0}),Object.defineProperty(v,"isClosingConfirmationEnabled",{set:function(o){Da(o)},get:function(){return $n},enumerable:!0}),Object.defineProperty(v,"isVerticalSwipesEnabled",{set:function(o){Ra(o)},get:function(){return Tn},enumerable:!0}),Object.defineProperty(v,"isFullscreen",{get:function(){return _e},enumerable:!0}),Object.defineProperty(v,"isOrientationLocked",{set:function(o){St(o)},get:function(){return Ke},enumerable:!0}),Object.defineProperty(v,"isActive",{get:function(){return ee},enumerable:!0}),Object.defineProperty(v,"headerColor",{set:function(o){cc(o)},get:function(){return At()},enumerable:!0}),Object.defineProperty(v,"backgroundColor",{set:function(o){In(o)},get:function(){return zn()},enumerable:!0}),Object.defineProperty(v,"bottomBarColor",{set:function(o){ju(o)},get:function(){return Mn()},enumerable:!0}),Object.defineProperty(v,"BackButton",{value:Ga,enumerable:!0}),Object.defineProperty(v,"MainButton",{value:oc,enumerable:!0}),Object.defineProperty(v,"SecondaryButton",{value:Yu,enumerable:!0}),Object.defineProperty(v,"SettingsButton",{value:Zl,enumerable:!0}),Object.defineProperty(v,"HapticFeedback",{value:La,enumerable:!0}),Object.defineProperty(v,"CloudStorage",{value:kl,enumerable:!0}),Object.defineProperty(v,"BiometricManager",{value:Kl,enumerable:!0}),Object.defineProperty(v,"Accelerometer",{value:Jl,enumerable:!0}),Object.defineProperty(v,"DeviceOrientation",{value:nt,enumerable:!0}),Object.defineProperty(v,"Gyroscope",{value:Vu,enumerable:!0}),Object.defineProperty(v,"LocationManager",{value:xn,enumerable:!0}),v.isVersionAtLeast=function(o){return ce(o)},v.setHeaderColor=function(o){v.headerColor=o},v.setBackgroundColor=function(o){v.backgroundColor=o},v.setBottomBarColor=function(o){v.bottomBarColor=o},v.enableClosingConfirmation=function(){v.isClosingConfirmationEnabled=!0},v.disableClosingConfirmation=function(){v.isClosingConfirmationEnabled=!1},v.enableVerticalSwipes=function(){v.isVerticalSwipesEnabled=!0},v.disableVerticalSwipes=function(){v.isVerticalSwipesEnabled=!1},v.lockOrientation=function(){v.isOrientationLocked=!0},v.unlockOrientation=function(){v.isOrientationLocked=!1},v.requestFullscreen=function(){if(!ce("8.0"))throw console.error("[Telegram.WebApp] Method requestFullscreen is not supported in version "+S),Error("WebAppMethodUnsupported");r.postEvent("web_app_request_fullscreen")},v.exitFullscreen=function(){if(!ce("8.0"))throw console.error("[Telegram.WebApp] Method exitFullscreen is not supported in version "+S),Error("WebAppMethodUnsupported");r.postEvent("web_app_exit_fullscreen")},v.addToHomeScreen=function(){if(!ce("8.0"))throw console.error("[Telegram.WebApp] Method addToHomeScreen is not supported in version "+S),Error("WebAppMethodUnsupported");r.postEvent("web_app_add_to_home_screen")},v.checkHomeScreenStatus=function(o){if(!ce("8.0"))throw console.error("[Telegram.WebApp] Method checkHomeScreenStatus is not supported in version "+S),Error("WebAppMethodUnsupported");o&&On.push(o),r.postEvent("web_app_check_home_screen")},v.onEvent=function(o,f){m(o,f)},v.offEvent=function(o,f){B(o,f)},v.sendData=function(o){if(!o||!o.length)throw console.error("[Telegram.WebApp] Data is required",o),Error("WebAppDataInvalid");if(qa(o)>4096)throw console.error("[Telegram.WebApp] Data is too long",o),Error("WebAppDataInvalid");r.postEvent("web_app_data_send",!1,{data:o})},v.switchInlineQuery=function(o,f){if(!ce("6.6"))throw console.error("[Telegram.WebApp] Method switchInlineQuery is not supported in version "+S),Error("WebAppMethodUnsupported");if(!b.tgWebAppBotInline)throw console.error("[Telegram.WebApp] Inline mode is disabled for this bot. Read more about inline mode: https://core.telegram.org/bots/inline"),Error("WebAppInlineModeDisabled");if(o=o||"",o.length>256)throw console.error("[Telegram.WebApp] Inline query is too long",o),Error("WebAppInlineQueryInvalid");var h=[];if(f){if(!Array.isArray(f))throw console.error("[Telegram.WebApp] Choose chat types should be an array",f),Error("WebAppInlineChooseChatTypesInvalid");for(var E={users:1,bots:1,groups:1,channels:1},C=0;C<f.length;C++){var j=f[C];if(!E[j])throw console.error("[Telegram.WebApp] Choose chat type is invalid",j),Error("WebAppInlineChooseChatTypeInvalid");E[j]!=2&&(E[j]=2,h.push(j))}}r.postEvent("web_app_switch_inline_query",!1,{query:o,chat_types:h})},v.openLink=function(E,f){var h=document.createElement("A");if(h.href=E,h.protocol!="http:"&&h.protocol!="https:")throw console.error("[Telegram.WebApp] Url protocol is not supported",E),Error("WebAppTgUrlInvalid");var E=h.href;if(f=f||{},ce("6.1")){var C={url:E};ce("6.4")&&f.try_instant_view&&(C.try_instant_view=!0),ce("7.6")&&f.try_browser&&(C.try_browser=f.try_browser),r.postEvent("web_app_open_link",!1,C)}else window.open(E,"_blank")},v.openTelegramLink=function(o,f){var h=document.createElement("A");if(h.href=o,h.protocol!="http:"&&h.protocol!="https:")throw console.error("[Telegram.WebApp] Url protocol is not supported",o),Error("WebAppTgUrlInvalid");if(h.hostname!="t.me")throw console.error("[Telegram.WebApp] Url host is not supported",o),Error("WebAppTgUrlInvalid");var E=h.pathname+h.search;if(f=f||{},s||ce("6.1")){var C={path_full:E};f.force_request&&(C.force_request=!0),r.postEvent("web_app_open_tg_link",!1,C)}else location.href="https://t.me"+E},v.openInvoice=function(o,f){var h=document.createElement("A"),E,C;if(h.href=o,h.protocol!="http:"&&h.protocol!="https:"||h.hostname!="t.me"||!(E=h.pathname.match(/^\/(\$|invoice\/)([A-Za-z0-9\-_=]+)$/))||!(C=E[2]))throw console.error("[Telegram.WebApp] Invoice url is invalid",o),Error("WebAppInvoiceUrlInvalid");if(!ce("6.1"))throw console.error("[Telegram.WebApp] Method openInvoice is not supported in version "+S),Error("WebAppMethodUnsupported");if(Fl[C])throw console.error("[Telegram.WebApp] Invoice is already opened"),Error("WebAppInvoiceOpened");Fl[C]={url:o,callback:f},r.postEvent("web_app_open_invoice",!1,{slug:C})},v.showPopup=function(o,f){if(!ce("6.2"))throw console.error("[Telegram.WebApp] Method showPopup is not supported in version "+S),Error("WebAppMethodUnsupported");if(yt)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppPopupOpened");var h="",E="",C=[],j={};if(typeof o.title<"u"){if(h=ve(o.title),h.length>64)throw console.error("[Telegram.WebApp] Popup title is too long",h),Error("WebAppPopupParamInvalid");h.length>0&&(j.title=h)}if(typeof o.message<"u"&&(E=ve(o.message)),!E.length)throw console.error("[Telegram.WebApp] Popup message is required",o.message),Error("WebAppPopupParamInvalid");if(E.length>256)throw console.error("[Telegram.WebApp] Popup message is too long",E),Error("WebAppPopupParamInvalid");if(j.message=E,typeof o.buttons<"u"){if(!Array.isArray(o.buttons))throw console.error("[Telegram.WebApp] Popup buttons should be an array",o.buttons),Error("WebAppPopupParamInvalid");for(var Z=0;Z<o.buttons.length;Z++){var Y=o.buttons[Z],be={},J="";if(typeof Y.id<"u"&&(J=Y.id.toString(),J.length>64))throw console.error("[Telegram.WebApp] Popup button id is too long",J),Error("WebAppPopupParamInvalid");be.id=J;var me=Y.type;if(typeof me>"u"&&(me="default"),be.type=me,!(me=="ok"||me=="close"||me=="cancel"))if(me=="default"||me=="destructive"){var ze="";if(typeof Y.text<"u"&&(ze=ve(Y.text)),!ze.length)throw console.error("[Telegram.WebApp] Popup button text is required for type "+me,Y.text),Error("WebAppPopupParamInvalid");if(ze.length>64)throw console.error("[Telegram.WebApp] Popup button text is too long",ze),Error("WebAppPopupParamInvalid");be.text=ze}else throw console.error("[Telegram.WebApp] Popup button type is invalid",me),Error("WebAppPopupParamInvalid");C.push(be)}}else C.push({id:"",type:"close"});if(C.length<1)throw console.error("[Telegram.WebApp] Popup should have at least one button"),Error("WebAppPopupParamInvalid");if(C.length>3)throw console.error("[Telegram.WebApp] Popup should not have more than 3 buttons"),Error("WebAppPopupParamInvalid");j.buttons=C,yt={callback:f},r.postEvent("web_app_open_popup",!1,j)},v.showAlert=function(o,f){v.showPopup({message:o},f?function(){f()}:null)},v.showConfirm=function(o,f){v.showPopup({message:o,buttons:[{type:"ok",id:"ok"},{type:"cancel"}]},f?function(h){f(h=="ok")}:null)},v.showScanQrPopup=function(o,f){if(!ce("6.4"))throw console.error("[Telegram.WebApp] Method showScanQrPopup is not supported in version "+S),Error("WebAppMethodUnsupported");if(pl)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppScanQrPopupOpened");var h="",E={};if(typeof o.text<"u"){if(h=ve(o.text),h.length>64)throw console.error("[Telegram.WebApp] Scan QR popup text is too long",h),Error("WebAppScanQrPopupParamInvalid");h.length>0&&(E.text=h)}pl={callback:f},r.postEvent("web_app_open_scan_qr_popup",!1,E)},v.closeScanQrPopup=function(){if(!ce("6.4"))throw console.error("[Telegram.WebApp] Method closeScanQrPopup is not supported in version "+S),Error("WebAppMethodUnsupported");pl=!1,r.postEvent("web_app_close_scan_qr_popup",!1)},v.readTextFromClipboard=function(o){if(!ce("6.4"))throw console.error("[Telegram.WebApp] Method readTextFromClipboard is not supported in version "+S),Error("WebAppMethodUnsupported");var f=Xe(16),h={req_id:f};Ve[f]={callback:o},r.postEvent("web_app_read_text_from_clipboard",!1,h)},v.requestWriteAccess=function(o){if(!ce("6.9"))throw console.error("[Telegram.WebApp] Method requestWriteAccess is not supported in version "+S),Error("WebAppMethodUnsupported");if(ml)throw console.error("[Telegram.WebApp] Write access is already requested"),Error("WebAppWriteAccessRequested");ml={callback:o},r.postEvent("web_app_request_write_access")},v.requestContact=function(o){if(!ce("6.9"))throw console.error("[Telegram.WebApp] Method requestContact is not supported in version "+S),Error("WebAppMethodUnsupported");if($l)throw console.error("[Telegram.WebApp] Contact is already requested"),Error("WebAppContactRequested");$l={callback:o},r.postEvent("web_app_request_phone")},v.downloadFile=function(o,f){if(!ce("8.0"))throw console.error("[Telegram.WebApp] Method downloadFile is not supported in version "+S),Error("WebAppMethodUnsupported");if(Cl)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppDownloadFilePopupOpened");var h=document.createElement("A"),E={};if(!o||!o.url||!o.url.length)throw console.error("[Telegram.WebApp] Url is required"),Error("WebAppDownloadFileParamInvalid");if(h.href=o.url,h.protocol!="https:")throw console.error("[Telegram.WebApp] Url protocol is not supported",url),Error("WebAppDownloadFileParamInvalid");if(E.url=h.href,!o||!o.file_name||!o.file_name.length)throw console.error("[Telegram.WebApp] File name is required"),Error("WebAppDownloadFileParamInvalid");E.file_name=o.file_name,Cl={callback:f},r.postEvent("web_app_request_file_download",!1,E)},v.shareToStory=function(o,f){if(f=f||{},!ce("7.8"))throw console.error("[Telegram.WebApp] Method shareToStory is not supported in version "+S),Error("WebAppMethodUnsupported");var h=document.createElement("A");if(h.href=o,h.protocol!="http:"&&h.protocol!="https:")throw console.error("[Telegram.WebApp] Media url protocol is not supported",url),Error("WebAppMediaUrlInvalid");var E={};if(E.media_url=h.href,typeof f.text<"u"){var C=ve(f.text);if(C.length>2048)throw console.error("[Telegram.WebApp] Text is too long",C),Error("WebAppShareToStoryParamInvalid");C.length>0&&(E.text=C)}if(typeof f.widget_link<"u"){if(f.widget_link=f.widget_link||{},h.href=f.widget_link.url,h.protocol!="http:"&&h.protocol!="https:")throw console.error("[Telegram.WebApp] Link protocol is not supported",url),Error("WebAppShareToStoryParamInvalid");var j={url:h.href};if(typeof f.widget_link.name<"u"){var Z=ve(f.widget_link.name);if(Z.length>48)throw console.error("[Telegram.WebApp] Link name is too long",Z),Error("WebAppShareToStoryParamInvalid");Z.length>0&&(j.name=Z)}E.widget_link=j}r.postEvent("web_app_share_to_story",!1,E)},v.shareMessage=function(o,f){if(!ce("8.0"))throw console.error("[Telegram.WebApp] Method shareMessage is not supported in version "+S),Error("WebAppMethodUnsupported");if(jt)throw console.error("[Telegram.WebApp] Share message is already opened"),Error("WebAppShareMessageOpened");jt={callback:f},r.postEvent("web_app_send_prepared_message",!1,{id:o})},v.setEmojiStatus=function(o,f,h){if(f=f||{},!ce("8.0"))throw console.error("[Telegram.WebApp] Method setEmojiStatus is not supported in version "+S),Error("WebAppMethodUnsupported");var E={};if(E.custom_emoji_id=o,typeof f.duration<"u"&&(E.duration=f.duration),sl)throw console.error("[Telegram.WebApp] Emoji status is already requested"),Error("WebAppEmojiStatusRequested");sl={callback:h},r.postEvent("web_app_set_emoji_status",!1,E)},v.requestEmojiStatusAccess=function(o){if(!ce("8.0"))throw console.error("[Telegram.WebApp] Method requestEmojiStatusAccess is not supported in version "+S),Error("WebAppMethodUnsupported");if(ot)throw console.error("[Telegram.WebApp] Emoji status permission is already requested"),Error("WebAppEmojiStatusAccessRequested");ot={callback:o},r.postEvent("web_app_request_emoji_status_access")},v.invokeCustomMethod=function(o,f,h){Ya(o,f,h)},v.ready=function(){r.postEvent("web_app_ready")},v.expand=function(){r.postEvent("web_app_expand")},v.close=function(o){o=o||{};var f={};ce("7.6")&&o.return_back&&(f.return_back=!0),r.postEvent("web_app_close",!1,f)},window.Telegram.WebApp=v,Ql(),Wl(),El(),Fn(),b.tgWebAppShowSettings&&Zl.show(),window.addEventListener("resize",Zt),s&&document.addEventListener("click",ne),r.onEvent("theme_changed",Xt),r.onEvent("viewport_changed",Al),r.onEvent("safe_area_changed",Dt),r.onEvent("content_safe_area_changed",M),r.onEvent("visibility_changed",R),r.onEvent("invoice_closed",Ol),r.onEvent("popup_closed",Qu),r.onEvent("qr_text_received",Wu),r.onEvent("scan_qr_popup_closed",rc),r.onEvent("clipboard_text_received",la),r.onEvent("write_access_requested",al),r.onEvent("phone_requested",fc),r.onEvent("file_download_requested",Xu),r.onEvent("custom_method_invoked",na),r.onEvent("fullscreen_changed",nc),r.onEvent("fullscreen_failed",ac),r.onEvent("home_screen_added",Hu),r.onEvent("home_screen_checked",wu),r.onEvent("prepared_message_sent",uc),r.onEvent("prepared_message_failed",Du),r.onEvent("emoji_status_set",ic),r.onEvent("emoji_status_failed",Cn),r.onEvent("emoji_status_access_requested",dl),r.postEvent("web_app_request_theme"),r.postEvent("web_app_request_viewport"),r.postEvent("web_app_request_safe_area"),r.postEvent("web_app_request_content_safe_area")})()),uh}var ch;function Um(){if(ch)return Bu;ch=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.WebApp=void 0,Bm();var O=window;return Bu.WebApp=O.Telegram.WebApp,Bu}var oh;function Nm(){if(oh)return ec;oh=1,Object.defineProperty(ec,"__esModule",{value:!0});var O=Um();return ec.default=O.WebApp,ec}var Hm=Nm();const Ha=dm(Hm),wm=()=>{const{createRoom:O,joinRoom:r}=br(),[b,s]=gt.useState(""),[v,N]=gt.useState(""),[I,W]=gt.useState("create");gt.useEffect(()=>{Ha.initDataUnsafe?.user?.first_name&&s(Ha.initDataUnsafe.user.first_name)},[]);const H=()=>{b&&O(b,Ha.initDataUnsafe?.user?.id?.toString())},S=()=>{!b||!v||r(v,b,Ha.initDataUnsafe?.user?.id?.toString())};return P.jsxs("div",{className:"flex flex-col items-center justify-center min-h-screen p-4 space-y-8",children:[P.jsx("h1",{className:"text-4xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-600",children:"Alias"}),P.jsxs("div",{className:"w-full max-w-sm bg-gray-800/50 backdrop-blur-md rounded-2xl p-6 shadow-xl border border-gray-700",children:[P.jsxs("div",{className:"flex space-x-2 mb-6 bg-gray-900/50 p-1 rounded-lg",children:[P.jsx("button",{onClick:()=>W("create"),className:`flex-1 py-2 rounded-md text-sm font-medium transition-all ${I==="create"?"bg-blue-600 text-white shadow-lg":"text-gray-400 hover:text-white"}`,children:"Создать"}),P.jsx("button",{onClick:()=>W("join"),className:`flex-1 py-2 rounded-md text-sm font-medium transition-all ${I==="join"?"bg-blue-600 text-white shadow-lg":"text-gray-400 hover:text-white"}`,children:"Войти"})]}),P.jsxs("div",{className:"space-y-4",children:[P.jsxs("div",{children:[P.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1 ml-1",children:"Твое имя"}),P.jsx("input",{type:"text",value:b,onChange:ae=>s(ae.target.value),placeholder:"Введите имя...",className:"w-full px-4 py-3 bg-gray-900 border border-gray-700 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all text-white placeholder-gray-600"})]}),I==="join"&&P.jsxs("div",{children:[P.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1 ml-1",children:"Номер комнаты"}),P.jsx("input",{type:"number",value:v,onChange:ae=>N(ae.target.value),placeholder:"1234",className:"w-full px-4 py-3 bg-gray-900 border border-gray-700 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all text-white placeholder-gray-600 font-mono tracking-widest text-center text-lg"})]}),P.jsx("button",{onClick:I==="create"?H:S,className:"w-full py-3 mt-2 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-500 hover:to-blue-600 text-white font-bold rounded-xl shadow-lg transform transition-all active:scale-95",children:I==="create"?"Создать комнату":"Присоединиться"})]})]})]})},Dm=()=>{const{room:O,currentPlayer:r,joinTeam:b}=br();if(!O)return null;const s=N=>{const I=O.teams.find(H=>H.id===N.id)?.playerIds.map(H=>O.players[H])||[],W=r?.teamId===N.id;return P.jsxs("div",{className:"flex-1 min-w-[45%] bg-gray-800/50 rounded-xl p-4 border border-gray-700 flex flex-col",children:[P.jsxs("div",{className:"flex justify-between items-center mb-3",children:[P.jsx("h3",{className:"font-bold text-lg text-white",children:N.name}),!W&&P.jsx("button",{onClick:()=>b(N.id),className:"text-xs px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded-full transition-colors",children:"Войти"})]}),P.jsxs("div",{className:"flex-1 space-y-2",children:[I.map(H=>P.jsxs("div",{className:"flex items-center space-x-2 bg-gray-900/60 p-2 rounded-lg",children:[P.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-500 rounded-full flex items-center justify-center text-xs font-bold",children:H.name.substring(0,2).toUpperCase()}),P.jsx("span",{className:"text-sm truncate",children:H.name}),H.host&&P.jsx("span",{className:"text-xs text-yellow-500",children:"👑"})]},H.sessionId)),I.length===0&&P.jsx("div",{className:"text-center text-gray-500 text-sm py-4",children:"Пусто"})]})]},N.id)},v=Object.values(O.players).filter(N=>!N.teamId);return P.jsxs("div",{className:"flex flex-col h-screen p-4 bg-gray-900 text-white",children:[P.jsxs("header",{className:"flex justify-between items-center mb-6",children:[P.jsxs("div",{children:[P.jsxs("h2",{className:"text-xl font-bold",children:["Комната #",O.roomId]}),P.jsx("p",{className:"text-xs text-gray-400",children:"Ожидание игроков..."})]}),P.jsxs("div",{className:"bg-gray-800 px-3 py-1 rounded-full text-xs font-mono",children:[Object.keys(O.players).length," Online"]})]}),v.length>0&&P.jsxs("div",{className:"mb-6",children:[P.jsx("h4",{className:"text-xs text-gray-400 uppercase mb-2 ml-1",children:"Без команды"}),P.jsx("div",{className:"flex flex-wrap gap-2",children:v.map(N=>P.jsx("div",{className:"bg-gray-800 px-3 py-1.5 rounded-full text-sm border border-gray-700",children:N.name},N.sessionId))})]}),P.jsx("div",{className:"flex gap-4 mb-auto",children:O.teams.map(s)}),r?.host?P.jsxs("div",{className:"mt-4 p-4 bg-gray-800 rounded-t-2xl -mx-4 space-y-4 shadow-2xl border-t border-gray-700",children:[P.jsxs("div",{className:"flex justify-between items-center",children:[P.jsx("span",{className:"text-sm text-gray-400",children:"Сложность"}),P.jsxs("select",{className:"bg-gray-900 border border-gray-700 rounded px-2 py-1 text-sm outline-none",children:[P.jsx("option",{children:"EASY"}),P.jsx("option",{children:"MEDIUM"}),P.jsx("option",{children:"HARD"})]})]}),P.jsx("button",{className:"w-full py-4 bg-green-600 hover:bg-green-500 text-white font-bold rounded-xl text-lg shadow-lg active:scale-95 transition-all",children:"Начать игру"})]}):P.jsx("div",{className:"mt-4 text-center text-gray-500 text-sm pb-4",children:"Ждем, пока хост начнет игру..."})]})},Rm={LOBBY:"LOBBY"};Ha.ready();Ha.expand();const jm=()=>{const{room:O,error:r}=br();return r?P.jsx("div",{className:"flex items-center justify-center h-screen text-red-500 p-4 text-center",children:P.jsxs("div",{children:[P.jsx("h2",{className:"text-xl font-bold mb-2",children:"Ошибка"}),P.jsx("p",{children:r}),P.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 text-blue-500 underline",children:"Перезагрузить"})]})}):O?O.state===Rm.LOBBY?P.jsx(Dm,{}):P.jsx("div",{className:"flex items-center justify-center h-screen text-white",children:"Game Started! (Coming soon)"}):P.jsx(wm,{})},qm=()=>P.jsx(xm,{children:P.jsx(jm,{})});Am.createRoot(document.getElementById("root")).render(P.jsx(gt.StrictMode,{children:P.jsx(qm,{})}));
|