@cloudnux/dev-console 0.12.0 → 0.15.0
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.
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var Ka=e=>{throw TypeError(e)};var li=(e,t,n)=>t.has(e)||Ka("Cannot "+n);var y=(e,t,n)=>(li(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>t.has(e)?Ka("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_=(e,t,n,r)=>(li(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),U=(e,t,n)=>(li(e,t,"access private method"),n);var Os=(e,t,n,r)=>({set _(s){_(e,t,s,n)},get _(){return y(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function vh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lc={exports:{}},zl={},Tc={exports:{}},A={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var xs=Symbol.for("react.element"),xh=Symbol.for("react.portal"),wh=Symbol.for("react.fragment"),jh=Symbol.for("react.strict_mode"),kh=Symbol.for("react.profiler"),Sh=Symbol.for("react.provider"),Nh=Symbol.for("react.context"),Ch=Symbol.for("react.forward_ref"),Eh=Symbol.for("react.suspense"),bh=Symbol.for("react.memo"),Ph=Symbol.for("react.lazy"),Ga=Symbol.iterator;function Rh(e){return e===null||typeof e!="object"?null:(e=Ga&&e[Ga]||e["@@iterator"],typeof e=="function"?e:null)}var _c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oc=Object.assign,Mc={};function jr(e,t,n){this.props=e,this.context=t,this.refs=Mc,this.updater=n||_c}jr.prototype.isReactComponent={};jr.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")};jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fc(){}Fc.prototype=jr.prototype;function Wo(e,t,n){this.props=e,this.context=t,this.refs=Mc,this.updater=n||_c}var Vo=Wo.prototype=new Fc;Vo.constructor=Wo;Oc(Vo,jr.prototype);Vo.isPureReactComponent=!0;var Ja=Array.isArray,Dc=Object.prototype.hasOwnProperty,qo={current:null},Ic={key:!0,ref:!0,__self:!0,__source:!0};function $c(e,t,n){var r,s={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Dc.call(t,r)&&!Ic.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:xs,type:e,key:l,ref:i,props:s,_owner:qo.current}}function Lh(e,t){return{$$typeof:xs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ko(e){return typeof e=="object"&&e!==null&&e.$$typeof===xs}function Th(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ya=/\/+/g;function ii(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Th(""+e.key):t.toString(36)}function Zs(e,t,n,r,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case xs:case xh:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+ii(i,0):r,Ja(s)?(n="",e!=null&&(n=e.replace(Ya,"$&/")+"/"),Zs(s,t,n,"",function(c){return c})):s!=null&&(Ko(s)&&(s=Lh(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Ya,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Ja(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+ii(l,a);i+=Zs(l,t,n,u,s)}else if(u=Rh(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+ii(l,a++),i+=Zs(l,t,n,u,s);else if(l==="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 i}function Ms(e,t,n){if(e==null)return e;var r=[],s=0;return Zs(e,r,"","",function(l){return t.call(n,l,s++)}),r}function _h(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 Ce={current:null},el={transition:null},Oh={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:el,ReactCurrentOwner:qo};function zc(){throw Error("act(...) is not supported in production builds of React.")}A.Children={map:Ms,forEach:function(e,t,n){Ms(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ms(e,function(){t++}),t},toArray:function(e){return Ms(e,function(t){return t})||[]},only:function(e){if(!Ko(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};A.Component=jr;A.Fragment=wh;A.Profiler=kh;A.PureComponent=Wo;A.StrictMode=jh;A.Suspense=Eh;A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oh;A.act=zc;A.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=Oc({},e.props),s=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=qo.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Dc.call(t,u)&&!Ic.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:xs,type:e.type,key:s,ref:l,props:r,_owner:i}};A.createContext=function(e){return e={$$typeof:Nh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sh,_context:e},e.Consumer=e};A.createElement=$c;A.createFactory=function(e){var t=$c.bind(null,e);return t.type=e,t};A.createRef=function(){return{current:null}};A.forwardRef=function(e){return{$$typeof:Ch,render:e}};A.isValidElement=Ko;A.lazy=function(e){return{$$typeof:Ph,_payload:{_status:-1,_result:e},_init:_h}};A.memo=function(e,t){return{$$typeof:bh,type:e,compare:t===void 0?null:t}};A.startTransition=function(e){var t=el.transition;el.transition={};try{e()}finally{el.transition=t}};A.unstable_act=zc;A.useCallback=function(e,t){return Ce.current.useCallback(e,t)};A.useContext=function(e){return Ce.current.useContext(e)};A.useDebugValue=function(){};A.useDeferredValue=function(e){return Ce.current.useDeferredValue(e)};A.useEffect=function(e,t){return Ce.current.useEffect(e,t)};A.useId=function(){return Ce.current.useId()};A.useImperativeHandle=function(e,t,n){return Ce.current.useImperativeHandle(e,t,n)};A.useInsertionEffect=function(e,t){return Ce.current.useInsertionEffect(e,t)};A.useLayoutEffect=function(e,t){return Ce.current.useLayoutEffect(e,t)};A.useMemo=function(e,t){return Ce.current.useMemo(e,t)};A.useReducer=function(e,t,n){return Ce.current.useReducer(e,t,n)};A.useRef=function(e){return Ce.current.useRef(e)};A.useState=function(e){return Ce.current.useState(e)};A.useSyncExternalStore=function(e,t,n){return Ce.current.useSyncExternalStore(e,t,n)};A.useTransition=function(){return Ce.current.useTransition()};A.version="18.3.1";Tc.exports=A;var j=Tc.exports;const Mh=vh(j);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Fh=j,Dh=Symbol.for("react.element"),Ih=Symbol.for("react.fragment"),$h=Object.prototype.hasOwnProperty,zh=Fh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ah={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,s={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)$h.call(t,r)&&!Ah.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Dh,type:e,key:l,ref:i,props:s,_owner:zh.current}}zl.Fragment=Ih;zl.jsx=Ac;zl.jsxs=Ac;Lc.exports=zl;var o=Lc.exports,Mi={},Uc={exports:{}},ze={},Qc={exports:{}},Bc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(R,F){var $=R.length;R.push(F);e:for(;0<$;){var J=$-1>>>1,le=R[J];if(0<s(le,F))R[J]=F,R[$]=le,$=J;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var F=R[0],$=R.pop();if($!==F){R[0]=$;e:for(var J=0,le=R.length,Ts=le>>>1;J<Ts;){var dn=2*(J+1)-1,si=R[dn],fn=dn+1,_s=R[fn];if(0>s(si,$))fn<le&&0>s(_s,si)?(R[J]=_s,R[fn]=$,J=fn):(R[J]=si,R[dn]=$,J=dn);else if(fn<le&&0>s(_s,$))R[J]=_s,R[fn]=$,J=fn;else break e}}return F}function s(R,F){var $=R.sortIndex-F.sortIndex;return $!==0?$:R.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],c=[],f=1,p=null,g=3,x=!1,w=!1,k=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(R){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=R)r(c),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(c)}}function v(R){if(k=!1,d(R),!w)if(n(u)!==null)w=!0,M(N);else{var F=n(c);F!==null&&z(v,F.startTime-R)}}function N(R,F){w=!1,k&&(k=!1,m(b),b=-1),x=!0;var $=g;try{for(d(F),p=n(u);p!==null&&(!(p.expirationTime>F)||R&&!V());){var J=p.callback;if(typeof J=="function"){p.callback=null,g=p.priorityLevel;var le=J(p.expirationTime<=F);F=e.unstable_now(),typeof le=="function"?p.callback=le:p===n(u)&&r(u),d(F)}else r(u);p=n(u)}if(p!==null)var Ts=!0;else{var dn=n(c);dn!==null&&z(v,dn.startTime-F),Ts=!1}return Ts}finally{p=null,g=$,x=!1}}var E=!1,P=null,b=-1,O=5,L=-1;function V(){return!(e.unstable_now()-L<O)}function oe(){if(P!==null){var R=e.unstable_now();L=R;var F=!0;try{F=P(!0,R)}finally{F?D():(E=!1,P=null)}}else E=!1}var D;if(typeof h=="function")D=function(){h(oe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Qe=Ue.port2;Ue.port1.onmessage=oe,D=function(){Qe.postMessage(null)}}else D=function(){S(oe,0)};function M(R){P=R,E||(E=!0,D())}function z(R,F){b=S(function(){R(e.unstable_now())},F)}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(R){R.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,M(N))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(R){switch(g){case 1:case 2:case 3:var F=3;break;default:F=g}var $=g;g=F;try{return R()}finally{g=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,F){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var $=g;g=R;try{return F()}finally{g=$}},e.unstable_scheduleCallback=function(R,F,$){var J=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?J+$:J):$=J,R){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=$+le,R={id:f++,callback:F,priorityLevel:R,startTime:$,expirationTime:le,sortIndex:-1},$>J?(R.sortIndex=$,t(c,R),n(u)===null&&R===n(c)&&(k?(m(b),b=-1):k=!0,z(v,$-J))):(R.sortIndex=le,t(u,R),w||x||(w=!0,M(N))),R},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(R){var F=g;return function(){var $=g;g=F;try{return R.apply(this,arguments)}finally{g=$}}}})(Bc);Qc.exports=Bc;var Uh=Qc.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Qh=j,$e=Uh;function C(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 Hc=new Set,Gr={};function Mn(e,t){pr(e,t),pr(e+"Capture",t)}function pr(e,t){for(Gr[e]=t,e=0;e<t.length;e++)Hc.add(t[e])}var Et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fi=Object.prototype.hasOwnProperty,Bh=/^[: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]*$/,Xa={},Za={};function Hh(e){return Fi.call(Za,e)?!0:Fi.call(Xa,e)?!1:Bh.test(e)?Za[e]=!0:(Xa[e]=!0,!1)}function Wh(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 Vh(e,t,n,r){if(t===null||typeof t>"u"||Wh(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 Ee(e,t,n,r,s,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new Ee(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){ge[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var Go=/[\-:]([a-z])/g;function Jo(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(Go,Jo);ge[t]=new Ee(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(Go,Jo);ge[t]=new Ee(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(Go,Jo);ge[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yo(e,t,n,r){var s=ge.hasOwnProperty(t)?ge[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vh(t,n,s,r)&&(n=null),r||s===null?Hh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tt=Qh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fs=Symbol.for("react.element"),In=Symbol.for("react.portal"),$n=Symbol.for("react.fragment"),Xo=Symbol.for("react.strict_mode"),Di=Symbol.for("react.profiler"),Wc=Symbol.for("react.provider"),Vc=Symbol.for("react.context"),Zo=Symbol.for("react.forward_ref"),Ii=Symbol.for("react.suspense"),$i=Symbol.for("react.suspense_list"),ea=Symbol.for("react.memo"),Dt=Symbol.for("react.lazy"),qc=Symbol.for("react.offscreen"),eu=Symbol.iterator;function Er(e){return e===null||typeof e!="object"?null:(e=eu&&e[eu]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,oi;function Fr(e){if(oi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oi=t&&t[1]||""}return`
|
|
34
|
+
`+oi+e}var ai=!1;function ui(e,t){if(!e||ai)return"";ai=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),i=s.length-1,a=l.length-1;1<=i&&0<=a&&s[i]!==l[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==l[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==l[a]){var u=`
|
|
37
|
+
`+s[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{ai=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function qh(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=ui(e.type,!1),e;case 11:return e=ui(e.type.render,!1),e;case 1:return e=ui(e.type,!0),e;default:return""}}function zi(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 $n:return"Fragment";case In:return"Portal";case Di:return"Profiler";case Xo:return"StrictMode";case Ii:return"Suspense";case $i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vc:return(e.displayName||"Context")+".Consumer";case Wc:return(e._context.displayName||"Context")+".Provider";case Zo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ea:return t=e.displayName||null,t!==null?t:zi(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return zi(e(t))}catch{}}return null}function Kh(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 zi(t);case 8:return t===Xo?"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 sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gh(e){var t=Kc(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 s=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ds(e){e._valueTracker||(e._valueTracker=Gh(e))}function Gc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hl(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 Ai(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(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 Jc(e,t){t=t.checked,t!=null&&Yo(e,"checked",t,!1)}function Ui(e,t){Jc(e,t);var n=sn(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")?Qi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qi(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nu(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 Qi(e,t,n){(t!=="number"||hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Gn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Bi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ru(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Dr(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sn(n)}}function Yc(e,t){var n=sn(t.value),r=sn(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 su(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xc(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 Hi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Is,Zc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Is=Is||document.createElement("div"),Is.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Is.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ar={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},Jh=["Webkit","ms","Moz","O"];Object.keys(Ar).forEach(function(e){Jh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ar[t]=Ar[e]})});function ed(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ar.hasOwnProperty(e)&&Ar[e]?(""+t).trim():t+"px"}function td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=ed(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Yh=te({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 Wi(e,t){if(t){if(Yh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Vi(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 qi=null;function ta(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ki=null,Jn=null,Yn=null;function lu(e){if(e=ks(e)){if(typeof Ki!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Hl(t),Ki(e.stateNode,e.type,t))}}function nd(e){Jn?Yn?Yn.push(e):Yn=[e]:Jn=e}function rd(){if(Jn){var e=Jn,t=Yn;if(Yn=Jn=null,lu(e),t)for(e=0;e<t.length;e++)lu(t[e])}}function sd(e,t){return e(t)}function ld(){}var ci=!1;function id(e,t,n){if(ci)return e(t,n);ci=!0;try{return sd(e,t,n)}finally{ci=!1,(Jn!==null||Yn!==null)&&(ld(),rd())}}function Yr(e,t){var n=e.stateNode;if(n===null)return null;var r=Hl(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(C(231,t,typeof n));return n}var Gi=!1;if(Et)try{var br={};Object.defineProperty(br,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{Gi=!1}function Xh(e,t,n,r,s,l,i,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Ur=!1,pl=null,ml=!1,Ji=null,Zh={onError:function(e){Ur=!0,pl=e}};function ep(e,t,n,r,s,l,i,a,u){Ur=!1,pl=null,Xh.apply(Zh,arguments)}function tp(e,t,n,r,s,l,i,a,u){if(ep.apply(this,arguments),Ur){if(Ur){var c=pl;Ur=!1,pl=null}else throw Error(C(198));ml||(ml=!0,Ji=c)}}function Fn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function od(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 iu(e){if(Fn(e)!==e)throw Error(C(188))}function np(e){var t=e.alternate;if(!t){if(t=Fn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var l=s.alternate;if(l===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return iu(s),e;if(l===r)return iu(s),t;l=l.sibling}throw Error(C(188))}if(n.return!==r.return)n=s,r=l;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=l;break}if(a===r){i=!0,r=s,n=l;break}a=a.sibling}if(!i){for(a=l.child;a;){if(a===n){i=!0,n=l,r=s;break}if(a===r){i=!0,r=l,n=s;break}a=a.sibling}if(!i)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function ad(e){return e=np(e),e!==null?ud(e):null}function ud(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ud(e);if(t!==null)return t;e=e.sibling}return null}var cd=$e.unstable_scheduleCallback,ou=$e.unstable_cancelCallback,rp=$e.unstable_shouldYield,sp=$e.unstable_requestPaint,se=$e.unstable_now,lp=$e.unstable_getCurrentPriorityLevel,na=$e.unstable_ImmediatePriority,dd=$e.unstable_UserBlockingPriority,gl=$e.unstable_NormalPriority,ip=$e.unstable_LowPriority,fd=$e.unstable_IdlePriority,Al=null,ht=null;function op(e){if(ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Al,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:cp,ap=Math.log,up=Math.LN2;function cp(e){return e>>>=0,e===0?32:31-(ap(e)/up|0)|0}var $s=64,zs=4194304;function Ir(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 yl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=Ir(a):(l&=i,l!==0&&(r=Ir(l)))}else i=n&~s,i!==0?r=Ir(i):l!==0&&(r=Ir(l));if(r===0)return 0;if(t!==0&&t!==r&&(t&s)===0&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),s=1<<n,r|=e[n],t&=~s;return r}function dp(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 fp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-rt(l),a=1<<i,u=s[i];u===-1?((a&n)===0||(a&r)!==0)&&(s[i]=dp(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function Yi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hd(){var e=$s;return $s<<=1,($s&4194240)===0&&($s=64),e}function di(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ws(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function hp(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 s=31-rt(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function ra(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var W=0;function pd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var md,sa,gd,yd,vd,Xi=!1,As=[],Gt=null,Jt=null,Yt=null,Xr=new Map,Zr=new Map,$t=[],pp="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 au(e,t){switch(e){case"focusin":case"focusout":Gt=null;break;case"dragenter":case"dragleave":Jt=null;break;case"mouseover":case"mouseout":Yt=null;break;case"pointerover":case"pointerout":Xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function Pr(e,t,n,r,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[s]},t!==null&&(t=ks(t),t!==null&&sa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function mp(e,t,n,r,s){switch(t){case"focusin":return Gt=Pr(Gt,e,t,n,r,s),!0;case"dragenter":return Jt=Pr(Jt,e,t,n,r,s),!0;case"mouseover":return Yt=Pr(Yt,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return Xr.set(l,Pr(Xr.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,Zr.set(l,Pr(Zr.get(l)||null,e,t,n,r,s)),!0}return!1}function xd(e){var t=mn(e.target);if(t!==null){var n=Fn(t);if(n!==null){if(t=n.tag,t===13){if(t=od(n),t!==null){e.blockedOn=t,vd(e.priority,function(){gd(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 tl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qi=r,n.target.dispatchEvent(r),qi=null}else return t=ks(n),t!==null&&sa(t),e.blockedOn=n,!1;t.shift()}return!0}function uu(e,t,n){tl(e)&&n.delete(t)}function gp(){Xi=!1,Gt!==null&&tl(Gt)&&(Gt=null),Jt!==null&&tl(Jt)&&(Jt=null),Yt!==null&&tl(Yt)&&(Yt=null),Xr.forEach(uu),Zr.forEach(uu)}function Rr(e,t){e.blockedOn===t&&(e.blockedOn=null,Xi||(Xi=!0,$e.unstable_scheduleCallback($e.unstable_NormalPriority,gp)))}function es(e){function t(s){return Rr(s,e)}if(0<As.length){Rr(As[0],e);for(var n=1;n<As.length;n++){var r=As[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gt!==null&&Rr(Gt,e),Jt!==null&&Rr(Jt,e),Yt!==null&&Rr(Yt,e),Xr.forEach(t),Zr.forEach(t),n=0;n<$t.length;n++)r=$t[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<$t.length&&(n=$t[0],n.blockedOn===null);)xd(n),n.blockedOn===null&&$t.shift()}var Xn=Tt.ReactCurrentBatchConfig,vl=!0;function yp(e,t,n,r){var s=W,l=Xn.transition;Xn.transition=null;try{W=1,la(e,t,n,r)}finally{W=s,Xn.transition=l}}function vp(e,t,n,r){var s=W,l=Xn.transition;Xn.transition=null;try{W=4,la(e,t,n,r)}finally{W=s,Xn.transition=l}}function la(e,t,n,r){if(vl){var s=Zi(e,t,n,r);if(s===null)ji(e,t,r,xl,n),au(e,r);else if(mp(s,e,t,n,r))r.stopPropagation();else if(au(e,r),t&4&&-1<pp.indexOf(e)){for(;s!==null;){var l=ks(s);if(l!==null&&md(l),l=Zi(e,t,n,r),l===null&&ji(e,t,r,xl,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else ji(e,t,r,null,n)}}var xl=null;function Zi(e,t,n,r){if(xl=null,e=ta(r),e=mn(e),e!==null)if(t=Fn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=od(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 xl=e,null}function wd(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(lp()){case na:return 1;case dd:return 4;case gl:case ip:return 16;case fd:return 536870912;default:return 16}default:return 16}}var qt=null,ia=null,nl=null;function jd(){if(nl)return nl;var e,t=ia,n=t.length,r,s="value"in qt?qt.value:qt.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[l-r];r++);return nl=s.slice(e,1<r?1-r:void 0)}function rl(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 Us(){return!0}function cu(){return!1}function Ae(e){function t(n,r,s,l,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Us:cu,this.isPropagationStopped=cu,this}return te(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=Us)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Us)},persist:function(){},isPersistent:Us}),t}var kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oa=Ae(kr),js=te({},kr,{view:0,detail:0}),xp=Ae(js),fi,hi,Lr,Ul=te({},js,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aa,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!==Lr&&(Lr&&e.type==="mousemove"?(fi=e.screenX-Lr.screenX,hi=e.screenY-Lr.screenY):hi=fi=0,Lr=e),fi)},movementY:function(e){return"movementY"in e?e.movementY:hi}}),du=Ae(Ul),wp=te({},Ul,{dataTransfer:0}),jp=Ae(wp),kp=te({},js,{relatedTarget:0}),pi=Ae(kp),Sp=te({},kr,{animationName:0,elapsedTime:0,pseudoElement:0}),Np=Ae(Sp),Cp=te({},kr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ep=Ae(Cp),bp=te({},kr,{data:0}),fu=Ae(bp),Pp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rp={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"},Lp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Lp[e])?!!t[e]:!1}function aa(){return Tp}var _p=te({},js,{key:function(e){if(e.key){var t=Pp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aa,charCode:function(e){return e.type==="keypress"?rl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Op=Ae(_p),Mp=te({},Ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hu=Ae(Mp),Fp=te({},js,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aa}),Dp=Ae(Fp),Ip=te({},kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),$p=Ae(Ip),zp=te({},Ul,{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}),Ap=Ae(zp),Up=[9,13,27,32],ua=Et&&"CompositionEvent"in window,Qr=null;Et&&"documentMode"in document&&(Qr=document.documentMode);var Qp=Et&&"TextEvent"in window&&!Qr,kd=Et&&(!ua||Qr&&8<Qr&&11>=Qr),pu=" ",mu=!1;function Sd(e,t){switch(e){case"keyup":return Up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function Bp(e,t){switch(e){case"compositionend":return Nd(t);case"keypress":return t.which!==32?null:(mu=!0,pu);case"textInput":return e=t.data,e===pu&&mu?null:e;default:return null}}function Hp(e,t){if(zn)return e==="compositionend"||!ua&&Sd(e,t)?(e=jd(),nl=ia=qt=null,zn=!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 kd&&t.locale!=="ko"?null:t.data;default:return null}}var Wp={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 gu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wp[e.type]:t==="textarea"}function Cd(e,t,n,r){nd(r),t=wl(t,"onChange"),0<t.length&&(n=new oa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Br=null,ts=null;function Vp(e){Dd(e,0)}function Ql(e){var t=Qn(e);if(Gc(t))return e}function qp(e,t){if(e==="change")return t}var Ed=!1;if(Et){var mi;if(Et){var gi="oninput"in document;if(!gi){var yu=document.createElement("div");yu.setAttribute("oninput","return;"),gi=typeof yu.oninput=="function"}mi=gi}else mi=!1;Ed=mi&&(!document.documentMode||9<document.documentMode)}function vu(){Br&&(Br.detachEvent("onpropertychange",bd),ts=Br=null)}function bd(e){if(e.propertyName==="value"&&Ql(ts)){var t=[];Cd(t,ts,e,ta(e)),id(Vp,t)}}function Kp(e,t,n){e==="focusin"?(vu(),Br=t,ts=n,Br.attachEvent("onpropertychange",bd)):e==="focusout"&&vu()}function Gp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ql(ts)}function Jp(e,t){if(e==="click")return Ql(t)}function Yp(e,t){if(e==="input"||e==="change")return Ql(t)}function Xp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lt=typeof Object.is=="function"?Object.is:Xp;function ns(e,t){if(lt(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 s=n[r];if(!Fi.call(t,s)||!lt(e[s],t[s]))return!1}return!0}function xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wu(e,t){var n=xu(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=xu(n)}}function Pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rd(){for(var e=window,t=hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hl(e.document)}return t}function ca(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 Zp(e){var t=Rd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pd(n.ownerDocument.documentElement,n)){if(r!==null&&ca(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 s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=wu(n,l);var i=wu(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 em=Et&&"documentMode"in document&&11>=document.documentMode,An=null,eo=null,Hr=null,to=!1;function ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;to||An==null||An!==hl(r)||(r=An,"selectionStart"in r&&ca(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}),Hr&&ns(Hr,r)||(Hr=r,r=wl(eo,"onSelect"),0<r.length&&(t=new oa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=An)))}function Qs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Un={animationend:Qs("Animation","AnimationEnd"),animationiteration:Qs("Animation","AnimationIteration"),animationstart:Qs("Animation","AnimationStart"),transitionend:Qs("Transition","TransitionEnd")},yi={},Ld={};Et&&(Ld=document.createElement("div").style,"AnimationEvent"in window||(delete Un.animationend.animation,delete Un.animationiteration.animation,delete Un.animationstart.animation),"TransitionEvent"in window||delete Un.transitionend.transition);function Bl(e){if(yi[e])return yi[e];if(!Un[e])return e;var t=Un[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ld)return yi[e]=t[n];return e}var Td=Bl("animationend"),_d=Bl("animationiteration"),Od=Bl("animationstart"),Md=Bl("transitionend"),Fd=new Map,ku="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 on(e,t){Fd.set(e,t),Mn(t,[e])}for(var vi=0;vi<ku.length;vi++){var xi=ku[vi],tm=xi.toLowerCase(),nm=xi[0].toUpperCase()+xi.slice(1);on(tm,"on"+nm)}on(Td,"onAnimationEnd");on(_d,"onAnimationIteration");on(Od,"onAnimationStart");on("dblclick","onDoubleClick");on("focusin","onFocus");on("focusout","onBlur");on(Md,"onTransitionEnd");pr("onMouseEnter",["mouseout","mouseover"]);pr("onMouseLeave",["mouseout","mouseover"]);pr("onPointerEnter",["pointerout","pointerover"]);pr("onPointerLeave",["pointerout","pointerover"]);Mn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="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(" "),rm=new Set("cancel close invalid load scroll toggle".split(" ").concat($r));function Su(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,tp(r,t,void 0,e),e.currentTarget=null}function Dd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==l&&s.isPropagationStopped())break e;Su(s,a,c),l=u}else for(i=0;i<r.length;i++){if(a=r[i],u=a.instance,c=a.currentTarget,a=a.listener,u!==l&&s.isPropagationStopped())break e;Su(s,a,c),l=u}}}if(ml)throw e=Ji,ml=!1,Ji=null,e}function K(e,t){var n=t[io];n===void 0&&(n=t[io]=new Set);var r=e+"__bubble";n.has(r)||(Id(t,e,2,!1),n.add(r))}function wi(e,t,n){var r=0;t&&(r|=4),Id(n,e,r,t)}var Bs="_reactListening"+Math.random().toString(36).slice(2);function rs(e){if(!e[Bs]){e[Bs]=!0,Hc.forEach(function(n){n!=="selectionchange"&&(rm.has(n)||wi(n,!1,e),wi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bs]||(t[Bs]=!0,wi("selectionchange",!1,t))}}function Id(e,t,n,r){switch(wd(t)){case 1:var s=yp;break;case 4:s=vp;break;default:s=la}n=s.bind(null,t,n,e),s=void 0,!Gi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ji(e,t,n,r,s){var l=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;i=i.return}for(;a!==null;){if(i=mn(a),i===null)return;if(u=i.tag,u===5||u===6){r=l=i;continue e}a=a.parentNode}}r=r.return}id(function(){var c=l,f=ta(n),p=[];e:{var g=Fd.get(e);if(g!==void 0){var x=oa,w=e;switch(e){case"keypress":if(rl(n)===0)break e;case"keydown":case"keyup":x=Op;break;case"focusin":w="focus",x=pi;break;case"focusout":w="blur",x=pi;break;case"beforeblur":case"afterblur":x=pi;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=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=jp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Dp;break;case Td:case _d:case Od:x=Np;break;case Md:x=$p;break;case"scroll":x=xp;break;case"wheel":x=Ap;break;case"copy":case"cut":case"paste":x=Ep;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=hu}var k=(t&4)!==0,S=!k&&e==="scroll",m=k?g!==null?g+"Capture":null:g;k=[];for(var h=c,d;h!==null;){d=h;var v=d.stateNode;if(d.tag===5&&v!==null&&(d=v,m!==null&&(v=Yr(h,m),v!=null&&k.push(ss(h,v,d)))),S)break;h=h.return}0<k.length&&(g=new x(g,w,null,n,f),p.push({event:g,listeners:k}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",g&&n!==qi&&(w=n.relatedTarget||n.fromElement)&&(mn(w)||w[bt]))break e;if((x||g)&&(g=f.window===f?f:(g=f.ownerDocument)?g.defaultView||g.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=c,w=w?mn(w):null,w!==null&&(S=Fn(w),w!==S||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=c),x!==w)){if(k=du,v="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(k=hu,v="onPointerLeave",m="onPointerEnter",h="pointer"),S=x==null?g:Qn(x),d=w==null?g:Qn(w),g=new k(v,h+"leave",x,n,f),g.target=S,g.relatedTarget=d,v=null,mn(f)===c&&(k=new k(m,h+"enter",w,n,f),k.target=d,k.relatedTarget=S,v=k),S=v,x&&w)t:{for(k=x,m=w,h=0,d=k;d;d=Dn(d))h++;for(d=0,v=m;v;v=Dn(v))d++;for(;0<h-d;)k=Dn(k),h--;for(;0<d-h;)m=Dn(m),d--;for(;h--;){if(k===m||m!==null&&k===m.alternate)break t;k=Dn(k),m=Dn(m)}k=null}else k=null;x!==null&&Nu(p,g,x,k,!1),w!==null&&S!==null&&Nu(p,S,w,k,!0)}}e:{if(g=c?Qn(c):window,x=g.nodeName&&g.nodeName.toLowerCase(),x==="select"||x==="input"&&g.type==="file")var N=qp;else if(gu(g))if(Ed)N=Yp;else{N=Gp;var E=Kp}else(x=g.nodeName)&&x.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(N=Jp);if(N&&(N=N(e,c))){Cd(p,N,n,f);break e}E&&E(e,g,c),e==="focusout"&&(E=g._wrapperState)&&E.controlled&&g.type==="number"&&Qi(g,"number",g.value)}switch(E=c?Qn(c):window,e){case"focusin":(gu(E)||E.contentEditable==="true")&&(An=E,eo=c,Hr=null);break;case"focusout":Hr=eo=An=null;break;case"mousedown":to=!0;break;case"contextmenu":case"mouseup":case"dragend":to=!1,ju(p,n,f);break;case"selectionchange":if(em)break;case"keydown":case"keyup":ju(p,n,f)}var P;if(ua)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Sd(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(kd&&n.locale!=="ko"&&(zn||b!=="onCompositionStart"?b==="onCompositionEnd"&&zn&&(P=jd()):(qt=f,ia="value"in qt?qt.value:qt.textContent,zn=!0)),E=wl(c,b),0<E.length&&(b=new fu(b,e,null,n,f),p.push({event:b,listeners:E}),P?b.data=P:(P=Nd(n),P!==null&&(b.data=P)))),(P=Qp?Bp(e,n):Hp(e,n))&&(c=wl(c,"onBeforeInput"),0<c.length&&(f=new fu("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:c}),f.data=P))}Dd(p,t)})}function ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=Yr(e,n),l!=null&&r.unshift(ss(e,l,s)),l=Yr(e,t),l!=null&&r.push(ss(e,l,s))),e=e.return}return r}function Dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nu(e,t,n,r,s){for(var l=t._reactName,i=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,s?(u=Yr(n,l),u!=null&&i.unshift(ss(n,u,a))):s||(u=Yr(n,l),u!=null&&i.push(ss(n,u,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var sm=/\r\n?/g,lm=/\u0000|\uFFFD/g;function Cu(e){return(typeof e=="string"?e:""+e).replace(sm,`
|
|
38
|
+
`).replace(lm,"")}function Hs(e,t,n){if(t=Cu(t),Cu(e)!==t&&n)throw Error(C(425))}function jl(){}var no=null,ro=null;function so(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 lo=typeof setTimeout=="function"?setTimeout:void 0,im=typeof clearTimeout=="function"?clearTimeout:void 0,Eu=typeof Promise=="function"?Promise:void 0,om=typeof queueMicrotask=="function"?queueMicrotask:typeof Eu<"u"?function(e){return Eu.resolve(null).then(e).catch(am)}:lo;function am(e){setTimeout(function(){throw e})}function ki(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),es(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);es(t)}function Xt(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 bu(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 Sr=Math.random().toString(36).slice(2),ft="__reactFiber$"+Sr,ls="__reactProps$"+Sr,bt="__reactContainer$"+Sr,io="__reactEvents$"+Sr,um="__reactListeners$"+Sr,cm="__reactHandles$"+Sr;function mn(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bu(e);e!==null;){if(n=e[ft])return n;e=bu(e)}return t}e=n,n=e.parentNode}return null}function ks(e){return e=e[ft]||e[bt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Hl(e){return e[ls]||null}var oo=[],Bn=-1;function an(e){return{current:e}}function G(e){0>Bn||(e.current=oo[Bn],oo[Bn]=null,Bn--)}function q(e,t){Bn++,oo[Bn]=e.current,e.current=t}var ln={},we=an(ln),_e=an(!1),Pn=ln;function mr(e,t){var n=e.type.contextTypes;if(!n)return ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in n)s[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Oe(e){return e=e.childContextTypes,e!=null}function kl(){G(_e),G(we)}function Pu(e,t,n){if(we.current!==ln)throw Error(C(168));q(we,t),q(_e,n)}function $d(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(C(108,Kh(e)||"Unknown",s));return te({},n,r)}function Sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,Pn=we.current,q(we,e),q(_e,_e.current),!0}function Ru(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=$d(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,G(_e),G(we),q(we,e)):G(_e),q(_e,n)}var xt=null,Wl=!1,Si=!1;function zd(e){xt===null?xt=[e]:xt.push(e)}function dm(e){Wl=!0,zd(e)}function un(){if(!Si&&xt!==null){Si=!0;var e=0,t=W;try{var n=xt;for(W=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}xt=null,Wl=!1}catch(s){throw xt!==null&&(xt=xt.slice(e+1)),cd(na,un),s}finally{W=t,Si=!1}}return null}var Hn=[],Wn=0,Nl=null,Cl=0,We=[],Ve=0,Rn=null,kt=1,St="";function hn(e,t){Hn[Wn++]=Cl,Hn[Wn++]=Nl,Nl=e,Cl=t}function Ad(e,t,n){We[Ve++]=kt,We[Ve++]=St,We[Ve++]=Rn,Rn=e;var r=kt;e=St;var s=32-rt(r)-1;r&=~(1<<s),n+=1;var l=32-rt(t)+s;if(30<l){var i=s-s%5;l=(r&(1<<i)-1).toString(32),r>>=i,s-=i,kt=1<<32-rt(t)+s|n<<s|r,St=l+e}else kt=1<<l|n<<s|r,St=e}function da(e){e.return!==null&&(hn(e,1),Ad(e,1,0))}function fa(e){for(;e===Nl;)Nl=Hn[--Wn],Hn[Wn]=null,Cl=Hn[--Wn],Hn[Wn]=null;for(;e===Rn;)Rn=We[--Ve],We[Ve]=null,St=We[--Ve],We[Ve]=null,kt=We[--Ve],We[Ve]=null}var Ie=null,De=null,Y=!1,nt=null;function Ud(e,t){var n=qe(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 Lu(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,Ie=e,De=Xt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ie=e,De=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Rn!==null?{id:kt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ie=e,De=null,!0):!1;default:return!1}}function ao(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uo(e){if(Y){var t=De;if(t){var n=t;if(!Lu(e,t)){if(ao(e))throw Error(C(418));t=Xt(n.nextSibling);var r=Ie;t&&Lu(e,t)?Ud(r,n):(e.flags=e.flags&-4097|2,Y=!1,Ie=e)}}else{if(ao(e))throw Error(C(418));e.flags=e.flags&-4097|2,Y=!1,Ie=e}}}function Tu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ie=e}function Ws(e){if(e!==Ie)return!1;if(!Y)return Tu(e),Y=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!so(e.type,e.memoizedProps)),t&&(t=De)){if(ao(e))throw Qd(),Error(C(418));for(;t;)Ud(e,t),t=Xt(t.nextSibling)}if(Tu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){De=Xt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}De=null}}else De=Ie?Xt(e.stateNode.nextSibling):null;return!0}function Qd(){for(var e=De;e;)e=Xt(e.nextSibling)}function gr(){De=Ie=null,Y=!1}function ha(e){nt===null?nt=[e]:nt.push(e)}var fm=Tt.ReactCurrentBatchConfig;function Tr(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(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var s=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(i){var a=s.refs;i===null?delete a[l]:a[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function Vs(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _u(e){var t=e._init;return t(e._payload)}function Bd(e){function t(m,h){if(e){var d=m.deletions;d===null?(m.deletions=[h],m.flags|=16):d.push(h)}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function s(m,h){return m=nn(m,h),m.index=0,m.sibling=null,m}function l(m,h,d){return m.index=d,e?(d=m.alternate,d!==null?(d=d.index,d<h?(m.flags|=2,h):d):(m.flags|=2,h)):(m.flags|=1048576,h)}function i(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,h,d,v){return h===null||h.tag!==6?(h=Li(d,m.mode,v),h.return=m,h):(h=s(h,d),h.return=m,h)}function u(m,h,d,v){var N=d.type;return N===$n?f(m,h,d.props.children,v,d.key):h!==null&&(h.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Dt&&_u(N)===h.type)?(v=s(h,d.props),v.ref=Tr(m,h,d),v.return=m,v):(v=cl(d.type,d.key,d.props,null,m.mode,v),v.ref=Tr(m,h,d),v.return=m,v)}function c(m,h,d,v){return h===null||h.tag!==4||h.stateNode.containerInfo!==d.containerInfo||h.stateNode.implementation!==d.implementation?(h=Ti(d,m.mode,v),h.return=m,h):(h=s(h,d.children||[]),h.return=m,h)}function f(m,h,d,v,N){return h===null||h.tag!==7?(h=bn(d,m.mode,v,N),h.return=m,h):(h=s(h,d),h.return=m,h)}function p(m,h,d){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Li(""+h,m.mode,d),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Fs:return d=cl(h.type,h.key,h.props,null,m.mode,d),d.ref=Tr(m,null,h),d.return=m,d;case In:return h=Ti(h,m.mode,d),h.return=m,h;case Dt:var v=h._init;return p(m,v(h._payload),d)}if(Dr(h)||Er(h))return h=bn(h,m.mode,d,null),h.return=m,h;Vs(m,h)}return null}function g(m,h,d,v){var N=h!==null?h.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return N!==null?null:a(m,h,""+d,v);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Fs:return d.key===N?u(m,h,d,v):null;case In:return d.key===N?c(m,h,d,v):null;case Dt:return N=d._init,g(m,h,N(d._payload),v)}if(Dr(d)||Er(d))return N!==null?null:f(m,h,d,v,null);Vs(m,d)}return null}function x(m,h,d,v,N){if(typeof v=="string"&&v!==""||typeof v=="number")return m=m.get(d)||null,a(h,m,""+v,N);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Fs:return m=m.get(v.key===null?d:v.key)||null,u(h,m,v,N);case In:return m=m.get(v.key===null?d:v.key)||null,c(h,m,v,N);case Dt:var E=v._init;return x(m,h,d,E(v._payload),N)}if(Dr(v)||Er(v))return m=m.get(d)||null,f(h,m,v,N,null);Vs(h,v)}return null}function w(m,h,d,v){for(var N=null,E=null,P=h,b=h=0,O=null;P!==null&&b<d.length;b++){P.index>b?(O=P,P=null):O=P.sibling;var L=g(m,P,d[b],v);if(L===null){P===null&&(P=O);break}e&&P&&L.alternate===null&&t(m,P),h=l(L,h,b),E===null?N=L:E.sibling=L,E=L,P=O}if(b===d.length)return n(m,P),Y&&hn(m,b),N;if(P===null){for(;b<d.length;b++)P=p(m,d[b],v),P!==null&&(h=l(P,h,b),E===null?N=P:E.sibling=P,E=P);return Y&&hn(m,b),N}for(P=r(m,P);b<d.length;b++)O=x(P,m,b,d[b],v),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?b:O.key),h=l(O,h,b),E===null?N=O:E.sibling=O,E=O);return e&&P.forEach(function(V){return t(m,V)}),Y&&hn(m,b),N}function k(m,h,d,v){var N=Er(d);if(typeof N!="function")throw Error(C(150));if(d=N.call(d),d==null)throw Error(C(151));for(var E=N=null,P=h,b=h=0,O=null,L=d.next();P!==null&&!L.done;b++,L=d.next()){P.index>b?(O=P,P=null):O=P.sibling;var V=g(m,P,L.value,v);if(V===null){P===null&&(P=O);break}e&&P&&V.alternate===null&&t(m,P),h=l(V,h,b),E===null?N=V:E.sibling=V,E=V,P=O}if(L.done)return n(m,P),Y&&hn(m,b),N;if(P===null){for(;!L.done;b++,L=d.next())L=p(m,L.value,v),L!==null&&(h=l(L,h,b),E===null?N=L:E.sibling=L,E=L);return Y&&hn(m,b),N}for(P=r(m,P);!L.done;b++,L=d.next())L=x(P,m,b,L.value,v),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?b:L.key),h=l(L,h,b),E===null?N=L:E.sibling=L,E=L);return e&&P.forEach(function(oe){return t(m,oe)}),Y&&hn(m,b),N}function S(m,h,d,v){if(typeof d=="object"&&d!==null&&d.type===$n&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case Fs:e:{for(var N=d.key,E=h;E!==null;){if(E.key===N){if(N=d.type,N===$n){if(E.tag===7){n(m,E.sibling),h=s(E,d.props.children),h.return=m,m=h;break e}}else if(E.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Dt&&_u(N)===E.type){n(m,E.sibling),h=s(E,d.props),h.ref=Tr(m,E,d),h.return=m,m=h;break e}n(m,E);break}else t(m,E);E=E.sibling}d.type===$n?(h=bn(d.props.children,m.mode,v,d.key),h.return=m,m=h):(v=cl(d.type,d.key,d.props,null,m.mode,v),v.ref=Tr(m,h,d),v.return=m,m=v)}return i(m);case In:e:{for(E=d.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===d.containerInfo&&h.stateNode.implementation===d.implementation){n(m,h.sibling),h=s(h,d.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Ti(d,m.mode,v),h.return=m,m=h}return i(m);case Dt:return E=d._init,S(m,h,E(d._payload),v)}if(Dr(d))return w(m,h,d,v);if(Er(d))return k(m,h,d,v);Vs(m,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,h!==null&&h.tag===6?(n(m,h.sibling),h=s(h,d),h.return=m,m=h):(n(m,h),h=Li(d,m.mode,v),h.return=m,m=h),i(m)):n(m,h)}return S}var yr=Bd(!0),Hd=Bd(!1),El=an(null),bl=null,Vn=null,pa=null;function ma(){pa=Vn=bl=null}function ga(e){var t=El.current;G(El),e._currentValue=t}function co(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 Zn(e,t){bl=e,pa=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Te=!0),e.firstContext=null)}function Ge(e){var t=e._currentValue;if(pa!==e)if(e={context:e,memoizedValue:t,next:null},Vn===null){if(bl===null)throw Error(C(308));Vn=e,bl.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}var gn=null;function ya(e){gn===null?gn=[e]:gn.push(e)}function Wd(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ya(t)):(n.next=s.next,s.next=n),t.interleaved=n,Pt(e,r)}function Pt(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 It=!1;function va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vd(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 Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(B&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Pt(e,n)}return s=r.interleaved,s===null?(t.next=t,ya(r)):(t.next=s.next,s.next=t),r.interleaved=t,Pt(e,n)}function sl(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,ra(e,n)}}function Ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?s=l=t:l=l.next=t}else s=l=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:l,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 Pl(e,t,n,r){var s=e.updateQueue;It=!1;var l=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,c=u.next;u.next=null,i===null?l=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==i&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=u))}if(l!==null){var p=s.baseState;i=0,f=c=u=null,a=l;do{var g=a.lane,x=a.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(g=t,x=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){p=w.call(x,p,g);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,g=typeof w=="function"?w.call(x,p,g):w,g==null)break e;p=te({},p,g);break e;case 2:It=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[a]:g.push(a))}else x={eventTime:x,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=x,u=p):f=f.next=x,i|=g;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;g=a,a=g.next,g.next=null,s.lastBaseUpdate=g,s.shared.pending=null}}while(!0);if(f===null&&(u=p),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=f,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);Tn|=i,e.lanes=i,e.memoizedState=p}}function Mu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(C(191,s));s.call(r)}}}var Ss={},pt=an(Ss),is=an(Ss),os=an(Ss);function yn(e){if(e===Ss)throw Error(C(174));return e}function xa(e,t){switch(q(os,t),q(is,e),q(pt,Ss),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hi(t,e)}G(pt),q(pt,t)}function vr(){G(pt),G(is),G(os)}function qd(e){yn(os.current);var t=yn(pt.current),n=Hi(t,e.type);t!==n&&(q(is,e),q(pt,n))}function wa(e){is.current===e&&(G(pt),G(is))}var X=an(0);function Rl(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)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ni=[];function ja(){for(var e=0;e<Ni.length;e++)Ni[e]._workInProgressVersionPrimary=null;Ni.length=0}var ll=Tt.ReactCurrentDispatcher,Ci=Tt.ReactCurrentBatchConfig,Ln=0,Z=null,ae=null,de=null,Ll=!1,Wr=!1,as=0,hm=0;function ye(){throw Error(C(321))}function ka(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lt(e[n],t[n]))return!1;return!0}function Sa(e,t,n,r,s,l){if(Ln=l,Z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ll.current=e===null||e.memoizedState===null?ym:vm,e=n(r,s),Wr){l=0;do{if(Wr=!1,as=0,25<=l)throw Error(C(301));l+=1,de=ae=null,t.updateQueue=null,ll.current=xm,e=n(r,s)}while(Wr)}if(ll.current=Tl,t=ae!==null&&ae.next!==null,Ln=0,de=ae=Z=null,Ll=!1,t)throw Error(C(300));return e}function Na(){var e=as!==0;return as=0,e}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?Z.memoizedState=de=e:de=de.next=e,de}function Je(){if(ae===null){var e=Z.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=de===null?Z.memoizedState:de.next;if(t!==null)de=t,ae=e;else{if(e===null)throw Error(C(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},de===null?Z.memoizedState=de=e:de=de.next=e}return de}function us(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=Je(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=ae,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var i=s.next;s.next=l.next,l.next=i}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var a=i=null,u=null,c=l;do{var f=c.lane;if((Ln&f)===f)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=p,i=r):u=u.next=p,Z.lanes|=f,Tn|=f}c=c.next}while(c!==null&&c!==l);u===null?i=r:u.next=a,lt(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,Z.lanes|=l,Tn|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bi(e){var t=Je(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,l=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do l=e(l,i.action),i=i.next;while(i!==s);lt(l,t.memoizedState)||(Te=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Kd(){}function Gd(e,t){var n=Z,r=Je(),s=t(),l=!lt(r.memoizedState,s);if(l&&(r.memoizedState=s,Te=!0),r=r.queue,Ca(Xd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||de!==null&&de.memoizedState.tag&1){if(n.flags|=2048,cs(9,Yd.bind(null,n,r,s,t),void 0,null),fe===null)throw Error(C(349));(Ln&30)!==0||Jd(n,t,s)}return s}function Jd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yd(e,t,n,r){t.value=n,t.getSnapshot=r,Zd(t)&&ef(e)}function Xd(e,t,n){return n(function(){Zd(t)&&ef(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lt(e,n)}catch{return!0}}function ef(e){var t=Pt(e,1);t!==null&&st(t,e,1,-1)}function Fu(e){var t=at();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t.queue=e,e=e.dispatch=gm.bind(null,Z,e),[t.memoizedState,e]}function cs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.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 tf(){return Je().memoizedState}function il(e,t,n,r){var s=at();Z.flags|=e,s.memoizedState=cs(1|t,n,void 0,r===void 0?null:r)}function Vl(e,t,n,r){var s=Je();r=r===void 0?null:r;var l=void 0;if(ae!==null){var i=ae.memoizedState;if(l=i.destroy,r!==null&&ka(r,i.deps)){s.memoizedState=cs(t,n,l,r);return}}Z.flags|=e,s.memoizedState=cs(1|t,n,l,r)}function Du(e,t){return il(8390656,8,e,t)}function Ca(e,t){return Vl(2048,8,e,t)}function nf(e,t){return Vl(4,2,e,t)}function rf(e,t){return Vl(4,4,e,t)}function sf(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 lf(e,t,n){return n=n!=null?n.concat([e]):null,Vl(4,4,sf.bind(null,t,e),n)}function Ea(){}function of(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function af(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function uf(e,t,n){return(Ln&21)===0?(e.baseState&&(e.baseState=!1,Te=!0),e.memoizedState=n):(lt(n,t)||(n=hd(),Z.lanes|=n,Tn|=n,e.baseState=!0),t)}function pm(e,t){var n=W;W=n!==0&&4>n?n:4,e(!0);var r=Ci.transition;Ci.transition={};try{e(!1),t()}finally{W=n,Ci.transition=r}}function cf(){return Je().memoizedState}function mm(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},df(e))ff(t,n);else if(n=Wd(e,t,n,r),n!==null){var s=Ne();st(n,e,r,s),hf(n,t,r)}}function gm(e,t,n){var r=tn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(df(e))ff(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,a=l(i,n);if(s.hasEagerState=!0,s.eagerState=a,lt(a,i)){var u=t.interleaved;u===null?(s.next=s,ya(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Wd(e,t,s,r),n!==null&&(s=Ne(),st(n,e,r,s),hf(n,t,r))}}function df(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function ff(e,t){Wr=Ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hf(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ra(e,n)}}var Tl={readContext:Ge,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},ym={readContext:Ge,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,il(4194308,4,sf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return il(4194308,4,e,t)},useInsertionEffect:function(e,t){return il(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();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=mm.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:Fu,useDebugValue:Ea,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=Fu(!1),t=e[0];return e=pm.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Z,s=at();if(Y){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),fe===null)throw Error(C(349));(Ln&30)!==0||Jd(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Du(Xd.bind(null,r,l,e),[e]),r.flags|=2048,cs(9,Yd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=at(),t=fe.identifierPrefix;if(Y){var n=St,r=kt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vm={readContext:Ge,useCallback:of,useContext:Ge,useEffect:Ca,useImperativeHandle:lf,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:Ei,useRef:tf,useState:function(){return Ei(us)},useDebugValue:Ea,useDeferredValue:function(e){var t=Je();return uf(t,ae.memoizedState,e)},useTransition:function(){var e=Ei(us)[0],t=Je().memoizedState;return[e,t]},useMutableSource:Kd,useSyncExternalStore:Gd,useId:cf,unstable_isNewReconciler:!1},xm={readContext:Ge,useCallback:of,useContext:Ge,useEffect:Ca,useImperativeHandle:lf,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:bi,useRef:tf,useState:function(){return bi(us)},useDebugValue:Ea,useDeferredValue:function(e){var t=Je();return ae===null?t.memoizedState=e:uf(t,ae.memoizedState,e)},useTransition:function(){var e=bi(us)[0],t=Je().memoizedState;return[e,t]},useMutableSource:Kd,useSyncExternalStore:Gd,useId:cf,unstable_isNewReconciler:!1};function Xe(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function fo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ql={isMounted:function(e){return(e=e._reactInternals)?Fn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=tn(e),l=Nt(r,s);l.payload=t,n!=null&&(l.callback=n),t=Zt(e,l,s),t!==null&&(st(t,e,s,r),sl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=tn(e),l=Nt(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Zt(e,l,s),t!==null&&(st(t,e,s,r),sl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ne(),r=tn(e),s=Nt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Zt(e,s,r),t!==null&&(st(t,e,r,n),sl(t,e,r))}};function Iu(e,t,n,r,s,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!ns(n,r)||!ns(s,l):!0}function pf(e,t,n){var r=!1,s=ln,l=t.contextType;return typeof l=="object"&&l!==null?l=Ge(l):(s=Oe(t)?Pn:we.current,r=t.contextTypes,l=(r=r!=null)?mr(e,s):ln),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ql,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function $u(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&&ql.enqueueReplaceState(t,t.state,null)}function ho(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},va(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=Ge(l):(l=Oe(t)?Pn:we.current,s.context=mr(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(fo(e,t,l,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ql.enqueueReplaceState(s,s.state,null),Pl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function xr(e,t){try{var n="",r=t;do n+=qh(r),r=r.return;while(r);var s=n}catch(l){s=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function Pi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function po(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wm=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,n){n=Nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ol||(Ol=!0,No=r),po(e,t)},n}function gf(e,t,n){n=Nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){po(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){po(e,t),typeof r!="function"&&(en===null?en=new Set([this]):en.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wm;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Mm.bind(null,e,t,n),t.then(e,e))}function Au(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 Uu(e,t,n,r,s){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nt(-1,1),t.tag=2,Zt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=s,e)}var jm=Tt.ReactCurrentOwner,Te=!1;function Se(e,t,n,r){t.child=e===null?Hd(t,null,n,r):yr(t,e.child,n,r)}function Qu(e,t,n,r,s){n=n.render;var l=t.ref;return Zn(t,s),r=Sa(e,t,n,r,l,s),n=Na(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(Y&&n&&da(t),t.flags|=1,Se(e,t,r,s),t.child)}function Bu(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Ma(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,yf(e,t,l,r,s)):(e=cl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,(e.lanes&s)===0){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:ns,n(i,r)&&e.ref===t.ref)return Rt(e,t,s)}return t.flags|=1,e=nn(l,r),e.ref=t.ref,e.return=t,t.child=e}function yf(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(ns(l,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=l,(e.lanes&s)!==0)(e.flags&131072)!==0&&(Te=!0);else return t.lanes=e.lanes,Rt(e,t,s)}return mo(e,t,n,r,s)}function vf(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(Kn,Fe),Fe|=n;else{if((n&1073741824)===0)return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(Kn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,q(Kn,Fe),Fe|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,q(Kn,Fe),Fe|=r;return Se(e,t,s,n),t.child}function xf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mo(e,t,n,r,s){var l=Oe(n)?Pn:we.current;return l=mr(t,l),Zn(t,s),n=Sa(e,t,n,r,l,s),r=Na(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(Y&&r&&da(t),t.flags|=1,Se(e,t,n,s),t.child)}function Hu(e,t,n,r,s){if(Oe(n)){var l=!0;Sl(t)}else l=!1;if(Zn(t,s),t.stateNode===null)ol(e,t),pf(t,n,r),ho(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var u=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ge(c):(c=Oe(n)?Pn:we.current,c=mr(t,c));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||u!==c)&&$u(t,i,r,c),It=!1;var g=t.memoizedState;i.state=g,Pl(t,r,i,s),u=t.memoizedState,a!==r||g!==u||_e.current||It?(typeof f=="function"&&(fo(t,n,f,r),u=t.memoizedState),(a=It||Iu(t,n,a,r,g,u,c))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Vd(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Xe(t.type,a),i.props=c,p=t.pendingProps,g=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ge(u):(u=Oe(n)?Pn:we.current,u=mr(t,u));var x=n.getDerivedStateFromProps;(f=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==p||g!==u)&&$u(t,i,r,u),It=!1,g=t.memoizedState,i.state=g,Pl(t,r,i,s);var w=t.memoizedState;a!==p||g!==w||_e.current||It?(typeof x=="function"&&(fo(t,n,x,r),w=t.memoizedState),(c=It||Iu(t,n,c,r,g,w,u)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=u,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return go(e,t,n,r,l,s)}function go(e,t,n,r,s,l){xf(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&Ru(t,n,!1),Rt(e,t,l);r=t.stateNode,jm.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=yr(t,e.child,null,l),t.child=yr(t,null,a,l)):Se(e,t,a,l),t.memoizedState=r.state,s&&Ru(t,n,!0),t.child}function wf(e){var t=e.stateNode;t.pendingContext?Pu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pu(e,t.context,!1),xa(e,t.containerInfo)}function Wu(e,t,n,r,s){return gr(),ha(s),t.flags|=256,Se(e,t,n,r),t.child}var yo={dehydrated:null,treeContext:null,retryLane:0};function vo(e){return{baseLanes:e,cachePool:null,transitions:null}}function jf(e,t,n){var r=t.pendingProps,s=X.current,l=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),q(X,s&1),e===null)return uo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},(r&1)===0&&l!==null?(l.childLanes=0,l.pendingProps=i):l=Jl(i,r,0,null),e=bn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=vo(n),t.memoizedState=yo,e):ba(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return km(e,t,i,r,a,s,n);if(l){l=r.fallback,i=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return(i&1)===0&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=nn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=nn(a,l):(l=bn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?vo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=yo,r}return l=e.child,e=l.sibling,r=nn(l,{mode:"visible",children:r.children}),(t.mode&1)===0&&(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 ba(e,t){return t=Jl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qs(e,t,n,r){return r!==null&&ha(r),yr(t,e.child,null,n),e=ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function km(e,t,n,r,s,l,i){if(n)return t.flags&256?(t.flags&=-257,r=Pi(Error(C(422))),qs(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=Jl({mode:"visible",children:r.children},s,0,null),l=bn(l,s,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,(t.mode&1)!==0&&yr(t,e.child,null,i),t.child.memoizedState=vo(i),t.memoizedState=yo,l);if((t.mode&1)===0)return qs(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(C(419)),r=Pi(l,r,void 0),qs(e,t,i,r)}if(a=(i&e.childLanes)!==0,Te||a){if(r=fe,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=(s&(r.suspendedLanes|i))!==0?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,Pt(e,s),st(r,e,s,-1))}return Oa(),r=Pi(Error(C(421))),qs(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Fm.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,De=Xt(s.nextSibling),Ie=t,Y=!0,nt=null,e!==null&&(We[Ve++]=kt,We[Ve++]=St,We[Ve++]=Rn,kt=e.id,St=e.overflow,Rn=t),t=ba(t,r.children),t.flags|=4096,t)}function Vu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),co(e.return,t,n)}function Ri(e,t,n,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=s)}function kf(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(Se(e,t,r.children,n),r=X.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vu(e,n,t);else if(e.tag===19)Vu(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(q(X,r),(t.mode&1)===0)t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Rl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ri(t,!1,s,n,l);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Rl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ri(t,!0,n,null,l);break;case"together":Ri(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ol(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sm(e,t,n){switch(t.tag){case 3:wf(t),gr();break;case 5:qd(t);break;case 1:Oe(t.type)&&Sl(t);break;case 4:xa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;q(El,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(q(X,X.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?jf(e,t,n):(q(X,X.current&1),e=Rt(e,t,n),e!==null?e.sibling:null);q(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return kf(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),q(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,vf(e,t,n)}return Rt(e,t,n)}var Sf,xo,Nf,Cf;Sf=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}};xo=function(){};Nf=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,yn(pt.current);var l=null;switch(n){case"input":s=Ai(e,s),r=Ai(e,r),l=[];break;case"select":s=te({},s,{value:void 0}),r=te({},r,{value:void 0}),l=[];break;case"textarea":s=Bi(e,s),r=Bi(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}Wi(n,r);var i;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Gr.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(l||(l=[]),l.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Gr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&K("scroll",e),l||a===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};Cf=function(e,t,n,r){n!==r&&(t.flags|=4)};function _r(e,t){if(!Y)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 ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nm(e,t,n){var r=t.pendingProps;switch(fa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Oe(t.type)&&kl(),ve(t),null;case 3:return r=t.stateNode,vr(),G(_e),G(we),ja(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ws(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nt!==null&&(bo(nt),nt=null))),xo(e,t),ve(t),null;case 5:wa(t);var s=yn(os.current);if(n=t.type,e!==null&&t.stateNode!=null)Nf(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ve(t),null}if(e=yn(pt.current),Ws(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ft]=t,r[ls]=l,e=(t.mode&1)!==0,n){case"dialog":K("cancel",r),K("close",r);break;case"iframe":case"object":case"embed":K("load",r);break;case"video":case"audio":for(s=0;s<$r.length;s++)K($r[s],r);break;case"source":K("error",r);break;case"img":case"image":case"link":K("error",r),K("load",r);break;case"details":K("toggle",r);break;case"input":tu(r,l),K("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},K("invalid",r);break;case"textarea":ru(r,l),K("invalid",r)}Wi(n,l),s=null;for(var i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&Hs(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Hs(r.textContent,a,e),s=["children",""+a]):Gr.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&K("scroll",r)}switch(n){case"input":Ds(r),nu(r,l,!0);break;case"textarea":Ds(r),su(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=jl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ft]=t,e[ls]=r,Sf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Vi(n,r),n){case"dialog":K("cancel",e),K("close",e),s=r;break;case"iframe":case"object":case"embed":K("load",e),s=r;break;case"video":case"audio":for(s=0;s<$r.length;s++)K($r[s],e);s=r;break;case"source":K("error",e),s=r;break;case"img":case"image":case"link":K("error",e),K("load",e),s=r;break;case"details":K("toggle",e),s=r;break;case"input":tu(e,r),s=Ai(e,r),K("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=te({},r,{value:void 0}),K("invalid",e);break;case"textarea":ru(e,r),s=Bi(e,r),K("invalid",e);break;default:s=r}Wi(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?td(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Zc(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Jr(e,u):typeof u=="number"&&Jr(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gr.hasOwnProperty(l)?u!=null&&l==="onScroll"&&K("scroll",e):u!=null&&Yo(e,l,u,i))}switch(n){case"input":Ds(e),nu(e,r,!1);break;case"textarea":Ds(e),su(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Gn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=jl)}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 ve(t),null;case 6:if(e&&t.stateNode!=null)Cf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=yn(os.current),yn(pt.current),Ws(t)){if(r=t.stateNode,n=t.memoizedProps,r[ft]=t,(l=r.nodeValue!==n)&&(e=Ie,e!==null))switch(e.tag){case 3:Hs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hs(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ft]=t,t.stateNode=r}return ve(t),null;case 13:if(G(X),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Y&&De!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Qd(),gr(),t.flags|=98560,l=!1;else if(l=Ws(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(C(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(C(317));l[ft]=t}else gr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ve(t),l=!1}else nt!==null&&(bo(nt),nt=null),l=!0;if(!l)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(X.current&1)!==0?ue===0&&(ue=3):Oa())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return vr(),xo(e,t),e===null&&rs(t.stateNode.containerInfo),ve(t),null;case 10:return ga(t.type._context),ve(t),null;case 17:return Oe(t.type)&&kl(),ve(t),null;case 19:if(G(X),l=t.memoizedState,l===null)return ve(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)_r(l,!1);else{if(ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Rl(e),i!==null){for(t.flags|=128,_r(l,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,i=l.alternate,i===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(X,X.current&1|2),t.child}e=e.sibling}l.tail!==null&&se()>wr&&(t.flags|=128,r=!0,_r(l,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_r(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Y)return ve(t),null}else 2*se()-l.renderingStartTime>wr&&n!==1073741824&&(t.flags|=128,r=!0,_r(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=se(),t.sibling=null,n=X.current,q(X,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return _a(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Fe&1073741824)!==0&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Cm(e,t){switch(fa(t),t.tag){case 1:return Oe(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),G(_e),G(we),ja(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wa(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return vr(),null;case 10:return ga(t.type._context),null;case 22:case 23:return _a(),null;case 24:return null;default:return null}}var Ks=!1,xe=!1,Em=typeof WeakSet=="function"?WeakSet:Set,T=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function wo(e,t,n){try{n()}catch(r){re(e,t,r)}}var qu=!1;function bm(e,t){if(no=vl,e=Rd(),ca(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 s=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,c=0,f=0,p=e,g=null;t:for(;;){for(var x;p!==n||s!==0&&p.nodeType!==3||(a=i+s),p!==l||r!==0&&p.nodeType!==3||(u=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(x=p.firstChild)!==null;)g=p,p=x;for(;;){if(p===e)break t;if(g===n&&++c===s&&(a=i),g===l&&++f===r&&(u=i),(x=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ro={focusedElem:e,selectionRange:n},vl=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,S=w.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?k:Xe(t.type,k),S);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(v){re(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return w=qu,qu=!1,w}function Vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&wo(t,n,l)}s=s.next}while(s!==r)}}function Kl(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 jo(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 Ef(e){var t=e.alternate;t!==null&&(e.alternate=null,Ef(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ft],delete t[ls],delete t[io],delete t[um],delete t[cm])),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 bf(e){return e.tag===5||e.tag===3||e.tag===4}function Ku(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(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 ko(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=jl));else if(r!==4&&(e=e.child,e!==null))for(ko(e,t,n),e=e.sibling;e!==null;)ko(e,t,n),e=e.sibling}function So(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(So(e,t,n),e=e.sibling;e!==null;)So(e,t,n),e=e.sibling}var he=null,tt=!1;function Ot(e,t,n){for(n=n.child;n!==null;)Pf(e,t,n),n=n.sibling}function Pf(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Al,n)}catch{}switch(n.tag){case 5:xe||qn(n,t);case 6:var r=he,s=tt;he=null,Ot(e,t,n),he=r,tt=s,he!==null&&(tt?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(tt?(e=he,n=n.stateNode,e.nodeType===8?ki(e.parentNode,n):e.nodeType===1&&ki(e,n),es(e)):ki(he,n.stateNode));break;case 4:r=he,s=tt,he=n.stateNode.containerInfo,tt=!0,Ot(e,t,n),he=r,tt=s;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var l=s,i=l.destroy;l=l.tag,i!==void 0&&((l&2)!==0||(l&4)!==0)&&wo(n,t,i),s=s.next}while(s!==r)}Ot(e,t,n);break;case 1:if(!xe&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){re(n,t,a)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Ot(e,t,n),xe=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function Gu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Em),t.forEach(function(r){var s=Dm.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var l=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:he=a.stateNode,tt=!1;break e;case 3:he=a.stateNode.containerInfo,tt=!0;break e;case 4:he=a.stateNode.containerInfo,tt=!0;break e}a=a.return}if(he===null)throw Error(C(160));Pf(l,i,s),he=null,tt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){re(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rf(t,e),t=t.sibling}function Rf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ye(t,e),ot(e),r&4){try{Vr(3,e,e.return),Kl(3,e)}catch(k){re(e,e.return,k)}try{Vr(5,e,e.return)}catch(k){re(e,e.return,k)}}break;case 1:Ye(t,e),ot(e),r&512&&n!==null&&qn(n,n.return);break;case 5:if(Ye(t,e),ot(e),r&512&&n!==null&&qn(n,n.return),e.flags&32){var s=e.stateNode;try{Jr(s,"")}catch(k){re(e,e.return,k)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&Jc(s,l),Vi(a,i);var c=Vi(a,l);for(i=0;i<u.length;i+=2){var f=u[i],p=u[i+1];f==="style"?td(s,p):f==="dangerouslySetInnerHTML"?Zc(s,p):f==="children"?Jr(s,p):Yo(s,f,p,c)}switch(a){case"input":Ui(s,l);break;case"textarea":Yc(s,l);break;case"select":var g=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var x=l.value;x!=null?Gn(s,!!l.multiple,x,!1):g!==!!l.multiple&&(l.defaultValue!=null?Gn(s,!!l.multiple,l.defaultValue,!0):Gn(s,!!l.multiple,l.multiple?[]:"",!1))}s[ls]=l}catch(k){re(e,e.return,k)}}break;case 6:if(Ye(t,e),ot(e),r&4){if(e.stateNode===null)throw Error(C(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(k){re(e,e.return,k)}}break;case 3:if(Ye(t,e),ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{es(t.containerInfo)}catch(k){re(e,e.return,k)}break;case 4:Ye(t,e),ot(e);break;case 13:Ye(t,e),ot(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(La=se())),r&4&&Gu(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(xe=(c=xe)||f,Ye(t,e),xe=c):Ye(t,e),ot(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&(e.mode&1)!==0)for(T=e,f=e.child;f!==null;){for(p=T=f;T!==null;){switch(g=T,x=g.child,g.tag){case 0:case 11:case 14:case 15:Vr(4,g,g.return);break;case 1:qn(g,g.return);var w=g.stateNode;if(typeof w.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){re(r,n,k)}}break;case 5:qn(g,g.return);break;case 22:if(g.memoizedState!==null){Yu(p);continue}}x!==null?(x.return=g,T=x):Yu(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{s=p.stateNode,c?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=p.stateNode,u=p.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=ed("display",i))}catch(k){re(e,e.return,k)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(k){re(e,e.return,k)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ye(t,e),ot(e),r&4&&Gu(e);break;case 21:break;default:Ye(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bf(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Jr(s,""),r.flags&=-33);var l=Ku(e);So(e,l,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Ku(e);ko(e,a,i);break;default:throw Error(C(161))}}catch(u){re(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pm(e,t,n){T=e,Lf(e)}function Lf(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var s=T,l=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Ks;if(!i){var a=s.alternate,u=a!==null&&a.memoizedState!==null||xe;a=Ks;var c=xe;if(Ks=i,(xe=u)&&!c)for(T=s;T!==null;)i=T,u=i.child,i.tag===22&&i.memoizedState!==null?Xu(s):u!==null?(u.return=i,T=u):Xu(s);for(;l!==null;)T=l,Lf(l),l=l.sibling;T=s,Ks=a,xe=c}Ju(e)}else(s.subtreeFlags&8772)!==0&&l!==null?(l.return=s,T=l):Ju(e)}}function Ju(e){for(;T!==null;){var t=T;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:xe||Kl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Xe(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Mu(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mu(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&es(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}xe||t.flags&512&&jo(t)}catch(g){re(t,t.return,g)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function Yu(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function Xu(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Kl(4,t)}catch(u){re(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){re(t,s,u)}}var l=t.return;try{jo(t)}catch(u){re(t,l,u)}break;case 5:var i=t.return;try{jo(t)}catch(u){re(t,i,u)}}}catch(u){re(t,t.return,u)}if(t===e){T=null;break}var a=t.sibling;if(a!==null){a.return=t.return,T=a;break}T=t.return}}var Rm=Math.ceil,_l=Tt.ReactCurrentDispatcher,Pa=Tt.ReactCurrentOwner,Ke=Tt.ReactCurrentBatchConfig,B=0,fe=null,ie=null,me=0,Fe=0,Kn=an(0),ue=0,ds=null,Tn=0,Gl=0,Ra=0,qr=null,Re=null,La=0,wr=1/0,vt=null,Ol=!1,No=null,en=null,Gs=!1,Kt=null,Ml=0,Kr=0,Co=null,al=-1,ul=0;function Ne(){return(B&6)!==0?se():al!==-1?al:al=se()}function tn(e){return(e.mode&1)===0?1:(B&2)!==0&&me!==0?me&-me:fm.transition!==null?(ul===0&&(ul=hd()),ul):(e=W,e!==0||(e=window.event,e=e===void 0?16:wd(e.type)),e)}function st(e,t,n,r){if(50<Kr)throw Kr=0,Co=null,Error(C(185));ws(e,n,r),((B&2)===0||e!==fe)&&(e===fe&&((B&2)===0&&(Gl|=n),ue===4&&zt(e,me)),Me(e,r),n===1&&B===0&&(t.mode&1)===0&&(wr=se()+500,Wl&&un()))}function Me(e,t){var n=e.callbackNode;fp(e,t);var r=yl(e,e===fe?me:0);if(r===0)n!==null&&ou(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ou(n),t===1)e.tag===0?dm(Zu.bind(null,e)):zd(Zu.bind(null,e)),om(function(){(B&6)===0&&un()}),n=null;else{switch(pd(r)){case 1:n=na;break;case 4:n=dd;break;case 16:n=gl;break;case 536870912:n=fd;break;default:n=gl}n=$f(n,Tf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tf(e,t){if(al=-1,ul=0,(B&6)!==0)throw Error(C(327));var n=e.callbackNode;if(er()&&e.callbackNode!==n)return null;var r=yl(e,e===fe?me:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Fl(e,r);else{t=r;var s=B;B|=2;var l=Of();(fe!==e||me!==t)&&(vt=null,wr=se()+500,En(e,t));do try{_m();break}catch(a){_f(e,a)}while(!0);ma(),_l.current=l,B=s,ie!==null?t=0:(fe=null,me=0,t=ue)}if(t!==0){if(t===2&&(s=Yi(e),s!==0&&(r=s,t=Eo(e,s))),t===1)throw n=ds,En(e,0),zt(e,r),Me(e,se()),n;if(t===6)zt(e,r);else{if(s=e.current.alternate,(r&30)===0&&!Lm(s)&&(t=Fl(e,r),t===2&&(l=Yi(e),l!==0&&(r=l,t=Eo(e,l))),t===1))throw n=ds,En(e,0),zt(e,r),Me(e,se()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:pn(e,Re,vt);break;case 3:if(zt(e,r),(r&130023424)===r&&(t=La+500-se(),10<t)){if(yl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ne(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=lo(pn.bind(null,e,Re,vt),t);break}pn(e,Re,vt);break;case 4:if(zt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-rt(r);l=1<<i,i=t[i],i>s&&(s=i),r&=~l}if(r=s,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rm(r/1960))-r,10<r){e.timeoutHandle=lo(pn.bind(null,e,Re,vt),r);break}pn(e,Re,vt);break;case 5:pn(e,Re,vt);break;default:throw Error(C(329))}}}return Me(e,se()),e.callbackNode===n?Tf.bind(null,e):null}function Eo(e,t){var n=qr;return e.current.memoizedState.isDehydrated&&(En(e,t).flags|=256),e=Fl(e,t),e!==2&&(t=Re,Re=n,t!==null&&bo(t)),e}function bo(e){Re===null?Re=e:Re.push.apply(Re,e)}function Lm(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 s=n[r],l=s.getSnapshot;s=s.value;try{if(!lt(l(),s))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 zt(e,t){for(t&=~Ra,t&=~Gl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function Zu(e){if((B&6)!==0)throw Error(C(327));er();var t=yl(e,0);if((t&1)===0)return Me(e,se()),null;var n=Fl(e,t);if(e.tag!==0&&n===2){var r=Yi(e);r!==0&&(t=r,n=Eo(e,r))}if(n===1)throw n=ds,En(e,0),zt(e,t),Me(e,se()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pn(e,Re,vt),Me(e,se()),null}function Ta(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&(wr=se()+500,Wl&&un())}}function _n(e){Kt!==null&&Kt.tag===0&&(B&6)===0&&er();var t=B;B|=1;var n=Ke.transition,r=W;try{if(Ke.transition=null,W=1,e)return e()}finally{W=r,Ke.transition=n,B=t,(B&6)===0&&un()}}function _a(){Fe=Kn.current,G(Kn)}function En(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,im(n)),ie!==null)for(n=ie.return;n!==null;){var r=n;switch(fa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kl();break;case 3:vr(),G(_e),G(we),ja();break;case 5:wa(r);break;case 4:vr();break;case 13:G(X);break;case 19:G(X);break;case 10:ga(r.type._context);break;case 22:case 23:_a()}n=n.return}if(fe=e,ie=e=nn(e.current,null),me=Fe=t,ue=0,ds=null,Ra=Gl=Tn=0,Re=qr=null,gn!==null){for(t=0;t<gn.length;t++)if(n=gn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=s,r.next=i}n.pending=r}gn=null}return e}function _f(e,t){do{var n=ie;try{if(ma(),ll.current=Tl,Ll){for(var r=Z.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ll=!1}if(Ln=0,de=ae=Z=null,Wr=!1,as=0,Pa.current=null,n===null||n.return===null){ue=1,ds=t,ie=null;break}e:{var l=e,i=n.return,a=n,u=t;if(t=me,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,f=a,p=f.tag;if((f.mode&1)===0&&(p===0||p===11||p===15)){var g=f.alternate;g?(f.updateQueue=g.updateQueue,f.memoizedState=g.memoizedState,f.lanes=g.lanes):(f.updateQueue=null,f.memoizedState=null)}var x=Au(i);if(x!==null){x.flags&=-257,Uu(x,i,a,l,t),x.mode&1&&zu(l,c,t),t=x,u=c;var w=t.updateQueue;if(w===null){var k=new Set;k.add(u),t.updateQueue=k}else w.add(u);break e}else{if((t&1)===0){zu(l,c,t),Oa();break e}u=Error(C(426))}}else if(Y&&a.mode&1){var S=Au(i);if(S!==null){(S.flags&65536)===0&&(S.flags|=256),Uu(S,i,a,l,t),ha(xr(u,a));break e}}l=u=xr(u,a),ue!==4&&(ue=2),qr===null?qr=[l]:qr.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=mf(l,u,t);Ou(l,m);break e;case 1:a=u;var h=l.type,d=l.stateNode;if((l.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(en===null||!en.has(d)))){l.flags|=65536,t&=-t,l.lanes|=t;var v=gf(l,a,t);Ou(l,v);break e}}l=l.return}while(l!==null)}Ff(n)}catch(N){t=N,ie===n&&n!==null&&(ie=n=n.return);continue}break}while(!0)}function Of(){var e=_l.current;return _l.current=Tl,e===null?Tl:e}function Oa(){(ue===0||ue===3||ue===2)&&(ue=4),fe===null||(Tn&268435455)===0&&(Gl&268435455)===0||zt(fe,me)}function Fl(e,t){var n=B;B|=2;var r=Of();(fe!==e||me!==t)&&(vt=null,En(e,t));do try{Tm();break}catch(s){_f(e,s)}while(!0);if(ma(),B=n,_l.current=r,ie!==null)throw Error(C(261));return fe=null,me=0,ue}function Tm(){for(;ie!==null;)Mf(ie)}function _m(){for(;ie!==null&&!rp();)Mf(ie)}function Mf(e){var t=If(e.alternate,e,Fe);e.memoizedProps=e.pendingProps,t===null?Ff(e):ie=t,Pa.current=null}function Ff(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Nm(n,t,Fe),n!==null){ie=n;return}}else{if(n=Cm(n,t),n!==null){n.flags&=32767,ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,ie=null;return}}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);ue===0&&(ue=5)}function pn(e,t,n){var r=W,s=Ke.transition;try{Ke.transition=null,W=1,Om(e,t,n,r)}finally{Ke.transition=s,W=r}return null}function Om(e,t,n,r){do er();while(Kt!==null);if((B&6)!==0)throw Error(C(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(hp(e,l),e===fe&&(ie=fe=null,me=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Gs||(Gs=!0,$f(gl,function(){return er(),null})),l=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||l){l=Ke.transition,Ke.transition=null;var i=W;W=1;var a=B;B|=4,Pa.current=null,bm(e,n),Rf(n,e),Zp(ro),vl=!!no,ro=no=null,e.current=n,Pm(n),sp(),B=a,W=i,Ke.transition=l}else e.current=n;if(Gs&&(Gs=!1,Kt=e,Ml=s),l=e.pendingLanes,l===0&&(en=null),op(n.stateNode),Me(e,se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Ol)throw Ol=!1,e=No,No=null,e;return(Ml&1)!==0&&e.tag!==0&&er(),l=e.pendingLanes,(l&1)!==0?e===Co?Kr++:(Kr=0,Co=e):Kr=0,un(),null}function er(){if(Kt!==null){var e=pd(Ml),t=Ke.transition,n=W;try{if(Ke.transition=null,W=16>e?16:e,Kt===null)var r=!1;else{if(e=Kt,Kt=null,Ml=0,(B&6)!==0)throw Error(C(331));var s=B;for(B|=4,T=e.current;T!==null;){var l=T,i=l.child;if((T.flags&16)!==0){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(T=c;T!==null;){var f=T;switch(f.tag){case 0:case 11:case 15:Vr(8,f,l)}var p=f.child;if(p!==null)p.return=f,T=p;else for(;T!==null;){f=T;var g=f.sibling,x=f.return;if(Ef(f),f===c){T=null;break}if(g!==null){g.return=x,T=g;break}T=x}}}var w=l.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var S=k.sibling;k.sibling=null,k=S}while(k!==null)}}T=l}}if((l.subtreeFlags&2064)!==0&&i!==null)i.return=l,T=i;else e:for(;T!==null;){if(l=T,(l.flags&2048)!==0)switch(l.tag){case 0:case 11:case 15:Vr(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,T=m;break e}T=l.return}}var h=e.current;for(T=h;T!==null;){i=T;var d=i.child;if((i.subtreeFlags&2064)!==0&&d!==null)d.return=i,T=d;else e:for(i=h;T!==null;){if(a=T,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Kl(9,a)}}catch(N){re(a,a.return,N)}if(a===i){T=null;break e}var v=a.sibling;if(v!==null){v.return=a.return,T=v;break e}T=a.return}}if(B=s,un(),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Al,e)}catch{}r=!0}return r}finally{W=n,Ke.transition=t}}return!1}function ec(e,t,n){t=xr(n,t),t=mf(e,t,1),e=Zt(e,t,1),t=Ne(),e!==null&&(ws(e,1,t),Me(e,t))}function re(e,t,n){if(e.tag===3)ec(e,e,n);else for(;t!==null;){if(t.tag===3){ec(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(en===null||!en.has(r))){e=xr(n,e),e=gf(t,e,1),t=Zt(t,e,1),e=Ne(),t!==null&&(ws(t,1,e),Me(t,e));break}}t=t.return}}function Mm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ne(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(me&n)===n&&(ue===4||ue===3&&(me&130023424)===me&&500>se()-La?En(e,0):Ra|=n),Me(e,t)}function Df(e,t){t===0&&((e.mode&1)===0?t=1:(t=zs,zs<<=1,(zs&130023424)===0&&(zs=4194304)));var n=Ne();e=Pt(e,t),e!==null&&(ws(e,t,n),Me(e,n))}function Fm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Df(e,n)}function Dm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Df(e,n)}var If;If=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Te=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Te=!1,Sm(e,t,n);Te=(e.flags&131072)!==0}else Te=!1,Y&&(t.flags&1048576)!==0&&Ad(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ol(e,t),e=t.pendingProps;var s=mr(t,we.current);Zn(t,n),s=Sa(null,t,r,e,s,n);var l=Na();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)?(l=!0,Sl(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,va(t),s.updater=ql,t.stateNode=s,s._reactInternals=t,ho(t,r,e,n),t=go(null,t,r,!0,l,n)):(t.tag=0,Y&&l&&da(t),Se(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ol(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=$m(r),e=Xe(r,e),s){case 0:t=mo(null,t,r,e,n);break e;case 1:t=Hu(null,t,r,e,n);break e;case 11:t=Qu(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,Xe(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),mo(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),Hu(e,t,r,s,n);case 3:e:{if(wf(t),e===null)throw Error(C(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Vd(e,t),Pl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=xr(Error(C(423)),t),t=Wu(e,t,r,n,s);break e}else if(r!==s){s=xr(Error(C(424)),t),t=Wu(e,t,r,n,s);break e}else for(De=Xt(t.stateNode.containerInfo.firstChild),Ie=t,Y=!0,nt=null,n=Hd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gr(),r===s){t=Rt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return qd(t),e===null&&uo(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,i=s.children,so(r,s)?i=null:l!==null&&so(r,l)&&(t.flags|=32),xf(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&uo(t),null;case 13:return jf(e,t,n);case 4:return xa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yr(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),Qu(e,t,r,s,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,i=s.value,q(El,r._currentValue),r._currentValue=i,l!==null)if(lt(l.value,i)){if(l.children===s.children&&!_e.current){t=Rt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Nt(-1,n&-n),u.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),co(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(C(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),co(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Se(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Zn(t,n),s=Ge(s),r=r(s),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,s=Xe(r,t.pendingProps),s=Xe(r.type,s),Bu(e,t,r,s,n);case 15:return yf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),ol(e,t),t.tag=1,Oe(r)?(e=!0,Sl(t)):e=!1,Zn(t,n),pf(t,r,s),ho(t,r,s,n),go(null,t,r,!0,e,n);case 19:return kf(e,t,n);case 22:return vf(e,t,n)}throw Error(C(156,t.tag))};function $f(e,t){return cd(e,t)}function Im(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 qe(e,t,n,r){return new Im(e,t,n,r)}function Ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $m(e){if(typeof e=="function")return Ma(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zo)return 11;if(e===ea)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=qe(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 cl(e,t,n,r,s,l){var i=2;if(r=e,typeof e=="function")Ma(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $n:return bn(n.children,s,l,t);case Xo:i=8,s|=8;break;case Di:return e=qe(12,n,t,s|2),e.elementType=Di,e.lanes=l,e;case Ii:return e=qe(13,n,t,s),e.elementType=Ii,e.lanes=l,e;case $i:return e=qe(19,n,t,s),e.elementType=$i,e.lanes=l,e;case qc:return Jl(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wc:i=10;break e;case Vc:i=9;break e;case Zo:i=11;break e;case ea:i=14;break e;case Dt:i=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=qe(i,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function bn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Jl(e,t,n,r){return e=qe(22,e,r,t),e.elementType=qc,e.lanes=n,e.stateNode={isHidden:!1},e}function Li(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function Ti(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zm(e,t,n,r,s){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=di(0),this.expirationTimes=di(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=di(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Fa(e,t,n,r,s,l,i,a,u){return e=new zm(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=qe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},va(l),e}function Am(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:In,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zf(e){if(!e)return ln;e=e._reactInternals;e:{if(Fn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Oe(n))return $d(e,n,t)}return t}function Af(e,t,n,r,s,l,i,a,u){return e=Fa(n,r,!0,e,s,l,i,a,u),e.context=zf(null),n=e.current,r=Ne(),s=tn(n),l=Nt(r,s),l.callback=t??null,Zt(n,l,s),e.current.lanes=s,ws(e,s,r),Me(e,r),e}function Yl(e,t,n,r){var s=t.current,l=Ne(),i=tn(s);return n=zf(n),t.context===null?t.context=n:t.pendingContext=n,t=Nt(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zt(s,t,i),e!==null&&(st(e,s,i,l),sl(e,s,i)),i}function Dl(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 tc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Da(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function Um(){return null}var Uf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ia(e){this._internalRoot=e}Xl.prototype.render=Ia.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Yl(e,t,null,null)};Xl.prototype.unmount=Ia.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_n(function(){Yl(null,e,null,null)}),t[bt]=null}};function Xl(e){this._internalRoot=e}Xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=yd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$t.length&&t!==0&&t<$t[n].priority;n++);$t.splice(n,0,e),n===0&&xd(e)}};function $a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nc(){}function Qm(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var c=Dl(i);l.call(c)}}var i=Af(t,r,e,0,null,!1,!1,"",nc);return e._reactRootContainer=i,e[bt]=i.current,rs(e.nodeType===8?e.parentNode:e),_n(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Dl(u);a.call(c)}}var u=Fa(e,0,!1,null,null,!1,!1,"",nc);return e._reactRootContainer=u,e[bt]=u.current,rs(e.nodeType===8?e.parentNode:e),_n(function(){Yl(t,u,n,r)}),u}function ei(e,t,n,r,s){var l=n._reactRootContainer;if(l){var i=l;if(typeof s=="function"){var a=s;s=function(){var u=Dl(i);a.call(u)}}Yl(t,i,e,s)}else i=Qm(n,t,e,s,r);return Dl(i)}md=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ir(t.pendingLanes);n!==0&&(ra(t,n|1),Me(t,se()),(B&6)===0&&(wr=se()+500,un()))}break;case 13:_n(function(){var r=Pt(e,1);if(r!==null){var s=Ne();st(r,e,1,s)}}),Da(e,1)}};sa=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Ne();st(t,e,134217728,n)}Da(e,134217728)}};gd=function(e){if(e.tag===13){var t=tn(e),n=Pt(e,t);if(n!==null){var r=Ne();st(n,e,t,r)}Da(e,t)}};yd=function(){return W};vd=function(e,t){var n=W;try{return W=e,t()}finally{W=n}};Ki=function(e,t,n){switch(t){case"input":if(Ui(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 s=Hl(r);if(!s)throw Error(C(90));Gc(r),Ui(r,s)}}}break;case"textarea":Yc(e,n);break;case"select":t=n.value,t!=null&&Gn(e,!!n.multiple,t,!1)}};sd=Ta;ld=_n;var Bm={usingClientEntryPoint:!1,Events:[ks,Qn,Hl,nd,rd,Ta]},Or={findFiberByHostInstance:mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hm={bundleType:Or.bundleType,version:Or.version,rendererPackageName:Or.rendererPackageName,rendererConfig:Or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ad(e),e===null?null:e.stateNode},findFiberByHostInstance:Or.findFiberByHostInstance||Um,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 Js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Js.isDisabled&&Js.supportsFiber)try{Al=Js.inject(Hm),ht=Js}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bm;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$a(t))throw Error(C(200));return Am(e,t,null,n)};ze.createRoot=function(e,t){if(!$a(e))throw Error(C(299));var n=!1,r="",s=Uf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Fa(e,1,!1,null,null,n,!1,r,s),e[bt]=t.current,rs(e.nodeType===8?e.parentNode:e),new Ia(t)};ze.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=ad(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return _n(e)};ze.hydrate=function(e,t,n){if(!Zl(t))throw Error(C(200));return ei(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!$a(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",i=Uf;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Af(t,null,e,1,n??null,s,!1,l,i),e[bt]=t.current,rs(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Xl(t)};ze.render=function(e,t,n){if(!Zl(t))throw Error(C(200));return ei(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!Zl(e))throw Error(C(40));return e._reactRootContainer?(_n(function(){ei(null,null,e,!1,function(){e._reactRootContainer=null,e[bt]=null})}),!0):!1};ze.unstable_batchedUpdates=Ta;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zl(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return ei(e,t,n,!1,r)};ze.version="18.3.1-next-f1338f8080-20240426";function Qf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qf)}catch(e){console.error(e)}}Qf(),Uc.exports=ze;var Wm=Uc.exports,rc=Wm;Mi.createRoot=rc.createRoot,Mi.hydrateRoot=rc.hydrateRoot;/**
|
|
41
|
+
* react-router v7.8.2
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var sc="popstate";function Vm(e={}){function t(r,s){let{pathname:l,search:i,hash:a}=r.location;return Po("",{pathname:l,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:fs(s)}return Km(t,n,null,e)}function ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function it(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qm(){return Math.random().toString(36).substring(2,10)}function lc(e,t){return{usr:e.state,key:e.key,idx:t}}function Po(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Nr(t):t,state:n,key:t&&t.key||r||qm()}}function fs({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Km(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,i=s.history,a="POP",u=null,c=f();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function f(){return(i.state||{idx:null}).idx}function p(){a="POP";let S=f(),m=S==null?null:S-c;c=S,u&&u({action:a,location:k.location,delta:m})}function g(S,m){a="PUSH";let h=Po(k.location,S,m);c=f()+1;let d=lc(h,c),v=k.createHref(h);try{i.pushState(d,"",v)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;s.location.assign(v)}l&&u&&u({action:a,location:k.location,delta:1})}function x(S,m){a="REPLACE";let h=Po(k.location,S,m);c=f();let d=lc(h,c),v=k.createHref(h);i.replaceState(d,"",v),l&&u&&u({action:a,location:k.location,delta:0})}function w(S){return Gm(S)}let k={get action(){return a},get location(){return e(s,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(sc,p),u=S,()=>{s.removeEventListener(sc,p),u=null}},createHref(S){return t(s,S)},createURL:w,encodeLocation(S){let m=w(S);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:x,go(S){return i.go(S)}};return k}function Gm(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ee(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:fs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Bf(e,t,n="/"){return Jm(e,t,n,!1)}function Jm(e,t,n,r){let s=typeof t=="string"?Nr(t):t,l=Lt(s.pathname||"/",n);if(l==null)return null;let i=Hf(e);Ym(i);let a=null;for(let u=0;a==null&&u<i.length;++u){let c=ag(l);a=ig(i[u],c,r)}return a}function Hf(e,t=[],n=[],r="",s=!1){let l=(i,a,u=s,c)=>{let f={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&u)return;ee(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let p=Ct([r,f.relativePath]),g=n.concat(f);i.children&&i.children.length>0&&(ee(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Hf(i.children,t,g,p,u)),!(i.path==null&&!i.index)&&t.push({path:p,score:sg(p,i.index),routesMeta:g})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,a);else for(let c of Wf(i.path))l(i,a,!0,c)}),t}function Wf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return s?[l,""]:[l];let i=Wf(r.join("/")),a=[];return a.push(...i.map(u=>u===""?l:[l,u].join("/"))),s&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Ym(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Xm=/^:[\w-]+$/,Zm=3,eg=2,tg=1,ng=10,rg=-2,ic=e=>e==="*";function sg(e,t){let n=e.split("/"),r=n.length;return n.some(ic)&&(r+=rg),t&&(r+=eg),n.filter(s=>!ic(s)).reduce((s,l)=>s+(Xm.test(l)?Zm:l===""?tg:ng),r)}function lg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function ig(e,t,n=!1){let{routesMeta:r}=e,s={},l="/",i=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",p=Il({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},f),g=u.route;if(!p&&c&&n&&!r[r.length-1].route.index&&(p=Il({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!p)return null;Object.assign(s,p.params),i.push({params:s,pathname:Ct([l,p.pathname]),pathnameBase:fg(Ct([l,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(l=Ct([l,p.pathnameBase]))}return i}function Il(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=og(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let l=s[0],i=l.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,{paramName:f,isOptional:p},g)=>{if(f==="*"){let w=a[g]||"";i=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const x=a[g];return p&&!x?c[f]=void 0:c[f]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:i,pattern:e}}function og(e,t=!1,n=!0){it(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function ag(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return it(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Lt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ug(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Nr(e):e;return{pathname:n?n.startsWith("/")?n:cg(n,t):t,search:hg(r),hash:pg(s)}}function cg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function _i(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function dg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Vf(e){let t=dg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function qf(e,t,n,r=!1){let s;typeof e=="string"?s=Nr(e):(s={...e},ee(!s.pathname||!s.pathname.includes("?"),_i("?","pathname","search",s)),ee(!s.pathname||!s.pathname.includes("#"),_i("#","pathname","hash",s)),ee(!s.search||!s.search.includes("#"),_i("#","search","hash",s)));let l=e===""||s.pathname==="",i=l?"/":s.pathname,a;if(i==null)a=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p-=1;s.pathname=g.join("/")}a=p>=0?t[p]:"/"}let u=ug(s,a),c=i&&i!=="/"&&i.endsWith("/"),f=(l||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}var Ct=e=>e.join("/").replace(/\/\/+/g,"/"),fg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Kf=["POST","PUT","PATCH","DELETE"];new Set(Kf);var gg=["GET",...Kf];new Set(gg);var Cr=j.createContext(null);Cr.displayName="DataRouter";var ti=j.createContext(null);ti.displayName="DataRouterState";j.createContext(!1);var Gf=j.createContext({isTransitioning:!1});Gf.displayName="ViewTransition";var yg=j.createContext(new Map);yg.displayName="Fetchers";var vg=j.createContext(null);vg.displayName="Await";var mt=j.createContext(null);mt.displayName="Navigation";var Ns=j.createContext(null);Ns.displayName="Location";var gt=j.createContext({outlet:null,matches:[],isDataRoute:!1});gt.displayName="Route";var za=j.createContext(null);za.displayName="RouteError";function xg(e,{relative:t}={}){ee(Cs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=j.useContext(mt),{hash:s,pathname:l,search:i}=bs(e,{relative:t}),a=l;return n!=="/"&&(a=l==="/"?n:Ct([n,l])),r.createHref({pathname:a,search:i,hash:s})}function Cs(){return j.useContext(Ns)!=null}function cn(){return ee(Cs(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Ns).location}var Jf="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yf(e){j.useContext(mt).static||j.useLayoutEffect(e)}function _t(){let{isDataRoute:e}=j.useContext(gt);return e?_g():wg()}function wg(){ee(Cs(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(Cr),{basename:t,navigator:n}=j.useContext(mt),{matches:r}=j.useContext(gt),{pathname:s}=cn(),l=JSON.stringify(Vf(r)),i=j.useRef(!1);return Yf(()=>{i.current=!0}),j.useCallback((u,c={})=>{if(it(i.current,Jf),!i.current)return;if(typeof u=="number"){n.go(u);return}let f=qf(u,JSON.parse(l),s,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ct([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,l,s,e])}j.createContext(null);function Es(){let{matches:e}=j.useContext(gt),t=e[e.length-1];return t?t.params:{}}function bs(e,{relative:t}={}){let{matches:n}=j.useContext(gt),{pathname:r}=cn(),s=JSON.stringify(Vf(n));return j.useMemo(()=>qf(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function jg(e,t){return Xf(e,t)}function Xf(e,t,n,r,s){var h;ee(Cs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=j.useContext(mt),{matches:i}=j.useContext(gt),a=i[i.length-1],u=a?a.params:{},c=a?a.pathname:"/",f=a?a.pathnameBase:"/",p=a&&a.route;{let d=p&&p.path||"";Zf(c,!p||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${d}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}/*`}">.`)}let g=cn(),x;if(t){let d=typeof t=="string"?Nr(t):t;ee(f==="/"||((h=d.pathname)==null?void 0:h.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${d.pathname}" was given in the \`location\` prop.`),x=d}else x=g;let w=x.pathname||"/",k=w;if(f!=="/"){let d=f.replace(/^\//,"").split("/");k="/"+w.replace(/^\//,"").split("/").slice(d.length).join("/")}let S=Bf(e,{pathname:k});it(p||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),it(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let m=Eg(S&&S.map(d=>Object.assign({},d,{params:Object.assign({},u,d.params),pathname:Ct([f,l.encodeLocation?l.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?f:Ct([f,l.encodeLocation?l.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),i,n,r,s);return t&&m?j.createElement(Ns.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},m):m}function kg(){let e=Tg(),t=mg(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:l},"ErrorBoundary")," or"," ",j.createElement("code",{style:l},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:s},n):null,i)}var Sg=j.createElement(kg,null),Ng=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?j.createElement(gt.Provider,{value:this.props.routeContext},j.createElement(za.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cg({routeContext:e,match:t,children:n}){let r=j.useContext(Cr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(gt.Provider,{value:e},n)}function Eg(e,t=[],n=null,r=null,s=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,i=n==null?void 0:n.errors;if(i!=null){let c=l.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);ee(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),l=l.slice(0,Math.min(l.length,c+1))}let a=!1,u=-1;if(n)for(let c=0;c<l.length;c++){let f=l[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:p,errors:g}=n,x=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!g||g[f.route.id]===void 0);if(f.route.lazy||x){a=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,f,p)=>{let g,x=!1,w=null,k=null;n&&(g=i&&f.route.id?i[f.route.id]:void 0,w=f.route.errorElement||Sg,a&&(u<0&&p===0?(Zf("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,k=null):u===p&&(x=!0,k=f.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,p+1)),m=()=>{let h;return g?h=w:x?h=k:f.route.Component?h=j.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=c,j.createElement(Cg,{match:f,routeContext:{outlet:c,matches:S,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?j.createElement(Ng,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:m(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):m()},null)}function Aa(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bg(e){let t=j.useContext(Cr);return ee(t,Aa(e)),t}function Pg(e){let t=j.useContext(ti);return ee(t,Aa(e)),t}function Rg(e){let t=j.useContext(gt);return ee(t,Aa(e)),t}function Ua(e){let t=Rg(e),n=t.matches[t.matches.length-1];return ee(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Lg(){return Ua("useRouteId")}function Tg(){var r;let e=j.useContext(za),t=Pg("useRouteError"),n=Ua("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function _g(){let{router:e}=bg("useNavigate"),t=Ua("useNavigate"),n=j.useRef(!1);return Yf(()=>{n.current=!0}),j.useCallback(async(s,l={})=>{it(n.current,Jf),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var oc={};function Zf(e,t,n){!t&&!oc[e]&&(oc[e]=!0,it(!1,n))}j.memo(Og);function Og({routes:e,future:t,state:n,unstable_onError:r}){return Xf(e,void 0,n,r,t)}function Mt(e){ee(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Mg({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:l=!1}){ee(!Cs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),a=j.useMemo(()=>({basename:i,navigator:s,static:l,future:{}}),[i,s,l]);typeof n=="string"&&(n=Nr(n));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:g="default"}=n,x=j.useMemo(()=>{let w=Lt(u,i);return w==null?null:{location:{pathname:w,search:c,hash:f,state:p,key:g},navigationType:r}},[i,u,c,f,p,g,r]);return it(x!=null,`<Router basename="${i}"> is not able to match the URL "${u}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:j.createElement(mt.Provider,{value:a},j.createElement(Ns.Provider,{children:t,value:x}))}function Fg({children:e,location:t}){return jg(Ro(e),t)}function Ro(e,t=[]){let n=[];return j.Children.forEach(e,(r,s)=>{if(!j.isValidElement(r))return;let l=[...t,s];if(r.type===j.Fragment){n.push.apply(n,Ro(r.props.children,l));return}ee(r.type===Mt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ee(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ro(r.props.children,l)),n.push(i)}),n}var dl="get",fl="application/x-www-form-urlencoded";function ni(e){return e!=null&&typeof e.tagName=="string"}function Dg(e){return ni(e)&&e.tagName.toLowerCase()==="button"}function Ig(e){return ni(e)&&e.tagName.toLowerCase()==="form"}function $g(e){return ni(e)&&e.tagName.toLowerCase()==="input"}function zg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ag(e,t){return e.button===0&&(!t||t==="_self")&&!zg(e)}function Lo(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Ug(e,t){let n=Lo(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(l=>{n.append(s,l)})}),n}var Ys=null;function Qg(){if(Ys===null)try{new FormData(document.createElement("form"),0),Ys=!1}catch{Ys=!0}return Ys}var Bg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oi(e){return e!=null&&!Bg.has(e)?(it(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fl}"`),null):e}function Hg(e,t){let n,r,s,l,i;if(Ig(e)){let a=e.getAttribute("action");r=a?Lt(a,t):null,n=e.getAttribute("method")||dl,s=Oi(e.getAttribute("enctype"))||fl,l=new FormData(e)}else if(Dg(e)||$g(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||a.getAttribute("action");if(r=u?Lt(u,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||dl,s=Oi(e.getAttribute("formenctype"))||Oi(a.getAttribute("enctype"))||fl,l=new FormData(a,e),!Qg()){let{name:c,type:f,value:p}=e;if(f==="image"){let g=c?`${c}.`:"";l.append(`${g}x`,"0"),l.append(`${g}y`,"0")}else c&&l.append(c,p)}}else{if(ni(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=dl,r=null,s=fl,i=e}return l&&s==="text/plain"&&(i=l,l=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:l,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qa(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wg(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Lt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Vg(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function qg(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Kg(e,t,n){let r=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let i=await Vg(l,n);return i.links?i.links():[]}return[]}));return Xg(r.flat(1).filter(qg).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function ac(e,t,n,r,s,l){let i=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,a=(u,c)=>{var f;return n[c].pathname!==u.pathname||((f=n[c].route.path)==null?void 0:f.endsWith("*"))&&n[c].params["*"]!==u.params["*"]};return l==="assets"?t.filter((u,c)=>i(u,c)||a(u,c)):l==="data"?t.filter((u,c)=>{var p;let f=r.routes[u.route.id];if(!f||!f.hasLoader)return!1;if(i(u,c)||a(u,c))return!0;if(u.route.shouldRevalidate){let g=u.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Gg(e,t,{includeHydrateFallback:n}={}){return Jg(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function Jg(e){return[...new Set(e)]}function Yg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Xg(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let l=JSON.stringify(Yg(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function eh(){let e=j.useContext(Cr);return Qa(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Zg(){let e=j.useContext(ti);return Qa(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ba=j.createContext(void 0);Ba.displayName="FrameworkContext";function th(){let e=j.useContext(Ba);return Qa(e,"You must render this element inside a <HydratedRouter> element"),e}function e0(e,t){let n=j.useContext(Ba),[r,s]=j.useState(!1),[l,i]=j.useState(!1),{onFocus:a,onBlur:u,onMouseEnter:c,onMouseLeave:f,onTouchStart:p}=t,g=j.useRef(null);j.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let k=m=>{m.forEach(h=>{i(h.isIntersecting)})},S=new IntersectionObserver(k,{threshold:.5});return g.current&&S.observe(g.current),()=>{S.disconnect()}}},[e]),j.useEffect(()=>{if(r){let k=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(k)}}},[r]);let x=()=>{s(!0)},w=()=>{s(!1),i(!1)};return n?e!=="intent"?[l,g,{}]:[l,g,{onFocus:Mr(a,x),onBlur:Mr(u,w),onMouseEnter:Mr(c,x),onMouseLeave:Mr(f,w),onTouchStart:Mr(p,x)}]:[!1,g,{}]}function Mr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function t0({page:e,...t}){let{router:n}=eh(),r=j.useMemo(()=>Bf(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?j.createElement(r0,{page:e,matches:r,...t}):null}function n0(e){let{manifest:t,routeModules:n}=th(),[r,s]=j.useState([]);return j.useEffect(()=>{let l=!1;return Kg(e,t,n).then(i=>{l||s(i)}),()=>{l=!0}},[e,t,n]),r}function r0({page:e,matches:t,...n}){let r=cn(),{manifest:s,routeModules:l}=th(),{basename:i}=eh(),{loaderData:a,matches:u}=Zg(),c=j.useMemo(()=>ac(e,t,u,s,r,"data"),[e,t,u,s,r]),f=j.useMemo(()=>ac(e,t,u,s,r,"assets"),[e,t,u,s,r]),p=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,k=!1;if(t.forEach(m=>{var d;let h=s.routes[m.route.id];!h||!h.hasLoader||(!c.some(v=>v.route.id===m.route.id)&&m.route.id in a&&((d=l[m.route.id])!=null&&d.shouldRevalidate)||h.hasClientLoader?k=!0:w.add(m.route.id))}),w.size===0)return[];let S=Wg(e,i,"data");return k&&w.size>0&&S.searchParams.set("_routes",t.filter(m=>w.has(m.route.id)).map(m=>m.route.id).join(",")),[S.pathname+S.search]},[i,a,r,s,c,t,e,l]),g=j.useMemo(()=>Gg(f,s),[f,s]),x=n0(f);return j.createElement(j.Fragment,null,p.map(w=>j.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),g.map(w=>j.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),x.map(({key:w,link:k})=>j.createElement("link",{key:w,nonce:n.nonce,...k})))}function s0(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{nh&&(window.__reactRouterVersion="7.8.2")}catch{}function l0({basename:e,children:t,window:n}){let r=j.useRef();r.current==null&&(r.current=Vm({window:n,v5Compat:!0}));let s=r.current,[l,i]=j.useState({action:s.action,location:s.location}),a=j.useCallback(u=>{j.startTransition(()=>i(u))},[i]);return j.useLayoutEffect(()=>s.listen(a),[s,a]),j.createElement(Mg,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s})}var rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sh=j.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:i,state:a,target:u,to:c,preventScrollReset:f,viewTransition:p,...g},x){let{basename:w}=j.useContext(mt),k=typeof c=="string"&&rh.test(c),S,m=!1;if(typeof c=="string"&&k&&(S=c,nh))try{let O=new URL(window.location.href),L=c.startsWith("//")?new URL(O.protocol+c):new URL(c),V=Lt(L.pathname,w);L.origin===O.origin&&V!=null?c=V+L.search+L.hash:m=!0}catch{it(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let h=xg(c,{relative:s}),[d,v,N]=e0(r,g),E=u0(c,{replace:i,state:a,target:u,preventScrollReset:f,relative:s,viewTransition:p});function P(O){t&&t(O),O.defaultPrevented||E(O)}let b=j.createElement("a",{...g,...N,href:S||h,onClick:m||l?t:P,ref:s0(x,v),target:u,"data-discover":!k&&n==="render"?"true":void 0});return d&&!k?j.createElement(j.Fragment,null,b,j.createElement(t0,{page:h})):b});sh.displayName="Link";var i0=j.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:i,viewTransition:a,children:u,...c},f){let p=bs(i,{relative:c.relative}),g=cn(),x=j.useContext(ti),{navigator:w,basename:k}=j.useContext(mt),S=x!=null&&m0(p)&&a===!0,m=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,h=g.pathname,d=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(h=h.toLowerCase(),d=d?d.toLowerCase():null,m=m.toLowerCase()),d&&k&&(d=Lt(d,k)||d);const v=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let N=h===m||!s&&h.startsWith(m)&&h.charAt(v)==="/",E=d!=null&&(d===m||!s&&d.startsWith(m)&&d.charAt(m.length)==="/"),P={isActive:N,isPending:E,isTransitioning:S},b=N?t:void 0,O;typeof r=="function"?O=r(P):O=[r,N?"active":null,E?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(P):l;return j.createElement(sh,{...c,"aria-current":b,className:O,ref:f,style:L,to:i,viewTransition:a},typeof u=="function"?u(P):u)});i0.displayName="NavLink";var o0=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:l,method:i=dl,action:a,onSubmit:u,relative:c,preventScrollReset:f,viewTransition:p,...g},x)=>{let w=h0(),k=p0(a,{relative:c}),S=i.toLowerCase()==="get"?"get":"post",m=typeof a=="string"&&rh.test(a),h=d=>{if(u&&u(d),d.defaultPrevented)return;d.preventDefault();let v=d.nativeEvent.submitter,N=(v==null?void 0:v.getAttribute("formmethod"))||i;w(v||d.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:s,state:l,relative:c,preventScrollReset:f,viewTransition:p})};return j.createElement("form",{ref:x,method:S,action:k,onSubmit:r?u:h,...g,"data-discover":!m&&e==="render"?"true":void 0})});o0.displayName="Form";function a0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lh(e){let t=j.useContext(Cr);return ee(t,a0(e)),t}function u0(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:i}={}){let a=_t(),u=cn(),c=bs(e,{relative:l});return j.useCallback(f=>{if(Ag(f,t)){f.preventDefault();let p=n!==void 0?n:fs(u)===fs(c);a(e,{replace:p,state:r,preventScrollReset:s,relative:l,viewTransition:i})}},[u,a,c,n,r,t,e,s,l,i])}function c0(e){it(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=j.useRef(Lo(e)),n=j.useRef(!1),r=cn(),s=j.useMemo(()=>Ug(r.search,n.current?null:t.current),[r.search]),l=_t(),i=j.useCallback((a,u)=>{const c=Lo(typeof a=="function"?a(new URLSearchParams(s)):a);n.current=!0,l("?"+c,u)},[l,s]);return[s,i]}var d0=0,f0=()=>`__${String(++d0)}__`;function h0(){let{router:e}=lh("useSubmit"),{basename:t}=j.useContext(mt),n=Lg();return j.useCallback(async(r,s={})=>{let{action:l,method:i,encType:a,formData:u,body:c}=Hg(r,t);if(s.navigate===!1){let f=s.fetcherKey||f0();await e.fetch(f,n,s.action||l,{preventScrollReset:s.preventScrollReset,formData:u,body:c,formMethod:s.method||i,formEncType:s.encType||a,flushSync:s.flushSync})}else await e.navigate(s.action||l,{preventScrollReset:s.preventScrollReset,formData:u,body:c,formMethod:s.method||i,formEncType:s.encType||a,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function p0(e,{relative:t}={}){let{basename:n}=j.useContext(mt),r=j.useContext(gt);ee(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...bs(e||".",{relative:t})},i=cn();if(e==null){l.search=i.search;let a=new URLSearchParams(l.search),u=a.getAll("index");if(u.some(f=>f==="")){a.delete("index"),u.filter(p=>p).forEach(p=>a.append("index",p));let f=a.toString();l.search=f?`?${f}`:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ct([n,l.pathname])),fs(l)}function m0(e,{relative:t}={}){let n=j.useContext(Gf);ee(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lh("useViewTransitionState"),s=bs(e,{relative:t});if(!n.isTransitioning)return!1;let l=Lt(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Lt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Il(s.pathname,i)!=null||Il(s.pathname,l)!=null}var Ps=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},On=typeof window>"u"||"Deno"in globalThis;function Pe(){}function g0(e,t){return typeof e=="function"?e(t):e}function To(e){return typeof e=="number"&&e>=0&&e!==1/0}function ih(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rn(e,t){return typeof e=="function"?e(t):e}function He(e,t){return typeof e=="function"?e(t):e}function uc(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:l,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Ha(i,t.options))return!1}else if(!ps(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||l&&!l(t))}function cc(e,t){const{exact:n,status:r,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(hs(t.options.mutationKey)!==hs(l))return!1}else if(!ps(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Ha(e,t){return((t==null?void 0:t.queryKeyHashFn)||hs)(e)}function hs(e){return JSON.stringify(e,(t,n)=>Oo(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ps(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ps(e[n],t[n])):!1}function oh(e,t){if(e===t)return e;const n=dc(e)&&dc(t);if(n||Oo(e)&&Oo(t)){const r=n?e:Object.keys(e),s=r.length,l=n?t:Object.keys(t),i=l.length,a=n?[]:{},u=new Set(r);let c=0;for(let f=0;f<i;f++){const p=n?f:l[f];(!n&&u.has(p)||n)&&e[p]===void 0&&t[p]===void 0?(a[p]=void 0,c++):(a[p]=oh(e[p],t[p]),a[p]===e[p]&&e[p]!==void 0&&c++)}return s===i&&c===s?e:a}return t}function _o(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function dc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oo(e){if(!fc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fc(e){return Object.prototype.toString.call(e)==="[object Object]"}function y0(e){return new Promise(t=>{setTimeout(t,e)})}function Mo(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?oh(e,t):t}function v0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function x0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wa=Symbol();function ah(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function w0(e,t){return typeof e=="function"?e(...t):!!e}var vn,At,tr,jc,j0=(jc=class extends Ps{constructor(){super();I(this,vn);I(this,At);I(this,tr);_(this,tr,t=>{if(!On&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,At)||this.setEventListener(y(this,tr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,At))==null||t.call(this),_(this,At,void 0))}setEventListener(t){var n;_(this,tr,t),(n=y(this,At))==null||n.call(this),_(this,At,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,vn)!==t&&(_(this,vn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,vn)=="boolean"?y(this,vn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},vn=new WeakMap,At=new WeakMap,tr=new WeakMap,jc),Va=new j0,nr,Ut,rr,kc,k0=(kc=class extends Ps{constructor(){super();I(this,nr,!0);I(this,Ut);I(this,rr);_(this,rr,t=>{if(!On&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Ut)||this.setEventListener(y(this,rr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Ut))==null||t.call(this),_(this,Ut,void 0))}setEventListener(t){var n;_(this,rr,t),(n=y(this,Ut))==null||n.call(this),_(this,Ut,t(this.setOnline.bind(this)))}setOnline(t){y(this,nr)!==t&&(_(this,nr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,nr)}},nr=new WeakMap,Ut=new WeakMap,rr=new WeakMap,kc),$l=new k0;function Fo(){let e,t;const n=new Promise((s,l)=>{e=s,t=l});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function S0(e){return Math.min(1e3*2**e,3e4)}function uh(e){return(e??"online")==="online"?$l.isOnline():!0}var ch=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dh(e){let t=!1,n=0,r;const s=Fo(),l=()=>s.status!=="pending",i=k=>{var S;l()||(g(new ch(k)),(S=e.abort)==null||S.call(e))},a=()=>{t=!0},u=()=>{t=!1},c=()=>Va.isFocused()&&(e.networkMode==="always"||$l.isOnline())&&e.canRun(),f=()=>uh(e.networkMode)&&e.canRun(),p=k=>{l()||(r==null||r(),s.resolve(k))},g=k=>{l()||(r==null||r(),s.reject(k))},x=()=>new Promise(k=>{var S;r=m=>{(l()||c())&&k(m)},(S=e.onPause)==null||S.call(e)}).then(()=>{var k;r=void 0,l()||(k=e.onContinue)==null||k.call(e)}),w=()=>{if(l())return;let k;const S=n===0?e.initialPromise:void 0;try{k=S??e.fn()}catch(m){k=Promise.reject(m)}Promise.resolve(k).then(p).catch(m=>{var E;if(l())return;const h=e.retry??(On?0:3),d=e.retryDelay??S0,v=typeof d=="function"?d(n,m):d,N=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,m);if(t||!N){g(m);return}n++,(E=e.onFail)==null||E.call(e,n,m),y0(v).then(()=>c()?void 0:x()).then(()=>{t?g(m):w()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:u,canStart:f,start:()=>(f()?w():x().then(w),s)}}var N0=e=>setTimeout(e,0);function C0(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=N0;const l=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(u=>{n(u)})})})};return{batch:a=>{let u;t++;try{u=a()}finally{t--,t||i()}return u},batchCalls:a=>(...u)=>{l(()=>{a(...u)})},schedule:l,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var pe=C0(),xn,Sc,fh=(Sc=class{constructor(){I(this,xn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),To(this.gcTime)&&_(this,xn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(On?1/0:5*60*1e3))}clearGcTimeout(){y(this,xn)&&(clearTimeout(y(this,xn)),_(this,xn,void 0))}},xn=new WeakMap,Sc),sr,lr,Be,wn,ce,ms,jn,Ze,yt,Nc,E0=(Nc=class extends fh{constructor(t){super();I(this,Ze);I(this,sr);I(this,lr);I(this,Be);I(this,wn);I(this,ce);I(this,ms);I(this,jn);_(this,jn,!1),_(this,ms,t.defaultOptions),this.setOptions(t.options),this.observers=[],_(this,wn,t.client),_(this,Be,y(this,wn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_(this,sr,b0(this.options)),this.state=t.state??y(this,sr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,ce))==null?void 0:t.promise}setOptions(t){this.options={...y(this,ms),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Be).remove(this)}setData(t,n){const r=Mo(this.state.data,t,this.options);return U(this,Ze,yt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){U(this,Ze,yt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=y(this,ce))==null?void 0:r.promise;return(s=y(this,ce))==null||s.cancel(t),n?n.then(Pe).catch(Pe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,sr))}isActive(){return this.observers.some(t=>He(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>rn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ih(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ce))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ce))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Be).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,ce)&&(y(this,jn)?y(this,ce).cancel({revert:!0}):y(this,ce).cancelRetry()),this.scheduleGc()),y(this,Be).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||U(this,Ze,yt).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,f,p,g,x,w,k,S,m,h,d;if(this.state.fetchStatus!=="idle"&&((u=y(this,ce))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,ce))return y(this,ce).continueRetry(),y(this,ce).promise}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(N=>N.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,s=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(_(this,jn,!0),r.signal)})},l=()=>{const v=ah(this.options,n),E=(()=>{const P={client:y(this,wn),queryKey:this.queryKey,meta:this.meta};return s(P),P})();return _(this,jn,!1),this.options.persister?this.options.persister(v,E,this):v(E)},a=(()=>{const v={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,wn),state:this.state,fetchFn:l};return s(v),v})();(c=this.options.behavior)==null||c.onFetch(a,this),_(this,lr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&U(this,Ze,yt).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta}),_(this,ce,dh({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onFail:(v,N)=>{U(this,Ze,yt).call(this,{type:"failed",failureCount:v,error:N})},onPause:()=>{U(this,Ze,yt).call(this,{type:"pause"})},onContinue:()=>{U(this,Ze,yt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const v=await y(this,ce).start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),(x=(g=y(this,Be).config).onSuccess)==null||x.call(g,v,this),(k=(w=y(this,Be).config).onSettled)==null||k.call(w,v,this.state.error,this),v}catch(v){if(v instanceof ch){if(v.silent)return y(this,ce).promise;if(v.revert){if(this.setState({...y(this,lr),fetchStatus:"idle"}),this.state.data===void 0)throw v;return this.state.data}}throw U(this,Ze,yt).call(this,{type:"error",error:v}),(m=(S=y(this,Be).config).onError)==null||m.call(S,v,this),(d=(h=y(this,Be).config).onSettled)==null||d.call(h,this.state.data,v,this),v}finally{this.scheduleGc()}}},sr=new WeakMap,lr=new WeakMap,Be=new WeakMap,wn=new WeakMap,ce=new WeakMap,ms=new WeakMap,jn=new WeakMap,Ze=new WeakSet,yt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...hh(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _(this,lr,t.manual?s:void 0),s;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),pe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Be).notify({query:this,type:"updated",action:t})})},Nc);function hh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:uh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function b0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ut,Cc,P0=(Cc=class extends Ps{constructor(t={}){super();I(this,ut);this.config=t,_(this,ut,new Map)}build(t,n,r){const s=n.queryKey,l=n.queryHash??Ha(s,n);let i=this.get(l);return i||(i=new E0({client:t,queryKey:s,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){y(this,ut).has(t.queryHash)||(y(this,ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ut).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){pe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ut).get(t)}getAll(){return[...y(this,ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>uc(t,r)):n}notify(t){pe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){pe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){pe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ut=new WeakMap,Cc),ct,je,kn,dt,Ft,Ec,R0=(Ec=class extends fh{constructor(t){super();I(this,dt);I(this,ct);I(this,je);I(this,kn);this.mutationId=t.mutationId,_(this,je,t.mutationCache),_(this,ct,[]),this.state=t.state||L0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,ct).includes(t)||(y(this,ct).push(t),this.clearGcTimeout(),y(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_(this,ct,y(this,ct).filter(n=>n!==t)),this.scheduleGc(),y(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,ct).length||(this.state.status==="pending"?this.scheduleGc():y(this,je).remove(this))}continue(){var t;return((t=y(this,kn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,i,a,u,c,f,p,g,x,w,k,S,m,h,d,v,N,E,P,b;const n=()=>{U(this,dt,Ft).call(this,{type:"continue"})};_(this,kn,dh({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,L)=>{U(this,dt,Ft).call(this,{type:"failed",failureCount:O,error:L})},onPause:()=>{U(this,dt,Ft).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,je).canRun(this)}));const r=this.state.status==="pending",s=!y(this,kn).canStart();try{if(r)n();else{U(this,dt,Ft).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(l=y(this,je).config).onMutate)==null?void 0:i.call(l,t,this));const L=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t));L!==this.state.context&&U(this,dt,Ft).call(this,{type:"pending",context:L,variables:t,isPaused:s})}const O=await y(this,kn).start();return await((f=(c=y(this,je).config).onSuccess)==null?void 0:f.call(c,O,t,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,O,t,this.state.context)),await((w=(x=y(this,je).config).onSettled)==null?void 0:w.call(x,O,null,this.state.variables,this.state.context,this)),await((S=(k=this.options).onSettled)==null?void 0:S.call(k,O,null,t,this.state.context)),U(this,dt,Ft).call(this,{type:"success",data:O}),O}catch(O){try{throw await((h=(m=y(this,je).config).onError)==null?void 0:h.call(m,O,t,this.state.context,this)),await((v=(d=this.options).onError)==null?void 0:v.call(d,O,t,this.state.context)),await((E=(N=y(this,je).config).onSettled)==null?void 0:E.call(N,void 0,O,this.state.variables,this.state.context,this)),await((b=(P=this.options).onSettled)==null?void 0:b.call(P,void 0,O,t,this.state.context)),O}finally{U(this,dt,Ft).call(this,{type:"error",error:O})}}finally{y(this,je).runNext(this)}}},ct=new WeakMap,je=new WeakMap,kn=new WeakMap,dt=new WeakSet,Ft=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pe.batch(()=>{y(this,ct).forEach(r=>{r.onMutationUpdate(t)}),y(this,je).notify({mutation:this,type:"updated",action:t})})},Ec);function L0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wt,et,gs,bc,T0=(bc=class extends Ps{constructor(t={}){super();I(this,wt);I(this,et);I(this,gs);this.config=t,_(this,wt,new Set),_(this,et,new Map),_(this,gs,0)}build(t,n,r){const s=new R0({mutationCache:this,mutationId:++Os(this,gs)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){y(this,wt).add(t);const n=Xs(t);if(typeof n=="string"){const r=y(this,et).get(n);r?r.push(t):y(this,et).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,wt).delete(t)){const n=Xs(t);if(typeof n=="string"){const r=y(this,et).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&y(this,et).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Xs(t);if(typeof n=="string"){const r=y(this,et).get(n),s=r==null?void 0:r.find(l=>l.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Xs(t);if(typeof n=="string"){const s=(r=y(this,et).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pe.batch(()=>{y(this,wt).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,wt).clear(),y(this,et).clear()})}getAll(){return Array.from(y(this,wt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cc(n,r))}findAll(t={}){return this.getAll().filter(n=>cc(t,n))}notify(t){pe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return pe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pe))))}},wt=new WeakMap,et=new WeakMap,gs=new WeakMap,bc);function Xs(e){var t;return(t=e.options.scope)==null?void 0:t.id}function hc(e){return{onFetch:(t,n)=>{var f,p,g,x,w;const r=t.options,s=(g=(p=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,l=((x=t.state.data)==null?void 0:x.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},u=0;const c=async()=>{let k=!1;const S=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(t.signal.aborted?k=!0:t.signal.addEventListener("abort",()=>{k=!0}),t.signal)})},m=ah(t.options,t.fetchOptions),h=async(d,v,N)=>{if(k)return Promise.reject();if(v==null&&d.pages.length)return Promise.resolve(d);const P=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:v,direction:N?"backward":"forward",meta:t.options.meta};return S(V),V})(),b=await m(P),{maxPages:O}=t.options,L=N?x0:v0;return{pages:L(d.pages,b,O),pageParams:L(d.pageParams,v,O)}};if(s&&l.length){const d=s==="backward",v=d?_0:pc,N={pages:l,pageParams:i},E=v(r,N);a=await h(N,E,d)}else{const d=e??l.length;do{const v=u===0?i[0]??r.initialPageParam:pc(r,a);if(u>0&&v==null)break;a=await h(a,v),u++}while(u<d)}return a};t.options.persister?t.fetchFn=()=>{var k,S;return(S=(k=t.options).persister)==null?void 0:S.call(k,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function pc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _0(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ne,Qt,Bt,ir,or,Ht,ar,ur,Pc,O0=(Pc=class{constructor(e={}){I(this,ne);I(this,Qt);I(this,Bt);I(this,ir);I(this,or);I(this,Ht);I(this,ar);I(this,ur);_(this,ne,e.queryCache||new P0),_(this,Qt,e.mutationCache||new T0),_(this,Bt,e.defaultOptions||{}),_(this,ir,new Map),_(this,or,new Map),_(this,Ht,0)}mount(){Os(this,Ht)._++,y(this,Ht)===1&&(_(this,ar,Va.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onFocus())})),_(this,ur,$l.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onOnline())})))}unmount(){var e,t;Os(this,Ht)._--,y(this,Ht)===0&&((e=y(this,ar))==null||e.call(this),_(this,ar,void 0),(t=y(this,ur))==null||t.call(this),_(this,ur,void 0))}isFetching(e){return y(this,ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Qt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(rn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=y(this,ne).get(r.queryHash),l=s==null?void 0:s.state.data,i=g0(t,l);if(i!==void 0)return y(this,ne).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return pe.batch(()=>y(this,ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ne);pe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ne);return pe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=pe.batch(()=>y(this,ne).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Pe).catch(Pe)}invalidateQueries(e,t={}){return pe.batch(()=>(y(this,ne).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=pe.batch(()=>y(this,ne).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let l=s.fetch(void 0,n);return n.throwOnError||(l=l.catch(Pe)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Pe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ne).build(this,t);return n.isStaleByTime(rn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pe).catch(Pe)}fetchInfiniteQuery(e){return e.behavior=hc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pe).catch(Pe)}ensureInfiniteQueryData(e){return e.behavior=hc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $l.isOnline()?y(this,Qt).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ne)}getMutationCache(){return y(this,Qt)}getDefaultOptions(){return y(this,Bt)}setDefaultOptions(e){_(this,Bt,e)}setQueryDefaults(e,t){y(this,ir).set(hs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,ir).values()],n={};return t.forEach(r=>{ps(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,or).set(hs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,or).values()],n={};return t.forEach(r=>{ps(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Bt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ha(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Wa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Bt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ne).clear(),y(this,Qt).clear()}},ne=new WeakMap,Qt=new WeakMap,Bt=new WeakMap,ir=new WeakMap,or=new WeakMap,Ht=new WeakMap,ar=new WeakMap,ur=new WeakMap,Pc),be,Q,ys,ke,Sn,cr,jt,Wt,vs,dr,fr,Nn,Cn,Vt,hr,H,zr,Do,Io,$o,zo,Ao,Uo,Qo,ph,Rc,M0=(Rc=class extends Ps{constructor(t,n){super();I(this,H);I(this,be);I(this,Q);I(this,ys);I(this,ke);I(this,Sn);I(this,cr);I(this,jt);I(this,Wt);I(this,vs);I(this,dr);I(this,fr);I(this,Nn);I(this,Cn);I(this,Vt);I(this,hr,new Set);this.options=n,_(this,be,t),_(this,Wt,null),_(this,jt,Fo()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,Q).addObserver(this),mc(y(this,Q),this.options)?U(this,H,zr).call(this):this.updateResult(),U(this,H,zo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bo(y(this,Q),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bo(y(this,Q),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,U(this,H,Ao).call(this),U(this,H,Uo).call(this),y(this,Q).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,Q);if(this.options=y(this,be).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof He(this.options.enabled,y(this,Q))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");U(this,H,Qo).call(this),y(this,Q).setOptions(this.options),n._defaulted&&!_o(this.options,n)&&y(this,be).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,Q),observer:this});const s=this.hasListeners();s&&gc(y(this,Q),r,this.options,n)&&U(this,H,zr).call(this),this.updateResult(),s&&(y(this,Q)!==r||He(this.options.enabled,y(this,Q))!==He(n.enabled,y(this,Q))||rn(this.options.staleTime,y(this,Q))!==rn(n.staleTime,y(this,Q)))&&U(this,H,Do).call(this);const l=U(this,H,Io).call(this);s&&(y(this,Q)!==r||He(this.options.enabled,y(this,Q))!==He(n.enabled,y(this,Q))||l!==y(this,Vt))&&U(this,H,$o).call(this,l)}getOptimisticResult(t){const n=y(this,be).getQueryCache().build(y(this,be),t),r=this.createResult(n,t);return D0(this,r)&&(_(this,ke,r),_(this,cr,this.options),_(this,Sn,y(this,Q).state)),r}getCurrentResult(){return y(this,ke)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&!this.options.experimental_prefetchInRender&&y(this,jt).status==="pending"&&y(this,jt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(t){y(this,hr).add(t)}getCurrentQuery(){return y(this,Q)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,be).defaultQueryOptions(t),r=y(this,be).getQueryCache().build(y(this,be),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return U(this,H,zr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,ke)))}createResult(t,n){var O;const r=y(this,Q),s=this.options,l=y(this,ke),i=y(this,Sn),a=y(this,cr),c=t!==r?t.state:y(this,ys),{state:f}=t;let p={...f},g=!1,x;if(n._optimisticResults){const L=this.hasListeners(),V=!L&&mc(t,n),oe=L&&gc(t,r,n,s);(V||oe)&&(p={...p,...hh(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:k,status:S}=p;x=p.data;let m=!1;if(n.placeholderData!==void 0&&x===void 0&&S==="pending"){let L;l!=null&&l.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(L=l.data,m=!0):L=typeof n.placeholderData=="function"?n.placeholderData((O=y(this,fr))==null?void 0:O.state.data,y(this,fr)):n.placeholderData,L!==void 0&&(S="success",x=Mo(l==null?void 0:l.data,L,n),g=!0)}if(n.select&&x!==void 0&&!m)if(l&&x===(i==null?void 0:i.data)&&n.select===y(this,vs))x=y(this,dr);else try{_(this,vs,n.select),x=n.select(x),x=Mo(l==null?void 0:l.data,x,n),_(this,dr,x),_(this,Wt,null)}catch(L){_(this,Wt,L)}y(this,Wt)&&(w=y(this,Wt),x=y(this,dr),k=Date.now(),S="error");const h=p.fetchStatus==="fetching",d=S==="pending",v=S==="error",N=d&&h,E=x!==void 0,b={status:S,fetchStatus:p.fetchStatus,isPending:d,isSuccess:S==="success",isError:v,isInitialLoading:N,isLoading:N,data:x,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:k,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:h,isRefetching:h&&!d,isLoadingError:v&&!E,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:v&&E,isStale:qa(t,n),refetch:this.refetch,promise:y(this,jt),isEnabled:He(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=D=>{b.status==="error"?D.reject(b.error):b.data!==void 0&&D.resolve(b.data)},V=()=>{const D=_(this,jt,b.promise=Fo());L(D)},oe=y(this,jt);switch(oe.status){case"pending":t.queryHash===r.queryHash&&L(oe);break;case"fulfilled":(b.status==="error"||b.data!==oe.value)&&V();break;case"rejected":(b.status!=="error"||b.error!==oe.reason)&&V();break}}return b}updateResult(){const t=y(this,ke),n=this.createResult(y(this,Q),this.options);if(_(this,Sn,y(this,Q).state),_(this,cr,this.options),y(this,Sn).data!==void 0&&_(this,fr,y(this,Q)),_o(n,t))return;_(this,ke,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!y(this,hr).size)return!0;const i=new Set(l??y(this,hr));return this.options.throwOnError&&i.add("error"),Object.keys(y(this,ke)).some(a=>{const u=a;return y(this,ke)[u]!==t[u]&&i.has(u)})};U(this,H,ph).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&U(this,H,zo).call(this)}},be=new WeakMap,Q=new WeakMap,ys=new WeakMap,ke=new WeakMap,Sn=new WeakMap,cr=new WeakMap,jt=new WeakMap,Wt=new WeakMap,vs=new WeakMap,dr=new WeakMap,fr=new WeakMap,Nn=new WeakMap,Cn=new WeakMap,Vt=new WeakMap,hr=new WeakMap,H=new WeakSet,zr=function(t){U(this,H,Qo).call(this);let n=y(this,Q).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pe)),n},Do=function(){U(this,H,Ao).call(this);const t=rn(this.options.staleTime,y(this,Q));if(On||y(this,ke).isStale||!To(t))return;const r=ih(y(this,ke).dataUpdatedAt,t)+1;_(this,Nn,setTimeout(()=>{y(this,ke).isStale||this.updateResult()},r))},Io=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,Q)):this.options.refetchInterval)??!1},$o=function(t){U(this,H,Uo).call(this),_(this,Vt,t),!(On||He(this.options.enabled,y(this,Q))===!1||!To(y(this,Vt))||y(this,Vt)===0)&&_(this,Cn,setInterval(()=>{(this.options.refetchIntervalInBackground||Va.isFocused())&&U(this,H,zr).call(this)},y(this,Vt)))},zo=function(){U(this,H,Do).call(this),U(this,H,$o).call(this,U(this,H,Io).call(this))},Ao=function(){y(this,Nn)&&(clearTimeout(y(this,Nn)),_(this,Nn,void 0))},Uo=function(){y(this,Cn)&&(clearInterval(y(this,Cn)),_(this,Cn,void 0))},Qo=function(){const t=y(this,be).getQueryCache().build(y(this,be),this.options);if(t===y(this,Q))return;const n=y(this,Q);_(this,Q,t),_(this,ys,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ph=function(t){pe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,ke))}),y(this,be).getQueryCache().notify({query:y(this,Q),type:"observerResultsUpdated"})})},Rc);function F0(e,t){return He(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mc(e,t){return F0(e,t)||e.state.data!==void 0&&Bo(e,t,t.refetchOnMount)}function Bo(e,t,n){if(He(t.enabled,e)!==!1&&rn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qa(e,t)}return!1}function gc(e,t,n,r){return(e!==t||He(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qa(e,n)}function qa(e,t){return He(t.enabled,e)!==!1&&e.isStaleByTime(rn(t.staleTime,e))}function D0(e,t){return!_o(e.getCurrentResult(),t)}var mh=j.createContext(void 0),ri=e=>{const t=j.useContext(mh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},I0=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(mh.Provider,{value:e,children:t})),gh=j.createContext(!1),$0=()=>j.useContext(gh);gh.Provider;function z0(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A0=j.createContext(z0()),U0=()=>j.useContext(A0),Q0=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},B0=e=>{j.useEffect(()=>{e.clearReset()},[e])},H0=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||w0(n,[e.error,r])),W0=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},V0=(e,t)=>e.isLoading&&e.isFetching&&!t,q0=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function K0(e,t,n){var p,g,x,w,k;const r=$0(),s=U0(),l=ri(),i=l.defaultQueryOptions(e);(g=(p=l.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||g.call(p,i),i._optimisticResults=r?"isRestoring":"optimistic",W0(i),Q0(i,s),B0(s);const a=!l.getQueryCache().get(i.queryHash),[u]=j.useState(()=>new t(l,i)),c=u.getOptimisticResult(i),f=!r&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(S=>{const m=f?u.subscribe(pe.batchCalls(S)):Pe;return u.updateResult(),m},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),j.useEffect(()=>{u.setOptions(i)},[i,u]),q0(i,c))throw yc(i,u,s);if(H0({result:c,errorResetBoundary:s,throwOnError:i.throwOnError,query:l.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw c.error;if((w=(x=l.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||w.call(x,i,c),i.experimental_prefetchInRender&&!On&&V0(c,r)){const S=a?yc(i,u,s):(k=l.getQueryCache().get(i.queryHash))==null?void 0:k.promise;S==null||S.catch(Pe).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?c:u.trackResult(c)}function Rs(e,t){return K0(e,M0)}const G0="",J0=e=>Rs({queryKey:["queue",e],queryFn:async()=>{const t=await fetch(`${G0}/console/queues/${e}`);if(!t.ok)throw new Error(`Failed to fetch queue ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),Y0="",X0=e=>Rs({queryKey:["schedule",e],queryFn:async()=>{const t=await fetch(`${Y0}/console/schedules/${e}`);if(!t.ok)throw new Error(`Failed to fetch schedule ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),Z0="",yh=()=>Rs({queryKey:["modules"],queryFn:async()=>{const e=await fetch(`${Z0}/console/modules`);if(!e.ok)throw new Error("Failed to fetch modules");return e.json()},refetchInterval:3e3}),Ho="",ey=(e={})=>{const{limit:t=100,level:n,module:r,reqId:s}=e,l=ri(),i=j.useRef(null),a=Rs({queryKey:["logs",t,n,r,s],queryFn:async()=>{const u=new URLSearchParams;u.append("limit",t.toString()),n&&u.append("level",n),r&&u.append("module",r),s&&u.append("reqId",s);const c=await fetch(`${Ho}/console/logs?${u}`);if(!c.ok)throw new Error("Failed to fetch logs");return c.json()},refetchInterval:5e3});return j.useEffect(()=>{i.current&&i.current.close();const u=new EventSource(`${Ho}/console/logs/stream`);return i.current=u,u.onmessage=c=>{try{const f=JSON.parse(c.data);f.type==="initial"?l.setQueryData(["logs",t,n,r,s],{logs:f.logs}):f.type==="log"&&l.setQueryData(["logs",t,n,r,s],p=>p?{logs:[f.log,...p.logs].slice(0,t)}:{logs:[f.log]})}catch(f){console.error("Failed to parse SSE data:",f)}},u.onerror=c=>{console.error("SSE connection error:",c)},()=>{i.current&&(i.current.close(),i.current=null)}},[l,t,n,r,s]),a},ty=()=>{const e=ri();return{clearLogs:async()=>{const n=await fetch(`${Ho}/console/logs`,{method:"DELETE"});if(n.ok)return e.invalidateQueries({queryKey:["logs"]}),n.json();throw new Error("Failed to clear logs")}}},ny=e=>Rs({queryKey:["websockets",e],queryFn:async()=>{const t=e.replace(/^\//,""),n=await fetch(`/console/websockets/${t}`);if(!n.ok)throw new Error("Failed to fetch websocket path");return n.json()},refetchInterval:3e3,enabled:!!e}),ry=()=>{const e=ri();return{send:async(n,r)=>{const s=await fetch(`/console/websockets/${n}/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!s.ok){const l=await s.json().catch(()=>({error:"Unknown error"}));throw new Error(l.error||"Failed to send message")}return e.invalidateQueries({queryKey:["websockets"]}),s.json()}}},sy=({module:e,onSelect:t})=>{var r,s;const n=e.routes.length+e.queues.length+e.schedules.length+(((r=e.websockets)==null?void 0:r.length)??0);return o.jsxs("div",{className:"group relative bg-white rounded-xl shadow-sm border border-gray-200 hover:shadow-lg hover:border-blue-300 transition-all duration-200 cursor-pointer overflow-hidden",onClick:t,children:[o.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-blue-500 to-purple-600"}),o.jsxs("div",{className:"p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center",children:o.jsx("span",{className:"text-white font-bold text-lg",children:e.name.charAt(0).toUpperCase()})}),o.jsxs("div",{children:[o.jsx("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-blue-600 transition-colors",children:e.name}),o.jsxs("p",{className:"text-sm text-gray-500",children:[n," total resources"]})]})]}),o.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:o.jsx("svg",{className:"w-5 h-5 text-blue-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{className:"text-center p-3 bg-green-50 rounded-lg border border-green-100",children:[o.jsx("div",{className:"text-2xl font-bold text-green-600 mb-1",children:e.routes.length}),o.jsx("div",{className:"text-xs font-medium text-green-700 uppercase tracking-wide",children:"HTTP Routes"})]}),o.jsxs("div",{className:"text-center p-3 bg-blue-50 rounded-lg border border-blue-100",children:[o.jsx("div",{className:"text-2xl font-bold text-blue-600 mb-1",children:e.queues.length}),o.jsx("div",{className:"text-xs font-medium text-blue-700 uppercase tracking-wide",children:"Event Queues"})]}),o.jsxs("div",{className:"text-center p-3 bg-purple-50 rounded-lg border border-purple-100",children:[o.jsx("div",{className:"text-2xl font-bold text-purple-600 mb-1",children:e.schedules.length}),o.jsx("div",{className:"text-xs font-medium text-purple-700 uppercase tracking-wide",children:"Schedules"})]}),o.jsxs("div",{className:"text-center p-3 bg-indigo-50 rounded-lg border border-indigo-100",children:[o.jsx("div",{className:"text-2xl font-bold text-indigo-600 mb-1",children:((s=e.websockets)==null?void 0:s.length)??0}),o.jsx("div",{className:"text-xs font-medium text-indigo-700 uppercase tracking-wide",children:"WebSockets"})]})]}),o.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:o.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[o.jsx("span",{children:"Click to explore module"}),o.jsxs("div",{className:"flex items-center space-x-1",children:[o.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}),o.jsx("span",{children:"Active"})]})]})})]})]})},ly=({onModuleSelect:e})=>{const{data:t,isLoading:n,error:r}=yh();if(n)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading modules..."})});if(r)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"text-red-600",children:["Error loading modules: ",r.message]})});const s=(t==null?void 0:t.modules)||[];return o.jsxs("div",{className:"space-y-8",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Your Modules"}),o.jsx("p",{className:"text-gray-600",children:"Explore and manage your CloudNux modules"})]}),s.length===0?o.jsxs("div",{className:"text-center py-16",children:[o.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:o.jsx("svg",{className:"w-10 h-10 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})})}),o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No modules found"}),o.jsx("p",{className:"text-gray-500 mb-4",children:"Deploy some modules to see them here"})]}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:s.map(l=>o.jsx(sy,{module:l,onSelect:()=>e(l.name)},l.name))})]})},vc=()=>{const e=_t(),t=n=>{e(`/modules/${n}`)};return o.jsx(ly,{onModuleSelect:t})},iy=({type:e,title:t,count:n,color:r,items:s,moduleName:l})=>{const[i,a]=j.useState(!1),u=_t(),f=(g=>{switch(g){case"green":return{bg:"bg-green-50",border:"border-green-200",header:"bg-green-100",text:"text-green-800",badge:"bg-green-500"};case"blue":return{bg:"bg-blue-50",border:"border-blue-200",header:"bg-blue-100",text:"text-blue-800",badge:"bg-blue-500"};case"purple":return{bg:"bg-purple-50",border:"border-purple-200",header:"bg-purple-100",text:"text-purple-800",badge:"bg-purple-500"};case"indigo":return{bg:"bg-indigo-50",border:"border-indigo-200",header:"bg-indigo-100",text:"text-indigo-800",badge:"bg-indigo-500"}}})(r),p=(g,x)=>{if(e==="http"){const w=g;return o.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-green-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/routes?url=${encodeURIComponent(w.url)}&method=${w.method}`),children:o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:`px-1 py-0.5 rounded text-xs font-medium ${w.method==="GET"?"bg-green-100 text-green-700":w.method==="POST"?"bg-blue-100 text-blue-700":w.method==="PUT"?"bg-orange-100 text-orange-700":w.method==="DELETE"?"bg-red-100 text-red-700":"bg-gray-100 text-gray-700"}`,children:Array.isArray(w.method)?w.method.join(","):w.method}),o.jsx("span",{className:"font-mono",children:w.url})]})},x)}if(e==="queue"){const w=g;return o.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-blue-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/queues/${w.name}`),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium",children:w.name}),w.stats&&o.jsxs("div",{className:"flex space-x-1",children:[o.jsxs("span",{className:"text-green-600",children:["I:",w.stats.incoming]}),o.jsxs("span",{className:"text-yellow-600",children:["P:",w.stats.processing]}),o.jsxs("span",{className:"text-red-600",children:["D:",w.stats.dlq]})]})]})},x)}if(e==="schedule"){const w=g;return o.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-purple-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/schedules/${w.name}`),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:`px-1 py-0.5 rounded text-xs ${w.isRunning?"bg-yellow-100 text-yellow-700":w.enabled?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,children:w.isRunning?"RUN":w.enabled?"ON":"OFF"}),o.jsx("span",{className:"font-medium",children:w.name})]}),w.cronExpression&&o.jsx("span",{className:"font-mono text-gray-600",children:w.cronExpression})]})},x)}if(e==="websocket"){const w=g;return o.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-indigo-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/websockets/${w.path.replace(/^\//,"")}`),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-mono font-medium",children:w.path}),o.jsxs("span",{className:"text-indigo-600",children:[w.connectionCount," conn"]})]})},x)}return null};return o.jsxs("div",{className:`border rounded-lg overflow-hidden ${f.border} ${f.bg}`,children:[o.jsx("div",{className:`p-4 cursor-pointer hover:opacity-80 transition-opacity ${f.header}`,onClick:()=>a(!i),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("span",{className:`w-3 h-3 rounded-full ${f.badge}`}),o.jsx("span",{className:`font-medium ${f.text}`,children:t})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:`text-2xl font-bold ${f.text}`,children:n}),o.jsx("span",{className:"text-gray-400 text-sm",children:i?"▼":"▶"})]})]})}),i&&n>0&&o.jsx("div",{className:"p-4 space-y-2 max-h-64 overflow-y-auto",children:s.map((g,x)=>p(g,x))})]})},Ls=({moduleName:e,title:t})=>{const[n,r]=j.useState(!0),[s,l]=j.useState(""),[i,a]=j.useState(""),u=j.useRef(null),c=j.useRef(null),{data:f,isLoading:p}=ey({limit:200,level:i||void 0,module:e}),{clearLogs:g}=ty(),x=(f==null?void 0:f.logs)||[];j.useEffect(()=>{n&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[x,n]);const w=()=>{if(c.current){const{scrollTop:d,scrollHeight:v,clientHeight:N}=c.current,E=d+N>=v-10;r(E)}},k=d=>{switch(d.toLowerCase()){case"fatal":return"text-red-500";case"error":return"text-red-400";case"warn":return"text-yellow-400";case"info":return"text-blue-400";case"debug":return"text-gray-400";case"trace":return"text-gray-500";default:return"text-gray-300"}},S=d=>{switch(d.toLowerCase()){case"fatal":return"bg-red-900 text-red-300";case"error":return"bg-red-800 text-red-200";case"warn":return"bg-yellow-800 text-yellow-200";case"info":return"bg-blue-800 text-blue-200";case"debug":return"bg-gray-700 text-gray-300";case"trace":return"bg-gray-800 text-gray-400";default:return"bg-gray-700 text-gray-300"}},m=x.filter(d=>{var N,E;const v=s.toLowerCase();return v?d.message.toLowerCase().includes(v)||d.levelName.toLowerCase().includes(v)||((N=d.module)==null?void 0:N.toLowerCase().includes(v))||((E=d.reqId)==null?void 0:E.toLowerCase().includes(v)):!0}),h=async()=>{try{await g()}catch(d){console.error("Failed to clear logs:",d)}};return o.jsxs("div",{className:"bg-gray-900 rounded-lg border border-gray-700 overflow-hidden",children:[o.jsx("div",{className:"bg-gray-800 px-4 py-3 border-b border-gray-700",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsxs("div",{className:"flex space-x-1",children:[o.jsx("div",{className:"w-3 h-3 bg-red-500 rounded-full"}),o.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full"}),o.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"})]}),o.jsx("span",{className:"text-gray-300 text-sm font-medium",children:t||(e?`${e} — Logs`:"Logs")}),m.length>0&&o.jsxs("span",{className:"text-xs text-gray-500",children:[m.length," entries"]})]}),o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("input",{type:"text",placeholder:"Filter...",value:s,onChange:d=>l(d.target.value),className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 border border-gray-600 rounded focus:outline-none focus:border-blue-500 w-36"}),o.jsxs("select",{value:i,onChange:d=>a(d.target.value),className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 border border-gray-600 rounded focus:outline-none focus:border-blue-500",children:[o.jsx("option",{value:"",children:"All Levels"}),o.jsx("option",{value:"fatal",children:"Fatal"}),o.jsx("option",{value:"error",children:"Error"}),o.jsx("option",{value:"warn",children:"Warn"}),o.jsx("option",{value:"info",children:"Info"}),o.jsx("option",{value:"debug",children:"Debug"}),o.jsx("option",{value:"trace",children:"Trace"})]}),o.jsx("button",{onClick:h,className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 rounded hover:bg-gray-600",children:"Clear"}),o.jsxs("label",{className:"flex items-center space-x-1 cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:n,onChange:d=>r(d.target.checked),className:"text-blue-500"}),o.jsx("span",{className:"text-xs text-gray-400",children:"Auto-scroll"})]})]})]})}),o.jsx("div",{ref:c,onScroll:w,className:"bg-gray-900 p-3 h-96 overflow-y-auto font-mono text-xs",children:p?o.jsx("div",{className:"text-gray-500 text-center py-8",children:"Loading logs..."}):m.length===0?o.jsx("div",{className:"text-gray-500 text-center py-8",children:s||i?"No logs match your filters":"No logs yet"}):o.jsxs("div",{className:"space-y-0.5",children:[m.map(d=>o.jsxs("div",{className:"flex items-start gap-2 hover:bg-gray-800 px-2 py-0.5 rounded group",children:[o.jsx("span",{className:"text-gray-600 shrink-0 tabular-nums",children:new Date(d.timestamp).toLocaleTimeString("en-US",{hour12:!1})}),o.jsx("span",{className:`shrink-0 uppercase font-bold px-1 rounded leading-4 ${S(d.levelName)}`,children:d.levelName.slice(0,4)}),d.module&&o.jsxs("span",{className:"text-purple-400 shrink-0 font-medium",children:["[",d.module,"]"]}),o.jsx("span",{className:`break-all flex-1 ${k(d.levelName)}`,children:d.message}),d.reqId&&o.jsx("span",{className:"text-gray-700 group-hover:text-gray-500 shrink-0 transition-colors",children:d.reqId})]},d.id)),o.jsx("div",{ref:u})]})})]})},oy=({moduleName:e,onBack:t})=>{const{data:n,isLoading:r}=yh();if(r)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading module details..."})});const s=n==null?void 0:n.modules.find(p=>p.name===e);if(!s)return o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"text-red-600",children:["Module not found: ",e]}),o.jsx("button",{onClick:t,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]});const l=s.routes,i=s.queues,a=s.schedules,u=s.websockets??[],c=[l.length>0&&{type:"http",title:"HTTP Endpoints",count:l.length,color:"green",items:l},i.length>0&&{type:"queue",title:"Event Queues",count:i.length,color:"blue",items:i},a.length>0&&{type:"schedule",title:"Scheduled Jobs",count:a.length,color:"purple",items:a},u.length>0&&{type:"websocket",title:"WebSockets",count:u.length,color:"indigo",items:u}].filter(Boolean),f=c.length<=2?"md:grid-cols-2":c.length===3?"md:grid-cols-3":"md:grid-cols-4";return o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("button",{onClick:t,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"← Back"}),o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:s.name}),o.jsx("span",{className:"px-2 py-1 text-xs font-medium rounded bg-indigo-100 text-indigo-800",children:"MODULE"})]}),o.jsxs("div",{className:"flex space-x-4 text-sm text-gray-600",children:[l.length>0&&o.jsxs("span",{children:[l.length," routes"]}),i.length>0&&o.jsxs("span",{children:[i.length," queues"]}),a.length>0&&o.jsxs("span",{children:[a.length," schedules"]}),u.length>0&&o.jsxs("span",{children:[u.length," websockets"]})]})]})}),o.jsx("div",{className:`grid grid-cols-1 gap-6 ${f}`,children:c.map(p=>o.jsx(iy,{type:p.type,title:p.title,count:p.count,color:p.color,items:p.items,moduleName:e},p.type))}),o.jsx(Ls,{moduleName:e})]})},ay=()=>{const{moduleName:e}=Es(),t=_t(),n=()=>{t("/modules")};return e?o.jsx(oy,{moduleName:e,onBack:n}):o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid module name"}),o.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]})},Le=()=>`${window.location.protocol}//${window.location.host}`,uy=({moduleName:e,queueName:t,onBack:n})=>{var oe,D,Ue,Qe;const{data:r,isLoading:s,error:l}=J0(t),[i,a]=j.useState("incoming"),[u,c]=j.useState(new Set),[f,p]=j.useState(!1),[g,x]=j.useState(`{
|
|
52
|
+
"message": "",
|
|
53
|
+
"data": {}
|
|
54
|
+
}`),[w,k]=j.useState(`{
|
|
55
|
+
"custom-header": "value"
|
|
56
|
+
}`),[S,m]=j.useState(!1),[h,d]=j.useState(!1),[v,N]=j.useState(!1);if(s)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading queue details..."})});if(l||!r)return o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"text-red-600",children:["Error loading queue: ",l==null?void 0:l.message]}),o.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Module"})]});const E=async()=>{try{const M=await fetch(`/console/queues/${t}/process-dlq`);if(M.ok){const z=await M.json();alert(z.message||"DLQ processing completed")}else{const z=await M.json();alert(`Failed to process DLQ: ${z.error}`)}}catch(M){console.error("Failed to process DLQ:",M),alert("Failed to process DLQ")}},P=async()=>{if(confirm("Are you sure you want to purge all DLQ messages? This cannot be undone."))try{const M=await fetch(`/console/queues/${t}/purge-dlq`);if(M.ok){const z=await M.json();alert(z.message||"DLQ purged successfully")}else{const z=await M.json();alert(`Failed to purge DLQ: ${z.error}`)}}catch(M){console.error("Failed to purge DLQ:",M),alert("Failed to purge DLQ")}},b=async()=>{try{const M=JSON.parse(g),R={"Content-Type":"application/json",...JSON.parse(w)},F=await fetch(`/console/queues/${t}/enqueue`,{method:"POST",headers:R,body:JSON.stringify(M)});if(F.ok){const $=await F.json();alert(`Message enqueued with ID: ${$.id}`),p(!1),x(`{
|
|
57
|
+
"message": "",
|
|
58
|
+
"data": {}
|
|
59
|
+
}`),k(`{
|
|
60
|
+
"custom-header": "value"
|
|
61
|
+
}`)}else{const $=await F.json();alert(`Failed to enqueue: ${$.error}`)}}catch{alert("Invalid JSON format in message or attributes")}},O=M=>{const z=new Set(u);z.has(M)?z.delete(M):z.add(M),c(z)},L=async()=>{try{const M=await fetch(`/console/queues/${t}`,{method:"DELETE"});if(M.ok){const z=await M.json();alert(z.message||"Queue deleted successfully"),n()}else{const z=await M.json();alert(`Failed to delete queue: ${z.error}`)}}catch(M){console.error("Failed to delete queue:",M),alert("Failed to delete queue")}m(!1)},V=()=>{switch(i){case"incoming":return r.messages.incoming;case"processing":return r.messages.processing;case"dlq":return r.messages.dlq;default:return[]}};return o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{className:"flex items-center space-x-4",children:[o.jsxs("button",{onClick:n,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),o.jsxs("div",{children:[o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t}),o.jsxs("p",{className:"text-gray-600",children:["Event Queue in ",e," module"]})]})]}),o.jsxs("div",{className:"flex space-x-2",children:[o.jsx("button",{onClick:()=>p(!f),className:"px-4 py-2 bg-green-100 text-green-700 rounded hover:bg-green-200 text-sm",children:"+ Enqueue Message"}),r.stats&&r.stats.dlq>0&&o.jsxs(o.Fragment,{children:[o.jsxs("button",{onClick:E,className:"px-4 py-2 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-sm",children:["Process DLQ (",r.stats.dlq,")"]}),o.jsx("button",{onClick:P,className:"px-4 py-2 bg-red-100 text-red-700 rounded hover:bg-red-200 text-sm",children:"Purge DLQ"})]}),o.jsx("button",{onClick:()=>m(!0),className:"px-4 py-2 bg-red-100 text-red-700 rounded hover:bg-red-200 text-sm",children:"🗑️ Delete Queue"})]})]})}),S&&o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:o.jsxs("div",{className:"bg-white rounded-lg p-6 max-w-md w-full mx-4",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Delete Queue"}),o.jsxs("p",{className:"text-sm text-gray-600 mb-6",children:["Are you sure you want to delete the queue ",o.jsx("strong",{children:t}),"? This will permanently remove the queue and all its messages. This action cannot be undone."]}),o.jsxs("div",{className:"flex space-x-3",children:[o.jsx("button",{onClick:L,className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700",children:"Delete Queue"}),o.jsx("button",{onClick:()=>m(!1),className:"px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Cancel"})]})]})}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>d(!h),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Queue Endpoints"}),o.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${h?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),h&&o.jsx("div",{className:"p-6",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800",children:"POST"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/queues/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Enqueue message"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/queues/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Get queue details"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/queues/",t,"/process-dlq"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Process DLQ messages"})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/queues/",t,"/purge-dlq"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Purge DLQ messages"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/queues/dashboard"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- All queues overview"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800",children:"DELETE"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/queues/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Delete queue"})]})]})]})})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>N(!v),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Queue Configuration"}),o.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${v?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),v&&((oe=r.stats)==null?void 0:oe.configuration)&&o.jsx("div",{className:"p-6",children:o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-semibold text-gray-800 mb-3",children:"Processing Configuration"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Batch Size"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.batchSize," messages"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Batch Window"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.batchWindowMs,"ms"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Max Retries"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.maxRetries," attempts"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Parallel Processing"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.parallel?"Enabled":"Disabled"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Max Concurrent"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.maxConcurrent," workers"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Retry Backoff"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.retryBackoff?"Enabled":"Disabled"})]})]})]}),r.stats.configuration.persistence&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-semibold text-gray-800 mb-3",children:"Persistence Configuration"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Persistence"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.enabled?"Enabled":"Disabled"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Data Directory"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border font-mono",children:r.stats.configuration.persistence.directory})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Save Interval"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.persistence.saveInterval,"ms"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Save on Shutdown"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.saveOnShutdown?"Enabled":"Disabled"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Load on Startup"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.loadOnStartup?"Enabled":"Disabled"})]})]})]})]})})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Incoming Messages"}),o.jsx("p",{className:"text-3xl font-bold text-green-600",children:(D=r==null?void 0:r.stats)==null?void 0:D.incoming})]}),o.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Processing"}),o.jsx("p",{className:"text-3xl font-bold text-yellow-600",children:(Ue=r==null?void 0:r.stats)==null?void 0:Ue.processing})]}),o.jsx("div",{className:"w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Dead Letter Queue"}),o.jsx("p",{className:"text-3xl font-bold text-red-600",children:(Qe=r==null?void 0:r.stats)==null?void 0:Qe.dlq})]}),o.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})})]})})]}),f&&o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Enqueue New Message"}),o.jsx("button",{onClick:()=>p(!1),className:"text-gray-400 hover:text-gray-600",children:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Message JSON"}),o.jsx("textarea",{value:g,onChange:M=>x(M.target.value),className:"w-full h-32 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter message JSON..."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Message Attributes (Headers)"}),o.jsx("textarea",{value:w,onChange:M=>k(M.target.value),className:"w-full h-24 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter attributes JSON..."}),o.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Custom headers/attributes to include with the message"})]}),o.jsxs("div",{className:"flex space-x-3",children:[o.jsx("button",{onClick:b,className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",children:"Enqueue Message"}),o.jsx("button",{onClick:()=>p(!1),className:"px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Cancel"})]})]})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"border-b border-gray-200",children:o.jsx("nav",{className:"flex space-x-8 px-6",children:["incoming","processing","dlq"].map(M=>{var z,R,F;return o.jsxs("button",{onClick:()=>a(M),className:`py-4 px-1 border-b-2 font-medium text-sm capitalize ${i===M?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[M," (",M==="incoming"?(z=r==null?void 0:r.stats)==null?void 0:z.incoming:M==="processing"?(R=r==null?void 0:r.stats)==null?void 0:R.processing:(F=r==null?void 0:r.stats)==null?void 0:F.dlq,")"]},M)})})}),o.jsx("div",{className:"p-6",children:o.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:V().length===0?o.jsxs("div",{className:"text-center py-8 text-gray-500",children:["No messages in ",i," queue"]}):V().map((M,z)=>{var F;const R=u.has(M.id);return o.jsxs("div",{className:"border border-gray-200 rounded bg-gray-50",children:[o.jsxs("div",{className:"p-4",children:[o.jsxs("div",{className:"flex items-start justify-between mb-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsxs("button",{onClick:()=>O(M.id),className:"flex items-center space-x-1 text-xs font-mono text-gray-500 hover:text-gray-700",children:[o.jsx("svg",{className:`w-4 h-4 transition-transform ${R?"rotate-90":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),o.jsxs("span",{children:["ID: ",M.id]})]}),M.error&&o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800",children:"Error"}),M.reprocessed&&o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800",children:"Reprocessed"})]}),o.jsx("span",{className:"text-xs text-gray-500",children:new Date(M.timestamp||Date.now()).toLocaleString()})]}),!R&&o.jsx("div",{className:"text-sm text-gray-600 truncate",children:((F=M.payload)==null?void 0:F.message)||JSON.stringify(M.payload).substring(0,80)+"..."})]}),R&&o.jsx("div",{className:"border-t border-gray-200 p-4 bg-white",children:o.jsxs("div",{className:"space-y-3",children:[M.payload&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Payload:"}),o.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto",children:JSON.stringify(M.payload,null,2)})]}),M.error&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-red-600 mb-1",children:"Error:"}),o.jsx("div",{className:"text-sm bg-red-50 p-3 rounded border text-red-800",children:M.error})]}),M.attempts&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Attempts:"}),o.jsx("div",{className:"text-sm text-gray-700",children:M.attempts})]}),M.attributes&&Object.keys(M.attributes).length>0&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Headers:"}),o.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto",children:JSON.stringify(M.attributes,null,2)})]})]})})]},z)})})})]}),o.jsx(Ls,{moduleName:e,title:`${t} Queue Logs`})]})},cy=()=>{const{moduleName:e,queueName:t}=Es(),n=_t(),r=()=>{n(`/modules/${e}`)};return!e||!t?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid queue parameters"}),o.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):o.jsx(uy,{moduleName:e,queueName:t,onBack:r})},dy=({moduleName:e,scheduleName:t,onBack:n})=>{const{data:r,isLoading:s,error:l}=X0(t);if(s)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading schedule details..."})});if(l||!r)return o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"text-red-600",children:["Error loading schedule: ",l==null?void 0:l.message]}),o.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Module"})]});const i=async()=>{try{const c=await fetch(`/console/schedules/${t}/trigger`,{method:"POST"});if(c.ok){const f=await c.json();alert(f.message||"Schedule triggered successfully")}else{const f=await c.json();alert(`Failed to trigger schedule: ${f.error}`)}}catch(c){console.error("Failed to trigger schedule:",c),alert("Failed to trigger schedule")}},a=async()=>{try{const c=r.job.enabled?"disable":"enable",f=await fetch(`/console/schedules/${t}/${c}`,{method:"PUT"});if(f.ok){const p=await f.json();alert(p.message||`Schedule ${c}d successfully`)}else{const p=await f.json();alert(`Failed to ${c} schedule: ${p.error}`)}}catch(c){console.error("Failed to toggle schedule:",c),alert("Failed to toggle schedule")}},u=c=>{const f=new Date(c),p=new Date,g=f.getTime()-p.getTime(),x=Math.floor(g/1e3),w=Math.floor(x/60),k=Math.floor(w/60),S=Math.floor(k/24);return S>0?`in ${S} days`:k>0?`in ${k} hours`:w>0?`in ${w} minutes`:x>0?`in ${x} seconds`:"now"};return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{className:"flex items-center space-x-4",children:[o.jsxs("button",{onClick:n,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),o.jsxs("div",{children:[o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t}),o.jsxs("p",{className:"text-gray-600",children:["Scheduled Job in ",e," module"]})]})]}),o.jsxs("div",{className:"flex space-x-2",children:[o.jsx("button",{onClick:i,className:"px-4 py-2 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-sm",children:"🚀 Trigger Now"}),o.jsx("button",{onClick:a,className:`px-4 py-2 rounded text-sm ${r.job.enabled?"bg-red-100 text-red-700 hover:bg-red-200":"bg-green-100 text-green-700 hover:bg-green-200"}`,children:r.job.enabled?"⏸ Disable":"▶️ Enable"})]})]}),o.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[o.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Available Endpoints"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/schedules/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Get schedule details"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800",children:"POST"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/schedules/",t,"/trigger"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Trigger job now"})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-orange-100 text-orange-800",children:"PUT"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/schedules/",t,"/enable"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Enable schedule"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-orange-100 text-orange-800",children:"PUT"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[Le(),"/schedules/",t,"/disable"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Disable schedule"})]})]})]})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Status"}),o.jsx("p",{className:`text-2xl font-bold ${r.job.enabled?"text-green-600":"text-gray-400"}`,children:r.job.enabled?"Enabled":"Disabled"})]}),o.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center ${r.job.enabled?"bg-green-100":"bg-gray-100"}`,children:o.jsx("svg",{className:`w-6 h-6 ${r.job.enabled?"text-green-600":"text-gray-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Running"}),o.jsx("p",{className:`text-2xl font-bold ${r.isRunning?"text-blue-600":"text-gray-400"}`,children:r.isRunning?"Yes":"No"})]}),o.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center ${r.isRunning?"bg-blue-100":"bg-gray-100"}`,children:o.jsx("svg",{className:`w-6 h-6 ${r.isRunning?"text-blue-600":"text-gray-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.828 14.828a4 4 0 01-5.656 0M9 10h1m4 0h1m-6 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Run Count"}),o.jsx("p",{className:"text-2xl font-bold text-purple-600",children:r.job.runCount||0})]}),o.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-purple-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v4a2 2 0 01-2 2H9a2 2 0 01-2-2z"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Next Run"}),o.jsx("p",{className:"text-sm font-bold text-orange-600",children:u(r.job.nextRun)}),o.jsx("p",{className:"text-xs text-gray-500",children:new Date(r.job.nextRun).toLocaleString()})]}),o.jsx("div",{className:"w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})})]})})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Schedule Configuration"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Cron Expression"}),o.jsx("code",{className:"block text-sm font-mono bg-gray-50 p-2 rounded border",children:r.job.cronExpression})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Created At"}),o.jsx("div",{className:"text-sm text-gray-700",children:new Date(r.job.createdAt).toLocaleString()})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Job ID"}),o.jsx("code",{className:"block text-xs font-mono bg-gray-50 p-2 rounded border break-all",children:r.job.id})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Timer Status"}),o.jsx("span",{className:`inline-flex items-center px-2 py-1 rounded text-xs font-medium ${r.timerId==="scheduled"?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:r.timerId})]})]})]})]}),o.jsx(Ls,{moduleName:e,title:`${t} Schedule Logs`})]})},fy=()=>{const{moduleName:e,scheduleName:t}=Es(),n=_t(),r=()=>{n(`/modules/${e}`)};return!e||!t?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid schedule parameters"}),o.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):o.jsx(dy,{moduleName:e,scheduleName:t,onBack:r})};function hy(e){return(e.match(/:([a-zA-Z_][a-zA-Z0-9_]*)(\?)?/g)??[]).map(n=>n.replace(/^:/,"").replace(/\?$/,""))}function py(e,t,n){let r=e;for(const{key:l,value:i}of t)r=r.replace(new RegExp(`:${l}\\??`,"g"),encodeURIComponent(i)||`:${l}`);const s=n.filter(({key:l})=>l.trim()!=="").map(({key:l,value:i})=>`${encodeURIComponent(l)}=${encodeURIComponent(i)}`).join("&");return s?`${r}?${s}`:r}const xc=({label:e,rows:t,onChange:n,keyPlaceholder:r="key",valuePlaceholder:s="value",fixedKeys:l=!1})=>{const i=(c,f,p)=>{const g=t.map((x,w)=>w===c?{...x,[f]:p}:x);n(g)},a=()=>n([...t,{key:"",value:""}]),u=c=>n(t.filter((f,p)=>p!==c));return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700",children:e}),!l&&o.jsx("button",{type:"button",onClick:a,className:"text-xs text-blue-600 hover:text-blue-800",children:"+ Add"})]}),o.jsxs("div",{className:"border border-gray-300 rounded-md divide-y divide-gray-200",children:[t.map((c,f)=>o.jsxs("div",{className:"flex items-center",children:[o.jsx("input",{value:c.key,onChange:p=>i(f,"key",p.target.value),readOnly:l,placeholder:r,className:`w-2/5 px-2 py-1.5 text-sm font-mono border-r border-gray-200 focus:outline-none focus:bg-blue-50 ${l?"bg-gray-50 text-gray-500":""}`}),o.jsx("input",{value:c.value,onChange:p=>i(f,"value",p.target.value),placeholder:s,className:"flex-1 px-2 py-1.5 text-sm font-mono focus:outline-none focus:bg-blue-50"}),!l&&o.jsx("button",{type:"button",onClick:()=>u(f),className:"px-2 text-gray-300 hover:text-red-500 text-lg leading-none",children:"×"})]},f)),t.length===0&&o.jsx("div",{className:"px-3 py-2 text-xs text-gray-400 italic",children:"No entries"})]})]})},wc=({response:e})=>o.jsx("div",{className:"border border-gray-300 rounded-md",children:e.error?o.jsxs("div",{className:"p-3 text-red-600 text-sm font-mono",children:["Error: ",e.error]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-3 border-b border-gray-200 bg-gray-50",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("span",{className:`inline-flex items-center px-2 py-1 rounded text-sm font-medium ${(e.status??0)>=200&&(e.status??0)<300?"bg-green-100 text-green-800":(e.status??0)>=400?"bg-red-100 text-red-800":"bg-yellow-100 text-yellow-800"}`,children:[e.status," ",e.statusText]}),o.jsxs("span",{className:"text-sm text-gray-600",children:[e.duration,"ms"]})]})}),e.headers&&Object.keys(e.headers).length>0&&o.jsxs("div",{className:"p-3 border-b border-gray-200",children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-2",children:"Response Headers:"}),o.jsx("pre",{className:"text-xs bg-gray-50 p-2 rounded overflow-x-auto",children:JSON.stringify(e.headers,null,2)})]}),o.jsxs("div",{className:"p-3",children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-2",children:"Response Body:"}),o.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto max-h-64",children:typeof e.data=="string"?e.data:JSON.stringify(e.data,null,2)})]})]})}),my=({moduleName:e,routeUrl:t,routeMethod:n,onBack:r})=>{const[s,l]=j.useState(!1),[i,a]=j.useState(n),[u,c]=j.useState("{}"),[f,p]=j.useState(`{
|
|
62
|
+
"Content-Type": "application/json"
|
|
63
|
+
}`),[g,x]=j.useState(null),[w,k]=j.useState(!1),[S,m]=j.useState([]),[h,d]=j.useState(null),v=j.useMemo(()=>hy(t),[t]),[N,E]=j.useState(()=>v.map(D=>({key:D,value:""}))),[P,b]=j.useState([]),O=j.useMemo(()=>py(t,N,P),[t,N,P]),L=async()=>{k(!0),x(null);let D;try{D=JSON.parse(f)}catch{x({error:"Invalid JSON in headers",duration:0}),k(!1);return}const Ue={method:i,headers:D};i!=="GET"&&i!=="HEAD"&&(Ue.body=u);const Qe=new Date,M=Date.now();try{const z=await fetch(`${Le()}${O}`,Ue),R=Date.now()-M,F=z.headers.get("content-type"),$=F!=null&&F.includes("application/json")?await z.json():await z.text(),J={status:z.status,statusText:z.statusText,headers:Object.fromEntries(z.headers.entries()),data:$,duration:R};x(J),m(le=>[{id:Qe.getTime().toString(),executedAt:Qe,method:i,url:O,headers:D,body:i!=="GET"&&i!=="HEAD"?u:void 0,response:J},...le].slice(0,20))}catch(z){const R={error:z instanceof Error?z.message:"Unknown error occurred",duration:Date.now()-M};x(R),m(F=>[{id:Qe.getTime().toString(),executedAt:Qe,method:i,url:O,headers:D,body:i!=="GET"&&i!=="HEAD"?u:void 0,response:R},...F].slice(0,20))}finally{k(!1)}},V=D=>{a(D.method),p(JSON.stringify(D.headers,null,2)),D.body&&c(D.body);try{const Ue=new URL(D.url,"http://x"),Qe=[];Ue.searchParams.forEach((M,z)=>Qe.push({key:z,value:M})),b(Qe)}catch{}},oe=D=>{switch(D.toUpperCase()){case"GET":return"bg-green-100 text-green-800";case"POST":return"bg-blue-100 text-blue-800";case"PUT":return"bg-orange-100 text-orange-800";case"DELETE":return"bg-red-100 text-red-800";case"PATCH":return"bg-purple-100 text-purple-800";case"HEAD":return"bg-gray-100 text-gray-800";default:return"bg-gray-100 text-gray-800"}};return o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"flex items-center justify-between mb-6",children:o.jsxs("div",{className:"flex items-center space-x-4",children:[o.jsxs("button",{onClick:r,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[o.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded text-sm font-medium ${oe(n)}`,children:n}),o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t})]}),o.jsxs("p",{className:"text-gray-600",children:["HTTP Endpoint in ",e," module"]})]})]})})}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>l(!s),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Route Information"}),o.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${s?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),s&&o.jsx("div",{className:"p-6",children:o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Full URL"}),o.jsxs("code",{className:"block text-sm font-mono bg-gray-50 p-3 rounded border",children:[Le(),t]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Method"}),o.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded text-sm font-medium ${oe(n)}`,children:n})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Module"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:e})]})]})})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Test Route"}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Method"}),o.jsxs("select",{value:i,onChange:D=>a(D.target.value),className:"w-full p-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",children:[o.jsx("option",{value:"GET",children:"GET"}),o.jsx("option",{value:"POST",children:"POST"}),o.jsx("option",{value:"PUT",children:"PUT"}),o.jsx("option",{value:"DELETE",children:"DELETE"}),o.jsx("option",{value:"PATCH",children:"PATCH"}),o.jsx("option",{value:"HEAD",children:"HEAD"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Request URL"}),o.jsxs("code",{className:"block text-xs font-mono bg-gray-50 p-2 rounded border text-gray-700 break-all",children:[Le(),O]})]}),v.length>0&&o.jsx(xc,{label:"Path Parameters",rows:N,onChange:E,keyPlaceholder:"param",valuePlaceholder:"value",fixedKeys:!0}),o.jsx(xc,{label:"Query Parameters",rows:P,onChange:b,keyPlaceholder:"param",valuePlaceholder:"value"}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Headers"}),o.jsx("textarea",{value:f,onChange:D=>p(D.target.value),className:"w-full h-24 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter headers JSON..."})]}),i!=="GET"&&i!=="HEAD"&&o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Request Body"}),o.jsx("textarea",{value:u,onChange:D=>c(D.target.value),className:"w-full h-32 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter request body..."})]}),o.jsx("button",{onClick:L,disabled:w,className:"w-full px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 disabled:opacity-50",children:w?"Testing...":"Test Route"})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Response"}),g?o.jsx(wc,{response:g}):o.jsx("div",{className:"border border-gray-300 rounded-md p-8 text-center text-gray-500",children:'Click "Test Route" to see the response'})]})]})]}),S.length>0&&o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Execution History"}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("span",{className:"text-xs text-gray-500",children:[S.length," execution",S.length!==1?"s":""]}),o.jsx("button",{onClick:()=>m([]),className:"text-xs text-gray-400 hover:text-red-500 transition-colors",children:"Clear"})]})]}),o.jsx("div",{className:"divide-y divide-gray-100",children:S.map(D=>o.jsxs("div",{children:[o.jsxs("div",{className:"p-4 flex items-center justify-between cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>d(h===D.id?null:D.id),children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${oe(D.method)}`,children:D.method}),o.jsx("span",{className:"text-sm font-mono text-gray-700",children:D.url}),D.response.error?o.jsx("span",{className:"text-xs text-red-600",children:"Error"}):o.jsx("span",{className:`text-xs font-medium ${(D.response.status??0)>=200&&(D.response.status??0)<300?"text-green-600":(D.response.status??0)>=400?"text-red-600":"text-yellow-600"}`,children:D.response.status}),o.jsxs("span",{className:"text-xs text-gray-400",children:[D.response.duration,"ms"]})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:"text-xs text-gray-400",children:D.executedAt.toLocaleTimeString()}),o.jsx("button",{onClick:Ue=>{Ue.stopPropagation(),V(D)},className:"text-xs px-2 py-0.5 bg-gray-100 text-gray-600 rounded hover:bg-blue-100 hover:text-blue-700 transition-colors",children:"Replay"}),o.jsx("svg",{className:`w-4 h-4 text-gray-400 transition-transform ${h===D.id?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),h===D.id&&o.jsxs("div",{className:"px-4 pb-4 space-y-3 bg-gray-50",children:[D.body&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-gray-500 mb-1",children:"Request Body:"}),o.jsx("pre",{className:"text-xs bg-white p-2 rounded border overflow-x-auto",children:D.body})]}),o.jsx(wc,{response:D.response})]})]},D.id))})]}),o.jsx(Ls,{moduleName:e,title:`${n} ${t} Logs`})]})},gy=()=>{const{moduleName:e}=Es(),[t]=c0(),n=_t(),r=t.get("url"),s=t.get("method"),l=()=>{n(`/modules/${e}`)};return!e||!r||!s?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid route parameters"}),o.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):o.jsx(my,{moduleName:e,routeUrl:decodeURIComponent(r),routeMethod:s,onBack:l})},yy=({moduleName:e,wsPath:t,onBack:n})=>{var d;const{data:r,isLoading:s,error:l,refetch:i}=ny(t),{send:a}=ry(),[u,c]=j.useState(null),[f,p]=j.useState(`{
|
|
64
|
+
|
|
65
|
+
}`),[g,x]=j.useState(null),[w,k]=j.useState(!1),S=(r==null?void 0:r.connections)||[],m=u||((d=S[0])==null?void 0:d.connectionId)||null,h=async()=>{if(m){k(!0),x(null);try{let v;try{v=JSON.parse(f)}catch{x({ok:!1,text:"Invalid JSON in message body"}),k(!1);return}await a(m,v),x({ok:!0,text:"Message sent successfully"}),i()}catch(v){x({ok:!1,text:v instanceof Error?v.message:"Send failed"})}finally{k(!1)}}};return s?o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading WebSocket details..."})}):l?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"text-red-600",children:["Error loading WebSocket path: ",l.message]}),o.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Module"})]}):o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsxs("div",{className:"flex items-center space-x-4",children:[o.jsxs("button",{onClick:n,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center space-x-3 mb-1",children:[o.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded text-sm font-medium bg-indigo-100 text-indigo-800",children:"WS"}),o.jsx("h1",{className:"text-2xl font-semibold text-gray-900 font-mono",children:t})]}),o.jsxs("p",{className:"text-gray-600",children:["WebSocket endpoint in ",e," module"]})]})]}),o.jsx("button",{onClick:()=>i(),className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"↻ Refresh"})]}),o.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"WebSocket URL"}),o.jsxs("code",{className:"block text-sm font-mono bg-gray-50 p-3 rounded border",children:[Le().replace(/^http/,"ws"),t]})]})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Active Connections"}),o.jsxs("span",{className:`px-2 py-1 rounded text-sm font-medium ${S.length>0?"bg-green-100 text-green-800":"bg-gray-100 text-gray-500"}`,children:[S.length," connected"]})]}),S.length===0?o.jsx("div",{className:"text-center text-gray-500 py-6 border border-dashed rounded-lg",children:"No active connections on this path"}):o.jsx("div",{className:"space-y-2",children:S.map(v=>{var N;return o.jsx("div",{onClick:()=>c(v.connectionId),className:`p-3 rounded-lg border cursor-pointer transition-colors ${(u||((N=S[0])==null?void 0:N.connectionId))===v.connectionId?"border-indigo-300 bg-indigo-50":"border-gray-200 hover:bg-gray-50"}`,children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),o.jsx("code",{className:"text-sm font-mono text-gray-800",children:v.connectionId})]}),o.jsxs("span",{className:"text-xs text-gray-500",children:["connected ",new Date(v.connectedAt).toLocaleTimeString()]})]})},v.connectionId)})})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Send Message"}),S.length===0?o.jsx("div",{className:"text-gray-500 text-sm",children:"No active connections to send to."}):o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Target Connection"}),o.jsx("select",{value:m||"",onChange:v=>c(v.target.value),className:"w-full p-2 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",children:S.map(v=>o.jsx("option",{value:v.connectionId,children:v.connectionId},v.connectionId))})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Message (JSON)"}),o.jsx("textarea",{value:f,onChange:v=>p(v.target.value),className:"w-full h-32 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",placeholder:"Enter JSON message..."})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("button",{onClick:h,disabled:w||!m,className:"px-4 py-2 bg-indigo-600 text-white rounded hover:bg-indigo-700 disabled:opacity-50",children:w?"Sending...":"Send Message"}),g&&o.jsx("span",{className:`text-sm ${g.ok?"text-green-600":"text-red-600"}`,children:g.text})]})]})]}),o.jsx(Ls,{moduleName:e,title:`${t} WebSocket Logs`})]})},vy=()=>{const{moduleName:e,"*":t}=Es(),n=_t(),r=()=>{n(`/modules/${e}`)};return!e||!t?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid WebSocket parameters"}),o.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):o.jsx(yy,{moduleName:e,wsPath:"/"+t,onBack:r})},xy=()=>o.jsx("header",{className:"bg-white shadow-sm border-b",children:o.jsx("div",{className:"container mx-auto px-4",children:o.jsx("div",{className:"flex items-center h-16",children:o.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"CloudNux Dev Console"})})})}),wy=new O0;function jy(){return o.jsx(I0,{client:wy,children:o.jsx(l0,{basename:"/console",children:o.jsxs("div",{className:"min-h-screen bg-gray-50",children:[o.jsx(xy,{}),o.jsx("main",{className:"container mx-auto px-4 py-6",children:o.jsxs(Fg,{children:[o.jsx(Mt,{path:"/",element:o.jsx(vc,{})}),o.jsx(Mt,{path:"/modules",element:o.jsx(vc,{})}),o.jsx(Mt,{path:"/modules/:moduleName",element:o.jsx(ay,{})}),o.jsx(Mt,{path:"/modules/:moduleName/queues/:queueName",element:o.jsx(cy,{})}),o.jsx(Mt,{path:"/modules/:moduleName/schedules/:scheduleName",element:o.jsx(fy,{})}),o.jsx(Mt,{path:"/modules/:moduleName/routes",element:o.jsx(gy,{})}),o.jsx(Mt,{path:"/modules/:moduleName/websockets/*",element:o.jsx(vy,{})})]})})]})})})}Mi.createRoot(document.getElementById("root")).render(o.jsx(Mh.StrictMode,{children:o.jsx(jy,{})}));
|