@game_ryo/lsji 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(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 s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pu={exports:{}},vi={},Ru={exports:{}},
|
|
1
|
+
(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 s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pu={exports:{}},vi={},Ru={exports:{}},I={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ir=Symbol.for("react.element"),rf=Symbol.for("react.portal"),sf=Symbol.for("react.fragment"),lf=Symbol.for("react.strict_mode"),of=Symbol.for("react.profiler"),uf=Symbol.for("react.provider"),af=Symbol.for("react.context"),cf=Symbol.for("react.forward_ref"),ff=Symbol.for("react.suspense"),df=Symbol.for("react.memo"),pf=Symbol.for("react.lazy"),fo=Symbol.iterator;function hf(e){return e===null||typeof e!="object"?null:(e=fo&&e[fo]||e["@@iterator"],typeof e=="function"?e:null)}var Lu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ou=Object.assign,zu={};function pn(e,t,n){this.props=e,this.context=t,this.refs=zu,this.updater=n||Lu}pn.prototype.isReactComponent={};pn.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")};pn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Au(){}Au.prototype=pn.prototype;function fl(e,t,n){this.props=e,this.context=t,this.refs=zu,this.updater=n||Lu}var dl=fl.prototype=new Au;dl.constructor=fl;Ou(dl,pn.prototype);dl.isPureReactComponent=!0;var po=Array.isArray,Iu=Object.prototype.hasOwnProperty,pl={current:null},Du={key:!0,ref:!0,__self:!0,__source:!0};function Mu(e,t,n){var r,i={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)Iu.call(t,r)&&!Du.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var u=Array(o),f=0;f<o;f++)u[f]=arguments[f+2];i.children=u}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:ir,type:e,key:s,ref:l,props:i,_owner:pl.current}}function mf(e,t){return{$$typeof:ir,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ir}function yf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ho=/\/+/g;function Bi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yf(""+e.key):t.toString(36)}function Rr(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ir:case rf:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+Bi(l,0):r,po(i)?(n="",e!=null&&(n=e.replace(ho,"$&/")+"/"),Rr(i,t,n,"",function(f){return f})):i!=null&&(hl(i)&&(i=mf(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(ho,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",po(e))for(var o=0;o<e.length;o++){s=e[o];var u=r+Bi(s,o);l+=Rr(s,t,n,u,i)}else if(u=hf(e),typeof u=="function")for(e=u.call(e),o=0;!(s=e.next()).done;)s=s.value,u=r+Bi(s,o++),l+=Rr(s,t,n,u,i);else if(s==="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 fr(e,t,n){if(e==null)return e;var r=[],i=0;return Rr(e,r,"","",function(s){return t.call(n,s,i++)}),r}function vf(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 de={current:null},Lr={transition:null},gf={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:Lr,ReactCurrentOwner:pl};function Bu(){throw Error("act(...) is not supported in production builds of React.")}
|
|
9
|
+
*/var ir=Symbol.for("react.element"),rf=Symbol.for("react.portal"),sf=Symbol.for("react.fragment"),lf=Symbol.for("react.strict_mode"),of=Symbol.for("react.profiler"),uf=Symbol.for("react.provider"),af=Symbol.for("react.context"),cf=Symbol.for("react.forward_ref"),ff=Symbol.for("react.suspense"),df=Symbol.for("react.memo"),pf=Symbol.for("react.lazy"),fo=Symbol.iterator;function hf(e){return e===null||typeof e!="object"?null:(e=fo&&e[fo]||e["@@iterator"],typeof e=="function"?e:null)}var Lu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ou=Object.assign,zu={};function pn(e,t,n){this.props=e,this.context=t,this.refs=zu,this.updater=n||Lu}pn.prototype.isReactComponent={};pn.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")};pn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Au(){}Au.prototype=pn.prototype;function fl(e,t,n){this.props=e,this.context=t,this.refs=zu,this.updater=n||Lu}var dl=fl.prototype=new Au;dl.constructor=fl;Ou(dl,pn.prototype);dl.isPureReactComponent=!0;var po=Array.isArray,Iu=Object.prototype.hasOwnProperty,pl={current:null},Du={key:!0,ref:!0,__self:!0,__source:!0};function Mu(e,t,n){var r,i={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)Iu.call(t,r)&&!Du.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var u=Array(o),f=0;f<o;f++)u[f]=arguments[f+2];i.children=u}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:ir,type:e,key:s,ref:l,props:i,_owner:pl.current}}function mf(e,t){return{$$typeof:ir,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ir}function yf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ho=/\/+/g;function Bi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yf(""+e.key):t.toString(36)}function Rr(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ir:case rf:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+Bi(l,0):r,po(i)?(n="",e!=null&&(n=e.replace(ho,"$&/")+"/"),Rr(i,t,n,"",function(f){return f})):i!=null&&(hl(i)&&(i=mf(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(ho,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",po(e))for(var o=0;o<e.length;o++){s=e[o];var u=r+Bi(s,o);l+=Rr(s,t,n,u,i)}else if(u=hf(e),typeof u=="function")for(e=u.call(e),o=0;!(s=e.next()).done;)s=s.value,u=r+Bi(s,o++),l+=Rr(s,t,n,u,i);else if(s==="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 fr(e,t,n){if(e==null)return e;var r=[],i=0;return Rr(e,r,"","",function(s){return t.call(n,s,i++)}),r}function vf(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 de={current:null},Lr={transition:null},gf={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:Lr,ReactCurrentOwner:pl};function Bu(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:fr,forEach:function(e,t,n){fr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fr(e,function(){t++}),t},toArray:function(e){return fr(e,function(t){return t})||[]},only:function(e){if(!hl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=pn;I.Fragment=sf;I.Profiler=of;I.PureComponent=fl;I.StrictMode=lf;I.Suspense=ff;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gf;I.act=Bu;I.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=Ou({},e.props),i=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=pl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(u in t)Iu.call(t,u)&&!Du.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&o!==void 0?o[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){o=Array(u);for(var f=0;f<u;f++)o[f]=arguments[f+2];r.children=o}return{$$typeof:ir,type:e.type,key:i,ref:s,props:r,_owner:l}};I.createContext=function(e){return e={$$typeof:af,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:uf,_context:e},e.Consumer=e};I.createElement=Mu;I.createFactory=function(e){var t=Mu.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:cf,render:e}};I.isValidElement=hl;I.lazy=function(e){return{$$typeof:pf,_payload:{_status:-1,_result:e},_init:vf}};I.memo=function(e,t){return{$$typeof:df,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Lr.transition;Lr.transition={};try{e()}finally{Lr.transition=t}};I.unstable_act=Bu;I.useCallback=function(e,t){return de.current.useCallback(e,t)};I.useContext=function(e){return de.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return de.current.useDeferredValue(e)};I.useEffect=function(e,t){return de.current.useEffect(e,t)};I.useId=function(){return de.current.useId()};I.useImperativeHandle=function(e,t,n){return de.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return de.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return de.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return de.current.useMemo(e,t)};I.useReducer=function(e,t,n){return de.current.useReducer(e,t,n)};I.useRef=function(e){return de.current.useRef(e)};I.useState=function(e){return de.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return de.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return de.current.useTransition()};I.version="18.3.1";Ru.exports=I;var A=Ru.exports;const wf=nf(A);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var xf=
|
|
17
|
+
*/var xf=A,kf=Symbol.for("react.element"),Sf=Symbol.for("react.fragment"),_f=Object.prototype.hasOwnProperty,Ef=xf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nf={key:!0,ref:!0,__self:!0,__source:!0};function Fu(e,t,n){var r,i={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)_f.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:kf,type:e,key:s,ref:l,props:i,_owner:Ef.current}}vi.Fragment=Sf;vi.jsx=Fu;vi.jsxs=Fu;Pu.exports=vi;var a=Pu.exports,Uu={exports:{}},_e={},$u={exports:{}},Vu={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(T,L){var z=T.length;T.push(L);e:for(;0<z;){var q=z-1>>>1,ee=T[q];if(0<i(ee,L))T[q]=L,T[z]=ee,z=q;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var L=T[0],z=T.pop();if(z!==L){T[0]=z;e:for(var q=0,ee=T.length,ar=ee>>>1;q<ar;){var Et=2*(q+1)-1,Mi=T[Et],Nt=Et+1,cr=T[Nt];if(0>i(Mi,z))Nt<ee&&0>i(cr,Mi)?(T[q]=cr,T[Nt]=z,q=Nt):(T[q]=Mi,T[Et]=z,q=Et);else if(Nt<ee&&0>i(cr,z))T[q]=cr,T[Nt]=z,q=Nt;else break e}}return L}function i(T,L){var z=T.sortIndex-L.sortIndex;return z!==0?z:T.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],f=[],y=1,m=null,h=3,
|
|
25
|
+
*/(function(e){function t(T,L){var z=T.length;T.push(L);e:for(;0<z;){var q=z-1>>>1,ee=T[q];if(0<i(ee,L))T[q]=L,T[z]=ee,z=q;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var L=T[0],z=T.pop();if(z!==L){T[0]=z;e:for(var q=0,ee=T.length,ar=ee>>>1;q<ar;){var Et=2*(q+1)-1,Mi=T[Et],Nt=Et+1,cr=T[Nt];if(0>i(Mi,z))Nt<ee&&0>i(cr,Mi)?(T[q]=cr,T[Nt]=z,q=Nt):(T[q]=Mi,T[Et]=z,q=Et);else if(Nt<ee&&0>i(cr,z))T[q]=cr,T[Nt]=z,q=Nt;else break e}}return L}function i(T,L){var z=T.sortIndex-L.sortIndex;return z!==0?z:T.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],f=[],y=1,m=null,h=3,x=!1,v=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(T){for(var L=n(f);L!==null;){if(L.callback===null)r(f);else if(L.startTime<=T)r(f),L.sortIndex=L.expirationTime,t(u,L);else break;L=n(f)}}function w(T){if(S=!1,p(T),!v)if(n(u)!==null)v=!0,Ii(E);else{var L=n(f);L!==null&&Di(w,L.startTime-T)}}function E(T,L){v=!1,S&&(S=!1,d(C),C=-1),x=!0;var z=h;try{for(p(L),m=n(u);m!==null&&(!(m.expirationTime>L)||T&&!R());){var q=m.callback;if(typeof q=="function"){m.callback=null,h=m.priorityLevel;var ee=q(m.expirationTime<=L);L=e.unstable_now(),typeof ee=="function"?m.callback=ee:m===n(u)&&r(u),p(L)}else r(u);m=n(u)}if(m!==null)var ar=!0;else{var Et=n(f);Et!==null&&Di(w,Et.startTime-L),ar=!1}return ar}finally{m=null,h=z,x=!1}}var j=!1,P=null,C=-1,_=5,g=-1;function R(){return!(e.unstable_now()-g<_)}function U(){if(P!==null){var T=e.unstable_now();g=T;var L=!0;try{L=P(!0,T)}finally{L?vn():(j=!1,P=null)}}else j=!1}var vn;if(typeof c=="function")vn=function(){c(U)};else if(typeof MessageChannel<"u"){var co=new MessageChannel,tf=co.port2;co.port1.onmessage=U,vn=function(){tf.postMessage(null)}}else vn=function(){O(U,0)};function Ii(T){P=T,j||(j=!0,vn())}function Di(T,L){C=O(function(){T(e.unstable_now())},L)}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(T){T.callback=null},e.unstable_continueExecution=function(){v||x||(v=!0,Ii(E))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var z=h;h=L;try{return T()}finally{h=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,L){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var z=h;h=T;try{return L()}finally{h=z}},e.unstable_scheduleCallback=function(T,L,z){var q=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?q+z:q):z=q,T){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=z+ee,T={id:y++,callback:L,priorityLevel:T,startTime:z,expirationTime:ee,sortIndex:-1},z>q?(T.sortIndex=z,t(f,T),n(u)===null&&T===n(f)&&(S?(d(C),C=-1):S=!0,Di(w,z-q))):(T.sortIndex=ee,t(u,T),v||x||(v=!0,Ii(E))),T},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(T){var L=h;return function(){var z=h;h=L;try{return T.apply(this,arguments)}finally{h=z}}}})(Vu);$u.exports=Vu;var Cf=$u.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Tf=
|
|
33
|
+
*/var Tf=A,Se=Cf;function k(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 Hu=new Set,$n={};function Bt(e,t){ln(e,t),ln(e+"Capture",t)}function ln(e,t){for($n[e]=t,e=0;e<t.length;e++)Hu.add(t[e])}var Ze=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hs=Object.prototype.hasOwnProperty,jf=/^[: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]*$/,mo={},yo={};function Pf(e){return hs.call(yo,e)?!0:hs.call(mo,e)?!1:jf.test(e)?yo[e]=!0:(mo[e]=!0,!1)}function Rf(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 Lf(e,t,n,r){if(t===null||typeof t>"u"||Rf(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 pe(e,t,n,r,i,s,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=s,this.removeEmptyString=l}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new pe(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){se[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ml=/[\-:]([a-z])/g;function yl(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(ml,yl);se[t]=new pe(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(ml,yl);se[t]=new pe(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(ml,yl);se[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function vl(e,t,n,r){var i=se.hasOwnProperty(t)?se[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Lf(t,n,i,r)&&(n=null),r||i===null?Pf(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 nt=Tf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,dr=Symbol.for("react.element"),$t=Symbol.for("react.portal"),Vt=Symbol.for("react.fragment"),gl=Symbol.for("react.strict_mode"),ms=Symbol.for("react.profiler"),Wu=Symbol.for("react.provider"),Qu=Symbol.for("react.context"),wl=Symbol.for("react.forward_ref"),ys=Symbol.for("react.suspense"),vs=Symbol.for("react.suspense_list"),xl=Symbol.for("react.memo"),it=Symbol.for("react.lazy"),Ku=Symbol.for("react.offscreen"),vo=Symbol.iterator;function gn(e){return e===null||typeof e!="object"?null:(e=vo&&e[vo]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,Fi;function Tn(e){if(Fi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fi=t&&t[1]||""}return`
|
|
34
34
|
`+Fi+e}var Ui=!1;function $i(e,t){if(!e||Ui)return"";Ui=!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(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
|
|
35
35
|
`),s=r.stack.split(`
|
|
36
36
|
`),l=i.length-1,o=s.length-1;1<=l&&0<=o&&i[l]!==s[o];)o--;for(;1<=l&&0<=o;l--,o--)if(i[l]!==s[o]){if(l!==1||o!==1)do if(l--,o--,0>o||i[l]!==s[o]){var u=`
|
|
37
|
-
`+i[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=o);break}}}finally{Ui=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tn(e):""}function Of(e){switch(e.tag){case 5:return Tn(e.type);case 16:return Tn("Lazy");case 13:return Tn("Suspense");case 19:return Tn("SuspenseList");case 0:case 2:case 15:return e=$i(e.type,!1),e;case 11:return e=$i(e.type.render,!1),e;case 1:return e=$i(e.type,!0),e;default:return""}}function gs(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 Vt:return"Fragment";case $t:return"Portal";case ms:return"Profiler";case gl:return"StrictMode";case ys:return"Suspense";case vs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qu:return(e.displayName||"Context")+".Consumer";case Wu:return(e._context.displayName||"Context")+".Provider";case wl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xl:return t=e.displayName||null,t!==null?t:gs(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return gs(e(t))}catch{}}return null}function zf(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 gs(t);case 8:return t===gl?"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 wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Af(e){var t=Yu(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,s.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 pr(e){e._valueTracker||(e._valueTracker=Af(e))}function qu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yr(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 ws(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function go(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wt(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 Xu(e,t){t=t.checked,t!=null&&vl(e,"checked",t,!1)}function xs(e,t){Xu(e,t);var n=wt(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")?ks(e,t.type,n):t.hasOwnProperty("defaultValue")&&ks(e,t.type,wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wo(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 ks(e,t,n){(t!=="number"||Yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var jn=Array.isArray;function bt(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=""+wt(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 Ss(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(jn(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:wt(n)}}function Gu(e,t){var n=wt(t.value),r=wt(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 ko(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ju(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 _s(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ju(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hr,Zu=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(hr=hr||document.createElement("div"),hr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var On={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},If=["Webkit","ms","Moz","O"];Object.keys(On).forEach(function(e){If.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]})});function bu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function ea(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Df=K({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 Es(e,t){if(t){if(Df[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Ns(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 Cs=null;function kl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ts=null,en=null,tn=null;function So(e){if(e=or(e)){if(typeof Ts!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Si(t),Ts(e.stateNode,e.type,t))}}function ta(e){en?tn?tn.push(e):tn=[e]:en=e}function na(){if(en){var e=en,t=tn;if(tn=en=null,So(e),t)for(e=0;e<t.length;e++)So(t[e])}}function ra(e,t){return e(t)}function ia(){}var Vi=!1;function sa(e,t,n){if(Vi)return e(t,n);Vi=!0;try{return ra(e,t,n)}finally{Vi=!1,(en!==null||tn!==null)&&(ia(),na())}}function Hn(e,t){var n=e.stateNode;if(n===null)return null;var r=Si(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(x(231,t,typeof n));return n}var js=!1;if(Ze)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){js=!0}}),window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{js=!1}function Mf(e,t,n,r,i,s,l,o,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(y){this.onError(y)}}var zn=!1,qr=null,Xr=!1,Ps=null,Bf={onError:function(e){zn=!0,qr=e}};function Ff(e,t,n,r,i,s,l,o,u){zn=!1,qr=null,Mf.apply(Bf,arguments)}function Uf(e,t,n,r,i,s,l,o,u){if(Ff.apply(this,arguments),zn){if(zn){var f=qr;zn=!1,qr=null}else throw Error(x(198));Xr||(Xr=!0,Ps=f)}}function Ft(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 la(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 _o(e){if(Ft(e)!==e)throw Error(x(188))}function $f(e){var t=e.alternate;if(!t){if(t=Ft(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return _o(i),e;if(s===r)return _o(i),t;s=s.sibling}throw Error(x(188))}if(n.return!==r.return)n=i,r=s;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,r=s;break}if(o===r){l=!0,r=i,n=s;break}o=o.sibling}if(!l){for(o=s.child;o;){if(o===n){l=!0,n=s,r=i;break}if(o===r){l=!0,r=s,n=i;break}o=o.sibling}if(!l)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function oa(e){return e=$f(e),e!==null?ua(e):null}function ua(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ua(e);if(t!==null)return t;e=e.sibling}return null}var aa=Se.unstable_scheduleCallback,Eo=Se.unstable_cancelCallback,Vf=Se.unstable_shouldYield,Hf=Se.unstable_requestPaint,X=Se.unstable_now,Wf=Se.unstable_getCurrentPriorityLevel,Sl=Se.unstable_ImmediatePriority,ca=Se.unstable_UserBlockingPriority,Gr=Se.unstable_NormalPriority,Qf=Se.unstable_LowPriority,fa=Se.unstable_IdlePriority,gi=null,He=null;function Kf(e){if(He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Me=Math.clz32?Math.clz32:Xf,Yf=Math.log,qf=Math.LN2;function Xf(e){return e>>>=0,e===0?32:31-(Yf(e)/qf|0)|0}var mr=64,yr=4194304;function Pn(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 Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var o=l&~i;o!==0?r=Pn(o):(s&=l,s!==0&&(r=Pn(s)))}else l=n&~i,l!==0?r=Pn(l):s!==0&&(r=Pn(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-Me(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 Jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Me(s),o=1<<l,u=i[l];u===-1?(!(o&n)||o&r)&&(i[l]=Gf(o,t)):u<=t&&(e.expiredLanes|=o),s&=~o}}function Rs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function da(){var e=mr;return mr<<=1,!(mr&4194240)&&(mr=64),e}function Hi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function Zf(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-Me(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function _l(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var B=0;function pa(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ha,El,ma,ya,va,Ls=!1,vr=[],ct=null,ft=null,dt=null,Wn=new Map,Qn=new Map,lt=[],bf="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 No(e,t){switch(e){case"focusin":case"focusout":ct=null;break;case"dragenter":case"dragleave":ft=null;break;case"mouseover":case"mouseout":dt=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qn.delete(t.pointerId)}}function xn(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=or(t),t!==null&&El(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ed(e,t,n,r,i){switch(t){case"focusin":return ct=xn(ct,e,t,n,r,i),!0;case"dragenter":return ft=xn(ft,e,t,n,r,i),!0;case"mouseover":return dt=xn(dt,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Wn.set(s,xn(Wn.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Qn.set(s,xn(Qn.get(s)||null,e,t,n,r,i)),!0}return!1}function ga(e){var t=jt(e.target);if(t!==null){var n=Ft(t);if(n!==null){if(t=n.tag,t===13){if(t=la(n),t!==null){e.blockedOn=t,va(e.priority,function(){ma(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 Or(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Os(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cs=r,n.target.dispatchEvent(r),Cs=null}else return t=or(n),t!==null&&El(t),e.blockedOn=n,!1;t.shift()}return!0}function Co(e,t,n){Or(e)&&n.delete(t)}function td(){Ls=!1,ct!==null&&Or(ct)&&(ct=null),ft!==null&&Or(ft)&&(ft=null),dt!==null&&Or(dt)&&(dt=null),Wn.forEach(Co),Qn.forEach(Co)}function kn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ls||(Ls=!0,Se.unstable_scheduleCallback(Se.unstable_NormalPriority,td)))}function Kn(e){function t(i){return kn(i,e)}if(0<vr.length){kn(vr[0],e);for(var n=1;n<vr.length;n++){var r=vr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ct!==null&&kn(ct,e),ft!==null&&kn(ft,e),dt!==null&&kn(dt,e),Wn.forEach(t),Qn.forEach(t),n=0;n<lt.length;n++)r=lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<lt.length&&(n=lt[0],n.blockedOn===null);)ga(n),n.blockedOn===null&<.shift()}var nn=nt.ReactCurrentBatchConfig,Zr=!0;function nd(e,t,n,r){var i=B,s=nn.transition;nn.transition=null;try{B=1,Nl(e,t,n,r)}finally{B=i,nn.transition=s}}function rd(e,t,n,r){var i=B,s=nn.transition;nn.transition=null;try{B=4,Nl(e,t,n,r)}finally{B=i,nn.transition=s}}function Nl(e,t,n,r){if(Zr){var i=Os(e,t,n,r);if(i===null)bi(e,t,r,br,n),No(e,r);else if(ed(i,e,t,n,r))r.stopPropagation();else if(No(e,r),t&4&&-1<bf.indexOf(e)){for(;i!==null;){var s=or(i);if(s!==null&&ha(s),s=Os(e,t,n,r),s===null&&bi(e,t,r,br,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else bi(e,t,r,null,n)}}var br=null;function Os(e,t,n,r){if(br=null,e=kl(r),e=jt(e),e!==null)if(t=Ft(e),t===null)e=null;else if(n=t.tag,n===13){if(e=la(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 br=e,null}function wa(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(Wf()){case Sl:return 1;case ca:return 4;case Gr:case Qf:return 16;case fa:return 536870912;default:return 16}default:return 16}}var ut=null,Cl=null,zr=null;function xa(){if(zr)return zr;var e,t=Cl,n=t.length,r,i="value"in ut?ut.value:ut.textContent,s=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[s-r];r++);return zr=i.slice(e,1<r?1-r:void 0)}function Ar(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 gr(){return!0}function To(){return!1}function Ee(e){function t(n,r,i,s,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?gr:To,this.isPropagationStopped=To,this}return K(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=gr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gr)},persist:function(){},isPersistent:gr}),t}var hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=Ee(hn),lr=K({},hn,{view:0,detail:0}),id=Ee(lr),Wi,Qi,Sn,wi=K({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jl,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!==Sn&&(Sn&&e.type==="mousemove"?(Wi=e.screenX-Sn.screenX,Qi=e.screenY-Sn.screenY):Qi=Wi=0,Sn=e),Wi)},movementY:function(e){return"movementY"in e?e.movementY:Qi}}),jo=Ee(wi),sd=K({},wi,{dataTransfer:0}),ld=Ee(sd),od=K({},lr,{relatedTarget:0}),Ki=Ee(od),ud=K({},hn,{animationName:0,elapsedTime:0,pseudoElement:0}),ad=Ee(ud),cd=K({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fd=Ee(cd),dd=K({},hn,{data:0}),Po=Ee(dd),pd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},md={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=md[e])?!!t[e]:!1}function jl(){return yd}var vd=K({},lr,{key:function(e){if(e.key){var t=pd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jl,charCode:function(e){return e.type==="keypress"?Ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gd=Ee(vd),wd=K({},wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ro=Ee(wd),xd=K({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jl}),kd=Ee(xd),Sd=K({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),_d=Ee(Sd),Ed=K({},wi,{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=Ee(Ed),Cd=[9,13,27,32],Pl=Ze&&"CompositionEvent"in window,An=null;Ze&&"documentMode"in document&&(An=document.documentMode);var Td=Ze&&"TextEvent"in window&&!An,ka=Ze&&(!Pl||An&&8<An&&11>=An),Lo=" ",Oo=!1;function Sa(e,t){switch(e){case"keyup":return Cd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _a(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ht=!1;function jd(e,t){switch(e){case"compositionend":return _a(t);case"keypress":return t.which!==32?null:(Oo=!0,Lo);case"textInput":return e=t.data,e===Lo&&Oo?null:e;default:return null}}function Pd(e,t){if(Ht)return e==="compositionend"||!Pl&&Sa(e,t)?(e=xa(),zr=Cl=ut=null,Ht=!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 ka&&t.locale!=="ko"?null:t.data;default:return null}}var Rd={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 zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rd[e.type]:t==="textarea"}function Ea(e,t,n,r){ta(r),t=ei(t,"onChange"),0<t.length&&(n=new Tl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,Yn=null;function Ld(e){Ia(e,0)}function xi(e){var t=Kt(e);if(qu(t))return e}function Od(e,t){if(e==="change")return t}var Na=!1;if(Ze){var Yi;if(Ze){var qi="oninput"in document;if(!qi){var Ao=document.createElement("div");Ao.setAttribute("oninput","return;"),qi=typeof Ao.oninput=="function"}Yi=qi}else Yi=!1;Na=Yi&&(!document.documentMode||9<document.documentMode)}function Io(){In&&(In.detachEvent("onpropertychange",Ca),Yn=In=null)}function Ca(e){if(e.propertyName==="value"&&xi(Yn)){var t=[];Ea(t,Yn,e,kl(e)),sa(Ld,t)}}function zd(e,t,n){e==="focusin"?(Io(),In=t,Yn=n,In.attachEvent("onpropertychange",Ca)):e==="focusout"&&Io()}function Ad(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(Yn)}function Id(e,t){if(e==="click")return xi(t)}function Dd(e,t){if(e==="input"||e==="change")return xi(t)}function Md(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:Md;function qn(e,t){if(Fe(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(!hs.call(t,i)||!Fe(e[i],t[i]))return!1}return!0}function Do(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mo(e,t){var n=Do(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=Do(n)}}function Ta(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ta(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ja(){for(var e=window,t=Yr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yr(e.document)}return t}function Rl(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 Bd(e){var t=ja(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ta(n.ownerDocument.documentElement,n)){if(r!==null&&Rl(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Mo(n,s);var l=Mo(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(),s>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 Fd=Ze&&"documentMode"in document&&11>=document.documentMode,Wt=null,zs=null,Dn=null,As=!1;function Bo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;As||Wt==null||Wt!==Yr(r)||(r=Wt,"selectionStart"in r&&Rl(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}),Dn&&qn(Dn,r)||(Dn=r,r=ei(zs,"onSelect"),0<r.length&&(t=new Tl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Wt)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qt={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Xi={},Pa={};Ze&&(Pa=document.createElement("div").style,"AnimationEvent"in window||(delete Qt.animationend.animation,delete Qt.animationiteration.animation,delete Qt.animationstart.animation),"TransitionEvent"in window||delete Qt.transitionend.transition);function ki(e){if(Xi[e])return Xi[e];if(!Qt[e])return e;var t=Qt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pa)return Xi[e]=t[n];return e}var Ra=ki("animationend"),La=ki("animationiteration"),Oa=ki("animationstart"),za=ki("transitionend"),Aa=new Map,Fo="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 kt(e,t){Aa.set(e,t),Bt(t,[e])}for(var Gi=0;Gi<Fo.length;Gi++){var Ji=Fo[Gi],Ud=Ji.toLowerCase(),$d=Ji[0].toUpperCase()+Ji.slice(1);kt(Ud,"on"+$d)}kt(Ra,"onAnimationEnd");kt(La,"onAnimationIteration");kt(Oa,"onAnimationStart");kt("dblclick","onDoubleClick");kt("focusin","onFocus");kt("focusout","onBlur");kt(za,"onTransitionEnd");ln("onMouseEnter",["mouseout","mouseover"]);ln("onMouseLeave",["mouseout","mouseover"]);ln("onPointerEnter",["pointerout","pointerover"]);ln("onPointerLeave",["pointerout","pointerover"]);Bt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Bt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Bt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Bt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="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(" "),Vd=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rn));function Uo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Uf(r,t,void 0,e),e.currentTarget=null}function Ia(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 s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var o=r[l],u=o.instance,f=o.currentTarget;if(o=o.listener,u!==s&&i.isPropagationStopped())break e;Uo(i,o,f),s=u}else for(l=0;l<r.length;l++){if(o=r[l],u=o.instance,f=o.currentTarget,o=o.listener,u!==s&&i.isPropagationStopped())break e;Uo(i,o,f),s=u}}}if(Xr)throw e=Ps,Xr=!1,Ps=null,e}function $(e,t){var n=t[Fs];n===void 0&&(n=t[Fs]=new Set);var r=e+"__bubble";n.has(r)||(Da(t,e,2,!1),n.add(r))}function Zi(e,t,n){var r=0;t&&(r|=4),Da(n,e,r,t)}var xr="_reactListening"+Math.random().toString(36).slice(2);function Xn(e){if(!e[xr]){e[xr]=!0,Hu.forEach(function(n){n!=="selectionchange"&&(Vd.has(n)||Zi(n,!1,e),Zi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xr]||(t[xr]=!0,Zi("selectionchange",!1,t))}}function Da(e,t,n,r){switch(wa(t)){case 1:var i=nd;break;case 4:i=rd;break;default:i=Nl}n=i.bind(null,t,n,e),i=void 0,!js||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 bi(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.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(;o!==null;){if(l=jt(o),l===null)return;if(u=l.tag,u===5||u===6){r=s=l;continue e}o=o.parentNode}}r=r.return}sa(function(){var f=s,y=kl(n),m=[];e:{var h=Aa.get(e);if(h!==void 0){var w=Tl,v=e;switch(e){case"keypress":if(Ar(n)===0)break e;case"keydown":case"keyup":w=gd;break;case"focusin":v="focus",w=Ki;break;case"focusout":v="blur",w=Ki;break;case"beforeblur":case"afterblur":w=Ki;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":w=jo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=ld;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=kd;break;case Ra:case La:case Oa:w=ad;break;case za:w=_d;break;case"scroll":w=id;break;case"wheel":w=Nd;break;case"copy":case"cut":case"paste":w=fd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Ro}var S=(t&4)!==0,O=!S&&e==="scroll",d=S?h!==null?h+"Capture":null:h;S=[];for(var c=f,p;c!==null;){p=c;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,d!==null&&(g=Hn(c,d),g!=null&&S.push(Gn(c,g,p)))),O)break;c=c.return}0<S.length&&(h=new w(h,v,null,n,y),m.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",h&&n!==Cs&&(v=n.relatedTarget||n.fromElement)&&(jt(v)||v[be]))break e;if((w||h)&&(h=y.window===y?y:(h=y.ownerDocument)?h.defaultView||h.parentWindow:window,w?(v=n.relatedTarget||n.toElement,w=f,v=v?jt(v):null,v!==null&&(O=Ft(v),v!==O||v.tag!==5&&v.tag!==6)&&(v=null)):(w=null,v=f),w!==v)){if(S=jo,g="onMouseLeave",d="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(S=Ro,g="onPointerLeave",d="onPointerEnter",c="pointer"),O=w==null?h:Kt(w),p=v==null?h:Kt(v),h=new S(g,c+"leave",w,n,y),h.target=O,h.relatedTarget=p,g=null,jt(y)===f&&(S=new S(d,c+"enter",v,n,y),S.target=p,S.relatedTarget=O,g=S),O=g,w&&v)t:{for(S=w,d=v,c=0,p=S;p;p=Ut(p))c++;for(p=0,g=d;g;g=Ut(g))p++;for(;0<c-p;)S=Ut(S),c--;for(;0<p-c;)d=Ut(d),p--;for(;c--;){if(S===d||d!==null&&S===d.alternate)break t;S=Ut(S),d=Ut(d)}S=null}else S=null;w!==null&&$o(m,h,w,S,!1),v!==null&&O!==null&&$o(m,O,v,S,!0)}}e:{if(h=f?Kt(f):window,w=h.nodeName&&h.nodeName.toLowerCase(),w==="select"||w==="input"&&h.type==="file")var E=Od;else if(zo(h))if(Na)E=Dd;else{E=Ad;var j=zd}else(w=h.nodeName)&&w.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Id);if(E&&(E=E(e,f))){Ea(m,E,n,y);break e}j&&j(e,h,f),e==="focusout"&&(j=h._wrapperState)&&j.controlled&&h.type==="number"&&ks(h,"number",h.value)}switch(j=f?Kt(f):window,e){case"focusin":(zo(j)||j.contentEditable==="true")&&(Wt=j,zs=f,Dn=null);break;case"focusout":Dn=zs=Wt=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,Bo(m,n,y);break;case"selectionchange":if(Fd)break;case"keydown":case"keyup":Bo(m,n,y)}var P;if(Pl)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Ht?Sa(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(ka&&n.locale!=="ko"&&(Ht||k!=="onCompositionStart"?k==="onCompositionEnd"&&Ht&&(P=xa()):(ut=y,Cl="value"in ut?ut.value:ut.textContent,Ht=!0)),j=ei(f,k),0<j.length&&(k=new Po(k,e,null,n,y),m.push({event:k,listeners:j}),P?k.data=P:(P=_a(n),P!==null&&(k.data=P)))),(P=Td?jd(e,n):Pd(e,n))&&(f=ei(f,"onBeforeInput"),0<f.length&&(y=new Po("onBeforeInput","beforeinput",null,n,y),m.push({event:y,listeners:f}),y.data=P))}Ia(m,t)})}function Gn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ei(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Hn(e,n),s!=null&&r.unshift(Gn(e,s,i)),s=Hn(e,t),s!=null&&r.push(Gn(e,s,i))),e=e.return}return r}function Ut(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $o(e,t,n,r,i){for(var s=t._reactName,l=[];n!==null&&n!==r;){var o=n,u=o.alternate,f=o.stateNode;if(u!==null&&u===r)break;o.tag===5&&f!==null&&(o=f,i?(u=Hn(n,s),u!=null&&l.unshift(Gn(n,u,o))):i||(u=Hn(n,s),u!=null&&l.push(Gn(n,u,o)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Hd=/\r\n?/g,Wd=/\u0000|\uFFFD/g;function Vo(e){return(typeof e=="string"?e:""+e).replace(Hd,`
|
|
38
|
-
`).replace(Wd,"")}function kr(e,t,n){if(t=Vo(t),Vo(e)!==t&&n)throw Error(x(425))}function ti(){}var Is=null,Ds=null;function Ms(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 Bs=typeof setTimeout=="function"?setTimeout:void 0,Qd=typeof clearTimeout=="function"?clearTimeout:void 0,Ho=typeof Promise=="function"?Promise:void 0,Kd=typeof queueMicrotask=="function"?queueMicrotask:typeof Ho<"u"?function(e){return Ho.resolve(null).then(e).catch(Yd)}:Bs;function Yd(e){setTimeout(function(){throw e})}function es(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),Kn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Kn(t)}function pt(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 Wo(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 mn=Math.random().toString(36).slice(2),Ve="__reactFiber$"+mn,Jn="__reactProps$"+mn,be="__reactContainer$"+mn,Fs="__reactEvents$"+mn,qd="__reactListeners$"+mn,Xd="__reactHandles$"+mn;function jt(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[be]||n[Ve]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wo(e);e!==null;){if(n=e[Ve])return n;e=Wo(e)}return t}e=n,n=e.parentNode}return null}function or(e){return e=e[Ve]||e[be],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function Si(e){return e[Jn]||null}var Us=[],Yt=-1;function St(e){return{current:e}}function V(e){0>Yt||(e.current=Us[Yt],Us[Yt]=null,Yt--)}function F(e,t){Yt++,Us[Yt]=e.current,e.current=t}var xt={},ae=St(xt),ye=St(!1),zt=xt;function on(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={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ve(e){return e=e.childContextTypes,e!=null}function ni(){V(ye),V(ae)}function Qo(e,t,n){if(ae.current!==xt)throw Error(x(168));F(ae,t),F(ye,n)}function Ma(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(x(108,zf(e)||"Unknown",i));return K({},n,r)}function ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,zt=ae.current,F(ae,e),F(ye,ye.current),!0}function Ko(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Ma(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,V(ye),V(ae),F(ae,e)):V(ye),F(ye,n)}var qe=null,_i=!1,ts=!1;function Ba(e){qe===null?qe=[e]:qe.push(e)}function Gd(e){_i=!0,Ba(e)}function _t(){if(!ts&&qe!==null){ts=!0;var e=0,t=B;try{var n=qe;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qe=null,_i=!1}catch(i){throw qe!==null&&(qe=qe.slice(e+1)),aa(Sl,_t),i}finally{B=t,ts=!1}}return null}var qt=[],Xt=0,ii=null,si=0,Ne=[],Ce=0,At=null,Xe=1,Ge="";function Ct(e,t){qt[Xt++]=si,qt[Xt++]=ii,ii=e,si=t}function Fa(e,t,n){Ne[Ce++]=Xe,Ne[Ce++]=Ge,Ne[Ce++]=At,At=e;var r=Xe;e=Ge;var i=32-Me(r)-1;r&=~(1<<i),n+=1;var s=32-Me(t)+i;if(30<s){var l=i-i%5;s=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Xe=1<<32-Me(t)+i|n<<i|r,Ge=s+e}else Xe=1<<s|n<<i|r,Ge=e}function Ll(e){e.return!==null&&(Ct(e,1),Fa(e,1,0))}function Ol(e){for(;e===ii;)ii=qt[--Xt],qt[Xt]=null,si=qt[--Xt],qt[Xt]=null;for(;e===At;)At=Ne[--Ce],Ne[Ce]=null,Ge=Ne[--Ce],Ne[Ce]=null,Xe=Ne[--Ce],Ne[Ce]=null}var ke=null,xe=null,H=!1,De=null;function Ua(e,t){var n=je(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 Yo(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,xe=pt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ke=e,xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=At!==null?{id:Xe,overflow:Ge}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=je(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ke=e,xe=null,!0):!1;default:return!1}}function $s(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vs(e){if(H){var t=xe;if(t){var n=t;if(!Yo(e,t)){if($s(e))throw Error(x(418));t=pt(n.nextSibling);var r=ke;t&&Yo(e,t)?Ua(r,n):(e.flags=e.flags&-4097|2,H=!1,ke=e)}}else{if($s(e))throw Error(x(418));e.flags=e.flags&-4097|2,H=!1,ke=e}}}function qo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ke=e}function Sr(e){if(e!==ke)return!1;if(!H)return qo(e),H=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ms(e.type,e.memoizedProps)),t&&(t=xe)){if($s(e))throw $a(),Error(x(418));for(;t;)Ua(e,t),t=pt(t.nextSibling)}if(qo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xe=pt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xe=null}}else xe=ke?pt(e.stateNode.nextSibling):null;return!0}function $a(){for(var e=xe;e;)e=pt(e.nextSibling)}function un(){xe=ke=null,H=!1}function zl(e){De===null?De=[e]:De.push(e)}var Jd=nt.ReactCurrentBatchConfig;function _n(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(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var o=i.refs;l===null?delete o[s]:o[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function _r(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xo(e){var t=e._init;return t(e._payload)}function Va(e){function t(d,c){if(e){var p=d.deletions;p===null?(d.deletions=[c],d.flags|=16):p.push(c)}}function n(d,c){if(!e)return null;for(;c!==null;)t(d,c),c=c.sibling;return null}function r(d,c){for(d=new Map;c!==null;)c.key!==null?d.set(c.key,c):d.set(c.index,c),c=c.sibling;return d}function i(d,c){return d=vt(d,c),d.index=0,d.sibling=null,d}function s(d,c,p){return d.index=p,e?(p=d.alternate,p!==null?(p=p.index,p<c?(d.flags|=2,c):p):(d.flags|=2,c)):(d.flags|=1048576,c)}function l(d){return e&&d.alternate===null&&(d.flags|=2),d}function o(d,c,p,g){return c===null||c.tag!==6?(c=us(p,d.mode,g),c.return=d,c):(c=i(c,p),c.return=d,c)}function u(d,c,p,g){var E=p.type;return E===Vt?y(d,c,p.props.children,g,p.key):c!==null&&(c.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&Xo(E)===c.type)?(g=i(c,p.props),g.ref=_n(d,c,p),g.return=d,g):(g=$r(p.type,p.key,p.props,null,d.mode,g),g.ref=_n(d,c,p),g.return=d,g)}function f(d,c,p,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=as(p,d.mode,g),c.return=d,c):(c=i(c,p.children||[]),c.return=d,c)}function y(d,c,p,g,E){return c===null||c.tag!==7?(c=Ot(p,d.mode,g,E),c.return=d,c):(c=i(c,p),c.return=d,c)}function m(d,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=us(""+c,d.mode,p),c.return=d,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case dr:return p=$r(c.type,c.key,c.props,null,d.mode,p),p.ref=_n(d,null,c),p.return=d,p;case $t:return c=as(c,d.mode,p),c.return=d,c;case it:var g=c._init;return m(d,g(c._payload),p)}if(jn(c)||gn(c))return c=Ot(c,d.mode,p,null),c.return=d,c;_r(d,c)}return null}function h(d,c,p,g){var E=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return E!==null?null:o(d,c,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case dr:return p.key===E?u(d,c,p,g):null;case $t:return p.key===E?f(d,c,p,g):null;case it:return E=p._init,h(d,c,E(p._payload),g)}if(jn(p)||gn(p))return E!==null?null:y(d,c,p,g,null);_r(d,p)}return null}function w(d,c,p,g,E){if(typeof g=="string"&&g!==""||typeof g=="number")return d=d.get(p)||null,o(c,d,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case dr:return d=d.get(g.key===null?p:g.key)||null,u(c,d,g,E);case $t:return d=d.get(g.key===null?p:g.key)||null,f(c,d,g,E);case it:var j=g._init;return w(d,c,p,j(g._payload),E)}if(jn(g)||gn(g))return d=d.get(p)||null,y(c,d,g,E,null);_r(c,g)}return null}function v(d,c,p,g){for(var E=null,j=null,P=c,k=c=0,N=null;P!==null&&k<p.length;k++){P.index>k?(N=P,P=null):N=P.sibling;var _=h(d,P,p[k],g);if(_===null){P===null&&(P=N);break}e&&P&&_.alternate===null&&t(d,P),c=s(_,c,k),j===null?E=_:j.sibling=_,j=_,P=N}if(k===p.length)return n(d,P),H&&Ct(d,k),E;if(P===null){for(;k<p.length;k++)P=m(d,p[k],g),P!==null&&(c=s(P,c,k),j===null?E=P:j.sibling=P,j=P);return H&&Ct(d,k),E}for(P=r(d,P);k<p.length;k++)N=w(P,d,k,p[k],g),N!==null&&(e&&N.alternate!==null&&P.delete(N.key===null?k:N.key),c=s(N,c,k),j===null?E=N:j.sibling=N,j=N);return e&&P.forEach(function(R){return t(d,R)}),H&&Ct(d,k),E}function S(d,c,p,g){var E=gn(p);if(typeof E!="function")throw Error(x(150));if(p=E.call(p),p==null)throw Error(x(151));for(var j=E=null,P=c,k=c=0,N=null,_=p.next();P!==null&&!_.done;k++,_=p.next()){P.index>k?(N=P,P=null):N=P.sibling;var R=h(d,P,_.value,g);if(R===null){P===null&&(P=N);break}e&&P&&R.alternate===null&&t(d,P),c=s(R,c,k),j===null?E=R:j.sibling=R,j=R,P=N}if(_.done)return n(d,P),H&&Ct(d,k),E;if(P===null){for(;!_.done;k++,_=p.next())_=m(d,_.value,g),_!==null&&(c=s(_,c,k),j===null?E=_:j.sibling=_,j=_);return H&&Ct(d,k),E}for(P=r(d,P);!_.done;k++,_=p.next())_=w(P,d,k,_.value,g),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?k:_.key),c=s(_,c,k),j===null?E=_:j.sibling=_,j=_);return e&&P.forEach(function(U){return t(d,U)}),H&&Ct(d,k),E}function O(d,c,p,g){if(typeof p=="object"&&p!==null&&p.type===Vt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case dr:e:{for(var E=p.key,j=c;j!==null;){if(j.key===E){if(E=p.type,E===Vt){if(j.tag===7){n(d,j.sibling),c=i(j,p.props.children),c.return=d,d=c;break e}}else if(j.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&Xo(E)===j.type){n(d,j.sibling),c=i(j,p.props),c.ref=_n(d,j,p),c.return=d,d=c;break e}n(d,j);break}else t(d,j);j=j.sibling}p.type===Vt?(c=Ot(p.props.children,d.mode,g,p.key),c.return=d,d=c):(g=$r(p.type,p.key,p.props,null,d.mode,g),g.ref=_n(d,c,p),g.return=d,d=g)}return l(d);case $t:e:{for(j=p.key;c!==null;){if(c.key===j)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=i(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=as(p,d.mode,g),c.return=d,d=c}return l(d);case it:return j=p._init,O(d,c,j(p._payload),g)}if(jn(p))return v(d,c,p,g);if(gn(p))return S(d,c,p,g);_r(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=i(c,p),c.return=d,d=c):(n(d,c),c=us(p,d.mode,g),c.return=d,d=c),l(d)):n(d,c)}return O}var an=Va(!0),Ha=Va(!1),li=St(null),oi=null,Gt=null,Al=null;function Il(){Al=Gt=oi=null}function Dl(e){var t=li.current;V(li),e._currentValue=t}function Hs(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 rn(e,t){oi=e,Al=Gt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Re(e){var t=e._currentValue;if(Al!==e)if(e={context:e,memoizedValue:t,next:null},Gt===null){if(oi===null)throw Error(x(308));Gt=e,oi.dependencies={lanes:0,firstContext:e}}else Gt=Gt.next=e;return t}var Pt=null;function Ml(e){Pt===null?Pt=[e]:Pt.push(e)}function Wa(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ml(t)):(n.next=i.next,i.next=n),t.interleaved=n,et(e,r)}function et(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 st=!1;function Bl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qa(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 Je(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,et(e,n)}return i=r.interleaved,i===null?(t.next=t,Ml(r)):(t.next=i.next,i.next=t),r.interleaved=t,et(e,n)}function Ir(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,_l(e,n)}}function Go(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 ui(e,t,n,r){var i=e.updateQueue;st=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,f=u.next;u.next=null,l===null?s=f:l.next=f,l=u;var y=e.alternate;y!==null&&(y=y.updateQueue,o=y.lastBaseUpdate,o!==l&&(o===null?y.firstBaseUpdate=f:o.next=f,y.lastBaseUpdate=u))}if(s!==null){var m=i.baseState;l=0,y=f=u=null,o=s;do{var h=o.lane,w=o.eventTime;if((r&h)===h){y!==null&&(y=y.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var v=e,S=o;switch(h=t,w=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){m=v.call(w,m,h);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,h=typeof v=="function"?v.call(w,m,h):v,h==null)break e;m=K({},m,h);break e;case 2:st=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[o]:h.push(o))}else w={eventTime:w,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},y===null?(f=y=w,u=m):y=y.next=w,l|=h;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(y===null&&(u=m),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=y,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Dt|=l,e.lanes=l,e.memoizedState=m}}function Jo(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(x(191,i));i.call(r)}}}var ur={},We=St(ur),Zn=St(ur),bn=St(ur);function Rt(e){if(e===ur)throw Error(x(174));return e}function Fl(e,t){switch(F(bn,t),F(Zn,e),F(We,ur),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_s(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_s(t,e)}V(We),F(We,t)}function cn(){V(We),V(Zn),V(bn)}function Ka(e){Rt(bn.current);var t=Rt(We.current),n=_s(t,e.type);t!==n&&(F(Zn,e),F(We,n))}function Ul(e){Zn.current===e&&(V(We),V(Zn))}var W=St(0);function ai(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 ns=[];function $l(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var Dr=nt.ReactCurrentDispatcher,rs=nt.ReactCurrentBatchConfig,It=0,Q=null,Z=null,te=null,ci=!1,Mn=!1,er=0,Zd=0;function le(){throw Error(x(321))}function Vl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function Hl(e,t,n,r,i,s){if(It=s,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Dr.current=e===null||e.memoizedState===null?np:rp,e=n(r,i),Mn){s=0;do{if(Mn=!1,er=0,25<=s)throw Error(x(301));s+=1,te=Z=null,t.updateQueue=null,Dr.current=ip,e=n(r,i)}while(Mn)}if(Dr.current=fi,t=Z!==null&&Z.next!==null,It=0,te=Z=Q=null,ci=!1,t)throw Error(x(300));return e}function Wl(){var e=er!==0;return er=0,e}function $e(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?Q.memoizedState=te=e:te=te.next=e,te}function Le(){if(Z===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=te===null?Q.memoizedState:te.next;if(t!==null)te=t,Z=e;else{if(e===null)throw Error(x(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},te===null?Q.memoizedState=te=e:te=te.next=e}return te}function tr(e,t){return typeof t=="function"?t(e):t}function is(e){var t=Le(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=Z,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=l=null,u=null,f=s;do{var y=f.lane;if((It&y)===y)u!==null&&(u=u.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var m={lane:y,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};u===null?(o=u=m,l=r):u=u.next=m,Q.lanes|=y,Dt|=y}f=f.next}while(f!==null&&f!==s);u===null?l=r:u.next=o,Fe(r,t.memoizedState)||(me=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Q.lanes|=s,Dt|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ss(e){var t=Le(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);Fe(s,t.memoizedState)||(me=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ya(){}function qa(e,t){var n=Q,r=Le(),i=t(),s=!Fe(r.memoizedState,i);if(s&&(r.memoizedState=i,me=!0),r=r.queue,Ql(Ja.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,nr(9,Ga.bind(null,n,r,i,t),void 0,null),ne===null)throw Error(x(349));It&30||Xa(n,t,i)}return i}function Xa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ga(e,t,n,r){t.value=n,t.getSnapshot=r,Za(t)&&ba(e)}function Ja(e,t,n){return n(function(){Za(t)&&ba(e)})}function Za(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fe(e,n)}catch{return!0}}function ba(e){var t=et(e,1);t!==null&&Be(t,e,1,-1)}function Zo(e){var t=$e();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:e},t.queue=e,e=e.dispatch=tp.bind(null,Q,e),[t.memoizedState,e]}function nr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.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 ec(){return Le().memoizedState}function Mr(e,t,n,r){var i=$e();Q.flags|=e,i.memoizedState=nr(1|t,n,void 0,r===void 0?null:r)}function Ei(e,t,n,r){var i=Le();r=r===void 0?null:r;var s=void 0;if(Z!==null){var l=Z.memoizedState;if(s=l.destroy,r!==null&&Vl(r,l.deps)){i.memoizedState=nr(t,n,s,r);return}}Q.flags|=e,i.memoizedState=nr(1|t,n,s,r)}function bo(e,t){return Mr(8390656,8,e,t)}function Ql(e,t){return Ei(2048,8,e,t)}function tc(e,t){return Ei(4,2,e,t)}function nc(e,t){return Ei(4,4,e,t)}function rc(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 ic(e,t,n){return n=n!=null?n.concat([e]):null,Ei(4,4,rc.bind(null,t,e),n)}function Kl(){}function sc(e,t){var n=Le();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lc(e,t){var n=Le();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oc(e,t,n){return It&21?(Fe(n,t)||(n=da(),Q.lanes|=n,Dt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,me=!0),e.memoizedState=n)}function bd(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=rs.transition;rs.transition={};try{e(!1),t()}finally{B=n,rs.transition=r}}function uc(){return Le().memoizedState}function ep(e,t,n){var r=yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e))cc(t,n);else if(n=Wa(e,t,n,r),n!==null){var i=fe();Be(n,e,r,i),fc(n,t,r)}}function tp(e,t,n){var r=yt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ac(e))cc(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,o=s(l,n);if(i.hasEagerState=!0,i.eagerState=o,Fe(o,l)){var u=t.interleaved;u===null?(i.next=i,Ml(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Wa(e,t,i,r),n!==null&&(i=fe(),Be(n,e,r,i),fc(n,t,r))}}function ac(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function cc(e,t){Mn=ci=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_l(e,n)}}var fi={readContext:Re,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},np={readContext:Re,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:bo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,rc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=$e();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$e();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=ep.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:Zo,useDebugValue:Kl,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=Zo(!1),t=e[0];return e=bd.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=$e();if(H){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ne===null)throw Error(x(349));It&30||Xa(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,bo(Ja.bind(null,r,s,e),[e]),r.flags|=2048,nr(9,Ga.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$e(),t=ne.identifierPrefix;if(H){var n=Ge,r=Xe;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=er++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rp={readContext:Re,useCallback:sc,useContext:Re,useEffect:Ql,useImperativeHandle:ic,useInsertionEffect:tc,useLayoutEffect:nc,useMemo:lc,useReducer:is,useRef:ec,useState:function(){return is(tr)},useDebugValue:Kl,useDeferredValue:function(e){var t=Le();return oc(t,Z.memoizedState,e)},useTransition:function(){var e=is(tr)[0],t=Le().memoizedState;return[e,t]},useMutableSource:Ya,useSyncExternalStore:qa,useId:uc,unstable_isNewReconciler:!1},ip={readContext:Re,useCallback:sc,useContext:Re,useEffect:Ql,useImperativeHandle:ic,useInsertionEffect:tc,useLayoutEffect:nc,useMemo:lc,useReducer:ss,useRef:ec,useState:function(){return ss(tr)},useDebugValue:Kl,useDeferredValue:function(e){var t=Le();return Z===null?t.memoizedState=e:oc(t,Z.memoizedState,e)},useTransition:function(){var e=ss(tr)[0],t=Le().memoizedState;return[e,t]},useMutableSource:Ya,useSyncExternalStore:qa,useId:uc,unstable_isNewReconciler:!1};function ze(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ni={isMounted:function(e){return(e=e._reactInternals)?Ft(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),i=yt(e),s=Je(r,i);s.payload=t,n!=null&&(s.callback=n),t=ht(e,s,i),t!==null&&(Be(t,e,i,r),Ir(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fe(),i=yt(e),s=Je(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ht(e,s,i),t!==null&&(Be(t,e,i,r),Ir(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fe(),r=yt(e),i=Je(n,r);i.tag=2,t!=null&&(i.callback=t),t=ht(e,i,r),t!==null&&(Be(t,e,r,n),Ir(t,e,r))}};function eu(e,t,n,r,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!qn(n,r)||!qn(i,s):!0}function dc(e,t,n){var r=!1,i=xt,s=t.contextType;return typeof s=="object"&&s!==null?s=Re(s):(i=ve(t)?zt:ae.current,r=t.contextTypes,s=(r=r!=null)?on(e,i):xt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ni,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function tu(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&&Ni.enqueueReplaceState(t,t.state,null)}function Qs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Bl(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Re(s):(s=ve(t)?zt:ae.current,i.context=on(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ws(e,t,s,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&&Ni.enqueueReplaceState(i,i.state,null),ui(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fn(e,t){try{var n="",r=t;do n+=Of(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
37
|
+
`+i[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=o);break}}}finally{Ui=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tn(e):""}function Of(e){switch(e.tag){case 5:return Tn(e.type);case 16:return Tn("Lazy");case 13:return Tn("Suspense");case 19:return Tn("SuspenseList");case 0:case 2:case 15:return e=$i(e.type,!1),e;case 11:return e=$i(e.type.render,!1),e;case 1:return e=$i(e.type,!0),e;default:return""}}function gs(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 Vt:return"Fragment";case $t:return"Portal";case ms:return"Profiler";case gl:return"StrictMode";case ys:return"Suspense";case vs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qu:return(e.displayName||"Context")+".Consumer";case Wu:return(e._context.displayName||"Context")+".Provider";case wl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xl:return t=e.displayName||null,t!==null?t:gs(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return gs(e(t))}catch{}}return null}function zf(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 gs(t);case 8:return t===gl?"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 wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Af(e){var t=Yu(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,s.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 pr(e){e._valueTracker||(e._valueTracker=Af(e))}function qu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yr(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 ws(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function go(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wt(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 Xu(e,t){t=t.checked,t!=null&&vl(e,"checked",t,!1)}function xs(e,t){Xu(e,t);var n=wt(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")?ks(e,t.type,n):t.hasOwnProperty("defaultValue")&&ks(e,t.type,wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wo(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 ks(e,t,n){(t!=="number"||Yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var jn=Array.isArray;function bt(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=""+wt(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 Ss(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(jn(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:wt(n)}}function Gu(e,t){var n=wt(t.value),r=wt(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 ko(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ju(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 _s(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ju(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hr,Zu=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(hr=hr||document.createElement("div"),hr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var On={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},If=["Webkit","ms","Moz","O"];Object.keys(On).forEach(function(e){If.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]})});function bu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function ea(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Df=K({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 Es(e,t){if(t){if(Df[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ns(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 Cs=null;function kl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ts=null,en=null,tn=null;function So(e){if(e=or(e)){if(typeof Ts!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Si(t),Ts(e.stateNode,e.type,t))}}function ta(e){en?tn?tn.push(e):tn=[e]:en=e}function na(){if(en){var e=en,t=tn;if(tn=en=null,So(e),t)for(e=0;e<t.length;e++)So(t[e])}}function ra(e,t){return e(t)}function ia(){}var Vi=!1;function sa(e,t,n){if(Vi)return e(t,n);Vi=!0;try{return ra(e,t,n)}finally{Vi=!1,(en!==null||tn!==null)&&(ia(),na())}}function Hn(e,t){var n=e.stateNode;if(n===null)return null;var r=Si(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(k(231,t,typeof n));return n}var js=!1;if(Ze)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){js=!0}}),window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{js=!1}function Mf(e,t,n,r,i,s,l,o,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(y){this.onError(y)}}var zn=!1,qr=null,Xr=!1,Ps=null,Bf={onError:function(e){zn=!0,qr=e}};function Ff(e,t,n,r,i,s,l,o,u){zn=!1,qr=null,Mf.apply(Bf,arguments)}function Uf(e,t,n,r,i,s,l,o,u){if(Ff.apply(this,arguments),zn){if(zn){var f=qr;zn=!1,qr=null}else throw Error(k(198));Xr||(Xr=!0,Ps=f)}}function Ft(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 la(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 _o(e){if(Ft(e)!==e)throw Error(k(188))}function $f(e){var t=e.alternate;if(!t){if(t=Ft(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return _o(i),e;if(s===r)return _o(i),t;s=s.sibling}throw Error(k(188))}if(n.return!==r.return)n=i,r=s;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,r=s;break}if(o===r){l=!0,r=i,n=s;break}o=o.sibling}if(!l){for(o=s.child;o;){if(o===n){l=!0,n=s,r=i;break}if(o===r){l=!0,r=s,n=i;break}o=o.sibling}if(!l)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function oa(e){return e=$f(e),e!==null?ua(e):null}function ua(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ua(e);if(t!==null)return t;e=e.sibling}return null}var aa=Se.unstable_scheduleCallback,Eo=Se.unstable_cancelCallback,Vf=Se.unstable_shouldYield,Hf=Se.unstable_requestPaint,X=Se.unstable_now,Wf=Se.unstable_getCurrentPriorityLevel,Sl=Se.unstable_ImmediatePriority,ca=Se.unstable_UserBlockingPriority,Gr=Se.unstable_NormalPriority,Qf=Se.unstable_LowPriority,fa=Se.unstable_IdlePriority,gi=null,He=null;function Kf(e){if(He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Me=Math.clz32?Math.clz32:Xf,Yf=Math.log,qf=Math.LN2;function Xf(e){return e>>>=0,e===0?32:31-(Yf(e)/qf|0)|0}var mr=64,yr=4194304;function Pn(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 Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var o=l&~i;o!==0?r=Pn(o):(s&=l,s!==0&&(r=Pn(s)))}else l=n&~i,l!==0?r=Pn(l):s!==0&&(r=Pn(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-Me(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 Jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Me(s),o=1<<l,u=i[l];u===-1?(!(o&n)||o&r)&&(i[l]=Gf(o,t)):u<=t&&(e.expiredLanes|=o),s&=~o}}function Rs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function da(){var e=mr;return mr<<=1,!(mr&4194240)&&(mr=64),e}function Hi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function Zf(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-Me(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function _l(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var B=0;function pa(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ha,El,ma,ya,va,Ls=!1,vr=[],ct=null,ft=null,dt=null,Wn=new Map,Qn=new Map,lt=[],bf="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 No(e,t){switch(e){case"focusin":case"focusout":ct=null;break;case"dragenter":case"dragleave":ft=null;break;case"mouseover":case"mouseout":dt=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qn.delete(t.pointerId)}}function xn(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=or(t),t!==null&&El(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ed(e,t,n,r,i){switch(t){case"focusin":return ct=xn(ct,e,t,n,r,i),!0;case"dragenter":return ft=xn(ft,e,t,n,r,i),!0;case"mouseover":return dt=xn(dt,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Wn.set(s,xn(Wn.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Qn.set(s,xn(Qn.get(s)||null,e,t,n,r,i)),!0}return!1}function ga(e){var t=jt(e.target);if(t!==null){var n=Ft(t);if(n!==null){if(t=n.tag,t===13){if(t=la(n),t!==null){e.blockedOn=t,va(e.priority,function(){ma(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 Or(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Os(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cs=r,n.target.dispatchEvent(r),Cs=null}else return t=or(n),t!==null&&El(t),e.blockedOn=n,!1;t.shift()}return!0}function Co(e,t,n){Or(e)&&n.delete(t)}function td(){Ls=!1,ct!==null&&Or(ct)&&(ct=null),ft!==null&&Or(ft)&&(ft=null),dt!==null&&Or(dt)&&(dt=null),Wn.forEach(Co),Qn.forEach(Co)}function kn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ls||(Ls=!0,Se.unstable_scheduleCallback(Se.unstable_NormalPriority,td)))}function Kn(e){function t(i){return kn(i,e)}if(0<vr.length){kn(vr[0],e);for(var n=1;n<vr.length;n++){var r=vr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ct!==null&&kn(ct,e),ft!==null&&kn(ft,e),dt!==null&&kn(dt,e),Wn.forEach(t),Qn.forEach(t),n=0;n<lt.length;n++)r=lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<lt.length&&(n=lt[0],n.blockedOn===null);)ga(n),n.blockedOn===null&<.shift()}var nn=nt.ReactCurrentBatchConfig,Zr=!0;function nd(e,t,n,r){var i=B,s=nn.transition;nn.transition=null;try{B=1,Nl(e,t,n,r)}finally{B=i,nn.transition=s}}function rd(e,t,n,r){var i=B,s=nn.transition;nn.transition=null;try{B=4,Nl(e,t,n,r)}finally{B=i,nn.transition=s}}function Nl(e,t,n,r){if(Zr){var i=Os(e,t,n,r);if(i===null)bi(e,t,r,br,n),No(e,r);else if(ed(i,e,t,n,r))r.stopPropagation();else if(No(e,r),t&4&&-1<bf.indexOf(e)){for(;i!==null;){var s=or(i);if(s!==null&&ha(s),s=Os(e,t,n,r),s===null&&bi(e,t,r,br,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else bi(e,t,r,null,n)}}var br=null;function Os(e,t,n,r){if(br=null,e=kl(r),e=jt(e),e!==null)if(t=Ft(e),t===null)e=null;else if(n=t.tag,n===13){if(e=la(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 br=e,null}function wa(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(Wf()){case Sl:return 1;case ca:return 4;case Gr:case Qf:return 16;case fa:return 536870912;default:return 16}default:return 16}}var ut=null,Cl=null,zr=null;function xa(){if(zr)return zr;var e,t=Cl,n=t.length,r,i="value"in ut?ut.value:ut.textContent,s=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[s-r];r++);return zr=i.slice(e,1<r?1-r:void 0)}function Ar(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 gr(){return!0}function To(){return!1}function Ee(e){function t(n,r,i,s,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?gr:To,this.isPropagationStopped=To,this}return K(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=gr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gr)},persist:function(){},isPersistent:gr}),t}var hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=Ee(hn),lr=K({},hn,{view:0,detail:0}),id=Ee(lr),Wi,Qi,Sn,wi=K({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jl,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!==Sn&&(Sn&&e.type==="mousemove"?(Wi=e.screenX-Sn.screenX,Qi=e.screenY-Sn.screenY):Qi=Wi=0,Sn=e),Wi)},movementY:function(e){return"movementY"in e?e.movementY:Qi}}),jo=Ee(wi),sd=K({},wi,{dataTransfer:0}),ld=Ee(sd),od=K({},lr,{relatedTarget:0}),Ki=Ee(od),ud=K({},hn,{animationName:0,elapsedTime:0,pseudoElement:0}),ad=Ee(ud),cd=K({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fd=Ee(cd),dd=K({},hn,{data:0}),Po=Ee(dd),pd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},md={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=md[e])?!!t[e]:!1}function jl(){return yd}var vd=K({},lr,{key:function(e){if(e.key){var t=pd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jl,charCode:function(e){return e.type==="keypress"?Ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gd=Ee(vd),wd=K({},wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ro=Ee(wd),xd=K({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jl}),kd=Ee(xd),Sd=K({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),_d=Ee(Sd),Ed=K({},wi,{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=Ee(Ed),Cd=[9,13,27,32],Pl=Ze&&"CompositionEvent"in window,An=null;Ze&&"documentMode"in document&&(An=document.documentMode);var Td=Ze&&"TextEvent"in window&&!An,ka=Ze&&(!Pl||An&&8<An&&11>=An),Lo=" ",Oo=!1;function Sa(e,t){switch(e){case"keyup":return Cd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _a(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ht=!1;function jd(e,t){switch(e){case"compositionend":return _a(t);case"keypress":return t.which!==32?null:(Oo=!0,Lo);case"textInput":return e=t.data,e===Lo&&Oo?null:e;default:return null}}function Pd(e,t){if(Ht)return e==="compositionend"||!Pl&&Sa(e,t)?(e=xa(),zr=Cl=ut=null,Ht=!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 ka&&t.locale!=="ko"?null:t.data;default:return null}}var Rd={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 zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rd[e.type]:t==="textarea"}function Ea(e,t,n,r){ta(r),t=ei(t,"onChange"),0<t.length&&(n=new Tl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,Yn=null;function Ld(e){Ia(e,0)}function xi(e){var t=Kt(e);if(qu(t))return e}function Od(e,t){if(e==="change")return t}var Na=!1;if(Ze){var Yi;if(Ze){var qi="oninput"in document;if(!qi){var Ao=document.createElement("div");Ao.setAttribute("oninput","return;"),qi=typeof Ao.oninput=="function"}Yi=qi}else Yi=!1;Na=Yi&&(!document.documentMode||9<document.documentMode)}function Io(){In&&(In.detachEvent("onpropertychange",Ca),Yn=In=null)}function Ca(e){if(e.propertyName==="value"&&xi(Yn)){var t=[];Ea(t,Yn,e,kl(e)),sa(Ld,t)}}function zd(e,t,n){e==="focusin"?(Io(),In=t,Yn=n,In.attachEvent("onpropertychange",Ca)):e==="focusout"&&Io()}function Ad(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(Yn)}function Id(e,t){if(e==="click")return xi(t)}function Dd(e,t){if(e==="input"||e==="change")return xi(t)}function Md(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:Md;function qn(e,t){if(Fe(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(!hs.call(t,i)||!Fe(e[i],t[i]))return!1}return!0}function Do(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mo(e,t){var n=Do(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=Do(n)}}function Ta(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ta(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ja(){for(var e=window,t=Yr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yr(e.document)}return t}function Rl(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 Bd(e){var t=ja(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ta(n.ownerDocument.documentElement,n)){if(r!==null&&Rl(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Mo(n,s);var l=Mo(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(),s>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 Fd=Ze&&"documentMode"in document&&11>=document.documentMode,Wt=null,zs=null,Dn=null,As=!1;function Bo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;As||Wt==null||Wt!==Yr(r)||(r=Wt,"selectionStart"in r&&Rl(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}),Dn&&qn(Dn,r)||(Dn=r,r=ei(zs,"onSelect"),0<r.length&&(t=new Tl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Wt)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qt={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Xi={},Pa={};Ze&&(Pa=document.createElement("div").style,"AnimationEvent"in window||(delete Qt.animationend.animation,delete Qt.animationiteration.animation,delete Qt.animationstart.animation),"TransitionEvent"in window||delete Qt.transitionend.transition);function ki(e){if(Xi[e])return Xi[e];if(!Qt[e])return e;var t=Qt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pa)return Xi[e]=t[n];return e}var Ra=ki("animationend"),La=ki("animationiteration"),Oa=ki("animationstart"),za=ki("transitionend"),Aa=new Map,Fo="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 kt(e,t){Aa.set(e,t),Bt(t,[e])}for(var Gi=0;Gi<Fo.length;Gi++){var Ji=Fo[Gi],Ud=Ji.toLowerCase(),$d=Ji[0].toUpperCase()+Ji.slice(1);kt(Ud,"on"+$d)}kt(Ra,"onAnimationEnd");kt(La,"onAnimationIteration");kt(Oa,"onAnimationStart");kt("dblclick","onDoubleClick");kt("focusin","onFocus");kt("focusout","onBlur");kt(za,"onTransitionEnd");ln("onMouseEnter",["mouseout","mouseover"]);ln("onMouseLeave",["mouseout","mouseover"]);ln("onPointerEnter",["pointerout","pointerover"]);ln("onPointerLeave",["pointerout","pointerover"]);Bt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Bt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Bt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Bt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="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(" "),Vd=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rn));function Uo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Uf(r,t,void 0,e),e.currentTarget=null}function Ia(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 s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var o=r[l],u=o.instance,f=o.currentTarget;if(o=o.listener,u!==s&&i.isPropagationStopped())break e;Uo(i,o,f),s=u}else for(l=0;l<r.length;l++){if(o=r[l],u=o.instance,f=o.currentTarget,o=o.listener,u!==s&&i.isPropagationStopped())break e;Uo(i,o,f),s=u}}}if(Xr)throw e=Ps,Xr=!1,Ps=null,e}function $(e,t){var n=t[Fs];n===void 0&&(n=t[Fs]=new Set);var r=e+"__bubble";n.has(r)||(Da(t,e,2,!1),n.add(r))}function Zi(e,t,n){var r=0;t&&(r|=4),Da(n,e,r,t)}var xr="_reactListening"+Math.random().toString(36).slice(2);function Xn(e){if(!e[xr]){e[xr]=!0,Hu.forEach(function(n){n!=="selectionchange"&&(Vd.has(n)||Zi(n,!1,e),Zi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xr]||(t[xr]=!0,Zi("selectionchange",!1,t))}}function Da(e,t,n,r){switch(wa(t)){case 1:var i=nd;break;case 4:i=rd;break;default:i=Nl}n=i.bind(null,t,n,e),i=void 0,!js||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 bi(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.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(;o!==null;){if(l=jt(o),l===null)return;if(u=l.tag,u===5||u===6){r=s=l;continue e}o=o.parentNode}}r=r.return}sa(function(){var f=s,y=kl(n),m=[];e:{var h=Aa.get(e);if(h!==void 0){var x=Tl,v=e;switch(e){case"keypress":if(Ar(n)===0)break e;case"keydown":case"keyup":x=gd;break;case"focusin":v="focus",x=Ki;break;case"focusout":v="blur",x=Ki;break;case"beforeblur":case"afterblur":x=Ki;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":x=jo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=ld;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=kd;break;case Ra:case La:case Oa:x=ad;break;case za:x=_d;break;case"scroll":x=id;break;case"wheel":x=Nd;break;case"copy":case"cut":case"paste":x=fd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Ro}var S=(t&4)!==0,O=!S&&e==="scroll",d=S?h!==null?h+"Capture":null:h;S=[];for(var c=f,p;c!==null;){p=c;var w=p.stateNode;if(p.tag===5&&w!==null&&(p=w,d!==null&&(w=Hn(c,d),w!=null&&S.push(Gn(c,w,p)))),O)break;c=c.return}0<S.length&&(h=new x(h,v,null,n,y),m.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",h&&n!==Cs&&(v=n.relatedTarget||n.fromElement)&&(jt(v)||v[be]))break e;if((x||h)&&(h=y.window===y?y:(h=y.ownerDocument)?h.defaultView||h.parentWindow:window,x?(v=n.relatedTarget||n.toElement,x=f,v=v?jt(v):null,v!==null&&(O=Ft(v),v!==O||v.tag!==5&&v.tag!==6)&&(v=null)):(x=null,v=f),x!==v)){if(S=jo,w="onMouseLeave",d="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(S=Ro,w="onPointerLeave",d="onPointerEnter",c="pointer"),O=x==null?h:Kt(x),p=v==null?h:Kt(v),h=new S(w,c+"leave",x,n,y),h.target=O,h.relatedTarget=p,w=null,jt(y)===f&&(S=new S(d,c+"enter",v,n,y),S.target=p,S.relatedTarget=O,w=S),O=w,x&&v)t:{for(S=x,d=v,c=0,p=S;p;p=Ut(p))c++;for(p=0,w=d;w;w=Ut(w))p++;for(;0<c-p;)S=Ut(S),c--;for(;0<p-c;)d=Ut(d),p--;for(;c--;){if(S===d||d!==null&&S===d.alternate)break t;S=Ut(S),d=Ut(d)}S=null}else S=null;x!==null&&$o(m,h,x,S,!1),v!==null&&O!==null&&$o(m,O,v,S,!0)}}e:{if(h=f?Kt(f):window,x=h.nodeName&&h.nodeName.toLowerCase(),x==="select"||x==="input"&&h.type==="file")var E=Od;else if(zo(h))if(Na)E=Dd;else{E=Ad;var j=zd}else(x=h.nodeName)&&x.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Id);if(E&&(E=E(e,f))){Ea(m,E,n,y);break e}j&&j(e,h,f),e==="focusout"&&(j=h._wrapperState)&&j.controlled&&h.type==="number"&&ks(h,"number",h.value)}switch(j=f?Kt(f):window,e){case"focusin":(zo(j)||j.contentEditable==="true")&&(Wt=j,zs=f,Dn=null);break;case"focusout":Dn=zs=Wt=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,Bo(m,n,y);break;case"selectionchange":if(Fd)break;case"keydown":case"keyup":Bo(m,n,y)}var P;if(Pl)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Ht?Sa(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(ka&&n.locale!=="ko"&&(Ht||C!=="onCompositionStart"?C==="onCompositionEnd"&&Ht&&(P=xa()):(ut=y,Cl="value"in ut?ut.value:ut.textContent,Ht=!0)),j=ei(f,C),0<j.length&&(C=new Po(C,e,null,n,y),m.push({event:C,listeners:j}),P?C.data=P:(P=_a(n),P!==null&&(C.data=P)))),(P=Td?jd(e,n):Pd(e,n))&&(f=ei(f,"onBeforeInput"),0<f.length&&(y=new Po("onBeforeInput","beforeinput",null,n,y),m.push({event:y,listeners:f}),y.data=P))}Ia(m,t)})}function Gn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ei(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Hn(e,n),s!=null&&r.unshift(Gn(e,s,i)),s=Hn(e,t),s!=null&&r.push(Gn(e,s,i))),e=e.return}return r}function Ut(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $o(e,t,n,r,i){for(var s=t._reactName,l=[];n!==null&&n!==r;){var o=n,u=o.alternate,f=o.stateNode;if(u!==null&&u===r)break;o.tag===5&&f!==null&&(o=f,i?(u=Hn(n,s),u!=null&&l.unshift(Gn(n,u,o))):i||(u=Hn(n,s),u!=null&&l.push(Gn(n,u,o)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Hd=/\r\n?/g,Wd=/\u0000|\uFFFD/g;function Vo(e){return(typeof e=="string"?e:""+e).replace(Hd,`
|
|
38
|
+
`).replace(Wd,"")}function kr(e,t,n){if(t=Vo(t),Vo(e)!==t&&n)throw Error(k(425))}function ti(){}var Is=null,Ds=null;function Ms(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 Bs=typeof setTimeout=="function"?setTimeout:void 0,Qd=typeof clearTimeout=="function"?clearTimeout:void 0,Ho=typeof Promise=="function"?Promise:void 0,Kd=typeof queueMicrotask=="function"?queueMicrotask:typeof Ho<"u"?function(e){return Ho.resolve(null).then(e).catch(Yd)}:Bs;function Yd(e){setTimeout(function(){throw e})}function es(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),Kn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Kn(t)}function pt(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 Wo(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 mn=Math.random().toString(36).slice(2),Ve="__reactFiber$"+mn,Jn="__reactProps$"+mn,be="__reactContainer$"+mn,Fs="__reactEvents$"+mn,qd="__reactListeners$"+mn,Xd="__reactHandles$"+mn;function jt(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[be]||n[Ve]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wo(e);e!==null;){if(n=e[Ve])return n;e=Wo(e)}return t}e=n,n=e.parentNode}return null}function or(e){return e=e[Ve]||e[be],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function Si(e){return e[Jn]||null}var Us=[],Yt=-1;function St(e){return{current:e}}function V(e){0>Yt||(e.current=Us[Yt],Us[Yt]=null,Yt--)}function F(e,t){Yt++,Us[Yt]=e.current,e.current=t}var xt={},ae=St(xt),ye=St(!1),zt=xt;function on(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={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ve(e){return e=e.childContextTypes,e!=null}function ni(){V(ye),V(ae)}function Qo(e,t,n){if(ae.current!==xt)throw Error(k(168));F(ae,t),F(ye,n)}function Ma(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(k(108,zf(e)||"Unknown",i));return K({},n,r)}function ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,zt=ae.current,F(ae,e),F(ye,ye.current),!0}function Ko(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Ma(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,V(ye),V(ae),F(ae,e)):V(ye),F(ye,n)}var qe=null,_i=!1,ts=!1;function Ba(e){qe===null?qe=[e]:qe.push(e)}function Gd(e){_i=!0,Ba(e)}function _t(){if(!ts&&qe!==null){ts=!0;var e=0,t=B;try{var n=qe;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qe=null,_i=!1}catch(i){throw qe!==null&&(qe=qe.slice(e+1)),aa(Sl,_t),i}finally{B=t,ts=!1}}return null}var qt=[],Xt=0,ii=null,si=0,Ne=[],Ce=0,At=null,Xe=1,Ge="";function Ct(e,t){qt[Xt++]=si,qt[Xt++]=ii,ii=e,si=t}function Fa(e,t,n){Ne[Ce++]=Xe,Ne[Ce++]=Ge,Ne[Ce++]=At,At=e;var r=Xe;e=Ge;var i=32-Me(r)-1;r&=~(1<<i),n+=1;var s=32-Me(t)+i;if(30<s){var l=i-i%5;s=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Xe=1<<32-Me(t)+i|n<<i|r,Ge=s+e}else Xe=1<<s|n<<i|r,Ge=e}function Ll(e){e.return!==null&&(Ct(e,1),Fa(e,1,0))}function Ol(e){for(;e===ii;)ii=qt[--Xt],qt[Xt]=null,si=qt[--Xt],qt[Xt]=null;for(;e===At;)At=Ne[--Ce],Ne[Ce]=null,Ge=Ne[--Ce],Ne[Ce]=null,Xe=Ne[--Ce],Ne[Ce]=null}var ke=null,xe=null,H=!1,De=null;function Ua(e,t){var n=je(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 Yo(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,xe=pt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ke=e,xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=At!==null?{id:Xe,overflow:Ge}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=je(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ke=e,xe=null,!0):!1;default:return!1}}function $s(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vs(e){if(H){var t=xe;if(t){var n=t;if(!Yo(e,t)){if($s(e))throw Error(k(418));t=pt(n.nextSibling);var r=ke;t&&Yo(e,t)?Ua(r,n):(e.flags=e.flags&-4097|2,H=!1,ke=e)}}else{if($s(e))throw Error(k(418));e.flags=e.flags&-4097|2,H=!1,ke=e}}}function qo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ke=e}function Sr(e){if(e!==ke)return!1;if(!H)return qo(e),H=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ms(e.type,e.memoizedProps)),t&&(t=xe)){if($s(e))throw $a(),Error(k(418));for(;t;)Ua(e,t),t=pt(t.nextSibling)}if(qo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xe=pt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xe=null}}else xe=ke?pt(e.stateNode.nextSibling):null;return!0}function $a(){for(var e=xe;e;)e=pt(e.nextSibling)}function un(){xe=ke=null,H=!1}function zl(e){De===null?De=[e]:De.push(e)}var Jd=nt.ReactCurrentBatchConfig;function _n(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var o=i.refs;l===null?delete o[s]:o[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function _r(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xo(e){var t=e._init;return t(e._payload)}function Va(e){function t(d,c){if(e){var p=d.deletions;p===null?(d.deletions=[c],d.flags|=16):p.push(c)}}function n(d,c){if(!e)return null;for(;c!==null;)t(d,c),c=c.sibling;return null}function r(d,c){for(d=new Map;c!==null;)c.key!==null?d.set(c.key,c):d.set(c.index,c),c=c.sibling;return d}function i(d,c){return d=vt(d,c),d.index=0,d.sibling=null,d}function s(d,c,p){return d.index=p,e?(p=d.alternate,p!==null?(p=p.index,p<c?(d.flags|=2,c):p):(d.flags|=2,c)):(d.flags|=1048576,c)}function l(d){return e&&d.alternate===null&&(d.flags|=2),d}function o(d,c,p,w){return c===null||c.tag!==6?(c=us(p,d.mode,w),c.return=d,c):(c=i(c,p),c.return=d,c)}function u(d,c,p,w){var E=p.type;return E===Vt?y(d,c,p.props.children,w,p.key):c!==null&&(c.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&Xo(E)===c.type)?(w=i(c,p.props),w.ref=_n(d,c,p),w.return=d,w):(w=$r(p.type,p.key,p.props,null,d.mode,w),w.ref=_n(d,c,p),w.return=d,w)}function f(d,c,p,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=as(p,d.mode,w),c.return=d,c):(c=i(c,p.children||[]),c.return=d,c)}function y(d,c,p,w,E){return c===null||c.tag!==7?(c=Ot(p,d.mode,w,E),c.return=d,c):(c=i(c,p),c.return=d,c)}function m(d,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=us(""+c,d.mode,p),c.return=d,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case dr:return p=$r(c.type,c.key,c.props,null,d.mode,p),p.ref=_n(d,null,c),p.return=d,p;case $t:return c=as(c,d.mode,p),c.return=d,c;case it:var w=c._init;return m(d,w(c._payload),p)}if(jn(c)||gn(c))return c=Ot(c,d.mode,p,null),c.return=d,c;_r(d,c)}return null}function h(d,c,p,w){var E=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return E!==null?null:o(d,c,""+p,w);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case dr:return p.key===E?u(d,c,p,w):null;case $t:return p.key===E?f(d,c,p,w):null;case it:return E=p._init,h(d,c,E(p._payload),w)}if(jn(p)||gn(p))return E!==null?null:y(d,c,p,w,null);_r(d,p)}return null}function x(d,c,p,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return d=d.get(p)||null,o(c,d,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case dr:return d=d.get(w.key===null?p:w.key)||null,u(c,d,w,E);case $t:return d=d.get(w.key===null?p:w.key)||null,f(c,d,w,E);case it:var j=w._init;return x(d,c,p,j(w._payload),E)}if(jn(w)||gn(w))return d=d.get(p)||null,y(c,d,w,E,null);_r(c,w)}return null}function v(d,c,p,w){for(var E=null,j=null,P=c,C=c=0,_=null;P!==null&&C<p.length;C++){P.index>C?(_=P,P=null):_=P.sibling;var g=h(d,P,p[C],w);if(g===null){P===null&&(P=_);break}e&&P&&g.alternate===null&&t(d,P),c=s(g,c,C),j===null?E=g:j.sibling=g,j=g,P=_}if(C===p.length)return n(d,P),H&&Ct(d,C),E;if(P===null){for(;C<p.length;C++)P=m(d,p[C],w),P!==null&&(c=s(P,c,C),j===null?E=P:j.sibling=P,j=P);return H&&Ct(d,C),E}for(P=r(d,P);C<p.length;C++)_=x(P,d,C,p[C],w),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?C:_.key),c=s(_,c,C),j===null?E=_:j.sibling=_,j=_);return e&&P.forEach(function(R){return t(d,R)}),H&&Ct(d,C),E}function S(d,c,p,w){var E=gn(p);if(typeof E!="function")throw Error(k(150));if(p=E.call(p),p==null)throw Error(k(151));for(var j=E=null,P=c,C=c=0,_=null,g=p.next();P!==null&&!g.done;C++,g=p.next()){P.index>C?(_=P,P=null):_=P.sibling;var R=h(d,P,g.value,w);if(R===null){P===null&&(P=_);break}e&&P&&R.alternate===null&&t(d,P),c=s(R,c,C),j===null?E=R:j.sibling=R,j=R,P=_}if(g.done)return n(d,P),H&&Ct(d,C),E;if(P===null){for(;!g.done;C++,g=p.next())g=m(d,g.value,w),g!==null&&(c=s(g,c,C),j===null?E=g:j.sibling=g,j=g);return H&&Ct(d,C),E}for(P=r(d,P);!g.done;C++,g=p.next())g=x(P,d,C,g.value,w),g!==null&&(e&&g.alternate!==null&&P.delete(g.key===null?C:g.key),c=s(g,c,C),j===null?E=g:j.sibling=g,j=g);return e&&P.forEach(function(U){return t(d,U)}),H&&Ct(d,C),E}function O(d,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Vt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case dr:e:{for(var E=p.key,j=c;j!==null;){if(j.key===E){if(E=p.type,E===Vt){if(j.tag===7){n(d,j.sibling),c=i(j,p.props.children),c.return=d,d=c;break e}}else if(j.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&Xo(E)===j.type){n(d,j.sibling),c=i(j,p.props),c.ref=_n(d,j,p),c.return=d,d=c;break e}n(d,j);break}else t(d,j);j=j.sibling}p.type===Vt?(c=Ot(p.props.children,d.mode,w,p.key),c.return=d,d=c):(w=$r(p.type,p.key,p.props,null,d.mode,w),w.ref=_n(d,c,p),w.return=d,d=w)}return l(d);case $t:e:{for(j=p.key;c!==null;){if(c.key===j)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=i(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=as(p,d.mode,w),c.return=d,d=c}return l(d);case it:return j=p._init,O(d,c,j(p._payload),w)}if(jn(p))return v(d,c,p,w);if(gn(p))return S(d,c,p,w);_r(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=i(c,p),c.return=d,d=c):(n(d,c),c=us(p,d.mode,w),c.return=d,d=c),l(d)):n(d,c)}return O}var an=Va(!0),Ha=Va(!1),li=St(null),oi=null,Gt=null,Al=null;function Il(){Al=Gt=oi=null}function Dl(e){var t=li.current;V(li),e._currentValue=t}function Hs(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 rn(e,t){oi=e,Al=Gt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Re(e){var t=e._currentValue;if(Al!==e)if(e={context:e,memoizedValue:t,next:null},Gt===null){if(oi===null)throw Error(k(308));Gt=e,oi.dependencies={lanes:0,firstContext:e}}else Gt=Gt.next=e;return t}var Pt=null;function Ml(e){Pt===null?Pt=[e]:Pt.push(e)}function Wa(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ml(t)):(n.next=i.next,i.next=n),t.interleaved=n,et(e,r)}function et(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 st=!1;function Bl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qa(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 Je(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,et(e,n)}return i=r.interleaved,i===null?(t.next=t,Ml(r)):(t.next=i.next,i.next=t),r.interleaved=t,et(e,n)}function Ir(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,_l(e,n)}}function Go(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 ui(e,t,n,r){var i=e.updateQueue;st=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,f=u.next;u.next=null,l===null?s=f:l.next=f,l=u;var y=e.alternate;y!==null&&(y=y.updateQueue,o=y.lastBaseUpdate,o!==l&&(o===null?y.firstBaseUpdate=f:o.next=f,y.lastBaseUpdate=u))}if(s!==null){var m=i.baseState;l=0,y=f=u=null,o=s;do{var h=o.lane,x=o.eventTime;if((r&h)===h){y!==null&&(y=y.next={eventTime:x,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var v=e,S=o;switch(h=t,x=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){m=v.call(x,m,h);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,h=typeof v=="function"?v.call(x,m,h):v,h==null)break e;m=K({},m,h);break e;case 2:st=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[o]:h.push(o))}else x={eventTime:x,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},y===null?(f=y=x,u=m):y=y.next=x,l|=h;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(y===null&&(u=m),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=y,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Dt|=l,e.lanes=l,e.memoizedState=m}}function Jo(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(k(191,i));i.call(r)}}}var ur={},We=St(ur),Zn=St(ur),bn=St(ur);function Rt(e){if(e===ur)throw Error(k(174));return e}function Fl(e,t){switch(F(bn,t),F(Zn,e),F(We,ur),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_s(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_s(t,e)}V(We),F(We,t)}function cn(){V(We),V(Zn),V(bn)}function Ka(e){Rt(bn.current);var t=Rt(We.current),n=_s(t,e.type);t!==n&&(F(Zn,e),F(We,n))}function Ul(e){Zn.current===e&&(V(We),V(Zn))}var W=St(0);function ai(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 ns=[];function $l(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var Dr=nt.ReactCurrentDispatcher,rs=nt.ReactCurrentBatchConfig,It=0,Q=null,Z=null,te=null,ci=!1,Mn=!1,er=0,Zd=0;function le(){throw Error(k(321))}function Vl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function Hl(e,t,n,r,i,s){if(It=s,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Dr.current=e===null||e.memoizedState===null?np:rp,e=n(r,i),Mn){s=0;do{if(Mn=!1,er=0,25<=s)throw Error(k(301));s+=1,te=Z=null,t.updateQueue=null,Dr.current=ip,e=n(r,i)}while(Mn)}if(Dr.current=fi,t=Z!==null&&Z.next!==null,It=0,te=Z=Q=null,ci=!1,t)throw Error(k(300));return e}function Wl(){var e=er!==0;return er=0,e}function $e(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?Q.memoizedState=te=e:te=te.next=e,te}function Le(){if(Z===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=te===null?Q.memoizedState:te.next;if(t!==null)te=t,Z=e;else{if(e===null)throw Error(k(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},te===null?Q.memoizedState=te=e:te=te.next=e}return te}function tr(e,t){return typeof t=="function"?t(e):t}function is(e){var t=Le(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=Z,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=l=null,u=null,f=s;do{var y=f.lane;if((It&y)===y)u!==null&&(u=u.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var m={lane:y,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};u===null?(o=u=m,l=r):u=u.next=m,Q.lanes|=y,Dt|=y}f=f.next}while(f!==null&&f!==s);u===null?l=r:u.next=o,Fe(r,t.memoizedState)||(me=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Q.lanes|=s,Dt|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ss(e){var t=Le(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);Fe(s,t.memoizedState)||(me=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ya(){}function qa(e,t){var n=Q,r=Le(),i=t(),s=!Fe(r.memoizedState,i);if(s&&(r.memoizedState=i,me=!0),r=r.queue,Ql(Ja.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,nr(9,Ga.bind(null,n,r,i,t),void 0,null),ne===null)throw Error(k(349));It&30||Xa(n,t,i)}return i}function Xa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ga(e,t,n,r){t.value=n,t.getSnapshot=r,Za(t)&&ba(e)}function Ja(e,t,n){return n(function(){Za(t)&&ba(e)})}function Za(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fe(e,n)}catch{return!0}}function ba(e){var t=et(e,1);t!==null&&Be(t,e,1,-1)}function Zo(e){var t=$e();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:e},t.queue=e,e=e.dispatch=tp.bind(null,Q,e),[t.memoizedState,e]}function nr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.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 ec(){return Le().memoizedState}function Mr(e,t,n,r){var i=$e();Q.flags|=e,i.memoizedState=nr(1|t,n,void 0,r===void 0?null:r)}function Ei(e,t,n,r){var i=Le();r=r===void 0?null:r;var s=void 0;if(Z!==null){var l=Z.memoizedState;if(s=l.destroy,r!==null&&Vl(r,l.deps)){i.memoizedState=nr(t,n,s,r);return}}Q.flags|=e,i.memoizedState=nr(1|t,n,s,r)}function bo(e,t){return Mr(8390656,8,e,t)}function Ql(e,t){return Ei(2048,8,e,t)}function tc(e,t){return Ei(4,2,e,t)}function nc(e,t){return Ei(4,4,e,t)}function rc(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 ic(e,t,n){return n=n!=null?n.concat([e]):null,Ei(4,4,rc.bind(null,t,e),n)}function Kl(){}function sc(e,t){var n=Le();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lc(e,t){var n=Le();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oc(e,t,n){return It&21?(Fe(n,t)||(n=da(),Q.lanes|=n,Dt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,me=!0),e.memoizedState=n)}function bd(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=rs.transition;rs.transition={};try{e(!1),t()}finally{B=n,rs.transition=r}}function uc(){return Le().memoizedState}function ep(e,t,n){var r=yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e))cc(t,n);else if(n=Wa(e,t,n,r),n!==null){var i=fe();Be(n,e,r,i),fc(n,t,r)}}function tp(e,t,n){var r=yt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ac(e))cc(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,o=s(l,n);if(i.hasEagerState=!0,i.eagerState=o,Fe(o,l)){var u=t.interleaved;u===null?(i.next=i,Ml(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Wa(e,t,i,r),n!==null&&(i=fe(),Be(n,e,r,i),fc(n,t,r))}}function ac(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function cc(e,t){Mn=ci=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_l(e,n)}}var fi={readContext:Re,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},np={readContext:Re,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:bo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,rc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=$e();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$e();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=ep.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:Zo,useDebugValue:Kl,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=Zo(!1),t=e[0];return e=bd.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=$e();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));It&30||Xa(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,bo(Ja.bind(null,r,s,e),[e]),r.flags|=2048,nr(9,Ga.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$e(),t=ne.identifierPrefix;if(H){var n=Ge,r=Xe;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=er++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rp={readContext:Re,useCallback:sc,useContext:Re,useEffect:Ql,useImperativeHandle:ic,useInsertionEffect:tc,useLayoutEffect:nc,useMemo:lc,useReducer:is,useRef:ec,useState:function(){return is(tr)},useDebugValue:Kl,useDeferredValue:function(e){var t=Le();return oc(t,Z.memoizedState,e)},useTransition:function(){var e=is(tr)[0],t=Le().memoizedState;return[e,t]},useMutableSource:Ya,useSyncExternalStore:qa,useId:uc,unstable_isNewReconciler:!1},ip={readContext:Re,useCallback:sc,useContext:Re,useEffect:Ql,useImperativeHandle:ic,useInsertionEffect:tc,useLayoutEffect:nc,useMemo:lc,useReducer:ss,useRef:ec,useState:function(){return ss(tr)},useDebugValue:Kl,useDeferredValue:function(e){var t=Le();return Z===null?t.memoizedState=e:oc(t,Z.memoizedState,e)},useTransition:function(){var e=ss(tr)[0],t=Le().memoizedState;return[e,t]},useMutableSource:Ya,useSyncExternalStore:qa,useId:uc,unstable_isNewReconciler:!1};function ze(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ni={isMounted:function(e){return(e=e._reactInternals)?Ft(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),i=yt(e),s=Je(r,i);s.payload=t,n!=null&&(s.callback=n),t=ht(e,s,i),t!==null&&(Be(t,e,i,r),Ir(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fe(),i=yt(e),s=Je(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ht(e,s,i),t!==null&&(Be(t,e,i,r),Ir(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fe(),r=yt(e),i=Je(n,r);i.tag=2,t!=null&&(i.callback=t),t=ht(e,i,r),t!==null&&(Be(t,e,r,n),Ir(t,e,r))}};function eu(e,t,n,r,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!qn(n,r)||!qn(i,s):!0}function dc(e,t,n){var r=!1,i=xt,s=t.contextType;return typeof s=="object"&&s!==null?s=Re(s):(i=ve(t)?zt:ae.current,r=t.contextTypes,s=(r=r!=null)?on(e,i):xt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ni,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function tu(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&&Ni.enqueueReplaceState(t,t.state,null)}function Qs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Bl(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Re(s):(s=ve(t)?zt:ae.current,i.context=on(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ws(e,t,s,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&&Ni.enqueueReplaceState(i,i.state,null),ui(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fn(e,t){try{var n="",r=t;do n+=Of(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
39
|
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ks(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sp=typeof WeakMap=="function"?WeakMap:Map;function pc(e,t,n){n=Je(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pi||(pi=!0,nl=r),Ks(e,t)},n}function hc(e,t,n){n=Je(-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(){Ks(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ks(e,t),typeof r!="function"&&(mt===null?mt=new Set([this]):mt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function nu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sp;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=wp.bind(null,e,t,n),t.then(e,e))}function ru(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 iu(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=Je(-1,1),t.tag=2,ht(n,t,1))),n.lanes|=1),e)}var lp=nt.ReactCurrentOwner,me=!1;function ce(e,t,n,r){t.child=e===null?Ha(t,null,n,r):an(t,e.child,n,r)}function su(e,t,n,r,i){n=n.render;var s=t.ref;return rn(t,i),r=Hl(e,t,n,r,s,i),n=Wl(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tt(e,t,i)):(H&&n&&Ll(t),t.flags|=1,ce(e,t,r,i),t.child)}function lu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!eo(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,mc(e,t,s,r,i)):(e=$r(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:qn,n(l,r)&&e.ref===t.ref)return tt(e,t,i)}return t.flags|=1,e=vt(s,r),e.ref=t.ref,e.return=t,t.child=e}function mc(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(qn(s,r)&&e.ref===t.ref)if(me=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(me=!0);else return t.lanes=e.lanes,tt(e,t,i)}return Ys(e,t,n,r,i)}function yc(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(Zt,we),we|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(Zt,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,F(Zt,we),we|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,F(Zt,we),we|=r;return ce(e,t,i,n),t.child}function vc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ys(e,t,n,r,i){var s=ve(n)?zt:ae.current;return s=on(t,s),rn(t,i),n=Hl(e,t,n,r,s,i),r=Wl(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tt(e,t,i)):(H&&r&&Ll(t),t.flags|=1,ce(e,t,n,i),t.child)}function ou(e,t,n,r,i){if(ve(n)){var s=!0;ri(t)}else s=!1;if(rn(t,i),t.stateNode===null)Br(e,t),dc(t,n,r),Qs(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var u=l.context,f=n.contextType;typeof f=="object"&&f!==null?f=Re(f):(f=ve(n)?zt:ae.current,f=on(t,f));var y=n.getDerivedStateFromProps,m=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==r||u!==f)&&tu(t,l,r,f),st=!1;var h=t.memoizedState;l.state=h,ui(t,r,l,i),u=t.memoizedState,o!==r||h!==u||ye.current||st?(typeof y=="function"&&(Ws(t,n,y,r),u=t.memoizedState),(o=st||eu(t,n,o,r,h,u,f))?(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=f,r=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Qa(e,t),o=t.memoizedProps,f=t.type===t.elementType?o:ze(t.type,o),l.props=f,m=t.pendingProps,h=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Re(u):(u=ve(n)?zt:ae.current,u=on(t,u));var w=n.getDerivedStateFromProps;(y=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==m||h!==u)&&tu(t,l,r,u),st=!1,h=t.memoizedState,l.state=h,ui(t,r,l,i);var v=t.memoizedState;o!==m||h!==v||ye.current||st?(typeof w=="function"&&(Ws(t,n,w,r),v=t.memoizedState),(f=st||eu(t,n,f,r,h,v,u)||!1)?(y||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,v,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,v,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),l.props=r,l.state=v,l.context=u,r=f):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return qs(e,t,n,r,s,i)}function qs(e,t,n,r,i,s){vc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&Ko(t,n,!1),tt(e,t,s);r=t.stateNode,lp.current=t;var o=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=an(t,e.child,null,s),t.child=an(t,null,o,s)):ce(e,t,o,s),t.memoizedState=r.state,i&&Ko(t,n,!0),t.child}function gc(e){var t=e.stateNode;t.pendingContext?Qo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qo(e,t.context,!1),Fl(e,t.containerInfo)}function uu(e,t,n,r,i){return un(),zl(i),t.flags|=256,ce(e,t,n,r),t.child}var Xs={dehydrated:null,treeContext:null,retryLane:0};function Gs(e){return{baseLanes:e,cachePool:null,transitions:null}}function wc(e,t,n){var r=t.pendingProps,i=W.current,s=!1,l=(t.flags&128)!==0,o;if((o=l)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),F(W,i&1),e===null)return Vs(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,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=ji(l,r,0,null),e=Ot(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Gs(n),t.memoizedState=Xs,e):Yl(t,l));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return op(e,t,l,r,o,i,n);if(s){s=r.fallback,l=t.mode,i=e.child,o=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=vt(i,u),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=vt(o,s):(s=Ot(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Gs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Xs,r}return s=e.child,e=s.sibling,r=vt(s,{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 Yl(e,t){return t=ji({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Er(e,t,n,r){return r!==null&&zl(r),an(t,e.child,null,n),e=Yl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function op(e,t,n,r,i,s,l){if(n)return t.flags&256?(t.flags&=-257,r=ls(Error(x(422))),Er(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ji({mode:"visible",children:r.children},i,0,null),s=Ot(s,i,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&an(t,e.child,null,l),t.child.memoizedState=Gs(l),t.memoizedState=Xs,s);if(!(t.mode&1))return Er(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(x(419)),r=ls(s,r,void 0),Er(e,t,l,r)}if(o=(l&e.childLanes)!==0,me||o){if(r=ne,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!==s.retryLane&&(s.retryLane=i,et(e,i),Be(r,e,i,-1))}return bl(),r=ls(Error(x(421))),Er(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=xp.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,xe=pt(i.nextSibling),ke=t,H=!0,De=null,e!==null&&(Ne[Ce++]=Xe,Ne[Ce++]=Ge,Ne[Ce++]=At,Xe=e.id,Ge=e.overflow,At=t),t=Yl(t,r.children),t.flags|=4096,t)}function au(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hs(e.return,t,n)}function os(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function xc(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ce(e,t,r.children,n),r=W.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&&au(e,n,t);else if(e.tag===19)au(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(F(W,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&&ai(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),os(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ai(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}os(t,!0,n,null,s);break;case"together":os(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Br(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function up(e,t,n){switch(t.tag){case 3:gc(t),un();break;case 5:Ka(t);break;case 1:ve(t.type)&&ri(t);break;case 4:Fl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;F(li,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?wc(e,t,n):(F(W,W.current&1),e=tt(e,t,n),e!==null?e.sibling:null);F(W,W.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),F(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,yc(e,t,n)}return tt(e,t,n)}var kc,Js,Sc,_c;kc=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}};Js=function(){};Sc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Rt(We.current);var s=null;switch(n){case"input":i=ws(e,i),r=ws(e,r),s=[];break;case"select":i=K({},i,{value:void 0}),r=K({},r,{value:void 0}),s=[];break;case"textarea":i=Ss(e,i),r=Ss(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ti)}Es(n,r);var l;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var o=i[f];for(l in o)o.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&($n.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var u=r[f];if(o=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&u!==o&&(u!=null||o!=null))if(f==="style")if(o){for(l in o)!o.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&o[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(s||(s=[]),s.push(f,n)),n=u;else f==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(s=s||[]).push(f,u)):f==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(f,""+u):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&($n.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&$("scroll",e),s||o===u||(s=[])):(s=s||[]).push(f,u))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}};_c=function(e,t,n,r){n!==r&&(t.flags|=4)};function En(e,t){if(!H)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 oe(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 ap(e,t,n){var r=t.pendingProps;switch(Ol(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return ve(t.type)&&ni(),oe(t),null;case 3:return r=t.stateNode,cn(),V(ye),V(ae),$l(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Sr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,De!==null&&(sl(De),De=null))),Js(e,t),oe(t),null;case 5:Ul(t);var i=Rt(bn.current);if(n=t.type,e!==null&&t.stateNode!=null)Sc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return oe(t),null}if(e=Rt(We.current),Sr(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ve]=t,r[Jn]=s,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<Rn.length;i++)$(Rn[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":go(r,s),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$("invalid",r);break;case"textarea":xo(r,s),$("invalid",r)}Es(n,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var o=s[l];l==="children"?typeof o=="string"?r.textContent!==o&&(s.suppressHydrationWarning!==!0&&kr(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&kr(r.textContent,o,e),i=["children",""+o]):$n.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&$("scroll",r)}switch(n){case"input":pr(r),wo(r,s,!0);break;case"textarea":pr(r),ko(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ti)}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=Ju(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[Ve]=t,e[Jn]=r,kc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ns(n,r),n){case"dialog":$("cancel",e),$("close",e),i=r;break;case"iframe":case"object":case"embed":$("load",e),i=r;break;case"video":case"audio":for(i=0;i<Rn.length;i++)$(Rn[i],e);i=r;break;case"source":$("error",e),i=r;break;case"img":case"image":case"link":$("error",e),$("load",e),i=r;break;case"details":$("toggle",e),i=r;break;case"input":go(e,r),i=ws(e,r),$("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=K({},r,{value:void 0}),$("invalid",e);break;case"textarea":xo(e,r),i=Ss(e,r),$("invalid",e);break;default:i=r}Es(n,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var u=o[s];s==="style"?ea(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Zu(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Vn(e,u):typeof u=="number"&&Vn(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($n.hasOwnProperty(s)?u!=null&&s==="onScroll"&&$("scroll",e):u!=null&&vl(e,s,u,l))}switch(n){case"input":pr(e),wo(e,r,!1);break;case"textarea":pr(e),ko(e);break;case"option":r.value!=null&&e.setAttribute("value",""+wt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?bt(e,!!r.multiple,s,!1):r.defaultValue!=null&&bt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ti)}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 oe(t),null;case 6:if(e&&t.stateNode!=null)_c(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Rt(bn.current),Rt(We.current),Sr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ve]=t,(s=r.nodeValue!==n)&&(e=ke,e!==null))switch(e.tag){case 3:kr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kr(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ve]=t,t.stateNode=r}return oe(t),null;case 13:if(V(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(H&&xe!==null&&t.mode&1&&!(t.flags&128))$a(),un(),t.flags|=98560,s=!1;else if(s=Sr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(x(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(x(317));s[Ve]=t}else un(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oe(t),s=!1}else De!==null&&(sl(De),De=null),s=!0;if(!s)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||W.current&1?b===0&&(b=3):bl())),t.updateQueue!==null&&(t.flags|=4),oe(t),null);case 4:return cn(),Js(e,t),e===null&&Xn(t.stateNode.containerInfo),oe(t),null;case 10:return Dl(t.type._context),oe(t),null;case 17:return ve(t.type)&&ni(),oe(t),null;case 19:if(V(W),s=t.memoizedState,s===null)return oe(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)En(s,!1);else{if(b!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=ai(e),l!==null){for(t.flags|=128,En(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return F(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&X()>dn&&(t.flags|=128,r=!0,En(s,!1),t.lanes=4194304)}else{if(!r)if(e=ai(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),En(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!H)return oe(t),null}else 2*X()-s.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,En(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=X(),t.sibling=null,n=W.current,F(W,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return Zl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function cp(e,t){switch(Ol(t),t.tag){case 1:return ve(t.type)&&ni(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(),V(ye),V(ae),$l(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ul(t),null;case 13:if(V(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(W),null;case 4:return cn(),null;case 10:return Dl(t.type._context),null;case 22:case 23:return Zl(),null;case 24:return null;default:return null}}var Nr=!1,ue=!1,fp=typeof WeakSet=="function"?WeakSet:Set,C=null;function Jt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function Zs(e,t,n){try{n()}catch(r){Y(e,t,r)}}var cu=!1;function dp(e,t){if(Is=Zr,e=ja(),Rl(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,o=-1,u=-1,f=0,y=0,m=e,h=null;t:for(;;){for(var w;m!==n||i!==0&&m.nodeType!==3||(o=l+i),m!==s||r!==0&&m.nodeType!==3||(u=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(w=m.firstChild)!==null;)h=m,m=w;for(;;){if(m===e)break t;if(h===n&&++f===i&&(o=l),h===s&&++y===r&&(u=l),(w=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=w}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ds={focusedElem:e,selectionRange:n},Zr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,O=v.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?S:ze(t.type,S),O);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(g){Y(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return v=cu,cu=!1,v}function Bn(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 s=i.destroy;i.destroy=void 0,s!==void 0&&Zs(t,n,s)}i=i.next}while(i!==r)}}function Ci(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 bs(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 Ec(e){var t=e.alternate;t!==null&&(e.alternate=null,Ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ve],delete t[Jn],delete t[Fs],delete t[qd],delete t[Xd])),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 Nc(e){return e.tag===5||e.tag===3||e.tag===4}function fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nc(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 el(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=ti));else if(r!==4&&(e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(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(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}var re=null,Ae=!1;function rt(e,t,n){for(n=n.child;n!==null;)Cc(e,t,n),n=n.sibling}function Cc(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(gi,n)}catch{}switch(n.tag){case 5:ue||Jt(n,t);case 6:var r=re,i=Ae;re=null,rt(e,t,n),re=r,Ae=i,re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?es(e.parentNode,n):e.nodeType===1&&es(e,n),Kn(e)):es(re,n.stateNode));break;case 4:r=re,i=Ae,re=n.stateNode.containerInfo,Ae=!0,rt(e,t,n),re=r,Ae=i;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Zs(n,t,l),i=i.next}while(i!==r)}rt(e,t,n);break;case 1:if(!ue&&(Jt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Y(n,t,o)}rt(e,t,n);break;case 21:rt(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,rt(e,t,n),ue=r):rt(e,t,n);break;default:rt(e,t,n)}}function du(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fp),t.forEach(function(r){var i=kp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Oe(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:re=o.stateNode,Ae=!1;break e;case 3:re=o.stateNode.containerInfo,Ae=!0;break e;case 4:re=o.stateNode.containerInfo,Ae=!0;break e}o=o.return}if(re===null)throw Error(x(160));Cc(s,l,i),re=null,Ae=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){Y(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tc(t,e),t=t.sibling}function Tc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Oe(t,e),Ue(e),r&4){try{Bn(3,e,e.return),Ci(3,e)}catch(S){Y(e,e.return,S)}try{Bn(5,e,e.return)}catch(S){Y(e,e.return,S)}}break;case 1:Oe(t,e),Ue(e),r&512&&n!==null&&Jt(n,n.return);break;case 5:if(Oe(t,e),Ue(e),r&512&&n!==null&&Jt(n,n.return),e.flags&32){var i=e.stateNode;try{Vn(i,"")}catch(S){Y(e,e.return,S)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,o=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&Xu(i,s),Ns(o,l);var f=Ns(o,s);for(l=0;l<u.length;l+=2){var y=u[l],m=u[l+1];y==="style"?ea(i,m):y==="dangerouslySetInnerHTML"?Zu(i,m):y==="children"?Vn(i,m):vl(i,y,m,f)}switch(o){case"input":xs(i,s);break;case"textarea":Gu(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var w=s.value;w!=null?bt(i,!!s.multiple,w,!1):h!==!!s.multiple&&(s.defaultValue!=null?bt(i,!!s.multiple,s.defaultValue,!0):bt(i,!!s.multiple,s.multiple?[]:"",!1))}i[Jn]=s}catch(S){Y(e,e.return,S)}}break;case 6:if(Oe(t,e),Ue(e),r&4){if(e.stateNode===null)throw Error(x(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(S){Y(e,e.return,S)}}break;case 3:if(Oe(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kn(t.containerInfo)}catch(S){Y(e,e.return,S)}break;case 4:Oe(t,e),Ue(e);break;case 13:Oe(t,e),Ue(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Gl=X())),r&4&&du(e);break;case 22:if(y=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(f=ue)||y,Oe(t,e),ue=f):Oe(t,e),Ue(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!y&&e.mode&1)for(C=e,y=e.child;y!==null;){for(m=C=y;C!==null;){switch(h=C,w=h.child,h.tag){case 0:case 11:case 14:case 15:Bn(4,h,h.return);break;case 1:Jt(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(S){Y(r,n,S)}}break;case 5:Jt(h,h.return);break;case 22:if(h.memoizedState!==null){hu(m);continue}}w!==null?(w.return=h,C=w):hu(m)}y=y.sibling}e:for(y=null,m=e;;){if(m.tag===5){if(y===null){y=m;try{i=m.stateNode,f?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=m.stateNode,u=m.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,o.style.display=bu("display",l))}catch(S){Y(e,e.return,S)}}}else if(m.tag===6){if(y===null)try{m.stateNode.nodeValue=f?"":m.memoizedProps}catch(S){Y(e,e.return,S)}}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;y===m&&(y=null),m=m.return}y===m&&(y=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Oe(t,e),Ue(e),r&4&&du(e);break;case 21:break;default:Oe(t,e),Ue(e)}}function Ue(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Nc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Vn(i,""),r.flags&=-33);var s=fu(e);tl(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,o=fu(e);el(e,o,l);break;default:throw Error(x(161))}}catch(u){Y(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pp(e,t,n){C=e,jc(e)}function jc(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var i=C,s=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Nr;if(!l){var o=i.alternate,u=o!==null&&o.memoizedState!==null||ue;o=Nr;var f=ue;if(Nr=l,(ue=u)&&!f)for(C=i;C!==null;)l=C,u=l.child,l.tag===22&&l.memoizedState!==null?mu(i):u!==null?(u.return=l,C=u):mu(i);for(;s!==null;)C=s,jc(s),s=s.sibling;C=i,Nr=o,ue=f}pu(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,C=s):pu(e)}}function pu(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ue||Ci(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ze(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Jo(t,s,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}Jo(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;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 f=t.alternate;if(f!==null){var y=f.memoizedState;if(y!==null){var m=y.dehydrated;m!==null&&Kn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ue||t.flags&512&&bs(t)}catch(h){Y(t,t.return,h)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function hu(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function mu(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ci(4,t)}catch(u){Y(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){Y(t,i,u)}}var s=t.return;try{bs(t)}catch(u){Y(t,s,u)}break;case 5:var l=t.return;try{bs(t)}catch(u){Y(t,l,u)}}}catch(u){Y(t,t.return,u)}if(t===e){C=null;break}var o=t.sibling;if(o!==null){o.return=t.return,C=o;break}C=t.return}}var hp=Math.ceil,di=nt.ReactCurrentDispatcher,ql=nt.ReactCurrentOwner,Pe=nt.ReactCurrentBatchConfig,M=0,ne=null,G=null,ie=0,we=0,Zt=St(0),b=0,rr=null,Dt=0,Ti=0,Xl=0,Fn=null,he=null,Gl=0,dn=1/0,Ye=null,pi=!1,nl=null,mt=null,Cr=!1,at=null,hi=0,Un=0,rl=null,Fr=-1,Ur=0;function fe(){return M&6?X():Fr!==-1?Fr:Fr=X()}function yt(e){return e.mode&1?M&2&&ie!==0?ie&-ie:Jd.transition!==null?(Ur===0&&(Ur=da()),Ur):(e=B,e!==0||(e=window.event,e=e===void 0?16:wa(e.type)),e):1}function Be(e,t,n,r){if(50<Un)throw Un=0,rl=null,Error(x(185));sr(e,n,r),(!(M&2)||e!==ne)&&(e===ne&&(!(M&2)&&(Ti|=n),b===4&&ot(e,ie)),ge(e,r),n===1&&M===0&&!(t.mode&1)&&(dn=X()+500,_i&&_t()))}function ge(e,t){var n=e.callbackNode;Jf(e,t);var r=Jr(e,e===ne?ie:0);if(r===0)n!==null&&Eo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Eo(n),t===1)e.tag===0?Gd(yu.bind(null,e)):Ba(yu.bind(null,e)),Kd(function(){!(M&6)&&_t()}),n=null;else{switch(pa(r)){case 1:n=Sl;break;case 4:n=ca;break;case 16:n=Gr;break;case 536870912:n=fa;break;default:n=Gr}n=Dc(n,Pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pc(e,t){if(Fr=-1,Ur=0,M&6)throw Error(x(327));var n=e.callbackNode;if(sn()&&e.callbackNode!==n)return null;var r=Jr(e,e===ne?ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=mi(e,r);else{t=r;var i=M;M|=2;var s=Lc();(ne!==e||ie!==t)&&(Ye=null,dn=X()+500,Lt(e,t));do try{vp();break}catch(o){Rc(e,o)}while(!0);Il(),di.current=s,M=i,G!==null?t=0:(ne=null,ie=0,t=b)}if(t!==0){if(t===2&&(i=Rs(e),i!==0&&(r=i,t=il(e,i))),t===1)throw n=rr,Lt(e,0),ot(e,r),ge(e,X()),n;if(t===6)ot(e,r);else{if(i=e.current.alternate,!(r&30)&&!mp(i)&&(t=mi(e,r),t===2&&(s=Rs(e),s!==0&&(r=s,t=il(e,s))),t===1))throw n=rr,Lt(e,0),ot(e,r),ge(e,X()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:Tt(e,he,Ye);break;case 3:if(ot(e,r),(r&130023424)===r&&(t=Gl+500-X(),10<t)){if(Jr(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Bs(Tt.bind(null,e,he,Ye),t);break}Tt(e,he,Ye);break;case 4:if(ot(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Me(r);s=1<<l,l=t[l],l>i&&(i=l),r&=~s}if(r=i,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hp(r/1960))-r,10<r){e.timeoutHandle=Bs(Tt.bind(null,e,he,Ye),r);break}Tt(e,he,Ye);break;case 5:Tt(e,he,Ye);break;default:throw Error(x(329))}}}return ge(e,X()),e.callbackNode===n?Pc.bind(null,e):null}function il(e,t){var n=Fn;return e.current.memoizedState.isDehydrated&&(Lt(e,t).flags|=256),e=mi(e,t),e!==2&&(t=he,he=n,t!==null&&sl(t)),e}function sl(e){he===null?he=e:he.push.apply(he,e)}function mp(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],s=i.getSnapshot;i=i.value;try{if(!Fe(s(),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 ot(e,t){for(t&=~Xl,t&=~Ti,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Me(t),r=1<<n;e[n]=-1,t&=~r}}function yu(e){if(M&6)throw Error(x(327));sn();var t=Jr(e,0);if(!(t&1))return ge(e,X()),null;var n=mi(e,t);if(e.tag!==0&&n===2){var r=Rs(e);r!==0&&(t=r,n=il(e,r))}if(n===1)throw n=rr,Lt(e,0),ot(e,t),ge(e,X()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tt(e,he,Ye),ge(e,X()),null}function Jl(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(dn=X()+500,_i&&_t())}}function Mt(e){at!==null&&at.tag===0&&!(M&6)&&sn();var t=M;M|=1;var n=Pe.transition,r=B;try{if(Pe.transition=null,B=1,e)return e()}finally{B=r,Pe.transition=n,M=t,!(M&6)&&_t()}}function Zl(){we=Zt.current,V(Zt)}function Lt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Qd(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(Ol(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ni();break;case 3:cn(),V(ye),V(ae),$l();break;case 5:Ul(r);break;case 4:cn();break;case 13:V(W);break;case 19:V(W);break;case 10:Dl(r.type._context);break;case 22:case 23:Zl()}n=n.return}if(ne=e,G=e=vt(e.current,null),ie=we=t,b=0,rr=null,Xl=Ti=Dt=0,he=Fn=null,Pt!==null){for(t=0;t<Pt.length;t++)if(n=Pt[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=i,r.next=l}n.pending=r}Pt=null}return e}function Rc(e,t){do{var n=G;try{if(Il(),Dr.current=fi,ci){for(var r=Q.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ci=!1}if(It=0,te=Z=Q=null,Mn=!1,er=0,ql.current=null,n===null||n.return===null){b=1,rr=t,G=null;break}e:{var s=e,l=n.return,o=n,u=t;if(t=ie,o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u,y=o,m=y.tag;if(!(y.mode&1)&&(m===0||m===11||m===15)){var h=y.alternate;h?(y.updateQueue=h.updateQueue,y.memoizedState=h.memoizedState,y.lanes=h.lanes):(y.updateQueue=null,y.memoizedState=null)}var w=ru(l);if(w!==null){w.flags&=-257,iu(w,l,o,s,t),w.mode&1&&nu(s,f,t),t=w,u=f;var v=t.updateQueue;if(v===null){var S=new Set;S.add(u),t.updateQueue=S}else v.add(u);break e}else{if(!(t&1)){nu(s,f,t),bl();break e}u=Error(x(426))}}else if(H&&o.mode&1){var O=ru(l);if(O!==null){!(O.flags&65536)&&(O.flags|=256),iu(O,l,o,s,t),zl(fn(u,o));break e}}s=u=fn(u,o),b!==4&&(b=2),Fn===null?Fn=[s]:Fn.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var d=pc(s,u,t);Go(s,d);break e;case 1:o=u;var c=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(mt===null||!mt.has(p)))){s.flags|=65536,t&=-t,s.lanes|=t;var g=hc(s,o,t);Go(s,g);break e}}s=s.return}while(s!==null)}zc(n)}catch(E){t=E,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function Lc(){var e=di.current;return di.current=fi,e===null?fi:e}function bl(){(b===0||b===3||b===2)&&(b=4),ne===null||!(Dt&268435455)&&!(Ti&268435455)||ot(ne,ie)}function mi(e,t){var n=M;M|=2;var r=Lc();(ne!==e||ie!==t)&&(Ye=null,Lt(e,t));do try{yp();break}catch(i){Rc(e,i)}while(!0);if(Il(),M=n,di.current=r,G!==null)throw Error(x(261));return ne=null,ie=0,b}function yp(){for(;G!==null;)Oc(G)}function vp(){for(;G!==null&&!Vf();)Oc(G)}function Oc(e){var t=Ic(e.alternate,e,we);e.memoizedProps=e.pendingProps,t===null?zc(e):G=t,ql.current=null}function zc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cp(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{b=6,G=null;return}}else if(n=ap(n,t,we),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);b===0&&(b=5)}function Tt(e,t,n){var r=B,i=Pe.transition;try{Pe.transition=null,B=1,gp(e,t,n,r)}finally{Pe.transition=i,B=r}return null}function gp(e,t,n,r){do sn();while(at!==null);if(M&6)throw Error(x(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(x(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Zf(e,s),e===ne&&(G=ne=null,ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cr||(Cr=!0,Dc(Gr,function(){return sn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Pe.transition,Pe.transition=null;var l=B;B=1;var o=M;M|=4,ql.current=null,dp(e,n),Tc(n,e),Bd(Ds),Zr=!!Is,Ds=Is=null,e.current=n,pp(n),Hf(),M=o,B=l,Pe.transition=s}else e.current=n;if(Cr&&(Cr=!1,at=e,hi=i),s=e.pendingLanes,s===0&&(mt=null),Kf(n.stateNode),ge(e,X()),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(pi)throw pi=!1,e=nl,nl=null,e;return hi&1&&e.tag!==0&&sn(),s=e.pendingLanes,s&1?e===rl?Un++:(Un=0,rl=e):Un=0,_t(),null}function sn(){if(at!==null){var e=pa(hi),t=Pe.transition,n=B;try{if(Pe.transition=null,B=16>e?16:e,at===null)var r=!1;else{if(e=at,at=null,hi=0,M&6)throw Error(x(331));var i=M;for(M|=4,C=e.current;C!==null;){var s=C,l=s.child;if(C.flags&16){var o=s.deletions;if(o!==null){for(var u=0;u<o.length;u++){var f=o[u];for(C=f;C!==null;){var y=C;switch(y.tag){case 0:case 11:case 15:Bn(8,y,s)}var m=y.child;if(m!==null)m.return=y,C=m;else for(;C!==null;){y=C;var h=y.sibling,w=y.return;if(Ec(y),y===f){C=null;break}if(h!==null){h.return=w,C=h;break}C=w}}}var v=s.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var O=S.sibling;S.sibling=null,S=O}while(S!==null)}}C=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,C=l;else e:for(;C!==null;){if(s=C,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Bn(9,s,s.return)}var d=s.sibling;if(d!==null){d.return=s.return,C=d;break e}C=s.return}}var c=e.current;for(C=c;C!==null;){l=C;var p=l.child;if(l.subtreeFlags&2064&&p!==null)p.return=l,C=p;else e:for(l=c;C!==null;){if(o=C,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Ci(9,o)}}catch(E){Y(o,o.return,E)}if(o===l){C=null;break e}var g=o.sibling;if(g!==null){g.return=o.return,C=g;break e}C=o.return}}if(M=i,_t(),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(gi,e)}catch{}r=!0}return r}finally{B=n,Pe.transition=t}}return!1}function vu(e,t,n){t=fn(n,t),t=pc(e,t,1),e=ht(e,t,1),t=fe(),e!==null&&(sr(e,1,t),ge(e,t))}function Y(e,t,n){if(e.tag===3)vu(e,e,n);else for(;t!==null;){if(t.tag===3){vu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mt===null||!mt.has(r))){e=fn(n,e),e=hc(t,e,1),t=ht(t,e,1),e=fe(),t!==null&&(sr(t,1,e),ge(t,e));break}}t=t.return}}function wp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fe(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(ie&n)===n&&(b===4||b===3&&(ie&130023424)===ie&&500>X()-Gl?Lt(e,0):Xl|=n),ge(e,t)}function Ac(e,t){t===0&&(e.mode&1?(t=yr,yr<<=1,!(yr&130023424)&&(yr=4194304)):t=1);var n=fe();e=et(e,t),e!==null&&(sr(e,t,n),ge(e,n))}function xp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ac(e,n)}function kp(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(x(314))}r!==null&&r.delete(t),Ac(e,n)}var Ic;Ic=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,up(e,t,n);me=!!(e.flags&131072)}else me=!1,H&&t.flags&1048576&&Fa(t,si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var i=on(t,ae.current);rn(t,n),i=Hl(null,t,r,e,i,n);var s=Wl();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,ve(r)?(s=!0,ri(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Bl(t),i.updater=Ni,t.stateNode=i,i._reactInternals=t,Qs(t,r,e,n),t=qs(null,t,r,!0,s,n)):(t.tag=0,H&&s&&Ll(t),ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=_p(r),e=ze(r,e),i){case 0:t=Ys(null,t,r,e,n);break e;case 1:t=ou(null,t,r,e,n);break e;case 11:t=su(null,t,r,e,n);break e;case 14:t=lu(null,t,r,ze(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Ys(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),ou(e,t,r,i,n);case 3:e:{if(gc(t),e===null)throw Error(x(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Qa(e,t),ui(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=fn(Error(x(423)),t),t=uu(e,t,r,n,i);break e}else if(r!==i){i=fn(Error(x(424)),t),t=uu(e,t,r,n,i);break e}else for(xe=pt(t.stateNode.containerInfo.firstChild),ke=t,H=!0,De=null,n=Ha(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(un(),r===i){t=tt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return Ka(t),e===null&&Vs(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,Ms(r,i)?l=null:s!==null&&Ms(r,s)&&(t.flags|=32),vc(e,t),ce(e,t,l,n),t.child;case 6:return e===null&&Vs(t),null;case 13:return wc(e,t,n);case 4:return Fl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),su(e,t,r,i,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,F(li,r._currentValue),r._currentValue=l,s!==null)if(Fe(s.value,l)){if(s.children===i.children&&!ye.current){t=tt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){l=s.child;for(var u=o.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Je(-1,n&-n),u.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var y=f.pending;y===null?u.next=u:(u.next=y.next,y.next=u),f.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Hs(s.return,n,t),o.lanes|=n;break}u=u.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(x(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Hs(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rn(t,n),i=Re(i),r=r(i),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,i=ze(r,t.pendingProps),i=ze(r.type,i),lu(e,t,r,i,n);case 15:return mc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Br(e,t),t.tag=1,ve(r)?(e=!0,ri(t)):e=!1,rn(t,n),dc(t,r,i),Qs(t,r,i,n),qs(null,t,r,!0,e,n);case 19:return xc(e,t,n);case 22:return yc(e,t,n)}throw Error(x(156,t.tag))};function Dc(e,t){return aa(e,t)}function Sp(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 je(e,t,n,r){return new Sp(e,t,n,r)}function eo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _p(e){if(typeof e=="function")return eo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wl)return 11;if(e===xl)return 14}return 2}function vt(e,t){var n=e.alternate;return n===null?(n=je(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 $r(e,t,n,r,i,s){var l=2;if(r=e,typeof e=="function")eo(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Vt:return Ot(n.children,i,s,t);case gl:l=8,i|=8;break;case ms:return e=je(12,n,t,i|2),e.elementType=ms,e.lanes=s,e;case ys:return e=je(13,n,t,i),e.elementType=ys,e.lanes=s,e;case vs:return e=je(19,n,t,i),e.elementType=vs,e.lanes=s,e;case Ku:return ji(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wu:l=10;break e;case Qu:l=9;break e;case wl:l=11;break e;case xl:l=14;break e;case it:l=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=je(l,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Ot(e,t,n,r){return e=je(7,e,r,t),e.lanes=n,e}function ji(e,t,n,r){return e=je(22,e,r,t),e.elementType=Ku,e.lanes=n,e.stateNode={isHidden:!1},e}function us(e,t,n){return e=je(6,e,null,t),e.lanes=n,e}function as(e,t,n){return t=je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ep(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=Hi(0),this.expirationTimes=Hi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function to(e,t,n,r,i,s,l,o,u){return e=new Ep(e,t,n,o,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=je(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bl(s),e}function Np(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$t,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mc(e){if(!e)return xt;e=e._reactInternals;e:{if(Ft(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(ve(n))return Ma(e,n,t)}return t}function Bc(e,t,n,r,i,s,l,o,u){return e=to(n,r,!0,e,i,s,l,o,u),e.context=Mc(null),n=e.current,r=fe(),i=yt(n),s=Je(r,i),s.callback=t??null,ht(n,s,i),e.current.lanes=i,sr(e,i,r),ge(e,r),e}function Pi(e,t,n,r){var i=t.current,s=fe(),l=yt(i);return n=Mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Je(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ht(i,t,l),e!==null&&(Be(e,i,l,s),Ir(e,i,l)),l}function yi(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 gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function no(e,t){gu(e,t),(e=e.alternate)&&gu(e,t)}function Cp(){return null}var Fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function ro(e){this._internalRoot=e}Ri.prototype.render=ro.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));Pi(e,t,null,null)};Ri.prototype.unmount=ro.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mt(function(){Pi(null,e,null,null)}),t[be]=null}};function Ri(e){this._internalRoot=e}Ri.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<lt.length&&t!==0&&t<lt[n].priority;n++);lt.splice(n,0,e),n===0&&ga(e)}};function io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Li(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wu(){}function Tp(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var f=yi(l);s.call(f)}}var l=Bc(t,r,e,0,null,!1,!1,"",wu);return e._reactRootContainer=l,e[be]=l.current,Xn(e.nodeType===8?e.parentNode:e),Mt(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var f=yi(u);o.call(f)}}var u=to(e,0,!1,null,null,!1,!1,"",wu);return e._reactRootContainer=u,e[be]=u.current,Xn(e.nodeType===8?e.parentNode:e),Mt(function(){Pi(t,u,n,r)}),u}function Oi(e,t,n,r,i){var s=n._reactRootContainer;if(s){var l=s;if(typeof i=="function"){var o=i;i=function(){var u=yi(l);o.call(u)}}Pi(t,l,e,i)}else l=Tp(n,t,e,i,r);return yi(l)}ha=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pn(t.pendingLanes);n!==0&&(_l(t,n|1),ge(t,X()),!(M&6)&&(dn=X()+500,_t()))}break;case 13:Mt(function(){var r=et(e,1);if(r!==null){var i=fe();Be(r,e,1,i)}}),no(e,1)}};El=function(e){if(e.tag===13){var t=et(e,134217728);if(t!==null){var n=fe();Be(t,e,134217728,n)}no(e,134217728)}};ma=function(e){if(e.tag===13){var t=yt(e),n=et(e,t);if(n!==null){var r=fe();Be(n,e,t,r)}no(e,t)}};ya=function(){return B};va=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};Ts=function(e,t,n){switch(t){case"input":if(xs(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=Si(r);if(!i)throw Error(x(90));qu(r),xs(r,i)}}}break;case"textarea":Gu(e,n);break;case"select":t=n.value,t!=null&&bt(e,!!n.multiple,t,!1)}};ra=Jl;ia=Mt;var jp={usingClientEntryPoint:!1,Events:[or,Kt,Si,ta,na,Jl]},Nn={findFiberByHostInstance:jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Pp={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oa(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||Cp,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 Tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tr.isDisabled&&Tr.supportsFiber)try{gi=Tr.inject(Pp),He=Tr}catch{}}_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jp;_e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!io(t))throw Error(x(200));return Np(e,t,null,n)};_e.createRoot=function(e,t){if(!io(e))throw Error(x(299));var n=!1,r="",i=Fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=to(e,1,!1,null,null,n,!1,r,i),e[be]=t.current,Xn(e.nodeType===8?e.parentNode:e),new ro(t)};_e.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(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=oa(t),e=e===null?null:e.stateNode,e};_e.flushSync=function(e){return Mt(e)};_e.hydrate=function(e,t,n){if(!Li(t))throw Error(x(200));return Oi(null,e,t,!0,n)};_e.hydrateRoot=function(e,t,n){if(!io(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",l=Fc;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Bc(t,null,e,1,n??null,i,!1,s,l),e[be]=t.current,Xn(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 Ri(t)};_e.render=function(e,t,n){if(!Li(t))throw Error(x(200));return Oi(null,e,t,!1,n)};_e.unmountComponentAtNode=function(e){if(!Li(e))throw Error(x(40));return e._reactRootContainer?(Mt(function(){Oi(null,null,e,!1,function(){e._reactRootContainer=null,e[be]=null})}),!0):!1};_e.unstable_batchedUpdates=Jl;_e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Li(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Oi(e,t,n,!1,r)};_e.version="18.3.1-next-f1338f8080-20240426";function Uc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uc)}catch(e){console.error(e)}}Uc(),Uu.exports=_e;var Rp=Uu.exports,$c,xu=Rp;$c=xu.createRoot,xu.hydrateRoot;const Ke=Object.create(null);Ke.open="0";Ke.close="1";Ke.ping="2";Ke.pong="3";Ke.message="4";Ke.upgrade="5";Ke.noop="6";const Vr=Object.create(null);Object.keys(Ke).forEach(e=>{Vr[Ke[e]]=e});const ll={type:"error",data:"parser error"},Vc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Hc=typeof ArrayBuffer=="function",Wc=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,so=({type:e,data:t},n,r)=>Vc&&t instanceof Blob?n?r(t):ku(t,r):Hc&&(t instanceof ArrayBuffer||Wc(t))?n?r(t):ku(new Blob([t]),r):r(Ke[e]+(t||"")),ku=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Su(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let cs;function Lp(e,t){if(Vc&&e.data instanceof Blob)return e.data.arrayBuffer().then(Su).then(t);if(Hc&&(e.data instanceof ArrayBuffer||Wc(e.data)))return t(Su(e.data));so(e,!1,n=>{cs||(cs=new TextEncoder),t(cs.encode(n))})}const _u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ln=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<_u.length;e++)Ln[_u.charCodeAt(e)]=e;const Op=e=>{let t=e.length*.75,n=e.length,r,i=0,s,l,o,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),y=new Uint8Array(f);for(r=0;r<n;r+=4)s=Ln[e.charCodeAt(r)],l=Ln[e.charCodeAt(r+1)],o=Ln[e.charCodeAt(r+2)],u=Ln[e.charCodeAt(r+3)],y[i++]=s<<2|l>>4,y[i++]=(l&15)<<4|o>>2,y[i++]=(o&3)<<6|u&63;return f},zp=typeof ArrayBuffer=="function",lo=(e,t)=>{if(typeof e!="string")return{type:"message",data:Qc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Ap(e.substring(1),t)}:Vr[n]?e.length>1?{type:Vr[n],data:e.substring(1)}:{type:Vr[n]}:ll},Ap=(e,t)=>{if(zp){const n=Op(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}},Kc="",Ip=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,l)=>{so(s,!1,o=>{r[l]=o,++i===n&&t(r.join(Kc))})})},Dp=(e,t)=>{const n=e.split(Kc),r=[];for(let i=0;i<n.length;i++){const s=lo(n[i],t);if(r.push(s),s.type==="error")break}return r};function Mp(){return new TransformStream({transform(e,t){Lp(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 s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let fs;function jr(e){return e.reduce((t,n)=>t+n.length,0)}function Pr(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 Bp(e,t){fs||(fs=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(l,o){for(n.push(l);;){if(r===0){if(jr(n)<1)break;const u=Pr(n,1);s=(u[0]&128)===128,i=u[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(jr(n)<2)break;const u=Pr(n,2);i=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(jr(n)<8)break;const u=Pr(n,8),f=new DataView(u.buffer,u.byteOffset,u.length),y=f.getUint32(0);if(y>Math.pow(2,21)-1){o.enqueue(ll);break}i=y*Math.pow(2,32)+f.getUint32(4),r=3}else{if(jr(n)<i)break;const u=Pr(n,i);o.enqueue(lo(s?u:fs.decode(u),t)),r=0}if(i===0||i>e){o.enqueue(ll);break}}}})}const Yc=4;function J(e){if(e)return Fp(e)}function Fp(e){for(var t in J.prototype)e[t]=J.prototype[t];return e}J.prototype.on=J.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};J.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};J.prototype.off=J.prototype.removeListener=J.prototype.removeAllListeners=J.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};J.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};J.prototype.emitReserved=J.prototype.emit;J.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};J.prototype.hasListeners=function(e){return!!this.listeners(e).length};const zi=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Te=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Up="arraybuffer";function qc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const $p=Te.setTimeout,Vp=Te.clearTimeout;function Ai(e,t){t.useNativeTimers?(e.setTimeoutFn=$p.bind(Te),e.clearTimeoutFn=Vp.bind(Te)):(e.setTimeoutFn=Te.setTimeout.bind(Te),e.clearTimeoutFn=Te.clearTimeout.bind(Te))}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 Xc(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}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 s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class qp extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class oo extends J{constructor(t){super(),this.writable=!1,Ai(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}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=lo(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&&Number(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:""}}class Xp extends oo{constructor(){super(...arguments),this._polling=!1}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)};Dp(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,Ip(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]=Xc()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Gc=!1;try{Gc=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Gp=Gc;function Jp(){}class Zp extends Xp{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}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 Qe extends J{constructor(t,n,r){super(),this.createRequest=t,Ai(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=qc(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(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.getResponseHeader("set-cookie"))),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=Qe.requestsCount++,Qe.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=Jp,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Qe.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()}}Qe.requestsCount=0;Qe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Eu);else if(typeof addEventListener=="function"){const e="onpagehide"in Te?"pagehide":"unload";addEventListener(e,Eu,!1)}}function Eu(){for(let e in Qe.requests)Qe.requests.hasOwnProperty(e)&&Qe.requests[e].abort()}const bp=function(){const e=Jc({xdomain:!1});return e&&e.responseType!==null}();class eh extends Zp{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=bp&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Qe(Jc,this.uri(),t)}}function Jc(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Gp))return new XMLHttpRequest}catch{}if(!t)try{return new Te[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Zc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class th extends oo{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Zc?{}:qc(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=this.createSocket(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;so(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&zi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},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]=Xc()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const ds=Te.WebSocket||Te.MozWebSocket;class nh extends th{createSocket(t,n,r){return Zc?new ds(t,n,r):n?new ds(t,n):new ds(t)}doWrite(t,n){this.ws.send(n)}}class rh extends oo{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Bp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Mp();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:o,value:u})=>{o||(this.onPacket(u),s())}).catch(o=>{})};s();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&&zi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const ih={websocket:nh,webtransport:rh,polling:eh},sh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ol(e){if(e.length>8e3)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=sh.exec(e||""),s={},l=14;for(;l--;)s[lh[l]]=i[l]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=oh(s,s.path),s.queryKey=uh(s,s.query),s}function oh(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 uh(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const ul=typeof addEventListener=="function"&&typeof removeEventListener=="function",Hr=[];ul&&addEventListener("offline",()=>{Hr.forEach(e=>e())},!1);class gt extends J{constructor(t,n){if(super(),this.binaryType=Up,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ol(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ol(n.host).host);Ai(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=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),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)),ul&&(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"})},Hr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Yc,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 this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&>.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}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))}onOpen(){this.readyState="open",gt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();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._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,zi(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}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 s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),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){if(gt.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ul&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Hr.indexOf(this._offlineEventListener);r!==-1&&Hr.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}gt.protocol=Yc;class ah extends gt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;gt.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;gt.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(y(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function s(){r||(r=!0,y(),n.close(),n=null)}const l=m=>{const h=new Error("probe error: "+m);h.transport=n.name,s(),this.emitReserved("upgradeError",h)};function o(){l("transport closed")}function u(){l("socket closed")}function f(m){n&&m.name!==n.name&&s()}const y=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",o),this.off("close",u),this.off("upgrading",f)};n.once("open",i),n.once("error",l),n.once("close",o),this.once("close",u),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let ch=class extends ah{constructor(t,n={}){const r=typeof t=="object",i=r?{...t}:{...n};(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>ih[s]).filter(s=>!!s)),super(r?i:t,i)}};function fh(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=ol(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 s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const dh=typeof ArrayBuffer=="function",ph=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,bc=Object.prototype.toString,hh=typeof Blob=="function"||typeof Blob<"u"&&bc.call(Blob)==="[object BlobConstructor]",mh=typeof File=="function"||typeof File<"u"&&bc.call(File)==="[object FileConstructor]";function uo(e){return dh&&(e instanceof ArrayBuffer||ph(e))||hh&&e instanceof Blob||mh&&e instanceof File}function Wr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Wr(e[n]))return!0;return!1}if(uo(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Wr(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Wr(e[n]))return!0;return!1}function yh(e){const t=[],n=e.data,r=e;return r.data=Qr(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Qr(e,t,n){if(!e)return e;if(uo(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=Qr(e[i],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){if(e.toJSON&&typeof e.toJSON=="function"&&!n)return Qr(e.toJSON(),t,!0);const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Qr(e[i],t));return r}return e}function vh(e,t){return e.data=al(e.data,t),delete e.attachments,e}function al(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]=al(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=al(e[n],t));return e}const gh=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var D;(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"})(D||(D={}));class wh{constructor(t){this.replacer=t}encode(t){return(t.type===D.EVENT||t.type===D.ACK)&&Wr(t)?this.encodeAsBinary({type:t.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===D.BINARY_EVENT||t.type===D.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=yh(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class ao extends J{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}: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===D.BINARY_EVENT;r||n.type===D.BINARY_ACK?(n.type=r?D.EVENT:D.ACK,this.reconstructor=new xh(n)):super.emitReserved("decoded",n)}else if(uo(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(D[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===D.BINARY_EVENT||r.type===D.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(s,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const o=Number(l);if(!kh(o)||o<1)throw new Error("Illegal attachments");if(o>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=o}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=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(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(ao.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case D.CONNECT:return Nu(n);case D.DISCONNECT:return n===void 0;case D.CONNECT_ERROR:return typeof n=="string"||Nu(n);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&gh.indexOf(n[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xh{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=vh(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const kh=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Nu(e){return Object.prototype.toString.call(e)==="[object Object]"}const Sh=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ao,Encoder:wh,get PacketType(){return D}},Symbol.toStringTag,{value:"Module"}));function Ie(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const _h=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ef extends J{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=[Ie(t,"open",this.onopen.bind(this)),Ie(t,"packet",this.onpacket.bind(this)),Ie(t,"error",this.onerror.bind(this)),Ie(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){var r,i,s;if(_h.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 l={type:D.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const y=this.ids++,m=n.pop();this._registerAckCallback(y,m),l.id=y}const o=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,u=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!o||(u?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),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 s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},i),l=(...o)=>{this.io.clearTimeoutFn(s),n.apply(this,o)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,i)=>{const s=(l,o)=>l?i(l):r(o);s.withError=!0,n.push(s),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,...s)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),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:D.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 D.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 D.EVENT:case D.BINARY_EVENT:this.onevent(t);break;case D.ACK:case D.BINARY_ACK:this.onack(t);break;case D.DISCONNECT:this.ondisconnect();break;case D.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:D.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._drainQueue(!0),this.emitReserved("connect")}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:D.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 yn(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}yn.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};yn.prototype.reset=function(){this.attempts=0};yn.prototype.setMin=function(e){this.ms=e};yn.prototype.setMax=function(e){this.max=e};yn.prototype.setJitter=function(e){this.jitter=e};class cl extends J{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,Ai(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 yn({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||Sh;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,t||(this.skipReconnect=!0),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 ch(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ie(n,"open",function(){r.onopen(),t&&t()}),s=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},l=Ie(n,"error",s);if(this._timeout!==!1){const o=this._timeout,u=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},o);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(Ie(t,"ping",this.onping.bind(this)),Ie(t,"data",this.ondata.bind(this)),Ie(t,"error",this.onerror.bind(this)),Ie(t,"close",this.onclose.bind(this)),Ie(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){zi(()=>{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 ef(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")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),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 Cn={};function Kr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=fh(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,l=Cn[i]&&s in Cn[i].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let u;return o?u=new cl(r,t):(Cn[i]||(Cn[i]=new cl(r,t)),u=Cn[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Kr,{Manager:cl,Socket:ef,io:Kr,connect:Kr});function Eh({runs:e,selectedRunId:t,onSelect:n,onStop:r}){const i=l=>{const o=Math.floor(l/1e3),u=Math.floor(o/60),f=Math.floor(u/60);return f>0?`${f}h ${u%60}m`:u>0?`${u}m ${o%60}s`:`${o}s`},s=l=>new Date(l).toLocaleTimeString();return e.length===0?a.jsxs("div",{className:"sidebar-section",children:[a.jsx("div",{className:"sidebar-title",children:"Active Runs"}),a.jsxs("div",{className:"empty-state",style:{padding:"24px 8px"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",style:{width:"32px",height:"32px"},children:[a.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),a.jsx("path",{d:"M9 9h6M9 15h6M9 12h4"})]}),a.jsx("p",{style:{fontSize:"12px"},children:"No runs yet"})]})]}):a.jsxs("div",{className:"sidebar-section",children:[a.jsxs("div",{className:"sidebar-title",children:["Active Runs (",e.length,")"]}),a.jsx("div",{className:"run-list",children:e.map(l=>a.jsxs("div",{className:`run-item ${t===l.runId?"active":""}`,onClick:()=>n(l.runId),children:[a.jsxs("div",{className:"run-item-header",children:[a.jsxs("span",{className:"run-id",children:[l.runId.slice(0,20),"..."]}),a.jsx("span",{className:`run-status ${l.status}`,children:l.status})]}),a.jsx("div",{className:"run-task",title:l.task,children:l.task||"No task"}),a.jsxs("div",{className:"run-meta",children:[a.jsxs("span",{children:["⏱ ",i(l.duration)]}),a.jsxs("span",{children:["🕐 ",s(l.startTime)]})]})]},l.runId))})]})}function Cu({thoughts:e}){if(e.length===0)return a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"}),a.jsx("path",{d:"M15 5l5 5"})]}),a.jsx("p",{children:"No thoughts yet. Start a run to see the agent's thinking process."})]});const t=n=>{switch(n){case"thought":return"💭";case"action":return"⚡";case"observation":return"👁";case"error":return"❌";default:return"📝"}};return a.jsx("div",{className:"thought-log",children:e.slice().reverse().map((n,r)=>a.jsxs("div",{className:"thought-entry",children:[a.jsxs("div",{className:"thought-header",children:[a.jsxs("span",{className:`thought-type ${n.type}`,children:[t(n.type)," ",n.type.toUpperCase()]}),a.jsx("span",{children:new Date(n.timestamp).toLocaleTimeString()})]}),a.jsx("div",{className:"thought-content",children:n.content}),n.tool&&a.jsxs("div",{className:"thought-tool",children:[a.jsx("strong",{children:"Tool:"})," ",n.tool.name,n.tool.args&&a.jsxs("span",{children:[" | Args: ",JSON.stringify(n.tool.args).slice(0,100)]}),n.tool.result!==void 0&&a.jsxs("span",{children:[" | Result: ",JSON.stringify(n.tool.result).slice(0,100)]})]})]},`${n.id||r}-${n.timestamp}`))})}function Tu({approvals:e,onApprove:t,onReject:n}){const r=e.filter(v=>v.status==="pending"),i=e.filter(v=>v.status!=="pending"),[s,l]=I.useState({}),[o,u]=I.useState({}),[f,y]=I.useState({}),m=v=>{l(S=>({...S,[v]:!S[v]}))},h=async v=>{await t(v,o[v]||"Approved via UI"),u(S=>({...S,[v]:""}))},w=async v=>{const S=f[v]||"Rejected via UI";if(!S.trim()){alert("Please provide a reason for rejection");return}await n(v,S),y(O=>({...O,[v]:""}))};return r.length===0&&i.length===0?a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),a.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),a.jsx("p",{children:"No pending approvals"})]}):a.jsxs("div",{className:"approval-list",children:[r.map(v=>a.jsxs("div",{className:"approval-card",children:[a.jsxs("div",{className:"approval-header",children:[a.jsx("span",{className:"approval-action",children:v.action}),a.jsx("span",{className:"approval-badge pending",children:"PENDING"})]}),a.jsx("div",{className:"approval-context",children:a.jsx("pre",{children:JSON.stringify(v.context,null,2)})}),a.jsxs("div",{className:"approval-actions",children:[a.jsx("button",{className:"btn",onClick:()=>m(v.id),style:{flex:1},children:s[v.id]?"Hide Details":"Show Details"}),s[v.id]&&a.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",marginTop:"8px"},children:[a.jsxs("div",{style:{display:"flex",gap:"8px"},children:[a.jsx("input",{type:"text",placeholder:"Approval reason (optional)",value:o[v.id]||"",onChange:S=>u(O=>({...O,[v.id]:S.target.value})),className:"form-input",style:{flex:1,padding:"8px 12px"}}),a.jsx("button",{className:"btn success",onClick:()=>h(v.id),children:"✓ Approve"})]}),a.jsxs("div",{style:{display:"flex",gap:"8px"},children:[a.jsx("input",{type:"text",placeholder:"Rejection reason (required)",value:f[v.id]||"",onChange:S=>y(O=>({...O,[v.id]:S.target.value})),className:"form-input",style:{flex:1,padding:"8px 12px"}}),a.jsx("button",{className:"btn danger",onClick:()=>w(v.id),children:"✗ Reject"})]})]})]})]},v.id)),i.length>0&&a.jsxs("details",{style:{marginTop:"16px"},children:[a.jsxs("summary",{style:{cursor:"pointer",color:"var(--text-secondary)",fontSize:"12px"},children:["Decided (",i.length,")"]}),a.jsx("div",{style:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"8px"},children:i.slice(0,10).map(v=>a.jsxs("div",{className:"approval-card",style:{opacity:.7},children:[a.jsxs("div",{className:"approval-header",children:[a.jsx("span",{className:"approval-action",children:v.action}),a.jsx("span",{className:`approval-badge ${v.status}`,children:v.status.toUpperCase()})]}),a.jsx("div",{className:"approval-context",children:a.jsx("pre",{children:JSON.stringify(v.context,null,2)})}),v.reason&&a.jsxs("div",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:["Reason: ",v.reason]})]},v.id))})]})]})}function Nh({budget:e}){if(!e)return a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("circle",{cx:"12",cy:"12",r:"10"}),a.jsx("path",{d:"M12 6v6l4 2"})]}),a.jsx("p",{children:"No budget data available"})]});const t=e.run||e,n=e.daily||{},r=e.monthly||{},i=t.totalCost||0,s=t.totalTokens||0,l=n.totalCost||0,o=n.limit||50,u=r.totalCost||0,f=r.limit||500,y=t.limit?i/t.limit*100:0,m=l/o*100,h=u/f*100,w=v=>v>=90?"danger":v>=70?"warning":"";return a.jsxs("div",{children:[a.jsxs("div",{className:"budget-overview",children:[a.jsxs("div",{className:`budget-card ${w(y)}`,children:[a.jsx("div",{className:"budget-label",children:"Run Cost"}),a.jsxs("div",{className:`budget-value ${w(y)}`,children:["$",i.toFixed(4)]}),a.jsxs("div",{className:"budget-details",children:[a.jsxs("span",{children:[s.toLocaleString()," tokens"]}),t.limit&&a.jsxs("span",{children:["Limit: $$",t.limit]})]}),t.limit&&a.jsx("div",{style:{marginTop:"8px",height:"4px",background:"var(--bg-primary)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{style:{width:`${Math.min(y,100)}%`,height:"100%",background:w(y)==="danger"?"var(--danger)":w(y)==="warning"?"var(--warning)":"var(--success)",transition:"width 0.3s"}})})]}),a.jsxs("div",{className:`budget-card ${w(m)}`,children:[a.jsx("div",{className:"budget-label",children:"Daily Cost"}),a.jsxs("div",{className:`budget-value ${w(m)}`,children:["$",l.toFixed(2)]}),a.jsxs("div",{className:"budget-details",children:[a.jsxs("span",{children:["Limit: $$",o]}),a.jsxs("span",{children:[m.toFixed(0),"%"]})]}),a.jsx("div",{style:{marginTop:"8px",height:"4px",background:"var(--bg-primary)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{style:{width:`${Math.min(m,100)}%`,height:"100%",background:w(m)==="danger"?"var(--danger)":w(m)==="warning"?"var(--warning)":"var(--success)",transition:"width 0.3s"}})})]}),a.jsxs("div",{className:`budget-card ${w(h)}`,children:[a.jsx("div",{className:"budget-label",children:"Monthly Cost"}),a.jsxs("div",{className:`budget-value ${w(h)}`,children:["$",u.toFixed(2)]}),a.jsxs("div",{className:"budget-details",children:[a.jsxs("span",{children:["Limit: $$",f]}),a.jsxs("span",{children:[h.toFixed(0),"%"]})]}),a.jsx("div",{style:{marginTop:"8px",height:"4px",background:"var(--bg-primary)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{style:{width:`${Math.min(h,100)}%`,height:"100%",background:w(h)==="danger"?"var(--danger)":w(h)==="warning"?"var(--warning)":"var(--success)",transition:"width 0.3s"}})})]})]}),t.breakdown&&t.breakdown.length>0&&a.jsxs("div",{children:[a.jsx("h4",{style:{fontSize:"12px",fontWeight:"600",marginBottom:"12px",color:"var(--text-secondary)"},children:"Cost Breakdown"}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:t.breakdown.map((v,S)=>{var O;return a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px",background:"var(--bg-tertiary)",borderRadius:"4px",fontSize:"12px"},children:[a.jsxs("span",{children:[v.model," (",v.provider,")"]}),a.jsxs("span",{children:["$",v.cost.toFixed(6)," • ",(O=v.tokens)==null?void 0:O.toLocaleString()," tokens"]})]},S)})})]}),t.circuitBreaker&&a.jsxs("div",{style:{marginTop:"16px",padding:"12px",background:"var(--bg-tertiary)",borderRadius:"8px"},children:[a.jsx("div",{style:{fontSize:"12px",fontWeight:"600",marginBottom:"8px"},children:"Circuit Breaker"}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"12px"},children:[a.jsx("span",{children:"State: "}),a.jsx("span",{style:{color:t.circuitBreaker.state==="open"?"var(--danger)":t.circuitBreaker.state==="half-open"?"var(--warning)":"var(--success)"},children:t.circuitBreaker.state.toUpperCase()})]}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"12px",marginTop:"4px"},children:[a.jsx("span",{children:"Failures: "}),a.jsxs("span",{children:[t.circuitBreaker.failures,"/",t.circuitBreaker.threshold]})]})]})]})}function Ch({plugins:e}){return!e||e.length===0?a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),a.jsx("path",{d:"M12 6v6l4 2"})]}),a.jsx("p",{children:"No plugins loaded"}),a.jsx("p",{style:{fontSize:"12px"},children:"Drop .js files in lsji-plugins/ directory"})]}):a.jsx("div",{className:"plugin-list",children:e.map(t=>a.jsxs("div",{className:"plugin-card",children:[a.jsxs("div",{className:"plugin-info",children:[a.jsx("span",{className:"plugin-name",children:t.name}),a.jsxs("span",{className:"plugin-version",children:["v",t.version]}),a.jsxs("span",{className:"plugin-tools",children:[t.toolCount||0," tools"]})]}),a.jsx("span",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:"Enabled"})]},t.name))})}async function Th(){var e;try{const t=await fetch("http://localhost:11434/api/tags");if(t.ok)return((e=(await t.json()).models)==null?void 0:e.map(r=>({value:r.name,label:r.name})))||[]}catch{}return[]}const ju={gemini:[{value:"gemini-3.5-flash",label:"Gemini 3.5 Flash (Stable) - Best Price/Performance"},{value:"gemini-3.5-pro",label:"Gemini 3.5 Pro (Stable) - Best Reasoning"},{value:"gemini-3.1-flash",label:"Gemini 3.1 Flash (Preview)"},{value:"gemini-3.1-pro",label:"Gemini 3.1 Pro (Preview)"},{value:"gemini-3.1-flash-lite",label:"Gemini 3.1 Flash-Lite (Preview)"},{value:"gemini-2.5-flash",label:"Gemini 2.5 Flash (Deprecated)"},{value:"gemini-2.5-pro",label:"Gemini 2.5 Pro (Deprecated)"}],openai:[{value:"gpt-4o",label:"GPT-4o (Latest)"},{value:"gpt-4o-mini",label:"GPT-4o Mini"},{value:"gpt-4-turbo",label:"GPT-4 Turbo"},{value:"gpt-4",label:"GPT-4"},{value:"gpt-3.5-turbo",label:"GPT-3.5 Turbo"}],anthropic:[{value:"claude-3-5-sonnet-20241022",label:"Claude 3.5 Sonnet (Latest)"},{value:"claude-3-5-haiku-20241022",label:"Claude 3.5 Haiku"},{value:"claude-3-opus-20240229",label:"Claude 3 Opus"},{value:"claude-3-sonnet-20240229",label:"Claude 3 Sonnet"},{value:"claude-3-haiku-20240307",label:"Claude 3 Haiku"}],local:[]},ps={gemini:"gemini-3.5-flash",openai:"gpt-4o-mini",anthropic:"claude-3-5-sonnet-20241022",local:"llama3.2"};function jh({onClose:e,onStart:t}){const[n,r]=I.useState(""),[i,s]=I.useState(""),[l,o]=I.useState("gemini"),[u,f]=I.useState(ps.gemini),[y,m]=I.useState(""),[h,w]=I.useState([]),[v,S]=I.useState(10),[O,d]=I.useState(1e5),[c,p]=I.useState(!0),[g,E]=I.useState(!1);I.useEffect(()=>{f(ps[l]||ps.gemini)},[l]),I.useEffect(()=>{l==="local"&&Th().then(k=>{k.length>0&&(w(k),f(k[0].value))})},[l]);const j=async k=>{if(k.preventDefault(),!!n.trim()){E(!0);try{await t({task:n.trim(),workflowId:i.trim()||void 0,llm:{provider:l,model:u,apiKey:y||void 0},budget:{maxCostPerRun:v,maxTokensPerRun:O},hitl:{enabled:c}})}finally{E(!1)}}},P=ju[l]||ju.gemini;return a.jsx("div",{className:"modal-overlay",onClick:e,children:a.jsxs("div",{className:"modal",onClick:k=>k.stopPropagation(),children:[a.jsx("h2",{className:"modal-title",children:"Create New Agent Run"}),a.jsxs("form",{onSubmit:j,children:[a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Task Description *"}),a.jsx("textarea",{className:"form-textarea",placeholder:"Describe the task for the agent to complete...",value:n,onChange:k=>r(k.target.value),required:!0})]}),a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Workflow ID (optional)"}),a.jsx("input",{type:"text",className:"form-input",placeholder:"Auto-generated if empty",value:i,onChange:k=>s(k.target.value)})]}),a.jsxs("div",{className:"form-row",children:[a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"LLM Provider"}),a.jsxs("select",{className:"form-select",value:l,onChange:k=>o(k.target.value),children:[a.jsx("option",{value:"gemini",children:"Google Gemini"}),a.jsx("option",{value:"openai",children:"OpenAI"}),a.jsx("option",{value:"anthropic",children:"Anthropic"}),a.jsx("option",{value:"local",children:"Local (Ollama)"})]})]}),l!=="local"&&a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"API Key (or set env var)"}),a.jsx("input",{type:"password",className:"form-input",placeholder:l==="gemini"?"GEMINI_API_KEY":l==="openai"?"OPENAI_API_KEY":"ANTHROPIC_API_KEY",value:y,onChange:k=>m(k.target.value)}),a.jsx("span",{className:"form-hint",children:"Leave empty to use environment variable"})]}),a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Model"}),a.jsx("select",{className:"form-select",value:u,onChange:k=>f(k.target.value),children:(l==="local"?h:P).map(k=>a.jsx("option",{value:k.value,children:k.label},k.value))}),l==="local"&&h.length===0&&a.jsx("span",{className:"form-hint",style:{color:"var(--warning)"},children:"No local models found. Make sure Ollama is running at http://localhost:11434"})]})]}),a.jsxs("div",{className:"form-row",children:[a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Max Cost ($)"}),a.jsx("input",{type:"number",className:"form-input",value:v,onChange:k=>S(parseFloat(k.target.value)||0),min:"0.01",step:"0.01"})]}),a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Max Tokens"}),a.jsx("input",{type:"number",className:"form-input",value:O,onChange:k=>d(parseInt(k.target.value)||0),min:"1000",step:"1000"})]})]}),a.jsx("div",{className:"form-group",children:a.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[a.jsx("input",{type:"checkbox",checked:c,onChange:k=>p(k.target.checked)}),a.jsx("span",{children:"Enable HITL (Human-in-the-Loop) approvals"})]})}),a.jsxs("div",{className:"modal-actions",children:[a.jsx("button",{type:"button",className:"btn",onClick:e,disabled:g,children:"Cancel"}),a.jsx("button",{type:"submit",className:"btn primary",disabled:g||!n.trim(),children:g?"Starting...":"Start Run"})]})]})]})})}function Ph(){const[e,t]=I.useState(null),[n,r]=I.useState([]),[i,s]=I.useState(null),[l,o]=I.useState([]),[u,f]=I.useState([]),[y,m]=I.useState(null),[h,w]=I.useState([]),[v,S]=I.useState(!1),[O,d]=I.useState(!1),[c,p]=I.useState("thoughts");I.useEffect(()=>{const N=Kr(window.location.origin,{transports:["websocket","polling"],reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});return N.on("connect",()=>{S(!0),console.log("Connected to LSJI server")}),N.on("disconnect",()=>{S(!1),console.log("Disconnected from LSJI server")}),N.on("init",_=>{var R;r(_.runs||[]),o(_.approvals||[]),((R=_.runs)==null?void 0:R.length)>0&&!i&&(s(_.runs[0].runId),N.emit("subscribe:run",_.runs[0].runId))}),N.on("run:updated",_=>{r(R=>R.map(U=>U.runId===_.runId?{...U,status:_.status,error:_.error,result:_.result}:U))}),N.on("run:completed",_=>{r(R=>R.map(U=>U.runId===_.runId?{...U,status:"completed",result:_.result}:U)),fetch(`/api/runs/${_.runId}`).then(R=>R.json()).then(R=>{R.thoughts&&f(R.thoughts)})}),N.on("run:error",_=>{r(R=>R.map(U=>U.runId===_.runId?{...U,status:"error",error:_.error}:U))}),N.on("run:stopped",_=>{r(R=>R.map(U=>U.runId===_.runId?{...U,status:"stopped"}:U))}),N.on("thought:new",_=>{_.runId===i&&f(R=>[...R,_])}),N.on("approval:new",_=>{o(R=>[...R,{..._,runId:_.runId}])}),N.on("approval:updated",_=>{o(R=>R.map(U=>U.id===_.approvalId?{...U,status:_.status}:U))}),N.on("budget:updated",_=>{m(_)}),t(N),()=>{N.close()}},[i]),I.useEffect(()=>{e&&i&&(e.emit("subscribe:run",i),fetch(`/api/runs/${i}`).then(N=>N.json()).then(N=>{N.thoughts&&f(N.thoughts),N.budget&&m(N.budget)}).catch(console.error))},[e,i]),I.useEffect(()=>{const N=setInterval(()=>{e&&fetch("/api/approvals").then(_=>_.json()).then(_=>o(_.approvals||[])).catch(console.error)},5e3);return()=>clearInterval(N)},[e]),I.useEffect(()=>{fetch("/api/plugins").then(N=>N.json()).then(N=>w(N.plugins||[])).catch(()=>w([]))},[]);const g=I.useCallback(async N=>{if(e)try{const R=await(await fetch("/api/runs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)})).json();R.runId&&(d(!1),s(R.runId),e.emit("subscribe:run",R.runId))}catch(_){console.error("Failed to start run:",_)}},[e]),E=I.useCallback(async(N,_)=>{try{await fetch(`/api/approvals/${N}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"approve",reason:_})})}catch(R){console.error("Failed to approve:",R)}},[]),j=I.useCallback(async(N,_)=>{try{await fetch(`/api/approvals/${N}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"reject",reason:_})})}catch(R){console.error("Failed to reject:",R)}},[]),P=I.useCallback(async N=>{try{await fetch(`/api/runs/${N}/stop`,{method:"POST"})}catch(_){console.error("Failed to stop run:",_)}},[]),k=n.find(N=>N.runId===i);return a.jsxs("div",{className:"app",children:[a.jsxs("header",{className:"header",children:[a.jsxs("div",{className:"header-left",children:[a.jsx("span",{className:"logo",children:"LSJI"}),a.jsx("span",{className:"version",children:"v0.3.0"})]}),a.jsxs("div",{className:"header-right",children:[a.jsxs("div",{className:"connection-status",children:[a.jsx("span",{className:`status-dot ${v?"":"disconnected"}`}),a.jsx("span",{children:v?"Connected":"Disconnected"})]}),a.jsx("button",{className:"btn primary",onClick:()=>d(!0),children:"+ New Run"})]})]}),a.jsxs("div",{className:"main",children:[a.jsxs("aside",{className:"sidebar",children:[a.jsx(Eh,{runs:n,selectedRunId:i,onSelect:s,onStop:P}),a.jsxs("div",{className:"sidebar-section",children:[a.jsx("div",{className:"sidebar-title",children:"Quick Actions"}),a.jsx("button",{className:"btn",style:{width:"100%",justifyContent:"center"},onClick:()=>d(!0),children:"+ Create New Run"})]})]}),a.jsx("div",{className:"content",children:k?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"content-header",children:[a.jsxs("div",{children:[a.jsx("div",{className:"content-title",children:k.task||"Untitled Task"}),a.jsxs("div",{style:{fontSize:"12px",color:"var(--text-secondary)",marginTop:"4px"},children:["Run: ",a.jsx("code",{children:k.runId})," | Workflow: ",a.jsx("code",{children:k.workflowId})]})]}),a.jsxs("div",{className:"content-actions",children:[a.jsx("span",{className:`run-status ${k.status}`,children:k.status}),k.status==="running"&&a.jsx("button",{className:"btn danger",onClick:()=>P(k.runId),children:"Stop"})]})]}),a.jsxs("div",{className:"panels",children:[a.jsxs("div",{className:"panel",style:{flex:"2"},children:[a.jsx("div",{className:"panel-header",children:a.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.jsx("span",{className:"panel-title",children:"Thought Log"}),a.jsxs("span",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:[u.length," entries"]})]})}),a.jsx("div",{className:"panel-content",children:a.jsx(Cu,{thoughts:u})})]}),a.jsxs("div",{className:"panel",style:{flex:"1",minWidth:"350px"},children:[a.jsx("div",{className:"panel-header",children:a.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.jsx("span",{className:"panel-title",children:"Approval Queue"}),a.jsxs("span",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:[l.filter(N=>N.status==="pending").length," pending"]})]})}),a.jsx("div",{className:"panel-content",children:a.jsx(Tu,{approvals:l.filter(N=>N.runId===i),onApprove:E,onReject:j})})]})]}),a.jsxs("div",{style:{borderTop:"1px solid var(--border)"},children:[a.jsx("div",{style:{display:"flex",gap:"8px",padding:"12px 16px",background:"var(--bg-secondary)",borderBottom:"1px solid var(--border)"},children:["thoughts","approvals","budget","plugins"].map(N=>a.jsx("button",{className:`btn ${c===N?"primary":""}`,style:{padding:"6px 12px",fontSize:"12px"},onClick:()=>p(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))}),a.jsxs("div",{className:"panel-content",style:{flex:1,maxHeight:"300px"},children:[c==="thoughts"&&a.jsx(Cu,{thoughts:u}),c==="approvals"&&a.jsx(Tu,{approvals:l,onApprove:E,onReject:j}),c==="budget"&&a.jsx(Nh,{budget:y}),c==="plugins"&&a.jsx(Ch,{plugins:h})]})]})]}):a.jsx("div",{className:"content",style:{alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{className:"empty-state",children:[a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:a.jsx("path",{d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})}),a.jsx("p",{children:"Select a run from the sidebar or create a new one"})]})})})]}),O&&a.jsx(jh,{onClose:()=>d(!1),onStart:g})]})}$c(document.getElementById("root")).render(a.jsx(wf.StrictMode,{children:a.jsx(Ph,{})}));
|
|
40
|
+
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ks(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sp=typeof WeakMap=="function"?WeakMap:Map;function pc(e,t,n){n=Je(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pi||(pi=!0,nl=r),Ks(e,t)},n}function hc(e,t,n){n=Je(-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(){Ks(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ks(e,t),typeof r!="function"&&(mt===null?mt=new Set([this]):mt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function nu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sp;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=wp.bind(null,e,t,n),t.then(e,e))}function ru(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 iu(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=Je(-1,1),t.tag=2,ht(n,t,1))),n.lanes|=1),e)}var lp=nt.ReactCurrentOwner,me=!1;function ce(e,t,n,r){t.child=e===null?Ha(t,null,n,r):an(t,e.child,n,r)}function su(e,t,n,r,i){n=n.render;var s=t.ref;return rn(t,i),r=Hl(e,t,n,r,s,i),n=Wl(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tt(e,t,i)):(H&&n&&Ll(t),t.flags|=1,ce(e,t,r,i),t.child)}function lu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!eo(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,mc(e,t,s,r,i)):(e=$r(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:qn,n(l,r)&&e.ref===t.ref)return tt(e,t,i)}return t.flags|=1,e=vt(s,r),e.ref=t.ref,e.return=t,t.child=e}function mc(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(qn(s,r)&&e.ref===t.ref)if(me=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(me=!0);else return t.lanes=e.lanes,tt(e,t,i)}return Ys(e,t,n,r,i)}function yc(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(Zt,we),we|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(Zt,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,F(Zt,we),we|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,F(Zt,we),we|=r;return ce(e,t,i,n),t.child}function vc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ys(e,t,n,r,i){var s=ve(n)?zt:ae.current;return s=on(t,s),rn(t,i),n=Hl(e,t,n,r,s,i),r=Wl(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tt(e,t,i)):(H&&r&&Ll(t),t.flags|=1,ce(e,t,n,i),t.child)}function ou(e,t,n,r,i){if(ve(n)){var s=!0;ri(t)}else s=!1;if(rn(t,i),t.stateNode===null)Br(e,t),dc(t,n,r),Qs(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var u=l.context,f=n.contextType;typeof f=="object"&&f!==null?f=Re(f):(f=ve(n)?zt:ae.current,f=on(t,f));var y=n.getDerivedStateFromProps,m=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==r||u!==f)&&tu(t,l,r,f),st=!1;var h=t.memoizedState;l.state=h,ui(t,r,l,i),u=t.memoizedState,o!==r||h!==u||ye.current||st?(typeof y=="function"&&(Ws(t,n,y,r),u=t.memoizedState),(o=st||eu(t,n,o,r,h,u,f))?(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=f,r=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Qa(e,t),o=t.memoizedProps,f=t.type===t.elementType?o:ze(t.type,o),l.props=f,m=t.pendingProps,h=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Re(u):(u=ve(n)?zt:ae.current,u=on(t,u));var x=n.getDerivedStateFromProps;(y=typeof x=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==m||h!==u)&&tu(t,l,r,u),st=!1,h=t.memoizedState,l.state=h,ui(t,r,l,i);var v=t.memoizedState;o!==m||h!==v||ye.current||st?(typeof x=="function"&&(Ws(t,n,x,r),v=t.memoizedState),(f=st||eu(t,n,f,r,h,v,u)||!1)?(y||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,v,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,v,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),l.props=r,l.state=v,l.context=u,r=f):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return qs(e,t,n,r,s,i)}function qs(e,t,n,r,i,s){vc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&Ko(t,n,!1),tt(e,t,s);r=t.stateNode,lp.current=t;var o=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=an(t,e.child,null,s),t.child=an(t,null,o,s)):ce(e,t,o,s),t.memoizedState=r.state,i&&Ko(t,n,!0),t.child}function gc(e){var t=e.stateNode;t.pendingContext?Qo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qo(e,t.context,!1),Fl(e,t.containerInfo)}function uu(e,t,n,r,i){return un(),zl(i),t.flags|=256,ce(e,t,n,r),t.child}var Xs={dehydrated:null,treeContext:null,retryLane:0};function Gs(e){return{baseLanes:e,cachePool:null,transitions:null}}function wc(e,t,n){var r=t.pendingProps,i=W.current,s=!1,l=(t.flags&128)!==0,o;if((o=l)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),F(W,i&1),e===null)return Vs(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,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=ji(l,r,0,null),e=Ot(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Gs(n),t.memoizedState=Xs,e):Yl(t,l));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return op(e,t,l,r,o,i,n);if(s){s=r.fallback,l=t.mode,i=e.child,o=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=vt(i,u),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=vt(o,s):(s=Ot(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Gs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Xs,r}return s=e.child,e=s.sibling,r=vt(s,{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 Yl(e,t){return t=ji({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Er(e,t,n,r){return r!==null&&zl(r),an(t,e.child,null,n),e=Yl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function op(e,t,n,r,i,s,l){if(n)return t.flags&256?(t.flags&=-257,r=ls(Error(k(422))),Er(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ji({mode:"visible",children:r.children},i,0,null),s=Ot(s,i,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&an(t,e.child,null,l),t.child.memoizedState=Gs(l),t.memoizedState=Xs,s);if(!(t.mode&1))return Er(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(k(419)),r=ls(s,r,void 0),Er(e,t,l,r)}if(o=(l&e.childLanes)!==0,me||o){if(r=ne,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!==s.retryLane&&(s.retryLane=i,et(e,i),Be(r,e,i,-1))}return bl(),r=ls(Error(k(421))),Er(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=xp.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,xe=pt(i.nextSibling),ke=t,H=!0,De=null,e!==null&&(Ne[Ce++]=Xe,Ne[Ce++]=Ge,Ne[Ce++]=At,Xe=e.id,Ge=e.overflow,At=t),t=Yl(t,r.children),t.flags|=4096,t)}function au(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hs(e.return,t,n)}function os(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function xc(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ce(e,t,r.children,n),r=W.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&&au(e,n,t);else if(e.tag===19)au(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(F(W,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&&ai(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),os(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ai(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}os(t,!0,n,null,s);break;case"together":os(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Br(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function up(e,t,n){switch(t.tag){case 3:gc(t),un();break;case 5:Ka(t);break;case 1:ve(t.type)&&ri(t);break;case 4:Fl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;F(li,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?wc(e,t,n):(F(W,W.current&1),e=tt(e,t,n),e!==null?e.sibling:null);F(W,W.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),F(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,yc(e,t,n)}return tt(e,t,n)}var kc,Js,Sc,_c;kc=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}};Js=function(){};Sc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Rt(We.current);var s=null;switch(n){case"input":i=ws(e,i),r=ws(e,r),s=[];break;case"select":i=K({},i,{value:void 0}),r=K({},r,{value:void 0}),s=[];break;case"textarea":i=Ss(e,i),r=Ss(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ti)}Es(n,r);var l;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var o=i[f];for(l in o)o.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&($n.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var u=r[f];if(o=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&u!==o&&(u!=null||o!=null))if(f==="style")if(o){for(l in o)!o.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&o[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(s||(s=[]),s.push(f,n)),n=u;else f==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(s=s||[]).push(f,u)):f==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(f,""+u):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&($n.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&$("scroll",e),s||o===u||(s=[])):(s=s||[]).push(f,u))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}};_c=function(e,t,n,r){n!==r&&(t.flags|=4)};function En(e,t){if(!H)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 oe(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 ap(e,t,n){var r=t.pendingProps;switch(Ol(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return ve(t.type)&&ni(),oe(t),null;case 3:return r=t.stateNode,cn(),V(ye),V(ae),$l(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Sr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,De!==null&&(sl(De),De=null))),Js(e,t),oe(t),null;case 5:Ul(t);var i=Rt(bn.current);if(n=t.type,e!==null&&t.stateNode!=null)Sc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return oe(t),null}if(e=Rt(We.current),Sr(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ve]=t,r[Jn]=s,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<Rn.length;i++)$(Rn[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":go(r,s),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$("invalid",r);break;case"textarea":xo(r,s),$("invalid",r)}Es(n,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var o=s[l];l==="children"?typeof o=="string"?r.textContent!==o&&(s.suppressHydrationWarning!==!0&&kr(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&kr(r.textContent,o,e),i=["children",""+o]):$n.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&$("scroll",r)}switch(n){case"input":pr(r),wo(r,s,!0);break;case"textarea":pr(r),ko(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ti)}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=Ju(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[Ve]=t,e[Jn]=r,kc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ns(n,r),n){case"dialog":$("cancel",e),$("close",e),i=r;break;case"iframe":case"object":case"embed":$("load",e),i=r;break;case"video":case"audio":for(i=0;i<Rn.length;i++)$(Rn[i],e);i=r;break;case"source":$("error",e),i=r;break;case"img":case"image":case"link":$("error",e),$("load",e),i=r;break;case"details":$("toggle",e),i=r;break;case"input":go(e,r),i=ws(e,r),$("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=K({},r,{value:void 0}),$("invalid",e);break;case"textarea":xo(e,r),i=Ss(e,r),$("invalid",e);break;default:i=r}Es(n,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var u=o[s];s==="style"?ea(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Zu(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Vn(e,u):typeof u=="number"&&Vn(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($n.hasOwnProperty(s)?u!=null&&s==="onScroll"&&$("scroll",e):u!=null&&vl(e,s,u,l))}switch(n){case"input":pr(e),wo(e,r,!1);break;case"textarea":pr(e),ko(e);break;case"option":r.value!=null&&e.setAttribute("value",""+wt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?bt(e,!!r.multiple,s,!1):r.defaultValue!=null&&bt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ti)}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 oe(t),null;case 6:if(e&&t.stateNode!=null)_c(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=Rt(bn.current),Rt(We.current),Sr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ve]=t,(s=r.nodeValue!==n)&&(e=ke,e!==null))switch(e.tag){case 3:kr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kr(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ve]=t,t.stateNode=r}return oe(t),null;case 13:if(V(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(H&&xe!==null&&t.mode&1&&!(t.flags&128))$a(),un(),t.flags|=98560,s=!1;else if(s=Sr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(k(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(k(317));s[Ve]=t}else un(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oe(t),s=!1}else De!==null&&(sl(De),De=null),s=!0;if(!s)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||W.current&1?b===0&&(b=3):bl())),t.updateQueue!==null&&(t.flags|=4),oe(t),null);case 4:return cn(),Js(e,t),e===null&&Xn(t.stateNode.containerInfo),oe(t),null;case 10:return Dl(t.type._context),oe(t),null;case 17:return ve(t.type)&&ni(),oe(t),null;case 19:if(V(W),s=t.memoizedState,s===null)return oe(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)En(s,!1);else{if(b!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=ai(e),l!==null){for(t.flags|=128,En(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return F(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&X()>dn&&(t.flags|=128,r=!0,En(s,!1),t.lanes=4194304)}else{if(!r)if(e=ai(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),En(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!H)return oe(t),null}else 2*X()-s.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,En(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=X(),t.sibling=null,n=W.current,F(W,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return Zl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function cp(e,t){switch(Ol(t),t.tag){case 1:return ve(t.type)&&ni(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(),V(ye),V(ae),$l(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ul(t),null;case 13:if(V(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(W),null;case 4:return cn(),null;case 10:return Dl(t.type._context),null;case 22:case 23:return Zl(),null;case 24:return null;default:return null}}var Nr=!1,ue=!1,fp=typeof WeakSet=="function"?WeakSet:Set,N=null;function Jt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function Zs(e,t,n){try{n()}catch(r){Y(e,t,r)}}var cu=!1;function dp(e,t){if(Is=Zr,e=ja(),Rl(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,o=-1,u=-1,f=0,y=0,m=e,h=null;t:for(;;){for(var x;m!==n||i!==0&&m.nodeType!==3||(o=l+i),m!==s||r!==0&&m.nodeType!==3||(u=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(x=m.firstChild)!==null;)h=m,m=x;for(;;){if(m===e)break t;if(h===n&&++f===i&&(o=l),h===s&&++y===r&&(u=l),(x=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=x}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ds={focusedElem:e,selectionRange:n},Zr=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,O=v.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?S:ze(t.type,S),O);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){Y(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return v=cu,cu=!1,v}function Bn(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 s=i.destroy;i.destroy=void 0,s!==void 0&&Zs(t,n,s)}i=i.next}while(i!==r)}}function Ci(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 bs(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 Ec(e){var t=e.alternate;t!==null&&(e.alternate=null,Ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ve],delete t[Jn],delete t[Fs],delete t[qd],delete t[Xd])),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 Nc(e){return e.tag===5||e.tag===3||e.tag===4}function fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nc(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 el(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=ti));else if(r!==4&&(e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(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(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}var re=null,Ae=!1;function rt(e,t,n){for(n=n.child;n!==null;)Cc(e,t,n),n=n.sibling}function Cc(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(gi,n)}catch{}switch(n.tag){case 5:ue||Jt(n,t);case 6:var r=re,i=Ae;re=null,rt(e,t,n),re=r,Ae=i,re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?es(e.parentNode,n):e.nodeType===1&&es(e,n),Kn(e)):es(re,n.stateNode));break;case 4:r=re,i=Ae,re=n.stateNode.containerInfo,Ae=!0,rt(e,t,n),re=r,Ae=i;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Zs(n,t,l),i=i.next}while(i!==r)}rt(e,t,n);break;case 1:if(!ue&&(Jt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Y(n,t,o)}rt(e,t,n);break;case 21:rt(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,rt(e,t,n),ue=r):rt(e,t,n);break;default:rt(e,t,n)}}function du(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fp),t.forEach(function(r){var i=kp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Oe(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:re=o.stateNode,Ae=!1;break e;case 3:re=o.stateNode.containerInfo,Ae=!0;break e;case 4:re=o.stateNode.containerInfo,Ae=!0;break e}o=o.return}if(re===null)throw Error(k(160));Cc(s,l,i),re=null,Ae=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){Y(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tc(t,e),t=t.sibling}function Tc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Oe(t,e),Ue(e),r&4){try{Bn(3,e,e.return),Ci(3,e)}catch(S){Y(e,e.return,S)}try{Bn(5,e,e.return)}catch(S){Y(e,e.return,S)}}break;case 1:Oe(t,e),Ue(e),r&512&&n!==null&&Jt(n,n.return);break;case 5:if(Oe(t,e),Ue(e),r&512&&n!==null&&Jt(n,n.return),e.flags&32){var i=e.stateNode;try{Vn(i,"")}catch(S){Y(e,e.return,S)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,o=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&Xu(i,s),Ns(o,l);var f=Ns(o,s);for(l=0;l<u.length;l+=2){var y=u[l],m=u[l+1];y==="style"?ea(i,m):y==="dangerouslySetInnerHTML"?Zu(i,m):y==="children"?Vn(i,m):vl(i,y,m,f)}switch(o){case"input":xs(i,s);break;case"textarea":Gu(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var x=s.value;x!=null?bt(i,!!s.multiple,x,!1):h!==!!s.multiple&&(s.defaultValue!=null?bt(i,!!s.multiple,s.defaultValue,!0):bt(i,!!s.multiple,s.multiple?[]:"",!1))}i[Jn]=s}catch(S){Y(e,e.return,S)}}break;case 6:if(Oe(t,e),Ue(e),r&4){if(e.stateNode===null)throw Error(k(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(S){Y(e,e.return,S)}}break;case 3:if(Oe(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kn(t.containerInfo)}catch(S){Y(e,e.return,S)}break;case 4:Oe(t,e),Ue(e);break;case 13:Oe(t,e),Ue(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Gl=X())),r&4&&du(e);break;case 22:if(y=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(f=ue)||y,Oe(t,e),ue=f):Oe(t,e),Ue(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!y&&e.mode&1)for(N=e,y=e.child;y!==null;){for(m=N=y;N!==null;){switch(h=N,x=h.child,h.tag){case 0:case 11:case 14:case 15:Bn(4,h,h.return);break;case 1:Jt(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(S){Y(r,n,S)}}break;case 5:Jt(h,h.return);break;case 22:if(h.memoizedState!==null){hu(m);continue}}x!==null?(x.return=h,N=x):hu(m)}y=y.sibling}e:for(y=null,m=e;;){if(m.tag===5){if(y===null){y=m;try{i=m.stateNode,f?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=m.stateNode,u=m.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,o.style.display=bu("display",l))}catch(S){Y(e,e.return,S)}}}else if(m.tag===6){if(y===null)try{m.stateNode.nodeValue=f?"":m.memoizedProps}catch(S){Y(e,e.return,S)}}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;y===m&&(y=null),m=m.return}y===m&&(y=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Oe(t,e),Ue(e),r&4&&du(e);break;case 21:break;default:Oe(t,e),Ue(e)}}function Ue(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Nc(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Vn(i,""),r.flags&=-33);var s=fu(e);tl(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,o=fu(e);el(e,o,l);break;default:throw Error(k(161))}}catch(u){Y(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pp(e,t,n){N=e,jc(e)}function jc(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var i=N,s=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Nr;if(!l){var o=i.alternate,u=o!==null&&o.memoizedState!==null||ue;o=Nr;var f=ue;if(Nr=l,(ue=u)&&!f)for(N=i;N!==null;)l=N,u=l.child,l.tag===22&&l.memoizedState!==null?mu(i):u!==null?(u.return=l,N=u):mu(i);for(;s!==null;)N=s,jc(s),s=s.sibling;N=i,Nr=o,ue=f}pu(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,N=s):pu(e)}}function pu(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ue||Ci(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ze(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Jo(t,s,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}Jo(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;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 f=t.alternate;if(f!==null){var y=f.memoizedState;if(y!==null){var m=y.dehydrated;m!==null&&Kn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}ue||t.flags&512&&bs(t)}catch(h){Y(t,t.return,h)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function hu(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function mu(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ci(4,t)}catch(u){Y(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){Y(t,i,u)}}var s=t.return;try{bs(t)}catch(u){Y(t,s,u)}break;case 5:var l=t.return;try{bs(t)}catch(u){Y(t,l,u)}}}catch(u){Y(t,t.return,u)}if(t===e){N=null;break}var o=t.sibling;if(o!==null){o.return=t.return,N=o;break}N=t.return}}var hp=Math.ceil,di=nt.ReactCurrentDispatcher,ql=nt.ReactCurrentOwner,Pe=nt.ReactCurrentBatchConfig,M=0,ne=null,G=null,ie=0,we=0,Zt=St(0),b=0,rr=null,Dt=0,Ti=0,Xl=0,Fn=null,he=null,Gl=0,dn=1/0,Ye=null,pi=!1,nl=null,mt=null,Cr=!1,at=null,hi=0,Un=0,rl=null,Fr=-1,Ur=0;function fe(){return M&6?X():Fr!==-1?Fr:Fr=X()}function yt(e){return e.mode&1?M&2&&ie!==0?ie&-ie:Jd.transition!==null?(Ur===0&&(Ur=da()),Ur):(e=B,e!==0||(e=window.event,e=e===void 0?16:wa(e.type)),e):1}function Be(e,t,n,r){if(50<Un)throw Un=0,rl=null,Error(k(185));sr(e,n,r),(!(M&2)||e!==ne)&&(e===ne&&(!(M&2)&&(Ti|=n),b===4&&ot(e,ie)),ge(e,r),n===1&&M===0&&!(t.mode&1)&&(dn=X()+500,_i&&_t()))}function ge(e,t){var n=e.callbackNode;Jf(e,t);var r=Jr(e,e===ne?ie:0);if(r===0)n!==null&&Eo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Eo(n),t===1)e.tag===0?Gd(yu.bind(null,e)):Ba(yu.bind(null,e)),Kd(function(){!(M&6)&&_t()}),n=null;else{switch(pa(r)){case 1:n=Sl;break;case 4:n=ca;break;case 16:n=Gr;break;case 536870912:n=fa;break;default:n=Gr}n=Dc(n,Pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pc(e,t){if(Fr=-1,Ur=0,M&6)throw Error(k(327));var n=e.callbackNode;if(sn()&&e.callbackNode!==n)return null;var r=Jr(e,e===ne?ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=mi(e,r);else{t=r;var i=M;M|=2;var s=Lc();(ne!==e||ie!==t)&&(Ye=null,dn=X()+500,Lt(e,t));do try{vp();break}catch(o){Rc(e,o)}while(!0);Il(),di.current=s,M=i,G!==null?t=0:(ne=null,ie=0,t=b)}if(t!==0){if(t===2&&(i=Rs(e),i!==0&&(r=i,t=il(e,i))),t===1)throw n=rr,Lt(e,0),ot(e,r),ge(e,X()),n;if(t===6)ot(e,r);else{if(i=e.current.alternate,!(r&30)&&!mp(i)&&(t=mi(e,r),t===2&&(s=Rs(e),s!==0&&(r=s,t=il(e,s))),t===1))throw n=rr,Lt(e,0),ot(e,r),ge(e,X()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:Tt(e,he,Ye);break;case 3:if(ot(e,r),(r&130023424)===r&&(t=Gl+500-X(),10<t)){if(Jr(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Bs(Tt.bind(null,e,he,Ye),t);break}Tt(e,he,Ye);break;case 4:if(ot(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Me(r);s=1<<l,l=t[l],l>i&&(i=l),r&=~s}if(r=i,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hp(r/1960))-r,10<r){e.timeoutHandle=Bs(Tt.bind(null,e,he,Ye),r);break}Tt(e,he,Ye);break;case 5:Tt(e,he,Ye);break;default:throw Error(k(329))}}}return ge(e,X()),e.callbackNode===n?Pc.bind(null,e):null}function il(e,t){var n=Fn;return e.current.memoizedState.isDehydrated&&(Lt(e,t).flags|=256),e=mi(e,t),e!==2&&(t=he,he=n,t!==null&&sl(t)),e}function sl(e){he===null?he=e:he.push.apply(he,e)}function mp(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],s=i.getSnapshot;i=i.value;try{if(!Fe(s(),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 ot(e,t){for(t&=~Xl,t&=~Ti,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Me(t),r=1<<n;e[n]=-1,t&=~r}}function yu(e){if(M&6)throw Error(k(327));sn();var t=Jr(e,0);if(!(t&1))return ge(e,X()),null;var n=mi(e,t);if(e.tag!==0&&n===2){var r=Rs(e);r!==0&&(t=r,n=il(e,r))}if(n===1)throw n=rr,Lt(e,0),ot(e,t),ge(e,X()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tt(e,he,Ye),ge(e,X()),null}function Jl(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(dn=X()+500,_i&&_t())}}function Mt(e){at!==null&&at.tag===0&&!(M&6)&&sn();var t=M;M|=1;var n=Pe.transition,r=B;try{if(Pe.transition=null,B=1,e)return e()}finally{B=r,Pe.transition=n,M=t,!(M&6)&&_t()}}function Zl(){we=Zt.current,V(Zt)}function Lt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Qd(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(Ol(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ni();break;case 3:cn(),V(ye),V(ae),$l();break;case 5:Ul(r);break;case 4:cn();break;case 13:V(W);break;case 19:V(W);break;case 10:Dl(r.type._context);break;case 22:case 23:Zl()}n=n.return}if(ne=e,G=e=vt(e.current,null),ie=we=t,b=0,rr=null,Xl=Ti=Dt=0,he=Fn=null,Pt!==null){for(t=0;t<Pt.length;t++)if(n=Pt[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=i,r.next=l}n.pending=r}Pt=null}return e}function Rc(e,t){do{var n=G;try{if(Il(),Dr.current=fi,ci){for(var r=Q.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ci=!1}if(It=0,te=Z=Q=null,Mn=!1,er=0,ql.current=null,n===null||n.return===null){b=1,rr=t,G=null;break}e:{var s=e,l=n.return,o=n,u=t;if(t=ie,o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u,y=o,m=y.tag;if(!(y.mode&1)&&(m===0||m===11||m===15)){var h=y.alternate;h?(y.updateQueue=h.updateQueue,y.memoizedState=h.memoizedState,y.lanes=h.lanes):(y.updateQueue=null,y.memoizedState=null)}var x=ru(l);if(x!==null){x.flags&=-257,iu(x,l,o,s,t),x.mode&1&&nu(s,f,t),t=x,u=f;var v=t.updateQueue;if(v===null){var S=new Set;S.add(u),t.updateQueue=S}else v.add(u);break e}else{if(!(t&1)){nu(s,f,t),bl();break e}u=Error(k(426))}}else if(H&&o.mode&1){var O=ru(l);if(O!==null){!(O.flags&65536)&&(O.flags|=256),iu(O,l,o,s,t),zl(fn(u,o));break e}}s=u=fn(u,o),b!==4&&(b=2),Fn===null?Fn=[s]:Fn.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var d=pc(s,u,t);Go(s,d);break e;case 1:o=u;var c=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(mt===null||!mt.has(p)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=hc(s,o,t);Go(s,w);break e}}s=s.return}while(s!==null)}zc(n)}catch(E){t=E,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function Lc(){var e=di.current;return di.current=fi,e===null?fi:e}function bl(){(b===0||b===3||b===2)&&(b=4),ne===null||!(Dt&268435455)&&!(Ti&268435455)||ot(ne,ie)}function mi(e,t){var n=M;M|=2;var r=Lc();(ne!==e||ie!==t)&&(Ye=null,Lt(e,t));do try{yp();break}catch(i){Rc(e,i)}while(!0);if(Il(),M=n,di.current=r,G!==null)throw Error(k(261));return ne=null,ie=0,b}function yp(){for(;G!==null;)Oc(G)}function vp(){for(;G!==null&&!Vf();)Oc(G)}function Oc(e){var t=Ic(e.alternate,e,we);e.memoizedProps=e.pendingProps,t===null?zc(e):G=t,ql.current=null}function zc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cp(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{b=6,G=null;return}}else if(n=ap(n,t,we),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);b===0&&(b=5)}function Tt(e,t,n){var r=B,i=Pe.transition;try{Pe.transition=null,B=1,gp(e,t,n,r)}finally{Pe.transition=i,B=r}return null}function gp(e,t,n,r){do sn();while(at!==null);if(M&6)throw Error(k(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(k(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Zf(e,s),e===ne&&(G=ne=null,ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cr||(Cr=!0,Dc(Gr,function(){return sn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Pe.transition,Pe.transition=null;var l=B;B=1;var o=M;M|=4,ql.current=null,dp(e,n),Tc(n,e),Bd(Ds),Zr=!!Is,Ds=Is=null,e.current=n,pp(n),Hf(),M=o,B=l,Pe.transition=s}else e.current=n;if(Cr&&(Cr=!1,at=e,hi=i),s=e.pendingLanes,s===0&&(mt=null),Kf(n.stateNode),ge(e,X()),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(pi)throw pi=!1,e=nl,nl=null,e;return hi&1&&e.tag!==0&&sn(),s=e.pendingLanes,s&1?e===rl?Un++:(Un=0,rl=e):Un=0,_t(),null}function sn(){if(at!==null){var e=pa(hi),t=Pe.transition,n=B;try{if(Pe.transition=null,B=16>e?16:e,at===null)var r=!1;else{if(e=at,at=null,hi=0,M&6)throw Error(k(331));var i=M;for(M|=4,N=e.current;N!==null;){var s=N,l=s.child;if(N.flags&16){var o=s.deletions;if(o!==null){for(var u=0;u<o.length;u++){var f=o[u];for(N=f;N!==null;){var y=N;switch(y.tag){case 0:case 11:case 15:Bn(8,y,s)}var m=y.child;if(m!==null)m.return=y,N=m;else for(;N!==null;){y=N;var h=y.sibling,x=y.return;if(Ec(y),y===f){N=null;break}if(h!==null){h.return=x,N=h;break}N=x}}}var v=s.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var O=S.sibling;S.sibling=null,S=O}while(S!==null)}}N=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,N=l;else e:for(;N!==null;){if(s=N,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Bn(9,s,s.return)}var d=s.sibling;if(d!==null){d.return=s.return,N=d;break e}N=s.return}}var c=e.current;for(N=c;N!==null;){l=N;var p=l.child;if(l.subtreeFlags&2064&&p!==null)p.return=l,N=p;else e:for(l=c;N!==null;){if(o=N,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Ci(9,o)}}catch(E){Y(o,o.return,E)}if(o===l){N=null;break e}var w=o.sibling;if(w!==null){w.return=o.return,N=w;break e}N=o.return}}if(M=i,_t(),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(gi,e)}catch{}r=!0}return r}finally{B=n,Pe.transition=t}}return!1}function vu(e,t,n){t=fn(n,t),t=pc(e,t,1),e=ht(e,t,1),t=fe(),e!==null&&(sr(e,1,t),ge(e,t))}function Y(e,t,n){if(e.tag===3)vu(e,e,n);else for(;t!==null;){if(t.tag===3){vu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mt===null||!mt.has(r))){e=fn(n,e),e=hc(t,e,1),t=ht(t,e,1),e=fe(),t!==null&&(sr(t,1,e),ge(t,e));break}}t=t.return}}function wp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fe(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(ie&n)===n&&(b===4||b===3&&(ie&130023424)===ie&&500>X()-Gl?Lt(e,0):Xl|=n),ge(e,t)}function Ac(e,t){t===0&&(e.mode&1?(t=yr,yr<<=1,!(yr&130023424)&&(yr=4194304)):t=1);var n=fe();e=et(e,t),e!==null&&(sr(e,t,n),ge(e,n))}function xp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ac(e,n)}function kp(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(k(314))}r!==null&&r.delete(t),Ac(e,n)}var Ic;Ic=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,up(e,t,n);me=!!(e.flags&131072)}else me=!1,H&&t.flags&1048576&&Fa(t,si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var i=on(t,ae.current);rn(t,n),i=Hl(null,t,r,e,i,n);var s=Wl();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,ve(r)?(s=!0,ri(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Bl(t),i.updater=Ni,t.stateNode=i,i._reactInternals=t,Qs(t,r,e,n),t=qs(null,t,r,!0,s,n)):(t.tag=0,H&&s&&Ll(t),ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=_p(r),e=ze(r,e),i){case 0:t=Ys(null,t,r,e,n);break e;case 1:t=ou(null,t,r,e,n);break e;case 11:t=su(null,t,r,e,n);break e;case 14:t=lu(null,t,r,ze(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Ys(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),ou(e,t,r,i,n);case 3:e:{if(gc(t),e===null)throw Error(k(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Qa(e,t),ui(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=fn(Error(k(423)),t),t=uu(e,t,r,n,i);break e}else if(r!==i){i=fn(Error(k(424)),t),t=uu(e,t,r,n,i);break e}else for(xe=pt(t.stateNode.containerInfo.firstChild),ke=t,H=!0,De=null,n=Ha(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(un(),r===i){t=tt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return Ka(t),e===null&&Vs(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,Ms(r,i)?l=null:s!==null&&Ms(r,s)&&(t.flags|=32),vc(e,t),ce(e,t,l,n),t.child;case 6:return e===null&&Vs(t),null;case 13:return wc(e,t,n);case 4:return Fl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),su(e,t,r,i,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,F(li,r._currentValue),r._currentValue=l,s!==null)if(Fe(s.value,l)){if(s.children===i.children&&!ye.current){t=tt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){l=s.child;for(var u=o.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Je(-1,n&-n),u.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var y=f.pending;y===null?u.next=u:(u.next=y.next,y.next=u),f.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Hs(s.return,n,t),o.lanes|=n;break}u=u.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(k(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Hs(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rn(t,n),i=Re(i),r=r(i),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,i=ze(r,t.pendingProps),i=ze(r.type,i),lu(e,t,r,i,n);case 15:return mc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Br(e,t),t.tag=1,ve(r)?(e=!0,ri(t)):e=!1,rn(t,n),dc(t,r,i),Qs(t,r,i,n),qs(null,t,r,!0,e,n);case 19:return xc(e,t,n);case 22:return yc(e,t,n)}throw Error(k(156,t.tag))};function Dc(e,t){return aa(e,t)}function Sp(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 je(e,t,n,r){return new Sp(e,t,n,r)}function eo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _p(e){if(typeof e=="function")return eo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wl)return 11;if(e===xl)return 14}return 2}function vt(e,t){var n=e.alternate;return n===null?(n=je(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 $r(e,t,n,r,i,s){var l=2;if(r=e,typeof e=="function")eo(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Vt:return Ot(n.children,i,s,t);case gl:l=8,i|=8;break;case ms:return e=je(12,n,t,i|2),e.elementType=ms,e.lanes=s,e;case ys:return e=je(13,n,t,i),e.elementType=ys,e.lanes=s,e;case vs:return e=je(19,n,t,i),e.elementType=vs,e.lanes=s,e;case Ku:return ji(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wu:l=10;break e;case Qu:l=9;break e;case wl:l=11;break e;case xl:l=14;break e;case it:l=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=je(l,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Ot(e,t,n,r){return e=je(7,e,r,t),e.lanes=n,e}function ji(e,t,n,r){return e=je(22,e,r,t),e.elementType=Ku,e.lanes=n,e.stateNode={isHidden:!1},e}function us(e,t,n){return e=je(6,e,null,t),e.lanes=n,e}function as(e,t,n){return t=je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ep(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=Hi(0),this.expirationTimes=Hi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function to(e,t,n,r,i,s,l,o,u){return e=new Ep(e,t,n,o,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=je(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bl(s),e}function Np(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$t,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mc(e){if(!e)return xt;e=e._reactInternals;e:{if(Ft(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(ve(n))return Ma(e,n,t)}return t}function Bc(e,t,n,r,i,s,l,o,u){return e=to(n,r,!0,e,i,s,l,o,u),e.context=Mc(null),n=e.current,r=fe(),i=yt(n),s=Je(r,i),s.callback=t??null,ht(n,s,i),e.current.lanes=i,sr(e,i,r),ge(e,r),e}function Pi(e,t,n,r){var i=t.current,s=fe(),l=yt(i);return n=Mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Je(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ht(i,t,l),e!==null&&(Be(e,i,l,s),Ir(e,i,l)),l}function yi(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 gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function no(e,t){gu(e,t),(e=e.alternate)&&gu(e,t)}function Cp(){return null}var Fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function ro(e){this._internalRoot=e}Ri.prototype.render=ro.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));Pi(e,t,null,null)};Ri.prototype.unmount=ro.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mt(function(){Pi(null,e,null,null)}),t[be]=null}};function Ri(e){this._internalRoot=e}Ri.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<lt.length&&t!==0&&t<lt[n].priority;n++);lt.splice(n,0,e),n===0&&ga(e)}};function io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Li(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wu(){}function Tp(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var f=yi(l);s.call(f)}}var l=Bc(t,r,e,0,null,!1,!1,"",wu);return e._reactRootContainer=l,e[be]=l.current,Xn(e.nodeType===8?e.parentNode:e),Mt(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var f=yi(u);o.call(f)}}var u=to(e,0,!1,null,null,!1,!1,"",wu);return e._reactRootContainer=u,e[be]=u.current,Xn(e.nodeType===8?e.parentNode:e),Mt(function(){Pi(t,u,n,r)}),u}function Oi(e,t,n,r,i){var s=n._reactRootContainer;if(s){var l=s;if(typeof i=="function"){var o=i;i=function(){var u=yi(l);o.call(u)}}Pi(t,l,e,i)}else l=Tp(n,t,e,i,r);return yi(l)}ha=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pn(t.pendingLanes);n!==0&&(_l(t,n|1),ge(t,X()),!(M&6)&&(dn=X()+500,_t()))}break;case 13:Mt(function(){var r=et(e,1);if(r!==null){var i=fe();Be(r,e,1,i)}}),no(e,1)}};El=function(e){if(e.tag===13){var t=et(e,134217728);if(t!==null){var n=fe();Be(t,e,134217728,n)}no(e,134217728)}};ma=function(e){if(e.tag===13){var t=yt(e),n=et(e,t);if(n!==null){var r=fe();Be(n,e,t,r)}no(e,t)}};ya=function(){return B};va=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};Ts=function(e,t,n){switch(t){case"input":if(xs(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=Si(r);if(!i)throw Error(k(90));qu(r),xs(r,i)}}}break;case"textarea":Gu(e,n);break;case"select":t=n.value,t!=null&&bt(e,!!n.multiple,t,!1)}};ra=Jl;ia=Mt;var jp={usingClientEntryPoint:!1,Events:[or,Kt,Si,ta,na,Jl]},Nn={findFiberByHostInstance:jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Pp={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oa(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||Cp,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 Tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tr.isDisabled&&Tr.supportsFiber)try{gi=Tr.inject(Pp),He=Tr}catch{}}_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jp;_e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!io(t))throw Error(k(200));return Np(e,t,null,n)};_e.createRoot=function(e,t){if(!io(e))throw Error(k(299));var n=!1,r="",i=Fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=to(e,1,!1,null,null,n,!1,r,i),e[be]=t.current,Xn(e.nodeType===8?e.parentNode:e),new ro(t)};_e.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=oa(t),e=e===null?null:e.stateNode,e};_e.flushSync=function(e){return Mt(e)};_e.hydrate=function(e,t,n){if(!Li(t))throw Error(k(200));return Oi(null,e,t,!0,n)};_e.hydrateRoot=function(e,t,n){if(!io(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",l=Fc;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Bc(t,null,e,1,n??null,i,!1,s,l),e[be]=t.current,Xn(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 Ri(t)};_e.render=function(e,t,n){if(!Li(t))throw Error(k(200));return Oi(null,e,t,!1,n)};_e.unmountComponentAtNode=function(e){if(!Li(e))throw Error(k(40));return e._reactRootContainer?(Mt(function(){Oi(null,null,e,!1,function(){e._reactRootContainer=null,e[be]=null})}),!0):!1};_e.unstable_batchedUpdates=Jl;_e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Li(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return Oi(e,t,n,!1,r)};_e.version="18.3.1-next-f1338f8080-20240426";function Uc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uc)}catch(e){console.error(e)}}Uc(),Uu.exports=_e;var Rp=Uu.exports,$c,xu=Rp;$c=xu.createRoot,xu.hydrateRoot;const Ke=Object.create(null);Ke.open="0";Ke.close="1";Ke.ping="2";Ke.pong="3";Ke.message="4";Ke.upgrade="5";Ke.noop="6";const Vr=Object.create(null);Object.keys(Ke).forEach(e=>{Vr[Ke[e]]=e});const ll={type:"error",data:"parser error"},Vc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Hc=typeof ArrayBuffer=="function",Wc=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,so=({type:e,data:t},n,r)=>Vc&&t instanceof Blob?n?r(t):ku(t,r):Hc&&(t instanceof ArrayBuffer||Wc(t))?n?r(t):ku(new Blob([t]),r):r(Ke[e]+(t||"")),ku=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Su(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let cs;function Lp(e,t){if(Vc&&e.data instanceof Blob)return e.data.arrayBuffer().then(Su).then(t);if(Hc&&(e.data instanceof ArrayBuffer||Wc(e.data)))return t(Su(e.data));so(e,!1,n=>{cs||(cs=new TextEncoder),t(cs.encode(n))})}const _u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ln=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<_u.length;e++)Ln[_u.charCodeAt(e)]=e;const Op=e=>{let t=e.length*.75,n=e.length,r,i=0,s,l,o,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),y=new Uint8Array(f);for(r=0;r<n;r+=4)s=Ln[e.charCodeAt(r)],l=Ln[e.charCodeAt(r+1)],o=Ln[e.charCodeAt(r+2)],u=Ln[e.charCodeAt(r+3)],y[i++]=s<<2|l>>4,y[i++]=(l&15)<<4|o>>2,y[i++]=(o&3)<<6|u&63;return f},zp=typeof ArrayBuffer=="function",lo=(e,t)=>{if(typeof e!="string")return{type:"message",data:Qc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Ap(e.substring(1),t)}:Vr[n]?e.length>1?{type:Vr[n],data:e.substring(1)}:{type:Vr[n]}:ll},Ap=(e,t)=>{if(zp){const n=Op(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}},Kc="",Ip=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,l)=>{so(s,!1,o=>{r[l]=o,++i===n&&t(r.join(Kc))})})},Dp=(e,t)=>{const n=e.split(Kc),r=[];for(let i=0;i<n.length;i++){const s=lo(n[i],t);if(r.push(s),s.type==="error")break}return r};function Mp(){return new TransformStream({transform(e,t){Lp(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 s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let fs;function jr(e){return e.reduce((t,n)=>t+n.length,0)}function Pr(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 Bp(e,t){fs||(fs=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(l,o){for(n.push(l);;){if(r===0){if(jr(n)<1)break;const u=Pr(n,1);s=(u[0]&128)===128,i=u[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(jr(n)<2)break;const u=Pr(n,2);i=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(jr(n)<8)break;const u=Pr(n,8),f=new DataView(u.buffer,u.byteOffset,u.length),y=f.getUint32(0);if(y>Math.pow(2,21)-1){o.enqueue(ll);break}i=y*Math.pow(2,32)+f.getUint32(4),r=3}else{if(jr(n)<i)break;const u=Pr(n,i);o.enqueue(lo(s?u:fs.decode(u),t)),r=0}if(i===0||i>e){o.enqueue(ll);break}}}})}const Yc=4;function J(e){if(e)return Fp(e)}function Fp(e){for(var t in J.prototype)e[t]=J.prototype[t];return e}J.prototype.on=J.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};J.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};J.prototype.off=J.prototype.removeListener=J.prototype.removeAllListeners=J.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};J.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};J.prototype.emitReserved=J.prototype.emit;J.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};J.prototype.hasListeners=function(e){return!!this.listeners(e).length};const zi=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Te=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Up="arraybuffer";function qc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const $p=Te.setTimeout,Vp=Te.clearTimeout;function Ai(e,t){t.useNativeTimers?(e.setTimeoutFn=$p.bind(Te),e.clearTimeoutFn=Vp.bind(Te)):(e.setTimeoutFn=Te.setTimeout.bind(Te),e.clearTimeoutFn=Te.clearTimeout.bind(Te))}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 Xc(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}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 s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class qp extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class oo extends J{constructor(t){super(),this.writable=!1,Ai(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}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=lo(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&&Number(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:""}}class Xp extends oo{constructor(){super(...arguments),this._polling=!1}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)};Dp(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,Ip(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]=Xc()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Gc=!1;try{Gc=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Gp=Gc;function Jp(){}class Zp extends Xp{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}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 Qe extends J{constructor(t,n,r){super(),this.createRequest=t,Ai(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=qc(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(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.getResponseHeader("set-cookie"))),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=Qe.requestsCount++,Qe.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=Jp,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Qe.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()}}Qe.requestsCount=0;Qe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Eu);else if(typeof addEventListener=="function"){const e="onpagehide"in Te?"pagehide":"unload";addEventListener(e,Eu,!1)}}function Eu(){for(let e in Qe.requests)Qe.requests.hasOwnProperty(e)&&Qe.requests[e].abort()}const bp=function(){const e=Jc({xdomain:!1});return e&&e.responseType!==null}();class eh extends Zp{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=bp&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Qe(Jc,this.uri(),t)}}function Jc(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Gp))return new XMLHttpRequest}catch{}if(!t)try{return new Te[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Zc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class th extends oo{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Zc?{}:qc(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=this.createSocket(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;so(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&zi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},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]=Xc()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const ds=Te.WebSocket||Te.MozWebSocket;class nh extends th{createSocket(t,n,r){return Zc?new ds(t,n,r):n?new ds(t,n):new ds(t)}doWrite(t,n){this.ws.send(n)}}class rh extends oo{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Bp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Mp();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:o,value:u})=>{o||(this.onPacket(u),s())}).catch(o=>{})};s();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&&zi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const ih={websocket:nh,webtransport:rh,polling:eh},sh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ol(e){if(e.length>8e3)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=sh.exec(e||""),s={},l=14;for(;l--;)s[lh[l]]=i[l]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=oh(s,s.path),s.queryKey=uh(s,s.query),s}function oh(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 uh(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const ul=typeof addEventListener=="function"&&typeof removeEventListener=="function",Hr=[];ul&&addEventListener("offline",()=>{Hr.forEach(e=>e())},!1);class gt extends J{constructor(t,n){if(super(),this.binaryType=Up,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ol(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ol(n.host).host);Ai(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=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),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)),ul&&(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"})},Hr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Yc,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 this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&>.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}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))}onOpen(){this.readyState="open",gt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();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._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,zi(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}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 s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),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){if(gt.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ul&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Hr.indexOf(this._offlineEventListener);r!==-1&&Hr.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}gt.protocol=Yc;class ah extends gt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;gt.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;gt.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(y(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function s(){r||(r=!0,y(),n.close(),n=null)}const l=m=>{const h=new Error("probe error: "+m);h.transport=n.name,s(),this.emitReserved("upgradeError",h)};function o(){l("transport closed")}function u(){l("socket closed")}function f(m){n&&m.name!==n.name&&s()}const y=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",o),this.off("close",u),this.off("upgrading",f)};n.once("open",i),n.once("error",l),n.once("close",o),this.once("close",u),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let ch=class extends ah{constructor(t,n={}){const r=typeof t=="object",i=r?{...t}:{...n};(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>ih[s]).filter(s=>!!s)),super(r?i:t,i)}};function fh(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=ol(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 s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const dh=typeof ArrayBuffer=="function",ph=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,bc=Object.prototype.toString,hh=typeof Blob=="function"||typeof Blob<"u"&&bc.call(Blob)==="[object BlobConstructor]",mh=typeof File=="function"||typeof File<"u"&&bc.call(File)==="[object FileConstructor]";function uo(e){return dh&&(e instanceof ArrayBuffer||ph(e))||hh&&e instanceof Blob||mh&&e instanceof File}function Wr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Wr(e[n]))return!0;return!1}if(uo(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Wr(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Wr(e[n]))return!0;return!1}function yh(e){const t=[],n=e.data,r=e;return r.data=Qr(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Qr(e,t,n){if(!e)return e;if(uo(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=Qr(e[i],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){if(e.toJSON&&typeof e.toJSON=="function"&&!n)return Qr(e.toJSON(),t,!0);const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Qr(e[i],t));return r}return e}function vh(e,t){return e.data=al(e.data,t),delete e.attachments,e}function al(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]=al(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=al(e[n],t));return e}const gh=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var D;(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"})(D||(D={}));class wh{constructor(t){this.replacer=t}encode(t){return(t.type===D.EVENT||t.type===D.ACK)&&Wr(t)?this.encodeAsBinary({type:t.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===D.BINARY_EVENT||t.type===D.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=yh(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class ao extends J{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}: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===D.BINARY_EVENT;r||n.type===D.BINARY_ACK?(n.type=r?D.EVENT:D.ACK,this.reconstructor=new xh(n)):super.emitReserved("decoded",n)}else if(uo(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(D[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===D.BINARY_EVENT||r.type===D.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(s,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const o=Number(l);if(!kh(o)||o<1)throw new Error("Illegal attachments");if(o>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=o}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=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(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(ao.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case D.CONNECT:return Nu(n);case D.DISCONNECT:return n===void 0;case D.CONNECT_ERROR:return typeof n=="string"||Nu(n);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&gh.indexOf(n[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xh{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=vh(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const kh=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Nu(e){return Object.prototype.toString.call(e)==="[object Object]"}const Sh=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ao,Encoder:wh,get PacketType(){return D}},Symbol.toStringTag,{value:"Module"}));function Ie(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const _h=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ef extends J{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=[Ie(t,"open",this.onopen.bind(this)),Ie(t,"packet",this.onpacket.bind(this)),Ie(t,"error",this.onerror.bind(this)),Ie(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){var r,i,s;if(_h.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 l={type:D.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const y=this.ids++,m=n.pop();this._registerAckCallback(y,m),l.id=y}const o=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,u=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!o||(u?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),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 s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},i),l=(...o)=>{this.io.clearTimeoutFn(s),n.apply(this,o)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,i)=>{const s=(l,o)=>l?i(l):r(o);s.withError=!0,n.push(s),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,...s)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),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:D.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 D.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 D.EVENT:case D.BINARY_EVENT:this.onevent(t);break;case D.ACK:case D.BINARY_ACK:this.onack(t);break;case D.DISCONNECT:this.ondisconnect();break;case D.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:D.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._drainQueue(!0),this.emitReserved("connect")}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:D.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 yn(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}yn.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};yn.prototype.reset=function(){this.attempts=0};yn.prototype.setMin=function(e){this.ms=e};yn.prototype.setMax=function(e){this.max=e};yn.prototype.setJitter=function(e){this.jitter=e};class cl extends J{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,Ai(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 yn({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||Sh;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,t||(this.skipReconnect=!0),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 ch(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ie(n,"open",function(){r.onopen(),t&&t()}),s=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},l=Ie(n,"error",s);if(this._timeout!==!1){const o=this._timeout,u=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},o);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(Ie(t,"ping",this.onping.bind(this)),Ie(t,"data",this.ondata.bind(this)),Ie(t,"error",this.onerror.bind(this)),Ie(t,"close",this.onclose.bind(this)),Ie(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){zi(()=>{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 ef(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")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),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 Cn={};function Kr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=fh(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,l=Cn[i]&&s in Cn[i].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let u;return o?u=new cl(r,t):(Cn[i]||(Cn[i]=new cl(r,t)),u=Cn[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Kr,{Manager:cl,Socket:ef,io:Kr,connect:Kr});function Eh({runs:e,selectedRunId:t,onSelect:n,onStop:r}){const i=l=>{const o=Math.floor(l/1e3),u=Math.floor(o/60),f=Math.floor(u/60);return f>0?`${f}h ${u%60}m`:u>0?`${u}m ${o%60}s`:`${o}s`},s=l=>new Date(l).toLocaleTimeString();return e.length===0?a.jsxs("div",{className:"sidebar-section",children:[a.jsx("div",{className:"sidebar-title",children:"Active Runs"}),a.jsxs("div",{className:"empty-state",style:{padding:"24px 8px"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",style:{width:"32px",height:"32px"},children:[a.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),a.jsx("path",{d:"M9 9h6M9 15h6M9 12h4"})]}),a.jsx("p",{style:{fontSize:"12px"},children:"No runs yet"})]})]}):a.jsxs("div",{className:"sidebar-section",children:[a.jsxs("div",{className:"sidebar-title",children:["Active Runs (",e.length,")"]}),a.jsx("div",{className:"run-list",children:e.map(l=>a.jsxs("div",{className:`run-item ${t===l.runId?"active":""}`,onClick:()=>n(l.runId),children:[a.jsxs("div",{className:"run-item-header",children:[a.jsxs("span",{className:"run-id",children:[l.runId.slice(0,20),"..."]}),a.jsx("span",{className:`run-status ${l.status}`,children:l.status})]}),a.jsx("div",{className:"run-task",title:l.task,children:l.task||"No task"}),a.jsxs("div",{className:"run-meta",children:[a.jsxs("span",{children:["⏱ ",i(l.duration)]}),a.jsxs("span",{children:["🕐 ",s(l.startTime)]})]})]},l.runId))})]})}function Cu({thoughts:e}){if(e.length===0)return a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"}),a.jsx("path",{d:"M15 5l5 5"})]}),a.jsx("p",{children:"No thoughts yet. Start a run to see the agent's thinking process."})]});const t=n=>{switch(n){case"thought":return"💭";case"action":return"⚡";case"observation":return"👁";case"error":return"❌";default:return"📝"}};return a.jsx("div",{className:"thought-log",children:e.slice().reverse().map((n,r)=>a.jsxs("div",{className:"thought-entry",children:[a.jsxs("div",{className:"thought-header",children:[a.jsxs("span",{className:`thought-type ${n.type}`,children:[t(n.type)," ",n.type.toUpperCase()]}),a.jsx("span",{children:new Date(n.timestamp).toLocaleTimeString()})]}),a.jsx("div",{className:"thought-content",children:n.content}),n.tool&&a.jsxs("div",{className:"thought-tool",children:[a.jsx("strong",{children:"Tool:"})," ",n.tool.name,n.tool.args&&a.jsxs("span",{children:[" | Args: ",JSON.stringify(n.tool.args).slice(0,100)]}),n.tool.result!==void 0&&a.jsxs("span",{children:[" | Result: ",JSON.stringify(n.tool.result).slice(0,100)]})]})]},`${n.id||r}-${n.timestamp}`))})}function Tu({approvals:e,onApprove:t,onReject:n}){const r=e.filter(v=>v.status==="pending"),i=e.filter(v=>v.status!=="pending"),[s,l]=A.useState({}),[o,u]=A.useState({}),[f,y]=A.useState({}),m=v=>{l(S=>({...S,[v]:!S[v]}))},h=async v=>{await t(v,o[v]||"Approved via UI"),u(S=>({...S,[v]:""}))},x=async v=>{const S=f[v]||"Rejected via UI";if(!S.trim()){alert("Please provide a reason for rejection");return}await n(v,S),y(O=>({...O,[v]:""}))};return r.length===0&&i.length===0?a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),a.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),a.jsx("p",{children:"No pending approvals"})]}):a.jsxs("div",{className:"approval-list",children:[r.map(v=>a.jsxs("div",{className:"approval-card",children:[a.jsxs("div",{className:"approval-header",children:[a.jsx("span",{className:"approval-action",children:v.action}),a.jsx("span",{className:"approval-badge pending",children:"PENDING"})]}),a.jsx("div",{className:"approval-context",children:a.jsx("pre",{children:JSON.stringify(v.context,null,2)})}),a.jsxs("div",{className:"approval-actions",children:[a.jsx("button",{className:"btn",onClick:()=>m(v.id),style:{flex:1},children:s[v.id]?"Hide Details":"Show Details"}),s[v.id]&&a.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",marginTop:"8px"},children:[a.jsxs("div",{style:{display:"flex",gap:"8px"},children:[a.jsx("input",{type:"text",placeholder:"Approval reason (optional)",value:o[v.id]||"",onChange:S=>u(O=>({...O,[v.id]:S.target.value})),className:"form-input",style:{flex:1,padding:"8px 12px"}}),a.jsx("button",{className:"btn success",onClick:()=>h(v.id),children:"✓ Approve"})]}),a.jsxs("div",{style:{display:"flex",gap:"8px"},children:[a.jsx("input",{type:"text",placeholder:"Rejection reason (required)",value:f[v.id]||"",onChange:S=>y(O=>({...O,[v.id]:S.target.value})),className:"form-input",style:{flex:1,padding:"8px 12px"}}),a.jsx("button",{className:"btn danger",onClick:()=>x(v.id),children:"✗ Reject"})]})]})]})]},v.id)),i.length>0&&a.jsxs("details",{style:{marginTop:"16px"},children:[a.jsxs("summary",{style:{cursor:"pointer",color:"var(--text-secondary)",fontSize:"12px"},children:["Decided (",i.length,")"]}),a.jsx("div",{style:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"8px"},children:i.slice(0,10).map(v=>a.jsxs("div",{className:"approval-card",style:{opacity:.7},children:[a.jsxs("div",{className:"approval-header",children:[a.jsx("span",{className:"approval-action",children:v.action}),a.jsx("span",{className:`approval-badge ${v.status}`,children:v.status.toUpperCase()})]}),a.jsx("div",{className:"approval-context",children:a.jsx("pre",{children:JSON.stringify(v.context,null,2)})}),v.reason&&a.jsxs("div",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:["Reason: ",v.reason]})]},v.id))})]})]})}function Nh({budget:e}){if(!e)return a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("circle",{cx:"12",cy:"12",r:"10"}),a.jsx("path",{d:"M12 6v6l4 2"})]}),a.jsx("p",{children:"No budget data available"})]});const t=e.run||e,n=e.daily||{},r=e.monthly||{},i=t.totalCost||0,s=t.totalTokens||0,l=n.totalCost||0,o=n.limit||50,u=r.totalCost||0,f=r.limit||500,y=t.limit?i/t.limit*100:0,m=l/o*100,h=u/f*100,x=v=>v>=90?"danger":v>=70?"warning":"";return a.jsxs("div",{children:[a.jsxs("div",{className:"budget-overview",children:[a.jsxs("div",{className:`budget-card ${x(y)}`,children:[a.jsx("div",{className:"budget-label",children:"Run Cost"}),a.jsxs("div",{className:`budget-value ${x(y)}`,children:["$",i.toFixed(4)]}),a.jsxs("div",{className:"budget-details",children:[a.jsxs("span",{children:[s.toLocaleString()," tokens"]}),t.limit&&a.jsxs("span",{children:["Limit: $$",t.limit]})]}),t.limit&&a.jsx("div",{style:{marginTop:"8px",height:"4px",background:"var(--bg-primary)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{style:{width:`${Math.min(y,100)}%`,height:"100%",background:x(y)==="danger"?"var(--danger)":x(y)==="warning"?"var(--warning)":"var(--success)",transition:"width 0.3s"}})})]}),a.jsxs("div",{className:`budget-card ${x(m)}`,children:[a.jsx("div",{className:"budget-label",children:"Daily Cost"}),a.jsxs("div",{className:`budget-value ${x(m)}`,children:["$",l.toFixed(2)]}),a.jsxs("div",{className:"budget-details",children:[a.jsxs("span",{children:["Limit: $$",o]}),a.jsxs("span",{children:[m.toFixed(0),"%"]})]}),a.jsx("div",{style:{marginTop:"8px",height:"4px",background:"var(--bg-primary)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{style:{width:`${Math.min(m,100)}%`,height:"100%",background:x(m)==="danger"?"var(--danger)":x(m)==="warning"?"var(--warning)":"var(--success)",transition:"width 0.3s"}})})]}),a.jsxs("div",{className:`budget-card ${x(h)}`,children:[a.jsx("div",{className:"budget-label",children:"Monthly Cost"}),a.jsxs("div",{className:`budget-value ${x(h)}`,children:["$",u.toFixed(2)]}),a.jsxs("div",{className:"budget-details",children:[a.jsxs("span",{children:["Limit: $$",f]}),a.jsxs("span",{children:[h.toFixed(0),"%"]})]}),a.jsx("div",{style:{marginTop:"8px",height:"4px",background:"var(--bg-primary)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{style:{width:`${Math.min(h,100)}%`,height:"100%",background:x(h)==="danger"?"var(--danger)":x(h)==="warning"?"var(--warning)":"var(--success)",transition:"width 0.3s"}})})]})]}),t.breakdown&&t.breakdown.length>0&&a.jsxs("div",{children:[a.jsx("h4",{style:{fontSize:"12px",fontWeight:"600",marginBottom:"12px",color:"var(--text-secondary)"},children:"Cost Breakdown"}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:t.breakdown.map((v,S)=>{var O;return a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px",background:"var(--bg-tertiary)",borderRadius:"4px",fontSize:"12px"},children:[a.jsxs("span",{children:[v.model," (",v.provider,")"]}),a.jsxs("span",{children:["$",v.cost.toFixed(6)," • ",(O=v.tokens)==null?void 0:O.toLocaleString()," tokens"]})]},S)})})]}),t.circuitBreaker&&a.jsxs("div",{style:{marginTop:"16px",padding:"12px",background:"var(--bg-tertiary)",borderRadius:"8px"},children:[a.jsx("div",{style:{fontSize:"12px",fontWeight:"600",marginBottom:"8px"},children:"Circuit Breaker"}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"12px"},children:[a.jsx("span",{children:"State: "}),a.jsx("span",{style:{color:t.circuitBreaker.state==="open"?"var(--danger)":t.circuitBreaker.state==="half-open"?"var(--warning)":"var(--success)"},children:t.circuitBreaker.state.toUpperCase()})]}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"12px",marginTop:"4px"},children:[a.jsx("span",{children:"Failures: "}),a.jsxs("span",{children:[t.circuitBreaker.failures,"/",t.circuitBreaker.threshold]})]})]})]})}function Ch({plugins:e}){return!e||e.length===0?a.jsxs("div",{className:"empty-state",style:{height:"100%"},children:[a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),a.jsx("path",{d:"M12 6v6l4 2"})]}),a.jsx("p",{children:"No plugins loaded"}),a.jsx("p",{style:{fontSize:"12px"},children:"Drop .js files in lsji-plugins/ directory"})]}):a.jsx("div",{className:"plugin-list",children:e.map(t=>a.jsxs("div",{className:"plugin-card",children:[a.jsxs("div",{className:"plugin-info",children:[a.jsx("span",{className:"plugin-name",children:t.name}),a.jsxs("span",{className:"plugin-version",children:["v",t.version]}),a.jsxs("span",{className:"plugin-tools",children:[t.toolCount||0," tools"]})]}),a.jsx("span",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:"Enabled"})]},t.name))})}async function Th(){var e;try{const t=await fetch("http://localhost:11434/api/tags");if(t.ok)return((e=(await t.json()).models)==null?void 0:e.map(r=>({value:r.name,label:r.name})))||[]}catch{}return[]}const ju={gemini:[{value:"gemini-3.5-flash",label:"Gemini 3.5 Flash (Stable) - Best Price/Performance"},{value:"gemini-3.5-pro",label:"Gemini 3.5 Pro (Stable) - Best Reasoning"},{value:"gemini-3.1-flash",label:"Gemini 3.1 Flash (Preview)"},{value:"gemini-3.1-pro",label:"Gemini 3.1 Pro (Preview)"},{value:"gemini-3.1-flash-lite",label:"Gemini 3.1 Flash-Lite (Preview)"},{value:"gemini-2.5-flash",label:"Gemini 2.5 Flash (Deprecated)"},{value:"gemini-2.5-pro",label:"Gemini 2.5 Pro (Deprecated)"}],openai:[{value:"gpt-4o",label:"GPT-4o (Latest)"},{value:"gpt-4o-mini",label:"GPT-4o Mini"},{value:"gpt-4-turbo",label:"GPT-4 Turbo"},{value:"gpt-4",label:"GPT-4"},{value:"gpt-3.5-turbo",label:"GPT-3.5 Turbo"}],anthropic:[{value:"claude-3-5-sonnet-20241022",label:"Claude 3.5 Sonnet (Latest)"},{value:"claude-3-5-haiku-20241022",label:"Claude 3.5 Haiku"},{value:"claude-3-opus-20240229",label:"Claude 3 Opus"},{value:"claude-3-sonnet-20240229",label:"Claude 3 Sonnet"},{value:"claude-3-haiku-20240307",label:"Claude 3 Haiku"}],local:[]},ps={gemini:"gemini-3.5-flash",openai:"gpt-4o-mini",anthropic:"claude-3-5-sonnet-20241022",local:"llama3.2"};function jh({onClose:e,onStart:t}){const[n,r]=A.useState(""),[i,s]=A.useState(""),[l,o]=A.useState("gemini"),[u,f]=A.useState(ps.gemini),[y,m]=A.useState(""),[h,x]=A.useState([]),[v,S]=A.useState(10),[O,d]=A.useState(1e5),[c,p]=A.useState(!0),[w,E]=A.useState(!1),[j,P]=A.useState("");A.useEffect(()=>{f(ps[l]||ps.gemini)},[l]),A.useEffect(()=>{l==="local"&&Th().then(g=>{g.length>0&&(x(g),f(g[0].value))})},[l]);const C=async g=>{if(g.preventDefault(),!!n.trim()){E(!0),P("");try{await t({task:n.trim(),workflowId:i.trim()||void 0,llm:{provider:l,model:u,apiKey:y||void 0},budget:{maxCostPerRun:v,maxTokensPerRun:O},hitl:{enabled:c}})}catch(R){P(R.message||"Failed to start run")}finally{E(!1)}}},_=ju[l]||ju.gemini;return a.jsx("div",{className:"modal-overlay",onClick:e,children:a.jsxs("div",{className:"modal",onClick:g=>g.stopPropagation(),children:[a.jsx("h2",{className:"modal-title",children:"Create New Agent Run"}),a.jsxs("form",{onSubmit:C,children:[j&&a.jsx("div",{className:"form-error",style:{color:"var(--danger)",marginBottom:"12px",padding:"8px",background:"rgba(255,0,0,0.1)",borderRadius:"4px",fontSize:"13px"},children:j}),a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Task Description *"}),a.jsx("textarea",{className:"form-textarea",placeholder:"Describe the task for the agent to complete...",value:n,onChange:g=>r(g.target.value),required:!0})]}),a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Workflow ID (optional)"}),a.jsx("input",{type:"text",className:"form-input",placeholder:"Auto-generated if empty",value:i,onChange:g=>s(g.target.value)})]}),a.jsxs("div",{className:"form-row",children:[a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"LLM Provider"}),a.jsxs("select",{className:"form-select",value:l,onChange:g=>o(g.target.value),children:[a.jsx("option",{value:"gemini",children:"Google Gemini"}),a.jsx("option",{value:"openai",children:"OpenAI"}),a.jsx("option",{value:"anthropic",children:"Anthropic"}),a.jsx("option",{value:"local",children:"Local (Ollama)"})]})]}),l!=="local"&&a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"API Key (or set env var)"}),a.jsx("input",{type:"password",className:"form-input",placeholder:l==="gemini"?"GEMINI_API_KEY":l==="openai"?"OPENAI_API_KEY":"ANTHROPIC_API_KEY",value:y,onChange:g=>m(g.target.value)}),a.jsx("span",{className:"form-hint",children:"Leave empty to use environment variable"})]}),a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Model"}),a.jsx("select",{className:"form-select",value:u,onChange:g=>f(g.target.value),children:(l==="local"?h:_).map(g=>a.jsx("option",{value:g.value,children:g.label},g.value))}),l==="local"&&h.length===0&&a.jsx("span",{className:"form-hint",style:{color:"var(--warning)"},children:"No local models found. Make sure Ollama is running at http://localhost:11434"})]})]}),a.jsxs("div",{className:"form-row",children:[a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Max Cost ($)"}),a.jsx("input",{type:"number",className:"form-input",value:v,onChange:g=>S(parseFloat(g.target.value)||0),min:"0.01",step:"0.01"})]}),a.jsxs("div",{className:"form-group",children:[a.jsx("label",{className:"form-label",children:"Max Tokens"}),a.jsx("input",{type:"number",className:"form-input",value:O,onChange:g=>d(parseInt(g.target.value)||0),min:"1000",step:"1000"})]})]}),a.jsx("div",{className:"form-group",children:a.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[a.jsx("input",{type:"checkbox",checked:c,onChange:g=>p(g.target.checked)}),a.jsx("span",{children:"Enable HITL (Human-in-the-Loop) approvals"})]})}),a.jsxs("div",{className:"modal-actions",children:[a.jsx("button",{type:"button",className:"btn",onClick:e,disabled:w,children:"Cancel"}),a.jsx("button",{type:"submit",className:"btn primary",disabled:w||!n.trim(),children:w?"Starting...":"Start Run"})]})]})]})})}function Ph(){const[e,t]=A.useState(null),[n,r]=A.useState([]),[i,s]=A.useState(null),[l,o]=A.useState([]),[u,f]=A.useState([]),[y,m]=A.useState(null),[h,x]=A.useState([]),[v,S]=A.useState(!1),[O,d]=A.useState(!1),[c,p]=A.useState("thoughts");A.useEffect(()=>{const _=Kr(window.location.origin,{transports:["websocket"],reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});return _.on("connect",()=>{S(!0),console.log("Connected to LSJI server")}),_.on("connect_error",g=>{console.error("Socket connection error:",g.message);const R=_.io.opts.transports;Array.isArray(R)&&R.length===1&&R[0]==="websocket"&&(console.log("Retrying with polling transport..."),_.io.opts.transports=["polling","websocket"])}),_.on("disconnect",()=>{S(!1),console.log("Disconnected from LSJI server")}),_.on("init",g=>{var R;r(g.runs||[]),o(g.approvals||[]),((R=g.runs)==null?void 0:R.length)>0&&!i&&(s(g.runs[0].runId),_.emit("subscribe:run",g.runs[0].runId))}),_.on("run:updated",g=>{r(R=>R.map(U=>U.runId===g.runId?{...U,status:g.status,error:g.error,result:g.result}:U))}),_.on("run:completed",g=>{r(R=>R.map(U=>U.runId===g.runId?{...U,status:"completed",result:g.result}:U)),fetch(`/api/runs/${g.runId}`).then(R=>R.json()).then(R=>{R.thoughts&&f(R.thoughts)})}),_.on("run:error",g=>{r(R=>R.map(U=>U.runId===g.runId?{...U,status:"error",error:g.error}:U))}),_.on("run:stopped",g=>{r(R=>R.map(U=>U.runId===g.runId?{...U,status:"stopped"}:U))}),_.on("thought:new",g=>{g.runId===i&&f(R=>[...R,g])}),_.on("approval:new",g=>{o(R=>[...R,{...g,runId:g.runId}])}),_.on("approval:updated",g=>{o(R=>R.map(U=>U.id===g.approvalId?{...U,status:g.status}:U))}),_.on("budget:updated",g=>{m(g)}),t(_),()=>{_.close()}},[i]),A.useEffect(()=>{e&&i&&(e.emit("subscribe:run",i),fetch(`/api/runs/${i}`).then(_=>_.json()).then(_=>{_.thoughts&&f(_.thoughts),_.budget&&m(_.budget)}).catch(console.error))},[e,i]),A.useEffect(()=>{const _=setInterval(()=>{e&&fetch("/api/approvals").then(g=>g.json()).then(g=>o(g.approvals||[])).catch(console.error)},5e3);return()=>clearInterval(_)},[e]),A.useEffect(()=>{fetch("/api/plugins").then(_=>_.json()).then(_=>x(_.plugins||[])).catch(()=>x([]))},[]);const w=A.useCallback(async _=>{if(e)try{const R=await(await fetch("/api/runs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)})).json();R.runId&&(d(!1),s(R.runId),e.emit("subscribe:run",R.runId))}catch(g){console.error("Failed to start run:",g)}},[e]),E=A.useCallback(async(_,g)=>{try{await fetch(`/api/approvals/${_}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"approve",reason:g})})}catch(R){console.error("Failed to approve:",R)}},[]),j=A.useCallback(async(_,g)=>{try{await fetch(`/api/approvals/${_}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"reject",reason:g})})}catch(R){console.error("Failed to reject:",R)}},[]),P=A.useCallback(async _=>{try{await fetch(`/api/runs/${_}/stop`,{method:"POST"})}catch(g){console.error("Failed to stop run:",g)}},[]),C=n.find(_=>_.runId===i);return a.jsxs("div",{className:"app",children:[a.jsxs("header",{className:"header",children:[a.jsxs("div",{className:"header-left",children:[a.jsx("span",{className:"logo",children:"LSJI"}),a.jsx("span",{className:"version",children:"v0.3.0"})]}),a.jsxs("div",{className:"header-right",children:[a.jsxs("div",{className:"connection-status",children:[a.jsx("span",{className:`status-dot ${v?"":"disconnected"}`}),a.jsx("span",{children:v?"Connected":"Disconnected"})]}),a.jsx("button",{className:"btn primary",onClick:()=>d(!0),children:"+ New Run"})]})]}),a.jsxs("div",{className:"main",children:[a.jsxs("aside",{className:"sidebar",children:[a.jsx(Eh,{runs:n,selectedRunId:i,onSelect:s,onStop:P}),a.jsxs("div",{className:"sidebar-section",children:[a.jsx("div",{className:"sidebar-title",children:"Quick Actions"}),a.jsx("button",{className:"btn",style:{width:"100%",justifyContent:"center"},onClick:()=>d(!0),children:"+ Create New Run"})]})]}),a.jsx("div",{className:"content",children:C?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"content-header",children:[a.jsxs("div",{children:[a.jsx("div",{className:"content-title",children:C.task||"Untitled Task"}),a.jsxs("div",{style:{fontSize:"12px",color:"var(--text-secondary)",marginTop:"4px"},children:["Run: ",a.jsx("code",{children:C.runId})," | Workflow: ",a.jsx("code",{children:C.workflowId})]})]}),a.jsxs("div",{className:"content-actions",children:[a.jsx("span",{className:`run-status ${C.status}`,children:C.status}),C.status==="running"&&a.jsx("button",{className:"btn danger",onClick:()=>P(C.runId),children:"Stop"})]})]}),a.jsxs("div",{className:"panels",children:[a.jsxs("div",{className:"panel",style:{flex:"2"},children:[a.jsx("div",{className:"panel-header",children:a.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.jsx("span",{className:"panel-title",children:"Thought Log"}),a.jsxs("span",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:[u.length," entries"]})]})}),a.jsx("div",{className:"panel-content",children:a.jsx(Cu,{thoughts:u})})]}),a.jsxs("div",{className:"panel",style:{flex:"1",minWidth:"350px"},children:[a.jsx("div",{className:"panel-header",children:a.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.jsx("span",{className:"panel-title",children:"Approval Queue"}),a.jsxs("span",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:[l.filter(_=>_.status==="pending").length," pending"]})]})}),a.jsx("div",{className:"panel-content",children:a.jsx(Tu,{approvals:l.filter(_=>_.runId===i),onApprove:E,onReject:j})})]})]}),a.jsxs("div",{style:{borderTop:"1px solid var(--border)"},children:[a.jsx("div",{style:{display:"flex",gap:"8px",padding:"12px 16px",background:"var(--bg-secondary)",borderBottom:"1px solid var(--border)"},children:["thoughts","approvals","budget","plugins"].map(_=>a.jsx("button",{className:`btn ${c===_?"primary":""}`,style:{padding:"6px 12px",fontSize:"12px"},onClick:()=>p(_),children:_.charAt(0).toUpperCase()+_.slice(1)},_))}),a.jsxs("div",{className:"panel-content",style:{flex:1,maxHeight:"300px"},children:[c==="thoughts"&&a.jsx(Cu,{thoughts:u}),c==="approvals"&&a.jsx(Tu,{approvals:l,onApprove:E,onReject:j}),c==="budget"&&a.jsx(Nh,{budget:y}),c==="plugins"&&a.jsx(Ch,{plugins:h})]})]})]}):a.jsx("div",{className:"content",style:{alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{className:"empty-state",children:[a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:a.jsx("path",{d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})}),a.jsx("p",{children:"Select a run from the sidebar or create a new one"})]})})})]}),O&&a.jsx(jh,{onClose:()=>d(!1),onStart:w})]})}$c(document.getElementById("root")).render(a.jsx(wf.StrictMode,{children:a.jsx(Ph,{})}));
|