41 lines
186 KiB
JavaScript
41 lines
186 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Au={exports:{}},Si={},Du={exports:{}},z={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ur=Symbol.for("react.element"),lf=Symbol.for("react.portal"),sf=Symbol.for("react.fragment"),uf=Symbol.for("react.strict_mode"),af=Symbol.for("react.profiler"),cf=Symbol.for("react.provider"),ff=Symbol.for("react.context"),df=Symbol.for("react.forward_ref"),pf=Symbol.for("react.suspense"),hf=Symbol.for("react.memo"),mf=Symbol.for("react.lazy"),hs=Symbol.iterator;function yf(e){return e===null||typeof e!="object"?null:(e=hs&&e[hs]||e["@@iterator"],typeof e=="function"?e:null)}var Iu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mu=Object.assign,ju={};function vn(e,t,n){this.props=e,this.context=t,this.refs=ju,this.updater=n||Iu}vn.prototype.isReactComponent={};vn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};vn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bu(){}Bu.prototype=vn.prototype;function pl(e,t,n){this.props=e,this.context=t,this.refs=ju,this.updater=n||Iu}var hl=pl.prototype=new Bu;hl.constructor=pl;Mu(hl,vn.prototype);hl.isPureReactComponent=!0;var ms=Array.isArray,Fu=Object.prototype.hasOwnProperty,ml={current:null},Uu={key:!0,ref:!0,__self:!0,__source:!0};function $u(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Fu.call(t,r)&&!Uu.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:ur,type:e,key:o,ref:l,props:i,_owner:ml.current}}function gf(e,t){return{$$typeof:ur,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ur}function vf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ys=/\/+/g;function Fi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vf(""+e.key):t.toString(36)}function Mr(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ur:case lf:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+Fi(l,0):r,ms(i)?(n="",e!=null&&(n=e.replace(ys,"$&/")+"/"),Mr(i,t,n,"",function(c){return c})):i!=null&&(yl(i)&&(i=gf(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(ys,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",ms(e))for(var s=0;s<e.length;s++){o=e[s];var u=r+Fi(o,s);l+=Mr(o,t,n,u,i)}else if(u=yf(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=r+Fi(o,s++),l+=Mr(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function mr(e,t,n){if(e==null)return e;var r=[],i=0;return Mr(e,r,"","",function(o){return t.call(n,o,i++)}),r}function wf(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var fe={current:null},jr={transition:null},kf={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:jr,ReactCurrentOwner:ml};function Vu(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:mr,forEach:function(e,t,n){mr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mr(e,function(){t++}),t},toArray:function(e){return mr(e,function(t){return t})||[]},only:function(e){if(!yl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=vn;z.Fragment=sf;z.Profiler=af;z.PureComponent=pl;z.StrictMode=uf;z.Suspense=pf;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kf;z.act=Vu;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Mu({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=ml.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)Fu.call(t,u)&&!Uu.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:ur,type:e.type,key:i,ref:o,props:r,_owner:l}};z.createContext=function(e){return e={$$typeof:ff,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cf,_context:e},e.Consumer=e};z.createElement=$u;z.createFactory=function(e){var t=$u.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:df,render:e}};z.isValidElement=yl;z.lazy=function(e){return{$$typeof:mf,_payload:{_status:-1,_result:e},_init:wf}};z.memo=function(e,t){return{$$typeof:hf,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=jr.transition;jr.transition={};try{e()}finally{jr.transition=t}};z.unstable_act=Vu;z.useCallback=function(e,t){return fe.current.useCallback(e,t)};z.useContext=function(e){return fe.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return fe.current.useDeferredValue(e)};z.useEffect=function(e,t){return fe.current.useEffect(e,t)};z.useId=function(){return fe.current.useId()};z.useImperativeHandle=function(e,t,n){return fe.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return fe.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return fe.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return fe.current.useMemo(e,t)};z.useReducer=function(e,t,n){return fe.current.useReducer(e,t,n)};z.useRef=function(e){return fe.current.useRef(e)};z.useState=function(e){return fe.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return fe.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return fe.current.useTransition()};z.version="18.3.1";Du.exports=z;var X=Du.exports;/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Sf=X,Ef=Symbol.for("react.element"),_f=Symbol.for("react.fragment"),xf=Object.prototype.hasOwnProperty,Cf=Sf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nf={key:!0,ref:!0,__self:!0,__source:!0};function Hu(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)xf.call(t,r)&&!Nf.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Ef,type:e,key:o,ref:l,props:i,_owner:Cf.current}}Si.Fragment=_f;Si.jsx=Hu;Si.jsxs=Hu;Au.exports=Si;var P=Au.exports,ho={},Wu={exports:{}},Ee={},Qu={exports:{}},Ku={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(S,O){var R=S.length;S.push(O);e:for(;0<R;){var Q=R-1>>>1,Z=S[Q];if(0<i(Z,O))S[Q]=O,S[R]=Z,R=Q;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var O=S[0],R=S.pop();if(R!==O){S[0]=R;e:for(var Q=0,Z=S.length,pr=Z>>>1;Q<pr;){var Pt=2*(Q+1)-1,Bi=S[Pt],Ot=Pt+1,hr=S[Ot];if(0>i(Bi,R))Ot<Z&&0>i(hr,Bi)?(S[Q]=hr,S[Ot]=R,Q=Ot):(S[Q]=Bi,S[Pt]=R,Q=Pt);else if(Ot<Z&&0>i(hr,R))S[Q]=hr,S[Ot]=R,Q=Ot;else break e}}return O}function i(S,O){var R=S.sortIndex-O.sortIndex;return R!==0?R:S.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],c=[],h=1,m=null,p=3,g=!1,y=!1,k=!1,D=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(S){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=S)r(c),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(c)}}function v(S){if(k=!1,d(S),!y)if(n(u)!==null)y=!0,ze(E);else{var O=n(c);O!==null&<(v,O.startTime-S)}}function E(S,O){y=!1,k&&(k=!1,f(N),N=-1),g=!0;var R=p;try{for(d(O),m=n(u);m!==null&&(!(m.expirationTime>O)||S&&!ie());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,p=m.priorityLevel;var Z=Q(m.expirationTime<=O);O=e.unstable_now(),typeof Z=="function"?m.callback=Z:m===n(u)&&r(u),d(O)}else r(u);m=n(u)}if(m!==null)var pr=!0;else{var Pt=n(c);Pt!==null&<(v,Pt.startTime-O),pr=!1}return pr}finally{m=null,p=R,g=!1}}var x=!1,C=null,N=-1,T=5,L=-1;function ie(){return!(e.unstable_now()-L<T)}function Le(){if(C!==null){var S=e.unstable_now();L=S;var O=!0;try{O=C(!0,S)}finally{O?ot():(x=!1,C=null)}}else x=!1}var ot;if(typeof a=="function")ot=function(){a(Le)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,ps=qe.port2;qe.port1.onmessage=Le,ot=function(){ps.postMessage(null)}}else ot=function(){D(Le,0)};function ze(S){C=S,x||(x=!0,ot())}function lt(S,O){N=D(function(){S(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,ze(E))},e.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(S){switch(p){case 1:case 2:case 3:var O=3;break;default:O=p}var R=p;p=O;try{return S()}finally{p=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,O){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var R=p;p=S;try{return O()}finally{p=R}},e.unstable_scheduleCallback=function(S,O,R){var Q=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?Q+R:Q):R=Q,S){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=R+Z,S={id:h++,callback:O,priorityLevel:S,startTime:R,expirationTime:Z,sortIndex:-1},R>Q?(S.sortIndex=R,t(c,S),n(u)===null&&S===n(c)&&(k?(f(N),N=-1):k=!0,lt(v,R-Q))):(S.sortIndex=Z,t(u,S),y||g||(y=!0,ze(E))),S},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(S){var O=p;return function(){var R=p;p=O;try{return S.apply(this,arguments)}finally{p=R}}}})(Ku);Qu.exports=Ku;var Tf=Qu.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Pf=X,Se=Tf;function w(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Yu=new Set,Qn={};function Vt(e,t){fn(e,t),fn(e+"Capture",t)}function fn(e,t){for(Qn[e]=t,e=0;e<t.length;e++)Yu.add(t[e])}var et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mo=Object.prototype.hasOwnProperty,Of=/^[: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]*$/,gs={},vs={};function Rf(e){return mo.call(vs,e)?!0:mo.call(gs,e)?!1:Of.test(e)?vs[e]=!0:(gs[e]=!0,!1)}function Lf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zf(e,t,n,r){if(t===null||typeof t>"u"||Lf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var gl=/[\-:]([a-z])/g;function vl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gl,vl);re[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gl,vl);re[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gl,vl);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function wl(e,t,n,r){var i=re.hasOwnProperty(t)?re[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zf(t,n,i,r)&&(n=null),r||i===null?Rf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var it=Pf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yr=Symbol.for("react.element"),Kt=Symbol.for("react.portal"),Yt=Symbol.for("react.fragment"),kl=Symbol.for("react.strict_mode"),yo=Symbol.for("react.profiler"),qu=Symbol.for("react.provider"),Xu=Symbol.for("react.context"),Sl=Symbol.for("react.forward_ref"),go=Symbol.for("react.suspense"),vo=Symbol.for("react.suspense_list"),El=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),Ju=Symbol.for("react.offscreen"),ws=Symbol.iterator;function En(e){return e===null||typeof e!="object"?null:(e=ws&&e[ws]||e["@@iterator"],typeof e=="function"?e:null)}var H=Object.assign,Ui;function Ln(e){if(Ui===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ui=t&&t[1]||""}return`
|
||
`+Ui+e}var $i=!1;function Vi(e,t){if(!e||$i)return"";$i=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),l=i.length-1,s=o.length-1;1<=l&&0<=s&&i[l]!==o[s];)s--;for(;1<=l&&0<=s;l--,s--)if(i[l]!==o[s]){if(l!==1||s!==1)do if(l--,s--,0>s||i[l]!==o[s]){var u=`
|
||
`+i[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{$i=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ln(e):""}function Af(e){switch(e.tag){case 5:return Ln(e.type);case 16:return Ln("Lazy");case 13:return Ln("Suspense");case 19:return Ln("SuspenseList");case 0:case 2:case 15:return e=Vi(e.type,!1),e;case 11:return e=Vi(e.type.render,!1),e;case 1:return e=Vi(e.type,!0),e;default:return""}}function wo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yt:return"Fragment";case Kt:return"Portal";case yo:return"Profiler";case kl:return"StrictMode";case go:return"Suspense";case vo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xu:return(e.displayName||"Context")+".Consumer";case qu:return(e._context.displayName||"Context")+".Provider";case Sl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case El:return t=e.displayName||null,t!==null?t:wo(e.type)||"Memo";case at:t=e._payload,e=e._init;try{return wo(e(t))}catch{}}return null}function Df(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wo(t);case 8:return t===kl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function If(e){var t=Gu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gr(e){e._valueTracker||(e._valueTracker=If(e))}function Zu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gr(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}}function ko(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ks(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bu(e,t){t=t.checked,t!=null&&wl(e,"checked",t,!1)}function So(e,t){bu(e,t);var n=_t(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Eo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Eo(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ss(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Eo(e,t,n){(t!=="number"||Gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zn=Array.isArray;function on(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _o(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(w(91));return H({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Es(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(w(92));if(zn(n)){if(1<n.length)throw Error(w(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_t(n)}}function ea(e,t){var n=_t(t.value),r=_t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function _s(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ta(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ta(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vr,na=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vr=vr||document.createElement("div"),vr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mf=["Webkit","ms","Moz","O"];Object.keys(Mn).forEach(function(e){Mf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mn[t]=Mn[e]})});function ra(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mn.hasOwnProperty(e)&&Mn[e]?(""+t).trim():t+"px"}function ia(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ra(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jf=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Co(e,t){if(t){if(jf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(w(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(w(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(w(61))}if(t.style!=null&&typeof t.style!="object")throw Error(w(62))}}function No(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 To=null;function _l(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,ln=null,sn=null;function xs(e){if(e=fr(e)){if(typeof Po!="function")throw Error(w(280));var t=e.stateNode;t&&(t=Ni(t),Po(e.stateNode,e.type,t))}}function oa(e){ln?sn?sn.push(e):sn=[e]:ln=e}function la(){if(ln){var e=ln,t=sn;if(sn=ln=null,xs(e),t)for(e=0;e<t.length;e++)xs(t[e])}}function sa(e,t){return e(t)}function ua(){}var Hi=!1;function aa(e,t,n){if(Hi)return e(t,n);Hi=!0;try{return sa(e,t,n)}finally{Hi=!1,(ln!==null||sn!==null)&&(ua(),la())}}function Yn(e,t){var n=e.stateNode;if(n===null)return null;var r=Ni(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(w(231,t,typeof n));return n}var Oo=!1;if(et)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{Oo=!1}function Bf(e,t,n,r,i,o,l,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(h){this.onError(h)}}var jn=!1,Zr=null,br=!1,Ro=null,Ff={onError:function(e){jn=!0,Zr=e}};function Uf(e,t,n,r,i,o,l,s,u){jn=!1,Zr=null,Bf.apply(Ff,arguments)}function $f(e,t,n,r,i,o,l,s,u){if(Uf.apply(this,arguments),jn){if(jn){var c=Zr;jn=!1,Zr=null}else throw Error(w(198));br||(br=!0,Ro=c)}}function Ht(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ca(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 Cs(e){if(Ht(e)!==e)throw Error(w(188))}function Vf(e){var t=e.alternate;if(!t){if(t=Ht(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Cs(i),e;if(o===r)return Cs(i),t;o=o.sibling}throw Error(w(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(w(189))}}if(n.alternate!==r)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function fa(e){return e=Vf(e),e!==null?da(e):null}function da(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=da(e);if(t!==null)return t;e=e.sibling}return null}var pa=Se.unstable_scheduleCallback,Ns=Se.unstable_cancelCallback,Hf=Se.unstable_shouldYield,Wf=Se.unstable_requestPaint,K=Se.unstable_now,Qf=Se.unstable_getCurrentPriorityLevel,xl=Se.unstable_ImmediatePriority,ha=Se.unstable_UserBlockingPriority,ei=Se.unstable_NormalPriority,Kf=Se.unstable_LowPriority,ma=Se.unstable_IdlePriority,Ei=null,We=null;function Yf(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(Ei,e,void 0,(e.current.flags&128)===128)}catch{}}var Be=Math.clz32?Math.clz32:Jf,qf=Math.log,Xf=Math.LN2;function Jf(e){return e>>>=0,e===0?32:31-(qf(e)/Xf|0)|0}var wr=64,kr=4194304;function An(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ti(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=An(s):(o&=l,o!==0&&(r=An(o)))}else l=n&~i,l!==0?r=An(l):o!==0&&(r=An(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Be(t),i=1<<n,r|=e[n],t&=~i;return r}function Gf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Be(o),s=1<<l,u=i[l];u===-1?(!(s&n)||s&r)&&(i[l]=Gf(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function Lo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ya(){var e=wr;return wr<<=1,!(wr&4194240)&&(wr=64),e}function Wi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=n}function bf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Be(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Cl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var M=0;function ga(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var va,Nl,wa,ka,Sa,zo=!1,Sr=[],mt=null,yt=null,gt=null,qn=new Map,Xn=new Map,ft=[],ed="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 submit".split(" ");function Ts(e,t){switch(e){case"focusin":case"focusout":mt=null;break;case"dragenter":case"dragleave":yt=null;break;case"mouseover":case"mouseout":gt=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xn.delete(t.pointerId)}}function xn(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=fr(t),t!==null&&Nl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function td(e,t,n,r,i){switch(t){case"focusin":return mt=xn(mt,e,t,n,r,i),!0;case"dragenter":return yt=xn(yt,e,t,n,r,i),!0;case"mouseover":return gt=xn(gt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return qn.set(o,xn(qn.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Xn.set(o,xn(Xn.get(o)||null,e,t,n,r,i)),!0}return!1}function Ea(e){var t=zt(e.target);if(t!==null){var n=Ht(t);if(n!==null){if(t=n.tag,t===13){if(t=ca(n),t!==null){e.blockedOn=t,Sa(e.priority,function(){wa(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Br(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ao(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);To=r,n.target.dispatchEvent(r),To=null}else return t=fr(n),t!==null&&Nl(t),e.blockedOn=n,!1;t.shift()}return!0}function Ps(e,t,n){Br(e)&&n.delete(t)}function nd(){zo=!1,mt!==null&&Br(mt)&&(mt=null),yt!==null&&Br(yt)&&(yt=null),gt!==null&&Br(gt)&&(gt=null),qn.forEach(Ps),Xn.forEach(Ps)}function Cn(e,t){e.blockedOn===t&&(e.blockedOn=null,zo||(zo=!0,Se.unstable_scheduleCallback(Se.unstable_NormalPriority,nd)))}function Jn(e){function t(i){return Cn(i,e)}if(0<Sr.length){Cn(Sr[0],e);for(var n=1;n<Sr.length;n++){var r=Sr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mt!==null&&Cn(mt,e),yt!==null&&Cn(yt,e),gt!==null&&Cn(gt,e),qn.forEach(t),Xn.forEach(t),n=0;n<ft.length;n++)r=ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&(n=ft[0],n.blockedOn===null);)Ea(n),n.blockedOn===null&&ft.shift()}var un=it.ReactCurrentBatchConfig,ni=!0;function rd(e,t,n,r){var i=M,o=un.transition;un.transition=null;try{M=1,Tl(e,t,n,r)}finally{M=i,un.transition=o}}function id(e,t,n,r){var i=M,o=un.transition;un.transition=null;try{M=4,Tl(e,t,n,r)}finally{M=i,un.transition=o}}function Tl(e,t,n,r){if(ni){var i=Ao(e,t,n,r);if(i===null)eo(e,t,r,ri,n),Ts(e,r);else if(td(i,e,t,n,r))r.stopPropagation();else if(Ts(e,r),t&4&&-1<ed.indexOf(e)){for(;i!==null;){var o=fr(i);if(o!==null&&va(o),o=Ao(e,t,n,r),o===null&&eo(e,t,r,ri,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else eo(e,t,r,null,n)}}var ri=null;function Ao(e,t,n,r){if(ri=null,e=_l(r),e=zt(e),e!==null)if(t=Ht(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ca(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ri=e,null}function _a(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qf()){case xl:return 1;case ha:return 4;case ei:case Kf:return 16;case ma:return 536870912;default:return 16}default:return 16}}var pt=null,Pl=null,Fr=null;function xa(){if(Fr)return Fr;var e,t=Pl,n=t.length,r,i="value"in pt?pt.value:pt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Fr=i.slice(e,1<r?1-r:void 0)}function Ur(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 Er(){return!0}function Os(){return!1}function _e(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Er:Os,this.isPropagationStopped=Os,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Er)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Er)},persist:function(){},isPersistent:Er}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ol=_e(wn),cr=H({},wn,{view:0,detail:0}),od=_e(cr),Qi,Ki,Nn,_i=H({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rl,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!==Nn&&(Nn&&e.type==="mousemove"?(Qi=e.screenX-Nn.screenX,Ki=e.screenY-Nn.screenY):Ki=Qi=0,Nn=e),Qi)},movementY:function(e){return"movementY"in e?e.movementY:Ki}}),Rs=_e(_i),ld=H({},_i,{dataTransfer:0}),sd=_e(ld),ud=H({},cr,{relatedTarget:0}),Yi=_e(ud),ad=H({},wn,{animationName:0,elapsedTime:0,pseudoElement:0}),cd=_e(ad),fd=H({},wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dd=_e(fd),pd=H({},wn,{data:0}),Ls=_e(pd),hd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},md={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"},yd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yd[e])?!!t[e]:!1}function Rl(){return gd}var vd=H({},cr,{key:function(e){if(e.key){var t=hd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ur(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?md[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rl,charCode:function(e){return e.type==="keypress"?Ur(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ur(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wd=_e(vd),kd=H({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zs=_e(kd),Sd=H({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rl}),Ed=_e(Sd),_d=H({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),xd=_e(_d),Cd=H({},_i,{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}),Nd=_e(Cd),Td=[9,13,27,32],Ll=et&&"CompositionEvent"in window,Bn=null;et&&"documentMode"in document&&(Bn=document.documentMode);var Pd=et&&"TextEvent"in window&&!Bn,Ca=et&&(!Ll||Bn&&8<Bn&&11>=Bn),As=" ",Ds=!1;function Na(e,t){switch(e){case"keyup":return Td.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ta(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qt=!1;function Od(e,t){switch(e){case"compositionend":return Ta(t);case"keypress":return t.which!==32?null:(Ds=!0,As);case"textInput":return e=t.data,e===As&&Ds?null:e;default:return null}}function Rd(e,t){if(qt)return e==="compositionend"||!Ll&&Na(e,t)?(e=xa(),Fr=Pl=pt=null,qt=!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 Ca&&t.locale!=="ko"?null:t.data;default:return null}}var Ld={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 Is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ld[e.type]:t==="textarea"}function Pa(e,t,n,r){oa(r),t=ii(t,"onChange"),0<t.length&&(n=new Ol("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Gn=null;function zd(e){Fa(e,0)}function xi(e){var t=Gt(e);if(Zu(t))return e}function Ad(e,t){if(e==="change")return t}var Oa=!1;if(et){var qi;if(et){var Xi="oninput"in document;if(!Xi){var Ms=document.createElement("div");Ms.setAttribute("oninput","return;"),Xi=typeof Ms.oninput=="function"}qi=Xi}else qi=!1;Oa=qi&&(!document.documentMode||9<document.documentMode)}function js(){Fn&&(Fn.detachEvent("onpropertychange",Ra),Gn=Fn=null)}function Ra(e){if(e.propertyName==="value"&&xi(Gn)){var t=[];Pa(t,Gn,e,_l(e)),aa(zd,t)}}function Dd(e,t,n){e==="focusin"?(js(),Fn=t,Gn=n,Fn.attachEvent("onpropertychange",Ra)):e==="focusout"&&js()}function Id(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(Gn)}function Md(e,t){if(e==="click")return xi(t)}function jd(e,t){if(e==="input"||e==="change")return xi(t)}function Bd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ue=typeof Object.is=="function"?Object.is:Bd;function Zn(e,t){if(Ue(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!mo.call(t,i)||!Ue(e[i],t[i]))return!1}return!0}function Bs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fs(e,t){var n=Bs(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bs(n)}}function La(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?La(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function za(){for(var e=window,t=Gr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gr(e.document)}return t}function zl(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")}function Fd(e){var t=za(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&La(n.ownerDocument.documentElement,n)){if(r!==null&&zl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Fs(n,o);var l=Fs(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ud=et&&"documentMode"in document&&11>=document.documentMode,Xt=null,Do=null,Un=null,Io=!1;function Us(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||Xt==null||Xt!==Gr(r)||(r=Xt,"selectionStart"in r&&zl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Un&&Zn(Un,r)||(Un=r,r=ii(Do,"onSelect"),0<r.length&&(t=new Ol("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Xt)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jt={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Ji={},Aa={};et&&(Aa=document.createElement("div").style,"AnimationEvent"in window||(delete Jt.animationend.animation,delete Jt.animationiteration.animation,delete Jt.animationstart.animation),"TransitionEvent"in window||delete Jt.transitionend.transition);function Ci(e){if(Ji[e])return Ji[e];if(!Jt[e])return e;var t=Jt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Aa)return Ji[e]=t[n];return e}var Da=Ci("animationend"),Ia=Ci("animationiteration"),Ma=Ci("animationstart"),ja=Ci("transitionend"),Ba=new Map,$s="abort auxClick 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(" ");function Ct(e,t){Ba.set(e,t),Vt(t,[e])}for(var Gi=0;Gi<$s.length;Gi++){var Zi=$s[Gi],$d=Zi.toLowerCase(),Vd=Zi[0].toUpperCase()+Zi.slice(1);Ct($d,"on"+Vd)}Ct(Da,"onAnimationEnd");Ct(Ia,"onAnimationIteration");Ct(Ma,"onAnimationStart");Ct("dblclick","onDoubleClick");Ct("focusin","onFocus");Ct("focusout","onBlur");Ct(ja,"onTransitionEnd");fn("onMouseEnter",["mouseout","mouseover"]);fn("onMouseLeave",["mouseout","mouseover"]);fn("onPointerEnter",["pointerout","pointerover"]);fn("onPointerLeave",["pointerout","pointerover"]);Vt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),Hd=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dn));function Vs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,$f(r,t,void 0,e),e.currentTarget=null}function Fa(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Vs(i,s,c),o=u}else for(l=0;l<r.length;l++){if(s=r[l],u=s.instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Vs(i,s,c),o=u}}}if(br)throw e=Ro,br=!1,Ro=null,e}function B(e,t){var n=t[Uo];n===void 0&&(n=t[Uo]=new Set);var r=e+"__bubble";n.has(r)||(Ua(t,e,2,!1),n.add(r))}function bi(e,t,n){var r=0;t&&(r|=4),Ua(n,e,r,t)}var xr="_reactListening"+Math.random().toString(36).slice(2);function bn(e){if(!e[xr]){e[xr]=!0,Yu.forEach(function(n){n!=="selectionchange"&&(Hd.has(n)||bi(n,!1,e),bi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xr]||(t[xr]=!0,bi("selectionchange",!1,t))}}function Ua(e,t,n,r){switch(_a(t)){case 1:var i=rd;break;case 4:i=id;break;default:i=Tl}n=i.bind(null,t,n,e),i=void 0,!Oo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function eo(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;l=l.return}for(;s!==null;){if(l=zt(s),l===null)return;if(u=l.tag,u===5||u===6){r=o=l;continue e}s=s.parentNode}}r=r.return}aa(function(){var c=o,h=_l(n),m=[];e:{var p=Ba.get(e);if(p!==void 0){var g=Ol,y=e;switch(e){case"keypress":if(Ur(n)===0)break e;case"keydown":case"keyup":g=wd;break;case"focusin":y="focus",g=Yi;break;case"focusout":y="blur",g=Yi;break;case"beforeblur":case"afterblur":g=Yi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Rs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=sd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Ed;break;case Da:case Ia:case Ma:g=cd;break;case ja:g=xd;break;case"scroll":g=od;break;case"wheel":g=Nd;break;case"copy":case"cut":case"paste":g=dd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=zs}var k=(t&4)!==0,D=!k&&e==="scroll",f=k?p!==null?p+"Capture":null:p;k=[];for(var a=c,d;a!==null;){d=a;var v=d.stateNode;if(d.tag===5&&v!==null&&(d=v,f!==null&&(v=Yn(a,f),v!=null&&k.push(er(a,v,d)))),D)break;a=a.return}0<k.length&&(p=new g(p,y,null,n,h),m.push({event:p,listeners:k}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==To&&(y=n.relatedTarget||n.fromElement)&&(zt(y)||y[tt]))break e;if((g||p)&&(p=h.window===h?h:(p=h.ownerDocument)?p.defaultView||p.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=c,y=y?zt(y):null,y!==null&&(D=Ht(y),y!==D||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=c),g!==y)){if(k=Rs,v="onMouseLeave",f="onMouseEnter",a="mouse",(e==="pointerout"||e==="pointerover")&&(k=zs,v="onPointerLeave",f="onPointerEnter",a="pointer"),D=g==null?p:Gt(g),d=y==null?p:Gt(y),p=new k(v,a+"leave",g,n,h),p.target=D,p.relatedTarget=d,v=null,zt(h)===c&&(k=new k(f,a+"enter",y,n,h),k.target=d,k.relatedTarget=D,v=k),D=v,g&&y)t:{for(k=g,f=y,a=0,d=k;d;d=Wt(d))a++;for(d=0,v=f;v;v=Wt(v))d++;for(;0<a-d;)k=Wt(k),a--;for(;0<d-a;)f=Wt(f),d--;for(;a--;){if(k===f||f!==null&&k===f.alternate)break t;k=Wt(k),f=Wt(f)}k=null}else k=null;g!==null&&Hs(m,p,g,k,!1),y!==null&&D!==null&&Hs(m,D,y,k,!0)}}e:{if(p=c?Gt(c):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var E=Ad;else if(Is(p))if(Oa)E=jd;else{E=Id;var x=Dd}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=Md);if(E&&(E=E(e,c))){Pa(m,E,n,h);break e}x&&x(e,p,c),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&Eo(p,"number",p.value)}switch(x=c?Gt(c):window,e){case"focusin":(Is(x)||x.contentEditable==="true")&&(Xt=x,Do=c,Un=null);break;case"focusout":Un=Do=Xt=null;break;case"mousedown":Io=!0;break;case"contextmenu":case"mouseup":case"dragend":Io=!1,Us(m,n,h);break;case"selectionchange":if(Ud)break;case"keydown":case"keyup":Us(m,n,h)}var C;if(Ll)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else qt?Na(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Ca&&n.locale!=="ko"&&(qt||N!=="onCompositionStart"?N==="onCompositionEnd"&&qt&&(C=xa()):(pt=h,Pl="value"in pt?pt.value:pt.textContent,qt=!0)),x=ii(c,N),0<x.length&&(N=new Ls(N,e,null,n,h),m.push({event:N,listeners:x}),C?N.data=C:(C=Ta(n),C!==null&&(N.data=C)))),(C=Pd?Od(e,n):Rd(e,n))&&(c=ii(c,"onBeforeInput"),0<c.length&&(h=new Ls("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:c}),h.data=C))}Fa(m,t)})}function er(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ii(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Yn(e,n),o!=null&&r.unshift(er(e,o,i)),o=Yn(e,t),o!=null&&r.push(er(e,o,i))),e=e.return}return r}function Wt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hs(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&c!==null&&(s=c,i?(u=Yn(n,o),u!=null&&l.unshift(er(n,u,s))):i||(u=Yn(n,o),u!=null&&l.push(er(n,u,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Wd=/\r\n?/g,Qd=/\u0000|\uFFFD/g;function Ws(e){return(typeof e=="string"?e:""+e).replace(Wd,`
|
||
`).replace(Qd,"")}function Cr(e,t,n){if(t=Ws(t),Ws(e)!==t&&n)throw Error(w(425))}function oi(){}var Mo=null,jo=null;function Bo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fo=typeof setTimeout=="function"?setTimeout:void 0,Kd=typeof clearTimeout=="function"?clearTimeout:void 0,Qs=typeof Promise=="function"?Promise:void 0,Yd=typeof queueMicrotask=="function"?queueMicrotask:typeof Qs<"u"?function(e){return Qs.resolve(null).then(e).catch(qd)}:Fo;function qd(e){setTimeout(function(){throw e})}function to(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Jn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Jn(t)}function vt(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==="$?")break;if(t==="/$")return null}}return e}function Ks(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var kn=Math.random().toString(36).slice(2),He="__reactFiber$"+kn,tr="__reactProps$"+kn,tt="__reactContainer$"+kn,Uo="__reactEvents$"+kn,Xd="__reactListeners$"+kn,Jd="__reactHandles$"+kn;function zt(e){var t=e[He];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[He]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ks(e);e!==null;){if(n=e[He])return n;e=Ks(e)}return t}e=n,n=e.parentNode}return null}function fr(e){return e=e[He]||e[tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(w(33))}function Ni(e){return e[tr]||null}var $o=[],Zt=-1;function Nt(e){return{current:e}}function F(e){0>Zt||(e.current=$o[Zt],$o[Zt]=null,Zt--)}function j(e,t){Zt++,$o[Zt]=e.current,e.current=t}var xt={},ue=Nt(xt),me=Nt(!1),jt=xt;function dn(e,t){var n=e.type.contextTypes;if(!n)return xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ye(e){return e=e.childContextTypes,e!=null}function li(){F(me),F(ue)}function Ys(e,t,n){if(ue.current!==xt)throw Error(w(168));j(ue,t),j(me,n)}function $a(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(w(108,Df(e)||"Unknown",i));return H({},n,r)}function si(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,jt=ue.current,j(ue,e),j(me,me.current),!0}function qs(e,t,n){var r=e.stateNode;if(!r)throw Error(w(169));n?(e=$a(e,t,jt),r.__reactInternalMemoizedMergedChildContext=e,F(me),F(ue),j(ue,e)):F(me),j(me,n)}var Je=null,Ti=!1,no=!1;function Va(e){Je===null?Je=[e]:Je.push(e)}function Gd(e){Ti=!0,Va(e)}function Tt(){if(!no&&Je!==null){no=!0;var e=0,t=M;try{var n=Je;for(M=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Je=null,Ti=!1}catch(i){throw Je!==null&&(Je=Je.slice(e+1)),pa(xl,Tt),i}finally{M=t,no=!1}}return null}var bt=[],en=0,ui=null,ai=0,xe=[],Ce=0,Bt=null,Ge=1,Ze="";function Rt(e,t){bt[en++]=ai,bt[en++]=ui,ui=e,ai=t}function Ha(e,t,n){xe[Ce++]=Ge,xe[Ce++]=Ze,xe[Ce++]=Bt,Bt=e;var r=Ge;e=Ze;var i=32-Be(r)-1;r&=~(1<<i),n+=1;var o=32-Be(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Ge=1<<32-Be(t)+i|n<<i|r,Ze=o+e}else Ge=1<<o|n<<i|r,Ze=e}function Al(e){e.return!==null&&(Rt(e,1),Ha(e,1,0))}function Dl(e){for(;e===ui;)ui=bt[--en],bt[en]=null,ai=bt[--en],bt[en]=null;for(;e===Bt;)Bt=xe[--Ce],xe[Ce]=null,Ze=xe[--Ce],xe[Ce]=null,Ge=xe[--Ce],xe[Ce]=null}var ke=null,we=null,U=!1,je=null;function Wa(e,t){var n=Te(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Xs(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ke=e,we=vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ke=e,we=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Bt!==null?{id:Ge,overflow:Ze}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Te(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ke=e,we=null,!0):!1;default:return!1}}function Vo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ho(e){if(U){var t=we;if(t){var n=t;if(!Xs(e,t)){if(Vo(e))throw Error(w(418));t=vt(n.nextSibling);var r=ke;t&&Xs(e,t)?Wa(r,n):(e.flags=e.flags&-4097|2,U=!1,ke=e)}}else{if(Vo(e))throw Error(w(418));e.flags=e.flags&-4097|2,U=!1,ke=e}}}function Js(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ke=e}function Nr(e){if(e!==ke)return!1;if(!U)return Js(e),U=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bo(e.type,e.memoizedProps)),t&&(t=we)){if(Vo(e))throw Qa(),Error(w(418));for(;t;)Wa(e,t),t=vt(t.nextSibling)}if(Js(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){we=vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}we=null}}else we=ke?vt(e.stateNode.nextSibling):null;return!0}function Qa(){for(var e=we;e;)e=vt(e.nextSibling)}function pn(){we=ke=null,U=!1}function Il(e){je===null?je=[e]:je.push(e)}var Zd=it.ReactCurrentBatchConfig;function Tn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(w(309));var r=n.stateNode}if(!r)throw Error(w(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var s=i.refs;l===null?delete s[o]:s[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(w(284));if(!n._owner)throw Error(w(290,e))}return e}function Tr(e,t){throw e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gs(e){var t=e._init;return t(e._payload)}function Ka(e){function t(f,a){if(e){var d=f.deletions;d===null?(f.deletions=[a],f.flags|=16):d.push(a)}}function n(f,a){if(!e)return null;for(;a!==null;)t(f,a),a=a.sibling;return null}function r(f,a){for(f=new Map;a!==null;)a.key!==null?f.set(a.key,a):f.set(a.index,a),a=a.sibling;return f}function i(f,a){return f=Et(f,a),f.index=0,f.sibling=null,f}function o(f,a,d){return f.index=d,e?(d=f.alternate,d!==null?(d=d.index,d<a?(f.flags|=2,a):d):(f.flags|=2,a)):(f.flags|=1048576,a)}function l(f){return e&&f.alternate===null&&(f.flags|=2),f}function s(f,a,d,v){return a===null||a.tag!==6?(a=ao(d,f.mode,v),a.return=f,a):(a=i(a,d),a.return=f,a)}function u(f,a,d,v){var E=d.type;return E===Yt?h(f,a,d.props.children,v,d.key):a!==null&&(a.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===at&&Gs(E)===a.type)?(v=i(a,d.props),v.ref=Tn(f,a,d),v.return=f,v):(v=Yr(d.type,d.key,d.props,null,f.mode,v),v.ref=Tn(f,a,d),v.return=f,v)}function c(f,a,d,v){return a===null||a.tag!==4||a.stateNode.containerInfo!==d.containerInfo||a.stateNode.implementation!==d.implementation?(a=co(d,f.mode,v),a.return=f,a):(a=i(a,d.children||[]),a.return=f,a)}function h(f,a,d,v,E){return a===null||a.tag!==7?(a=Mt(d,f.mode,v,E),a.return=f,a):(a=i(a,d),a.return=f,a)}function m(f,a,d){if(typeof a=="string"&&a!==""||typeof a=="number")return a=ao(""+a,f.mode,d),a.return=f,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case yr:return d=Yr(a.type,a.key,a.props,null,f.mode,d),d.ref=Tn(f,null,a),d.return=f,d;case Kt:return a=co(a,f.mode,d),a.return=f,a;case at:var v=a._init;return m(f,v(a._payload),d)}if(zn(a)||En(a))return a=Mt(a,f.mode,d,null),a.return=f,a;Tr(f,a)}return null}function p(f,a,d,v){var E=a!==null?a.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return E!==null?null:s(f,a,""+d,v);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case yr:return d.key===E?u(f,a,d,v):null;case Kt:return d.key===E?c(f,a,d,v):null;case at:return E=d._init,p(f,a,E(d._payload),v)}if(zn(d)||En(d))return E!==null?null:h(f,a,d,v,null);Tr(f,d)}return null}function g(f,a,d,v,E){if(typeof v=="string"&&v!==""||typeof v=="number")return f=f.get(d)||null,s(a,f,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case yr:return f=f.get(v.key===null?d:v.key)||null,u(a,f,v,E);case Kt:return f=f.get(v.key===null?d:v.key)||null,c(a,f,v,E);case at:var x=v._init;return g(f,a,d,x(v._payload),E)}if(zn(v)||En(v))return f=f.get(d)||null,h(a,f,v,E,null);Tr(a,v)}return null}function y(f,a,d,v){for(var E=null,x=null,C=a,N=a=0,T=null;C!==null&&N<d.length;N++){C.index>N?(T=C,C=null):T=C.sibling;var L=p(f,C,d[N],v);if(L===null){C===null&&(C=T);break}e&&C&&L.alternate===null&&t(f,C),a=o(L,a,N),x===null?E=L:x.sibling=L,x=L,C=T}if(N===d.length)return n(f,C),U&&Rt(f,N),E;if(C===null){for(;N<d.length;N++)C=m(f,d[N],v),C!==null&&(a=o(C,a,N),x===null?E=C:x.sibling=C,x=C);return U&&Rt(f,N),E}for(C=r(f,C);N<d.length;N++)T=g(C,f,N,d[N],v),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?N:T.key),a=o(T,a,N),x===null?E=T:x.sibling=T,x=T);return e&&C.forEach(function(ie){return t(f,ie)}),U&&Rt(f,N),E}function k(f,a,d,v){var E=En(d);if(typeof E!="function")throw Error(w(150));if(d=E.call(d),d==null)throw Error(w(151));for(var x=E=null,C=a,N=a=0,T=null,L=d.next();C!==null&&!L.done;N++,L=d.next()){C.index>N?(T=C,C=null):T=C.sibling;var ie=p(f,C,L.value,v);if(ie===null){C===null&&(C=T);break}e&&C&&ie.alternate===null&&t(f,C),a=o(ie,a,N),x===null?E=ie:x.sibling=ie,x=ie,C=T}if(L.done)return n(f,C),U&&Rt(f,N),E;if(C===null){for(;!L.done;N++,L=d.next())L=m(f,L.value,v),L!==null&&(a=o(L,a,N),x===null?E=L:x.sibling=L,x=L);return U&&Rt(f,N),E}for(C=r(f,C);!L.done;N++,L=d.next())L=g(C,f,N,L.value,v),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?N:L.key),a=o(L,a,N),x===null?E=L:x.sibling=L,x=L);return e&&C.forEach(function(Le){return t(f,Le)}),U&&Rt(f,N),E}function D(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Yt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case yr:e:{for(var E=d.key,x=a;x!==null;){if(x.key===E){if(E=d.type,E===Yt){if(x.tag===7){n(f,x.sibling),a=i(x,d.props.children),a.return=f,f=a;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===at&&Gs(E)===x.type){n(f,x.sibling),a=i(x,d.props),a.ref=Tn(f,x,d),a.return=f,f=a;break e}n(f,x);break}else t(f,x);x=x.sibling}d.type===Yt?(a=Mt(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Yr(d.type,d.key,d.props,null,f.mode,v),v.ref=Tn(f,a,d),v.return=f,f=v)}return l(f);case Kt:e:{for(x=d.key;a!==null;){if(a.key===x)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=i(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=co(d,f.mode,v),a.return=f,f=a}return l(f);case at:return x=d._init,D(f,a,x(d._payload),v)}if(zn(d))return y(f,a,d,v);if(En(d))return k(f,a,d,v);Tr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=i(a,d),a.return=f,f=a):(n(f,a),a=ao(d,f.mode,v),a.return=f,f=a),l(f)):n(f,a)}return D}var hn=Ka(!0),Ya=Ka(!1),ci=Nt(null),fi=null,tn=null,Ml=null;function jl(){Ml=tn=fi=null}function Bl(e){var t=ci.current;F(ci),e._currentValue=t}function Wo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function an(e,t){fi=e,Ml=tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(he=!0),e.firstContext=null)}function Oe(e){var t=e._currentValue;if(Ml!==e)if(e={context:e,memoizedValue:t,next:null},tn===null){if(fi===null)throw Error(w(308));tn=e,fi.dependencies={lanes:0,firstContext:e}}else tn=tn.next=e;return t}var At=null;function Fl(e){At===null?At=[e]:At.push(e)}function qa(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Fl(t)):(n.next=i.next,i.next=n),t.interleaved=n,nt(e,r)}function nt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ct=!1;function Ul(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function be(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,nt(e,n)}return i=r.interleaved,i===null?(t.next=t,Fl(r)):(t.next=i.next,i.next=t),r.interleaved=t,nt(e,n)}function $r(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cl(e,n)}}function Zs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function di(e,t,n,r){var i=e.updateQueue;ct=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,c=u.next;u.next=null,l===null?o=c:l.next=c,l=u;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==l&&(s===null?h.firstBaseUpdate=c:s.next=c,h.lastBaseUpdate=u))}if(o!==null){var m=i.baseState;l=0,h=c=u=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,k=s;switch(p=t,g=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){m=y.call(g,m,p);break e}m=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,p=typeof y=="function"?y.call(g,m,p):y,p==null)break e;m=H({},m,p);break e;case 2:ct=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(c=h=g,u=m):h=h.next=g,l|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(h===null&&(u=m),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ut|=l,e.lanes=l,e.memoizedState=m}}function bs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(w(191,i));i.call(r)}}}var dr={},Qe=Nt(dr),nr=Nt(dr),rr=Nt(dr);function Dt(e){if(e===dr)throw Error(w(174));return e}function $l(e,t){switch(j(rr,t),j(nr,e),j(Qe,dr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xo(t,e)}F(Qe),j(Qe,t)}function mn(){F(Qe),F(nr),F(rr)}function Ja(e){Dt(rr.current);var t=Dt(Qe.current),n=xo(t,e.type);t!==n&&(j(nr,e),j(Qe,n))}function Vl(e){nr.current===e&&(F(Qe),F(nr))}var $=Nt(0);function pi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 ro=[];function Hl(){for(var e=0;e<ro.length;e++)ro[e]._workInProgressVersionPrimary=null;ro.length=0}var Vr=it.ReactCurrentDispatcher,io=it.ReactCurrentBatchConfig,Ft=0,V=null,J=null,b=null,hi=!1,$n=!1,ir=0,bd=0;function oe(){throw Error(w(321))}function Wl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ue(e[n],t[n]))return!1;return!0}function Ql(e,t,n,r,i,o){if(Ft=o,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vr.current=e===null||e.memoizedState===null?rp:ip,e=n(r,i),$n){o=0;do{if($n=!1,ir=0,25<=o)throw Error(w(301));o+=1,b=J=null,t.updateQueue=null,Vr.current=op,e=n(r,i)}while($n)}if(Vr.current=mi,t=J!==null&&J.next!==null,Ft=0,b=J=V=null,hi=!1,t)throw Error(w(300));return e}function Kl(){var e=ir!==0;return ir=0,e}function Ve(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?V.memoizedState=b=e:b=b.next=e,b}function Re(){if(J===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=J.next;var t=b===null?V.memoizedState:b.next;if(t!==null)b=t,J=e;else{if(e===null)throw Error(w(310));J=e,e={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},b===null?V.memoizedState=b=e:b=b.next=e}return b}function or(e,t){return typeof t=="function"?t(e):t}function oo(e){var t=Re(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var r=J,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=l=null,u=null,c=o;do{var h=c.lane;if((Ft&h)===h)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var m={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(s=u=m,l=r):u=u.next=m,V.lanes|=h,Ut|=h}c=c.next}while(c!==null&&c!==o);u===null?l=r:u.next=s,Ue(r,t.memoizedState)||(he=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,V.lanes|=o,Ut|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function lo(e){var t=Re(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);Ue(o,t.memoizedState)||(he=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ga(){}function Za(e,t){var n=V,r=Re(),i=t(),o=!Ue(r.memoizedState,i);if(o&&(r.memoizedState=i,he=!0),r=r.queue,Yl(tc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,lr(9,ec.bind(null,n,r,i,t),void 0,null),ee===null)throw Error(w(349));Ft&30||ba(n,t,i)}return i}function ba(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ec(e,t,n,r){t.value=n,t.getSnapshot=r,nc(t)&&rc(e)}function tc(e,t,n){return n(function(){nc(t)&&rc(e)})}function nc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ue(e,n)}catch{return!0}}function rc(e){var t=nt(e,1);t!==null&&Fe(t,e,1,-1)}function eu(e){var t=Ve();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:e},t.queue=e,e=e.dispatch=np.bind(null,V,e),[t.memoizedState,e]}function lr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ic(){return Re().memoizedState}function Hr(e,t,n,r){var i=Ve();V.flags|=e,i.memoizedState=lr(1|t,n,void 0,r===void 0?null:r)}function Pi(e,t,n,r){var i=Re();r=r===void 0?null:r;var o=void 0;if(J!==null){var l=J.memoizedState;if(o=l.destroy,r!==null&&Wl(r,l.deps)){i.memoizedState=lr(t,n,o,r);return}}V.flags|=e,i.memoizedState=lr(1|t,n,o,r)}function tu(e,t){return Hr(8390656,8,e,t)}function Yl(e,t){return Pi(2048,8,e,t)}function oc(e,t){return Pi(4,2,e,t)}function lc(e,t){return Pi(4,4,e,t)}function sc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uc(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4,4,sc.bind(null,t,e),n)}function ql(){}function ac(e,t){var n=Re();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cc(e,t){var n=Re();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fc(e,t,n){return Ft&21?(Ue(n,t)||(n=ya(),V.lanes|=n,Ut|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,he=!0),e.memoizedState=n)}function ep(e,t){var n=M;M=n!==0&&4>n?n:4,e(!0);var r=io.transition;io.transition={};try{e(!1),t()}finally{M=n,io.transition=r}}function dc(){return Re().memoizedState}function tp(e,t,n){var r=St(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pc(e))hc(t,n);else if(n=qa(e,t,n,r),n!==null){var i=ce();Fe(n,e,r,i),mc(n,t,r)}}function np(e,t,n){var r=St(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pc(e))hc(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,Ue(s,l)){var u=t.interleaved;u===null?(i.next=i,Fl(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=qa(e,t,i,r),n!==null&&(i=ce(),Fe(n,e,r,i),mc(n,t,r))}}function pc(e){var t=e.alternate;return e===V||t!==null&&t===V}function hc(e,t){$n=hi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cl(e,n)}}var mi={readContext:Oe,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},rp={readContext:Oe,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:tu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hr(4194308,4,sc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hr(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tp.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:eu,useDebugValue:ql,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=eu(!1),t=e[0];return e=ep.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,i=Ve();if(U){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),ee===null)throw Error(w(349));Ft&30||ba(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,tu(tc.bind(null,r,o,e),[e]),r.flags|=2048,lr(9,ec.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ee.identifierPrefix;if(U){var n=Ze,r=Ge;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ir++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ip={readContext:Oe,useCallback:ac,useContext:Oe,useEffect:Yl,useImperativeHandle:uc,useInsertionEffect:oc,useLayoutEffect:lc,useMemo:cc,useReducer:oo,useRef:ic,useState:function(){return oo(or)},useDebugValue:ql,useDeferredValue:function(e){var t=Re();return fc(t,J.memoizedState,e)},useTransition:function(){var e=oo(or)[0],t=Re().memoizedState;return[e,t]},useMutableSource:Ga,useSyncExternalStore:Za,useId:dc,unstable_isNewReconciler:!1},op={readContext:Oe,useCallback:ac,useContext:Oe,useEffect:Yl,useImperativeHandle:uc,useInsertionEffect:oc,useLayoutEffect:lc,useMemo:cc,useReducer:lo,useRef:ic,useState:function(){return lo(or)},useDebugValue:ql,useDeferredValue:function(e){var t=Re();return J===null?t.memoizedState=e:fc(t,J.memoizedState,e)},useTransition:function(){var e=lo(or)[0],t=Re().memoizedState;return[e,t]},useMutableSource:Ga,useSyncExternalStore:Za,useId:dc,unstable_isNewReconciler:!1};function De(e,t){if(e&&e.defaultProps){t=H({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Qo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:H({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Oi={isMounted:function(e){return(e=e._reactInternals)?Ht(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ce(),i=St(e),o=be(r,i);o.payload=t,n!=null&&(o.callback=n),t=wt(e,o,i),t!==null&&(Fe(t,e,i,r),$r(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ce(),i=St(e),o=be(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=wt(e,o,i),t!==null&&(Fe(t,e,i,r),$r(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ce(),r=St(e),i=be(n,r);i.tag=2,t!=null&&(i.callback=t),t=wt(e,i,r),t!==null&&(Fe(t,e,r,n),$r(t,e,r))}};function nu(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Zn(n,r)||!Zn(i,o):!0}function yc(e,t,n){var r=!1,i=xt,o=t.contextType;return typeof o=="object"&&o!==null?o=Oe(o):(i=ye(t)?jt:ue.current,r=t.contextTypes,o=(r=r!=null)?dn(e,i):xt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ru(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oi.enqueueReplaceState(t,t.state,null)}function Ko(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ul(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Oe(o):(o=ye(t)?jt:ue.current,i.context=dn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Qo(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Oi.enqueueReplaceState(i,i.state,null),di(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function yn(e,t){try{var n="",r=t;do n+=Af(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function so(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lp=typeof WeakMap=="function"?WeakMap:Map;function gc(e,t,n){n=be(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gi||(gi=!0,rl=r),Yo(e,t)},n}function vc(e,t,n){n=be(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Yo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Yo(e,t),typeof r!="function"&&(kt===null?kt=new Set([this]):kt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function iu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lp;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=kp.bind(null,e,t,n),t.then(e,e))}function ou(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lu(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=be(-1,1),t.tag=2,wt(n,t,1))),n.lanes|=1),e)}var sp=it.ReactCurrentOwner,he=!1;function ae(e,t,n,r){t.child=e===null?Ya(t,null,n,r):hn(t,e.child,n,r)}function su(e,t,n,r,i){n=n.render;var o=t.ref;return an(t,i),r=Ql(e,t,n,r,o,i),n=Kl(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rt(e,t,i)):(U&&n&&Al(t),t.flags|=1,ae(e,t,r,i),t.child)}function uu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!ns(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,wc(e,t,o,r,i)):(e=Yr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Zn,n(l,r)&&e.ref===t.ref)return rt(e,t,i)}return t.flags|=1,e=Et(o,r),e.ref=t.ref,e.return=t,t.child=e}function wc(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref)if(he=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(he=!0);else return t.lanes=e.lanes,rt(e,t,i)}return qo(e,t,n,r,i)}function kc(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},j(rn,ve),ve|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,j(rn,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,j(rn,ve),ve|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,j(rn,ve),ve|=r;return ae(e,t,i,n),t.child}function Sc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qo(e,t,n,r,i){var o=ye(n)?jt:ue.current;return o=dn(t,o),an(t,i),n=Ql(e,t,n,r,o,i),r=Kl(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rt(e,t,i)):(U&&r&&Al(t),t.flags|=1,ae(e,t,n,i),t.child)}function au(e,t,n,r,i){if(ye(n)){var o=!0;si(t)}else o=!1;if(an(t,i),t.stateNode===null)Wr(e,t),yc(t,n,r),Ko(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var u=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=Oe(c):(c=ye(n)?jt:ue.current,c=dn(t,c));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||u!==c)&&ru(t,l,r,c),ct=!1;var p=t.memoizedState;l.state=p,di(t,r,l,i),u=t.memoizedState,s!==r||p!==u||me.current||ct?(typeof h=="function"&&(Qo(t,n,h,r),u=t.memoizedState),(s=ct||nu(t,n,s,r,p,u,c))?(m||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=c,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Xa(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:De(t.type,s),l.props=c,m=t.pendingProps,p=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Oe(u):(u=ye(n)?jt:ue.current,u=dn(t,u));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==m||p!==u)&&ru(t,l,r,u),ct=!1,p=t.memoizedState,l.state=p,di(t,r,l,i);var y=t.memoizedState;s!==m||p!==y||me.current||ct?(typeof g=="function"&&(Qo(t,n,g,r),y=t.memoizedState),(c=ct||nu(t,n,c,r,p,y,u)||!1)?(h||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=u,r=c):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Xo(e,t,n,r,o,i)}function Xo(e,t,n,r,i,o){Sc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&qs(t,n,!1),rt(e,t,o);r=t.stateNode,sp.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=hn(t,e.child,null,o),t.child=hn(t,null,s,o)):ae(e,t,s,o),t.memoizedState=r.state,i&&qs(t,n,!0),t.child}function Ec(e){var t=e.stateNode;t.pendingContext?Ys(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ys(e,t.context,!1),$l(e,t.containerInfo)}function cu(e,t,n,r,i){return pn(),Il(i),t.flags|=256,ae(e,t,n,r),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0};function Go(e){return{baseLanes:e,cachePool:null,transitions:null}}function _c(e,t,n){var r=t.pendingProps,i=$.current,o=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),j($,i&1),e===null)return Ho(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=zi(l,r,0,null),e=Mt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Go(n),t.memoizedState=Jo,e):Xl(t,l));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return up(e,t,l,r,s,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Et(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Et(s,o):(o=Mt(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Go(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Jo,r}return o=e.child,e=o.sibling,r=Et(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xl(e,t){return t=zi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pr(e,t,n,r){return r!==null&&Il(r),hn(t,e.child,null,n),e=Xl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function up(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=so(Error(w(422))),Pr(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=zi({mode:"visible",children:r.children},i,0,null),o=Mt(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&hn(t,e.child,null,l),t.child.memoizedState=Go(l),t.memoizedState=Jo,o);if(!(t.mode&1))return Pr(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(w(419)),r=so(o,r,void 0),Pr(e,t,l,r)}if(s=(l&e.childLanes)!==0,he||s){if(r=ee,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,nt(e,i),Fe(r,e,i,-1))}return ts(),r=so(Error(w(421))),Pr(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Sp.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,we=vt(i.nextSibling),ke=t,U=!0,je=null,e!==null&&(xe[Ce++]=Ge,xe[Ce++]=Ze,xe[Ce++]=Bt,Ge=e.id,Ze=e.overflow,Bt=t),t=Xl(t,r.children),t.flags|=4096,t)}function fu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wo(e.return,t,n)}function uo(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function xc(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ae(e,t,r.children,n),r=$.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fu(e,n,t);else if(e.tag===19)fu(e,n,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}r&=1}if(j($,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uo(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uo(t,!0,n,null,o);break;case"together":uo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ut|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=Et(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Et(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ap(e,t,n){switch(t.tag){case 3:Ec(t),pn();break;case 5:Ja(t);break;case 1:ye(t.type)&&si(t);break;case 4:$l(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;j(ci,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(j($,$.current&1),t.flags|=128,null):n&t.child.childLanes?_c(e,t,n):(j($,$.current&1),e=rt(e,t,n),e!==null?e.sibling:null);j($,$.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),j($,$.current),r)break;return null;case 22:case 23:return t.lanes=0,kc(e,t,n)}return rt(e,t,n)}var Cc,Zo,Nc,Tc;Cc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Zo=function(){};Nc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Dt(Qe.current);var o=null;switch(n){case"input":i=ko(e,i),r=ko(e,r),o=[];break;case"select":i=H({},i,{value:void 0}),r=H({},r,{value:void 0}),o=[];break;case"textarea":i=_o(e,i),r=_o(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=oi)}Co(n,r);var l;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Qn.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Qn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&B("scroll",e),o||s===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Tc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Pn(e,t){if(!U)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cp(e,t,n){var r=t.pendingProps;switch(Dl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(t),null;case 1:return ye(t.type)&&li(),le(t),null;case 3:return r=t.stateNode,mn(),F(me),F(ue),Hl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Nr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,je!==null&&(ll(je),je=null))),Zo(e,t),le(t),null;case 5:Vl(t);var i=Dt(rr.current);if(n=t.type,e!==null&&t.stateNode!=null)Nc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(w(166));return le(t),null}if(e=Dt(Qe.current),Nr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[He]=t,r[tr]=o,e=(t.mode&1)!==0,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("load",r);break;case"video":case"audio":for(i=0;i<Dn.length;i++)B(Dn[i],r);break;case"source":B("error",r);break;case"img":case"image":case"link":B("error",r),B("load",r);break;case"details":B("toggle",r);break;case"input":ks(r,o),B("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},B("invalid",r);break;case"textarea":Es(r,o),B("invalid",r)}Co(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var s=o[l];l==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Cr(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Cr(r.textContent,s,e),i=["children",""+s]):Qn.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&B("scroll",r)}switch(n){case"input":gr(r),Ss(r,o,!0);break;case"textarea":gr(r),_s(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=oi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ta(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[He]=t,e[tr]=r,Cc(e,t,!1,!1),t.stateNode=e;e:{switch(l=No(n,r),n){case"dialog":B("cancel",e),B("close",e),i=r;break;case"iframe":case"object":case"embed":B("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dn.length;i++)B(Dn[i],e);i=r;break;case"source":B("error",e),i=r;break;case"img":case"image":case"link":B("error",e),B("load",e),i=r;break;case"details":B("toggle",e),i=r;break;case"input":ks(e,r),i=ko(e,r),B("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=H({},r,{value:void 0}),B("invalid",e);break;case"textarea":Es(e,r),i=_o(e,r),B("invalid",e);break;default:i=r}Co(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?ia(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&na(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Kn(e,u):typeof u=="number"&&Kn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Qn.hasOwnProperty(o)?u!=null&&o==="onScroll"&&B("scroll",e):u!=null&&wl(e,o,u,l))}switch(n){case"input":gr(e),Ss(e,r,!1);break;case"textarea":gr(e),_s(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_t(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?on(e,!!r.multiple,o,!1):r.defaultValue!=null&&on(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=oi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return le(t),null;case 6:if(e&&t.stateNode!=null)Tc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(w(166));if(n=Dt(rr.current),Dt(Qe.current),Nr(t)){if(r=t.stateNode,n=t.memoizedProps,r[He]=t,(o=r.nodeValue!==n)&&(e=ke,e!==null))switch(e.tag){case 3:Cr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[He]=t,t.stateNode=r}return le(t),null;case 13:if(F($),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(U&&we!==null&&t.mode&1&&!(t.flags&128))Qa(),pn(),t.flags|=98560,o=!1;else if(o=Nr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(w(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(w(317));o[He]=t}else pn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;le(t),o=!1}else je!==null&&(ll(je),je=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||$.current&1?G===0&&(G=3):ts())),t.updateQueue!==null&&(t.flags|=4),le(t),null);case 4:return mn(),Zo(e,t),e===null&&bn(t.stateNode.containerInfo),le(t),null;case 10:return Bl(t.type._context),le(t),null;case 17:return ye(t.type)&&li(),le(t),null;case 19:if(F($),o=t.memoizedState,o===null)return le(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)Pn(o,!1);else{if(G!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=pi(e),l!==null){for(t.flags|=128,Pn(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return j($,$.current&1|2),t.child}e=e.sibling}o.tail!==null&&K()>gn&&(t.flags|=128,r=!0,Pn(o,!1),t.lanes=4194304)}else{if(!r)if(e=pi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!U)return le(t),null}else 2*K()-o.renderingStartTime>gn&&n!==1073741824&&(t.flags|=128,r=!0,Pn(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=$.current,j($,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return es(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(w(156,t.tag))}function fp(e,t){switch(Dl(t),t.tag){case 1:return ye(t.type)&&li(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(),F(me),F(ue),Hl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vl(t),null;case 13:if(F($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F($),null;case 4:return mn(),null;case 10:return Bl(t.type._context),null;case 22:case 23:return es(),null;case 24:return null;default:return null}}var Or=!1,se=!1,dp=typeof WeakSet=="function"?WeakSet:Set,_=null;function nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function bo(e,t,n){try{n()}catch(r){W(e,t,r)}}var du=!1;function pp(e,t){if(Mo=ni,e=za(),zl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,c=0,h=0,m=e,p=null;t:for(;;){for(var g;m!==n||i!==0&&m.nodeType!==3||(s=l+i),m!==o||r!==0&&m.nodeType!==3||(u=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===i&&(s=l),p===o&&++h===r&&(u=l),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:e,selectionRange:n},ni=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,D=y.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:De(t.type,k),D);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(w(163))}}catch(v){W(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return y=du,du=!1,y}function Vn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&bo(t,n,o)}i=i.next}while(i!==r)}}function Ri(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function el(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Pc(e){var t=e.alternate;t!==null&&(e.alternate=null,Pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[tr],delete t[Uo],delete t[Xd],delete t[Jd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Oc(e){return e.tag===5||e.tag===3||e.tag===4}function pu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(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.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 tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=oi));else if(r!==4&&(e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}var te=null,Ie=!1;function st(e,t,n){for(n=n.child;n!==null;)Rc(e,t,n),n=n.sibling}function Rc(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(Ei,n)}catch{}switch(n.tag){case 5:se||nn(n,t);case 6:var r=te,i=Ie;te=null,st(e,t,n),te=r,Ie=i,te!==null&&(Ie?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Ie?(e=te,n=n.stateNode,e.nodeType===8?to(e.parentNode,n):e.nodeType===1&&to(e,n),Jn(e)):to(te,n.stateNode));break;case 4:r=te,i=Ie,te=n.stateNode.containerInfo,Ie=!0,st(e,t,n),te=r,Ie=i;break;case 0:case 11:case 14:case 15:if(!se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&bo(n,t,l),i=i.next}while(i!==r)}st(e,t,n);break;case 1:if(!se&&(nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){W(n,t,s)}st(e,t,n);break;case 21:st(e,t,n);break;case 22:n.mode&1?(se=(r=se)||n.memoizedState!==null,st(e,t,n),se=r):st(e,t,n);break;default:st(e,t,n)}}function hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dp),t.forEach(function(r){var i=Ep.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ae(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:te=s.stateNode,Ie=!1;break e;case 3:te=s.stateNode.containerInfo,Ie=!0;break e;case 4:te=s.stateNode.containerInfo,Ie=!0;break e}s=s.return}if(te===null)throw Error(w(160));Rc(o,l,i),te=null,Ie=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(c){W(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lc(t,e),t=t.sibling}function Lc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ae(t,e),$e(e),r&4){try{Vn(3,e,e.return),Ri(3,e)}catch(k){W(e,e.return,k)}try{Vn(5,e,e.return)}catch(k){W(e,e.return,k)}}break;case 1:Ae(t,e),$e(e),r&512&&n!==null&&nn(n,n.return);break;case 5:if(Ae(t,e),$e(e),r&512&&n!==null&&nn(n,n.return),e.flags&32){var i=e.stateNode;try{Kn(i,"")}catch(k){W(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&bu(i,o),No(s,l);var c=No(s,o);for(l=0;l<u.length;l+=2){var h=u[l],m=u[l+1];h==="style"?ia(i,m):h==="dangerouslySetInnerHTML"?na(i,m):h==="children"?Kn(i,m):wl(i,h,m,c)}switch(s){case"input":So(i,o);break;case"textarea":ea(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?on(i,!!o.multiple,g,!1):p!==!!o.multiple&&(o.defaultValue!=null?on(i,!!o.multiple,o.defaultValue,!0):on(i,!!o.multiple,o.multiple?[]:"",!1))}i[tr]=o}catch(k){W(e,e.return,k)}}break;case 6:if(Ae(t,e),$e(e),r&4){if(e.stateNode===null)throw Error(w(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(k){W(e,e.return,k)}}break;case 3:if(Ae(t,e),$e(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Jn(t.containerInfo)}catch(k){W(e,e.return,k)}break;case 4:Ae(t,e),$e(e);break;case 13:Ae(t,e),$e(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Zl=K())),r&4&&hu(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(se=(c=se)||h,Ae(t,e),se=c):Ae(t,e),$e(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(_=e,h=e.child;h!==null;){for(m=_=h;_!==null;){switch(p=_,g=p.child,p.tag){case 0:case 11:case 14:case 15:Vn(4,p,p.return);break;case 1:nn(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(k){W(r,n,k)}}break;case 5:nn(p,p.return);break;case 22:if(p.memoizedState!==null){yu(m);continue}}g!==null?(g.return=p,_=g):yu(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{i=m.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=m.stateNode,u=m.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=ra("display",l))}catch(k){W(e,e.return,k)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=c?"":m.memoizedProps}catch(k){W(e,e.return,k)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ae(t,e),$e(e),r&4&&hu(e);break;case 21:break;default:Ae(t,e),$e(e)}}function $e(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Oc(n)){var r=n;break e}n=n.return}throw Error(w(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Kn(i,""),r.flags&=-33);var o=pu(e);nl(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,s=pu(e);tl(e,s,l);break;default:throw Error(w(161))}}catch(u){W(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hp(e,t,n){_=e,zc(e)}function zc(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var i=_,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Or;if(!l){var s=i.alternate,u=s!==null&&s.memoizedState!==null||se;s=Or;var c=se;if(Or=l,(se=u)&&!c)for(_=i;_!==null;)l=_,u=l.child,l.tag===22&&l.memoizedState!==null?gu(i):u!==null?(u.return=l,_=u):gu(i);for(;o!==null;)_=o,zc(o),o=o.sibling;_=i,Or=s,se=c}mu(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,_=o):mu(e)}}function mu(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:se||Ri(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!se)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:De(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&bs(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}bs(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&Jn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(w(163))}se||t.flags&512&&el(t)}catch(p){W(t,t.return,p)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function yu(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function gu(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ri(4,t)}catch(u){W(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){W(t,i,u)}}var o=t.return;try{el(t)}catch(u){W(t,o,u)}break;case 5:var l=t.return;try{el(t)}catch(u){W(t,l,u)}}}catch(u){W(t,t.return,u)}if(t===e){_=null;break}var s=t.sibling;if(s!==null){s.return=t.return,_=s;break}_=t.return}}var mp=Math.ceil,yi=it.ReactCurrentDispatcher,Jl=it.ReactCurrentOwner,Pe=it.ReactCurrentBatchConfig,I=0,ee=null,Y=null,ne=0,ve=0,rn=Nt(0),G=0,sr=null,Ut=0,Li=0,Gl=0,Hn=null,pe=null,Zl=0,gn=1/0,Xe=null,gi=!1,rl=null,kt=null,Rr=!1,ht=null,vi=0,Wn=0,il=null,Qr=-1,Kr=0;function ce(){return I&6?K():Qr!==-1?Qr:Qr=K()}function St(e){return e.mode&1?I&2&&ne!==0?ne&-ne:Zd.transition!==null?(Kr===0&&(Kr=ya()),Kr):(e=M,e!==0||(e=window.event,e=e===void 0?16:_a(e.type)),e):1}function Fe(e,t,n,r){if(50<Wn)throw Wn=0,il=null,Error(w(185));ar(e,n,r),(!(I&2)||e!==ee)&&(e===ee&&(!(I&2)&&(Li|=n),G===4&&dt(e,ne)),ge(e,r),n===1&&I===0&&!(t.mode&1)&&(gn=K()+500,Ti&&Tt()))}function ge(e,t){var n=e.callbackNode;Zf(e,t);var r=ti(e,e===ee?ne:0);if(r===0)n!==null&&Ns(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ns(n),t===1)e.tag===0?Gd(vu.bind(null,e)):Va(vu.bind(null,e)),Yd(function(){!(I&6)&&Tt()}),n=null;else{switch(ga(r)){case 1:n=xl;break;case 4:n=ha;break;case 16:n=ei;break;case 536870912:n=ma;break;default:n=ei}n=Uc(n,Ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ac(e,t){if(Qr=-1,Kr=0,I&6)throw Error(w(327));var n=e.callbackNode;if(cn()&&e.callbackNode!==n)return null;var r=ti(e,e===ee?ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=wi(e,r);else{t=r;var i=I;I|=2;var o=Ic();(ee!==e||ne!==t)&&(Xe=null,gn=K()+500,It(e,t));do try{vp();break}catch(s){Dc(e,s)}while(!0);jl(),yi.current=o,I=i,Y!==null?t=0:(ee=null,ne=0,t=G)}if(t!==0){if(t===2&&(i=Lo(e),i!==0&&(r=i,t=ol(e,i))),t===1)throw n=sr,It(e,0),dt(e,r),ge(e,K()),n;if(t===6)dt(e,r);else{if(i=e.current.alternate,!(r&30)&&!yp(i)&&(t=wi(e,r),t===2&&(o=Lo(e),o!==0&&(r=o,t=ol(e,o))),t===1))throw n=sr,It(e,0),dt(e,r),ge(e,K()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(w(345));case 2:Lt(e,pe,Xe);break;case 3:if(dt(e,r),(r&130023424)===r&&(t=Zl+500-K(),10<t)){if(ti(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Fo(Lt.bind(null,e,pe,Xe),t);break}Lt(e,pe,Xe);break;case 4:if(dt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Be(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mp(r/1960))-r,10<r){e.timeoutHandle=Fo(Lt.bind(null,e,pe,Xe),r);break}Lt(e,pe,Xe);break;case 5:Lt(e,pe,Xe);break;default:throw Error(w(329))}}}return ge(e,K()),e.callbackNode===n?Ac.bind(null,e):null}function ol(e,t){var n=Hn;return e.current.memoizedState.isDehydrated&&(It(e,t).flags|=256),e=wi(e,t),e!==2&&(t=pe,pe=n,t!==null&&ll(t)),e}function ll(e){pe===null?pe=e:pe.push.apply(pe,e)}function yp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Ue(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 dt(e,t){for(t&=~Gl,t&=~Li,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Be(t),r=1<<n;e[n]=-1,t&=~r}}function vu(e){if(I&6)throw Error(w(327));cn();var t=ti(e,0);if(!(t&1))return ge(e,K()),null;var n=wi(e,t);if(e.tag!==0&&n===2){var r=Lo(e);r!==0&&(t=r,n=ol(e,r))}if(n===1)throw n=sr,It(e,0),dt(e,t),ge(e,K()),n;if(n===6)throw Error(w(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Lt(e,pe,Xe),ge(e,K()),null}function bl(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(gn=K()+500,Ti&&Tt())}}function $t(e){ht!==null&&ht.tag===0&&!(I&6)&&cn();var t=I;I|=1;var n=Pe.transition,r=M;try{if(Pe.transition=null,M=1,e)return e()}finally{M=r,Pe.transition=n,I=t,!(I&6)&&Tt()}}function es(){ve=rn.current,F(rn)}function It(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Kd(n)),Y!==null)for(n=Y.return;n!==null;){var r=n;switch(Dl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&li();break;case 3:mn(),F(me),F(ue),Hl();break;case 5:Vl(r);break;case 4:mn();break;case 13:F($);break;case 19:F($);break;case 10:Bl(r.type._context);break;case 22:case 23:es()}n=n.return}if(ee=e,Y=e=Et(e.current,null),ne=ve=t,G=0,sr=null,Gl=Li=Ut=0,pe=Hn=null,At!==null){for(t=0;t<At.length;t++)if(n=At[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}At=null}return e}function Dc(e,t){do{var n=Y;try{if(jl(),Vr.current=mi,hi){for(var r=V.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}hi=!1}if(Ft=0,b=J=V=null,$n=!1,ir=0,Jl.current=null,n===null||n.return===null){G=1,sr=t,Y=null;break}e:{var o=e,l=n.return,s=n,u=t;if(t=ne,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,h=s,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=ou(l);if(g!==null){g.flags&=-257,lu(g,l,s,o,t),g.mode&1&&iu(o,c,t),t=g,u=c;var y=t.updateQueue;if(y===null){var k=new Set;k.add(u),t.updateQueue=k}else y.add(u);break e}else{if(!(t&1)){iu(o,c,t),ts();break e}u=Error(w(426))}}else if(U&&s.mode&1){var D=ou(l);if(D!==null){!(D.flags&65536)&&(D.flags|=256),lu(D,l,s,o,t),Il(yn(u,s));break e}}o=u=yn(u,s),G!==4&&(G=2),Hn===null?Hn=[o]:Hn.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=gc(o,u,t);Zs(o,f);break e;case 1:s=u;var a=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(kt===null||!kt.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=vc(o,s,t);Zs(o,v);break e}}o=o.return}while(o!==null)}jc(n)}catch(E){t=E,Y===n&&n!==null&&(Y=n=n.return);continue}break}while(!0)}function Ic(){var e=yi.current;return yi.current=mi,e===null?mi:e}function ts(){(G===0||G===3||G===2)&&(G=4),ee===null||!(Ut&268435455)&&!(Li&268435455)||dt(ee,ne)}function wi(e,t){var n=I;I|=2;var r=Ic();(ee!==e||ne!==t)&&(Xe=null,It(e,t));do try{gp();break}catch(i){Dc(e,i)}while(!0);if(jl(),I=n,yi.current=r,Y!==null)throw Error(w(261));return ee=null,ne=0,G}function gp(){for(;Y!==null;)Mc(Y)}function vp(){for(;Y!==null&&!Hf();)Mc(Y)}function Mc(e){var t=Fc(e.alternate,e,ve);e.memoizedProps=e.pendingProps,t===null?jc(e):Y=t,Jl.current=null}function jc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=fp(n,t),n!==null){n.flags&=32767,Y=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{G=6,Y=null;return}}else if(n=cp(n,t,ve),n!==null){Y=n;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);G===0&&(G=5)}function Lt(e,t,n){var r=M,i=Pe.transition;try{Pe.transition=null,M=1,wp(e,t,n,r)}finally{Pe.transition=i,M=r}return null}function wp(e,t,n,r){do cn();while(ht!==null);if(I&6)throw Error(w(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(w(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(bf(e,o),e===ee&&(Y=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Rr||(Rr=!0,Uc(ei,function(){return cn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Pe.transition,Pe.transition=null;var l=M;M=1;var s=I;I|=4,Jl.current=null,pp(e,n),Lc(n,e),Fd(jo),ni=!!Mo,jo=Mo=null,e.current=n,hp(n),Wf(),I=s,M=l,Pe.transition=o}else e.current=n;if(Rr&&(Rr=!1,ht=e,vi=i),o=e.pendingLanes,o===0&&(kt=null),Yf(n.stateNode),ge(e,K()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(gi)throw gi=!1,e=rl,rl=null,e;return vi&1&&e.tag!==0&&cn(),o=e.pendingLanes,o&1?e===il?Wn++:(Wn=0,il=e):Wn=0,Tt(),null}function cn(){if(ht!==null){var e=ga(vi),t=Pe.transition,n=M;try{if(Pe.transition=null,M=16>e?16:e,ht===null)var r=!1;else{if(e=ht,ht=null,vi=0,I&6)throw Error(w(331));var i=I;for(I|=4,_=e.current;_!==null;){var o=_,l=o.child;if(_.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var c=s[u];for(_=c;_!==null;){var h=_;switch(h.tag){case 0:case 11:case 15:Vn(8,h,o)}var m=h.child;if(m!==null)m.return=h,_=m;else for(;_!==null;){h=_;var p=h.sibling,g=h.return;if(Pc(h),h===c){_=null;break}if(p!==null){p.return=g,_=p;break}_=g}}}var y=o.alternate;if(y!==null){var k=y.child;if(k!==null){y.child=null;do{var D=k.sibling;k.sibling=null,k=D}while(k!==null)}}_=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,_=l;else e:for(;_!==null;){if(o=_,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Vn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,_=f;break e}_=o.return}}var a=e.current;for(_=a;_!==null;){l=_;var d=l.child;if(l.subtreeFlags&2064&&d!==null)d.return=l,_=d;else e:for(l=a;_!==null;){if(s=_,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ri(9,s)}}catch(E){W(s,s.return,E)}if(s===l){_=null;break e}var v=s.sibling;if(v!==null){v.return=s.return,_=v;break e}_=s.return}}if(I=i,Tt(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(Ei,e)}catch{}r=!0}return r}finally{M=n,Pe.transition=t}}return!1}function wu(e,t,n){t=yn(n,t),t=gc(e,t,1),e=wt(e,t,1),t=ce(),e!==null&&(ar(e,1,t),ge(e,t))}function W(e,t,n){if(e.tag===3)wu(e,e,n);else for(;t!==null;){if(t.tag===3){wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kt===null||!kt.has(r))){e=yn(n,e),e=vc(t,e,1),t=wt(t,e,1),e=ce(),t!==null&&(ar(t,1,e),ge(t,e));break}}t=t.return}}function kp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(ne&n)===n&&(G===4||G===3&&(ne&130023424)===ne&&500>K()-Zl?It(e,0):Gl|=n),ge(e,t)}function Bc(e,t){t===0&&(e.mode&1?(t=kr,kr<<=1,!(kr&130023424)&&(kr=4194304)):t=1);var n=ce();e=nt(e,t),e!==null&&(ar(e,t,n),ge(e,n))}function Sp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bc(e,n)}function Ep(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(w(314))}r!==null&&r.delete(t),Bc(e,n)}var Fc;Fc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,ap(e,t,n);he=!!(e.flags&131072)}else he=!1,U&&t.flags&1048576&&Ha(t,ai,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wr(e,t),e=t.pendingProps;var i=dn(t,ue.current);an(t,n),i=Ql(null,t,r,e,i,n);var o=Kl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(o=!0,si(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ul(t),i.updater=Oi,t.stateNode=i,i._reactInternals=t,Ko(t,r,e,n),t=Xo(null,t,r,!0,o,n)):(t.tag=0,U&&o&&Al(t),ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wr(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=xp(r),e=De(r,e),i){case 0:t=qo(null,t,r,e,n);break e;case 1:t=au(null,t,r,e,n);break e;case 11:t=su(null,t,r,e,n);break e;case 14:t=uu(null,t,r,De(r.type,e),n);break e}throw Error(w(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),qo(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),au(e,t,r,i,n);case 3:e:{if(Ec(t),e===null)throw Error(w(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Xa(e,t),di(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=yn(Error(w(423)),t),t=cu(e,t,r,n,i);break e}else if(r!==i){i=yn(Error(w(424)),t),t=cu(e,t,r,n,i);break e}else for(we=vt(t.stateNode.containerInfo.firstChild),ke=t,U=!0,je=null,n=Ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pn(),r===i){t=rt(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Ja(t),e===null&&Ho(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Bo(r,i)?l=null:o!==null&&Bo(r,o)&&(t.flags|=32),Sc(e,t),ae(e,t,l,n),t.child;case 6:return e===null&&Ho(t),null;case 13:return _c(e,t,n);case 4:return $l(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hn(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),su(e,t,r,i,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,j(ci,r._currentValue),r._currentValue=l,o!==null)if(Ue(o.value,l)){if(o.children===i.children&&!me.current){t=rt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=be(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Wo(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(w(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Wo(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,an(t,n),i=Oe(i),r=r(i),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,i=De(r,t.pendingProps),i=De(r.type,i),uu(e,t,r,i,n);case 15:return wc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),Wr(e,t),t.tag=1,ye(r)?(e=!0,si(t)):e=!1,an(t,n),yc(t,r,i),Ko(t,r,i,n),Xo(null,t,r,!0,e,n);case 19:return xc(e,t,n);case 22:return kc(e,t,n)}throw Error(w(156,t.tag))};function Uc(e,t){return pa(e,t)}function _p(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(e,t,n,r){return new _p(e,t,n,r)}function ns(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xp(e){if(typeof e=="function")return ns(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sl)return 11;if(e===El)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=Te(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yr(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")ns(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Yt:return Mt(n.children,i,o,t);case kl:l=8,i|=8;break;case yo:return e=Te(12,n,t,i|2),e.elementType=yo,e.lanes=o,e;case go:return e=Te(13,n,t,i),e.elementType=go,e.lanes=o,e;case vo:return e=Te(19,n,t,i),e.elementType=vo,e.lanes=o,e;case Ju:return zi(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qu:l=10;break e;case Xu:l=9;break e;case Sl:l=11;break e;case El:l=14;break e;case at:l=16,r=null;break e}throw Error(w(130,e==null?e:typeof e,""))}return t=Te(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function zi(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Ju,e.lanes=n,e.stateNode={isHidden:!1},e}function ao(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function co(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cp(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function rs(e,t,n,r,i,o,l,s,u){return e=new Cp(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ul(o),e}function Np(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Kt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $c(e){if(!e)return xt;e=e._reactInternals;e:{if(Ht(e)!==e||e.tag!==1)throw Error(w(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ye(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(w(171))}if(e.tag===1){var n=e.type;if(ye(n))return $a(e,n,t)}return t}function Vc(e,t,n,r,i,o,l,s,u){return e=rs(n,r,!0,e,i,o,l,s,u),e.context=$c(null),n=e.current,r=ce(),i=St(n),o=be(r,i),o.callback=t??null,wt(n,o,i),e.current.lanes=i,ar(e,i,r),ge(e,r),e}function Ai(e,t,n,r){var i=t.current,o=ce(),l=St(i);return n=$c(n),t.context===null?t.context=n:t.pendingContext=n,t=be(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=wt(i,t,l),e!==null&&(Fe(e,i,l,o),$r(e,i,l)),l}function ki(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ku(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function is(e,t){ku(e,t),(e=e.alternate)&&ku(e,t)}function Tp(){return null}var Hc=typeof reportError=="function"?reportError:function(e){console.error(e)};function os(e){this._internalRoot=e}Di.prototype.render=os.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));Ai(e,t,null,null)};Di.prototype.unmount=os.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$t(function(){Ai(null,e,null,null)}),t[tt]=null}};function Di(e){this._internalRoot=e}Di.prototype.unstable_scheduleHydration=function(e){if(e){var t=ka();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ft.length&&t!==0&&t<ft[n].priority;n++);ft.splice(n,0,e),n===0&&Ea(e)}};function ls(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ii(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Su(){}function Pp(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=ki(l);o.call(c)}}var l=Vc(t,r,e,0,null,!1,!1,"",Su);return e._reactRootContainer=l,e[tt]=l.current,bn(e.nodeType===8?e.parentNode:e),$t(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=ki(u);s.call(c)}}var u=rs(e,0,!1,null,null,!1,!1,"",Su);return e._reactRootContainer=u,e[tt]=u.current,bn(e.nodeType===8?e.parentNode:e),$t(function(){Ai(t,u,n,r)}),u}function Mi(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var s=i;i=function(){var u=ki(l);s.call(u)}}Ai(t,l,e,i)}else l=Pp(n,t,e,i,r);return ki(l)}va=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=An(t.pendingLanes);n!==0&&(Cl(t,n|1),ge(t,K()),!(I&6)&&(gn=K()+500,Tt()))}break;case 13:$t(function(){var r=nt(e,1);if(r!==null){var i=ce();Fe(r,e,1,i)}}),is(e,1)}};Nl=function(e){if(e.tag===13){var t=nt(e,134217728);if(t!==null){var n=ce();Fe(t,e,134217728,n)}is(e,134217728)}};wa=function(e){if(e.tag===13){var t=St(e),n=nt(e,t);if(n!==null){var r=ce();Fe(n,e,t,r)}is(e,t)}};ka=function(){return M};Sa=function(e,t){var n=M;try{return M=e,t()}finally{M=n}};Po=function(e,t,n){switch(t){case"input":if(So(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ni(r);if(!i)throw Error(w(90));Zu(r),So(r,i)}}}break;case"textarea":ea(e,n);break;case"select":t=n.value,t!=null&&on(e,!!n.multiple,t,!1)}};sa=bl;ua=$t;var Op={usingClientEntryPoint:!1,Events:[fr,Gt,Ni,oa,la,bl]},On={findFiberByHostInstance:zt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Rp={bundleType:On.bundleType,version:On.version,rendererPackageName:On.rendererPackageName,rendererConfig:On.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:it.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fa(e),e===null?null:e.stateNode},findFiberByHostInstance:On.findFiberByHostInstance||Tp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lr.isDisabled&&Lr.supportsFiber)try{Ei=Lr.inject(Rp),We=Lr}catch{}}Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Op;Ee.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ls(t))throw Error(w(200));return Np(e,t,null,n)};Ee.createRoot=function(e,t){if(!ls(e))throw Error(w(299));var n=!1,r="",i=Hc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=rs(e,1,!1,null,null,n,!1,r,i),e[tt]=t.current,bn(e.nodeType===8?e.parentNode:e),new os(t)};Ee.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=fa(t),e=e===null?null:e.stateNode,e};Ee.flushSync=function(e){return $t(e)};Ee.hydrate=function(e,t,n){if(!Ii(t))throw Error(w(200));return Mi(null,e,t,!0,n)};Ee.hydrateRoot=function(e,t,n){if(!ls(e))throw Error(w(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=Hc;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Vc(t,null,e,1,n??null,i,!1,o,l),e[tt]=t.current,bn(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Di(t)};Ee.render=function(e,t,n){if(!Ii(t))throw Error(w(200));return Mi(null,e,t,!1,n)};Ee.unmountComponentAtNode=function(e){if(!Ii(e))throw Error(w(40));return e._reactRootContainer?($t(function(){Mi(null,null,e,!1,function(){e._reactRootContainer=null,e[tt]=null})}),!0):!1};Ee.unstable_batchedUpdates=bl;Ee.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ii(n))throw Error(w(200));if(e==null||e._reactInternals===void 0)throw Error(w(38));return Mi(e,t,n,!1,r)};Ee.version="18.3.1-next-f1338f8080-20240426";function Wc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wc)}catch(e){console.error(e)}}Wc(),Wu.exports=Ee;var Lp=Wu.exports,Eu=Lp;ho.createRoot=Eu.createRoot,ho.hydrateRoot=Eu.hydrateRoot;const Ye=Object.create(null);Ye.open="0";Ye.close="1";Ye.ping="2";Ye.pong="3";Ye.message="4";Ye.upgrade="5";Ye.noop="6";const qr=Object.create(null);Object.keys(Ye).forEach(e=>{qr[Ye[e]]=e});const sl={type:"error",data:"parser error"},Qc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Kc=typeof ArrayBuffer=="function",Yc=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ss=({type:e,data:t},n,r)=>Qc&&t instanceof Blob?n?r(t):_u(t,r):Kc&&(t instanceof ArrayBuffer||Yc(t))?n?r(t):_u(new Blob([t]),r):r(Ye[e]+(t||"")),_u=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function xu(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let fo;function zp(e,t){if(Qc&&e.data instanceof Blob)return e.data.arrayBuffer().then(xu).then(t);if(Kc&&(e.data instanceof ArrayBuffer||Yc(e.data)))return t(xu(e.data));ss(e,!1,n=>{fo||(fo=new TextEncoder),t(fo.encode(n))})}const Cu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",In=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Cu.length;e++)In[Cu.charCodeAt(e)]=e;const Ap=e=>{let t=e.length*.75,n=e.length,r,i=0,o,l,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),h=new Uint8Array(c);for(r=0;r<n;r+=4)o=In[e.charCodeAt(r)],l=In[e.charCodeAt(r+1)],s=In[e.charCodeAt(r+2)],u=In[e.charCodeAt(r+3)],h[i++]=o<<2|l>>4,h[i++]=(l&15)<<4|s>>2,h[i++]=(s&3)<<6|u&63;return c},Dp=typeof ArrayBuffer=="function",us=(e,t)=>{if(typeof e!="string")return{type:"message",data:qc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Ip(e.substring(1),t)}:qr[n]?e.length>1?{type:qr[n],data:e.substring(1)}:{type:qr[n]}:sl},Ip=(e,t)=>{if(Dp){const n=Ap(e);return qc(n,t)}else return{base64:!0,data:e}},qc=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Xc="",Mp=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,l)=>{ss(o,!1,s=>{r[l]=s,++i===n&&t(r.join(Xc))})})},jp=(e,t)=>{const n=e.split(Xc),r=[];for(let i=0;i<n.length;i++){const o=us(n[i],t);if(r.push(o),o.type==="error")break}return r};function Bp(){return new TransformStream({transform(e,t){zp(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let po;function zr(e){return e.reduce((t,n)=>t+n.length,0)}function Ar(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Fp(e,t){po||(po=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(l,s){for(n.push(l);;){if(r===0){if(zr(n)<1)break;const u=Ar(n,1);o=(u[0]&128)===128,i=u[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(zr(n)<2)break;const u=Ar(n,2);i=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(zr(n)<8)break;const u=Ar(n,8),c=new DataView(u.buffer,u.byteOffset,u.length),h=c.getUint32(0);if(h>Math.pow(2,21)-1){s.enqueue(sl);break}i=h*Math.pow(2,32)+c.getUint32(4),r=3}else{if(zr(n)<i)break;const u=Ar(n,i);s.enqueue(us(o?u:po.decode(u),t)),r=0}if(i===0||i>e){s.enqueue(sl);break}}}})}const Jc=4;function q(e){if(e)return Up(e)}function Up(e){for(var t in q.prototype)e[t]=q.prototype[t];return e}q.prototype.on=q.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};q.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};q.prototype.off=q.prototype.removeListener=q.prototype.removeAllListeners=q.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};q.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};q.prototype.emitReserved=q.prototype.emit;q.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};q.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ne=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Gc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const $p=Ne.setTimeout,Vp=Ne.clearTimeout;function ji(e,t){t.useNativeTimers?(e.setTimeoutFn=$p.bind(Ne),e.clearTimeoutFn=Vp.bind(Ne)):(e.setTimeoutFn=Ne.setTimeout.bind(Ne),e.clearTimeoutFn=Ne.clearTimeout.bind(Ne))}const Hp=1.33;function Wp(e){return typeof e=="string"?Qp(e):Math.ceil((e.byteLength||e.size)*Hp)}function Qp(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Kp(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Yp(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class qp extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class as extends q{constructor(t){super(),this.writable=!1,ji(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new qp(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=us(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=Kp(t);return n.length?"?"+n:""}}const Zc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ul=64,Xp={};let Nu=0,Dr=0,Tu;function Pu(e){let t="";do t=Zc[e%ul]+t,e=Math.floor(e/ul);while(e>0);return t}function bc(){const e=Pu(+new Date);return e!==Tu?(Nu=0,Tu=e):e+"."+Pu(Nu++)}for(;Dr<ul;Dr++)Xp[Zc[Dr]]=Dr;let ef=!1;try{ef=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Jp=ef;function tf(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Jp))return new XMLHttpRequest}catch{}if(!t)try{return new Ne[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Gp(){}const Zp=function(){return new tf({xdomain:!1}).responseType!=null}();class bp extends as{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}const n=t&&t.forceBase64;this.supportsBinary=Zp&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};jp(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Mp(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=bc()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ke(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Ke extends q{constructor(t,n){super(),ji(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=Gc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new tf(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Ke.requestsCount++,Ke.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Gp,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ke.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Ke.requestsCount=0;Ke.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ou);else if(typeof addEventListener=="function"){const e="onpagehide"in Ne?"pagehide":"unload";addEventListener(e,Ou,!1)}}function Ou(){for(let e in Ke.requests)Ke.requests.hasOwnProperty(e)&&Ke.requests[e].abort()}const cs=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Ir=Ne.WebSocket||Ne.MozWebSocket,Ru=!0,eh="arraybuffer",Lu=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class th extends as{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Lu?{}:Gc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Ru&&!Lu?n?new Ir(t,n):new Ir(t):new Ir(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;ss(r,this.supportsBinary,o=>{const l={};try{Ru&&this.ws.send(o)}catch{}i&&cs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=bc()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Ir}}class nh extends as{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=Fp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Bp();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:s,value:u})=>{s||(this.onPacket(u),o())}).catch(s=>{})};o();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this.writer.write(l).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this.writer.write(r).then(()=>{i&&cs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const rh={websocket:th,webtransport:nh,polling:bp},ih=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function al(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ih.exec(e||""),o={},l=14;for(;l--;)o[oh[l]]=i[l]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=lh(o,o.path),o.queryKey=sh(o,o.query),o}function lh(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function sh(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let nf=class Qt extends q{constructor(t,n={}){super(),this.binaryType=eh,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=al(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=al(n.host).host),ji(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Yp(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Jc,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new rh[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Qt.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Qt.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Qt.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(h(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,h(),n.close(),n=null)}const l=m=>{const p=new Error("probe error: "+m);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function s(){l("transport closed")}function u(){l("socket closed")}function c(m){n&&m.name!==n.name&&o()}const h=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",s),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",l),n.once("close",s),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Qt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=Wp(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Qt.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};nf.protocol=Jc;function uh(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=al(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const ah=typeof ArrayBuffer=="function",ch=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,rf=Object.prototype.toString,fh=typeof Blob=="function"||typeof Blob<"u"&&rf.call(Blob)==="[object BlobConstructor]",dh=typeof File=="function"||typeof File<"u"&&rf.call(File)==="[object FileConstructor]";function fs(e){return ah&&(e instanceof ArrayBuffer||ch(e))||fh&&e instanceof Blob||dh&&e instanceof File}function Xr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Xr(e[n]))return!0;return!1}if(fs(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Xr(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Xr(e[n]))return!0;return!1}function ph(e){const t=[],n=e.data,r=e;return r.data=cl(n,t),r.attachments=t.length,{packet:r,buffers:t}}function cl(e,t){if(!e)return e;if(fs(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=cl(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=cl(e[r],t));return n}return e}function hh(e,t){return e.data=fl(e.data,t),delete e.attachments,e}function fl(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=fl(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=fl(e[n],t));return e}const mh=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],yh=5;var A;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(A||(A={}));class gh{constructor(t){this.replacer=t}encode(t){return(t.type===A.EVENT||t.type===A.ACK)&&Xr(t)?this.encodeAsBinary({type:t.type===A.EVENT?A.BINARY_EVENT:A.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===A.BINARY_EVENT||t.type===A.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=ph(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function zu(e){return Object.prototype.toString.call(e)==="[object Object]"}class ds extends q{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===A.BINARY_EVENT;r||n.type===A.BINARY_ACK?(n.type=r?A.EVENT:A.ACK,this.reconstructor=new vh(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(fs(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(A[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===A.BINARY_EVENT||r.type===A.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(o,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(ds.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case A.CONNECT:return zu(n);case A.DISCONNECT:return n===void 0;case A.CONNECT_ERROR:return typeof n=="string"||zu(n);case A.EVENT:case A.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&mh.indexOf(n[0])===-1);case A.ACK:case A.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class vh{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=hh(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const wh=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ds,Encoder:gh,get PacketType(){return A},protocol:yh},Symbol.toStringTag,{value:"Module"}));function Me(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const kh=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class of extends q{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Me(t,"open",this.onopen.bind(this)),Me(t,"packet",this.onpacket.bind(this)),Me(t,"error",this.onerror.bind(this)),Me(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(kh.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:A.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const l=this.ids++,s=n.pop();this._registerAckCallback(l,s),r.id=l}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i),l=(...s)=>{this.io.clearTimeoutFn(o),n.apply(this,s)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(l,s)=>l?i(l):r(s);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:A.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case A.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case A.EVENT:case A.BINARY_EVENT:this.onevent(t);break;case A.ACK:case A.BINARY_ACK:this.onack(t);break;case A.DISCONNECT:this.ondisconnect();break;case A.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:A.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:A.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Sn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Sn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Sn.prototype.reset=function(){this.attempts=0};Sn.prototype.setMin=function(e){this.ms=e};Sn.prototype.setMax=function(e){this.max=e};Sn.prototype.setJitter=function(e){this.jitter=e};class dl extends q{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ji(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Sn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||wh;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new nf(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Me(n,"open",function(){r.onopen(),t&&t()}),o=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},l=Me(n,"error",o);if(this._timeout!==!1){const s=this._timeout,u=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Me(t,"ping",this.onping.bind(this)),Me(t,"data",this.ondata.bind(this)),Me(t,"error",this.onerror.bind(this)),Me(t,"close",this.onclose.bind(this)),Me(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){cs(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new of(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Rn={};function Jr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=uh(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,l=Rn[i]&&o in Rn[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let u;return s?u=new dl(r,t):(Rn[i]||(Rn[i]=new dl(r,t)),u=Rn[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Jr,{Manager:dl,Socket:of,io:Jr,connect:Jr});async function Sh(e){const t="https://kundesone.no/api/chat/getMessages";try{const n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chat_id:e})});if(!n.ok)throw new Error("Network response was not ok");const r=await n.json();return console.log(r),r.map(i=>({sender:i.senderName||"Unknown Sender",content:i.message||"",contentType:i.type,type:i.from=="user"?"user":"partner"}))}catch(n){return console.error("Error:",n),[]}}function Eh({socket:e,toggleChat:t}){const[n,r]=X.useState(""),[i,o]=X.useState(!1),[l,s]=X.useState(!1);X.useState(!1);const[u,c]=X.useState([]),[h,m]=X.useState("");X.useEffect(()=>{var g=localStorage.getItem("aw_chat");return g&&(g=JSON.parse(g),r("company name"),s(g),Sh(g.id).then(y=>{c(y)}),console.log(g)),e.on("connect",()=>{console.log("Connected to the server with socket ID:",e.id);var y=localStorage.getItem("aw_customer_id");y||(y=generateRandomId(),localStorage.setItem("aw_customer_id",y),o(y)),e.emit("register",y),console.log(y)}),e.on("disconnect",y=>{console.log("Disconnected from the server:",y),o(!1),y==="io server disconnect"&&e.connect()}),e.on("chat message",y=>{console.log(y);const k={sender:"ADNAN HASSAN",content:y.sms,contentType:"text",type:"partner"};c(D=>[...D,k])}),()=>{e.off("connect"),e.off("disconnect"),e.off("chat message")}},[]);const p=()=>{if(h.trim()==="")return;const g={sender:"ADNAN HASSAN",content:h,contentType:"text",type:"user"},y=new FormData;y.append("chat_id",l.id),y.append("from","user"),y.append("message",h),y.append("type","text"),fetch("https://kundesone.no/api/chat/send-message",{method:"POST",body:y}).then(D=>D.json()).then(D=>{console.log("Success:",D),e.emit("chat message",{sms:h,id:l.id},l.user_id),c([...u,g]),m("")}).catch(D=>{console.error("Error:",D)})};return P.jsx("div",{className:"chat-messages",children:P.jsx("div",{className:"chatbox-holder",children:P.jsxs("div",{className:"chatbox",children:[P.jsxs("div",{className:"chatbox-top",children:[P.jsxs("div",{className:"chat-partner-name",children:[P.jsx("span",{className:"status online"}),P.jsx("a",{children:n})]}),P.jsx("div",{className:"chatbox-icons",children:P.jsx("a",{href:"javascript:void(0);",onClick:t,children:P.jsx("i",{className:"fa fa-close"})})})]}),P.jsx("div",{className:"chat-messages",children:u.map((g,y)=>P.jsx("div",{className:`message-box-holder ${g.type==="partner"?"partner":"user"}`,children:P.jsxs("div",{className:`message-box ${g.type==="partner"?"message-partner":""}`,children:[g.contentType==="text"&&g.content,g.contentType==="image"&&P.jsx("img",{src:g.content,alt:"Image message"}),g.contentType==="pdf"&&P.jsx("a",{href:g.content,target:"_blank",rel:"noopener noreferrer",children:"View PDF"})]})},y))}),P.jsxs("div",{className:"chat-input-holder",children:[P.jsx("textarea",{className:"chat-input",value:h,onChange:g=>m(g.target.value),placeholder:"Write something...."}),P.jsxs("label",{className:"file-input-label",children:[P.jsx("input",{type:"file",className:"file-input"}),P.jsx("i",{className:"fa fa-paperclip","aria-hidden":"true"})]}),P.jsx("input",{type:"submit",value:"Send",onClick:p,className:"message-send"})]})]})})})}const ut=Jr("https://chat.rapidev.tech/",{withCredentials:!1});function _h(){const[e,t]=X.useState(!1),[n,r]=X.useState(!1),[i,o]=X.useState(!1),[l,s]=X.useState(""),[u,c]=X.useState(""),[h,m]=X.useState(""),[p,g]=X.useState(!1),[y,k]=X.useState({}),[D,f]=X.useState([]),a=()=>t(!e),d=T=>s(T.target.value),v=T=>c(T.target.value),E=T=>m(T.target.value),x=T=>g(T.target.checked);ut.on("connect",()=>{console.log("Connected to the server with socket ID:",ut.id);var T=localStorage.getItem("aw_customer_id");T||(T=xh(),localStorage.setItem("aw_customer_id",T),r(T)),ut.emit("register",T),console.log(T)}),ut.on("disconnect",T=>{console.log("Disconnected from the server:",T),r(!1),T==="io server disconnect"&&ut.connect()}),X.useEffect(()=>{var T=localStorage.getItem("aw_chat");if(T){T=JSON.parse(T);const L="https://kundesone.no/api/chat/get",ie=new FormData;ie.append("chat_id",T.id),fetch(L,{method:"POST",body:ie}).then(Le=>Le.json()).then(Le=>{Le.status=="open"&&o(!0),console.log("Success:",Le)})}});const C=()=>{const T={};return l.trim()||(T.username="Username is required"),u.trim()?/\S+@\S+\.\S+/.test(u)||(T.email="Email is invalid"):T.email="Email is required",h.trim()||(T.message="Message is required"),p||(T.acceptPolicy="You must accept the policy"),T},N=()=>{const T=C();if(Object.keys(T).length===0){const ie={username:l,text:h},ot=document.getElementById("aw-root-chat").dataset.company,qe=new FormData;qe.append("company_id",ot),qe.append("customer_id",n),qe.append("name",l),qe.append("email",u),qe.append("subject",h);var L={company_id:ot,customer_id:n,name:l,email:u,subject:h};ut.emit("start_chat",L),fetch("https://kundesone.no/api/chat/start",{method:"POST",body:qe}).then(ze=>ze.json()).then(ze=>{console.log("Success:",ze);var lt=ze.chat;localStorage.setItem("aw_chat",JSON.stringify(ze.chat));const S=new FormData;S.append("chat_id",lt.id),S.append("from","user"),S.append("message",lt.subject),S.append("type","text"),fetch("https://kundesone.no/api/chat/send-message",{method:"POST",body:S}).then(R=>R.json()).then(R=>{console.log("Success:",R),ut.emit("chat message",lt.subject,lt.user_id),f([...D,ie]),o(!0),s(""),c(""),m(""),g(!1),k({})})}).catch(ze=>{console.error("Error:",ze)})}else k(T)};return P.jsxs("div",{className:"chat-widget",children:[P.jsx("button",{onClick:a,className:"toggle-button",children:e?P.jsx("i",{className:"fa fa-times","aria-hidden":"true"}):P.jsx("span",{className:"chat__box",children:P.jsx("i",{className:"fa fa-commenting-o","aria-hidden":"true"})})}),e&&P.jsx("div",{className:"chat-box",children:i?P.jsx(Eh,{socket:ut,toggleChat:a}):P.jsxs("div",{className:"message-box",children:[P.jsx("div",{className:"media",children:P.jsx("h4",{children:"Limon Media"})}),P.jsx("label",{htmlFor:"Username",children:"Username"}),P.jsx("input",{type:"text",value:l,onChange:d,placeholder:"Username"}),y.username&&P.jsx("p",{className:"error",children:y.username}),P.jsx("label",{htmlFor:"Email",children:"Email"}),P.jsx("input",{type:"email",value:u,onChange:v,placeholder:"Email"}),y.email&&P.jsx("p",{className:"error",children:y.email}),P.jsx("label",{htmlFor:"Message",children:"Message"}),P.jsx("textarea",{value:h,onChange:E,placeholder:"Type your message here..."}),y.message&&P.jsx("p",{className:"error",children:y.message}),P.jsxs("div",{className:"policy-box",children:[P.jsx("input",{type:"checkbox",checked:p,onChange:x}),P.jsx("label",{children:"Jeg har lest policy for personopplysninger. "})]}),y.acceptPolicy&&P.jsx("p",{className:"error",children:y.acceptPolicy}),P.jsx("button",{onClick:N,children:"Start en chat"})]})})]})}function xh(){function e(i){let o=0;for(let l=0;l<i.length;l++){const s=i.charCodeAt(l);o=(o<<5)-o+s,o|=0}return o}function t(){return Math.random().toString(36).substr(2,9)}const n=e(window.location.host),r=t();return`id_${n}_${r}`}const Ch=()=>P.jsx(P.Fragment,{children:P.jsx("div",{className:"App",children:P.jsx(_h,{})})});ho.createRoot(document.getElementById("aw-root-chat")).render(P.jsx(Ch,{}));
|