@vqh2602/mini-app-sdk 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/bin/simulator.js +21 -0
- package/dist/cli/index.js +1 -1
- package/dist/cli/utils/server.d.ts.map +1 -1
- package/dist/cli/utils/server.js +10 -0
- package/dist/cli/utils/server.js.map +1 -1
- package/dist/core/client.d.ts +1 -1
- package/dist/core/client.js +1 -1
- package/dist/mock/handlers/auth.handler.d.ts +8 -0
- package/dist/mock/handlers/auth.handler.d.ts.map +1 -1
- package/dist/mock/handlers/auth.handler.js +47 -3
- package/dist/mock/handlers/auth.handler.js.map +1 -1
- package/dist/mock/handlers/payment.handler.d.ts +27 -0
- package/dist/mock/handlers/payment.handler.d.ts.map +1 -0
- package/dist/mock/handlers/payment.handler.js +62 -0
- package/dist/mock/handlers/payment.handler.js.map +1 -0
- package/dist/mock/index.d.ts +1 -0
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +1 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/mock/mock-engine.d.ts +2 -0
- package/dist/mock/mock-engine.d.ts.map +1 -1
- package/dist/mock/mock-engine.js +135 -9
- package/dist/mock/mock-engine.js.map +1 -1
- package/package.json +8 -2
- package/simulator-dist/assets/index-DpHZwm7N.js +199 -0
- package/simulator-dist/index.html +1 -1
- package/simulator-dist/assets/index-D5M_HJio.js +0 -199
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
var mc=Object.defineProperty;var yc=(e,t,n)=>t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t,n)=>yc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zs={exports:{}},il={},Js={exports:{}},I={};/**
|
|
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 bn=Symbol.for("react.element"),xc=Symbol.for("react.portal"),kc=Symbol.for("react.fragment"),wc=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),Cc=Symbol.for("react.provider"),Ec=Symbol.for("react.context"),jc=Symbol.for("react.forward_ref"),_c=Symbol.for("react.suspense"),zc=Symbol.for("react.memo"),Pc=Symbol.for("react.lazy"),Bi=Symbol.iterator;function Tc(e){return e===null||typeof e!="object"?null:(e=Bi&&e[Bi]||e["@@iterator"],typeof e=="function"?e:null)}var qs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bs=Object.assign,eu={};function dn(e,t,n){this.props=e,this.context=t,this.refs=eu,this.updater=n||qs}dn.prototype.isReactComponent={};dn.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")};dn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tu(){}tu.prototype=dn.prototype;function Ko(e,t,n){this.props=e,this.context=t,this.refs=eu,this.updater=n||qs}var Xo=Ko.prototype=new tu;Xo.constructor=Ko;bs(Xo,dn.prototype);Xo.isPureReactComponent=!0;var Wi=Array.isArray,nu=Object.prototype.hasOwnProperty,Yo={current:null},ru={key:!0,ref:!0,__self:!0,__source:!0};function lu(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)nu.call(t,r)&&!ru.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1<s){for(var u=Array(s),d=0;d<s;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)l[r]===void 0&&(l[r]=s[r]);return{$$typeof:bn,type:e,key:o,ref:i,props:l,_owner:Yo.current}}function Nc(e,t){return{$$typeof:bn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Go(e){return typeof e=="object"&&e!==null&&e.$$typeof===bn}function Ic(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vi=/\/+/g;function El(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ic(""+e.key):t.toString(36)}function Er(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case bn:case xc:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+El(i,0):r,Wi(l)?(n="",e!=null&&(n=e.replace(Vi,"$&/")+"/"),Er(l,t,n,"",function(d){return d})):l!=null&&(Go(l)&&(l=Nc(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(Vi,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",Wi(e))for(var s=0;s<e.length;s++){o=e[s];var u=r+El(o,s);i+=Er(o,t,n,u,l)}else if(u=Tc(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=r+El(o,s++),i+=Er(o,t,n,u,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function sr(e,t,n){if(e==null)return e;var r=[],l=0;return Er(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Lc(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var de={current:null},jr={transition:null},Mc={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:jr,ReactCurrentOwner:Yo};function ou(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:sr,forEach:function(e,t,n){sr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sr(e,function(){t++}),t},toArray:function(e){return sr(e,function(t){return t})||[]},only:function(e){if(!Go(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=dn;I.Fragment=kc;I.Profiler=Sc;I.PureComponent=Ko;I.StrictMode=wc;I.Suspense=_c;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mc;I.act=ou;I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bs({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Yo.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)nu.call(t,u)&&!ru.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var d=0;d<u;d++)s[d]=arguments[d+2];r.children=s}return{$$typeof:bn,type:e.type,key:l,ref:o,props:r,_owner:i}};I.createContext=function(e){return e={$$typeof:Ec,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Cc,_context:e},e.Consumer=e};I.createElement=lu;I.createFactory=function(e){var t=lu.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:jc,render:e}};I.isValidElement=Go;I.lazy=function(e){return{$$typeof:Pc,_payload:{_status:-1,_result:e},_init:Lc}};I.memo=function(e,t){return{$$typeof:zc,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=jr.transition;jr.transition={};try{e()}finally{jr.transition=t}};I.unstable_act=ou;I.useCallback=function(e,t){return de.current.useCallback(e,t)};I.useContext=function(e){return de.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return de.current.useDeferredValue(e)};I.useEffect=function(e,t){return de.current.useEffect(e,t)};I.useId=function(){return de.current.useId()};I.useImperativeHandle=function(e,t,n){return de.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return de.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return de.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return de.current.useMemo(e,t)};I.useReducer=function(e,t,n){return de.current.useReducer(e,t,n)};I.useRef=function(e){return de.current.useRef(e)};I.useState=function(e){return de.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return de.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return de.current.useTransition()};I.version="18.3.1";Js.exports=I;var L=Js.exports;const Rc=vc(L);/**
|
|
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 Dc=L,Oc=Symbol.for("react.element"),Ac=Symbol.for("react.fragment"),Uc=Object.prototype.hasOwnProperty,Fc=Dc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bc={key:!0,ref:!0,__self:!0,__source:!0};function iu(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Uc.call(t,r)&&!Bc.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Oc,type:e,key:o,ref:i,props:l,_owner:Fc.current}}il.Fragment=Ac;il.jsx=iu;il.jsxs=iu;Zs.exports=il;var a=Zs.exports,Jl={},su={exports:{}},Ce={},uu={exports:{}},au={};/**
|
|
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(k,P){var T=k.length;k.push(P);e:for(;0<T;){var A=T-1>>>1,q=k[A];if(0<l(q,P))k[A]=P,k[T]=q,T=A;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var P=k[0],T=k.pop();if(T!==P){k[0]=T;e:for(var A=0,q=k.length,or=q>>>1;A<or;){var St=2*(A+1)-1,Cl=k[St],Ct=St+1,ir=k[Ct];if(0>l(Cl,T))Ct<q&&0>l(ir,Cl)?(k[A]=ir,k[Ct]=T,A=Ct):(k[A]=Cl,k[St]=T,A=St);else if(Ct<q&&0>l(ir,T))k[A]=ir,k[Ct]=T,A=Ct;else break e}}return P}function l(k,P){var T=k.sortIndex-P.sortIndex;return T!==0?T:k.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],d=[],g=1,m=null,h=3,x=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(k){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=k)r(d),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(d)}}function y(k){if(S=!1,p(k),!w)if(n(u)!==null)w=!0,hn(C);else{var P=n(d);P!==null&&$(y,P.startTime-k)}}function C(k,P){w=!1,S&&(S=!1,f(z),z=-1),x=!0;var T=h;try{for(p(P),m=n(u);m!==null&&(!(m.expirationTime>P)||k&&!ve());){var A=m.callback;if(typeof A=="function"){m.callback=null,h=m.priorityLevel;var q=A(m.expirationTime<=P);P=e.unstable_now(),typeof q=="function"?m.callback=q:m===n(u)&&r(u),p(P)}else r(u);m=n(u)}if(m!==null)var or=!0;else{var St=n(d);St!==null&&$(y,St.startTime-P),or=!1}return or}finally{m=null,h=T,x=!1}}var _=!1,j=null,z=-1,V=5,N=-1;function ve(){return!(e.unstable_now()-N<V)}function kt(){if(j!==null){var k=e.unstable_now();N=k;var P=!0;try{P=j(!0,k)}finally{P?wt():(_=!1,j=null)}}else _=!1}var wt;if(typeof c=="function")wt=function(){c(kt)};else if(typeof MessageChannel<"u"){var lr=new MessageChannel,Sl=lr.port2;lr.port1.onmessage=kt,wt=function(){Sl.postMessage(null)}}else wt=function(){O(kt,0)};function hn(k){j=k,_||(_=!0,wt())}function $(k,P){z=O(function(){k(e.unstable_now())},P)}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(k){k.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,hn(C))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(k){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var T=h;h=P;try{return k()}finally{h=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,P){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var T=h;h=k;try{return P()}finally{h=T}},e.unstable_scheduleCallback=function(k,P,T){var A=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?A+T:A):T=A,k){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=T+q,k={id:g++,callback:P,priorityLevel:k,startTime:T,expirationTime:q,sortIndex:-1},T>A?(k.sortIndex=T,t(d,k),n(u)===null&&k===n(d)&&(S?(f(z),z=-1):S=!0,$(y,T-A))):(k.sortIndex=q,t(u,k),w||x||(w=!0,hn(C))),k},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(k){var P=h;return function(){var T=h;h=P;try{return k.apply(this,arguments)}finally{h=T}}}})(au);uu.exports=au;var Wc=uu.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 Vc=L,Se=Wc;function v(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 cu=new Set,On={};function Ot(e,t){rn(e,t),rn(e+"Capture",t)}function rn(e,t){for(On[e]=t,e=0;e<t.length;e++)cu.add(t[e])}var Ge=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ql=Object.prototype.hasOwnProperty,$c=/^[: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]*$/,$i={},Hi={};function Hc(e){return ql.call(Hi,e)?!0:ql.call($i,e)?!1:$c.test(e)?Hi[e]=!0:($i[e]=!0,!1)}function Qc(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 Kc(e,t,n,r){if(t===null||typeof t>"u"||Qc(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 fe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new fe(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){le[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zo=/[\-:]([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(Zo,Jo);le[t]=new fe(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(Zo,Jo);le[t]=new fe(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(Zo,Jo);le[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function qo(e,t,n,r){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Kc(t,n,l,r)&&(n=null),r||l===null?Hc(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var be=Vc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ur=Symbol.for("react.element"),Ft=Symbol.for("react.portal"),Bt=Symbol.for("react.fragment"),bo=Symbol.for("react.strict_mode"),bl=Symbol.for("react.profiler"),du=Symbol.for("react.provider"),fu=Symbol.for("react.context"),ei=Symbol.for("react.forward_ref"),eo=Symbol.for("react.suspense"),to=Symbol.for("react.suspense_list"),ti=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),pu=Symbol.for("react.offscreen"),Qi=Symbol.iterator;function gn(e){return e===null||typeof e!="object"?null:(e=Qi&&e[Qi]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,jl;function Cn(e){if(jl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);jl=t&&t[1]||""}return`
|
|
34
|
-
`+jl+e}var _l=!1;function zl(e,t){if(!e||_l)return"";_l=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
|
|
35
|
-
`),o=r.stack.split(`
|
|
36
|
-
`),i=l.length-1,s=o.length-1;1<=i&&0<=s&&l[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(l[i]!==o[s]){if(i!==1||s!==1)do if(i--,s--,0>s||l[i]!==o[s]){var u=`
|
|
37
|
-
`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{_l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function Xc(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=zl(e.type,!1),e;case 11:return e=zl(e.type.render,!1),e;case 1:return e=zl(e.type,!0),e;default:return""}}function no(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 Bt:return"Fragment";case Ft:return"Portal";case bl:return"Profiler";case bo:return"StrictMode";case eo:return"Suspense";case to:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fu:return(e.displayName||"Context")+".Consumer";case du:return(e._context.displayName||"Context")+".Provider";case ei:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ti:return t=e.displayName||null,t!==null?t:no(e.type)||"Memo";case tt:t=e._payload,e=e._init;try{return no(e(t))}catch{}}return null}function Yc(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 no(t);case 8:return t===bo?"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 gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gc(e){var t=hu(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.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 ar(e){e._valueTracker||(e._valueTracker=Gc(e))}function gu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Or(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 ro(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ki(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gt(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 mu(e,t){t=t.checked,t!=null&&qo(e,"checked",t,!1)}function lo(e,t){mu(e,t);var n=gt(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")?oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&oo(e,t.type,gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xi(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 oo(e,t,n){(t!=="number"||Or(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+gt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function io(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(v(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(v(92));if(En(n)){if(1<n.length)throw Error(v(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:gt(n)}}function yu(e,t){var n=gt(t.value),r=gt(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 Gi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vu(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 so(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cr,xu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(cr=cr||document.createElement("div"),cr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function An(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={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},Zc=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){Zc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function ku(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function wu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ku(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Jc=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uo(e,t){if(t){if(Jc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(v(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(v(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(v(61))}if(t.style!=null&&typeof t.style!="object")throw Error(v(62))}}function ao(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 co=null;function ni(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fo=null,qt=null,bt=null;function Zi(e){if(e=nr(e)){if(typeof fo!="function")throw Error(v(280));var t=e.stateNode;t&&(t=dl(t),fo(e.stateNode,e.type,t))}}function Su(e){qt?bt?bt.push(e):bt=[e]:qt=e}function Cu(){if(qt){var e=qt,t=bt;if(bt=qt=null,Zi(e),t)for(e=0;e<t.length;e++)Zi(t[e])}}function Eu(e,t){return e(t)}function ju(){}var Pl=!1;function _u(e,t,n){if(Pl)return e(t,n);Pl=!0;try{return Eu(e,t,n)}finally{Pl=!1,(qt!==null||bt!==null)&&(ju(),Cu())}}function Un(e,t){var n=e.stateNode;if(n===null)return null;var r=dl(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(v(231,t,typeof n));return n}var po=!1;if(Ge)try{var mn={};Object.defineProperty(mn,"passive",{get:function(){po=!0}}),window.addEventListener("test",mn,mn),window.removeEventListener("test",mn,mn)}catch{po=!1}function qc(e,t,n,r,l,o,i,s,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(g){this.onError(g)}}var Pn=!1,Ar=null,Ur=!1,ho=null,bc={onError:function(e){Pn=!0,Ar=e}};function ed(e,t,n,r,l,o,i,s,u){Pn=!1,Ar=null,qc.apply(bc,arguments)}function td(e,t,n,r,l,o,i,s,u){if(ed.apply(this,arguments),Pn){if(Pn){var d=Ar;Pn=!1,Ar=null}else throw Error(v(198));Ur||(Ur=!0,ho=d)}}function At(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zu(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 Ji(e){if(At(e)!==e)throw Error(v(188))}function nd(e){var t=e.alternate;if(!t){if(t=At(e),t===null)throw Error(v(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Ji(l),e;if(o===r)return Ji(l),t;o=o.sibling}throw Error(v(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i){for(s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i)throw Error(v(189))}}if(n.alternate!==r)throw Error(v(190))}if(n.tag!==3)throw Error(v(188));return n.stateNode.current===n?e:t}function Pu(e){return e=nd(e),e!==null?Tu(e):null}function Tu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tu(e);if(t!==null)return t;e=e.sibling}return null}var Nu=Se.unstable_scheduleCallback,qi=Se.unstable_cancelCallback,rd=Se.unstable_shouldYield,ld=Se.unstable_requestPaint,Y=Se.unstable_now,od=Se.unstable_getCurrentPriorityLevel,ri=Se.unstable_ImmediatePriority,Iu=Se.unstable_UserBlockingPriority,Fr=Se.unstable_NormalPriority,id=Se.unstable_LowPriority,Lu=Se.unstable_IdlePriority,sl=null,We=null;function sd(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(sl,e,void 0,(e.current.flags&128)===128)}catch{}}var De=Math.clz32?Math.clz32:cd,ud=Math.log,ad=Math.LN2;function cd(e){return e>>>=0,e===0?32:31-(ud(e)/ad|0)|0}var dr=64,fr=4194304;function jn(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 Br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=jn(s):(o&=i,o!==0&&(r=jn(o)))}else i=n&~l,i!==0?r=jn(i):o!==0&&(r=jn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-De(t),l=1<<n,r|=e[n],t&=~l;return r}function dd(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 fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-De(o),s=1<<i,u=l[i];u===-1?(!(s&n)||s&r)&&(l[i]=dd(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function go(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mu(){var e=dr;return dr<<=1,!(dr&4194240)&&(dr=64),e}function Tl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function er(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-De(t),e[t]=n}function pd(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 l=31-De(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function li(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-De(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var R=0;function Ru(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Du,oi,Ou,Au,Uu,mo=!1,pr=[],st=null,ut=null,at=null,Fn=new Map,Bn=new Map,rt=[],hd="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 bi(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":Fn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bn.delete(t.pointerId)}}function yn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=nr(t),t!==null&&oi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function gd(e,t,n,r,l){switch(t){case"focusin":return st=yn(st,e,t,n,r,l),!0;case"dragenter":return ut=yn(ut,e,t,n,r,l),!0;case"mouseover":return at=yn(at,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Fn.set(o,yn(Fn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Bn.set(o,yn(Bn.get(o)||null,e,t,n,r,l)),!0}return!1}function Fu(e){var t=_t(e.target);if(t!==null){var n=At(t);if(n!==null){if(t=n.tag,t===13){if(t=zu(n),t!==null){e.blockedOn=t,Uu(e.priority,function(){Ou(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 _r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);co=r,n.target.dispatchEvent(r),co=null}else return t=nr(n),t!==null&&oi(t),e.blockedOn=n,!1;t.shift()}return!0}function es(e,t,n){_r(e)&&n.delete(t)}function md(){mo=!1,st!==null&&_r(st)&&(st=null),ut!==null&&_r(ut)&&(ut=null),at!==null&&_r(at)&&(at=null),Fn.forEach(es),Bn.forEach(es)}function vn(e,t){e.blockedOn===t&&(e.blockedOn=null,mo||(mo=!0,Se.unstable_scheduleCallback(Se.unstable_NormalPriority,md)))}function Wn(e){function t(l){return vn(l,e)}if(0<pr.length){vn(pr[0],e);for(var n=1;n<pr.length;n++){var r=pr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(st!==null&&vn(st,e),ut!==null&&vn(ut,e),at!==null&&vn(at,e),Fn.forEach(t),Bn.forEach(t),n=0;n<rt.length;n++)r=rt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rt.length&&(n=rt[0],n.blockedOn===null);)Fu(n),n.blockedOn===null&&rt.shift()}var en=be.ReactCurrentBatchConfig,Wr=!0;function yd(e,t,n,r){var l=R,o=en.transition;en.transition=null;try{R=1,ii(e,t,n,r)}finally{R=l,en.transition=o}}function vd(e,t,n,r){var l=R,o=en.transition;en.transition=null;try{R=4,ii(e,t,n,r)}finally{R=l,en.transition=o}}function ii(e,t,n,r){if(Wr){var l=yo(e,t,n,r);if(l===null)Fl(e,t,r,Vr,n),bi(e,r);else if(gd(l,e,t,n,r))r.stopPropagation();else if(bi(e,r),t&4&&-1<hd.indexOf(e)){for(;l!==null;){var o=nr(l);if(o!==null&&Du(o),o=yo(e,t,n,r),o===null&&Fl(e,t,r,Vr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Fl(e,t,r,null,n)}}var Vr=null;function yo(e,t,n,r){if(Vr=null,e=ni(r),e=_t(e),e!==null)if(t=At(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zu(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 Vr=e,null}function Bu(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(od()){case ri:return 1;case Iu:return 4;case Fr:case id:return 16;case Lu:return 536870912;default:return 16}default:return 16}}var ot=null,si=null,zr=null;function Wu(){if(zr)return zr;var e,t=si,n=t.length,r,l="value"in ot?ot.value:ot.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return zr=l.slice(e,1<r?1-r:void 0)}function Pr(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 hr(){return!0}function ts(){return!1}function Ee(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?hr:ts,this.isPropagationStopped=ts,this}return K(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=hr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hr)},persist:function(){},isPersistent:hr}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=Ee(fn),tr=K({},fn,{view:0,detail:0}),xd=Ee(tr),Nl,Il,xn,ul=K({},tr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ai,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!==xn&&(xn&&e.type==="mousemove"?(Nl=e.screenX-xn.screenX,Il=e.screenY-xn.screenY):Il=Nl=0,xn=e),Nl)},movementY:function(e){return"movementY"in e?e.movementY:Il}}),ns=Ee(ul),kd=K({},ul,{dataTransfer:0}),wd=Ee(kd),Sd=K({},tr,{relatedTarget:0}),Ll=Ee(Sd),Cd=K({},fn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ed=Ee(Cd),jd=K({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_d=Ee(jd),zd=K({},fn,{data:0}),rs=Ee(zd),Pd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Td={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"},Nd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Id(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nd[e])?!!t[e]:!1}function ai(){return Id}var Ld=K({},tr,{key:function(e){if(e.key){var t=Pd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Td[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ai,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Md=Ee(Ld),Rd=K({},ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ls=Ee(Rd),Dd=K({},tr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ai}),Od=Ee(Dd),Ad=K({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ud=Ee(Ad),Fd=K({},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}),Bd=Ee(Fd),Wd=[9,13,27,32],ci=Ge&&"CompositionEvent"in window,Tn=null;Ge&&"documentMode"in document&&(Tn=document.documentMode);var Vd=Ge&&"TextEvent"in window&&!Tn,Vu=Ge&&(!ci||Tn&&8<Tn&&11>=Tn),os=" ",is=!1;function $u(e,t){switch(e){case"keyup":return Wd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wt=!1;function $d(e,t){switch(e){case"compositionend":return Hu(t);case"keypress":return t.which!==32?null:(is=!0,os);case"textInput":return e=t.data,e===os&&is?null:e;default:return null}}function Hd(e,t){if(Wt)return e==="compositionend"||!ci&&$u(e,t)?(e=Wu(),zr=si=ot=null,Wt=!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 Vu&&t.locale!=="ko"?null:t.data;default:return null}}var Qd={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 ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qd[e.type]:t==="textarea"}function Qu(e,t,n,r){Su(r),t=$r(t,"onChange"),0<t.length&&(n=new ui("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nn=null,Vn=null;function Kd(e){na(e,0)}function al(e){var t=Ht(e);if(gu(t))return e}function Xd(e,t){if(e==="change")return t}var Ku=!1;if(Ge){var Ml;if(Ge){var Rl="oninput"in document;if(!Rl){var us=document.createElement("div");us.setAttribute("oninput","return;"),Rl=typeof us.oninput=="function"}Ml=Rl}else Ml=!1;Ku=Ml&&(!document.documentMode||9<document.documentMode)}function as(){Nn&&(Nn.detachEvent("onpropertychange",Xu),Vn=Nn=null)}function Xu(e){if(e.propertyName==="value"&&al(Vn)){var t=[];Qu(t,Vn,e,ni(e)),_u(Kd,t)}}function Yd(e,t,n){e==="focusin"?(as(),Nn=t,Vn=n,Nn.attachEvent("onpropertychange",Xu)):e==="focusout"&&as()}function Gd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return al(Vn)}function Zd(e,t){if(e==="click")return al(t)}function Jd(e,t){if(e==="input"||e==="change")return al(t)}function qd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:qd;function $n(e,t){if(Ae(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 l=n[r];if(!ql.call(t,l)||!Ae(e[l],t[l]))return!1}return!0}function cs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ds(e,t){var n=cs(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=cs(n)}}function Yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gu(){for(var e=window,t=Or();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Or(e.document)}return t}function di(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function bd(e){var t=Gu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yu(n.ownerDocument.documentElement,n)){if(r!==null&&di(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ds(n,o);var i=ds(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>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 ef=Ge&&"documentMode"in document&&11>=document.documentMode,Vt=null,vo=null,In=null,xo=!1;function fs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xo||Vt==null||Vt!==Or(r)||(r=Vt,"selectionStart"in r&&di(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}),In&&$n(In,r)||(In=r,r=$r(vo,"onSelect"),0<r.length&&(t=new ui("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vt)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $t={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},Dl={},Zu={};Ge&&(Zu=document.createElement("div").style,"AnimationEvent"in window||(delete $t.animationend.animation,delete $t.animationiteration.animation,delete $t.animationstart.animation),"TransitionEvent"in window||delete $t.transitionend.transition);function cl(e){if(Dl[e])return Dl[e];if(!$t[e])return e;var t=$t[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zu)return Dl[e]=t[n];return e}var Ju=cl("animationend"),qu=cl("animationiteration"),bu=cl("animationstart"),ea=cl("transitionend"),ta=new Map,ps="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 yt(e,t){ta.set(e,t),Ot(t,[e])}for(var Ol=0;Ol<ps.length;Ol++){var Al=ps[Ol],tf=Al.toLowerCase(),nf=Al[0].toUpperCase()+Al.slice(1);yt(tf,"on"+nf)}yt(Ju,"onAnimationEnd");yt(qu,"onAnimationIteration");yt(bu,"onAnimationStart");yt("dblclick","onDoubleClick");yt("focusin","onFocus");yt("focusout","onBlur");yt(ea,"onTransitionEnd");rn("onMouseEnter",["mouseout","mouseover"]);rn("onMouseLeave",["mouseout","mouseover"]);rn("onPointerEnter",["pointerout","pointerover"]);rn("onPointerLeave",["pointerout","pointerover"]);Ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ot("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),rf=new Set("cancel close invalid load scroll toggle".split(" ").concat(_n));function hs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,td(r,t,void 0,e),e.currentTarget=null}function na(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],u=s.instance,d=s.currentTarget;if(s=s.listener,u!==o&&l.isPropagationStopped())break e;hs(l,s,d),o=u}else for(i=0;i<r.length;i++){if(s=r[i],u=s.instance,d=s.currentTarget,s=s.listener,u!==o&&l.isPropagationStopped())break e;hs(l,s,d),o=u}}}if(Ur)throw e=ho,Ur=!1,ho=null,e}function F(e,t){var n=t[Eo];n===void 0&&(n=t[Eo]=new Set);var r=e+"__bubble";n.has(r)||(ra(t,e,2,!1),n.add(r))}function Ul(e,t,n){var r=0;t&&(r|=4),ra(n,e,r,t)}var mr="_reactListening"+Math.random().toString(36).slice(2);function Hn(e){if(!e[mr]){e[mr]=!0,cu.forEach(function(n){n!=="selectionchange"&&(rf.has(n)||Ul(n,!1,e),Ul(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mr]||(t[mr]=!0,Ul("selectionchange",!1,t))}}function ra(e,t,n,r){switch(Bu(t)){case 1:var l=yd;break;case 4:l=vd;break;default:l=ii}n=l.bind(null,t,n,e),l=void 0,!po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Fl(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;i=i.return}for(;s!==null;){if(i=_t(s),i===null)return;if(u=i.tag,u===5||u===6){r=o=i;continue e}s=s.parentNode}}r=r.return}_u(function(){var d=o,g=ni(n),m=[];e:{var h=ta.get(e);if(h!==void 0){var x=ui,w=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":x=Md;break;case"focusin":w="focus",x=Ll;break;case"focusout":w="blur",x=Ll;break;case"beforeblur":case"afterblur":x=Ll;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=ns;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=wd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Od;break;case Ju:case qu:case bu:x=Ed;break;case ea:x=Ud;break;case"scroll":x=xd;break;case"wheel":x=Bd;break;case"copy":case"cut":case"paste":x=_d;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=ls}var S=(t&4)!==0,O=!S&&e==="scroll",f=S?h!==null?h+"Capture":null:h;S=[];for(var c=d,p;c!==null;){p=c;var y=p.stateNode;if(p.tag===5&&y!==null&&(p=y,f!==null&&(y=Un(c,f),y!=null&&S.push(Qn(c,y,p)))),O)break;c=c.return}0<S.length&&(h=new x(h,w,null,n,g),m.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",h&&n!==co&&(w=n.relatedTarget||n.fromElement)&&(_t(w)||w[Ze]))break e;if((x||h)&&(h=g.window===g?g:(h=g.ownerDocument)?h.defaultView||h.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=d,w=w?_t(w):null,w!==null&&(O=At(w),w!==O||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=d),x!==w)){if(S=ns,y="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(S=ls,y="onPointerLeave",f="onPointerEnter",c="pointer"),O=x==null?h:Ht(x),p=w==null?h:Ht(w),h=new S(y,c+"leave",x,n,g),h.target=O,h.relatedTarget=p,y=null,_t(g)===d&&(S=new S(f,c+"enter",w,n,g),S.target=p,S.relatedTarget=O,y=S),O=y,x&&w)t:{for(S=x,f=w,c=0,p=S;p;p=Ut(p))c++;for(p=0,y=f;y;y=Ut(y))p++;for(;0<c-p;)S=Ut(S),c--;for(;0<p-c;)f=Ut(f),p--;for(;c--;){if(S===f||f!==null&&S===f.alternate)break t;S=Ut(S),f=Ut(f)}S=null}else S=null;x!==null&&gs(m,h,x,S,!1),w!==null&&O!==null&&gs(m,O,w,S,!0)}}e:{if(h=d?Ht(d):window,x=h.nodeName&&h.nodeName.toLowerCase(),x==="select"||x==="input"&&h.type==="file")var C=Xd;else if(ss(h))if(Ku)C=Jd;else{C=Gd;var _=Yd}else(x=h.nodeName)&&x.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Zd);if(C&&(C=C(e,d))){Qu(m,C,n,g);break e}_&&_(e,h,d),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&oo(h,"number",h.value)}switch(_=d?Ht(d):window,e){case"focusin":(ss(_)||_.contentEditable==="true")&&(Vt=_,vo=d,In=null);break;case"focusout":In=vo=Vt=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,fs(m,n,g);break;case"selectionchange":if(ef)break;case"keydown":case"keyup":fs(m,n,g)}var j;if(ci)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else Wt?$u(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(Vu&&n.locale!=="ko"&&(Wt||z!=="onCompositionStart"?z==="onCompositionEnd"&&Wt&&(j=Wu()):(ot=g,si="value"in ot?ot.value:ot.textContent,Wt=!0)),_=$r(d,z),0<_.length&&(z=new rs(z,e,null,n,g),m.push({event:z,listeners:_}),j?z.data=j:(j=Hu(n),j!==null&&(z.data=j)))),(j=Vd?$d(e,n):Hd(e,n))&&(d=$r(d,"onBeforeInput"),0<d.length&&(g=new rs("onBeforeInput","beforeinput",null,n,g),m.push({event:g,listeners:d}),g.data=j))}na(m,t)})}function Qn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Un(e,n),o!=null&&r.unshift(Qn(e,o,l)),o=Un(e,t),o!=null&&r.push(Qn(e,o,l))),e=e.return}return r}function Ut(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gs(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var s=n,u=s.alternate,d=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&d!==null&&(s=d,l?(u=Un(n,o),u!=null&&i.unshift(Qn(n,u,s))):l||(u=Un(n,o),u!=null&&i.push(Qn(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var lf=/\r\n?/g,of=/\u0000|\uFFFD/g;function ms(e){return(typeof e=="string"?e:""+e).replace(lf,`
|
|
38
|
-
`).replace(of,"")}function yr(e,t,n){if(t=ms(t),ms(e)!==t&&n)throw Error(v(425))}function Hr(){}var ko=null,wo=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 Co=typeof setTimeout=="function"?setTimeout:void 0,sf=typeof clearTimeout=="function"?clearTimeout:void 0,ys=typeof Promise=="function"?Promise:void 0,uf=typeof queueMicrotask=="function"?queueMicrotask:typeof ys<"u"?function(e){return ys.resolve(null).then(e).catch(af)}:Co;function af(e){setTimeout(function(){throw e})}function Bl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Wn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Wn(t)}function ct(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 vs(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 pn=Math.random().toString(36).slice(2),Be="__reactFiber$"+pn,Kn="__reactProps$"+pn,Ze="__reactContainer$"+pn,Eo="__reactEvents$"+pn,cf="__reactListeners$"+pn,df="__reactHandles$"+pn;function _t(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ze]||n[Be]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vs(e);e!==null;){if(n=e[Be])return n;e=vs(e)}return t}e=n,n=e.parentNode}return null}function nr(e){return e=e[Be]||e[Ze],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ht(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(v(33))}function dl(e){return e[Kn]||null}var jo=[],Qt=-1;function vt(e){return{current:e}}function B(e){0>Qt||(e.current=jo[Qt],jo[Qt]=null,Qt--)}function U(e,t){Qt++,jo[Qt]=e.current,e.current=t}var mt={},ue=vt(mt),ge=vt(!1),It=mt;function ln(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Qr(){B(ge),B(ue)}function xs(e,t,n){if(ue.current!==mt)throw Error(v(168));U(ue,t),U(ge,n)}function la(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(v(108,Yc(e)||"Unknown",l));return K({},n,r)}function Kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,It=ue.current,U(ue,e),U(ge,ge.current),!0}function ks(e,t,n){var r=e.stateNode;if(!r)throw Error(v(169));n?(e=la(e,t,It),r.__reactInternalMemoizedMergedChildContext=e,B(ge),B(ue),U(ue,e)):B(ge),U(ge,n)}var Qe=null,fl=!1,Wl=!1;function oa(e){Qe===null?Qe=[e]:Qe.push(e)}function ff(e){fl=!0,oa(e)}function xt(){if(!Wl&&Qe!==null){Wl=!0;var e=0,t=R;try{var n=Qe;for(R=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Qe=null,fl=!1}catch(l){throw Qe!==null&&(Qe=Qe.slice(e+1)),Nu(ri,xt),l}finally{R=t,Wl=!1}}return null}var Kt=[],Xt=0,Xr=null,Yr=0,je=[],_e=0,Lt=null,Ke=1,Xe="";function Et(e,t){Kt[Xt++]=Yr,Kt[Xt++]=Xr,Xr=e,Yr=t}function ia(e,t,n){je[_e++]=Ke,je[_e++]=Xe,je[_e++]=Lt,Lt=e;var r=Ke;e=Xe;var l=32-De(r)-1;r&=~(1<<l),n+=1;var o=32-De(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Ke=1<<32-De(t)+l|n<<l|r,Xe=o+e}else Ke=1<<o|n<<l|r,Xe=e}function fi(e){e.return!==null&&(Et(e,1),ia(e,1,0))}function pi(e){for(;e===Xr;)Xr=Kt[--Xt],Kt[Xt]=null,Yr=Kt[--Xt],Kt[Xt]=null;for(;e===Lt;)Lt=je[--_e],je[_e]=null,Xe=je[--_e],je[_e]=null,Ke=je[--_e],je[_e]=null}var we=null,ke=null,W=!1,Re=null;function sa(e,t){var n=ze(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 ws(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,we=e,ke=ct(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Lt!==null?{id:Ke,overflow:Xe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,ke=null,!0):!1;default:return!1}}function _o(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zo(e){if(W){var t=ke;if(t){var n=t;if(!ws(e,t)){if(_o(e))throw Error(v(418));t=ct(n.nextSibling);var r=we;t&&ws(e,t)?sa(r,n):(e.flags=e.flags&-4097|2,W=!1,we=e)}}else{if(_o(e))throw Error(v(418));e.flags=e.flags&-4097|2,W=!1,we=e}}}function Ss(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function vr(e){if(e!==we)return!1;if(!W)return Ss(e),W=!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=ke)){if(_o(e))throw ua(),Error(v(418));for(;t;)sa(e,t),t=ct(t.nextSibling)}if(Ss(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(v(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ke=ct(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ke=null}}else ke=we?ct(e.stateNode.nextSibling):null;return!0}function ua(){for(var e=ke;e;)e=ct(e.nextSibling)}function on(){ke=we=null,W=!1}function hi(e){Re===null?Re=[e]:Re.push(e)}var pf=be.ReactCurrentBatchConfig;function kn(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(v(309));var r=n.stateNode}if(!r)throw Error(v(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var s=l.refs;i===null?delete s[o]:s[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(v(284));if(!n._owner)throw Error(v(290,e))}return e}function xr(e,t){throw e=Object.prototype.toString.call(t),Error(v(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cs(e){var t=e._init;return t(e._payload)}function aa(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=ht(f,c),f.index=0,f.sibling=null,f}function o(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function s(f,c,p,y){return c===null||c.tag!==6?(c=Yl(p,f.mode,y),c.return=f,c):(c=l(c,p),c.return=f,c)}function u(f,c,p,y){var C=p.type;return C===Bt?g(f,c,p.props.children,y,p.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===tt&&Cs(C)===c.type)?(y=l(c,p.props),y.ref=kn(f,c,p),y.return=f,y):(y=Dr(p.type,p.key,p.props,null,f.mode,y),y.ref=kn(f,c,p),y.return=f,y)}function d(f,c,p,y){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=Gl(p,f.mode,y),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function g(f,c,p,y,C){return c===null||c.tag!==7?(c=Nt(p,f.mode,y,C),c.return=f,c):(c=l(c,p),c.return=f,c)}function m(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Yl(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case ur:return p=Dr(c.type,c.key,c.props,null,f.mode,p),p.ref=kn(f,null,c),p.return=f,p;case Ft:return c=Gl(c,f.mode,p),c.return=f,c;case tt:var y=c._init;return m(f,y(c._payload),p)}if(En(c)||gn(c))return c=Nt(c,f.mode,p,null),c.return=f,c;xr(f,c)}return null}function h(f,c,p,y){var C=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return C!==null?null:s(f,c,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ur:return p.key===C?u(f,c,p,y):null;case Ft:return p.key===C?d(f,c,p,y):null;case tt:return C=p._init,h(f,c,C(p._payload),y)}if(En(p)||gn(p))return C!==null?null:g(f,c,p,y,null);xr(f,p)}return null}function x(f,c,p,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return f=f.get(p)||null,s(c,f,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ur:return f=f.get(y.key===null?p:y.key)||null,u(c,f,y,C);case Ft:return f=f.get(y.key===null?p:y.key)||null,d(c,f,y,C);case tt:var _=y._init;return x(f,c,p,_(y._payload),C)}if(En(y)||gn(y))return f=f.get(p)||null,g(c,f,y,C,null);xr(c,y)}return null}function w(f,c,p,y){for(var C=null,_=null,j=c,z=c=0,V=null;j!==null&&z<p.length;z++){j.index>z?(V=j,j=null):V=j.sibling;var N=h(f,j,p[z],y);if(N===null){j===null&&(j=V);break}e&&j&&N.alternate===null&&t(f,j),c=o(N,c,z),_===null?C=N:_.sibling=N,_=N,j=V}if(z===p.length)return n(f,j),W&&Et(f,z),C;if(j===null){for(;z<p.length;z++)j=m(f,p[z],y),j!==null&&(c=o(j,c,z),_===null?C=j:_.sibling=j,_=j);return W&&Et(f,z),C}for(j=r(f,j);z<p.length;z++)V=x(j,f,z,p[z],y),V!==null&&(e&&V.alternate!==null&&j.delete(V.key===null?z:V.key),c=o(V,c,z),_===null?C=V:_.sibling=V,_=V);return e&&j.forEach(function(ve){return t(f,ve)}),W&&Et(f,z),C}function S(f,c,p,y){var C=gn(p);if(typeof C!="function")throw Error(v(150));if(p=C.call(p),p==null)throw Error(v(151));for(var _=C=null,j=c,z=c=0,V=null,N=p.next();j!==null&&!N.done;z++,N=p.next()){j.index>z?(V=j,j=null):V=j.sibling;var ve=h(f,j,N.value,y);if(ve===null){j===null&&(j=V);break}e&&j&&ve.alternate===null&&t(f,j),c=o(ve,c,z),_===null?C=ve:_.sibling=ve,_=ve,j=V}if(N.done)return n(f,j),W&&Et(f,z),C;if(j===null){for(;!N.done;z++,N=p.next())N=m(f,N.value,y),N!==null&&(c=o(N,c,z),_===null?C=N:_.sibling=N,_=N);return W&&Et(f,z),C}for(j=r(f,j);!N.done;z++,N=p.next())N=x(j,f,z,N.value,y),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?z:N.key),c=o(N,c,z),_===null?C=N:_.sibling=N,_=N);return e&&j.forEach(function(kt){return t(f,kt)}),W&&Et(f,z),C}function O(f,c,p,y){if(typeof p=="object"&&p!==null&&p.type===Bt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ur:e:{for(var C=p.key,_=c;_!==null;){if(_.key===C){if(C=p.type,C===Bt){if(_.tag===7){n(f,_.sibling),c=l(_,p.props.children),c.return=f,f=c;break e}}else if(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===tt&&Cs(C)===_.type){n(f,_.sibling),c=l(_,p.props),c.ref=kn(f,_,p),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}p.type===Bt?(c=Nt(p.props.children,f.mode,y,p.key),c.return=f,f=c):(y=Dr(p.type,p.key,p.props,null,f.mode,y),y.ref=kn(f,c,p),y.return=f,f=y)}return i(f);case Ft:e:{for(_=p.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Gl(p,f.mode,y),c.return=f,f=c}return i(f);case tt:return _=p._init,O(f,c,_(p._payload),y)}if(En(p))return w(f,c,p,y);if(gn(p))return S(f,c,p,y);xr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=Yl(p,f.mode,y),c.return=f,f=c),i(f)):n(f,c)}return O}var sn=aa(!0),ca=aa(!1),Gr=vt(null),Zr=null,Yt=null,gi=null;function mi(){gi=Yt=Zr=null}function yi(e){var t=Gr.current;B(Gr),e._currentValue=t}function Po(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 tn(e,t){Zr=e,gi=Yt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(he=!0),e.firstContext=null)}function Te(e){var t=e._currentValue;if(gi!==e)if(e={context:e,memoizedValue:t,next:null},Yt===null){if(Zr===null)throw Error(v(308));Yt=e,Zr.dependencies={lanes:0,firstContext:e}}else Yt=Yt.next=e;return t}var zt=null;function vi(e){zt===null?zt=[e]:zt.push(e)}function da(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,vi(t)):(n.next=l.next,l.next=n),t.interleaved=n,Je(e,r)}function Je(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 nt=!1;function xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fa(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 Ye(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Je(e,n)}return l=r.interleaved,l===null?(t.next=t,vi(r)):(t.next=l.next,l.next=t),r.interleaved=t,Je(e,n)}function Tr(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,li(e,n)}}function Es(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=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};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jr(e,t,n,r){var l=e.updateQueue;nt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,d=u.next;u.next=null,i===null?o=d:i.next=d,i=u;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==i&&(s===null?g.firstBaseUpdate=d:s.next=d,g.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;i=0,g=d=u=null,s=o;do{var h=s.lane,x=s.eventTime;if((r&h)===h){g!==null&&(g=g.next={eventTime:x,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,S=s;switch(h=t,x=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){m=w.call(x,m,h);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,h=typeof w=="function"?w.call(x,m,h):w,h==null)break e;m=K({},m,h);break e;case 2:nt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[s]:h.push(s))}else x={eventTime:x,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(d=g=x,u=m):g=g.next=x,i|=h;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;h=s,s=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(g===null&&(u=m),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Rt|=i,e.lanes=i,e.memoizedState=m}}function js(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(v(191,l));l.call(r)}}}var rr={},Ve=vt(rr),Xn=vt(rr),Yn=vt(rr);function Pt(e){if(e===rr)throw Error(v(174));return e}function ki(e,t){switch(U(Yn,t),U(Xn,e),U(Ve,rr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:so(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=so(t,e)}B(Ve),U(Ve,t)}function un(){B(Ve),B(Xn),B(Yn)}function pa(e){Pt(Yn.current);var t=Pt(Ve.current),n=so(t,e.type);t!==n&&(U(Xn,e),U(Ve,n))}function wi(e){Xn.current===e&&(B(Ve),B(Xn))}var H=vt(0);function qr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vl=[];function Si(){for(var e=0;e<Vl.length;e++)Vl[e]._workInProgressVersionPrimary=null;Vl.length=0}var Nr=be.ReactCurrentDispatcher,$l=be.ReactCurrentBatchConfig,Mt=0,Q=null,Z=null,b=null,br=!1,Ln=!1,Gn=0,hf=0;function oe(){throw Error(v(321))}function Ci(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function Ei(e,t,n,r,l,o){if(Mt=o,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Nr.current=e===null||e.memoizedState===null?vf:xf,e=n(r,l),Ln){o=0;do{if(Ln=!1,Gn=0,25<=o)throw Error(v(301));o+=1,b=Z=null,t.updateQueue=null,Nr.current=kf,e=n(r,l)}while(Ln)}if(Nr.current=el,t=Z!==null&&Z.next!==null,Mt=0,b=Z=Q=null,br=!1,t)throw Error(v(300));return e}function ji(){var e=Gn!==0;return Gn=0,e}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?Q.memoizedState=b=e:b=b.next=e,b}function Ne(){if(Z===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=b===null?Q.memoizedState:b.next;if(t!==null)b=t,Z=e;else{if(e===null)throw Error(v(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},b===null?Q.memoizedState=b=e:b=b.next=e}return b}function Zn(e,t){return typeof t=="function"?t(e):t}function Hl(e){var t=Ne(),n=t.queue;if(n===null)throw Error(v(311));n.lastRenderedReducer=e;var r=Z,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var s=i=null,u=null,d=o;do{var g=d.lane;if((Mt&g)===g)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var m={lane:g,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(s=u=m,i=r):u=u.next=m,Q.lanes|=g,Rt|=g}d=d.next}while(d!==null&&d!==o);u===null?i=r:u.next=s,Ae(r,t.memoizedState)||(he=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Q.lanes|=o,Rt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ql(e){var t=Ne(),n=t.queue;if(n===null)throw Error(v(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Ae(o,t.memoizedState)||(he=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ha(){}function ga(e,t){var n=Q,r=Ne(),l=t(),o=!Ae(r.memoizedState,l);if(o&&(r.memoizedState=l,he=!0),r=r.queue,_i(va.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,Jn(9,ya.bind(null,n,r,l,t),void 0,null),ee===null)throw Error(v(349));Mt&30||ma(n,t,l)}return l}function ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ya(e,t,n,r){t.value=n,t.getSnapshot=r,xa(t)&&ka(e)}function va(e,t,n){return n(function(){xa(t)&&ka(e)})}function xa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ae(e,n)}catch{return!0}}function ka(e){var t=Je(e,1);t!==null&&Oe(t,e,1,-1)}function _s(e){var t=Fe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},t.queue=e,e=e.dispatch=yf.bind(null,Q,e),[t.memoizedState,e]}function Jn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function wa(){return Ne().memoizedState}function Ir(e,t,n,r){var l=Fe();Q.flags|=e,l.memoizedState=Jn(1|t,n,void 0,r===void 0?null:r)}function pl(e,t,n,r){var l=Ne();r=r===void 0?null:r;var o=void 0;if(Z!==null){var i=Z.memoizedState;if(o=i.destroy,r!==null&&Ci(r,i.deps)){l.memoizedState=Jn(t,n,o,r);return}}Q.flags|=e,l.memoizedState=Jn(1|t,n,o,r)}function zs(e,t){return Ir(8390656,8,e,t)}function _i(e,t){return pl(2048,8,e,t)}function Sa(e,t){return pl(4,2,e,t)}function Ca(e,t){return pl(4,4,e,t)}function Ea(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 ja(e,t,n){return n=n!=null?n.concat([e]):null,pl(4,4,Ea.bind(null,t,e),n)}function zi(){}function _a(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ci(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function za(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ci(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t,n){return Mt&21?(Ae(n,t)||(n=Mu(),Q.lanes|=n,Rt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,he=!0),e.memoizedState=n)}function gf(e,t){var n=R;R=n!==0&&4>n?n:4,e(!0);var r=$l.transition;$l.transition={};try{e(!1),t()}finally{R=n,$l.transition=r}}function Ta(){return Ne().memoizedState}function mf(e,t,n){var r=pt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Na(e))Ia(t,n);else if(n=da(e,t,n,r),n!==null){var l=ce();Oe(n,e,r,l),La(n,t,r)}}function yf(e,t,n){var r=pt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Na(e))Ia(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,Ae(s,i)){var u=t.interleaved;u===null?(l.next=l,vi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=da(e,t,l,r),n!==null&&(l=ce(),Oe(n,e,r,l),La(n,t,r))}}function Na(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Ia(e,t){Ln=br=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function La(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,li(e,n)}}var el={readContext:Te,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},vf={readContext:Te,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:zs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ir(4194308,4,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ir(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ir(4,2,e,t)},useMemo:function(e,t){var n=Fe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fe();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=mf.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:_s,useDebugValue:zi,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=_s(!1),t=e[0];return e=gf.bind(null,e[1]),Fe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=Fe();if(W){if(n===void 0)throw Error(v(407));n=n()}else{if(n=t(),ee===null)throw Error(v(349));Mt&30||ma(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,zs(va.bind(null,r,o,e),[e]),r.flags|=2048,Jn(9,ya.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Fe(),t=ee.identifierPrefix;if(W){var n=Xe,r=Ke;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xf={readContext:Te,useCallback:_a,useContext:Te,useEffect:_i,useImperativeHandle:ja,useInsertionEffect:Sa,useLayoutEffect:Ca,useMemo:za,useReducer:Hl,useRef:wa,useState:function(){return Hl(Zn)},useDebugValue:zi,useDeferredValue:function(e){var t=Ne();return Pa(t,Z.memoizedState,e)},useTransition:function(){var e=Hl(Zn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:ha,useSyncExternalStore:ga,useId:Ta,unstable_isNewReconciler:!1},kf={readContext:Te,useCallback:_a,useContext:Te,useEffect:_i,useImperativeHandle:ja,useInsertionEffect:Sa,useLayoutEffect:Ca,useMemo:za,useReducer:Ql,useRef:wa,useState:function(){return Ql(Zn)},useDebugValue:zi,useDeferredValue:function(e){var t=Ne();return Z===null?t.memoizedState=e:Pa(t,Z.memoizedState,e)},useTransition:function(){var e=Ql(Zn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:ha,useSyncExternalStore:ga,useId:Ta,unstable_isNewReconciler:!1};function Le(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function To(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hl={isMounted:function(e){return(e=e._reactInternals)?At(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ce(),l=pt(e),o=Ye(r,l);o.payload=t,n!=null&&(o.callback=n),t=dt(e,o,l),t!==null&&(Oe(t,e,l,r),Tr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ce(),l=pt(e),o=Ye(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=dt(e,o,l),t!==null&&(Oe(t,e,l,r),Tr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ce(),r=pt(e),l=Ye(n,r);l.tag=2,t!=null&&(l.callback=t),t=dt(e,l,r),t!==null&&(Oe(t,e,r,n),Tr(t,e,r))}};function Ps(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!$n(n,r)||!$n(l,o):!0}function Ma(e,t,n){var r=!1,l=mt,o=t.contextType;return typeof o=="object"&&o!==null?o=Te(o):(l=me(t)?It:ue.current,r=t.contextTypes,o=(r=r!=null)?ln(e,l):mt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ts(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&&hl.enqueueReplaceState(t,t.state,null)}function No(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},xi(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Te(o):(o=me(t)?It:ue.current,l.context=ln(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(To(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&hl.enqueueReplaceState(l,l.state,null),Jr(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function an(e,t){try{var n="",r=t;do n+=Xc(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Kl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Io(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wf=typeof WeakMap=="function"?WeakMap:Map;function Ra(e,t,n){n=Ye(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nl||(nl=!0,Wo=r),Io(e,t)},n}function Da(e,t,n){n=Ye(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Io(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Io(e,t),typeof r!="function"&&(ft===null?ft=new Set([this]):ft.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ns(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wf;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Df.bind(null,e,t,n),t.then(e,e))}function Is(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 Ls(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ye(-1,1),t.tag=2,dt(n,t,1))),n.lanes|=1),e)}var Sf=be.ReactCurrentOwner,he=!1;function ae(e,t,n,r){t.child=e===null?ca(t,null,n,r):sn(t,e.child,n,r)}function Ms(e,t,n,r,l){n=n.render;var o=t.ref;return tn(t,l),r=Ei(e,t,n,r,o,l),n=ji(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,qe(e,t,l)):(W&&n&&fi(t),t.flags|=1,ae(e,t,r,l),t.child)}function Rs(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Di(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Oa(e,t,o,r,l)):(e=Dr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:$n,n(i,r)&&e.ref===t.ref)return qe(e,t,l)}return t.flags|=1,e=ht(o,r),e.ref=t.ref,e.return=t,t.child=e}function Oa(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if($n(o,r)&&e.ref===t.ref)if(he=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(he=!0);else return t.lanes=e.lanes,qe(e,t,l)}return Lo(e,t,n,r,l)}function Aa(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(Zt,xe),xe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(Zt,xe),xe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(Zt,xe),xe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(Zt,xe),xe|=r;return ae(e,t,l,n),t.child}function Ua(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Lo(e,t,n,r,l){var o=me(n)?It:ue.current;return o=ln(t,o),tn(t,l),n=Ei(e,t,n,r,o,l),r=ji(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,qe(e,t,l)):(W&&r&&fi(t),t.flags|=1,ae(e,t,n,l),t.child)}function Ds(e,t,n,r,l){if(me(n)){var o=!0;Kr(t)}else o=!1;if(tn(t,l),t.stateNode===null)Lr(e,t),Ma(t,n,r),No(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=Te(d):(d=me(n)?It:ue.current,d=ln(t,d));var g=n.getDerivedStateFromProps,m=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==d)&&Ts(t,i,r,d),nt=!1;var h=t.memoizedState;i.state=h,Jr(t,r,i,l),u=t.memoizedState,s!==r||h!==u||ge.current||nt?(typeof g=="function"&&(To(t,n,g,r),u=t.memoizedState),(s=nt||Ps(t,n,s,r,h,u,d))?(m||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=d,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,fa(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:Le(t.type,s),i.props=d,m=t.pendingProps,h=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Te(u):(u=me(n)?It:ue.current,u=ln(t,u));var x=n.getDerivedStateFromProps;(g=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==m||h!==u)&&Ts(t,i,r,u),nt=!1,h=t.memoizedState,i.state=h,Jr(t,r,i,l);var w=t.memoizedState;s!==m||h!==w||ge.current||nt?(typeof x=="function"&&(To(t,n,x,r),w=t.memoizedState),(d=nt||Ps(t,n,d,r,h,w,u)||!1)?(g||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"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=u,r=d):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Mo(e,t,n,r,o,l)}function Mo(e,t,n,r,l,o){Ua(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&ks(t,n,!1),qe(e,t,o);r=t.stateNode,Sf.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=sn(t,e.child,null,o),t.child=sn(t,null,s,o)):ae(e,t,s,o),t.memoizedState=r.state,l&&ks(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?xs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xs(e,t.context,!1),ki(e,t.containerInfo)}function Os(e,t,n,r,l){return on(),hi(l),t.flags|=256,ae(e,t,n,r),t.child}var Ro={dehydrated:null,treeContext:null,retryLane:0};function Do(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ba(e,t,n){var r=t.pendingProps,l=H.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),U(H,l&1),e===null)return zo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=yl(i,r,0,null),e=Nt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Do(n),t.memoizedState=Ro,e):Pi(t,i));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return Cf(e,t,i,r,s,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ht(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?o=ht(s,o):(o=Nt(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Do(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Ro,r}return o=e.child,e=o.sibling,r=ht(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pi(e,t){return t=yl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function kr(e,t,n,r){return r!==null&&hi(r),sn(t,e.child,null,n),e=Pi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cf(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Kl(Error(v(422))),kr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=yl({mode:"visible",children:r.children},l,0,null),o=Nt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&sn(t,e.child,null,i),t.child.memoizedState=Do(i),t.memoizedState=Ro,o);if(!(t.mode&1))return kr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(v(419)),r=Kl(o,r,void 0),kr(e,t,i,r)}if(s=(i&e.childLanes)!==0,he||s){if(r=ee,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Je(e,l),Oe(r,e,l,-1))}return Ri(),r=Kl(Error(v(421))),kr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Of.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ke=ct(l.nextSibling),we=t,W=!0,Re=null,e!==null&&(je[_e++]=Ke,je[_e++]=Xe,je[_e++]=Lt,Ke=e.id,Xe=e.overflow,Lt=t),t=Pi(t,r.children),t.flags|=4096,t)}function As(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Po(e.return,t,n)}function Xl(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Wa(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ae(e,t,r.children,n),r=H.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&As(e,n,t);else if(e.tag===19)As(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(U(H,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&qr(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Xl(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&qr(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Xl(t,!0,n,null,o);break;case"together":Xl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qe(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(v(153));if(t.child!==null){for(e=t.child,n=ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ef(e,t,n){switch(t.tag){case 3:Fa(t),on();break;case 5:pa(t);break;case 1:me(t.type)&&Kr(t);break;case 4:ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(Gr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(H,H.current&1),t.flags|=128,null):n&t.child.childLanes?Ba(e,t,n):(U(H,H.current&1),e=qe(e,t,n),e!==null?e.sibling:null);U(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wa(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,Aa(e,t,n)}return qe(e,t,n)}var Va,Oo,$a,Ha;Va=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}};Oo=function(){};$a=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Pt(Ve.current);var o=null;switch(n){case"input":l=ro(e,l),r=ro(e,r),o=[];break;case"select":l=K({},l,{value:void 0}),r=K({},r,{value:void 0}),o=[];break;case"textarea":l=io(e,l),r=io(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hr)}uo(n,r);var i;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var s=l[d];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(On.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var u=r[d];if(s=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&u!==s&&(u!=null||s!=null))if(d==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(On.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&F("scroll",e),o||s===u||(o=[])):(o=o||[]).push(d,u))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Ha=function(e,t,n,r){n!==r&&(t.flags|=4)};function wn(e,t){if(!W)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 ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function jf(e,t,n){var r=t.pendingProps;switch(pi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(t),null;case 1:return me(t.type)&&Qr(),ie(t),null;case 3:return r=t.stateNode,un(),B(ge),B(ue),Si(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Re!==null&&(Ho(Re),Re=null))),Oo(e,t),ie(t),null;case 5:wi(t);var l=Pt(Yn.current);if(n=t.type,e!==null&&t.stateNode!=null)$a(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(v(166));return ie(t),null}if(e=Pt(Ve.current),vr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Be]=t,r[Kn]=o,e=(t.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(l=0;l<_n.length;l++)F(_n[l],r);break;case"source":F("error",r);break;case"img":case"image":case"link":F("error",r),F("load",r);break;case"details":F("toggle",r);break;case"input":Ki(r,o),F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},F("invalid",r);break;case"textarea":Yi(r,o),F("invalid",r)}uo(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];i==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&yr(r.textContent,s,e),l=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&yr(r.textContent,s,e),l=["children",""+s]):On.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&F("scroll",r)}switch(n){case"input":ar(r),Xi(r,o,!0);break;case"textarea":ar(r),Gi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Hr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vu(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[Be]=t,e[Kn]=r,Va(e,t,!1,!1),t.stateNode=e;e:{switch(i=ao(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;l<_n.length;l++)F(_n[l],e);l=r;break;case"source":F("error",e),l=r;break;case"img":case"image":case"link":F("error",e),F("load",e),l=r;break;case"details":F("toggle",e),l=r;break;case"input":Ki(e,r),l=ro(e,r),F("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=K({},r,{value:void 0}),F("invalid",e);break;case"textarea":Yi(e,r),l=io(e,r),F("invalid",e);break;default:l=r}uo(n,l),s=l;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?wu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&xu(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&An(e,u):typeof u=="number"&&An(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(On.hasOwnProperty(o)?u!=null&&o==="onScroll"&&F("scroll",e):u!=null&&qo(e,o,u,i))}switch(n){case"input":ar(e),Xi(e,r,!1);break;case"textarea":ar(e),Gi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Jt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Hr)}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 ie(t),null;case 6:if(e&&t.stateNode!=null)Ha(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(v(166));if(n=Pt(Yn.current),Pt(Ve.current),vr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Be]=t,(o=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:yr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Be]=t,t.stateNode=r}return ie(t),null;case 13:if(B(H),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&ke!==null&&t.mode&1&&!(t.flags&128))ua(),on(),t.flags|=98560,o=!1;else if(o=vr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(v(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(v(317));o[Be]=t}else on(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ie(t),o=!1}else Re!==null&&(Ho(Re),Re=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||H.current&1?J===0&&(J=3):Ri())),t.updateQueue!==null&&(t.flags|=4),ie(t),null);case 4:return un(),Oo(e,t),e===null&&Hn(t.stateNode.containerInfo),ie(t),null;case 10:return yi(t.type._context),ie(t),null;case 17:return me(t.type)&&Qr(),ie(t),null;case 19:if(B(H),o=t.memoizedState,o===null)return ie(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)wn(o,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=qr(e),i!==null){for(t.flags|=128,wn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(H,H.current&1|2),t.child}e=e.sibling}o.tail!==null&&Y()>cn&&(t.flags|=128,r=!0,wn(o,!1),t.lanes=4194304)}else{if(!r)if(e=qr(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!W)return ie(t),null}else 2*Y()-o.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,wn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Y(),t.sibling=null,n=H.current,U(H,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return Mi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(v(156,t.tag))}function _f(e,t){switch(pi(t),t.tag){case 1:return me(t.type)&&Qr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return un(),B(ge),B(ue),Si(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wi(t),null;case 13:if(B(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(v(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(H),null;case 4:return un(),null;case 10:return yi(t.type._context),null;case 22:case 23:return Mi(),null;case 24:return null;default:return null}}var wr=!1,se=!1,zf=typeof WeakSet=="function"?WeakSet:Set,E=null;function Gt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Ao(e,t,n){try{n()}catch(r){X(e,t,r)}}var Us=!1;function Pf(e,t){if(ko=Wr,e=Gu(),di(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,d=0,g=0,m=e,h=null;t:for(;;){for(var x;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(x=m.firstChild)!==null;)h=m,m=x;for(;;){if(m===e)break t;if(h===n&&++d===l&&(s=i),h===o&&++g===r&&(u=i),(x=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=x}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(wo={focusedElem:e,selectionRange:n},Wr=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,O=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:Le(t.type,S),O);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(v(163))}}catch(y){X(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return w=Us,Us=!1,w}function Mn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ao(t,n,o)}l=l.next}while(l!==r)}}function gl(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 Uo(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 Qa(e){var t=e.alternate;t!==null&&(e.alternate=null,Qa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Be],delete t[Kn],delete t[Eo],delete t[cf],delete t[df])),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 Ka(e){return e.tag===5||e.tag===3||e.tag===4}function Fs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ka(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 Fo(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=Hr));else if(r!==4&&(e=e.child,e!==null))for(Fo(e,t,n),e=e.sibling;e!==null;)Fo(e,t,n),e=e.sibling}function Bo(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(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}var ne=null,Me=!1;function et(e,t,n){for(n=n.child;n!==null;)Xa(e,t,n),n=n.sibling}function Xa(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(sl,n)}catch{}switch(n.tag){case 5:se||Gt(n,t);case 6:var r=ne,l=Me;ne=null,et(e,t,n),ne=r,Me=l,ne!==null&&(Me?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(Me?(e=ne,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),Wn(e)):Bl(ne,n.stateNode));break;case 4:r=ne,l=Me,ne=n.stateNode.containerInfo,Me=!0,et(e,t,n),ne=r,Me=l;break;case 0:case 11:case 14:case 15:if(!se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ao(n,t,i),l=l.next}while(l!==r)}et(e,t,n);break;case 1:if(!se&&(Gt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){X(n,t,s)}et(e,t,n);break;case 21:et(e,t,n);break;case 22:n.mode&1?(se=(r=se)||n.memoizedState!==null,et(e,t,n),se=r):et(e,t,n);break;default:et(e,t,n)}}function Bs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zf),t.forEach(function(r){var l=Af.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:ne=s.stateNode,Me=!1;break e;case 3:ne=s.stateNode.containerInfo,Me=!0;break e;case 4:ne=s.stateNode.containerInfo,Me=!0;break e}s=s.return}if(ne===null)throw Error(v(160));Xa(o,i,l),ne=null,Me=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){X(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ya(t,e),t=t.sibling}function Ya(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ie(t,e),Ue(e),r&4){try{Mn(3,e,e.return),gl(3,e)}catch(S){X(e,e.return,S)}try{Mn(5,e,e.return)}catch(S){X(e,e.return,S)}}break;case 1:Ie(t,e),Ue(e),r&512&&n!==null&&Gt(n,n.return);break;case 5:if(Ie(t,e),Ue(e),r&512&&n!==null&&Gt(n,n.return),e.flags&32){var l=e.stateNode;try{An(l,"")}catch(S){X(e,e.return,S)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&mu(l,o),ao(s,i);var d=ao(s,o);for(i=0;i<u.length;i+=2){var g=u[i],m=u[i+1];g==="style"?wu(l,m):g==="dangerouslySetInnerHTML"?xu(l,m):g==="children"?An(l,m):qo(l,g,m,d)}switch(s){case"input":lo(l,o);break;case"textarea":yu(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?Jt(l,!!o.multiple,x,!1):h!==!!o.multiple&&(o.defaultValue!=null?Jt(l,!!o.multiple,o.defaultValue,!0):Jt(l,!!o.multiple,o.multiple?[]:"",!1))}l[Kn]=o}catch(S){X(e,e.return,S)}}break;case 6:if(Ie(t,e),Ue(e),r&4){if(e.stateNode===null)throw Error(v(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(S){X(e,e.return,S)}}break;case 3:if(Ie(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch(S){X(e,e.return,S)}break;case 4:Ie(t,e),Ue(e);break;case 13:Ie(t,e),Ue(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Ii=Y())),r&4&&Bs(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(se=(d=se)||g,Ie(t,e),se=d):Ie(t,e),Ue(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!g&&e.mode&1)for(E=e,g=e.child;g!==null;){for(m=E=g;E!==null;){switch(h=E,x=h.child,h.tag){case 0:case 11:case 14:case 15:Mn(4,h,h.return);break;case 1:Gt(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(S){X(r,n,S)}}break;case 5:Gt(h,h.return);break;case 22:if(h.memoizedState!==null){Vs(m);continue}}x!==null?(x.return=h,E=x):Vs(m)}g=g.sibling}e:for(g=null,m=e;;){if(m.tag===5){if(g===null){g=m;try{l=m.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=m.stateNode,u=m.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=ku("display",i))}catch(S){X(e,e.return,S)}}}else if(m.tag===6){if(g===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(S){X(e,e.return,S)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;g===m&&(g=null),m=m.return}g===m&&(g=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ie(t,e),Ue(e),r&4&&Bs(e);break;case 21:break;default:Ie(t,e),Ue(e)}}function Ue(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ka(n)){var r=n;break e}n=n.return}throw Error(v(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(An(l,""),r.flags&=-33);var o=Fs(e);Bo(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,s=Fs(e);Fo(e,s,i);break;default:throw Error(v(161))}}catch(u){X(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tf(e,t,n){E=e,Ga(e)}function Ga(e,t,n){for(var r=(e.mode&1)!==0;E!==null;){var l=E,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||wr;if(!i){var s=l.alternate,u=s!==null&&s.memoizedState!==null||se;s=wr;var d=se;if(wr=i,(se=u)&&!d)for(E=l;E!==null;)i=E,u=i.child,i.tag===22&&i.memoizedState!==null?$s(l):u!==null?(u.return=i,E=u):$s(l);for(;o!==null;)E=o,Ga(o),o=o.sibling;E=l,wr=s,se=d}Ws(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,E=o):Ws(e)}}function Ws(e){for(;E!==null;){var t=E;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:se||gl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!se)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&js(t,o,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}js(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var g=d.memoizedState;if(g!==null){var m=g.dehydrated;m!==null&&Wn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(v(163))}se||t.flags&512&&Uo(t)}catch(h){X(t,t.return,h)}}if(t===e){E=null;break}if(n=t.sibling,n!==null){n.return=t.return,E=n;break}E=t.return}}function Vs(e){for(;E!==null;){var t=E;if(t===e){E=null;break}var n=t.sibling;if(n!==null){n.return=t.return,E=n;break}E=t.return}}function $s(e){for(;E!==null;){var t=E;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gl(4,t)}catch(u){X(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){X(t,l,u)}}var o=t.return;try{Uo(t)}catch(u){X(t,o,u)}break;case 5:var i=t.return;try{Uo(t)}catch(u){X(t,i,u)}}}catch(u){X(t,t.return,u)}if(t===e){E=null;break}var s=t.sibling;if(s!==null){s.return=t.return,E=s;break}E=t.return}}var Nf=Math.ceil,tl=be.ReactCurrentDispatcher,Ti=be.ReactCurrentOwner,Pe=be.ReactCurrentBatchConfig,M=0,ee=null,G=null,re=0,xe=0,Zt=vt(0),J=0,qn=null,Rt=0,ml=0,Ni=0,Rn=null,pe=null,Ii=0,cn=1/0,He=null,nl=!1,Wo=null,ft=null,Sr=!1,it=null,rl=0,Dn=0,Vo=null,Mr=-1,Rr=0;function ce(){return M&6?Y():Mr!==-1?Mr:Mr=Y()}function pt(e){return e.mode&1?M&2&&re!==0?re&-re:pf.transition!==null?(Rr===0&&(Rr=Mu()),Rr):(e=R,e!==0||(e=window.event,e=e===void 0?16:Bu(e.type)),e):1}function Oe(e,t,n,r){if(50<Dn)throw Dn=0,Vo=null,Error(v(185));er(e,n,r),(!(M&2)||e!==ee)&&(e===ee&&(!(M&2)&&(ml|=n),J===4&<(e,re)),ye(e,r),n===1&&M===0&&!(t.mode&1)&&(cn=Y()+500,fl&&xt()))}function ye(e,t){var n=e.callbackNode;fd(e,t);var r=Br(e,e===ee?re:0);if(r===0)n!==null&&qi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qi(n),t===1)e.tag===0?ff(Hs.bind(null,e)):oa(Hs.bind(null,e)),uf(function(){!(M&6)&&xt()}),n=null;else{switch(Ru(r)){case 1:n=ri;break;case 4:n=Iu;break;case 16:n=Fr;break;case 536870912:n=Lu;break;default:n=Fr}n=rc(n,Za.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Za(e,t){if(Mr=-1,Rr=0,M&6)throw Error(v(327));var n=e.callbackNode;if(nn()&&e.callbackNode!==n)return null;var r=Br(e,e===ee?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ll(e,r);else{t=r;var l=M;M|=2;var o=qa();(ee!==e||re!==t)&&(He=null,cn=Y()+500,Tt(e,t));do try{Mf();break}catch(s){Ja(e,s)}while(!0);mi(),tl.current=o,M=l,G!==null?t=0:(ee=null,re=0,t=J)}if(t!==0){if(t===2&&(l=go(e),l!==0&&(r=l,t=$o(e,l))),t===1)throw n=qn,Tt(e,0),lt(e,r),ye(e,Y()),n;if(t===6)lt(e,r);else{if(l=e.current.alternate,!(r&30)&&!If(l)&&(t=ll(e,r),t===2&&(o=go(e),o!==0&&(r=o,t=$o(e,o))),t===1))throw n=qn,Tt(e,0),lt(e,r),ye(e,Y()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(v(345));case 2:jt(e,pe,He);break;case 3:if(lt(e,r),(r&130023424)===r&&(t=Ii+500-Y(),10<t)){if(Br(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Co(jt.bind(null,e,pe,He),t);break}jt(e,pe,He);break;case 4:if(lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-De(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nf(r/1960))-r,10<r){e.timeoutHandle=Co(jt.bind(null,e,pe,He),r);break}jt(e,pe,He);break;case 5:jt(e,pe,He);break;default:throw Error(v(329))}}}return ye(e,Y()),e.callbackNode===n?Za.bind(null,e):null}function $o(e,t){var n=Rn;return e.current.memoizedState.isDehydrated&&(Tt(e,t).flags|=256),e=ll(e,t),e!==2&&(t=pe,pe=n,t!==null&&Ho(t)),e}function Ho(e){pe===null?pe=e:pe.push.apply(pe,e)}function If(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 l=n[r],o=l.getSnapshot;l=l.value;try{if(!Ae(o(),l))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 lt(e,t){for(t&=~Ni,t&=~ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-De(t),r=1<<n;e[n]=-1,t&=~r}}function Hs(e){if(M&6)throw Error(v(327));nn();var t=Br(e,0);if(!(t&1))return ye(e,Y()),null;var n=ll(e,t);if(e.tag!==0&&n===2){var r=go(e);r!==0&&(t=r,n=$o(e,r))}if(n===1)throw n=qn,Tt(e,0),lt(e,t),ye(e,Y()),n;if(n===6)throw Error(v(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jt(e,pe,He),ye(e,Y()),null}function Li(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(cn=Y()+500,fl&&xt())}}function Dt(e){it!==null&&it.tag===0&&!(M&6)&&nn();var t=M;M|=1;var n=Pe.transition,r=R;try{if(Pe.transition=null,R=1,e)return e()}finally{R=r,Pe.transition=n,M=t,!(M&6)&&xt()}}function Mi(){xe=Zt.current,B(Zt)}function Tt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sf(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(pi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qr();break;case 3:un(),B(ge),B(ue),Si();break;case 5:wi(r);break;case 4:un();break;case 13:B(H);break;case 19:B(H);break;case 10:yi(r.type._context);break;case 22:case 23:Mi()}n=n.return}if(ee=e,G=e=ht(e.current,null),re=xe=t,J=0,qn=null,Ni=ml=Rt=0,pe=Rn=null,zt!==null){for(t=0;t<zt.length;t++)if(n=zt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}zt=null}return e}function Ja(e,t){do{var n=G;try{if(mi(),Nr.current=el,br){for(var r=Q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}br=!1}if(Mt=0,b=Z=Q=null,Ln=!1,Gn=0,Ti.current=null,n===null||n.return===null){J=1,qn=t,G=null;break}e:{var o=e,i=n.return,s=n,u=t;if(t=re,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,g=s,m=g.tag;if(!(g.mode&1)&&(m===0||m===11||m===15)){var h=g.alternate;h?(g.updateQueue=h.updateQueue,g.memoizedState=h.memoizedState,g.lanes=h.lanes):(g.updateQueue=null,g.memoizedState=null)}var x=Is(i);if(x!==null){x.flags&=-257,Ls(x,i,s,o,t),x.mode&1&&Ns(o,d,t),t=x,u=d;var w=t.updateQueue;if(w===null){var S=new Set;S.add(u),t.updateQueue=S}else w.add(u);break e}else{if(!(t&1)){Ns(o,d,t),Ri();break e}u=Error(v(426))}}else if(W&&s.mode&1){var O=Is(i);if(O!==null){!(O.flags&65536)&&(O.flags|=256),Ls(O,i,s,o,t),hi(an(u,s));break e}}o=u=an(u,s),J!==4&&(J=2),Rn===null?Rn=[o]:Rn.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Ra(o,u,t);Es(o,f);break e;case 1:s=u;var c=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ft===null||!ft.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=Da(o,s,t);Es(o,y);break e}}o=o.return}while(o!==null)}ec(n)}catch(C){t=C,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function qa(){var e=tl.current;return tl.current=el,e===null?el:e}function Ri(){(J===0||J===3||J===2)&&(J=4),ee===null||!(Rt&268435455)&&!(ml&268435455)||lt(ee,re)}function ll(e,t){var n=M;M|=2;var r=qa();(ee!==e||re!==t)&&(He=null,Tt(e,t));do try{Lf();break}catch(l){Ja(e,l)}while(!0);if(mi(),M=n,tl.current=r,G!==null)throw Error(v(261));return ee=null,re=0,J}function Lf(){for(;G!==null;)ba(G)}function Mf(){for(;G!==null&&!rd();)ba(G)}function ba(e){var t=nc(e.alternate,e,xe);e.memoizedProps=e.pendingProps,t===null?ec(e):G=t,Ti.current=null}function ec(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_f(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{J=6,G=null;return}}else if(n=jf(n,t,xe),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);J===0&&(J=5)}function jt(e,t,n){var r=R,l=Pe.transition;try{Pe.transition=null,R=1,Rf(e,t,n,r)}finally{Pe.transition=l,R=r}return null}function Rf(e,t,n,r){do nn();while(it!==null);if(M&6)throw Error(v(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(v(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(pd(e,o),e===ee&&(G=ee=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Sr||(Sr=!0,rc(Fr,function(){return nn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Pe.transition,Pe.transition=null;var i=R;R=1;var s=M;M|=4,Ti.current=null,Pf(e,n),Ya(n,e),bd(wo),Wr=!!ko,wo=ko=null,e.current=n,Tf(n),ld(),M=s,R=i,Pe.transition=o}else e.current=n;if(Sr&&(Sr=!1,it=e,rl=l),o=e.pendingLanes,o===0&&(ft=null),sd(n.stateNode),ye(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(nl)throw nl=!1,e=Wo,Wo=null,e;return rl&1&&e.tag!==0&&nn(),o=e.pendingLanes,o&1?e===Vo?Dn++:(Dn=0,Vo=e):Dn=0,xt(),null}function nn(){if(it!==null){var e=Ru(rl),t=Pe.transition,n=R;try{if(Pe.transition=null,R=16>e?16:e,it===null)var r=!1;else{if(e=it,it=null,rl=0,M&6)throw Error(v(331));var l=M;for(M|=4,E=e.current;E!==null;){var o=E,i=o.child;if(E.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var d=s[u];for(E=d;E!==null;){var g=E;switch(g.tag){case 0:case 11:case 15:Mn(8,g,o)}var m=g.child;if(m!==null)m.return=g,E=m;else for(;E!==null;){g=E;var h=g.sibling,x=g.return;if(Qa(g),g===d){E=null;break}if(h!==null){h.return=x,E=h;break}E=x}}}var w=o.alternate;if(w!==null){var S=w.child;if(S!==null){w.child=null;do{var O=S.sibling;S.sibling=null,S=O}while(S!==null)}}E=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,E=i;else e:for(;E!==null;){if(o=E,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Mn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,E=f;break e}E=o.return}}var c=e.current;for(E=c;E!==null;){i=E;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,E=p;else e:for(i=c;E!==null;){if(s=E,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:gl(9,s)}}catch(C){X(s,s.return,C)}if(s===i){E=null;break e}var y=s.sibling;if(y!==null){y.return=s.return,E=y;break e}E=s.return}}if(M=l,xt(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(sl,e)}catch{}r=!0}return r}finally{R=n,Pe.transition=t}}return!1}function Qs(e,t,n){t=an(n,t),t=Ra(e,t,1),e=dt(e,t,1),t=ce(),e!==null&&(er(e,1,t),ye(e,t))}function X(e,t,n){if(e.tag===3)Qs(e,e,n);else for(;t!==null;){if(t.tag===3){Qs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ft===null||!ft.has(r))){e=an(n,e),e=Da(t,e,1),t=dt(t,e,1),e=ce(),t!==null&&(er(t,1,e),ye(t,e));break}}t=t.return}}function Df(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(re&n)===n&&(J===4||J===3&&(re&130023424)===re&&500>Y()-Ii?Tt(e,0):Ni|=n),ye(e,t)}function tc(e,t){t===0&&(e.mode&1?(t=fr,fr<<=1,!(fr&130023424)&&(fr=4194304)):t=1);var n=ce();e=Je(e,t),e!==null&&(er(e,t,n),ye(e,n))}function Of(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tc(e,n)}function Af(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(v(314))}r!==null&&r.delete(t),tc(e,n)}var nc;nc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,Ef(e,t,n);he=!!(e.flags&131072)}else he=!1,W&&t.flags&1048576&&ia(t,Yr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lr(e,t),e=t.pendingProps;var l=ln(t,ue.current);tn(t,n),l=Ei(null,t,r,e,l,n);var o=ji();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(o=!0,Kr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,xi(t),l.updater=hl,t.stateNode=l,l._reactInternals=t,No(t,r,e,n),t=Mo(null,t,r,!0,o,n)):(t.tag=0,W&&o&&fi(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ff(r),e=Le(r,e),l){case 0:t=Lo(null,t,r,e,n);break e;case 1:t=Ds(null,t,r,e,n);break e;case 11:t=Ms(null,t,r,e,n);break e;case 14:t=Rs(null,t,r,Le(r.type,e),n);break e}throw Error(v(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Lo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ds(e,t,r,l,n);case 3:e:{if(Fa(t),e===null)throw Error(v(387));r=t.pendingProps,o=t.memoizedState,l=o.element,fa(e,t),Jr(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=an(Error(v(423)),t),t=Os(e,t,r,n,l);break e}else if(r!==l){l=an(Error(v(424)),t),t=Os(e,t,r,n,l);break e}else for(ke=ct(t.stateNode.containerInfo.firstChild),we=t,W=!0,Re=null,n=ca(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===l){t=qe(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return pa(t),e===null&&zo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,So(r,l)?i=null:o!==null&&So(r,o)&&(t.flags|=32),Ua(e,t),ae(e,t,i,n),t.child;case 6:return e===null&&zo(t),null;case 13:return Ba(e,t,n);case 4:return ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sn(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ms(e,t,r,l,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,U(Gr,r._currentValue),r._currentValue=i,o!==null)if(Ae(o.value,i)){if(o.children===l.children&&!ge.current){t=qe(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Ye(-1,n&-n),u.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?u.next=u:(u.next=g.next,g.next=u),d.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Po(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(v(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Po(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tn(t,n),l=Te(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),Rs(e,t,r,l,n);case 15:return Oa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Lr(e,t),t.tag=1,me(r)?(e=!0,Kr(t)):e=!1,tn(t,n),Ma(t,r,l),No(t,r,l,n),Mo(null,t,r,!0,e,n);case 19:return Wa(e,t,n);case 22:return Aa(e,t,n)}throw Error(v(156,t.tag))};function rc(e,t){return Nu(e,t)}function Uf(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 ze(e,t,n,r){return new Uf(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ff(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ei)return 11;if(e===ti)return 14}return 2}function ht(e,t){var n=e.alternate;return n===null?(n=ze(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 Dr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Di(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Bt:return Nt(n.children,l,o,t);case bo:i=8,l|=8;break;case bl:return e=ze(12,n,t,l|2),e.elementType=bl,e.lanes=o,e;case eo:return e=ze(13,n,t,l),e.elementType=eo,e.lanes=o,e;case to:return e=ze(19,n,t,l),e.elementType=to,e.lanes=o,e;case pu:return yl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case du:i=10;break e;case fu:i=9;break e;case ei:i=11;break e;case ti:i=14;break e;case tt:i=16,r=null;break e}throw Error(v(130,e==null?e:typeof e,""))}return t=ze(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Nt(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function yl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=pu,e.lanes=n,e.stateNode={isHidden:!1},e}function Yl(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function Gl(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bf(e,t,n,r,l){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=Tl(0),this.expirationTimes=Tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Oi(e,t,n,r,l,o,i,s,u){return e=new Bf(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xi(o),e}function Wf(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ft,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lc(e){if(!e)return mt;e=e._reactInternals;e:{if(At(e)!==e||e.tag!==1)throw Error(v(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(v(171))}if(e.tag===1){var n=e.type;if(me(n))return la(e,n,t)}return t}function oc(e,t,n,r,l,o,i,s,u){return e=Oi(n,r,!0,e,l,o,i,s,u),e.context=lc(null),n=e.current,r=ce(),l=pt(n),o=Ye(r,l),o.callback=t??null,dt(n,o,l),e.current.lanes=l,er(e,l,r),ye(e,r),e}function vl(e,t,n,r){var l=t.current,o=ce(),i=pt(l);return n=lc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ye(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=dt(l,t,i),e!==null&&(Oe(e,l,i,o),Tr(e,l,i)),i}function ol(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 Ks(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ai(e,t){Ks(e,t),(e=e.alternate)&&Ks(e,t)}function Vf(){return null}var ic=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ui(e){this._internalRoot=e}xl.prototype.render=Ui.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(v(409));vl(e,t,null,null)};xl.prototype.unmount=Ui.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dt(function(){vl(null,e,null,null)}),t[Ze]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Au();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rt.length&&t!==0&&t<rt[n].priority;n++);rt.splice(n,0,e),n===0&&Fu(e)}};function Fi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xs(){}function $f(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=ol(i);o.call(d)}}var i=oc(t,r,e,0,null,!1,!1,"",Xs);return e._reactRootContainer=i,e[Ze]=i.current,Hn(e.nodeType===8?e.parentNode:e),Dt(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var s=r;r=function(){var d=ol(u);s.call(d)}}var u=Oi(e,0,!1,null,null,!1,!1,"",Xs);return e._reactRootContainer=u,e[Ze]=u.current,Hn(e.nodeType===8?e.parentNode:e),Dt(function(){vl(t,u,n,r)}),u}function wl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var s=l;l=function(){var u=ol(i);s.call(u)}}vl(t,i,e,l)}else i=$f(n,t,e,l,r);return ol(i)}Du=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jn(t.pendingLanes);n!==0&&(li(t,n|1),ye(t,Y()),!(M&6)&&(cn=Y()+500,xt()))}break;case 13:Dt(function(){var r=Je(e,1);if(r!==null){var l=ce();Oe(r,e,1,l)}}),Ai(e,1)}};oi=function(e){if(e.tag===13){var t=Je(e,134217728);if(t!==null){var n=ce();Oe(t,e,134217728,n)}Ai(e,134217728)}};Ou=function(e){if(e.tag===13){var t=pt(e),n=Je(e,t);if(n!==null){var r=ce();Oe(n,e,t,r)}Ai(e,t)}};Au=function(){return R};Uu=function(e,t){var n=R;try{return R=e,t()}finally{R=n}};fo=function(e,t,n){switch(t){case"input":if(lo(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 l=dl(r);if(!l)throw Error(v(90));gu(r),lo(r,l)}}}break;case"textarea":yu(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}};Eu=Li;ju=Dt;var Hf={usingClientEntryPoint:!1,Events:[nr,Ht,dl,Su,Cu,Li]},Sn={findFiberByHostInstance:_t,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qf={bundleType:Sn.bundleType,version:Sn.version,rendererPackageName:Sn.rendererPackageName,rendererConfig:Sn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:be.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Pu(e),e===null?null:e.stateNode},findFiberByHostInstance:Sn.findFiberByHostInstance||Vf,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 Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{sl=Cr.inject(Qf),We=Cr}catch{}}Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hf;Ce.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fi(t))throw Error(v(200));return Wf(e,t,null,n)};Ce.createRoot=function(e,t){if(!Fi(e))throw Error(v(299));var n=!1,r="",l=ic;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Oi(e,1,!1,null,null,n,!1,r,l),e[Ze]=t.current,Hn(e.nodeType===8?e.parentNode:e),new Ui(t)};Ce.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(v(188)):(e=Object.keys(e).join(","),Error(v(268,e)));return e=Pu(t),e=e===null?null:e.stateNode,e};Ce.flushSync=function(e){return Dt(e)};Ce.hydrate=function(e,t,n){if(!kl(t))throw Error(v(200));return wl(null,e,t,!0,n)};Ce.hydrateRoot=function(e,t,n){if(!Fi(e))throw Error(v(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=ic;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=oc(t,null,e,1,n??null,l,!1,o,i),e[Ze]=t.current,Hn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new xl(t)};Ce.render=function(e,t,n){if(!kl(t))throw Error(v(200));return wl(null,e,t,!1,n)};Ce.unmountComponentAtNode=function(e){if(!kl(e))throw Error(v(40));return e._reactRootContainer?(Dt(function(){wl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ze]=null})}),!0):!1};Ce.unstable_batchedUpdates=Li;Ce.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!kl(n))throw Error(v(200));if(e==null||e._reactInternals===void 0)throw Error(v(38));return wl(e,t,n,!1,r)};Ce.version="18.3.1-next-f1338f8080-20240426";function sc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sc)}catch(e){console.error(e)}}sc(),su.exports=Ce;var Kf=su.exports,Ys=Kf;Jl.createRoot=Ys.createRoot,Jl.hydrateRoot=Ys.hydrateRoot;/**
|
|
41
|
-
* @license lucide-react v0.468.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const Xf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
46
|
-
* @license lucide-react v0.468.0 - ISC
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the ISC license.
|
|
49
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var Yf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
-
* @license lucide-react v0.468.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const Gf=L.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:i,...s},u)=>L.createElement("svg",{ref:u,...Yf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uc("lucide",l),...s},[...i.map(([d,g])=>L.createElement(d,g)),...Array.isArray(o)?o:[o]]));/**
|
|
56
|
-
* @license lucide-react v0.468.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const D=(e,t)=>{const n=L.forwardRef(({className:r,...l},o)=>L.createElement(Gf,{ref:o,iconNode:t,className:uc(`lucide-${Xf(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
|
|
61
|
-
* @license lucide-react v0.468.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const Zf=D("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
66
|
-
* @license lucide-react v0.468.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const Jf=D("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
71
|
-
* @license lucide-react v0.468.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const ac=D("BatteryCharging",[["path",{d:"M15 7h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2",key:"1sdynx"}],["path",{d:"M6 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1",key:"1gkd3k"}],["path",{d:"m11 7-3 5h4l-3 5",key:"b4a64w"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
|
|
76
|
-
* @license lucide-react v0.468.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const qf=D("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
|
|
81
|
-
* @license lucide-react v0.468.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const bf=D("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
86
|
-
* @license lucide-react v0.468.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const ep=D("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
91
|
-
* @license lucide-react v0.468.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const cc=D("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
96
|
-
* @license lucide-react v0.468.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const Gs=D("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
|
|
101
|
-
* @license lucide-react v0.468.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const tp=D("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
106
|
-
* @license lucide-react v0.468.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const np=D("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
111
|
-
* @license lucide-react v0.468.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const dc=D("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
116
|
-
* @license lucide-react v0.468.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const rp=D("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
121
|
-
* @license lucide-react v0.468.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const lp=D("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
126
|
-
* @license lucide-react v0.468.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const op=D("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|
131
|
-
* @license lucide-react v0.468.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const ip=D("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
136
|
-
* @license lucide-react v0.468.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const sp=D("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
141
|
-
* @license lucide-react v0.468.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const up=D("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
146
|
-
* @license lucide-react v0.468.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const ap=D("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
|
|
151
|
-
* @license lucide-react v0.468.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const fc=D("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
156
|
-
* @license lucide-react v0.468.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const cp=D("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
161
|
-
* @license lucide-react v0.468.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const Qo=D("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
166
|
-
* @license lucide-react v0.468.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const dp=D("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
171
|
-
* @license lucide-react v0.468.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const fp=D("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
|
|
176
|
-
* @license lucide-react v0.468.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const pp=D("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
181
|
-
* @license lucide-react v0.468.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const pc=D("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
|
186
|
-
* @license lucide-react v0.468.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const hc=D("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
191
|
-
* @license lucide-react v0.468.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const hp=D("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),Zl={standard:{id:"user_std_001",name:"Nguyễn Văn An",phone:"0901234567",email:"an.nguyen@example.com",avatarUrl:"https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=150",role:"CUSTOMER",isVerified:!0,walletBalance:25e5},vip:{id:"user_vip_888",name:"Trần Thị Mai (VIP Diamond)",phone:"0988888888",email:"mai.tran@superapp.vn",avatarUrl:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=150",role:"VIP",isVerified:!0,walletBalance:5e7},lowBalance:{id:"user_low_002",name:"Lê Hoàng Khang",phone:"0912345678",email:"khang.le@example.com",avatarUrl:"https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?w=150",role:"CUSTOMER",isVerified:!0,walletBalance:15e3},unverified:{id:"user_guest_999",name:"Khách Vãng Lai",phone:"",email:"",avatarUrl:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150",role:"CUSTOMER",isVerified:!1,walletBalance:0}};class gp{constructor(t="superapp_mock_state"){te(this,"user");te(this,"session",null);te(this,"transactions",[]);te(this,"appStorage",new Map);te(this,"deviceState");te(this,"networkCondition");te(this,"permissions");this.user={...Zl.standard},this.deviceState={batteryLevel:85,isCharging:!1,platform:"ios",language:"vi-VN",systemName:"iOS",systemVersion:"18.2",model:"iPhone 15 Pro Max"},this.networkCondition={online:!0,type:"wifi",latencyMs:50},this.permissions={camera:"granted",location:"granted",notification:"granted",photos:"granted"},this.initDefaultSession()}initDefaultSession(){const t=Date.now();this.session={accessToken:`mock_jwt_${Math.random().toString(36).substring(2)}${Date.now()}`,refreshToken:`mock_refresh_${Math.random().toString(36).substring(2)}`,expiresIn:3600,tokenType:"Bearer",issuedAt:t}}getUser(){return{...this.user}}setUser(t){return this.user={...this.user,...t},this.getUser()}setUserPreset(t){const n=Zl[t]||Zl.standard;return this.user={...n},this.getUser()}getSession(){return!this.session||Date.now()>this.session.issuedAt+this.session.expiresIn*1e3?null:{...this.session}}createSession(){return this.initDefaultSession(),this.getSession()}clearSession(){this.session=null}getBalance(){return this.user.walletBalance}deductBalance(t){return this.user.walletBalance<t?!1:(this.user.walletBalance-=t,!0)}addTransaction(t){this.transactions.unshift(t)}getTransactions(){return[...this.transactions]}getTransaction(t){return this.transactions.find(n=>n.transactionId===t)}getDeviceState(){return{...this.deviceState}}updateDeviceState(t){this.deviceState={...this.deviceState,...t}}getNetworkCondition(){return{...this.networkCondition}}setNetworkCondition(t){this.networkCondition={...this.networkCondition,...t}}getPermissions(){return{...this.permissions}}setPermission(t,n){this.permissions[t]=n}getStorage(t){return this.appStorage.has(t)||this.appStorage.set(t,new Map),this.appStorage.get(t)}setStorageItem(t,n,r){this.getStorage(t).set(n,r)}getStorageItem(t,n){return this.getStorage(t).get(n)??null}removeStorageItem(t,n){this.getStorage(t).delete(n)}clearStorage(t){this.getStorage(t).clear()}}class mp{constructor(t){this.store=t}async login(t={}){var o,i;const n=this.store.getUser(),r=this.store.createSession();return{authCode:`authcode_${Math.random().toString(36).substring(2,10)}`,accessToken:r.accessToken,expiresIn:r.expiresIn,user:{id:n.id,name:n.name,avatarUrl:n.avatarUrl,phone:(o=t.scopes)!=null&&o.includes("user.phone")?n.phone:void 0,email:(i=t.scopes)!=null&&i.includes("user.email")?n.email:void 0}}}async getAccessToken(){const t=this.store.getSession();if(!t)throw{code:"TOKEN_EXPIRED",message:"Current access token has expired. Call auth.login() again."};return{accessToken:t.accessToken,tokenType:t.tokenType,expiresIn:Math.max(0,Math.floor((t.issuedAt+t.expiresIn*1e3-Date.now())/1e3))}}async getUserProfile(){const t=this.store.getUser();return{id:t.id,name:t.name,phone:t.phone,email:t.email,avatarUrl:t.avatarUrl,role:t.role,isVerified:t.isVerified}}async refreshToken(t={}){const n=this.store.createSession();return{accessToken:n.accessToken,refreshToken:n.refreshToken,expiresIn:n.expiresIn}}async logout(){return this.store.clearSession(),{success:!0,message:"Logged out successfully"}}}class yp{constructor(t){this.store=t}async getBatteryInfo(){const t=this.store.getDeviceState();return{batteryLevel:t.batteryLevel,isCharging:t.isCharging}}async getNetworkInfo(){const t=this.store.getNetworkCondition();return{isConnected:t.online,networkType:t.type,isWifi:t.type==="wifi",isMobile:t.type==="4g"||t.type==="5g"||t.type==="2g"}}async getDeviceInfo(){const t=this.store.getDeviceState();return{model:t.model,platform:t.platform,systemName:t.systemName,systemVersion:t.systemVersion,language:t.language,screenWidth:390,screenHeight:844,pixelRatio:3}}async getSystemInfo(){return this.getDeviceInfo()}async vibrate(t={}){if(typeof navigator<"u"&&"vibrate"in navigator)try{const n=t.style==="heavy"?80:t.style==="medium"?40:15;navigator.vibrate(n)}catch{}return{success:!0,style:t.style||"light"}}async keepScreen(t={}){return{success:!0,keepScreenOn:t.keepScreenOn!==!1}}}class vp{constructor(t){this.store=t}async getItem(t,n){if(!(n!=null&&n.key))throw{code:"INVALID_KEY",message:"Storage key is required"};const r=this.store.getStorageItem(t,n.key);return{key:n.key,value:r}}async setItem(t,n){if(!(n!=null&&n.key))throw{code:"INVALID_KEY",message:"Storage key is required"};return this.store.setStorageItem(t,n.key,String(n.value)),{success:!0,key:n.key}}async removeItem(t,n){if(!(n!=null&&n.key))throw{code:"INVALID_KEY",message:"Storage key is required"};return this.store.removeStorageItem(t,n.key),{success:!0,key:n.key}}async clear(t){return this.store.clearStorage(t),{success:!0}}async getAll(t){const n=this.store.getStorage(t),r={};return n.forEach((l,o)=>{r[o]=l}),r}}class xp{async showToast(t){return typeof window<"u"&&console.log(`[Toast] ${t.message}`),{success:!0,message:t.message}}async showAlert(t){return typeof window<"u"&&typeof window.alert=="function"&&window.alert(`${t.title}
|
|
196
|
-
|
|
197
|
-
${t.message}`),{confirmed:!0}}async showConfirm(t){let n=!0;return typeof window<"u"&&typeof window.confirm=="function"&&(n=window.confirm(`${t.title}
|
|
198
|
-
|
|
199
|
-
${t.message}`)),{confirmed:n}}async setNavigationBarTitle(t){return typeof document<"u"&&(document.title=t.title),{success:!0,title:t.title}}async setStatusBarColor(t){return{success:!0,color:t.color}}async setNavigationBarColor(t){return{success:!0,color:t.color,textColor:t.textColor||"black",statusBarColor:t.statusBarColor}}async configAppView(t={}){return{success:!0,actionBarHidden:!!t.actionBarHidden,statusBar:t.statusBar||"transparent",hideAndroidBottomNavigationBar:!!t.hideAndroidBottomNavigationBar,hasPadding:t.hasPadding!==!1,...t}}async requestSendNotification(t={}){return{success:!0,granted:!0,subscriptionId:`mock_sub_${Date.now()}`,token:`mock_notif_token_${Date.now()}`,templateId:t.templateId,reason:t.reason}}}class kp{async scanQRCode(t={}){return{content:"https://superapp.vn/pay?order=mock_qr_12345",format:"QR_CODE"}}async chooseImage(t={}){const n=t.count||1,r=["https://images.unsplash.com/photo-1546069901-ba9599a7e63c?w=500","https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=500"];return{tempFilePaths:r.slice(0,n),count:Math.min(n,r.length)}}}class wp{constructor(t={}){te(this,"store");te(this,"auth");te(this,"device");te(this,"storage");te(this,"ui");te(this,"media");te(this,"latencyMs");te(this,"logListeners",new Set);te(this,"logs",[]);this.store=new gp(t.storageKeyPrefix),this.latencyMs=t.simulatedLatencyMs??40,this.auth=new mp(this.store),this.device=new yp(this.store),this.storage=new vp(this.store),this.ui=new xp,this.media=new kp}setLatency(t){this.latencyMs=t}onLog(t){return this.logListeners.add(t),()=>this.logListeners.delete(t)}getLogs(){return[...this.logs]}clearLogs(){this.logs=[]}async dispatch(t){const n=Date.now();this.latencyMs>0&&await new Promise(r=>setTimeout(r,this.latencyMs));try{const r=await this.routeAction(t),l=Date.now()-n,o={id:t.id,action:t.action,success:!0,data:r,timestamp:Date.now()};return this.recordLog({id:t.id,action:t.action,payload:t.payload,response:r,durationMs:l,timestamp:n,success:!0}),o}catch(r){const l=Date.now()-n,o={code:(r==null?void 0:r.code)||"ACTION_FAILED",message:(r==null?void 0:r.message)||"Operation failed in mock engine",details:r==null?void 0:r.details},i={id:t.id,action:t.action,success:!1,error:o,timestamp:Date.now()};return this.recordLog({id:t.id,action:t.action,payload:t.payload,error:o,durationMs:l,timestamp:n,success:!1}),i}}recordLog(t){this.logs.unshift(t),this.logs.length>200&&this.logs.pop(),this.logListeners.forEach(n=>{try{n(t)}catch(r){console.error("[SDKMockEngine] Error in log listener:",r)}})}async routeAction(t){const{action:n,payload:r,appId:l}=t,o=r||{};switch(n){case"auth.login":case"login":return this.auth.login(o);case"auth.getAccessToken":case"getAccessToken":return this.auth.getAccessToken();case"auth.getUserProfile":case"getUserProfile":return this.auth.getUserProfile();case"auth.refreshToken":return this.auth.refreshToken(o);case"auth.logout":return this.auth.logout();case"device.getBatteryInfo":case"getBatteryInfo":return this.device.getBatteryInfo();case"device.getNetworkInfo":case"getNetworkInfo":return this.device.getNetworkInfo();case"device.getDeviceInfo":case"getDeviceInfo":return this.device.getDeviceInfo();case"device.getSystemInfo":case"getSystemInfo":return this.device.getSystemInfo();case"device.vibrate":case"vibrate":return this.device.vibrate(o);case"device.keepScreen":case"keepScreen":return this.device.keepScreen(o);case"storage.getItem":case"getStorage":return this.storage.getItem(l,o);case"storage.setItem":case"setStorage":return this.storage.setItem(l,o);case"storage.removeItem":case"removeStorage":return this.storage.removeItem(l,o);case"storage.clear":case"clearStorage":return this.storage.clear(l);case"storage.getAll":return this.storage.getAll(l);case"ui.showToast":case"showToast":return this.ui.showToast(o);case"ui.showAlert":case"showAlert":return this.ui.showAlert(o);case"ui.showConfirm":return this.ui.showConfirm(o);case"ui.setNavigationBarTitle":case"setTitle":case"setNavigationBarTitle":return this.ui.setNavigationBarTitle(o);case"ui.setStatusBarColor":case"setStatusBarColor":return this.ui.setStatusBarColor(o);case"ui.setNavigationBarColor":case"setNavigationBarColor":return this.ui.setNavigationBarColor(o);case"ui.configAppView":case"configAppView":return this.ui.configAppView(o);case"ui.requestSendNotification":case"requestSendNotification":return this.ui.requestSendNotification(o);case"media.scanQRCode":case"scanQr":return this.media.scanQRCode(o);case"media.chooseImage":case"getPhoto":return this.media.chooseImage(o);case"navigation.closeApp":case"closeApp":return{success:!0,message:"App closed"};case"navigation.minimizeApp":case"minimizeApp":return{success:!0,status:"minimized",appId:l};default:throw{code:"UNSUPPORTED_ACTION",message:`Mock action "${n}" is not implemented in SDKMockEngine.`}}}}const gc=L.createContext(null),Sp=({children:e})=>{const[t]=L.useState(()=>new wp({autoApprovePayment:!0})),[n,r]=L.useState(()=>typeof window<"u"&&new URLSearchParams(window.location.search).get("url")||"http://localhost:3000"),[l,o]=L.useState("iphone"),[i,s]=L.useState(1),[u,d]=L.useState([]),[g,m]=L.useState("bridge"),[h,x]=L.useState(!1),[w,S]=L.useState(1),[O,f]=L.useState(null),[c,p]=L.useState(()=>t.store.getUser()),[y,C]=L.useState(()=>t.store.getNetworkCondition()),[_,j]=L.useState(()=>t.store.getDeviceState()),z=L.useRef(null);L.useEffect(()=>{const $=t.onLog(k=>{d(P=>[k,...P.slice(0,150)])});return()=>{$()}},[t]),L.useEffect(()=>{const $=async k=>{const P=k.data;if(!P||P.type!=="SUPERAPP_BRIDGE_REQUEST")return;const T=P.request;if(!T||!T.id)return;const A=await t.dispatch(T);p(t.store.getUser()),j(t.store.getDeviceState()),k.source&&"postMessage"in k.source&&k.source.postMessage({type:"SUPERAPP_BRIDGE_RESPONSE",response:A},"*")};return window.addEventListener("message",$),()=>window.removeEventListener("message",$)},[t]);const V=$=>{z.current&&(z.current($),z.current=null),f(null)},N=$=>{const k=t.store.setUser($);p(k)},ve=$=>{const k=t.store.setUserPreset($);p(k)},kt=$=>{t.store.setNetworkCondition($),C(t.store.getNetworkCondition())},wt=$=>{t.store.updateDeviceState($),j(t.store.getDeviceState())},lr=()=>{S($=>$+1)},Sl=($,k)=>{document.querySelectorAll("iframe").forEach(T=>{var A;(A=T.contentWindow)==null||A.postMessage({type:"SUPERAPP_BRIDGE_EVENT",event:$,payload:k},"*")})},hn=()=>{t.clearLogs(),d([])};return a.jsx(gc.Provider,{value:{mockEngine:t,miniAppUrl:n,setMiniAppUrl:r,deviceType:l,setDeviceType:o,scale:i,setScale:s,logs:u,clearLogs:hn,activeTab:g,setActiveTab:m,user:c,setUser:N,setUserPreset:ve,network:y,setNetwork:kt,deviceState:_,setDeviceState:wt,manualPaymentMode:h,setManualPaymentMode:x,pendingPayment:O,resolvePayment:V,reloadIframe:lr,iframeKey:w,sendEventToMiniApp:Sl},children:e})},$e=()=>{const e=L.useContext(gc);if(!e)throw new Error("useSimulator must be used inside SimulatorProvider");return e},Cp=()=>{const{deviceType:e,network:t,deviceState:n}=$e(),[r,l]=L.useState("09:41");return L.useEffect(()=>{const o=()=>{const s=new Date;l(`${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}`)};o();const i=setInterval(o,1e4);return()=>clearInterval(i)},[]),a.jsxs("div",{style:{height:44,padding:"0 20px",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",color:"#000000",fontSize:13,fontWeight:600,userSelect:"none",position:"relative",borderTopLeftRadius:e==="iphone"?44:28,borderTopRightRadius:e==="iphone"?44:28},children:[a.jsx("span",{children:r}),e==="iphone"?a.jsx("div",{style:{position:"absolute",top:10,left:"50%",transform:"translateX(-50%)",width:110,height:28,backgroundColor:"#000000",borderRadius:18,zIndex:10}}):a.jsx("div",{style:{position:"absolute",top:12,left:"50%",transform:"translateX(-50%)",width:14,height:14,backgroundColor:"#000000",borderRadius:"50%",zIndex:10}}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[t.online?a.jsx("span",{style:{fontSize:11,fontWeight:700},children:t.type.toUpperCase()}):a.jsx("span",{style:{fontSize:11,color:"#ef4444"},children:"OFFLINE"}),t.online?a.jsx(pc,{size:14}):a.jsx(pp,{size:14,color:"#ef4444"}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[a.jsxs("span",{style:{fontSize:11},children:[n.batteryLevel,"%"]}),n.isCharging?a.jsx(ac,{size:16,color:"#10b981"}):a.jsx(qf,{size:16})]})]})]})},Ep=({title:e="Mini App"})=>{const{reloadIframe:t,sendEventToMiniApp:n}=$e();return a.jsxs("div",{style:{height:48,padding:"0 12px",backgroundColor:"#ffffff",borderBottom:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",color:"#0f172a"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.jsx("button",{onClick:()=>n("onNavigateBack",{}),title:"Back",style:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center"},children:a.jsx(Jf,{size:18,color:"#0f172a"})}),a.jsx("span",{style:{fontSize:15,fontWeight:600,maxWidth:160,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#f1f5f9",border:"1px solid #cbd5e1",borderRadius:20,padding:"2px 6px",gap:6},children:[a.jsx("button",{onClick:t,title:"Tải lại Mini App",style:{background:"none",border:"none",cursor:"pointer",padding:2,display:"flex",alignItems:"center"},children:a.jsx(ap,{size:13,color:"#475569"})}),a.jsx("div",{style:{width:1,height:12,backgroundColor:"#cbd5e1"}}),a.jsx("button",{title:"Menu",style:{background:"none",border:"none",cursor:"pointer",padding:2,display:"flex",alignItems:"center"},children:a.jsx(rp,{size:14,color:"#475569"})}),a.jsx("div",{style:{width:1,height:12,backgroundColor:"#cbd5e1"}}),a.jsx("button",{onClick:()=>alert("Đóng Mini App - Trở về màn hình chính SuperApp"),title:"Đóng Mini App",style:{background:"none",border:"none",cursor:"pointer",padding:2,display:"flex",alignItems:"center"},children:a.jsx(hc,{size:14,color:"#475569"})})]})]})},jp=()=>{const{pendingPayment:e,resolvePayment:t,user:n}=$e();if(!e)return null;const{order:r}=e,l=n.walletBalance>=r.amount;return a.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",display:"flex",flexDirection:"column",justifyContent:"flex-end",zIndex:100,animation:"fadeIn 0.2s ease"},children:a.jsxs("div",{style:{backgroundColor:"#ffffff",borderTopLeftRadius:24,borderTopRightRadius:24,padding:20,color:"#0f172a",boxShadow:"0 -4px 20px rgba(0, 0, 0, 0.15)"},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[a.jsx(fc,{size:20,color:"#0068FF"}),a.jsx("span",{style:{fontWeight:700,fontSize:16},children:"SuperApp Pay"})]}),a.jsx("button",{onClick:()=>t(!1),style:{background:"none",border:"none",cursor:"pointer",padding:4},children:a.jsx(hc,{size:18,color:"#64748b"})})]}),a.jsxs("div",{style:{textAlign:"center",margin:"12px 0 20px"},children:[a.jsx("div",{style:{fontSize:13,color:"#64748b"},children:"Tổng tiền thanh toán"}),a.jsxs("div",{style:{fontSize:28,fontWeight:800,color:"#0068FF"},children:[r.amount.toLocaleString("vi-VN")," đ"]}),a.jsx("div",{style:{fontSize:13,fontWeight:500,color:"#334155",marginTop:4},children:r.description||"Thanh toán dịch vụ Mini App"})]}),a.jsx("div",{style:{backgroundColor:"#f8fafc",borderRadius:12,padding:12,marginBottom:20,border:"1px solid #e2e8f0"},children:a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[a.jsx("div",{style:{width:36,height:36,borderRadius:8,backgroundColor:"#dbeafe",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(fp,{size:20,color:"#0068FF"})}),a.jsxs("div",{children:[a.jsx("div",{style:{fontWeight:600,fontSize:14},children:"Ví điện tử SuperApp"}),a.jsxs("div",{style:{fontSize:12,color:l?"#10b981":"#ef4444"},children:["Số dư: ",n.walletBalance.toLocaleString("vi-VN")," đ",!l&&" (Không đủ số dư)"]})]})]}),a.jsx(cc,{size:18,color:"#0068FF"})]})}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[a.jsx("button",{onClick:()=>t(!0),disabled:!l,style:{padding:"14px",backgroundColor:l?"#0068FF":"#94a3b8",color:"white",border:"none",borderRadius:12,fontWeight:700,fontSize:15,cursor:l?"pointer":"not-allowed"},children:"Xác nhận thanh toán"}),a.jsx("button",{onClick:()=>t(!1),style:{padding:"12px",backgroundColor:"transparent",color:"#64748b",border:"none",borderRadius:12,fontWeight:600,fontSize:14,cursor:"pointer"},children:"Huỷ giao dịch"})]})]})})},_p=()=>{const{deviceType:e,scale:t,miniAppUrl:n,iframeKey:r}=$e(),l=e==="iphone"?390:412,o=e==="iphone"?844:880;return a.jsx("div",{style:{transform:`scale(${t})`,transformOrigin:"top center",transition:"transform 0.2s ease"},children:a.jsx("div",{style:{width:l,height:o,backgroundColor:"#000000",borderRadius:e==="iphone"?52:36,padding:10,boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15)",position:"relative",display:"flex",flexDirection:"column"},children:a.jsxs("div",{style:{flex:1,backgroundColor:"#ffffff",borderRadius:e==="iphone"?44:28,overflow:"hidden",display:"flex",flexDirection:"column",position:"relative"},children:[a.jsx(Cp,{}),a.jsx(Ep,{title:"SuperApp Mini App"}),a.jsxs("div",{style:{flex:1,position:"relative",overflow:"hidden"},children:[a.jsx("iframe",{src:n,title:"Mini App Simulator View",style:{width:"100%",height:"100%",border:"none",backgroundColor:"#f8fafc"},allow:"geolocation; camera; microphone"},r),a.jsx(jp,{})]}),e==="iphone"&&a.jsx("div",{style:{height:20,backgroundColor:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx("div",{style:{width:130,height:4,backgroundColor:"#0f172a",borderRadius:2}})})]})})})},zp=()=>{const{logs:e,clearLogs:t}=$e(),[n,r]=L.useState(null),[l,o]=L.useState(""),i=e.filter(s=>s.action.toLowerCase().includes(l.toLowerCase()));return a.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",gap:12},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:8},children:[a.jsx("input",{type:"text",placeholder:"Lọc bridge action (vd: auth, payment)...",value:l,onChange:s=>o(s.target.value),style:{flex:1,padding:"6px 12px",borderRadius:6,border:"1px solid #334155",backgroundColor:"#0f172a",color:"#f8fafc",fontSize:13}}),a.jsxs("button",{onClick:t,title:"Xoá nhật ký",style:{padding:"6px 10px",backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#94a3b8",cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12},children:[a.jsx(Qo,{size:14})," Xoá"]})]}),a.jsx("div",{style:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:6},children:i.length===0?a.jsx("div",{style:{textAlign:"center",color:"#64748b",padding:"40px 10px",fontSize:13},children:"Chưa có cuộc gọi Bridge nào từ Mini App. Hãy thực hiện thao tác trong Mini App để theo dõi."}):i.map(s=>{const u=(n==null?void 0:n.id)===s.id;return a.jsxs("div",{onClick:()=>r(u?null:s),style:{padding:10,borderRadius:8,backgroundColor:u?"#1e293b":"#0f172a",border:`1px solid ${u?"#38bdf8":"#1e293b"}`,cursor:"pointer",fontSize:12,display:"flex",flexDirection:"column",gap:6},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[s.success?a.jsx(cc,{size:14,color:"#10b981"}):a.jsx(tp,{size:14,color:"#ef4444"}),a.jsx("span",{style:{fontWeight:600,color:"#f1f5f9"},children:s.action})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,color:"#94a3b8"},children:[a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:2,fontSize:11},children:[a.jsx(np,{size:11})," ",s.durationMs,"ms"]}),u?a.jsx(bf,{size:14}):a.jsx(ep,{size:14})]})]}),u&&a.jsxs("div",{style:{marginTop:6,paddingTop:8,borderTop:"1px solid #334155",display:"flex",flexDirection:"column",gap:8},children:[a.jsxs("div",{children:[a.jsx("div",{style:{color:"#94a3b8",fontSize:11,marginBottom:2},children:"Payload gửi đi:"}),a.jsx("pre",{style:{margin:0,padding:8,backgroundColor:"#020617",borderRadius:6,fontSize:11,color:"#e2e8f0",overflowX:"auto"},children:JSON.stringify(s.payload,null,2)})]}),a.jsxs("div",{children:[a.jsx("div",{style:{color:"#94a3b8",fontSize:11,marginBottom:2},children:"Kết quả phản hồi:"}),a.jsx("pre",{style:{margin:0,padding:8,backgroundColor:"#020617",borderRadius:6,fontSize:11,color:s.success?"#34d399":"#f87171",overflowX:"auto"},children:JSON.stringify(s.success?s.response:s.error,null,2)})]})]})]},s.id)})})]})},Pp=()=>{const{user:e,setUser:t,setUserPreset:n,mockEngine:r,sendEventToMiniApp:l}=$e(),o=r.store.getSession();return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,fontSize:13,color:"#f1f5f9"},children:[a.jsxs("div",{children:[a.jsx("div",{style:{fontWeight:600,marginBottom:8,color:"#94a3b8"},children:"Chọn tài khoản mẫu (Persona):"}),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[a.jsx("button",{onClick:()=>n("standard"),style:{padding:8,backgroundColor:e.id==="user_std_001"?"#0284c7":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"👤 Khách hàng chuẩn"}),a.jsx("button",{onClick:()=>n("vip"),style:{padding:8,backgroundColor:e.id==="user_vip_888"?"#7c3aed":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"💎 VIP Diamond (50tr)"}),a.jsx("button",{onClick:()=>n("lowBalance"),style:{padding:8,backgroundColor:e.id==="user_low_002"?"#d97706":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"⚠️ Số dư thấp (15k)"}),a.jsx("button",{onClick:()=>n("unverified"),style:{padding:8,backgroundColor:e.id==="user_guest_999"?"#dc2626":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"#ffffff",cursor:"pointer",fontWeight:500,fontSize:12},children:"❓ Khách vãng lai"})]})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[a.jsx("img",{src:e.avatarUrl,alt:"Avatar",style:{width:44,height:44,borderRadius:"50%",objectFit:"cover"}}),a.jsxs("div",{style:{flex:1},children:[a.jsx("div",{style:{fontWeight:700,fontSize:14},children:e.name}),a.jsx("div",{style:{color:"#94a3b8",fontSize:12},children:e.phone||"Chưa cung cấp SĐT"})]}),e.isVerified&&a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4,backgroundColor:"#064e3b",color:"#34d399",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600},children:[a.jsx(fc,{size:12})," Đã xác thực"]})]}),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,fontSize:12,marginTop:4},children:[a.jsxs("div",{children:[a.jsx("span",{style:{color:"#94a3b8"},children:"Vai trò:"})," ",a.jsx("span",{style:{fontWeight:600,color:"#38bdf8"},children:e.role})]}),a.jsxs("div",{children:[a.jsx("span",{style:{color:"#94a3b8"},children:"Số dư ví:"})," ",a.jsxs("span",{style:{fontWeight:600,color:"#10b981"},children:[e.walletBalance.toLocaleString("vi-VN")," đ"]})]})]})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:8},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,fontWeight:600,color:"#38bdf8"},children:[a.jsx(lp,{size:16})," Phiên Access Token"]}),o?a.jsxs("div",{children:[a.jsx("div",{style:{fontSize:11,color:"#94a3b8",marginBottom:2},children:"Mã Token:"}),a.jsx("div",{style:{fontFamily:"monospace",fontSize:11,backgroundColor:"#020617",padding:6,borderRadius:4,color:"#facc15",wordBreak:"break-all"},children:o.accessToken}),a.jsxs("div",{style:{fontSize:11,color:"#94a3b8",marginTop:4},children:["Hết hạn sau: ",o.expiresIn,"s (",o.tokenType,")"]})]}):a.jsx("div",{style:{color:"#ef4444",fontSize:12},children:"Phiên đã hết hạn hoặc chưa đăng nhập"}),a.jsxs("div",{style:{display:"flex",gap:8,marginTop:4},children:[a.jsx("button",{onClick:()=>{r.store.createSession(),l("onAuthStatusChange",{loggedIn:!0})},style:{flex:1,padding:"6px 10px",backgroundColor:"#0369a1",color:"white",border:"none",borderRadius:6,cursor:"pointer",fontWeight:600,fontSize:12},children:"Làm mới Token"}),a.jsxs("button",{onClick:()=>{r.store.clearSession(),l("onAuthStatusChange",{loggedIn:!1})},style:{padding:"6px 10px",backgroundColor:"#334155",color:"#f87171",border:"none",borderRadius:6,cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12},children:[a.jsx(op,{size:13})," Đăng xuất"]})]})]})]})},Tp=()=>{const{deviceState:e,setDeviceState:t,network:n,setNetwork:r,mockEngine:l,sendEventToMiniApp:o}=$e();return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,fontSize:13,color:"#f1f5f9"},children:[a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:6},children:[a.jsx(ac,{size:16,color:"#38bdf8"})," Giả lập Pin thiết bị"]}),a.jsxs("span",{style:{fontWeight:700,color:"#38bdf8"},children:[e.batteryLevel,"%"]})]}),a.jsx("input",{type:"range",min:"0",max:"100",value:e.batteryLevel,onChange:i=>t({batteryLevel:parseInt(i.target.value,10)}),style:{width:"100%",accentColor:"#0284c7"}}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsx("span",{style:{color:"#94a3b8",fontSize:12},children:"Đang cắm sạc (Charging):"}),a.jsx("input",{type:"checkbox",checked:e.isCharging,onChange:i=>t({isCharging:i.target.checked}),style:{width:16,height:16,accentColor:"#0284c7"}})]})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:6},children:[a.jsx(pc,{size:16,color:"#38bdf8"})," Mạng kết nối (Network Profile)"]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:6},children:["wifi","5g","4g","2g","none"].map(i=>a.jsx("button",{onClick:()=>r({type:i,online:i!=="none"}),style:{padding:"6px 4px",backgroundColor:n.type===i?"#0284c7":"#1e293b",border:"1px solid #334155",borderRadius:6,color:"white",fontSize:11,fontWeight:600,cursor:"pointer",textTransform:"uppercase"},children:i},i))})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:6},children:[a.jsx(sp,{size:16,color:"#38bdf8"})," Độ trễ Bridge (Latency Injection)"]}),a.jsxs("span",{style:{fontWeight:700,color:"#38bdf8"},children:[n.latencyMs," ms"]})]}),a.jsx("input",{type:"range",min:"0",max:"1500",step:"50",value:n.latencyMs,onChange:i=>{const s=parseInt(i.target.value,10);r({latencyMs:s}),l.setLatency(s)},style:{width:"100%",accentColor:"#0284c7"}})]}),a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:8},children:[a.jsx("div",{style:{fontWeight:600,color:"#94a3b8"},children:"Giả lập sự kiện vòng đời (Lifecycle Events):"}),a.jsxs("div",{style:{display:"flex",gap:8},children:[a.jsxs("button",{onClick:()=>o("appShow",{timestamp:Date.now()}),style:{flex:1,padding:"8px 10px",backgroundColor:"#065f46",color:"#34d399",border:"1px solid #047857",borderRadius:6,fontWeight:600,fontSize:12,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:4},children:[a.jsx(Gs,{size:14})," appShow"]}),a.jsxs("button",{onClick:()=>o("appHide",{timestamp:Date.now()}),style:{flex:1,padding:"8px 10px",backgroundColor:"#374151",color:"#d1d5db",border:"1px solid #4b5563",borderRadius:6,fontWeight:600,fontSize:12,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:4},children:[a.jsx(Gs,{size:14})," appHide"]})]})]})]})},Np=()=>{const{mockEngine:e}=$e(),[t,n]=L.useState(""),[r,l]=L.useState(""),[o,i]=L.useState(0),s=e.store.getStorage("mini_app_simulator"),u=Array.from(s.entries()),d=()=>{t.trim()&&(e.store.setStorageItem("mini_app_simulator",t.trim(),r),n(""),l(""),i(h=>h+1))},g=h=>{e.store.removeStorageItem("mini_app_simulator",h),i(x=>x+1)},m=()=>{e.store.clearStorage("mini_app_simulator"),i(h=>h+1)};return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,fontSize:13,color:"#f1f5f9"},children:[a.jsxs("div",{style:{backgroundColor:"#0f172a",borderRadius:8,padding:12,border:"1px solid #1e293b",display:"flex",flexDirection:"column",gap:8},children:[a.jsxs("div",{style:{fontWeight:600,color:"#38bdf8",display:"flex",alignItems:"center",gap:6},children:[a.jsx(dc,{size:16})," Thêm Key vào bộ nhớ Mini App"]}),a.jsxs("div",{style:{display:"flex",gap:6},children:[a.jsx("input",{type:"text",placeholder:"Key (vd: cart_id)",value:t,onChange:h=>n(h.target.value),style:{flex:1,padding:"6px 10px",backgroundColor:"#020617",border:"1px solid #334155",borderRadius:6,color:"white",fontSize:12}}),a.jsx("input",{type:"text",placeholder:"Value",value:r,onChange:h=>l(h.target.value),style:{flex:2,padding:"6px 10px",backgroundColor:"#020617",border:"1px solid #334155",borderRadius:6,color:"white",fontSize:12}}),a.jsxs("button",{onClick:d,style:{padding:"6px 12px",backgroundColor:"#0284c7",color:"white",border:"none",borderRadius:6,cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12,fontWeight:600},children:[a.jsx(ip,{size:14})," Thêm"]})]})]}),a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{style:{fontWeight:600,color:"#94a3b8"},children:["Dữ liệu đã lưu (",u.length,"):"]}),u.length>0&&a.jsxs("button",{onClick:m,style:{background:"none",border:"none",color:"#ef4444",cursor:"pointer",fontSize:12,display:"flex",alignItems:"center",gap:4},children:[a.jsx(Qo,{size:13})," Xoá toàn bộ"]})]}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:300,overflowY:"auto"},children:u.length===0?a.jsx("div",{style:{textAlign:"center",color:"#64748b",padding:"30px 0",fontSize:12},children:"Kho lưu trữ đang trống. Mini App có thể lưu qua `superApp.storage.setItem()`."}):u.map(([h,x])=>a.jsxs("div",{style:{backgroundColor:"#0f172a",border:"1px solid #1e293b",borderRadius:6,padding:"8px 10px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:8},children:[a.jsxs("div",{style:{flex:1,overflow:"hidden"},children:[a.jsx("span",{style:{fontWeight:700,color:"#38bdf8",fontSize:12},children:h}),a.jsx("div",{style:{color:"#e2e8f0",fontSize:12,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:x})]}),a.jsx("button",{onClick:()=>g(h),style:{background:"none",border:"none",cursor:"pointer",padding:4,color:"#94a3b8"},children:a.jsx(Qo,{size:14})})]},h))})]},o)},Ip=()=>{const{activeTab:e,setActiveTab:t,logs:n,user:r}=$e(),l=[{id:"bridge",label:"Bridge Inspector",icon:Zf,count:n.length},{id:"auth",label:"Auth & Persona",icon:dp,note:r.name.split(" ")[0]},{id:"device",label:"Device & Hardware",icon:cp},{id:"storage",label:"Storage",icon:dc}];return a.jsxs("div",{style:{flex:1,backgroundColor:"#0b1120",borderRadius:16,border:"1px solid #1e293b",display:"flex",flexDirection:"column",overflow:"hidden",minWidth:420,maxWidth:600,height:"100%",boxShadow:"0 10px 25px -5px rgba(0, 0, 0, 0.4)"},children:[a.jsx("div",{style:{display:"flex",backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b",overflowX:"auto",padding:"4px 6px",gap:4},children:l.map(o=>{const i=e===o.id,s=o.icon;return a.jsxs("button",{onClick:()=>t(o.id),style:{display:"flex",alignItems:"center",gap:6,padding:"8px 12px",borderRadius:8,backgroundColor:i?"#1e293b":"transparent",color:i?"#38bdf8":"#94a3b8",border:"none",cursor:"pointer",fontWeight:i?600:500,fontSize:12,whiteSpace:"nowrap",transition:"all 0.15s ease"},children:[a.jsx(s,{size:15}),a.jsx("span",{children:o.label}),"count"in o&&o.count>0&&a.jsx("span",{style:{backgroundColor:i?"#0284c7":"#334155",color:"white",fontSize:10,fontWeight:700,padding:"1px 6px",borderRadius:10},children:o.count})]},o.id)})}),a.jsxs("div",{style:{flex:1,padding:16,overflowY:"auto"},children:[e==="bridge"&&a.jsx(zp,{}),e==="auth"&&a.jsx(Pp,{}),e==="device"&&a.jsx(Tp,{}),e==="storage"&&a.jsx(Np,{})]})]})},Lp=()=>{const{miniAppUrl:e,setMiniAppUrl:t,reloadIframe:n,deviceType:r,setDeviceType:l,scale:o,setScale:i}=$e(),[s,u]=L.useState(e),d=g=>{g.preventDefault(),s.trim()&&(t(s.trim()),n())};return a.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100vh",width:"100vw",overflow:"hidden",backgroundColor:"#030712"},children:[a.jsxs("header",{style:{height:56,backgroundColor:"#0f172a",borderBottom:"1px solid #1e293b",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px",gap:16,zIndex:20},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[a.jsx("div",{style:{width:32,height:32,borderRadius:8,backgroundColor:"#0068FF",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:800,fontSize:16},children:"S"}),a.jsxs("div",{children:[a.jsxs("div",{style:{fontWeight:700,fontSize:14,color:"#f8fafc",display:"flex",alignItems:"center",gap:6},children:["SuperApp Browser Simulator",a.jsx("span",{style:{fontSize:10,backgroundColor:"#0284c7",color:"white",padding:"1px 6px",borderRadius:10},children:"v1.0"})]}),a.jsx("div",{style:{fontSize:11,color:"#64748b"},children:"Mini App Developer Workbench"})]})]}),a.jsxs("form",{onSubmit:d,style:{display:"flex",alignItems:"center",flex:1,maxWidth:520,gap:6},children:[a.jsx("input",{type:"text",value:s,onChange:g=>u(g.target.value),placeholder:"http://localhost:3000",style:{flex:1,padding:"7px 12px",backgroundColor:"#020617",border:"1px solid #334155",borderRadius:8,color:"#38bdf8",fontSize:13,fontFamily:"monospace"}}),a.jsxs("button",{type:"submit",style:{padding:"7px 14px",backgroundColor:"#0284c7",color:"white",border:"none",borderRadius:8,fontSize:12,fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",gap:4},children:[a.jsx(up,{size:13})," Nạp URL"]})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.jsxs("div",{style:{display:"flex",backgroundColor:"#020617",padding:2,borderRadius:8,border:"1px solid #334155"},children:[a.jsx("button",{onClick:()=>l("iphone"),style:{padding:"4px 10px",borderRadius:6,backgroundColor:r==="iphone"?"#1e293b":"transparent",color:r==="iphone"?"#38bdf8":"#94a3b8",border:"none",cursor:"pointer",fontSize:12,fontWeight:600},children:"iPhone 15"}),a.jsx("button",{onClick:()=>l("android"),style:{padding:"4px 10px",borderRadius:6,backgroundColor:r==="android"?"#1e293b":"transparent",color:r==="android"?"#38bdf8":"#94a3b8",border:"none",cursor:"pointer",fontSize:12,fontWeight:600},children:"Android"})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,color:"#94a3b8",fontSize:12},children:[a.jsx(hp,{size:14}),a.jsxs("select",{value:o,onChange:g=>i(parseFloat(g.target.value)),style:{backgroundColor:"#020617",color:"#f8fafc",border:"1px solid #334155",borderRadius:6,padding:"4px 8px",fontSize:12,cursor:"pointer"},children:[a.jsx("option",{value:"0.75",children:"75%"}),a.jsx("option",{value:"0.85",children:"85%"}),a.jsx("option",{value:"0.9",children:"90%"}),a.jsx("option",{value:"1",children:"100%"})]})]})]})]}),a.jsxs("main",{style:{flex:1,display:"flex",gap:24,padding:20,overflow:"hidden",justifyContent:"center",alignItems:"flex-start"},children:[a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"flex-start",overflowY:"auto",maxHeight:"calc(100vh - 96px)",padding:"10px 20px"},children:a.jsx(_p,{})}),a.jsx(Ip,{})]})]})};Jl.createRoot(document.getElementById("root")).render(a.jsx(Rc.StrictMode,{children:a.jsx(Sp,{children:a.jsx(Lp,{})})}));
|