@ttmg/cli 0.4.1 → 0.4.2
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/dist/index.js +126 -18
- package/dist/index.js.map +1 -1
- package/dist/public/assets/Detail-DNF1PK-R.js +1 -0
- package/dist/public/assets/Detail-DNF1PK-R.js.br +0 -0
- package/dist/public/assets/MonetizationMode-C59U6Ari.js +1 -0
- package/dist/public/assets/MonetizationModeSummary-BR2LJFsU.js +1 -0
- package/dist/public/assets/SectionHeader-CCjfBKcF.js +1 -0
- package/dist/public/assets/Tag-DON36Of0.js +1 -0
- package/dist/public/assets/baseForm-B3oZF8Vp.js +10 -0
- package/dist/public/assets/baseForm-B3oZF8Vp.js.br +0 -0
- package/dist/public/assets/baseForm-BAvk37jF.css +1 -0
- package/dist/public/assets/baseForm-BAvk37jF.css.br +0 -0
- package/dist/public/assets/{boxes-C7RoIbId.js → boxes-EbMNfQ6U.js} +1 -1
- package/dist/public/assets/{chevron-right-B1WBZrrD.js → chevron-right-CsmjM7t0.js} +1 -1
- package/dist/public/assets/col-BXewy14r.css +1 -0
- package/dist/public/assets/col-BXewy14r.css.br +0 -0
- package/dist/public/assets/col-DWGIx7fj.js +1 -0
- package/dist/public/assets/{compass-VJNhHwqW.js → compass-bMD5nDM8.js} +1 -1
- package/dist/public/assets/index-B4j49Ts7.js +1 -0
- package/dist/public/assets/index-B4j49Ts7.js.br +0 -0
- package/dist/public/assets/{index-a-rMUS2V.js → index-B5JnznvI.js} +1 -1
- package/dist/public/assets/index-BCV7VBUL.js +1 -0
- package/dist/public/assets/index-BCV7VBUL.js.br +0 -0
- package/dist/public/assets/index-BKOO94x-.css +1 -0
- package/dist/public/assets/index-BPqSXmk6.js +1 -0
- package/dist/public/assets/index-Bn_Zugqv.js +1 -0
- package/dist/public/assets/index-Bn_Zugqv.js.br +0 -0
- package/dist/public/assets/index-BtO50Nho.js +1 -0
- package/dist/public/assets/index-BtO50Nho.js.br +0 -0
- package/dist/public/assets/{index-C_npSvtQ.js → index-BzEQAUVA.js} +1 -1
- package/dist/public/assets/{index-Dn5HHf-0.js → index-CAoj7RMM.js} +1 -1
- package/dist/public/assets/index-CKUVWl_O.css +1 -0
- package/dist/public/assets/index-CMwzPrAh.css +1 -0
- package/dist/public/assets/index-CMwzPrAh.css.br +0 -0
- package/dist/public/assets/index-CYnulX57.css +1 -0
- package/dist/public/assets/index-CYnulX57.css.br +0 -0
- package/dist/public/assets/{index-BH099q_U.js → index-Ca-cQ1Oq.js} +1 -1
- package/dist/public/assets/{index-s_30KWiA.js → index-CdJUBcSF.js} +1 -1
- package/dist/public/assets/{index-bQUQ2Wmz.js → index-Cf8aH-xI.js} +1 -1
- package/dist/public/assets/{index-DMsjcIN8.js → index-D4lGRib1.js} +1 -1
- package/dist/public/assets/index-D5-FwYf-.js +1 -0
- package/dist/public/assets/index-D5-FwYf-.js.br +0 -0
- package/dist/public/assets/{index-BO5MBsdm.js → index-DH7hBDqZ.js} +1 -1
- package/dist/public/assets/index-DKxf26_O.css +1 -0
- package/dist/public/assets/index-DOMxPC_v.css +1 -0
- package/dist/public/assets/index-DOMxPC_v.css.br +0 -0
- package/dist/public/assets/index-DRr-Punk.js +1 -0
- package/dist/public/assets/index-DV0N-QmJ.js +1 -0
- package/dist/public/assets/index-DV0N-QmJ.js.br +0 -0
- package/dist/public/assets/index-DXEfgIqc.js +1 -0
- package/dist/public/assets/{index-BBR3CPkN.js → index-DaOr2P0A.js} +1 -1
- package/dist/public/assets/index-DaOr2P0A.js.br +0 -0
- package/dist/public/assets/index-Dv0bhjYp.js +1 -0
- package/dist/public/assets/{index-qqnHwFjO.js → index-Dx-boSFk.js} +1 -1
- package/dist/public/assets/{index-C1C34gtn.js → index-FYgsnJbm.js} +1 -1
- package/dist/public/assets/index-HqjZ5P-l.css +1 -0
- package/dist/public/assets/{index-BJZ4gOGZ.css → index-V1Go68Vw.css} +1 -1
- package/dist/public/assets/index-V1Go68Vw.css.br +0 -0
- package/dist/public/assets/index-VvBtuIHK.css +1 -0
- package/dist/public/assets/index-VvBtuIHK.css.br +0 -0
- package/dist/public/assets/index-VvUpVuij.js +21 -0
- package/dist/public/assets/index-VvUpVuij.js.br +0 -0
- package/dist/public/assets/index-VzIFpCiL.js +1 -0
- package/dist/public/assets/{index-DbxY65Om.js → index-bASdAMHs.js} +1 -1
- package/dist/public/assets/index-q7fKJFmZ.js +1 -0
- package/dist/public/assets/index-vlN_-PRJ.css +1 -0
- package/dist/public/assets/{layers-Biv61qtE.js → layers-C8HCSIXn.js} +1 -1
- package/dist/public/assets/list-checks-B6t2uu5m.js +1 -0
- package/dist/public/assets/{sparkles-Bv2GxrFr.js → sparkles-pLu1TMVV.js} +1 -1
- package/dist/public/assets/triangle-alert-Dm4_sEwV.js +1 -0
- package/dist/public/assets/{zap-CjkC_qWZ.js → zap-tefJh46p.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/scripts/docs/README.md +80 -0
- package/dist/scripts/docs/capture.js +84 -6
- package/dist/scripts/docs/check.js +184 -0
- package/dist/scripts/docs/render.js +283 -6
- package/dist/scripts/docs/scenarios/devtool-guide.mjs +802 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -267
- package/dist/public/assets/Card-ASGGlJ8S.js +0 -1
- package/dist/public/assets/Detail-DY__Zw0r.js +0 -1
- package/dist/public/assets/Detail-DY__Zw0r.js.br +0 -0
- package/dist/public/assets/MonetizationMode-sHN_4ybQ.js +0 -1
- package/dist/public/assets/MonetizationModeSummary-DLvyriLM.js +0 -1
- package/dist/public/assets/SectionHeader-B7dueBCf.js +0 -1
- package/dist/public/assets/Tag-BsX0d6UL.js +0 -1
- package/dist/public/assets/arrow-left-uixm7Sd1.js +0 -1
- package/dist/public/assets/baseForm-C8XfTFyG.js +0 -10
- package/dist/public/assets/baseForm-C8XfTFyG.js.br +0 -0
- package/dist/public/assets/baseForm-Dl4zA6hU.css +0 -1
- package/dist/public/assets/baseForm-Dl4zA6hU.css.br +0 -0
- package/dist/public/assets/circle-check-wUxXeINd.js +0 -1
- package/dist/public/assets/index-BAud2cRu.css +0 -1
- package/dist/public/assets/index-BBR3CPkN.js.br +0 -0
- package/dist/public/assets/index-BJZ4gOGZ.css.br +0 -0
- package/dist/public/assets/index-BNc8JtET.js +0 -1
- package/dist/public/assets/index-Bd-f8ERX.js +0 -1
- package/dist/public/assets/index-ByX5RuFA.css +0 -1
- package/dist/public/assets/index-C7Tmy9g3.js +0 -1
- package/dist/public/assets/index-CCKb9Y-j.js +0 -14
- package/dist/public/assets/index-CCKb9Y-j.js.br +0 -0
- package/dist/public/assets/index-CFd8iglC.css +0 -1
- package/dist/public/assets/index-CFd8iglC.css.br +0 -0
- package/dist/public/assets/index-CKhfKyA3.js +0 -1
- package/dist/public/assets/index-CKhfKyA3.js.br +0 -0
- package/dist/public/assets/index-Cc1ilXmc.css +0 -1
- package/dist/public/assets/index-DHXlsTU6.css +0 -1
- package/dist/public/assets/index-DHXlsTU6.css.br +0 -0
- package/dist/public/assets/index-DNd8ZTok.js +0 -1
- package/dist/public/assets/index-DNd8ZTok.js.br +0 -0
- package/dist/public/assets/index-DpkktYot.css +0 -1
- package/dist/public/assets/index-DtoDrber.js +0 -1
- package/dist/public/assets/index-DtoDrber.js.br +0 -0
- package/dist/public/assets/index-ZHPtAdJM.js +0 -1
- package/dist/public/assets/index-ZHPtAdJM.js.br +0 -0
- package/dist/public/assets/index-ZtlCPCV9.js +0 -1
- package/dist/public/assets/index-_6n0s04V.css +0 -1
- package/dist/public/assets/index-_6n0s04V.css.br +0 -0
- package/dist/public/assets/index-r3aSeNL1.js +0 -1
- package/dist/public/assets/index-t4JeqZ4a.js +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CdJUBcSF.js","assets/index-Cf8aH-xI.js","assets/index-BPf4cmgA.css","assets/index-4NS2mMuQ.css","assets/index-FYgsnJbm.js","assets/index-C-tTmNa4.css","assets/index-VzIFpCiL.js","assets/baseForm-B3oZF8Vp.js","assets/col-DWGIx7fj.js","assets/col-BXewy14r.css","assets/index-DaOr2P0A.js","assets/index-BFPQPvSA.css","assets/baseForm-BAvk37jF.css","assets/index-D-GbEkoB.css","assets/index-B5JnznvI.js","assets/index-Crx61Qjc.css","assets/index-Dv0bhjYp.js","assets/index-DKxf26_O.css","assets/index-DH7hBDqZ.js","assets/compass-bMD5nDM8.js","assets/zap-tefJh46p.js","assets/index-CKUVWl_O.css","assets/index-B4j49Ts7.js","assets/index-D5-FwYf-.js","assets/SectionHeader-CCjfBKcF.js","assets/Tag-DON36Of0.js","assets/triangle-alert-Dm4_sEwV.js","assets/index-HqjZ5P-l.css","assets/index-Ca-cQ1Oq.js","assets/index-DRr-Punk.js","assets/index-CAoj7RMM.js","assets/index-DXFg6tGR.css","assets/index-BKOO94x-.css","assets/index-DV0N-QmJ.js","assets/index-DOMxPC_v.css","assets/index-Dx-boSFk.js","assets/index-faRHENEQ.css","assets/index-q7fKJFmZ.js","assets/sparkles-pLu1TMVV.js","assets/index-RYY-l6Oq.css","assets/index-DXEfgIqc.js","assets/MonetizationModeSummary-BR2LJFsU.js","assets/index-D4lGRib1.js","assets/index-CMwzPrAh.css","assets/chevron-right-CsmjM7t0.js","assets/layers-C8HCSIXn.js","assets/Detail-DNF1PK-R.js","assets/index-bASdAMHs.js","assets/index-BaQ9eM95.css","assets/list-checks-B6t2uu5m.js","assets/MonetizationMode-C59U6Ari.js","assets/index-BzEQAUVA.js","assets/index-AtMMzkp0.css","assets/index-BCV7VBUL.js","assets/index-BtO50Nho.js","assets/index-CYnulX57.css","assets/index-vlN_-PRJ.css","assets/index-BPqSXmk6.js","assets/boxes-EbMNfQ6U.js","assets/index-Dx5VGEQm.css","assets/index-Bn_Zugqv.js","assets/index-VvBtuIHK.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();var ja=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var hu={exports:{}},Wo={},gu={exports:{}},Oe={};var mv;function lP(){if(mv)return Oe;mv=1;var i=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function S(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,b={};function w(I,H,oe){this.props=I,this.context=H,this.refs=b,this.updater=oe||k}w.prototype.isReactComponent={},w.prototype.setState=function(I,H){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,H,"setState")},w.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function D(){}D.prototype=w.prototype;function O(I,H,oe){this.props=I,this.context=H,this.refs=b,this.updater=oe||k}var N=O.prototype=new D;N.constructor=O,T(N,w.prototype),N.isPureReactComponent=!0;var M=Array.isArray,z=Object.prototype.hasOwnProperty,L={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function F(I,H,oe){var te,se={},be=null,Se=null;if(H!=null)for(te in H.ref!==void 0&&(Se=H.ref),H.key!==void 0&&(be=""+H.key),H)z.call(H,te)&&!j.hasOwnProperty(te)&&(se[te]=H[te]);var ve=arguments.length-2;if(ve===1)se.children=oe;else if(1<ve){for(var _e=Array(ve),ye=0;ye<ve;ye++)_e[ye]=arguments[ye+2];se.children=_e}if(I&&I.defaultProps)for(te in ve=I.defaultProps,ve)se[te]===void 0&&(se[te]=ve[te]);return{$$typeof:i,type:I,key:be,ref:Se,props:se,_owner:L.current}}function U(I,H){return{$$typeof:i,type:I.type,key:H,ref:I.ref,props:I.props,_owner:I._owner}}function V(I){return typeof I=="object"&&I!==null&&I.$$typeof===i}function K(I){var H={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(oe){return H[oe]})}var ie=/\/+/g;function ne(I,H){return typeof I=="object"&&I!==null&&I.key!=null?K(""+I.key):H.toString(36)}function ae(I,H,oe,te,se){var be=typeof I;(be==="undefined"||be==="boolean")&&(I=null);var Se=!1;if(I===null)Se=!0;else switch(be){case"string":case"number":Se=!0;break;case"object":switch(I.$$typeof){case i:case e:Se=!0}}if(Se)return Se=I,se=se(Se),I=te===""?"."+ne(Se,0):te,M(se)?(oe="",I!=null&&(oe=I.replace(ie,"$&/")+"/"),ae(se,H,oe,"",function(ye){return ye})):se!=null&&(V(se)&&(se=U(se,oe+(!se.key||Se&&Se.key===se.key?"":(""+se.key).replace(ie,"$&/")+"/")+I)),H.push(se)),1;if(Se=0,te=te===""?".":te+":",M(I))for(var ve=0;ve<I.length;ve++){be=I[ve];var _e=te+ne(be,ve);Se+=ae(be,H,oe,_e,se)}else if(_e=S(I),typeof _e=="function")for(I=_e.call(I),ve=0;!(be=I.next()).done;)be=be.value,_e=te+ne(be,ve++),Se+=ae(be,H,oe,_e,se);else if(be==="object")throw H=String(I),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return Se}function J(I,H,oe){if(I==null)return I;var te=[],se=0;return ae(I,te,"","",function(be){return H.call(oe,be,se++)}),te}function ue(I){if(I._status===-1){var H=I._result;H=H(),H.then(function(oe){(I._status===0||I._status===-1)&&(I._status=1,I._result=oe)},function(oe){(I._status===0||I._status===-1)&&(I._status=2,I._result=oe)}),I._status===-1&&(I._status=0,I._result=H)}if(I._status===1)return I._result.default;throw I._result}var pe={current:null},W={transition:null},ee={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:W,ReactCurrentOwner:L};return Oe.Children={map:J,forEach:function(I,H,oe){J(I,function(){H.apply(this,arguments)},oe)},count:function(I){var H=0;return J(I,function(){H++}),H},toArray:function(I){return J(I,function(H){return H})||[]},only:function(I){if(!V(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Oe.Component=w,Oe.Fragment=n,Oe.Profiler=s,Oe.PureComponent=O,Oe.StrictMode=r,Oe.Suspense=p,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Oe.cloneElement=function(I,H,oe){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var te=T({},I.props),se=I.key,be=I.ref,Se=I._owner;if(H!=null){if(H.ref!==void 0&&(be=H.ref,Se=L.current),H.key!==void 0&&(se=""+H.key),I.type&&I.type.defaultProps)var ve=I.type.defaultProps;for(_e in H)z.call(H,_e)&&!j.hasOwnProperty(_e)&&(te[_e]=H[_e]===void 0&&ve!==void 0?ve[_e]:H[_e])}var _e=arguments.length-2;if(_e===1)te.children=oe;else if(1<_e){ve=Array(_e);for(var ye=0;ye<_e;ye++)ve[ye]=arguments[ye+2];te.children=ve}return{$$typeof:i,type:I.type,key:se,ref:be,props:te,_owner:Se}},Oe.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:l,_context:I},I.Consumer=I},Oe.createElement=F,Oe.createFactory=function(I){var H=F.bind(null,I);return H.type=I,H},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(I){return{$$typeof:u,render:I}},Oe.isValidElement=V,Oe.lazy=function(I){return{$$typeof:v,_payload:{_status:-1,_result:I},_init:ue}},Oe.memo=function(I,H){return{$$typeof:f,type:I,compare:H===void 0?null:H}},Oe.startTransition=function(I){var H=W.transition;W.transition={};try{I()}finally{W.transition=H}},Oe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Oe.useCallback=function(I,H){return pe.current.useCallback(I,H)},Oe.useContext=function(I){return pe.current.useContext(I)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(I){return pe.current.useDeferredValue(I)},Oe.useEffect=function(I,H){return pe.current.useEffect(I,H)},Oe.useId=function(){return pe.current.useId()},Oe.useImperativeHandle=function(I,H,oe){return pe.current.useImperativeHandle(I,H,oe)},Oe.useInsertionEffect=function(I,H){return pe.current.useInsertionEffect(I,H)},Oe.useLayoutEffect=function(I,H){return pe.current.useLayoutEffect(I,H)},Oe.useMemo=function(I,H){return pe.current.useMemo(I,H)},Oe.useReducer=function(I,H,oe){return pe.current.useReducer(I,H,oe)},Oe.useRef=function(I){return pe.current.useRef(I)},Oe.useState=function(I){return pe.current.useState(I)},Oe.useSyncExternalStore=function(I,H,oe){return pe.current.useSyncExternalStore(I,H,oe)},Oe.useTransition=function(){return pe.current.useTransition()},Oe.version="18.2.0",Oe}var yv;function fs(){return yv||(yv=1,gu.exports=lP()),gu.exports}var vv;function cP(){if(vv)return Wo;vv=1;var i=fs(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(u,p,f){var v,y={},S=null,k=null;f!==void 0&&(S=""+f),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(k=p.ref);for(v in p)r.call(p,v)&&!l.hasOwnProperty(v)&&(y[v]=p[v]);if(u&&u.defaultProps)for(v in p=u.defaultProps,p)y[v]===void 0&&(y[v]=p[v]);return{$$typeof:e,type:u,key:S,ref:k,props:y,_owner:s.current}}return Wo.Fragment=n,Wo.jsx=c,Wo.jsxs=c,Wo}var bv;function uP(){return bv||(bv=1,hu.exports=cP()),hu.exports}var P=uP(),La={},mu={exports:{}},Ft={},yu={exports:{}},vu={};var Sv;function dP(){return Sv||(Sv=1,(function(i){function e(W,ee){var I=W.length;W.push(ee);e:for(;0<I;){var H=I-1>>>1,oe=W[H];if(0<s(oe,ee))W[H]=ee,W[I]=oe,I=H;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var ee=W[0],I=W.pop();if(I!==ee){W[0]=I;e:for(var H=0,oe=W.length,te=oe>>>1;H<te;){var se=2*(H+1)-1,be=W[se],Se=se+1,ve=W[Se];if(0>s(be,I))Se<oe&&0>s(ve,be)?(W[H]=ve,W[Se]=I,H=Se):(W[H]=be,W[se]=I,H=se);else if(Se<oe&&0>s(ve,I))W[H]=ve,W[Se]=I,H=Se;else break e}}return ee}function s(W,ee){var I=W.sortIndex-ee.sortIndex;return I!==0?I:W.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;i.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();i.unstable_now=function(){return c.now()-u}}var p=[],f=[],v=1,y=null,S=3,k=!1,T=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(W){for(var ee=n(f);ee!==null;){if(ee.callback===null)r(f);else if(ee.startTime<=W)r(f),ee.sortIndex=ee.expirationTime,e(p,ee);else break;ee=n(f)}}function M(W){if(b=!1,N(W),!T)if(n(p)!==null)T=!0,ue(z);else{var ee=n(f);ee!==null&&pe(M,ee.startTime-W)}}function z(W,ee){T=!1,b&&(b=!1,D(F),F=-1),k=!0;var I=S;try{for(N(ee),y=n(p);y!==null&&(!(y.expirationTime>ee)||W&&!K());){var H=y.callback;if(typeof H=="function"){y.callback=null,S=y.priorityLevel;var oe=H(y.expirationTime<=ee);ee=i.unstable_now(),typeof oe=="function"?y.callback=oe:y===n(p)&&r(p),N(ee)}else r(p);y=n(p)}if(y!==null)var te=!0;else{var se=n(f);se!==null&&pe(M,se.startTime-ee),te=!1}return te}finally{y=null,S=I,k=!1}}var L=!1,j=null,F=-1,U=5,V=-1;function K(){return!(i.unstable_now()-V<U)}function ie(){if(j!==null){var W=i.unstable_now();V=W;var ee=!0;try{ee=j(!0,W)}finally{ee?ne():(L=!1,j=null)}}else L=!1}var ne;if(typeof O=="function")ne=function(){O(ie)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,J=ae.port2;ae.port1.onmessage=ie,ne=function(){J.postMessage(null)}}else ne=function(){w(ie,0)};function ue(W){j=W,L||(L=!0,ne())}function pe(W,ee){F=w(function(){W(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(W){W.callback=null},i.unstable_continueExecution=function(){T||k||(T=!0,ue(z))},i.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<W?Math.floor(1e3/W):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_getFirstCallbackNode=function(){return n(p)},i.unstable_next=function(W){switch(S){case 1:case 2:case 3:var ee=3;break;default:ee=S}var I=S;S=ee;try{return W()}finally{S=I}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(W,ee){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var I=S;S=W;try{return ee()}finally{S=I}},i.unstable_scheduleCallback=function(W,ee,I){var H=i.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,W){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=I+oe,W={id:v++,callback:ee,priorityLevel:W,startTime:I,expirationTime:oe,sortIndex:-1},I>H?(W.sortIndex=I,e(f,W),n(p)===null&&W===n(f)&&(b?(D(F),F=-1):b=!0,pe(M,I-H))):(W.sortIndex=oe,e(p,W),T||k||(T=!0,ue(z))),W},i.unstable_shouldYield=K,i.unstable_wrapCallback=function(W){var ee=S;return function(){var I=S;S=ee;try{return W.apply(this,arguments)}finally{S=I}}}})(vu)),vu}var wv;function pP(){return wv||(wv=1,yu.exports=dP()),yu.exports}var Cv;function fP(){if(Cv)return Ft;Cv=1;var i=fs(),e=pP();function n(t){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+t+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function l(t,o){c(t,o),c(t+"Capture",o)}function c(t,o){for(s[t]=o,t=0;t<o.length;t++)r.add(o[t])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,f=/^[: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]*$/,v={},y={};function S(t){return p.call(y,t)?!0:p.call(v,t)?!1:f.test(t)?y[t]=!0:(v[t]=!0,!1)}function k(t,o,a,d){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function T(t,o,a,d){if(o===null||typeof o>"u"||k(t,o,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(t,o,a,d,h,m,_){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=t,this.type=o,this.sanitizeURL=m,this.removeEmptyString=_}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){w[t]=new b(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var o=t[0];w[o]=new b(o,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){w[t]=new b(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){w[t]=new b(t,2,!1,t,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(t){w[t]=new b(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){w[t]=new b(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){w[t]=new b(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){w[t]=new b(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){w[t]=new b(t,5,!1,t.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function O(t){return t[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(t){var o=t.replace(D,O);w[o]=new b(o,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var o=t.replace(D,O);w[o]=new b(o,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var o=t.replace(D,O);w[o]=new b(o,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){w[t]=new b(t,1,!1,t.toLowerCase(),null,!1,!1)}),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){w[t]=new b(t,1,!1,t.toLowerCase(),null,!0,!0)});function N(t,o,a,d){var h=w.hasOwnProperty(o)?w[o]:null;(h!==null?h.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(T(o,a,h,d)&&(a=null),d||h===null?S(o)&&(a===null?t.removeAttribute(o):t.setAttribute(o,""+a)):h.mustUseProperty?t[h.propertyName]=a===null?h.type===3?!1:"":a:(o=h.attributeName,d=h.attributeNamespace,a===null?t.removeAttribute(o):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,d?t.setAttributeNS(d,o,a):t.setAttribute(o,a))))}var M=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),L=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),K=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),W=Symbol.iterator;function ee(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var I=Object.assign,H;function oe(t){if(H===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);H=o&&o[1]||""}return`
|
|
3
|
+
`+H+t}var te=!1;function se(t,o){if(!t||te)return"";te=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(G){var d=G}Reflect.construct(t,[],o)}else{try{o.call()}catch(G){d=G}t.call(o.prototype)}else{try{throw Error()}catch(G){d=G}t()}}catch(G){if(G&&d&&typeof G.stack=="string"){for(var h=G.stack.split(`
|
|
4
|
+
`),m=d.stack.split(`
|
|
5
|
+
`),_=h.length-1,R=m.length-1;1<=_&&0<=R&&h[_]!==m[R];)R--;for(;1<=_&&0<=R;_--,R--)if(h[_]!==m[R]){if(_!==1||R!==1)do if(_--,R--,0>R||h[_]!==m[R]){var A=`
|
|
6
|
+
`+h[_].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=_&&0<=R);break}}}finally{te=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?oe(t):""}function be(t){switch(t.tag){case 5:return oe(t.type);case 16:return oe("Lazy");case 13:return oe("Suspense");case 19:return oe("SuspenseList");case 0:case 2:case 15:return t=se(t.type,!1),t;case 11:return t=se(t.type.render,!1),t;case 1:return t=se(t.type,!0),t;default:return""}}function Se(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case L:return"Portal";case U:return"Profiler";case F:return"StrictMode";case ne:return"Suspense";case ae:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case K:return(t.displayName||"Context")+".Consumer";case V:return(t._context.displayName||"Context")+".Provider";case ie:var o=t.render;return t=t.displayName,t||(t=o.displayName||o.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return o=t.displayName||null,o!==null?o:Se(t.type)||"Memo";case ue:o=t._payload,t=t._init;try{return Se(t(o))}catch{}}return null}function ve(t){var o=t.type;switch(t.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=o.render,t=t.displayName||t.name||"",o.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(o);case 8:return o===F?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function _e(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ye(t){var o=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function xt(t){var o=ye(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,o),d=""+t[o];if(!t.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,m=a.set;return Object.defineProperty(t,o,{configurable:!0,get:function(){return h.call(this)},set:function(_){d=""+_,m.call(this,_)}}),Object.defineProperty(t,o,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(_){d=""+_},stopTracking:function(){t._valueTracker=null,delete t[o]}}}}function Dt(t){t._valueTracker||(t._valueTracker=xt(t))}function lr(t){if(!t)return!1;var o=t._valueTracker;if(!o)return!0;var a=o.getValue(),d="";return t&&(d=ye(t)?t.checked?"true":"false":t.value),t=d,t!==a?(o.setValue(t),!0):!1}function dn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function cr(t,o){var a=o.checked;return I({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function Ie(t,o){var a=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;a=_e(o.value!=null?o.value:a),t._wrapperState={initialChecked:d,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function pn(t,o){o=o.checked,o!=null&&N(t,"checked",o,!1)}function De(t,o){pn(t,o);var a=_e(o.value),d=o.type;if(a!=null)d==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(d==="submit"||d==="reset"){t.removeAttribute("value");return}o.hasOwnProperty("value")?Fe(t,o.type,a):o.hasOwnProperty("defaultValue")&&Fe(t,o.type,_e(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(t.defaultChecked=!!o.defaultChecked)}function Ot(t,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+t._wrapperState.initialValue,a||o===t.value||(t.value=o),t.defaultValue=o}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function Fe(t,o,a){(o!=="number"||dn(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var Me=Array.isArray;function Ve(t,o,a,d){if(t=t.options,o){o={};for(var h=0;h<a.length;h++)o["$"+a[h]]=!0;for(a=0;a<t.length;a++)h=o.hasOwnProperty("$"+t[a].value),t[a].selected!==h&&(t[a].selected=h),h&&d&&(t[a].defaultSelected=!0)}else{for(a=""+_e(a),o=null,h=0;h<t.length;h++){if(t[h].value===a){t[h].selected=!0,d&&(t[h].defaultSelected=!0);return}o!==null||t[h].disabled||(o=t[h])}o!==null&&(o.selected=!0)}}function Ke(t,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return I({},o,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Be(t,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(n(92));if(Me(a)){if(1<a.length)throw Error(n(93));a=a[0]}o=a}o==null&&(o=""),a=o}t._wrapperState={initialValue:_e(a)}}function It(t,o){var a=_e(o.value),d=_e(o.defaultValue);a!=null&&(a=""+a,a!==t.value&&(t.value=a),o.defaultValue==null&&t.defaultValue!==a&&(t.defaultValue=a)),d!=null&&(t.defaultValue=""+d)}function Rt(t){var o=t.textContent;o===t._wrapperState.initialValue&&o!==""&&o!==null&&(t.value=o)}function xn(t){switch(t){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 Nt(t,o){return t==null||t==="http://www.w3.org/1999/xhtml"?xn(o):t==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var tt,Dn=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,d,h){MSApp.execUnsafeLocalFunction(function(){return t(o,a,d,h)})}:t})(function(t,o){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=o;else{for(tt=tt||document.createElement("div"),tt.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=tt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;o.firstChild;)t.appendChild(o.firstChild)}});function en(t,o){if(o){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=o;return}}t.textContent=o}var fn={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},ur=["Webkit","ms","Moz","O"];Object.keys(fn).forEach(function(t){ur.forEach(function(o){o=o+t.charAt(0).toUpperCase()+t.substring(1),fn[o]=fn[t]})});function kt(t,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||fn.hasOwnProperty(t)&&fn[t]?(""+o).trim():o+"px"}function Gt(t,o){t=t.style;for(var a in o)if(o.hasOwnProperty(a)){var d=a.indexOf("--")===0,h=kt(a,o[a],d);a==="float"&&(a="cssFloat"),d?t.setProperty(a,h):t[a]=h}}var Ts=I({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 dr(t,o){if(o){if(Ts[t]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,t));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function pr(t,o){if(t.indexOf("-")===-1)return typeof o.is=="string";switch(t){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 Br=null;function qr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gr=null,On=null,Wt=null;function Wr(t){if(t=Do(t)){if(typeof Gr!="function")throw Error(n(280));var o=t.stateNode;o&&(o=Qs(o),Gr(t.stateNode,t.type,o))}}function Gn(t){On?Wt?Wt.push(t):Wt=[t]:On=t}function Ur(){if(On){var t=On,o=Wt;if(Wt=On=null,Wr(t),o)for(t=0;t<o.length;t++)Wr(o[t])}}function oo(t,o){return t(o)}function so(){}var Il=!1;function Mg(t,o,a){if(Il)return t(o,a);Il=!0;try{return oo(t,o,a)}finally{Il=!1,(On!==null||Wt!==null)&&(so(),Ur())}}function ao(t,o){var a=t.stateNode;if(a===null)return null;var d=Qs(a);if(d===null)return null;a=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(t=t.type,d=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!d;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(n(231,o,typeof a));return a}var Rl=!1;if(u)try{var lo={};Object.defineProperty(lo,"passive",{get:function(){Rl=!0}}),window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{Rl=!1}function h_(t,o,a,d,h,m,_,R,A){var G=Array.prototype.slice.call(arguments,3);try{o.apply(a,G)}catch(Y){this.onError(Y)}}var co=!1,Es=null,xs=!1,Nl=null,g_={onError:function(t){co=!0,Es=t}};function m_(t,o,a,d,h,m,_,R,A){co=!1,Es=null,h_.apply(g_,arguments)}function y_(t,o,a,d,h,m,_,R,A){if(m_.apply(this,arguments),co){if(co){var G=Es;co=!1,Es=null}else throw Error(n(198));xs||(xs=!0,Nl=G)}}function Hr(t){var o=t,a=t;if(t.alternate)for(;o.return;)o=o.return;else{t=o;do o=t,(o.flags&4098)!==0&&(a=o.return),t=o.return;while(t)}return o.tag===3?a:null}function $g(t){if(t.tag===13){var o=t.memoizedState;if(o===null&&(t=t.alternate,t!==null&&(o=t.memoizedState)),o!==null)return o.dehydrated}return null}function Fg(t){if(Hr(t)!==t)throw Error(n(188))}function v_(t){var o=t.alternate;if(!o){if(o=Hr(t),o===null)throw Error(n(188));return o!==t?null:t}for(var a=t,d=o;;){var h=a.return;if(h===null)break;var m=h.alternate;if(m===null){if(d=h.return,d!==null){a=d;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===a)return Fg(h),t;if(m===d)return Fg(h),o;m=m.sibling}throw Error(n(188))}if(a.return!==d.return)a=h,d=m;else{for(var _=!1,R=h.child;R;){if(R===a){_=!0,a=h,d=m;break}if(R===d){_=!0,d=h,a=m;break}R=R.sibling}if(!_){for(R=m.child;R;){if(R===a){_=!0,a=m,d=h;break}if(R===d){_=!0,d=m,a=h;break}R=R.sibling}if(!_)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?t:o}function zg(t){return t=v_(t),t!==null?Bg(t):null}function Bg(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var o=Bg(t);if(o!==null)return o;t=t.sibling}return null}var qg=e.unstable_scheduleCallback,Gg=e.unstable_cancelCallback,b_=e.unstable_shouldYield,S_=e.unstable_requestPaint,nt=e.unstable_now,w_=e.unstable_getCurrentPriorityLevel,jl=e.unstable_ImmediatePriority,Wg=e.unstable_UserBlockingPriority,Ds=e.unstable_NormalPriority,C_=e.unstable_LowPriority,Ug=e.unstable_IdlePriority,Os=null,In=null;function __(t){if(In&&typeof In.onCommitFiberRoot=="function")try{In.onCommitFiberRoot(Os,t,void 0,(t.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:T_,k_=Math.log,P_=Math.LN2;function T_(t){return t>>>=0,t===0?32:31-(k_(t)/P_|0)|0}var Is=64,Rs=4194304;function uo(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ns(t,o){var a=t.pendingLanes;if(a===0)return 0;var d=0,h=t.suspendedLanes,m=t.pingedLanes,_=a&268435455;if(_!==0){var R=_&~h;R!==0?d=uo(R):(m&=_,m!==0&&(d=uo(m)))}else _=a&~h,_!==0?d=uo(_):m!==0&&(d=uo(m));if(d===0)return 0;if(o!==0&&o!==d&&(o&h)===0&&(h=d&-d,m=o&-o,h>=m||h===16&&(m&4194240)!==0))return o;if((d&4)!==0&&(d|=a&16),o=t.entangledLanes,o!==0)for(t=t.entanglements,o&=d;0<o;)a=31-hn(o),h=1<<a,d|=t[a],o&=~h;return d}function E_(t,o){switch(t){case 1:case 2:case 4:return o+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 o+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 x_(t,o){for(var a=t.suspendedLanes,d=t.pingedLanes,h=t.expirationTimes,m=t.pendingLanes;0<m;){var _=31-hn(m),R=1<<_,A=h[_];A===-1?((R&a)===0||(R&d)!==0)&&(h[_]=E_(R,o)):A<=o&&(t.expiredLanes|=R),m&=~R}}function Ll(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Hg(){var t=Is;return Is<<=1,(Is&4194240)===0&&(Is=64),t}function Al(t){for(var o=[],a=0;31>a;a++)o.push(t);return o}function po(t,o,a){t.pendingLanes|=o,o!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,o=31-hn(o),t[o]=a}function D_(t,o){var a=t.pendingLanes&~o;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=o,t.mutableReadLanes&=o,t.entangledLanes&=o,o=t.entanglements;var d=t.eventTimes;for(t=t.expirationTimes;0<a;){var h=31-hn(a),m=1<<h;o[h]=0,d[h]=-1,t[h]=-1,a&=~m}}function Ml(t,o){var a=t.entangledLanes|=o;for(t=t.entanglements;a;){var d=31-hn(a),h=1<<d;h&o|t[d]&o&&(t[d]|=o),a&=~h}}var $e=0;function Vg(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Kg,$l,Qg,Xg,Yg,Fl=!1,js=[],fr=null,hr=null,gr=null,fo=new Map,ho=new Map,mr=[],O_="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 Zg(t,o){switch(t){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":hr=null;break;case"mouseover":case"mouseout":gr=null;break;case"pointerover":case"pointerout":fo.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ho.delete(o.pointerId)}}function go(t,o,a,d,h,m){return t===null||t.nativeEvent!==m?(t={blockedOn:o,domEventName:a,eventSystemFlags:d,nativeEvent:m,targetContainers:[h]},o!==null&&(o=Do(o),o!==null&&$l(o)),t):(t.eventSystemFlags|=d,o=t.targetContainers,h!==null&&o.indexOf(h)===-1&&o.push(h),t)}function I_(t,o,a,d,h){switch(o){case"focusin":return fr=go(fr,t,o,a,d,h),!0;case"dragenter":return hr=go(hr,t,o,a,d,h),!0;case"mouseover":return gr=go(gr,t,o,a,d,h),!0;case"pointerover":var m=h.pointerId;return fo.set(m,go(fo.get(m)||null,t,o,a,d,h)),!0;case"gotpointercapture":return m=h.pointerId,ho.set(m,go(ho.get(m)||null,t,o,a,d,h)),!0}return!1}function Jg(t){var o=Vr(t.target);if(o!==null){var a=Hr(o);if(a!==null){if(o=a.tag,o===13){if(o=$g(a),o!==null){t.blockedOn=o,Yg(t.priority,function(){Qg(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ls(t){if(t.blockedOn!==null)return!1;for(var o=t.targetContainers;0<o.length;){var a=Bl(t.domEventName,t.eventSystemFlags,o[0],t.nativeEvent);if(a===null){a=t.nativeEvent;var d=new a.constructor(a.type,a);Br=d,a.target.dispatchEvent(d),Br=null}else return o=Do(a),o!==null&&$l(o),t.blockedOn=a,!1;o.shift()}return!0}function em(t,o,a){Ls(t)&&a.delete(o)}function R_(){Fl=!1,fr!==null&&Ls(fr)&&(fr=null),hr!==null&&Ls(hr)&&(hr=null),gr!==null&&Ls(gr)&&(gr=null),fo.forEach(em),ho.forEach(em)}function mo(t,o){t.blockedOn===o&&(t.blockedOn=null,Fl||(Fl=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,R_)))}function yo(t){function o(h){return mo(h,t)}if(0<js.length){mo(js[0],t);for(var a=1;a<js.length;a++){var d=js[a];d.blockedOn===t&&(d.blockedOn=null)}}for(fr!==null&&mo(fr,t),hr!==null&&mo(hr,t),gr!==null&&mo(gr,t),fo.forEach(o),ho.forEach(o),a=0;a<mr.length;a++)d=mr[a],d.blockedOn===t&&(d.blockedOn=null);for(;0<mr.length&&(a=mr[0],a.blockedOn===null);)Jg(a),a.blockedOn===null&&mr.shift()}var bi=M.ReactCurrentBatchConfig,As=!0;function N_(t,o,a,d){var h=$e,m=bi.transition;bi.transition=null;try{$e=1,zl(t,o,a,d)}finally{$e=h,bi.transition=m}}function j_(t,o,a,d){var h=$e,m=bi.transition;bi.transition=null;try{$e=4,zl(t,o,a,d)}finally{$e=h,bi.transition=m}}function zl(t,o,a,d){if(As){var h=Bl(t,o,a,d);if(h===null)ic(t,o,d,Ms,a),Zg(t,d);else if(I_(h,t,o,a,d))d.stopPropagation();else if(Zg(t,d),o&4&&-1<O_.indexOf(t)){for(;h!==null;){var m=Do(h);if(m!==null&&Kg(m),m=Bl(t,o,a,d),m===null&&ic(t,o,d,Ms,a),m===h)break;h=m}h!==null&&d.stopPropagation()}else ic(t,o,d,null,a)}}var Ms=null;function Bl(t,o,a,d){if(Ms=null,t=qr(d),t=Vr(t),t!==null)if(o=Hr(t),o===null)t=null;else if(a=o.tag,a===13){if(t=$g(o),t!==null)return t;t=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;t=null}else o!==t&&(t=null);return Ms=t,null}function tm(t){switch(t){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(w_()){case jl:return 1;case Wg:return 4;case Ds:case C_:return 16;case Ug:return 536870912;default:return 16}default:return 16}}var yr=null,ql=null,$s=null;function nm(){if($s)return $s;var t,o=ql,a=o.length,d,h="value"in yr?yr.value:yr.textContent,m=h.length;for(t=0;t<a&&o[t]===h[t];t++);var _=a-t;for(d=1;d<=_&&o[a-d]===h[m-d];d++);return $s=h.slice(t,1<d?1-d:void 0)}function Fs(t){var o=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&o===13&&(t=13)):t=o,t===10&&(t=13),32<=t||t===13?t:0}function zs(){return!0}function rm(){return!1}function Ut(t){function o(a,d,h,m,_){this._reactName=a,this._targetInst=h,this.type=d,this.nativeEvent=m,this.target=_,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(a=t[R],this[R]=a?a(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?zs:rm,this.isPropagationStopped=rm,this}return I(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=zs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),o}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gl=Ut(Si),vo=I({},Si,{view:0,detail:0}),L_=Ut(vo),Wl,Ul,bo,Bs=I({},vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vl,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==bo&&(bo&&t.type==="mousemove"?(Wl=t.screenX-bo.screenX,Ul=t.screenY-bo.screenY):Ul=Wl=0,bo=t),Wl)},movementY:function(t){return"movementY"in t?t.movementY:Ul}}),im=Ut(Bs),A_=I({},Bs,{dataTransfer:0}),M_=Ut(A_),$_=I({},vo,{relatedTarget:0}),Hl=Ut($_),F_=I({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),z_=Ut(F_),B_=I({},Si,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),q_=Ut(B_),G_=I({},Si,{data:0}),om=Ut(G_),W_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U_={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"},H_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V_(t){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(t):(t=H_[t])?!!o[t]:!1}function Vl(){return V_}var K_=I({},vo,{key:function(t){if(t.key){var o=W_[t.key]||t.key;if(o!=="Unidentified")return o}return t.type==="keypress"?(t=Fs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?U_[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vl,charCode:function(t){return t.type==="keypress"?Fs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Q_=Ut(K_),X_=I({},Bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sm=Ut(X_),Y_=I({},vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vl}),Z_=Ut(Y_),J_=I({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),ek=Ut(J_),tk=I({},Bs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),nk=Ut(tk),rk=[9,13,27,32],Kl=u&&"CompositionEvent"in window,So=null;u&&"documentMode"in document&&(So=document.documentMode);var ik=u&&"TextEvent"in window&&!So,am=u&&(!Kl||So&&8<So&&11>=So),lm=" ",cm=!1;function um(t,o){switch(t){case"keyup":return rk.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var wi=!1;function ok(t,o){switch(t){case"compositionend":return dm(o);case"keypress":return o.which!==32?null:(cm=!0,lm);case"textInput":return t=o.data,t===lm&&cm?null:t;default:return null}}function sk(t,o){if(wi)return t==="compositionend"||!Kl&&um(t,o)?(t=nm(),$s=ql=yr=null,wi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return am&&o.locale!=="ko"?null:o.data;default:return null}}var ak={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 pm(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o==="input"?!!ak[t.type]:o==="textarea"}function fm(t,o,a,d){Gn(d),o=Hs(o,"onChange"),0<o.length&&(a=new Gl("onChange","change",null,a,d),t.push({event:a,listeners:o}))}var wo=null,Co=null;function lk(t){Im(t,0)}function qs(t){var o=Ti(t);if(lr(o))return t}function ck(t,o){if(t==="change")return o}var hm=!1;if(u){var Ql;if(u){var Xl="oninput"in document;if(!Xl){var gm=document.createElement("div");gm.setAttribute("oninput","return;"),Xl=typeof gm.oninput=="function"}Ql=Xl}else Ql=!1;hm=Ql&&(!document.documentMode||9<document.documentMode)}function mm(){wo&&(wo.detachEvent("onpropertychange",ym),Co=wo=null)}function ym(t){if(t.propertyName==="value"&&qs(Co)){var o=[];fm(o,Co,t,qr(t)),Mg(lk,o)}}function uk(t,o,a){t==="focusin"?(mm(),wo=o,Co=a,wo.attachEvent("onpropertychange",ym)):t==="focusout"&&mm()}function dk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return qs(Co)}function pk(t,o){if(t==="click")return qs(o)}function fk(t,o){if(t==="input"||t==="change")return qs(o)}function hk(t,o){return t===o&&(t!==0||1/t===1/o)||t!==t&&o!==o}var gn=typeof Object.is=="function"?Object.is:hk;function _o(t,o){if(gn(t,o))return!0;if(typeof t!="object"||t===null||typeof o!="object"||o===null)return!1;var a=Object.keys(t),d=Object.keys(o);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var h=a[d];if(!p.call(o,h)||!gn(t[h],o[h]))return!1}return!0}function vm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function bm(t,o){var a=vm(t);t=0;for(var d;a;){if(a.nodeType===3){if(d=t+a.textContent.length,t<=o&&d>=o)return{node:a,offset:o-t};t=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=vm(a)}}function Sm(t,o){return t&&o?t===o?!0:t&&t.nodeType===3?!1:o&&o.nodeType===3?Sm(t,o.parentNode):"contains"in t?t.contains(o):t.compareDocumentPosition?!!(t.compareDocumentPosition(o)&16):!1:!1}function wm(){for(var t=window,o=dn();o instanceof t.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)t=o.contentWindow;else break;o=dn(t.document)}return o}function Yl(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o&&(o==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||o==="textarea"||t.contentEditable==="true")}function gk(t){var o=wm(),a=t.focusedElem,d=t.selectionRange;if(o!==a&&a&&a.ownerDocument&&Sm(a.ownerDocument.documentElement,a)){if(d!==null&&Yl(a)){if(o=d.start,t=d.end,t===void 0&&(t=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(t,a.value.length);else if(t=(o=a.ownerDocument||document)&&o.defaultView||window,t.getSelection){t=t.getSelection();var h=a.textContent.length,m=Math.min(d.start,h);d=d.end===void 0?m:Math.min(d.end,h),!t.extend&&m>d&&(h=d,d=m,m=h),h=bm(a,m);var _=bm(a,d);h&&_&&(t.rangeCount!==1||t.anchorNode!==h.node||t.anchorOffset!==h.offset||t.focusNode!==_.node||t.focusOffset!==_.offset)&&(o=o.createRange(),o.setStart(h.node,h.offset),t.removeAllRanges(),m>d?(t.addRange(o),t.extend(_.node,_.offset)):(o.setEnd(_.node,_.offset),t.addRange(o)))}}for(o=[],t=a;t=t.parentNode;)t.nodeType===1&&o.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)t=o[a],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var mk=u&&"documentMode"in document&&11>=document.documentMode,Ci=null,Zl=null,ko=null,Jl=!1;function Cm(t,o,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Jl||Ci==null||Ci!==dn(d)||(d=Ci,"selectionStart"in d&&Yl(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ko&&_o(ko,d)||(ko=d,d=Hs(Zl,"onSelect"),0<d.length&&(o=new Gl("onSelect","select",null,o,a),t.push({event:o,listeners:d}),o.target=Ci)))}function Gs(t,o){var a={};return a[t.toLowerCase()]=o.toLowerCase(),a["Webkit"+t]="webkit"+o,a["Moz"+t]="moz"+o,a}var _i={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionend:Gs("Transition","TransitionEnd")},ec={},_m={};u&&(_m=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);function Ws(t){if(ec[t])return ec[t];if(!_i[t])return t;var o=_i[t],a;for(a in o)if(o.hasOwnProperty(a)&&a in _m)return ec[t]=o[a];return t}var km=Ws("animationend"),Pm=Ws("animationiteration"),Tm=Ws("animationstart"),Em=Ws("transitionend"),xm=new Map,Dm="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 vr(t,o){xm.set(t,o),l(o,[t])}for(var tc=0;tc<Dm.length;tc++){var nc=Dm[tc],yk=nc.toLowerCase(),vk=nc[0].toUpperCase()+nc.slice(1);vr(yk,"on"+vk)}vr(km,"onAnimationEnd"),vr(Pm,"onAnimationIteration"),vr(Tm,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(Em,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="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(" "),bk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Po));function Om(t,o,a){var d=t.type||"unknown-event";t.currentTarget=a,y_(d,o,void 0,t),t.currentTarget=null}function Im(t,o){o=(o&4)!==0;for(var a=0;a<t.length;a++){var d=t[a],h=d.event;d=d.listeners;e:{var m=void 0;if(o)for(var _=d.length-1;0<=_;_--){var R=d[_],A=R.instance,G=R.currentTarget;if(R=R.listener,A!==m&&h.isPropagationStopped())break e;Om(h,R,G),m=A}else for(_=0;_<d.length;_++){if(R=d[_],A=R.instance,G=R.currentTarget,R=R.listener,A!==m&&h.isPropagationStopped())break e;Om(h,R,G),m=A}}}if(xs)throw t=Nl,xs=!1,Nl=null,t}function qe(t,o){var a=o[uc];a===void 0&&(a=o[uc]=new Set);var d=t+"__bubble";a.has(d)||(Rm(o,t,2,!1),a.add(d))}function rc(t,o,a){var d=0;o&&(d|=4),Rm(a,t,d,o)}var Us="_reactListening"+Math.random().toString(36).slice(2);function To(t){if(!t[Us]){t[Us]=!0,r.forEach(function(a){a!=="selectionchange"&&(bk.has(a)||rc(a,!1,t),rc(a,!0,t))});var o=t.nodeType===9?t:t.ownerDocument;o===null||o[Us]||(o[Us]=!0,rc("selectionchange",!1,o))}}function Rm(t,o,a,d){switch(tm(o)){case 1:var h=N_;break;case 4:h=j_;break;default:h=zl}a=h.bind(null,o,a,t),h=void 0,!Rl||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(h=!0),d?h!==void 0?t.addEventListener(o,a,{capture:!0,passive:h}):t.addEventListener(o,a,!0):h!==void 0?t.addEventListener(o,a,{passive:h}):t.addEventListener(o,a,!1)}function ic(t,o,a,d,h){var m=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var _=d.tag;if(_===3||_===4){var R=d.stateNode.containerInfo;if(R===h||R.nodeType===8&&R.parentNode===h)break;if(_===4)for(_=d.return;_!==null;){var A=_.tag;if((A===3||A===4)&&(A=_.stateNode.containerInfo,A===h||A.nodeType===8&&A.parentNode===h))return;_=_.return}for(;R!==null;){if(_=Vr(R),_===null)return;if(A=_.tag,A===5||A===6){d=m=_;continue e}R=R.parentNode}}d=d.return}Mg(function(){var G=m,Y=qr(a),Z=[];e:{var X=xm.get(t);if(X!==void 0){var le=Gl,de=t;switch(t){case"keypress":if(Fs(a)===0)break e;case"keydown":case"keyup":le=Q_;break;case"focusin":de="focus",le=Hl;break;case"focusout":de="blur",le=Hl;break;case"beforeblur":case"afterblur":le=Hl;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=im;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=M_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=Z_;break;case km:case Pm:case Tm:le=z_;break;case Em:le=ek;break;case"scroll":le=L_;break;case"wheel":le=nk;break;case"copy":case"cut":case"paste":le=q_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=sm}var fe=(o&4)!==0,rt=!fe&&t==="scroll",B=fe?X!==null?X+"Capture":null:X;fe=[];for(var $=G,q;$!==null;){q=$;var re=q.stateNode;if(q.tag===5&&re!==null&&(q=re,B!==null&&(re=ao($,B),re!=null&&fe.push(Eo($,re,q)))),rt)break;$=$.return}0<fe.length&&(X=new le(X,de,null,a,Y),Z.push({event:X,listeners:fe}))}}if((o&7)===0){e:{if(X=t==="mouseover"||t==="pointerover",le=t==="mouseout"||t==="pointerout",X&&a!==Br&&(de=a.relatedTarget||a.fromElement)&&(Vr(de)||de[Wn]))break e;if((le||X)&&(X=Y.window===Y?Y:(X=Y.ownerDocument)?X.defaultView||X.parentWindow:window,le?(de=a.relatedTarget||a.toElement,le=G,de=de?Vr(de):null,de!==null&&(rt=Hr(de),de!==rt||de.tag!==5&&de.tag!==6)&&(de=null)):(le=null,de=G),le!==de)){if(fe=im,re="onMouseLeave",B="onMouseEnter",$="mouse",(t==="pointerout"||t==="pointerover")&&(fe=sm,re="onPointerLeave",B="onPointerEnter",$="pointer"),rt=le==null?X:Ti(le),q=de==null?X:Ti(de),X=new fe(re,$+"leave",le,a,Y),X.target=rt,X.relatedTarget=q,re=null,Vr(Y)===G&&(fe=new fe(B,$+"enter",de,a,Y),fe.target=q,fe.relatedTarget=rt,re=fe),rt=re,le&&de)t:{for(fe=le,B=de,$=0,q=fe;q;q=ki(q))$++;for(q=0,re=B;re;re=ki(re))q++;for(;0<$-q;)fe=ki(fe),$--;for(;0<q-$;)B=ki(B),q--;for(;$--;){if(fe===B||B!==null&&fe===B.alternate)break t;fe=ki(fe),B=ki(B)}fe=null}else fe=null;le!==null&&Nm(Z,X,le,fe,!1),de!==null&&rt!==null&&Nm(Z,rt,de,fe,!0)}}e:{if(X=G?Ti(G):window,le=X.nodeName&&X.nodeName.toLowerCase(),le==="select"||le==="input"&&X.type==="file")var ge=ck;else if(pm(X))if(hm)ge=fk;else{ge=dk;var we=uk}else(le=X.nodeName)&&le.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(ge=pk);if(ge&&(ge=ge(t,G))){fm(Z,ge,a,Y);break e}we&&we(t,X,G),t==="focusout"&&(we=X._wrapperState)&&we.controlled&&X.type==="number"&&Fe(X,"number",X.value)}switch(we=G?Ti(G):window,t){case"focusin":(pm(we)||we.contentEditable==="true")&&(Ci=we,Zl=G,ko=null);break;case"focusout":ko=Zl=Ci=null;break;case"mousedown":Jl=!0;break;case"contextmenu":case"mouseup":case"dragend":Jl=!1,Cm(Z,a,Y);break;case"selectionchange":if(mk)break;case"keydown":case"keyup":Cm(Z,a,Y)}var Ce;if(Kl)e:{switch(t){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else wi?um(t,a)&&(ke="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(am&&a.locale!=="ko"&&(wi||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&wi&&(Ce=nm()):(yr=Y,ql="value"in yr?yr.value:yr.textContent,wi=!0)),we=Hs(G,ke),0<we.length&&(ke=new om(ke,t,null,a,Y),Z.push({event:ke,listeners:we}),Ce?ke.data=Ce:(Ce=dm(a),Ce!==null&&(ke.data=Ce)))),(Ce=ik?ok(t,a):sk(t,a))&&(G=Hs(G,"onBeforeInput"),0<G.length&&(Y=new om("onBeforeInput","beforeinput",null,a,Y),Z.push({event:Y,listeners:G}),Y.data=Ce))}Im(Z,o)})}function Eo(t,o,a){return{instance:t,listener:o,currentTarget:a}}function Hs(t,o){for(var a=o+"Capture",d=[];t!==null;){var h=t,m=h.stateNode;h.tag===5&&m!==null&&(h=m,m=ao(t,a),m!=null&&d.unshift(Eo(t,m,h)),m=ao(t,o),m!=null&&d.push(Eo(t,m,h))),t=t.return}return d}function ki(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Nm(t,o,a,d,h){for(var m=o._reactName,_=[];a!==null&&a!==d;){var R=a,A=R.alternate,G=R.stateNode;if(A!==null&&A===d)break;R.tag===5&&G!==null&&(R=G,h?(A=ao(a,m),A!=null&&_.unshift(Eo(a,A,R))):h||(A=ao(a,m),A!=null&&_.push(Eo(a,A,R)))),a=a.return}_.length!==0&&t.push({event:o,listeners:_})}var Sk=/\r\n?/g,wk=/\u0000|\uFFFD/g;function jm(t){return(typeof t=="string"?t:""+t).replace(Sk,`
|
|
7
|
+
`).replace(wk,"")}function Vs(t,o,a){if(o=jm(o),jm(t)!==o&&a)throw Error(n(425))}function Ks(){}var oc=null,sc=null;function ac(t,o){return t==="textarea"||t==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var lc=typeof setTimeout=="function"?setTimeout:void 0,Ck=typeof clearTimeout=="function"?clearTimeout:void 0,Lm=typeof Promise=="function"?Promise:void 0,_k=typeof queueMicrotask=="function"?queueMicrotask:typeof Lm<"u"?function(t){return Lm.resolve(null).then(t).catch(kk)}:lc;function kk(t){setTimeout(function(){throw t})}function cc(t,o){var a=o,d=0;do{var h=a.nextSibling;if(t.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(d===0){t.removeChild(h),yo(o);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=h}while(a);yo(o)}function br(t){for(;t!=null;t=t.nextSibling){var o=t.nodeType;if(o===1||o===3)break;if(o===8){if(o=t.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return t}function Am(t){t=t.previousSibling;for(var o=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return t;o--}else a==="/$"&&o++}t=t.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Pi,xo="__reactProps$"+Pi,Wn="__reactContainer$"+Pi,uc="__reactEvents$"+Pi,Pk="__reactListeners$"+Pi,Tk="__reactHandles$"+Pi;function Vr(t){var o=t[Rn];if(o)return o;for(var a=t.parentNode;a;){if(o=a[Wn]||a[Rn]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(t=Am(t);t!==null;){if(a=t[Rn])return a;t=Am(t)}return o}t=a,a=t.parentNode}return null}function Do(t){return t=t[Rn]||t[Wn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ti(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(n(33))}function Qs(t){return t[xo]||null}var dc=[],Ei=-1;function Sr(t){return{current:t}}function Ge(t){0>Ei||(t.current=dc[Ei],dc[Ei]=null,Ei--)}function ze(t,o){Ei++,dc[Ei]=t.current,t.current=o}var wr={},yt=Sr(wr),jt=Sr(!1),Kr=wr;function xi(t,o){var a=t.type.contextTypes;if(!a)return wr;var d=t.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var h={},m;for(m in a)h[m]=o[m];return d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=h),h}function Lt(t){return t=t.childContextTypes,t!=null}function Xs(){Ge(jt),Ge(yt)}function Mm(t,o,a){if(yt.current!==wr)throw Error(n(168));ze(yt,o),ze(jt,a)}function $m(t,o,a){var d=t.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var h in d)if(!(h in o))throw Error(n(108,ve(t)||"Unknown",h));return I({},a,d)}function Ys(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wr,Kr=yt.current,ze(yt,t),ze(jt,jt.current),!0}function Fm(t,o,a){var d=t.stateNode;if(!d)throw Error(n(169));a?(t=$m(t,o,Kr),d.__reactInternalMemoizedMergedChildContext=t,Ge(jt),Ge(yt),ze(yt,t)):Ge(jt),ze(jt,a)}var Un=null,Zs=!1,pc=!1;function zm(t){Un===null?Un=[t]:Un.push(t)}function Ek(t){Zs=!0,zm(t)}function Cr(){if(!pc&&Un!==null){pc=!0;var t=0,o=$e;try{var a=Un;for($e=1;t<a.length;t++){var d=a[t];do d=d(!0);while(d!==null)}Un=null,Zs=!1}catch(h){throw Un!==null&&(Un=Un.slice(t+1)),qg(jl,Cr),h}finally{$e=o,pc=!1}}return null}var Di=[],Oi=0,Js=null,ea=0,tn=[],nn=0,Qr=null,Hn=1,Vn="";function Xr(t,o){Di[Oi++]=ea,Di[Oi++]=Js,Js=t,ea=o}function Bm(t,o,a){tn[nn++]=Hn,tn[nn++]=Vn,tn[nn++]=Qr,Qr=t;var d=Hn;t=Vn;var h=32-hn(d)-1;d&=~(1<<h),a+=1;var m=32-hn(o)+h;if(30<m){var _=h-h%5;m=(d&(1<<_)-1).toString(32),d>>=_,h-=_,Hn=1<<32-hn(o)+h|a<<h|d,Vn=m+t}else Hn=1<<m|a<<h|d,Vn=t}function fc(t){t.return!==null&&(Xr(t,1),Bm(t,1,0))}function hc(t){for(;t===Js;)Js=Di[--Oi],Di[Oi]=null,ea=Di[--Oi],Di[Oi]=null;for(;t===Qr;)Qr=tn[--nn],tn[nn]=null,Vn=tn[--nn],tn[nn]=null,Hn=tn[--nn],tn[nn]=null}var Ht=null,Vt=null,We=!1,mn=null;function qm(t,o){var a=an(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=t,o=t.deletions,o===null?(t.deletions=[a],t.flags|=16):o.push(a)}function Gm(t,o){switch(t.tag){case 5:var a=t.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(t.stateNode=o,Ht=t,Vt=br(o.firstChild),!0):!1;case 6:return o=t.pendingProps===""||o.nodeType!==3?null:o,o!==null?(t.stateNode=o,Ht=t,Vt=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=Qr!==null?{id:Hn,overflow:Vn}:null,t.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=an(18,null,null,0),a.stateNode=o,a.return=t,t.child=a,Ht=t,Vt=null,!0):!1;default:return!1}}function gc(t){return(t.mode&1)!==0&&(t.flags&128)===0}function mc(t){if(We){var o=Vt;if(o){var a=o;if(!Gm(t,o)){if(gc(t))throw Error(n(418));o=br(a.nextSibling);var d=Ht;o&&Gm(t,o)?qm(d,a):(t.flags=t.flags&-4097|2,We=!1,Ht=t)}}else{if(gc(t))throw Error(n(418));t.flags=t.flags&-4097|2,We=!1,Ht=t}}}function Wm(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ht=t}function ta(t){if(t!==Ht)return!1;if(!We)return Wm(t),We=!0,!1;var o;if((o=t.tag!==3)&&!(o=t.tag!==5)&&(o=t.type,o=o!=="head"&&o!=="body"&&!ac(t.type,t.memoizedProps)),o&&(o=Vt)){if(gc(t))throw Um(),Error(n(418));for(;o;)qm(t,o),o=br(o.nextSibling)}if(Wm(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(n(317));e:{for(t=t.nextSibling,o=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"){if(o===0){Vt=br(t.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}t=t.nextSibling}Vt=null}}else Vt=Ht?br(t.stateNode.nextSibling):null;return!0}function Um(){for(var t=Vt;t;)t=br(t.nextSibling)}function Ii(){Vt=Ht=null,We=!1}function yc(t){mn===null?mn=[t]:mn.push(t)}var xk=M.ReactCurrentBatchConfig;function yn(t,o){if(t&&t.defaultProps){o=I({},o),t=t.defaultProps;for(var a in t)o[a]===void 0&&(o[a]=t[a]);return o}return o}var na=Sr(null),ra=null,Ri=null,vc=null;function bc(){vc=Ri=ra=null}function Sc(t){var o=na.current;Ge(na),t._currentValue=o}function wc(t,o,a){for(;t!==null;){var d=t.alternate;if((t.childLanes&o)!==o?(t.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),t===a)break;t=t.return}}function Ni(t,o){ra=t,vc=Ri=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&o)!==0&&(At=!0),t.firstContext=null)}function rn(t){var o=t._currentValue;if(vc!==t)if(t={context:t,memoizedValue:o,next:null},Ri===null){if(ra===null)throw Error(n(308));Ri=t,ra.dependencies={lanes:0,firstContext:t}}else Ri=Ri.next=t;return o}var Yr=null;function Cc(t){Yr===null?Yr=[t]:Yr.push(t)}function Hm(t,o,a,d){var h=o.interleaved;return h===null?(a.next=a,Cc(o)):(a.next=h.next,h.next=a),o.interleaved=a,Kn(t,d)}function Kn(t,o){t.lanes|=o;var a=t.alternate;for(a!==null&&(a.lanes|=o),a=t,t=t.return;t!==null;)t.childLanes|=o,a=t.alternate,a!==null&&(a.childLanes|=o),a=t,t=t.return;return a.tag===3?a.stateNode:null}var _r=!1;function _c(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vm(t,o){t=t.updateQueue,o.updateQueue===t&&(o.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Qn(t,o){return{eventTime:t,lane:o,tag:0,payload:null,callback:null,next:null}}function kr(t,o,a){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(Re&2)!==0){var h=d.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),d.pending=o,Kn(t,a)}return h=d.interleaved,h===null?(o.next=o,Cc(d)):(o.next=h.next,h.next=o),d.interleaved=o,Kn(t,a)}function ia(t,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var d=o.lanes;d&=t.pendingLanes,a|=d,o.lanes=a,Ml(t,a)}}function Km(t,o){var a=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var _={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?h=m=_:m=m.next=_,a=a.next}while(a!==null);m===null?h=m=o:m=m.next=o}else h=m=o;a={baseState:d.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:d.shared,effects:d.effects},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=o:t.next=o,a.lastBaseUpdate=o}function oa(t,o,a,d){var h=t.updateQueue;_r=!1;var m=h.firstBaseUpdate,_=h.lastBaseUpdate,R=h.shared.pending;if(R!==null){h.shared.pending=null;var A=R,G=A.next;A.next=null,_===null?m=G:_.next=G,_=A;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,R=Y.lastBaseUpdate,R!==_&&(R===null?Y.firstBaseUpdate=G:R.next=G,Y.lastBaseUpdate=A))}if(m!==null){var Z=h.baseState;_=0,Y=G=A=null,R=m;do{var X=R.lane,le=R.eventTime;if((d&X)===X){Y!==null&&(Y=Y.next={eventTime:le,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var de=t,fe=R;switch(X=o,le=a,fe.tag){case 1:if(de=fe.payload,typeof de=="function"){Z=de.call(le,Z,X);break e}Z=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=fe.payload,X=typeof de=="function"?de.call(le,Z,X):de,X==null)break e;Z=I({},Z,X);break e;case 2:_r=!0}}R.callback!==null&&R.lane!==0&&(t.flags|=64,X=h.effects,X===null?h.effects=[R]:X.push(R))}else le={eventTime:le,lane:X,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Y===null?(G=Y=le,A=Z):Y=Y.next=le,_|=X;if(R=R.next,R===null){if(R=h.shared.pending,R===null)break;X=R,R=X.next,X.next=null,h.lastBaseUpdate=X,h.shared.pending=null}}while(!0);if(Y===null&&(A=Z),h.baseState=A,h.firstBaseUpdate=G,h.lastBaseUpdate=Y,o=h.shared.interleaved,o!==null){h=o;do _|=h.lane,h=h.next;while(h!==o)}else m===null&&(h.shared.lanes=0);ei|=_,t.lanes=_,t.memoizedState=Z}}function Qm(t,o,a){if(t=o.effects,o.effects=null,t!==null)for(o=0;o<t.length;o++){var d=t[o],h=d.callback;if(h!==null){if(d.callback=null,d=a,typeof h!="function")throw Error(n(191,h));h.call(d)}}}var Xm=new i.Component().refs;function kc(t,o,a,d){o=t.memoizedState,a=a(d,o),a=a==null?o:I({},o,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var sa={isMounted:function(t){return(t=t._reactInternals)?Hr(t)===t:!1},enqueueSetState:function(t,o,a){t=t._reactInternals;var d=Tt(),h=xr(t),m=Qn(d,h);m.payload=o,a!=null&&(m.callback=a),o=kr(t,m,h),o!==null&&(Sn(o,t,h,d),ia(o,t,h))},enqueueReplaceState:function(t,o,a){t=t._reactInternals;var d=Tt(),h=xr(t),m=Qn(d,h);m.tag=1,m.payload=o,a!=null&&(m.callback=a),o=kr(t,m,h),o!==null&&(Sn(o,t,h,d),ia(o,t,h))},enqueueForceUpdate:function(t,o){t=t._reactInternals;var a=Tt(),d=xr(t),h=Qn(a,d);h.tag=2,o!=null&&(h.callback=o),o=kr(t,h,d),o!==null&&(Sn(o,t,d,a),ia(o,t,d))}};function Ym(t,o,a,d,h,m,_){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,m,_):o.prototype&&o.prototype.isPureReactComponent?!_o(a,d)||!_o(h,m):!0}function Zm(t,o,a){var d=!1,h=wr,m=o.contextType;return typeof m=="object"&&m!==null?m=rn(m):(h=Lt(o)?Kr:yt.current,d=o.contextTypes,m=(d=d!=null)?xi(t,h):wr),o=new o(a,m),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=sa,t.stateNode=o,o._reactInternals=t,d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=h,t.__reactInternalMemoizedMaskedChildContext=m),o}function Jm(t,o,a,d){t=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,d),o.state!==t&&sa.enqueueReplaceState(o,o.state,null)}function Pc(t,o,a,d){var h=t.stateNode;h.props=a,h.state=t.memoizedState,h.refs=Xm,_c(t);var m=o.contextType;typeof m=="object"&&m!==null?h.context=rn(m):(m=Lt(o)?Kr:yt.current,h.context=xi(t,m)),h.state=t.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(kc(t,o,m,a),h.state=t.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(o=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),o!==h.state&&sa.enqueueReplaceState(h,h.state,null),oa(t,a,h,d),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308)}function Oo(t,o,a){if(t=a.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,t));var h=d,m=""+t;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(_){var R=h.refs;R===Xm&&(R=h.refs={}),_===null?delete R[m]:R[m]=_},o._stringRef=m,o)}if(typeof t!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,t))}return t}function aa(t,o){throw t=Object.prototype.toString.call(o),Error(n(31,t==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":t))}function ey(t){var o=t._init;return o(t._payload)}function ty(t){function o(B,$){if(t){var q=B.deletions;q===null?(B.deletions=[$],B.flags|=16):q.push($)}}function a(B,$){if(!t)return null;for(;$!==null;)o(B,$),$=$.sibling;return null}function d(B,$){for(B=new Map;$!==null;)$.key!==null?B.set($.key,$):B.set($.index,$),$=$.sibling;return B}function h(B,$){return B=Or(B,$),B.index=0,B.sibling=null,B}function m(B,$,q){return B.index=q,t?(q=B.alternate,q!==null?(q=q.index,q<$?(B.flags|=2,$):q):(B.flags|=2,$)):(B.flags|=1048576,$)}function _(B){return t&&B.alternate===null&&(B.flags|=2),B}function R(B,$,q,re){return $===null||$.tag!==6?($=lu(q,B.mode,re),$.return=B,$):($=h($,q),$.return=B,$)}function A(B,$,q,re){var ge=q.type;return ge===j?Y(B,$,q.props.children,re,q.key):$!==null&&($.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ue&&ey(ge)===$.type)?(re=h($,q.props),re.ref=Oo(B,$,q),re.return=B,re):(re=Ta(q.type,q.key,q.props,null,B.mode,re),re.ref=Oo(B,$,q),re.return=B,re)}function G(B,$,q,re){return $===null||$.tag!==4||$.stateNode.containerInfo!==q.containerInfo||$.stateNode.implementation!==q.implementation?($=cu(q,B.mode,re),$.return=B,$):($=h($,q.children||[]),$.return=B,$)}function Y(B,$,q,re,ge){return $===null||$.tag!==7?($=ii(q,B.mode,re,ge),$.return=B,$):($=h($,q),$.return=B,$)}function Z(B,$,q){if(typeof $=="string"&&$!==""||typeof $=="number")return $=lu(""+$,B.mode,q),$.return=B,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case z:return q=Ta($.type,$.key,$.props,null,B.mode,q),q.ref=Oo(B,null,$),q.return=B,q;case L:return $=cu($,B.mode,q),$.return=B,$;case ue:var re=$._init;return Z(B,re($._payload),q)}if(Me($)||ee($))return $=ii($,B.mode,q,null),$.return=B,$;aa(B,$)}return null}function X(B,$,q,re){var ge=$!==null?$.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return ge!==null?null:R(B,$,""+q,re);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case z:return q.key===ge?A(B,$,q,re):null;case L:return q.key===ge?G(B,$,q,re):null;case ue:return ge=q._init,X(B,$,ge(q._payload),re)}if(Me(q)||ee(q))return ge!==null?null:Y(B,$,q,re,null);aa(B,q)}return null}function le(B,$,q,re,ge){if(typeof re=="string"&&re!==""||typeof re=="number")return B=B.get(q)||null,R($,B,""+re,ge);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case z:return B=B.get(re.key===null?q:re.key)||null,A($,B,re,ge);case L:return B=B.get(re.key===null?q:re.key)||null,G($,B,re,ge);case ue:var we=re._init;return le(B,$,q,we(re._payload),ge)}if(Me(re)||ee(re))return B=B.get(q)||null,Y($,B,re,ge,null);aa($,re)}return null}function de(B,$,q,re){for(var ge=null,we=null,Ce=$,ke=$=0,pt=null;Ce!==null&&ke<q.length;ke++){Ce.index>ke?(pt=Ce,Ce=null):pt=Ce.sibling;var Ne=X(B,Ce,q[ke],re);if(Ne===null){Ce===null&&(Ce=pt);break}t&&Ce&&Ne.alternate===null&&o(B,Ce),$=m(Ne,$,ke),we===null?ge=Ne:we.sibling=Ne,we=Ne,Ce=pt}if(ke===q.length)return a(B,Ce),We&&Xr(B,ke),ge;if(Ce===null){for(;ke<q.length;ke++)Ce=Z(B,q[ke],re),Ce!==null&&($=m(Ce,$,ke),we===null?ge=Ce:we.sibling=Ce,we=Ce);return We&&Xr(B,ke),ge}for(Ce=d(B,Ce);ke<q.length;ke++)pt=le(Ce,B,ke,q[ke],re),pt!==null&&(t&&pt.alternate!==null&&Ce.delete(pt.key===null?ke:pt.key),$=m(pt,$,ke),we===null?ge=pt:we.sibling=pt,we=pt);return t&&Ce.forEach(function(Ir){return o(B,Ir)}),We&&Xr(B,ke),ge}function fe(B,$,q,re){var ge=ee(q);if(typeof ge!="function")throw Error(n(150));if(q=ge.call(q),q==null)throw Error(n(151));for(var we=ge=null,Ce=$,ke=$=0,pt=null,Ne=q.next();Ce!==null&&!Ne.done;ke++,Ne=q.next()){Ce.index>ke?(pt=Ce,Ce=null):pt=Ce.sibling;var Ir=X(B,Ce,Ne.value,re);if(Ir===null){Ce===null&&(Ce=pt);break}t&&Ce&&Ir.alternate===null&&o(B,Ce),$=m(Ir,$,ke),we===null?ge=Ir:we.sibling=Ir,we=Ir,Ce=pt}if(Ne.done)return a(B,Ce),We&&Xr(B,ke),ge;if(Ce===null){for(;!Ne.done;ke++,Ne=q.next())Ne=Z(B,Ne.value,re),Ne!==null&&($=m(Ne,$,ke),we===null?ge=Ne:we.sibling=Ne,we=Ne);return We&&Xr(B,ke),ge}for(Ce=d(B,Ce);!Ne.done;ke++,Ne=q.next())Ne=le(Ce,B,ke,Ne.value,re),Ne!==null&&(t&&Ne.alternate!==null&&Ce.delete(Ne.key===null?ke:Ne.key),$=m(Ne,$,ke),we===null?ge=Ne:we.sibling=Ne,we=Ne);return t&&Ce.forEach(function(aP){return o(B,aP)}),We&&Xr(B,ke),ge}function rt(B,$,q,re){if(typeof q=="object"&&q!==null&&q.type===j&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case z:e:{for(var ge=q.key,we=$;we!==null;){if(we.key===ge){if(ge=q.type,ge===j){if(we.tag===7){a(B,we.sibling),$=h(we,q.props.children),$.return=B,B=$;break e}}else if(we.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ue&&ey(ge)===we.type){a(B,we.sibling),$=h(we,q.props),$.ref=Oo(B,we,q),$.return=B,B=$;break e}a(B,we);break}else o(B,we);we=we.sibling}q.type===j?($=ii(q.props.children,B.mode,re,q.key),$.return=B,B=$):(re=Ta(q.type,q.key,q.props,null,B.mode,re),re.ref=Oo(B,$,q),re.return=B,B=re)}return _(B);case L:e:{for(we=q.key;$!==null;){if($.key===we)if($.tag===4&&$.stateNode.containerInfo===q.containerInfo&&$.stateNode.implementation===q.implementation){a(B,$.sibling),$=h($,q.children||[]),$.return=B,B=$;break e}else{a(B,$);break}else o(B,$);$=$.sibling}$=cu(q,B.mode,re),$.return=B,B=$}return _(B);case ue:return we=q._init,rt(B,$,we(q._payload),re)}if(Me(q))return de(B,$,q,re);if(ee(q))return fe(B,$,q,re);aa(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,$!==null&&$.tag===6?(a(B,$.sibling),$=h($,q),$.return=B,B=$):(a(B,$),$=lu(q,B.mode,re),$.return=B,B=$),_(B)):a(B,$)}return rt}var ji=ty(!0),ny=ty(!1),Io={},Nn=Sr(Io),Ro=Sr(Io),No=Sr(Io);function Zr(t){if(t===Io)throw Error(n(174));return t}function Tc(t,o){switch(ze(No,o),ze(Ro,t),ze(Nn,Io),t=o.nodeType,t){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Nt(null,"");break;default:t=t===8?o.parentNode:o,o=t.namespaceURI||null,t=t.tagName,o=Nt(o,t)}Ge(Nn),ze(Nn,o)}function Li(){Ge(Nn),Ge(Ro),Ge(No)}function ry(t){Zr(No.current);var o=Zr(Nn.current),a=Nt(o,t.type);o!==a&&(ze(Ro,t),ze(Nn,a))}function Ec(t){Ro.current===t&&(Ge(Nn),Ge(Ro))}var Qe=Sr(0);function la(t){for(var o=t;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var xc=[];function Dc(){for(var t=0;t<xc.length;t++)xc[t]._workInProgressVersionPrimary=null;xc.length=0}var ca=M.ReactCurrentDispatcher,Oc=M.ReactCurrentBatchConfig,Jr=0,Xe=null,ot=null,ut=null,ua=!1,jo=!1,Lo=0,Dk=0;function vt(){throw Error(n(321))}function Ic(t,o){if(o===null)return!1;for(var a=0;a<o.length&&a<t.length;a++)if(!gn(t[a],o[a]))return!1;return!0}function Rc(t,o,a,d,h,m){if(Jr=m,Xe=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ca.current=t===null||t.memoizedState===null?Nk:jk,t=a(d,h),jo){m=0;do{if(jo=!1,Lo=0,25<=m)throw Error(n(301));m+=1,ut=ot=null,o.updateQueue=null,ca.current=Lk,t=a(d,h)}while(jo)}if(ca.current=fa,o=ot!==null&&ot.next!==null,Jr=0,ut=ot=Xe=null,ua=!1,o)throw Error(n(300));return t}function Nc(){var t=Lo!==0;return Lo=0,t}function jn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Xe.memoizedState=ut=t:ut=ut.next=t,ut}function on(){if(ot===null){var t=Xe.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var o=ut===null?Xe.memoizedState:ut.next;if(o!==null)ut=o,ot=t;else{if(t===null)throw Error(n(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},ut===null?Xe.memoizedState=ut=t:ut=ut.next=t}return ut}function Ao(t,o){return typeof o=="function"?o(t):o}function jc(t){var o=on(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=ot,h=d.baseQueue,m=a.pending;if(m!==null){if(h!==null){var _=h.next;h.next=m.next,m.next=_}d.baseQueue=h=m,a.pending=null}if(h!==null){m=h.next,d=d.baseState;var R=_=null,A=null,G=m;do{var Y=G.lane;if((Jr&Y)===Y)A!==null&&(A=A.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),d=G.hasEagerState?G.eagerState:t(d,G.action);else{var Z={lane:Y,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};A===null?(R=A=Z,_=d):A=A.next=Z,Xe.lanes|=Y,ei|=Y}G=G.next}while(G!==null&&G!==m);A===null?_=d:A.next=R,gn(d,o.memoizedState)||(At=!0),o.memoizedState=d,o.baseState=_,o.baseQueue=A,a.lastRenderedState=d}if(t=a.interleaved,t!==null){h=t;do m=h.lane,Xe.lanes|=m,ei|=m,h=h.next;while(h!==t)}else h===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function Lc(t){var o=on(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=a.dispatch,h=a.pending,m=o.memoizedState;if(h!==null){a.pending=null;var _=h=h.next;do m=t(m,_.action),_=_.next;while(_!==h);gn(m,o.memoizedState)||(At=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),a.lastRenderedState=m}return[m,d]}function iy(){}function oy(t,o){var a=Xe,d=on(),h=o(),m=!gn(d.memoizedState,h);if(m&&(d.memoizedState=h,At=!0),d=d.queue,Ac(ly.bind(null,a,d,t),[t]),d.getSnapshot!==o||m||ut!==null&&ut.memoizedState.tag&1){if(a.flags|=2048,Mo(9,ay.bind(null,a,d,h,o),void 0,null),dt===null)throw Error(n(349));(Jr&30)!==0||sy(a,o,h)}return h}function sy(t,o,a){t.flags|=16384,t={getSnapshot:o,value:a},o=Xe.updateQueue,o===null?(o={lastEffect:null,stores:null},Xe.updateQueue=o,o.stores=[t]):(a=o.stores,a===null?o.stores=[t]:a.push(t))}function ay(t,o,a,d){o.value=a,o.getSnapshot=d,cy(o)&&uy(t)}function ly(t,o,a){return a(function(){cy(o)&&uy(t)})}function cy(t){var o=t.getSnapshot;t=t.value;try{var a=o();return!gn(t,a)}catch{return!0}}function uy(t){var o=Kn(t,1);o!==null&&Sn(o,t,1,-1)}function dy(t){var o=jn();return typeof t=="function"&&(t=t()),o.memoizedState=o.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:t},o.queue=t,t=t.dispatch=Rk.bind(null,Xe,t),[o.memoizedState,t]}function Mo(t,o,a,d){return t={tag:t,create:o,destroy:a,deps:d,next:null},o=Xe.updateQueue,o===null?(o={lastEffect:null,stores:null},Xe.updateQueue=o,o.lastEffect=t.next=t):(a=o.lastEffect,a===null?o.lastEffect=t.next=t:(d=a.next,a.next=t,t.next=d,o.lastEffect=t)),t}function py(){return on().memoizedState}function da(t,o,a,d){var h=jn();Xe.flags|=t,h.memoizedState=Mo(1|o,a,void 0,d===void 0?null:d)}function pa(t,o,a,d){var h=on();d=d===void 0?null:d;var m=void 0;if(ot!==null){var _=ot.memoizedState;if(m=_.destroy,d!==null&&Ic(d,_.deps)){h.memoizedState=Mo(o,a,m,d);return}}Xe.flags|=t,h.memoizedState=Mo(1|o,a,m,d)}function fy(t,o){return da(8390656,8,t,o)}function Ac(t,o){return pa(2048,8,t,o)}function hy(t,o){return pa(4,2,t,o)}function gy(t,o){return pa(4,4,t,o)}function my(t,o){if(typeof o=="function")return t=t(),o(t),function(){o(null)};if(o!=null)return t=t(),o.current=t,function(){o.current=null}}function yy(t,o,a){return a=a!=null?a.concat([t]):null,pa(4,4,my.bind(null,o,t),a)}function Mc(){}function vy(t,o){var a=on();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&Ic(o,d[1])?d[0]:(a.memoizedState=[t,o],t)}function by(t,o){var a=on();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&Ic(o,d[1])?d[0]:(t=t(),a.memoizedState=[t,o],t)}function Sy(t,o,a){return(Jr&21)===0?(t.baseState&&(t.baseState=!1,At=!0),t.memoizedState=a):(gn(a,o)||(a=Hg(),Xe.lanes|=a,ei|=a,t.baseState=!0),o)}function Ok(t,o){var a=$e;$e=a!==0&&4>a?a:4,t(!0);var d=Oc.transition;Oc.transition={};try{t(!1),o()}finally{$e=a,Oc.transition=d}}function wy(){return on().memoizedState}function Ik(t,o,a){var d=xr(t);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},Cy(t))_y(o,a);else if(a=Hm(t,o,a,d),a!==null){var h=Tt();Sn(a,t,d,h),ky(a,o,d)}}function Rk(t,o,a){var d=xr(t),h={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cy(t))_y(o,h);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var _=o.lastRenderedState,R=m(_,a);if(h.hasEagerState=!0,h.eagerState=R,gn(R,_)){var A=o.interleaved;A===null?(h.next=h,Cc(o)):(h.next=A.next,A.next=h),o.interleaved=h;return}}catch{}a=Hm(t,o,h,d),a!==null&&(h=Tt(),Sn(a,t,d,h),ky(a,o,d))}}function Cy(t){var o=t.alternate;return t===Xe||o!==null&&o===Xe}function _y(t,o){jo=ua=!0;var a=t.pending;a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o}function ky(t,o,a){if((a&4194240)!==0){var d=o.lanes;d&=t.pendingLanes,a|=d,o.lanes=a,Ml(t,a)}}var fa={readContext:rn,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useInsertionEffect:vt,useLayoutEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useMutableSource:vt,useSyncExternalStore:vt,useId:vt,unstable_isNewReconciler:!1},Nk={readContext:rn,useCallback:function(t,o){return jn().memoizedState=[t,o===void 0?null:o],t},useContext:rn,useEffect:fy,useImperativeHandle:function(t,o,a){return a=a!=null?a.concat([t]):null,da(4194308,4,my.bind(null,o,t),a)},useLayoutEffect:function(t,o){return da(4194308,4,t,o)},useInsertionEffect:function(t,o){return da(4,2,t,o)},useMemo:function(t,o){var a=jn();return o=o===void 0?null:o,t=t(),a.memoizedState=[t,o],t},useReducer:function(t,o,a){var d=jn();return o=a!==void 0?a(o):o,d.memoizedState=d.baseState=o,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},d.queue=t,t=t.dispatch=Ik.bind(null,Xe,t),[d.memoizedState,t]},useRef:function(t){var o=jn();return t={current:t},o.memoizedState=t},useState:dy,useDebugValue:Mc,useDeferredValue:function(t){return jn().memoizedState=t},useTransition:function(){var t=dy(!1),o=t[0];return t=Ok.bind(null,t[1]),jn().memoizedState=t,[o,t]},useMutableSource:function(){},useSyncExternalStore:function(t,o,a){var d=Xe,h=jn();if(We){if(a===void 0)throw Error(n(407));a=a()}else{if(a=o(),dt===null)throw Error(n(349));(Jr&30)!==0||sy(d,o,a)}h.memoizedState=a;var m={value:a,getSnapshot:o};return h.queue=m,fy(ly.bind(null,d,m,t),[t]),d.flags|=2048,Mo(9,ay.bind(null,d,m,a,o),void 0,null),a},useId:function(){var t=jn(),o=dt.identifierPrefix;if(We){var a=Vn,d=Hn;a=(d&~(1<<32-hn(d)-1)).toString(32)+a,o=":"+o+"R"+a,a=Lo++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=Dk++,o=":"+o+"r"+a.toString(32)+":";return t.memoizedState=o},unstable_isNewReconciler:!1},jk={readContext:rn,useCallback:vy,useContext:rn,useEffect:Ac,useImperativeHandle:yy,useInsertionEffect:hy,useLayoutEffect:gy,useMemo:by,useReducer:jc,useRef:py,useState:function(){return jc(Ao)},useDebugValue:Mc,useDeferredValue:function(t){var o=on();return Sy(o,ot.memoizedState,t)},useTransition:function(){var t=jc(Ao)[0],o=on().memoizedState;return[t,o]},useMutableSource:iy,useSyncExternalStore:oy,useId:wy,unstable_isNewReconciler:!1},Lk={readContext:rn,useCallback:vy,useContext:rn,useEffect:Ac,useImperativeHandle:yy,useInsertionEffect:hy,useLayoutEffect:gy,useMemo:by,useReducer:Lc,useRef:py,useState:function(){return Lc(Ao)},useDebugValue:Mc,useDeferredValue:function(t){var o=on();return ot===null?o.memoizedState=t:Sy(o,ot.memoizedState,t)},useTransition:function(){var t=Lc(Ao)[0],o=on().memoizedState;return[t,o]},useMutableSource:iy,useSyncExternalStore:oy,useId:wy,unstable_isNewReconciler:!1};function Ai(t,o){try{var a="",d=o;do a+=be(d),d=d.return;while(d);var h=a}catch(m){h=`
|
|
8
|
+
Error generating stack: `+m.message+`
|
|
9
|
+
`+m.stack}return{value:t,source:o,stack:h,digest:null}}function $c(t,o,a){return{value:t,source:null,stack:a??null,digest:o??null}}function Fc(t,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var Ak=typeof WeakMap=="function"?WeakMap:Map;function Py(t,o,a){a=Qn(-1,a),a.tag=3,a.payload={element:null};var d=o.value;return a.callback=function(){Sa||(Sa=!0,eu=d),Fc(t,o)},a}function Ty(t,o,a){a=Qn(-1,a),a.tag=3;var d=t.type.getDerivedStateFromError;if(typeof d=="function"){var h=o.value;a.payload=function(){return d(h)},a.callback=function(){Fc(t,o)}}var m=t.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){Fc(t,o),typeof d!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})}),a}function Ey(t,o,a){var d=t.pingCache;if(d===null){d=t.pingCache=new Ak;var h=new Set;d.set(o,h)}else h=d.get(o),h===void 0&&(h=new Set,d.set(o,h));h.has(a)||(h.add(a),t=Xk.bind(null,t,o,a),o.then(t,t))}function xy(t){do{var o;if((o=t.tag===13)&&(o=t.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return t;t=t.return}while(t!==null);return null}function Dy(t,o,a,d,h){return(t.mode&1)===0?(t===o?t.flags|=65536:(t.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=Qn(-1,1),o.tag=2,kr(a,o,1))),a.lanes|=1),t):(t.flags|=65536,t.lanes=h,t)}var Mk=M.ReactCurrentOwner,At=!1;function Pt(t,o,a,d){o.child=t===null?ny(o,null,a,d):ji(o,t.child,a,d)}function Oy(t,o,a,d,h){a=a.render;var m=o.ref;return Ni(o,h),d=Rc(t,o,a,d,m,h),a=Nc(),t!==null&&!At?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~h,Xn(t,o,h)):(We&&a&&fc(o),o.flags|=1,Pt(t,o,d,h),o.child)}function Iy(t,o,a,d,h){if(t===null){var m=a.type;return typeof m=="function"&&!au(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=m,Ry(t,o,m,d,h)):(t=Ta(a.type,null,d,o,o.mode,h),t.ref=o.ref,t.return=o,o.child=t)}if(m=t.child,(t.lanes&h)===0){var _=m.memoizedProps;if(a=a.compare,a=a!==null?a:_o,a(_,d)&&t.ref===o.ref)return Xn(t,o,h)}return o.flags|=1,t=Or(m,d),t.ref=o.ref,t.return=o,o.child=t}function Ry(t,o,a,d,h){if(t!==null){var m=t.memoizedProps;if(_o(m,d)&&t.ref===o.ref)if(At=!1,o.pendingProps=d=m,(t.lanes&h)!==0)(t.flags&131072)!==0&&(At=!0);else return o.lanes=t.lanes,Xn(t,o,h)}return zc(t,o,a,d,h)}function Ny(t,o,a){var d=o.pendingProps,h=d.children,m=t!==null?t.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze($i,Kt),Kt|=a;else{if((a&1073741824)===0)return t=m!==null?m.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:t,cachePool:null,transitions:null},o.updateQueue=null,ze($i,Kt),Kt|=t,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:a,ze($i,Kt),Kt|=d}else m!==null?(d=m.baseLanes|a,o.memoizedState=null):d=a,ze($i,Kt),Kt|=d;return Pt(t,o,h,a),o.child}function jy(t,o){var a=o.ref;(t===null&&a!==null||t!==null&&t.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function zc(t,o,a,d,h){var m=Lt(a)?Kr:yt.current;return m=xi(o,m),Ni(o,h),a=Rc(t,o,a,d,m,h),d=Nc(),t!==null&&!At?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~h,Xn(t,o,h)):(We&&d&&fc(o),o.flags|=1,Pt(t,o,a,h),o.child)}function Ly(t,o,a,d,h){if(Lt(a)){var m=!0;Ys(o)}else m=!1;if(Ni(o,h),o.stateNode===null)ga(t,o),Zm(o,a,d),Pc(o,a,d,h),d=!0;else if(t===null){var _=o.stateNode,R=o.memoizedProps;_.props=R;var A=_.context,G=a.contextType;typeof G=="object"&&G!==null?G=rn(G):(G=Lt(a)?Kr:yt.current,G=xi(o,G));var Y=a.getDerivedStateFromProps,Z=typeof Y=="function"||typeof _.getSnapshotBeforeUpdate=="function";Z||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(R!==d||A!==G)&&Jm(o,_,d,G),_r=!1;var X=o.memoizedState;_.state=X,oa(o,d,_,h),A=o.memoizedState,R!==d||X!==A||jt.current||_r?(typeof Y=="function"&&(kc(o,a,Y,d),A=o.memoizedState),(R=_r||Ym(o,a,R,d,X,A,G))?(Z||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=A),_.props=d,_.state=A,_.context=G,d=R):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{_=o.stateNode,Vm(t,o),R=o.memoizedProps,G=o.type===o.elementType?R:yn(o.type,R),_.props=G,Z=o.pendingProps,X=_.context,A=a.contextType,typeof A=="object"&&A!==null?A=rn(A):(A=Lt(a)?Kr:yt.current,A=xi(o,A));var le=a.getDerivedStateFromProps;(Y=typeof le=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(R!==Z||X!==A)&&Jm(o,_,d,A),_r=!1,X=o.memoizedState,_.state=X,oa(o,d,_,h);var de=o.memoizedState;R!==Z||X!==de||jt.current||_r?(typeof le=="function"&&(kc(o,a,le,d),de=o.memoizedState),(G=_r||Ym(o,a,G,d,X,de,A)||!1)?(Y||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(d,de,A),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(d,de,A)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=de),_.props=d,_.state=de,_.context=A,d=G):(typeof _.componentDidUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=1024),d=!1)}return Bc(t,o,a,d,m,h)}function Bc(t,o,a,d,h,m){jy(t,o);var _=(o.flags&128)!==0;if(!d&&!_)return h&&Fm(o,a,!1),Xn(t,o,m);d=o.stateNode,Mk.current=o;var R=_&&typeof a.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,t!==null&&_?(o.child=ji(o,t.child,null,m),o.child=ji(o,null,R,m)):Pt(t,o,R,m),o.memoizedState=d.state,h&&Fm(o,a,!0),o.child}function Ay(t){var o=t.stateNode;o.pendingContext?Mm(t,o.pendingContext,o.pendingContext!==o.context):o.context&&Mm(t,o.context,!1),Tc(t,o.containerInfo)}function My(t,o,a,d,h){return Ii(),yc(h),o.flags|=256,Pt(t,o,a,d),o.child}var qc={dehydrated:null,treeContext:null,retryLane:0};function Gc(t){return{baseLanes:t,cachePool:null,transitions:null}}function $y(t,o,a){var d=o.pendingProps,h=Qe.current,m=!1,_=(o.flags&128)!==0,R;if((R=_)||(R=t!==null&&t.memoizedState===null?!1:(h&2)!==0),R?(m=!0,o.flags&=-129):(t===null||t.memoizedState!==null)&&(h|=1),ze(Qe,h&1),t===null)return mc(o),t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((o.mode&1)===0?o.lanes=1:t.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(_=d.children,t=d.fallback,m?(d=o.mode,m=o.child,_={mode:"hidden",children:_},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=_):m=Ea(_,d,0,null),t=ii(t,d,a,null),m.return=o,t.return=o,m.sibling=t,o.child=m,o.child.memoizedState=Gc(a),o.memoizedState=qc,t):Wc(o,_));if(h=t.memoizedState,h!==null&&(R=h.dehydrated,R!==null))return $k(t,o,_,d,R,h,a);if(m){m=d.fallback,_=o.mode,h=t.child,R=h.sibling;var A={mode:"hidden",children:d.children};return(_&1)===0&&o.child!==h?(d=o.child,d.childLanes=0,d.pendingProps=A,o.deletions=null):(d=Or(h,A),d.subtreeFlags=h.subtreeFlags&14680064),R!==null?m=Or(R,m):(m=ii(m,_,a,null),m.flags|=2),m.return=o,d.return=o,d.sibling=m,o.child=d,d=m,m=o.child,_=t.child.memoizedState,_=_===null?Gc(a):{baseLanes:_.baseLanes|a,cachePool:null,transitions:_.transitions},m.memoizedState=_,m.childLanes=t.childLanes&~a,o.memoizedState=qc,d}return m=t.child,t=m.sibling,d=Or(m,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=a),d.return=o,d.sibling=null,t!==null&&(a=o.deletions,a===null?(o.deletions=[t],o.flags|=16):a.push(t)),o.child=d,o.memoizedState=null,d}function Wc(t,o){return o=Ea({mode:"visible",children:o},t.mode,0,null),o.return=t,t.child=o}function ha(t,o,a,d){return d!==null&&yc(d),ji(o,t.child,null,a),t=Wc(o,o.pendingProps.children),t.flags|=2,o.memoizedState=null,t}function $k(t,o,a,d,h,m,_){if(a)return o.flags&256?(o.flags&=-257,d=$c(Error(n(422))),ha(t,o,_,d)):o.memoizedState!==null?(o.child=t.child,o.flags|=128,null):(m=d.fallback,h=o.mode,d=Ea({mode:"visible",children:d.children},h,0,null),m=ii(m,h,_,null),m.flags|=2,d.return=o,m.return=o,d.sibling=m,o.child=d,(o.mode&1)!==0&&ji(o,t.child,null,_),o.child.memoizedState=Gc(_),o.memoizedState=qc,m);if((o.mode&1)===0)return ha(t,o,_,null);if(h.data==="$!"){if(d=h.nextSibling&&h.nextSibling.dataset,d)var R=d.dgst;return d=R,m=Error(n(419)),d=$c(m,d,void 0),ha(t,o,_,d)}if(R=(_&t.childLanes)!==0,At||R){if(d=dt,d!==null){switch(_&-_){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(d.suspendedLanes|_))!==0?0:h,h!==0&&h!==m.retryLane&&(m.retryLane=h,Kn(t,h),Sn(d,t,h,-1))}return su(),d=$c(Error(n(421))),ha(t,o,_,d)}return h.data==="$?"?(o.flags|=128,o.child=t.child,o=Yk.bind(null,t),h._reactRetry=o,null):(t=m.treeContext,Vt=br(h.nextSibling),Ht=o,We=!0,mn=null,t!==null&&(tn[nn++]=Hn,tn[nn++]=Vn,tn[nn++]=Qr,Hn=t.id,Vn=t.overflow,Qr=o),o=Wc(o,d.children),o.flags|=4096,o)}function Fy(t,o,a){t.lanes|=o;var d=t.alternate;d!==null&&(d.lanes|=o),wc(t.return,o,a)}function Uc(t,o,a,d,h){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:h}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=a,m.tailMode=h)}function zy(t,o,a){var d=o.pendingProps,h=d.revealOrder,m=d.tail;if(Pt(t,o,d.children,a),d=Qe.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=o.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fy(t,a,o);else if(t.tag===19)Fy(t,a,o);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}d&=1}if(ze(Qe,d),(o.mode&1)===0)o.memoizedState=null;else switch(h){case"forwards":for(a=o.child,h=null;a!==null;)t=a.alternate,t!==null&&la(t)===null&&(h=a),a=a.sibling;a=h,a===null?(h=o.child,o.child=null):(h=a.sibling,a.sibling=null),Uc(o,!1,h,a,m);break;case"backwards":for(a=null,h=o.child,o.child=null;h!==null;){if(t=h.alternate,t!==null&&la(t)===null){o.child=h;break}t=h.sibling,h.sibling=a,a=h,h=t}Uc(o,!0,a,null,m);break;case"together":Uc(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ga(t,o){(o.mode&1)===0&&t!==null&&(t.alternate=null,o.alternate=null,o.flags|=2)}function Xn(t,o,a){if(t!==null&&(o.dependencies=t.dependencies),ei|=o.lanes,(a&o.childLanes)===0)return null;if(t!==null&&o.child!==t.child)throw Error(n(153));if(o.child!==null){for(t=o.child,a=Or(t,t.pendingProps),o.child=a,a.return=o;t.sibling!==null;)t=t.sibling,a=a.sibling=Or(t,t.pendingProps),a.return=o;a.sibling=null}return o.child}function Fk(t,o,a){switch(o.tag){case 3:Ay(o),Ii();break;case 5:ry(o);break;case 1:Lt(o.type)&&Ys(o);break;case 4:Tc(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,h=o.memoizedProps.value;ze(na,d._currentValue),d._currentValue=h;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(ze(Qe,Qe.current&1),o.flags|=128,null):(a&o.child.childLanes)!==0?$y(t,o,a):(ze(Qe,Qe.current&1),t=Xn(t,o,a),t!==null?t.sibling:null);ze(Qe,Qe.current&1);break;case 19:if(d=(a&o.childLanes)!==0,(t.flags&128)!==0){if(d)return zy(t,o,a);o.flags|=128}if(h=o.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ze(Qe,Qe.current),d)break;return null;case 22:case 23:return o.lanes=0,Ny(t,o,a)}return Xn(t,o,a)}var By,Hc,qy,Gy;By=function(t,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Hc=function(){},qy=function(t,o,a,d){var h=t.memoizedProps;if(h!==d){t=o.stateNode,Zr(Nn.current);var m=null;switch(a){case"input":h=cr(t,h),d=cr(t,d),m=[];break;case"select":h=I({},h,{value:void 0}),d=I({},d,{value:void 0}),m=[];break;case"textarea":h=Ke(t,h),d=Ke(t,d),m=[];break;default:typeof h.onClick!="function"&&typeof d.onClick=="function"&&(t.onclick=Ks)}dr(a,d);var _;a=null;for(G in h)if(!d.hasOwnProperty(G)&&h.hasOwnProperty(G)&&h[G]!=null)if(G==="style"){var R=h[G];for(_ in R)R.hasOwnProperty(_)&&(a||(a={}),a[_]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?m||(m=[]):(m=m||[]).push(G,null));for(G in d){var A=d[G];if(R=h?.[G],d.hasOwnProperty(G)&&A!==R&&(A!=null||R!=null))if(G==="style")if(R){for(_ in R)!R.hasOwnProperty(_)||A&&A.hasOwnProperty(_)||(a||(a={}),a[_]="");for(_ in A)A.hasOwnProperty(_)&&R[_]!==A[_]&&(a||(a={}),a[_]=A[_])}else a||(m||(m=[]),m.push(G,a)),a=A;else G==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,R=R?R.__html:void 0,A!=null&&R!==A&&(m=m||[]).push(G,A)):G==="children"?typeof A!="string"&&typeof A!="number"||(m=m||[]).push(G,""+A):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(A!=null&&G==="onScroll"&&qe("scroll",t),m||R===A||(m=[])):(m=m||[]).push(G,A))}a&&(m=m||[]).push("style",a);var G=m;(o.updateQueue=G)&&(o.flags|=4)}},Gy=function(t,o,a,d){a!==d&&(o.flags|=4)};function $o(t,o){if(!We)switch(t.tailMode){case"hidden":o=t.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?o||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function bt(t){var o=t.alternate!==null&&t.alternate.child===t.child,a=0,d=0;if(o)for(var h=t.child;h!==null;)a|=h.lanes|h.childLanes,d|=h.subtreeFlags&14680064,d|=h.flags&14680064,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)a|=h.lanes|h.childLanes,d|=h.subtreeFlags,d|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=d,t.childLanes=a,o}function zk(t,o,a){var d=o.pendingProps;switch(hc(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(o),null;case 1:return Lt(o.type)&&Xs(),bt(o),null;case 3:return d=o.stateNode,Li(),Ge(jt),Ge(yt),Dc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(t===null||t.child===null)&&(ta(o)?o.flags|=4:t===null||t.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,mn!==null&&(ru(mn),mn=null))),Hc(t,o),bt(o),null;case 5:Ec(o);var h=Zr(No.current);if(a=o.type,t!==null&&o.stateNode!=null)qy(t,o,a,d,h),t.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return bt(o),null}if(t=Zr(Nn.current),ta(o)){d=o.stateNode,a=o.type;var m=o.memoizedProps;switch(d[Rn]=o,d[xo]=m,t=(o.mode&1)!==0,a){case"dialog":qe("cancel",d),qe("close",d);break;case"iframe":case"object":case"embed":qe("load",d);break;case"video":case"audio":for(h=0;h<Po.length;h++)qe(Po[h],d);break;case"source":qe("error",d);break;case"img":case"image":case"link":qe("error",d),qe("load",d);break;case"details":qe("toggle",d);break;case"input":Ie(d,m),qe("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!m.multiple},qe("invalid",d);break;case"textarea":Be(d,m),qe("invalid",d)}dr(a,m),h=null;for(var _ in m)if(m.hasOwnProperty(_)){var R=m[_];_==="children"?typeof R=="string"?d.textContent!==R&&(m.suppressHydrationWarning!==!0&&Vs(d.textContent,R,t),h=["children",R]):typeof R=="number"&&d.textContent!==""+R&&(m.suppressHydrationWarning!==!0&&Vs(d.textContent,R,t),h=["children",""+R]):s.hasOwnProperty(_)&&R!=null&&_==="onScroll"&&qe("scroll",d)}switch(a){case"input":Dt(d),Ot(d,m,!0);break;case"textarea":Dt(d),Rt(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=Ks)}d=h,o.updateQueue=d,d!==null&&(o.flags|=4)}else{_=h.nodeType===9?h:h.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=xn(a)),t==="http://www.w3.org/1999/xhtml"?a==="script"?(t=_.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof d.is=="string"?t=_.createElement(a,{is:d.is}):(t=_.createElement(a),a==="select"&&(_=t,d.multiple?_.multiple=!0:d.size&&(_.size=d.size))):t=_.createElementNS(t,a),t[Rn]=o,t[xo]=d,By(t,o,!1,!1),o.stateNode=t;e:{switch(_=pr(a,d),a){case"dialog":qe("cancel",t),qe("close",t),h=d;break;case"iframe":case"object":case"embed":qe("load",t),h=d;break;case"video":case"audio":for(h=0;h<Po.length;h++)qe(Po[h],t);h=d;break;case"source":qe("error",t),h=d;break;case"img":case"image":case"link":qe("error",t),qe("load",t),h=d;break;case"details":qe("toggle",t),h=d;break;case"input":Ie(t,d),h=cr(t,d),qe("invalid",t);break;case"option":h=d;break;case"select":t._wrapperState={wasMultiple:!!d.multiple},h=I({},d,{value:void 0}),qe("invalid",t);break;case"textarea":Be(t,d),h=Ke(t,d),qe("invalid",t);break;default:h=d}dr(a,h),R=h;for(m in R)if(R.hasOwnProperty(m)){var A=R[m];m==="style"?Gt(t,A):m==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Dn(t,A)):m==="children"?typeof A=="string"?(a!=="textarea"||A!=="")&&en(t,A):typeof A=="number"&&en(t,""+A):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?A!=null&&m==="onScroll"&&qe("scroll",t):A!=null&&N(t,m,A,_))}switch(a){case"input":Dt(t),Ot(t,d,!1);break;case"textarea":Dt(t),Rt(t);break;case"option":d.value!=null&&t.setAttribute("value",""+_e(d.value));break;case"select":t.multiple=!!d.multiple,m=d.value,m!=null?Ve(t,!!d.multiple,m,!1):d.defaultValue!=null&&Ve(t,!!d.multiple,d.defaultValue,!0);break;default:typeof h.onClick=="function"&&(t.onclick=Ks)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return bt(o),null;case 6:if(t&&o.stateNode!=null)Gy(t,o,t.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(a=Zr(No.current),Zr(Nn.current),ta(o)){if(d=o.stateNode,a=o.memoizedProps,d[Rn]=o,(m=d.nodeValue!==a)&&(t=Ht,t!==null))switch(t.tag){case 3:Vs(d.nodeValue,a,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Vs(d.nodeValue,a,(t.mode&1)!==0)}m&&(o.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Rn]=o,o.stateNode=d}return bt(o),null;case 13:if(Ge(Qe),d=o.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(We&&Vt!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Um(),Ii(),o.flags|=98560,m=!1;else if(m=ta(o),d!==null&&d.dehydrated!==null){if(t===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Rn]=o}else Ii(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;bt(o),m=!1}else mn!==null&&(ru(mn),mn=null),m=!0;if(!m)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(d=d!==null,d!==(t!==null&&t.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(t===null||(Qe.current&1)!==0?st===0&&(st=3):su())),o.updateQueue!==null&&(o.flags|=4),bt(o),null);case 4:return Li(),Hc(t,o),t===null&&To(o.stateNode.containerInfo),bt(o),null;case 10:return Sc(o.type._context),bt(o),null;case 17:return Lt(o.type)&&Xs(),bt(o),null;case 19:if(Ge(Qe),m=o.memoizedState,m===null)return bt(o),null;if(d=(o.flags&128)!==0,_=m.rendering,_===null)if(d)$o(m,!1);else{if(st!==0||t!==null&&(t.flags&128)!==0)for(t=o.child;t!==null;){if(_=la(t),_!==null){for(o.flags|=128,$o(m,!1),d=_.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=a,a=o.child;a!==null;)m=a,t=d,m.flags&=14680066,_=m.alternate,_===null?(m.childLanes=0,m.lanes=t,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=_.childLanes,m.lanes=_.lanes,m.child=_.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=_.memoizedProps,m.memoizedState=_.memoizedState,m.updateQueue=_.updateQueue,m.type=_.type,t=_.dependencies,m.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),a=a.sibling;return ze(Qe,Qe.current&1|2),o.child}t=t.sibling}m.tail!==null&&nt()>Fi&&(o.flags|=128,d=!0,$o(m,!1),o.lanes=4194304)}else{if(!d)if(t=la(_),t!==null){if(o.flags|=128,d=!0,a=t.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),$o(m,!0),m.tail===null&&m.tailMode==="hidden"&&!_.alternate&&!We)return bt(o),null}else 2*nt()-m.renderingStartTime>Fi&&a!==1073741824&&(o.flags|=128,d=!0,$o(m,!1),o.lanes=4194304);m.isBackwards?(_.sibling=o.child,o.child=_):(a=m.last,a!==null?a.sibling=_:o.child=_,m.last=_)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=nt(),o.sibling=null,a=Qe.current,ze(Qe,d?a&1|2:a&1),o):(bt(o),null);case 22:case 23:return ou(),d=o.memoizedState!==null,t!==null&&t.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(Kt&1073741824)!==0&&(bt(o),o.subtreeFlags&6&&(o.flags|=8192)):bt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function Bk(t,o){switch(hc(o),o.tag){case 1:return Lt(o.type)&&Xs(),t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 3:return Li(),Ge(jt),Ge(yt),Dc(),t=o.flags,(t&65536)!==0&&(t&128)===0?(o.flags=t&-65537|128,o):null;case 5:return Ec(o),null;case 13:if(Ge(Qe),t=o.memoizedState,t!==null&&t.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Ii()}return t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 19:return Ge(Qe),null;case 4:return Li(),null;case 10:return Sc(o.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var ma=!1,St=!1,qk=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Mi(t,o){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){Je(t,o,d)}else a.current=null}function Vc(t,o,a){try{a()}catch(d){Je(t,o,d)}}var Wy=!1;function Gk(t,o){if(oc=As,t=wm(),Yl(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var h=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var _=0,R=-1,A=-1,G=0,Y=0,Z=t,X=null;t:for(;;){for(var le;Z!==a||h!==0&&Z.nodeType!==3||(R=_+h),Z!==m||d!==0&&Z.nodeType!==3||(A=_+d),Z.nodeType===3&&(_+=Z.nodeValue.length),(le=Z.firstChild)!==null;)X=Z,Z=le;for(;;){if(Z===t)break t;if(X===a&&++G===h&&(R=_),X===m&&++Y===d&&(A=_),(le=Z.nextSibling)!==null)break;Z=X,X=Z.parentNode}Z=le}a=R===-1||A===-1?null:{start:R,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(sc={focusedElem:t,selectionRange:a},As=!1,ce=o;ce!==null;)if(o=ce,t=o.child,(o.subtreeFlags&1028)!==0&&t!==null)t.return=o,ce=t;else for(;ce!==null;){o=ce;try{var de=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var fe=de.memoizedProps,rt=de.memoizedState,B=o.stateNode,$=B.getSnapshotBeforeUpdate(o.elementType===o.type?fe:yn(o.type,fe),rt);B.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var q=o.stateNode.containerInfo;q.nodeType===1?q.textContent="":q.nodeType===9&&q.documentElement&&q.removeChild(q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(re){Je(o,o.return,re)}if(t=o.sibling,t!==null){t.return=o.return,ce=t;break}ce=o.return}return de=Wy,Wy=!1,de}function Fo(t,o,a){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var h=d=d.next;do{if((h.tag&t)===t){var m=h.destroy;h.destroy=void 0,m!==void 0&&Vc(o,a,m)}h=h.next}while(h!==d)}}function ya(t,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&t)===t){var d=a.create;a.destroy=d()}a=a.next}while(a!==o)}}function Kc(t){var o=t.ref;if(o!==null){var a=t.stateNode;t.tag,t=a,typeof o=="function"?o(t):o.current=t}}function Uy(t){var o=t.alternate;o!==null&&(t.alternate=null,Uy(o)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(o=t.stateNode,o!==null&&(delete o[Rn],delete o[xo],delete o[uc],delete o[Pk],delete o[Tk])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Hy(t){return t.tag===5||t.tag===3||t.tag===4}function Vy(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Hy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Qc(t,o,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(t,o):a.insertBefore(t,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(t,a)):(o=a,o.appendChild(t)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=Ks));else if(d!==4&&(t=t.child,t!==null))for(Qc(t,o,a),t=t.sibling;t!==null;)Qc(t,o,a),t=t.sibling}function Xc(t,o,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,o?a.insertBefore(t,o):a.appendChild(t);else if(d!==4&&(t=t.child,t!==null))for(Xc(t,o,a),t=t.sibling;t!==null;)Xc(t,o,a),t=t.sibling}var ht=null,vn=!1;function Pr(t,o,a){for(a=a.child;a!==null;)Ky(t,o,a),a=a.sibling}function Ky(t,o,a){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Os,a)}catch{}switch(a.tag){case 5:St||Mi(a,o);case 6:var d=ht,h=vn;ht=null,Pr(t,o,a),ht=d,vn=h,ht!==null&&(vn?(t=ht,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):ht.removeChild(a.stateNode));break;case 18:ht!==null&&(vn?(t=ht,a=a.stateNode,t.nodeType===8?cc(t.parentNode,a):t.nodeType===1&&cc(t,a),yo(t)):cc(ht,a.stateNode));break;case 4:d=ht,h=vn,ht=a.stateNode.containerInfo,vn=!0,Pr(t,o,a),ht=d,vn=h;break;case 0:case 11:case 14:case 15:if(!St&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){h=d=d.next;do{var m=h,_=m.destroy;m=m.tag,_!==void 0&&((m&2)!==0||(m&4)!==0)&&Vc(a,o,_),h=h.next}while(h!==d)}Pr(t,o,a);break;case 1:if(!St&&(Mi(a,o),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(R){Je(a,o,R)}Pr(t,o,a);break;case 21:Pr(t,o,a);break;case 22:a.mode&1?(St=(d=St)||a.memoizedState!==null,Pr(t,o,a),St=d):Pr(t,o,a);break;default:Pr(t,o,a)}}function Qy(t){var o=t.updateQueue;if(o!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new qk),o.forEach(function(d){var h=Zk.bind(null,t,d);a.has(d)||(a.add(d),d.then(h,h))})}}function bn(t,o){var a=o.deletions;if(a!==null)for(var d=0;d<a.length;d++){var h=a[d];try{var m=t,_=o,R=_;e:for(;R!==null;){switch(R.tag){case 5:ht=R.stateNode,vn=!1;break e;case 3:ht=R.stateNode.containerInfo,vn=!0;break e;case 4:ht=R.stateNode.containerInfo,vn=!0;break e}R=R.return}if(ht===null)throw Error(n(160));Ky(m,_,h),ht=null,vn=!1;var A=h.alternate;A!==null&&(A.return=null),h.return=null}catch(G){Je(h,o,G)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Xy(o,t),o=o.sibling}function Xy(t,o){var a=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(bn(o,t),Ln(t),d&4){try{Fo(3,t,t.return),ya(3,t)}catch(fe){Je(t,t.return,fe)}try{Fo(5,t,t.return)}catch(fe){Je(t,t.return,fe)}}break;case 1:bn(o,t),Ln(t),d&512&&a!==null&&Mi(a,a.return);break;case 5:if(bn(o,t),Ln(t),d&512&&a!==null&&Mi(a,a.return),t.flags&32){var h=t.stateNode;try{en(h,"")}catch(fe){Je(t,t.return,fe)}}if(d&4&&(h=t.stateNode,h!=null)){var m=t.memoizedProps,_=a!==null?a.memoizedProps:m,R=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{R==="input"&&m.type==="radio"&&m.name!=null&&pn(h,m),pr(R,_);var G=pr(R,m);for(_=0;_<A.length;_+=2){var Y=A[_],Z=A[_+1];Y==="style"?Gt(h,Z):Y==="dangerouslySetInnerHTML"?Dn(h,Z):Y==="children"?en(h,Z):N(h,Y,Z,G)}switch(R){case"input":De(h,m);break;case"textarea":It(h,m);break;case"select":var X=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!m.multiple;var le=m.value;le!=null?Ve(h,!!m.multiple,le,!1):X!==!!m.multiple&&(m.defaultValue!=null?Ve(h,!!m.multiple,m.defaultValue,!0):Ve(h,!!m.multiple,m.multiple?[]:"",!1))}h[xo]=m}catch(fe){Je(t,t.return,fe)}}break;case 6:if(bn(o,t),Ln(t),d&4){if(t.stateNode===null)throw Error(n(162));h=t.stateNode,m=t.memoizedProps;try{h.nodeValue=m}catch(fe){Je(t,t.return,fe)}}break;case 3:if(bn(o,t),Ln(t),d&4&&a!==null&&a.memoizedState.isDehydrated)try{yo(o.containerInfo)}catch(fe){Je(t,t.return,fe)}break;case 4:bn(o,t),Ln(t);break;case 13:bn(o,t),Ln(t),h=t.child,h.flags&8192&&(m=h.memoizedState!==null,h.stateNode.isHidden=m,!m||h.alternate!==null&&h.alternate.memoizedState!==null||(Jc=nt())),d&4&&Qy(t);break;case 22:if(Y=a!==null&&a.memoizedState!==null,t.mode&1?(St=(G=St)||Y,bn(o,t),St=G):bn(o,t),Ln(t),d&8192){if(G=t.memoizedState!==null,(t.stateNode.isHidden=G)&&!Y&&(t.mode&1)!==0)for(ce=t,Y=t.child;Y!==null;){for(Z=ce=Y;ce!==null;){switch(X=ce,le=X.child,X.tag){case 0:case 11:case 14:case 15:Fo(4,X,X.return);break;case 1:Mi(X,X.return);var de=X.stateNode;if(typeof de.componentWillUnmount=="function"){d=X,a=X.return;try{o=d,de.props=o.memoizedProps,de.state=o.memoizedState,de.componentWillUnmount()}catch(fe){Je(d,a,fe)}}break;case 5:Mi(X,X.return);break;case 22:if(X.memoizedState!==null){Jy(Z);continue}}le!==null?(le.return=X,ce=le):Jy(Z)}Y=Y.sibling}e:for(Y=null,Z=t;;){if(Z.tag===5){if(Y===null){Y=Z;try{h=Z.stateNode,G?(m=h.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(R=Z.stateNode,A=Z.memoizedProps.style,_=A!=null&&A.hasOwnProperty("display")?A.display:null,R.style.display=kt("display",_))}catch(fe){Je(t,t.return,fe)}}}else if(Z.tag===6){if(Y===null)try{Z.stateNode.nodeValue=G?"":Z.memoizedProps}catch(fe){Je(t,t.return,fe)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===t)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===t)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===t)break e;Y===Z&&(Y=null),Z=Z.return}Y===Z&&(Y=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:bn(o,t),Ln(t),d&4&&Qy(t);break;case 21:break;default:bn(o,t),Ln(t)}}function Ln(t){var o=t.flags;if(o&2){try{e:{for(var a=t.return;a!==null;){if(Hy(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var h=d.stateNode;d.flags&32&&(en(h,""),d.flags&=-33);var m=Vy(t);Xc(t,m,h);break;case 3:case 4:var _=d.stateNode.containerInfo,R=Vy(t);Qc(t,R,_);break;default:throw Error(n(161))}}catch(A){Je(t,t.return,A)}t.flags&=-3}o&4096&&(t.flags&=-4097)}function Wk(t,o,a){ce=t,Yy(t)}function Yy(t,o,a){for(var d=(t.mode&1)!==0;ce!==null;){var h=ce,m=h.child;if(h.tag===22&&d){var _=h.memoizedState!==null||ma;if(!_){var R=h.alternate,A=R!==null&&R.memoizedState!==null||St;R=ma;var G=St;if(ma=_,(St=A)&&!G)for(ce=h;ce!==null;)_=ce,A=_.child,_.tag===22&&_.memoizedState!==null?ev(h):A!==null?(A.return=_,ce=A):ev(h);for(;m!==null;)ce=m,Yy(m),m=m.sibling;ce=h,ma=R,St=G}Zy(t)}else(h.subtreeFlags&8772)!==0&&m!==null?(m.return=h,ce=m):Zy(t)}}function Zy(t){for(;ce!==null;){var o=ce;if((o.flags&8772)!==0){var a=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:St||ya(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!St)if(a===null)d.componentDidMount();else{var h=o.elementType===o.type?a.memoizedProps:yn(o.type,a.memoizedProps);d.componentDidUpdate(h,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&Qm(o,m,d);break;case 3:var _=o.updateQueue;if(_!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}Qm(o,_,a)}break;case 5:var R=o.stateNode;if(a===null&&o.flags&4){a=R;var A=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&a.focus();break;case"img":A.src&&(a.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var G=o.alternate;if(G!==null){var Y=G.memoizedState;if(Y!==null){var Z=Y.dehydrated;Z!==null&&yo(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}St||o.flags&512&&Kc(o)}catch(X){Je(o,o.return,X)}}if(o===t){ce=null;break}if(a=o.sibling,a!==null){a.return=o.return,ce=a;break}ce=o.return}}function Jy(t){for(;ce!==null;){var o=ce;if(o===t){ce=null;break}var a=o.sibling;if(a!==null){a.return=o.return,ce=a;break}ce=o.return}}function ev(t){for(;ce!==null;){var o=ce;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{ya(4,o)}catch(A){Je(o,a,A)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var h=o.return;try{d.componentDidMount()}catch(A){Je(o,h,A)}}var m=o.return;try{Kc(o)}catch(A){Je(o,m,A)}break;case 5:var _=o.return;try{Kc(o)}catch(A){Je(o,_,A)}}}catch(A){Je(o,o.return,A)}if(o===t){ce=null;break}var R=o.sibling;if(R!==null){R.return=o.return,ce=R;break}ce=o.return}}var Uk=Math.ceil,va=M.ReactCurrentDispatcher,Yc=M.ReactCurrentOwner,sn=M.ReactCurrentBatchConfig,Re=0,dt=null,it=null,gt=0,Kt=0,$i=Sr(0),st=0,zo=null,ei=0,ba=0,Zc=0,Bo=null,Mt=null,Jc=0,Fi=1/0,Yn=null,Sa=!1,eu=null,Tr=null,wa=!1,Er=null,Ca=0,qo=0,tu=null,_a=-1,ka=0;function Tt(){return(Re&6)!==0?nt():_a!==-1?_a:_a=nt()}function xr(t){return(t.mode&1)===0?1:(Re&2)!==0&>!==0?gt&-gt:xk.transition!==null?(ka===0&&(ka=Hg()),ka):(t=$e,t!==0||(t=window.event,t=t===void 0?16:tm(t.type)),t)}function Sn(t,o,a,d){if(50<qo)throw qo=0,tu=null,Error(n(185));po(t,a,d),((Re&2)===0||t!==dt)&&(t===dt&&((Re&2)===0&&(ba|=a),st===4&&Dr(t,gt)),$t(t,d),a===1&&Re===0&&(o.mode&1)===0&&(Fi=nt()+500,Zs&&Cr()))}function $t(t,o){var a=t.callbackNode;x_(t,o);var d=Ns(t,t===dt?gt:0);if(d===0)a!==null&&Gg(a),t.callbackNode=null,t.callbackPriority=0;else if(o=d&-d,t.callbackPriority!==o){if(a!=null&&Gg(a),o===1)t.tag===0?Ek(nv.bind(null,t)):zm(nv.bind(null,t)),_k(function(){(Re&6)===0&&Cr()}),a=null;else{switch(Vg(d)){case 1:a=jl;break;case 4:a=Wg;break;case 16:a=Ds;break;case 536870912:a=Ug;break;default:a=Ds}a=uv(a,tv.bind(null,t))}t.callbackPriority=o,t.callbackNode=a}}function tv(t,o){if(_a=-1,ka=0,(Re&6)!==0)throw Error(n(327));var a=t.callbackNode;if(zi()&&t.callbackNode!==a)return null;var d=Ns(t,t===dt?gt:0);if(d===0)return null;if((d&30)!==0||(d&t.expiredLanes)!==0||o)o=Pa(t,d);else{o=d;var h=Re;Re|=2;var m=iv();(dt!==t||gt!==o)&&(Yn=null,Fi=nt()+500,ni(t,o));do try{Kk();break}catch(R){rv(t,R)}while(!0);bc(),va.current=m,Re=h,it!==null?o=0:(dt=null,gt=0,o=st)}if(o!==0){if(o===2&&(h=Ll(t),h!==0&&(d=h,o=nu(t,h))),o===1)throw a=zo,ni(t,0),Dr(t,d),$t(t,nt()),a;if(o===6)Dr(t,d);else{if(h=t.current.alternate,(d&30)===0&&!Hk(h)&&(o=Pa(t,d),o===2&&(m=Ll(t),m!==0&&(d=m,o=nu(t,m))),o===1))throw a=zo,ni(t,0),Dr(t,d),$t(t,nt()),a;switch(t.finishedWork=h,t.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:ri(t,Mt,Yn);break;case 3:if(Dr(t,d),(d&130023424)===d&&(o=Jc+500-nt(),10<o)){if(Ns(t,0)!==0)break;if(h=t.suspendedLanes,(h&d)!==d){Tt(),t.pingedLanes|=t.suspendedLanes&h;break}t.timeoutHandle=lc(ri.bind(null,t,Mt,Yn),o);break}ri(t,Mt,Yn);break;case 4:if(Dr(t,d),(d&4194240)===d)break;for(o=t.eventTimes,h=-1;0<d;){var _=31-hn(d);m=1<<_,_=o[_],_>h&&(h=_),d&=~m}if(d=h,d=nt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*Uk(d/1960))-d,10<d){t.timeoutHandle=lc(ri.bind(null,t,Mt,Yn),d);break}ri(t,Mt,Yn);break;case 5:ri(t,Mt,Yn);break;default:throw Error(n(329))}}}return $t(t,nt()),t.callbackNode===a?tv.bind(null,t):null}function nu(t,o){var a=Bo;return t.current.memoizedState.isDehydrated&&(ni(t,o).flags|=256),t=Pa(t,o),t!==2&&(o=Mt,Mt=a,o!==null&&ru(o)),t}function ru(t){Mt===null?Mt=t:Mt.push.apply(Mt,t)}function Hk(t){for(var o=t;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var h=a[d],m=h.getSnapshot;h=h.value;try{if(!gn(m(),h))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Dr(t,o){for(o&=~Zc,o&=~ba,t.suspendedLanes|=o,t.pingedLanes&=~o,t=t.expirationTimes;0<o;){var a=31-hn(o),d=1<<a;t[a]=-1,o&=~d}}function nv(t){if((Re&6)!==0)throw Error(n(327));zi();var o=Ns(t,0);if((o&1)===0)return $t(t,nt()),null;var a=Pa(t,o);if(t.tag!==0&&a===2){var d=Ll(t);d!==0&&(o=d,a=nu(t,d))}if(a===1)throw a=zo,ni(t,0),Dr(t,o),$t(t,nt()),a;if(a===6)throw Error(n(345));return t.finishedWork=t.current.alternate,t.finishedLanes=o,ri(t,Mt,Yn),$t(t,nt()),null}function iu(t,o){var a=Re;Re|=1;try{return t(o)}finally{Re=a,Re===0&&(Fi=nt()+500,Zs&&Cr())}}function ti(t){Er!==null&&Er.tag===0&&(Re&6)===0&&zi();var o=Re;Re|=1;var a=sn.transition,d=$e;try{if(sn.transition=null,$e=1,t)return t()}finally{$e=d,sn.transition=a,Re=o,(Re&6)===0&&Cr()}}function ou(){Kt=$i.current,Ge($i)}function ni(t,o){t.finishedWork=null,t.finishedLanes=0;var a=t.timeoutHandle;if(a!==-1&&(t.timeoutHandle=-1,Ck(a)),it!==null)for(a=it.return;a!==null;){var d=a;switch(hc(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Xs();break;case 3:Li(),Ge(jt),Ge(yt),Dc();break;case 5:Ec(d);break;case 4:Li();break;case 13:Ge(Qe);break;case 19:Ge(Qe);break;case 10:Sc(d.type._context);break;case 22:case 23:ou()}a=a.return}if(dt=t,it=t=Or(t.current,null),gt=Kt=o,st=0,zo=null,Zc=ba=ei=0,Mt=Bo=null,Yr!==null){for(o=0;o<Yr.length;o++)if(a=Yr[o],d=a.interleaved,d!==null){a.interleaved=null;var h=d.next,m=a.pending;if(m!==null){var _=m.next;m.next=h,d.next=_}a.pending=d}Yr=null}return t}function rv(t,o){do{var a=it;try{if(bc(),ca.current=fa,ua){for(var d=Xe.memoizedState;d!==null;){var h=d.queue;h!==null&&(h.pending=null),d=d.next}ua=!1}if(Jr=0,ut=ot=Xe=null,jo=!1,Lo=0,Yc.current=null,a===null||a.return===null){st=1,zo=o,it=null;break}e:{var m=t,_=a.return,R=a,A=o;if(o=gt,R.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=A,Y=R,Z=Y.tag;if((Y.mode&1)===0&&(Z===0||Z===11||Z===15)){var X=Y.alternate;X?(Y.updateQueue=X.updateQueue,Y.memoizedState=X.memoizedState,Y.lanes=X.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var le=xy(_);if(le!==null){le.flags&=-257,Dy(le,_,R,m,o),le.mode&1&&Ey(m,G,o),o=le,A=G;var de=o.updateQueue;if(de===null){var fe=new Set;fe.add(A),o.updateQueue=fe}else de.add(A);break e}else{if((o&1)===0){Ey(m,G,o),su();break e}A=Error(n(426))}}else if(We&&R.mode&1){var rt=xy(_);if(rt!==null){(rt.flags&65536)===0&&(rt.flags|=256),Dy(rt,_,R,m,o),yc(Ai(A,R));break e}}m=A=Ai(A,R),st!==4&&(st=2),Bo===null?Bo=[m]:Bo.push(m),m=_;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var B=Py(m,A,o);Km(m,B);break e;case 1:R=A;var $=m.type,q=m.stateNode;if((m.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(Tr===null||!Tr.has(q)))){m.flags|=65536,o&=-o,m.lanes|=o;var re=Ty(m,R,o);Km(m,re);break e}}m=m.return}while(m!==null)}sv(a)}catch(ge){o=ge,it===a&&a!==null&&(it=a=a.return);continue}break}while(!0)}function iv(){var t=va.current;return va.current=fa,t===null?fa:t}function su(){(st===0||st===3||st===2)&&(st=4),dt===null||(ei&268435455)===0&&(ba&268435455)===0||Dr(dt,gt)}function Pa(t,o){var a=Re;Re|=2;var d=iv();(dt!==t||gt!==o)&&(Yn=null,ni(t,o));do try{Vk();break}catch(h){rv(t,h)}while(!0);if(bc(),Re=a,va.current=d,it!==null)throw Error(n(261));return dt=null,gt=0,st}function Vk(){for(;it!==null;)ov(it)}function Kk(){for(;it!==null&&!b_();)ov(it)}function ov(t){var o=cv(t.alternate,t,Kt);t.memoizedProps=t.pendingProps,o===null?sv(t):it=o,Yc.current=null}function sv(t){var o=t;do{var a=o.alternate;if(t=o.return,(o.flags&32768)===0){if(a=zk(a,o,Kt),a!==null){it=a;return}}else{if(a=Bk(a,o),a!==null){a.flags&=32767,it=a;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{st=6,it=null;return}}if(o=o.sibling,o!==null){it=o;return}it=o=t}while(o!==null);st===0&&(st=5)}function ri(t,o,a){var d=$e,h=sn.transition;try{sn.transition=null,$e=1,Qk(t,o,a,d)}finally{sn.transition=h,$e=d}return null}function Qk(t,o,a,d){do zi();while(Er!==null);if((Re&6)!==0)throw Error(n(327));a=t.finishedWork;var h=t.finishedLanes;if(a===null)return null;if(t.finishedWork=null,t.finishedLanes=0,a===t.current)throw Error(n(177));t.callbackNode=null,t.callbackPriority=0;var m=a.lanes|a.childLanes;if(D_(t,m),t===dt&&(it=dt=null,gt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||wa||(wa=!0,uv(Ds,function(){return zi(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=sn.transition,sn.transition=null;var _=$e;$e=1;var R=Re;Re|=4,Yc.current=null,Gk(t,a),Xy(a,t),gk(sc),As=!!oc,sc=oc=null,t.current=a,Wk(a),S_(),Re=R,$e=_,sn.transition=m}else t.current=a;if(wa&&(wa=!1,Er=t,Ca=h),m=t.pendingLanes,m===0&&(Tr=null),__(a.stateNode),$t(t,nt()),o!==null)for(d=t.onRecoverableError,a=0;a<o.length;a++)h=o[a],d(h.value,{componentStack:h.stack,digest:h.digest});if(Sa)throw Sa=!1,t=eu,eu=null,t;return(Ca&1)!==0&&t.tag!==0&&zi(),m=t.pendingLanes,(m&1)!==0?t===tu?qo++:(qo=0,tu=t):qo=0,Cr(),null}function zi(){if(Er!==null){var t=Vg(Ca),o=sn.transition,a=$e;try{if(sn.transition=null,$e=16>t?16:t,Er===null)var d=!1;else{if(t=Er,Er=null,Ca=0,(Re&6)!==0)throw Error(n(331));var h=Re;for(Re|=4,ce=t.current;ce!==null;){var m=ce,_=m.child;if((ce.flags&16)!==0){var R=m.deletions;if(R!==null){for(var A=0;A<R.length;A++){var G=R[A];for(ce=G;ce!==null;){var Y=ce;switch(Y.tag){case 0:case 11:case 15:Fo(8,Y,m)}var Z=Y.child;if(Z!==null)Z.return=Y,ce=Z;else for(;ce!==null;){Y=ce;var X=Y.sibling,le=Y.return;if(Uy(Y),Y===G){ce=null;break}if(X!==null){X.return=le,ce=X;break}ce=le}}}var de=m.alternate;if(de!==null){var fe=de.child;if(fe!==null){de.child=null;do{var rt=fe.sibling;fe.sibling=null,fe=rt}while(fe!==null)}}ce=m}}if((m.subtreeFlags&2064)!==0&&_!==null)_.return=m,ce=_;else e:for(;ce!==null;){if(m=ce,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Fo(9,m,m.return)}var B=m.sibling;if(B!==null){B.return=m.return,ce=B;break e}ce=m.return}}var $=t.current;for(ce=$;ce!==null;){_=ce;var q=_.child;if((_.subtreeFlags&2064)!==0&&q!==null)q.return=_,ce=q;else e:for(_=$;ce!==null;){if(R=ce,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:ya(9,R)}}catch(ge){Je(R,R.return,ge)}if(R===_){ce=null;break e}var re=R.sibling;if(re!==null){re.return=R.return,ce=re;break e}ce=R.return}}if(Re=h,Cr(),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Os,t)}catch{}d=!0}return d}finally{$e=a,sn.transition=o}}return!1}function av(t,o,a){o=Ai(a,o),o=Py(t,o,1),t=kr(t,o,1),o=Tt(),t!==null&&(po(t,1,o),$t(t,o))}function Je(t,o,a){if(t.tag===3)av(t,t,a);else for(;o!==null;){if(o.tag===3){av(o,t,a);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Tr===null||!Tr.has(d))){t=Ai(a,t),t=Ty(o,t,1),o=kr(o,t,1),t=Tt(),o!==null&&(po(o,1,t),$t(o,t));break}}o=o.return}}function Xk(t,o,a){var d=t.pingCache;d!==null&&d.delete(o),o=Tt(),t.pingedLanes|=t.suspendedLanes&a,dt===t&&(gt&a)===a&&(st===4||st===3&&(gt&130023424)===gt&&500>nt()-Jc?ni(t,0):Zc|=a),$t(t,o)}function lv(t,o){o===0&&((t.mode&1)===0?o=1:(o=Rs,Rs<<=1,(Rs&130023424)===0&&(Rs=4194304)));var a=Tt();t=Kn(t,o),t!==null&&(po(t,o,a),$t(t,a))}function Yk(t){var o=t.memoizedState,a=0;o!==null&&(a=o.retryLane),lv(t,a)}function Zk(t,o){var a=0;switch(t.tag){case 13:var d=t.stateNode,h=t.memoizedState;h!==null&&(a=h.retryLane);break;case 19:d=t.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),lv(t,a)}var cv;cv=function(t,o,a){if(t!==null)if(t.memoizedProps!==o.pendingProps||jt.current)At=!0;else{if((t.lanes&a)===0&&(o.flags&128)===0)return At=!1,Fk(t,o,a);At=(t.flags&131072)!==0}else At=!1,We&&(o.flags&1048576)!==0&&Bm(o,ea,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;ga(t,o),t=o.pendingProps;var h=xi(o,yt.current);Ni(o,a),h=Rc(null,o,d,t,h,a);var m=Nc();return o.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Lt(d)?(m=!0,Ys(o)):m=!1,o.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,_c(o),h.updater=sa,o.stateNode=h,h._reactInternals=o,Pc(o,d,t,a),o=Bc(null,o,d,!0,m,a)):(o.tag=0,We&&m&&fc(o),Pt(null,o,h,a),o=o.child),o;case 16:d=o.elementType;e:{switch(ga(t,o),t=o.pendingProps,h=d._init,d=h(d._payload),o.type=d,h=o.tag=eP(d),t=yn(d,t),h){case 0:o=zc(null,o,d,t,a);break e;case 1:o=Ly(null,o,d,t,a);break e;case 11:o=Oy(null,o,d,t,a);break e;case 14:o=Iy(null,o,d,yn(d.type,t),a);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:yn(d,h),zc(t,o,d,h,a);case 1:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:yn(d,h),Ly(t,o,d,h,a);case 3:e:{if(Ay(o),t===null)throw Error(n(387));d=o.pendingProps,m=o.memoizedState,h=m.element,Vm(t,o),oa(o,d,null,a);var _=o.memoizedState;if(d=_.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){h=Ai(Error(n(423)),o),o=My(t,o,d,a,h);break e}else if(d!==h){h=Ai(Error(n(424)),o),o=My(t,o,d,a,h);break e}else for(Vt=br(o.stateNode.containerInfo.firstChild),Ht=o,We=!0,mn=null,a=ny(o,null,d,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ii(),d===h){o=Xn(t,o,a);break e}Pt(t,o,d,a)}o=o.child}return o;case 5:return ry(o),t===null&&mc(o),d=o.type,h=o.pendingProps,m=t!==null?t.memoizedProps:null,_=h.children,ac(d,h)?_=null:m!==null&&ac(d,m)&&(o.flags|=32),jy(t,o),Pt(t,o,_,a),o.child;case 6:return t===null&&mc(o),null;case 13:return $y(t,o,a);case 4:return Tc(o,o.stateNode.containerInfo),d=o.pendingProps,t===null?o.child=ji(o,null,d,a):Pt(t,o,d,a),o.child;case 11:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:yn(d,h),Oy(t,o,d,h,a);case 7:return Pt(t,o,o.pendingProps,a),o.child;case 8:return Pt(t,o,o.pendingProps.children,a),o.child;case 12:return Pt(t,o,o.pendingProps.children,a),o.child;case 10:e:{if(d=o.type._context,h=o.pendingProps,m=o.memoizedProps,_=h.value,ze(na,d._currentValue),d._currentValue=_,m!==null)if(gn(m.value,_)){if(m.children===h.children&&!jt.current){o=Xn(t,o,a);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var R=m.dependencies;if(R!==null){_=m.child;for(var A=R.firstContext;A!==null;){if(A.context===d){if(m.tag===1){A=Qn(-1,a&-a),A.tag=2;var G=m.updateQueue;if(G!==null){G=G.shared;var Y=G.pending;Y===null?A.next=A:(A.next=Y.next,Y.next=A),G.pending=A}}m.lanes|=a,A=m.alternate,A!==null&&(A.lanes|=a),wc(m.return,a,o),R.lanes|=a;break}A=A.next}}else if(m.tag===10)_=m.type===o.type?null:m.child;else if(m.tag===18){if(_=m.return,_===null)throw Error(n(341));_.lanes|=a,R=_.alternate,R!==null&&(R.lanes|=a),wc(_,a,o),_=m.sibling}else _=m.child;if(_!==null)_.return=m;else for(_=m;_!==null;){if(_===o){_=null;break}if(m=_.sibling,m!==null){m.return=_.return,_=m;break}_=_.return}m=_}Pt(t,o,h.children,a),o=o.child}return o;case 9:return h=o.type,d=o.pendingProps.children,Ni(o,a),h=rn(h),d=d(h),o.flags|=1,Pt(t,o,d,a),o.child;case 14:return d=o.type,h=yn(d,o.pendingProps),h=yn(d.type,h),Iy(t,o,d,h,a);case 15:return Ry(t,o,o.type,o.pendingProps,a);case 17:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:yn(d,h),ga(t,o),o.tag=1,Lt(d)?(t=!0,Ys(o)):t=!1,Ni(o,a),Zm(o,d,h),Pc(o,d,h,a),Bc(null,o,d,!0,t,a);case 19:return zy(t,o,a);case 22:return Ny(t,o,a)}throw Error(n(156,o.tag))};function uv(t,o){return qg(t,o)}function Jk(t,o,a,d){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(t,o,a,d){return new Jk(t,o,a,d)}function au(t){return t=t.prototype,!(!t||!t.isReactComponent)}function eP(t){if(typeof t=="function")return au(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ie)return 11;if(t===J)return 14}return 2}function Or(t,o){var a=t.alternate;return a===null?(a=an(t.tag,o,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=o,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,o=t.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Ta(t,o,a,d,h,m){var _=2;if(d=t,typeof t=="function")au(t)&&(_=1);else if(typeof t=="string")_=5;else e:switch(t){case j:return ii(a.children,h,m,o);case F:_=8,h|=8;break;case U:return t=an(12,a,o,h|2),t.elementType=U,t.lanes=m,t;case ne:return t=an(13,a,o,h),t.elementType=ne,t.lanes=m,t;case ae:return t=an(19,a,o,h),t.elementType=ae,t.lanes=m,t;case pe:return Ea(a,h,m,o);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:_=10;break e;case K:_=9;break e;case ie:_=11;break e;case J:_=14;break e;case ue:_=16,d=null;break e}throw Error(n(130,t==null?t:typeof t,""))}return o=an(_,a,o,h),o.elementType=t,o.type=d,o.lanes=m,o}function ii(t,o,a,d){return t=an(7,t,d,o),t.lanes=a,t}function Ea(t,o,a,d){return t=an(22,t,d,o),t.elementType=pe,t.lanes=a,t.stateNode={isHidden:!1},t}function lu(t,o,a){return t=an(6,t,null,o),t.lanes=a,t}function cu(t,o,a){return o=an(4,t.children!==null?t.children:[],t.key,o),o.lanes=a,o.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},o}function tP(t,o,a,d,h){this.tag=o,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Al(0),this.expirationTimes=Al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.identifierPrefix=d,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function uu(t,o,a,d,h,m,_,R,A){return t=new tP(t,o,a,R,A),o===1?(o=1,m===!0&&(o|=8)):o=0,m=an(3,null,null,o),t.current=m,m.stateNode=t,m.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},_c(m),t}function nP(t,o,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:d==null?null:""+d,children:t,containerInfo:o,implementation:a}}function dv(t){if(!t)return wr;t=t._reactInternals;e:{if(Hr(t)!==t||t.tag!==1)throw Error(n(170));var o=t;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Lt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(t.tag===1){var a=t.type;if(Lt(a))return $m(t,a,o)}return o}function pv(t,o,a,d,h,m,_,R,A){return t=uu(a,d,!0,t,h,m,_,R,A),t.context=dv(null),a=t.current,d=Tt(),h=xr(a),m=Qn(d,h),m.callback=o??null,kr(a,m,h),t.current.lanes=h,po(t,h,d),$t(t,d),t}function xa(t,o,a,d){var h=o.current,m=Tt(),_=xr(h);return a=dv(a),o.context===null?o.context=a:o.pendingContext=a,o=Qn(m,_),o.payload={element:t},d=d===void 0?null:d,d!==null&&(o.callback=d),t=kr(h,o,_),t!==null&&(Sn(t,h,_,m),ia(t,h,_)),_}function Da(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function fv(t,o){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<o?a:o}}function du(t,o){fv(t,o),(t=t.alternate)&&fv(t,o)}function rP(){return null}var hv=typeof reportError=="function"?reportError:function(t){console.error(t)};function pu(t){this._internalRoot=t}Oa.prototype.render=pu.prototype.render=function(t){var o=this._internalRoot;if(o===null)throw Error(n(409));xa(t,o,null,null)},Oa.prototype.unmount=pu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var o=t.containerInfo;ti(function(){xa(null,t,null,null)}),o[Wn]=null}};function Oa(t){this._internalRoot=t}Oa.prototype.unstable_scheduleHydration=function(t){if(t){var o=Xg();t={blockedOn:null,target:t,priority:o};for(var a=0;a<mr.length&&o!==0&&o<mr[a].priority;a++);mr.splice(a,0,t),a===0&&Jg(t)}};function fu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ia(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function gv(){}function iP(t,o,a,d,h){if(h){if(typeof d=="function"){var m=d;d=function(){var G=Da(_);m.call(G)}}var _=pv(o,d,t,0,null,!1,!1,"",gv);return t._reactRootContainer=_,t[Wn]=_.current,To(t.nodeType===8?t.parentNode:t),ti(),_}for(;h=t.lastChild;)t.removeChild(h);if(typeof d=="function"){var R=d;d=function(){var G=Da(A);R.call(G)}}var A=uu(t,0,!1,null,null,!1,!1,"",gv);return t._reactRootContainer=A,t[Wn]=A.current,To(t.nodeType===8?t.parentNode:t),ti(function(){xa(o,A,a,d)}),A}function Ra(t,o,a,d,h){var m=a._reactRootContainer;if(m){var _=m;if(typeof h=="function"){var R=h;h=function(){var A=Da(_);R.call(A)}}xa(o,_,t,h)}else _=iP(a,o,t,h,d);return Da(_)}Kg=function(t){switch(t.tag){case 3:var o=t.stateNode;if(o.current.memoizedState.isDehydrated){var a=uo(o.pendingLanes);a!==0&&(Ml(o,a|1),$t(o,nt()),(Re&6)===0&&(Fi=nt()+500,Cr()))}break;case 13:ti(function(){var d=Kn(t,1);if(d!==null){var h=Tt();Sn(d,t,1,h)}}),du(t,1)}},$l=function(t){if(t.tag===13){var o=Kn(t,134217728);if(o!==null){var a=Tt();Sn(o,t,134217728,a)}du(t,134217728)}},Qg=function(t){if(t.tag===13){var o=xr(t),a=Kn(t,o);if(a!==null){var d=Tt();Sn(a,t,o,d)}du(t,o)}},Xg=function(){return $e},Yg=function(t,o){var a=$e;try{return $e=t,o()}finally{$e=a}},Gr=function(t,o,a){switch(o){case"input":if(De(t,a),o=a.name,a.type==="radio"&&o!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var d=a[o];if(d!==t&&d.form===t.form){var h=Qs(d);if(!h)throw Error(n(90));lr(d),De(d,h)}}}break;case"textarea":It(t,a);break;case"select":o=a.value,o!=null&&Ve(t,!!a.multiple,o,!1)}},oo=iu,so=ti;var oP={usingClientEntryPoint:!1,Events:[Do,Ti,Qs,Gn,Ur,iu]},Go={findFiberByHostInstance:Vr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},sP={bundleType:Go.bundleType,version:Go.version,rendererPackageName:Go.rendererPackageName,rendererConfig:Go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=zg(t),t===null?null:t.stateNode},findFiberByHostInstance:Go.findFiberByHostInstance||rP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Na.isDisabled&&Na.supportsFiber)try{Os=Na.inject(sP),In=Na}catch{}}return Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oP,Ft.createPortal=function(t,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(o))throw Error(n(200));return nP(t,o,null,a)},Ft.createRoot=function(t,o){if(!fu(t))throw Error(n(299));var a=!1,d="",h=hv;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(h=o.onRecoverableError)),o=uu(t,1,!1,null,null,a,!1,d,h),t[Wn]=o.current,To(t.nodeType===8?t.parentNode:t),new pu(o)},Ft.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var o=t._reactInternals;if(o===void 0)throw typeof t.render=="function"?Error(n(188)):(t=Object.keys(t).join(","),Error(n(268,t)));return t=zg(o),t=t===null?null:t.stateNode,t},Ft.flushSync=function(t){return ti(t)},Ft.hydrate=function(t,o,a){if(!Ia(o))throw Error(n(200));return Ra(null,t,o,!0,a)},Ft.hydrateRoot=function(t,o,a){if(!fu(t))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,h=!1,m="",_=hv;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),o=pv(o,null,t,1,a??null,h,!1,m,_),t[Wn]=o.current,To(t),d)for(t=0;t<d.length;t++)a=d[t],h=a._getVersion,h=h(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,h]:o.mutableSourceEagerHydrationData.push(a,h);return new Oa(o)},Ft.render=function(t,o,a){if(!Ia(o))throw Error(n(200));return Ra(null,t,o,!1,a)},Ft.unmountComponentAtNode=function(t){if(!Ia(t))throw Error(n(40));return t._reactRootContainer?(ti(function(){Ra(null,null,t,!1,function(){t._reactRootContainer=null,t[Wn]=null})}),!0):!1},Ft.unstable_batchedUpdates=iu,Ft.unstable_renderSubtreeIntoContainer=function(t,o,a,d){if(!Ia(a))throw Error(n(200));if(t==null||t._reactInternals===void 0)throw Error(n(38));return Ra(t,o,a,!1,d)},Ft.version="18.2.0-next-9e3b772b8-20220608",Ft}var _v;function aC(){if(_v)return mu.exports;_v=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),mu.exports=fP(),mu.exports}var kv;function hP(){if(kv)return La;kv=1;var i=aC();return La.createRoot=i.createRoot,La.hydrateRoot=i.hydrateRoot,La}var gP=hP(),bu,Pv;function mP(){if(Pv)return bu;Pv=1;function i(){}return bu=i,bu}var yP=mP();const me=Ze(yP);var Su,Tv;function Zt(){if(Tv)return Su;Tv=1;var i=Array.isArray;return Su=i,Su}var wu,Ev;function lC(){if(Ev)return wu;Ev=1;var i=typeof ja=="object"&&ja&&ja.Object===Object&&ja;return wu=i,wu}var Cu,xv;function Pn(){if(xv)return Cu;xv=1;var i=lC(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=i||e||Function("return this")();return Cu=n,Cu}var _u,Dv;function Xi(){if(Dv)return _u;Dv=1;var i=Pn(),e=i.Symbol;return _u=e,_u}var ku,Ov;function vP(){if(Ov)return ku;Ov=1;var i=Xi(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,s=i?i.toStringTag:void 0;function l(c){var u=n.call(c,s),p=c[s];try{c[s]=void 0;var f=!0}catch{}var v=r.call(c);return f&&(u?c[s]=p:delete c[s]),v}return ku=l,ku}var Pu,Iv;function bP(){if(Iv)return Pu;Iv=1;var i=Object.prototype,e=i.toString;function n(r){return e.call(r)}return Pu=n,Pu}var Tu,Rv;function Fr(){if(Rv)return Tu;Rv=1;var i=Xi(),e=vP(),n=bP(),r="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;function c(u){return u==null?u===void 0?s:r:l&&l in Object(u)?e(u):n(u)}return Tu=c,Tu}var Eu,Nv;function Tn(){if(Nv)return Eu;Nv=1;function i(e){return e!=null&&typeof e=="object"}return Eu=i,Eu}var xu,jv;function el(){if(jv)return xu;jv=1;var i=Fr(),e=Tn(),n="[object Symbol]";function r(s){return typeof s=="symbol"||e(s)&&i(s)==n}return xu=r,xu}var Du,Lv;function SP(){if(Lv)return Du;Lv=1;var i=Zt(),e=el(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function s(l,c){if(i(l))return!1;var u=typeof l;return u=="number"||u=="symbol"||u=="boolean"||l==null||e(l)?!0:r.test(l)||!n.test(l)||c!=null&&l in Object(c)}return Du=s,Du}var Ou,Av;function cn(){if(Av)return Ou;Av=1;function i(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Ou=i,Ou}var Iu,Mv;function tl(){if(Mv)return Iu;Mv=1;var i=Fr(),e=cn(),n="[object AsyncFunction]",r="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(u){if(!e(u))return!1;var p=i(u);return p==r||p==s||p==n||p==l}return Iu=c,Iu}var Ru,$v;function wP(){if($v)return Ru;$v=1;var i=Pn(),e=i["__core-js_shared__"];return Ru=e,Ru}var Nu,Fv;function CP(){if(Fv)return Nu;Fv=1;var i=wP(),e=(function(){var r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return Nu=n,Nu}var ju,zv;function cC(){if(zv)return ju;zv=1;var i=Function.prototype,e=i.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return ju=n,ju}var Lu,Bv;function _P(){if(Bv)return Lu;Bv=1;var i=tl(),e=CP(),n=cn(),r=cC(),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,p=c.toString,f=u.hasOwnProperty,v=RegExp("^"+p.call(f).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(S){if(!n(S)||e(S))return!1;var k=i(S)?v:l;return k.test(r(S))}return Lu=y,Lu}var Au,qv;function kP(){if(qv)return Au;qv=1;function i(e,n){return e?.[n]}return Au=i,Au}var Mu,Gv;function gi(){if(Gv)return Mu;Gv=1;var i=_P(),e=kP();function n(r,s){var l=e(r,s);return i(l)?l:void 0}return Mu=n,Mu}var $u,Wv;function nl(){if(Wv)return $u;Wv=1;var i=gi(),e=i(Object,"create");return $u=e,$u}var Fu,Uv;function PP(){if(Uv)return Fu;Uv=1;var i=nl();function e(){this.__data__=i?i(null):{},this.size=0}return Fu=e,Fu}var zu,Hv;function TP(){if(Hv)return zu;Hv=1;function i(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return zu=i,zu}var Bu,Vv;function EP(){if(Vv)return Bu;Vv=1;var i=nl(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function s(l){var c=this.__data__;if(i){var u=c[l];return u===e?void 0:u}return r.call(c,l)?c[l]:void 0}return Bu=s,Bu}var qu,Kv;function xP(){if(Kv)return qu;Kv=1;var i=nl(),e=Object.prototype,n=e.hasOwnProperty;function r(s){var l=this.__data__;return i?l[s]!==void 0:n.call(l,s)}return qu=r,qu}var Gu,Qv;function DP(){if(Qv)return Gu;Qv=1;var i=nl(),e="__lodash_hash_undefined__";function n(r,s){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=i&&s===void 0?e:s,this}return Gu=n,Gu}var Wu,Xv;function OP(){if(Xv)return Wu;Xv=1;var i=PP(),e=TP(),n=EP(),r=xP(),s=DP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var f=c[u];this.set(f[0],f[1])}}return l.prototype.clear=i,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,Wu=l,Wu}var Uu,Yv;function IP(){if(Yv)return Uu;Yv=1;function i(){this.__data__=[],this.size=0}return Uu=i,Uu}var Hu,Zv;function hs(){if(Zv)return Hu;Zv=1;function i(e,n){return e===n||e!==e&&n!==n}return Hu=i,Hu}var Vu,Jv;function rl(){if(Jv)return Vu;Jv=1;var i=hs();function e(n,r){for(var s=n.length;s--;)if(i(n[s][0],r))return s;return-1}return Vu=e,Vu}var Ku,eb;function RP(){if(eb)return Ku;eb=1;var i=rl(),e=Array.prototype,n=e.splice;function r(s){var l=this.__data__,c=i(l,s);if(c<0)return!1;var u=l.length-1;return c==u?l.pop():n.call(l,c,1),--this.size,!0}return Ku=r,Ku}var Qu,tb;function NP(){if(tb)return Qu;tb=1;var i=rl();function e(n){var r=this.__data__,s=i(r,n);return s<0?void 0:r[s][1]}return Qu=e,Qu}var Xu,nb;function jP(){if(nb)return Xu;nb=1;var i=rl();function e(n){return i(this.__data__,n)>-1}return Xu=e,Xu}var Yu,rb;function LP(){if(rb)return Yu;rb=1;var i=rl();function e(n,r){var s=this.__data__,l=i(s,n);return l<0?(++this.size,s.push([n,r])):s[l][1]=r,this}return Yu=e,Yu}var Zu,ib;function il(){if(ib)return Zu;ib=1;var i=IP(),e=RP(),n=NP(),r=jP(),s=LP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var f=c[u];this.set(f[0],f[1])}}return l.prototype.clear=i,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,Zu=l,Zu}var Ju,ob;function Nh(){if(ob)return Ju;ob=1;var i=gi(),e=Pn(),n=i(e,"Map");return Ju=n,Ju}var ed,sb;function AP(){if(sb)return ed;sb=1;var i=OP(),e=il(),n=Nh();function r(){this.size=0,this.__data__={hash:new i,map:new(n||e),string:new i}}return ed=r,ed}var td,ab;function MP(){if(ab)return td;ab=1;function i(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return td=i,td}var nd,lb;function ol(){if(lb)return nd;lb=1;var i=MP();function e(n,r){var s=n.__data__;return i(r)?s[typeof r=="string"?"string":"hash"]:s.map}return nd=e,nd}var rd,cb;function $P(){if(cb)return rd;cb=1;var i=ol();function e(n){var r=i(this,n).delete(n);return this.size-=r?1:0,r}return rd=e,rd}var id,ub;function FP(){if(ub)return id;ub=1;var i=ol();function e(n){return i(this,n).get(n)}return id=e,id}var od,db;function zP(){if(db)return od;db=1;var i=ol();function e(n){return i(this,n).has(n)}return od=e,od}var sd,pb;function BP(){if(pb)return sd;pb=1;var i=ol();function e(n,r){var s=i(this,n),l=s.size;return s.set(n,r),this.size+=s.size==l?0:1,this}return sd=e,sd}var ad,fb;function jh(){if(fb)return ad;fb=1;var i=AP(),e=$P(),n=FP(),r=zP(),s=BP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var f=c[u];this.set(f[0],f[1])}}return l.prototype.clear=i,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,ad=l,ad}var ld,hb;function qP(){if(hb)return ld;hb=1;var i=jh(),e="Expected a function";function n(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new TypeError(e);var l=function(){var c=arguments,u=s?s.apply(this,c):c[0],p=l.cache;if(p.has(u))return p.get(u);var f=r.apply(this,c);return l.cache=p.set(u,f)||p,f};return l.cache=new(n.Cache||i),l}return n.Cache=i,ld=n,ld}var cd,gb;function GP(){if(gb)return cd;gb=1;var i=qP(),e=500;function n(r){var s=i(r,function(c){return l.size===e&&l.clear(),c}),l=s.cache;return s}return cd=n,cd}var ud,mb;function WP(){if(mb)return ud;mb=1;var i=GP(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=i(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(e,function(c,u,p,f){l.push(p?f.replace(n,"$1"):u||c)}),l});return ud=r,ud}var dd,yb;function Lh(){if(yb)return dd;yb=1;function i(e,n){for(var r=-1,s=e==null?0:e.length,l=Array(s);++r<s;)l[r]=n(e[r],r,e);return l}return dd=i,dd}var pd,vb;function UP(){if(vb)return pd;vb=1;var i=Xi(),e=Lh(),n=Zt(),r=el(),s=i?i.prototype:void 0,l=s?s.toString:void 0;function c(u){if(typeof u=="string")return u;if(n(u))return e(u,c)+"";if(r(u))return l?l.call(u):"";var p=u+"";return p=="0"&&1/u==-1/0?"-0":p}return pd=c,pd}var fd,bb;function HP(){if(bb)return fd;bb=1;var i=UP();function e(n){return n==null?"":i(n)}return fd=e,fd}var hd,Sb;function sl(){if(Sb)return hd;Sb=1;var i=Zt(),e=SP(),n=WP(),r=HP();function s(l,c){return i(l)?l:e(l,c)?[l]:n(r(l))}return hd=s,hd}var gd,wb;function Ah(){if(wb)return gd;wb=1;var i=el();function e(n){if(typeof n=="string"||i(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return gd=e,gd}var md,Cb;function uC(){if(Cb)return md;Cb=1;var i=sl(),e=Ah();function n(r,s){s=i(s,r);for(var l=0,c=s.length;r!=null&&l<c;)r=r[e(s[l++])];return l&&l==c?r:void 0}return md=n,md}var yd,_b;function VP(){if(_b)return yd;_b=1;var i=uC();function e(n,r,s){var l=n==null?void 0:i(n,r);return l===void 0?s:l}return yd=e,yd}var KP=VP();const Te=Ze(KP),dC=function(i){if(Te(process,"env.NODE_ENV")==="development"){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log(i,...n)}};class Et{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{getProp:me,getProps:me,getState:me,getStates:me,setState:me,getContext:me,getContexts:me,getCache:me,setCache:me,getCaches:me,stopPropagation:me,persistEvent:me}}constructor(e){this._adapter=Object.assign(Object.assign({},Et.defaultAdapter),e)}getProp(e){return this._adapter.getProp(e)}getProps(){return this._adapter.getProps()}getState(e){return this._adapter.getState(e)}getStates(){return this._adapter.getStates()}setState(e,n){return this._adapter.setState(Object.assign({},e),n)}getContext(e){return this._adapter.getContext(e)}getContexts(){return this._adapter.getContexts()}getCaches(){return this._adapter.getCaches()}getCache(e){return this._adapter.getCache(e)}setCache(e,n){return e&&this._adapter.setCache(e,n)}stopPropagation(e){this._adapter.stopPropagation(e)}_isControlledComponent(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"value";const n=this.getProps();return e in n}_isInProps(e){const n=this.getProps();return e in n}init(e){}destroy(){}log(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];dC(e,...r)}_persistEvent(e){this._adapter.persistEvent(e)}}var E=fs();const C=Ze(E);function Mh(i){return Object.keys(i).reduce((e,n)=>(n.substr(0,5)==="data-"&&(e[n]=i[n]),e),{})}const{hasOwnProperty:QP}=Object.prototype;class mt extends E.Component{constructor(e){super(e),this.isControlled=n=>!!(n&&this.props&&typeof this.props=="object"&&QP.call(this.props,n)),this.setStateAsync=n=>new Promise(r=>{this.setState(n,r)}),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,n)=>this.setState(Object.assign({},e),n),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,n)=>e&&(this.cache[e]=n),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return dC(e,...r)}getDataAttr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return Mh(e)}}mt.propTypes={};mt.defaultProps={};var vd,kb;function XP(){if(kb)return vd;kb=1;var i=Pn(),e=function(){return i.Date.now()};return vd=e,vd}var bd,Pb;function YP(){if(Pb)return bd;Pb=1;var i=/\s/;function e(n){for(var r=n.length;r--&&i.test(n.charAt(r)););return r}return bd=e,bd}var Sd,Tb;function ZP(){if(Tb)return Sd;Tb=1;var i=YP(),e=/^\s+/;function n(r){return r&&r.slice(0,i(r)+1).replace(e,"")}return Sd=n,Sd}var wd,Eb;function JP(){if(Eb)return wd;Eb=1;var i=ZP(),e=cn(),n=el(),r=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function p(f){if(typeof f=="number")return f;if(n(f))return r;if(e(f)){var v=typeof f.valueOf=="function"?f.valueOf():f;f=e(v)?v+"":v}if(typeof f!="string")return f===0?f:+f;f=i(f);var y=l.test(f);return y||c.test(f)?u(f.slice(2),y?2:8):s.test(f)?r:+f}return wd=p,wd}var Cd,xb;function eT(){if(xb)return Cd;xb=1;var i=cn(),e=XP(),n=JP(),r="Expected a function",s=Math.max,l=Math.min;function c(u,p,f){var v,y,S,k,T,b,w=0,D=!1,O=!1,N=!0;if(typeof u!="function")throw new TypeError(r);p=n(p)||0,i(f)&&(D=!!f.leading,O="maxWait"in f,S=O?s(n(f.maxWait)||0,p):S,N="trailing"in f?!!f.trailing:N);function M(ne){var ae=v,J=y;return v=y=void 0,w=ne,k=u.apply(J,ae),k}function z(ne){return w=ne,T=setTimeout(F,p),D?M(ne):k}function L(ne){var ae=ne-b,J=ne-w,ue=p-ae;return O?l(ue,S-J):ue}function j(ne){var ae=ne-b,J=ne-w;return b===void 0||ae>=p||ae<0||O&&J>=S}function F(){var ne=e();if(j(ne))return U(ne);T=setTimeout(F,L(ne))}function U(ne){return T=void 0,N&&v?M(ne):(v=y=void 0,k)}function V(){T!==void 0&&clearTimeout(T),w=0,v=b=y=T=void 0}function K(){return T===void 0?k:U(e())}function ie(){var ne=e(),ae=j(ne);if(v=arguments,y=this,b=ne,ae){if(T===void 0)return z(b);if(O)return clearTimeout(T),T=setTimeout(F,p),M(b)}return T===void 0&&(T=setTimeout(F,p)),k}return ie.cancel=V,ie.flush=K,ie}return Cd=c,Cd}var _d,Db;function tT(){if(Db)return _d;Db=1;var i=eT(),e=cn(),n="Expected a function";function r(s,l,c){var u=!0,p=!0;if(typeof s!="function")throw new TypeError(n);return e(c)&&(u="leading"in c?!!c.leading:u,p="trailing"in c?!!c.trailing:p),i(s,l,{leading:u,maxWait:l,trailing:p})}return _d=r,_d}var nT=tT();const Ob=Ze(nT);var kd={exports:{}};var Ib;function rT(){return Ib||(Ib=1,(function(i){(function(){var e={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(l=s(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var u in l)e.call(l,u)&&l[u]&&(c=s(c,u));return c}function s(l,c){return c?l?l+" "+c:l+c:l}i.exports?(n.default=n,i.exports=n):window.classNames=n})()})(kd)),kd.exports}var iT=rT();const Q=Ze(iT);var Pd={exports:{}},Td,Rb;function oT(){if(Rb)return Td;Rb=1;var i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Td=i,Td}var Ed,Nb;function sT(){if(Nb)return Ed;Nb=1;var i=oT();function e(){}function n(){}return n.resetWarningCache=e,Ed=function(){function r(c,u,p,f,v,y){if(y!==i){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}r.isRequired=r;function s(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return l.PropTypes=l,l},Ed}var jb;function $h(){return jb||(jb=1,Pd.exports=sT()()),Pd.exports}var aT=$h();const g=Ze(aT),xe="semi",lT=["default","error","warning","success"];var cT=Zt();const uT=Ze(cT),al={PREFIX:`${xe}-typography`},_t={WEIGHT:["light","regular","medium","semibold","bold","default"],TYPE:["primary","secondary","danger","warning","success","tertiary","quaternary"],SIZE:["normal","small","inherit"],SPACING:["normal","extended"],HEADING:[1,2,3,4,5,6],RULE:["text","numbers","bytes-decimal","bytes-binary","percentages","exponential"],TRUNCATE:["ceil","floor","round"]};var dT=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const pT=al.PREFIX;let ll=class extends E.PureComponent{render(){const e=this.props,{component:n,className:r,children:s,forwardRef:l}=e,c=dT(e,["component","className","children","forwardRef"]),u=n,p=Q(pT,r);return C.createElement(u,Object.assign({className:p,ref:l},c),s)}};ll.defaultProps={component:"article",style:{},className:""};ll.propTypes={component:g.string,style:g.object,className:g.string};var fT=tl();const Yt=Ze(fT);var xd,Lb;function hT(){if(Lb)return xd;Lb=1;function i(e){return e===null}return xd=i,xd}var gT=hT();const mT=Ze(gT);var Dd,Ab;function yT(){if(Ab)return Dd;Ab=1;var i=Fr(),e=Zt(),n=Tn(),r="[object String]";function s(l){return typeof l=="string"||!e(l)&&n(l)&&i(l)==r}return Dd=s,Dd}var vT=yT();const lt=Ze(vT);var Od,Mb;function bT(){if(Mb)return Od;Mb=1;var i=il();function e(){this.__data__=new i,this.size=0}return Od=e,Od}var Id,$b;function ST(){if($b)return Id;$b=1;function i(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return Id=i,Id}var Rd,Fb;function wT(){if(Fb)return Rd;Fb=1;function i(e){return this.__data__.get(e)}return Rd=i,Rd}var Nd,zb;function CT(){if(zb)return Nd;zb=1;function i(e){return this.__data__.has(e)}return Nd=i,Nd}var jd,Bb;function _T(){if(Bb)return jd;Bb=1;var i=il(),e=Nh(),n=jh(),r=200;function s(l,c){var u=this.__data__;if(u instanceof i){var p=u.__data__;if(!e||p.length<r-1)return p.push([l,c]),this.size=++u.size,this;u=this.__data__=new n(p)}return u.set(l,c),this.size=u.size,this}return jd=s,jd}var Ld,qb;function Fh(){if(qb)return Ld;qb=1;var i=il(),e=bT(),n=ST(),r=wT(),s=CT(),l=_T();function c(u){var p=this.__data__=new i(u);this.size=p.size}return c.prototype.clear=e,c.prototype.delete=n,c.prototype.get=r,c.prototype.has=s,c.prototype.set=l,Ld=c,Ld}var Ad,Gb;function pC(){if(Gb)return Ad;Gb=1;var i=gi(),e=(function(){try{var n=i(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Ad=e,Ad}var Md,Wb;function zh(){if(Wb)return Md;Wb=1;var i=pC();function e(n,r,s){r=="__proto__"&&i?i(n,r,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[r]=s}return Md=e,Md}var $d,Ub;function fC(){if(Ub)return $d;Ub=1;var i=zh(),e=hs();function n(r,s,l){(l!==void 0&&!e(r[s],l)||l===void 0&&!(s in r))&&i(r,s,l)}return $d=n,$d}var Fd,Hb;function kT(){if(Hb)return Fd;Hb=1;function i(e){return function(n,r,s){for(var l=-1,c=Object(n),u=s(n),p=u.length;p--;){var f=u[e?p:++l];if(r(c[f],f,c)===!1)break}return n}}return Fd=i,Fd}var zd,Vb;function hC(){if(Vb)return zd;Vb=1;var i=kT(),e=i();return zd=e,zd}var rs={exports:{}};rs.exports;var Kb;function gC(){return Kb||(Kb=1,(function(i,e){var n=Pn(),r=e&&!e.nodeType&&e,s=r&&!0&&i&&!i.nodeType&&i,l=s&&s.exports===r,c=l?n.Buffer:void 0,u=c?c.allocUnsafe:void 0;function p(f,v){if(v)return f.slice();var y=f.length,S=u?u(y):new f.constructor(y);return f.copy(S),S}i.exports=p})(rs,rs.exports)),rs.exports}var Bd,Qb;function mC(){if(Qb)return Bd;Qb=1;var i=Pn(),e=i.Uint8Array;return Bd=e,Bd}var qd,Xb;function Bh(){if(Xb)return qd;Xb=1;var i=mC();function e(n){var r=new n.constructor(n.byteLength);return new i(r).set(new i(n)),r}return qd=e,qd}var Gd,Yb;function yC(){if(Yb)return Gd;Yb=1;var i=Bh();function e(n,r){var s=r?i(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}return Gd=e,Gd}var Wd,Zb;function vC(){if(Zb)return Wd;Zb=1;function i(e,n){var r=-1,s=e.length;for(n||(n=Array(s));++r<s;)n[r]=e[r];return n}return Wd=i,Wd}var Ud,Jb;function PT(){if(Jb)return Ud;Jb=1;var i=cn(),e=Object.create,n=(function(){function r(){}return function(s){if(!i(s))return{};if(e)return e(s);r.prototype=s;var l=new r;return r.prototype=void 0,l}})();return Ud=n,Ud}var Hd,e1;function bC(){if(e1)return Hd;e1=1;function i(e,n){return function(r){return e(n(r))}}return Hd=i,Hd}var Vd,t1;function qh(){if(t1)return Vd;t1=1;var i=bC(),e=i(Object.getPrototypeOf,Object);return Vd=e,Vd}var Kd,n1;function cl(){if(n1)return Kd;n1=1;var i=Object.prototype;function e(n){var r=n&&n.constructor,s=typeof r=="function"&&r.prototype||i;return n===s}return Kd=e,Kd}var Qd,r1;function SC(){if(r1)return Qd;r1=1;var i=PT(),e=qh(),n=cl();function r(s){return typeof s.constructor=="function"&&!n(s)?i(e(s)):{}}return Qd=r,Qd}var Xd,i1;function TT(){if(i1)return Xd;i1=1;var i=Fr(),e=Tn(),n="[object Arguments]";function r(s){return e(s)&&i(s)==n}return Xd=r,Xd}var Yd,o1;function ul(){if(o1)return Yd;o1=1;var i=TT(),e=Tn(),n=Object.prototype,r=n.hasOwnProperty,s=n.propertyIsEnumerable,l=i((function(){return arguments})())?i:function(c){return e(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return Yd=l,Yd}var Zd,s1;function wC(){if(s1)return Zd;s1=1;var i=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i}return Zd=e,Zd}var Jd,a1;function Yi(){if(a1)return Jd;a1=1;var i=tl(),e=wC();function n(r){return r!=null&&e(r.length)&&!i(r)}return Jd=n,Jd}var ep,l1;function CC(){if(l1)return ep;l1=1;var i=Yi(),e=Tn();function n(r){return e(r)&&i(r)}return ep=n,ep}var is={exports:{}},tp,c1;function ET(){if(c1)return tp;c1=1;function i(){return!1}return tp=i,tp}is.exports;var u1;function gs(){return u1||(u1=1,(function(i,e){var n=Pn(),r=ET(),s=e&&!e.nodeType&&e,l=s&&!0&&i&&!i.nodeType&&i,c=l&&l.exports===s,u=c?n.Buffer:void 0,p=u?u.isBuffer:void 0,f=p||r;i.exports=f})(is,is.exports)),is.exports}var np,d1;function _C(){if(d1)return np;d1=1;var i=Fr(),e=qh(),n=Tn(),r="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,p=c.call(Object);function f(v){if(!n(v)||i(v)!=r)return!1;var y=e(v);if(y===null)return!0;var S=u.call(y,"constructor")&&y.constructor;return typeof S=="function"&&S instanceof S&&c.call(S)==p}return np=f,np}var rp,p1;function xT(){if(p1)return rp;p1=1;var i=Fr(),e=wC(),n=Tn(),r="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",f="[object Map]",v="[object Number]",y="[object Object]",S="[object RegExp]",k="[object Set]",T="[object String]",b="[object WeakMap]",w="[object ArrayBuffer]",D="[object DataView]",O="[object Float32Array]",N="[object Float64Array]",M="[object Int8Array]",z="[object Int16Array]",L="[object Int32Array]",j="[object Uint8Array]",F="[object Uint8ClampedArray]",U="[object Uint16Array]",V="[object Uint32Array]",K={};K[O]=K[N]=K[M]=K[z]=K[L]=K[j]=K[F]=K[U]=K[V]=!0,K[r]=K[s]=K[w]=K[l]=K[D]=K[c]=K[u]=K[p]=K[f]=K[v]=K[y]=K[S]=K[k]=K[T]=K[b]=!1;function ie(ne){return n(ne)&&e(ne.length)&&!!K[i(ne)]}return rp=ie,rp}var ip,f1;function dl(){if(f1)return ip;f1=1;function i(e){return function(n){return e(n)}}return ip=i,ip}var os={exports:{}};os.exports;var h1;function Gh(){return h1||(h1=1,(function(i,e){var n=lC(),r=e&&!e.nodeType&&e,s=r&&!0&&i&&!i.nodeType&&i,l=s&&s.exports===r,c=l&&n.process,u=(function(){try{var p=s&&s.require&&s.require("util").types;return p||c&&c.binding&&c.binding("util")}catch{}})();i.exports=u})(os,os.exports)),os.exports}var op,g1;function pl(){if(g1)return op;g1=1;var i=xT(),e=dl(),n=Gh(),r=n&&n.isTypedArray,s=r?e(r):i;return op=s,op}var sp,m1;function kC(){if(m1)return sp;m1=1;function i(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}return sp=i,sp}var ap,y1;function Wh(){if(y1)return ap;y1=1;var i=zh(),e=hs(),n=Object.prototype,r=n.hasOwnProperty;function s(l,c,u){var p=l[c];(!(r.call(l,c)&&e(p,u))||u===void 0&&!(c in l))&&i(l,c,u)}return ap=s,ap}var lp,v1;function Zi(){if(v1)return lp;v1=1;var i=Wh(),e=zh();function n(r,s,l,c){var u=!l;l||(l={});for(var p=-1,f=s.length;++p<f;){var v=s[p],y=c?c(l[v],r[v],v,l,r):void 0;y===void 0&&(y=r[v]),u?e(l,v,y):i(l,v,y)}return l}return lp=n,lp}var cp,b1;function DT(){if(b1)return cp;b1=1;function i(e,n){for(var r=-1,s=Array(e);++r<e;)s[r]=n(r);return s}return cp=i,cp}var up,S1;function Uh(){if(S1)return up;S1=1;var i=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,s){var l=typeof r;return s=s??i,!!s&&(l=="number"||l!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<s}return up=n,up}var dp,w1;function PC(){if(w1)return dp;w1=1;var i=DT(),e=ul(),n=Zt(),r=gs(),s=Uh(),l=pl(),c=Object.prototype,u=c.hasOwnProperty;function p(f,v){var y=n(f),S=!y&&e(f),k=!y&&!S&&r(f),T=!y&&!S&&!k&&l(f),b=y||S||k||T,w=b?i(f.length,String):[],D=w.length;for(var O in f)(v||u.call(f,O))&&!(b&&(O=="length"||k&&(O=="offset"||O=="parent")||T&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||s(O,D)))&&w.push(O);return w}return dp=p,dp}var pp,C1;function OT(){if(C1)return pp;C1=1;function i(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return pp=i,pp}var fp,_1;function IT(){if(_1)return fp;_1=1;var i=cn(),e=cl(),n=OT(),r=Object.prototype,s=r.hasOwnProperty;function l(c){if(!i(c))return n(c);var u=e(c),p=[];for(var f in c)f=="constructor"&&(u||!s.call(c,f))||p.push(f);return p}return fp=l,fp}var hp,k1;function ms(){if(k1)return hp;k1=1;var i=PC(),e=IT(),n=Yi();function r(s){return n(s)?i(s,!0):e(s)}return hp=r,hp}var gp,P1;function RT(){if(P1)return gp;P1=1;var i=Zi(),e=ms();function n(r){return i(r,e(r))}return gp=n,gp}var mp,T1;function NT(){if(T1)return mp;T1=1;var i=fC(),e=gC(),n=yC(),r=vC(),s=SC(),l=ul(),c=Zt(),u=CC(),p=gs(),f=tl(),v=cn(),y=_C(),S=pl(),k=kC(),T=RT();function b(w,D,O,N,M,z,L){var j=k(w,O),F=k(D,O),U=L.get(F);if(U){i(w,O,U);return}var V=z?z(j,F,O+"",w,D,L):void 0,K=V===void 0;if(K){var ie=c(F),ne=!ie&&p(F),ae=!ie&&!ne&&S(F);V=F,ie||ne||ae?c(j)?V=j:u(j)?V=r(j):ne?(K=!1,V=e(F,!0)):ae?(K=!1,V=n(F,!0)):V=[]:y(F)||l(F)?(V=j,l(j)?V=T(j):(!v(j)||f(j))&&(V=s(F))):K=!1}K&&(L.set(F,V),M(V,F,N,z,L),L.delete(F)),i(w,O,V)}return mp=b,mp}var yp,E1;function jT(){if(E1)return yp;E1=1;var i=Fh(),e=fC(),n=hC(),r=NT(),s=cn(),l=ms(),c=kC();function u(p,f,v,y,S){p!==f&&n(f,function(k,T){if(S||(S=new i),s(k))r(p,f,T,v,u,y,S);else{var b=y?y(c(p,T),k,T+"",p,f,S):void 0;b===void 0&&(b=k),e(p,T,b)}},l)}return yp=u,yp}var vp,x1;function Hh(){if(x1)return vp;x1=1;function i(e){return e}return vp=i,vp}var bp,D1;function LT(){if(D1)return bp;D1=1;function i(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return bp=i,bp}var Sp,O1;function TC(){if(O1)return Sp;O1=1;var i=LT(),e=Math.max;function n(r,s,l){return s=e(s===void 0?r.length-1:s,0),function(){for(var c=arguments,u=-1,p=e(c.length-s,0),f=Array(p);++u<p;)f[u]=c[s+u];u=-1;for(var v=Array(s+1);++u<s;)v[u]=c[u];return v[s]=l(f),i(r,this,v)}}return Sp=n,Sp}var wp,I1;function AT(){if(I1)return wp;I1=1;function i(e){return function(){return e}}return wp=i,wp}var Cp,R1;function MT(){if(R1)return Cp;R1=1;var i=AT(),e=pC(),n=Hh(),r=e?function(s,l){return e(s,"toString",{configurable:!0,enumerable:!1,value:i(l),writable:!0})}:n;return Cp=r,Cp}var _p,N1;function $T(){if(N1)return _p;N1=1;var i=800,e=16,n=Date.now;function r(s){var l=0,c=0;return function(){var u=n(),p=e-(u-c);if(c=u,p>0){if(++l>=i)return arguments[0]}else l=0;return s.apply(void 0,arguments)}}return _p=r,_p}var kp,j1;function EC(){if(j1)return kp;j1=1;var i=MT(),e=$T(),n=e(i);return kp=n,kp}var Pp,L1;function xC(){if(L1)return Pp;L1=1;var i=Hh(),e=TC(),n=EC();function r(s,l){return n(e(s,l,i),s+"")}return Pp=r,Pp}var Tp,A1;function FT(){if(A1)return Tp;A1=1;var i=hs(),e=Yi(),n=Uh(),r=cn();function s(l,c,u){if(!r(u))return!1;var p=typeof c;return(p=="number"?e(u)&&n(c,u.length):p=="string"&&c in u)?i(u[c],l):!1}return Tp=s,Tp}var Ep,M1;function zT(){if(M1)return Ep;M1=1;var i=xC(),e=FT();function n(r){return i(function(s,l){var c=-1,u=l.length,p=u>1?l[u-1]:void 0,f=u>2?l[2]:void 0;for(p=r.length>3&&typeof p=="function"?(u--,p):void 0,f&&e(l[0],l[1],f)&&(p=u<3?void 0:p,u=1),s=Object(s);++c<u;){var v=l[c];v&&r(s,v,c,p)}return s})}return Ep=n,Ep}var xp,$1;function BT(){if($1)return xp;$1=1;var i=jT(),e=zT(),n=e(function(r,s,l){i(r,s,l)});return xp=n,xp}var qT=BT();const GT=Ze(qT);var Dp,F1;function DC(){if(F1)return Dp;F1=1;function i(e,n){for(var r=-1,s=e==null?0:e.length;++r<s&&n(e[r],r,e)!==!1;);return e}return Dp=i,Dp}var Op,z1;function WT(){if(z1)return Op;z1=1;var i=bC(),e=i(Object.keys,Object);return Op=e,Op}var Ip,B1;function OC(){if(B1)return Ip;B1=1;var i=cl(),e=WT(),n=Object.prototype,r=n.hasOwnProperty;function s(l){if(!i(l))return e(l);var c=[];for(var u in Object(l))r.call(l,u)&&u!="constructor"&&c.push(u);return c}return Ip=s,Ip}var Rp,q1;function fl(){if(q1)return Rp;q1=1;var i=PC(),e=OC(),n=Yi();function r(s){return n(s)?i(s):e(s)}return Rp=r,Rp}var Np,G1;function UT(){if(G1)return Np;G1=1;var i=Zi(),e=fl();function n(r,s){return r&&i(s,e(s),r)}return Np=n,Np}var jp,W1;function HT(){if(W1)return jp;W1=1;var i=Zi(),e=ms();function n(r,s){return r&&i(s,e(s),r)}return jp=n,jp}var Lp,U1;function VT(){if(U1)return Lp;U1=1;function i(e,n){for(var r=-1,s=e==null?0:e.length,l=0,c=[];++r<s;){var u=e[r];n(u,r,e)&&(c[l++]=u)}return c}return Lp=i,Lp}var Ap,H1;function IC(){if(H1)return Ap;H1=1;function i(){return[]}return Ap=i,Ap}var Mp,V1;function Vh(){if(V1)return Mp;V1=1;var i=VT(),e=IC(),n=Object.prototype,r=n.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(c){return c==null?[]:(c=Object(c),i(s(c),function(u){return r.call(c,u)}))}:e;return Mp=l,Mp}var $p,K1;function KT(){if(K1)return $p;K1=1;var i=Zi(),e=Vh();function n(r,s){return i(r,e(r),s)}return $p=n,$p}var Fp,Q1;function Kh(){if(Q1)return Fp;Q1=1;function i(e,n){for(var r=-1,s=n.length,l=e.length;++r<s;)e[l+r]=n[r];return e}return Fp=i,Fp}var zp,X1;function RC(){if(X1)return zp;X1=1;var i=Kh(),e=qh(),n=Vh(),r=IC(),s=Object.getOwnPropertySymbols,l=s?function(c){for(var u=[];c;)i(u,n(c)),c=e(c);return u}:r;return zp=l,zp}var Bp,Y1;function QT(){if(Y1)return Bp;Y1=1;var i=Zi(),e=RC();function n(r,s){return i(r,e(r),s)}return Bp=n,Bp}var qp,Z1;function NC(){if(Z1)return qp;Z1=1;var i=Kh(),e=Zt();function n(r,s,l){var c=s(r);return e(r)?c:i(c,l(r))}return qp=n,qp}var Gp,J1;function jC(){if(J1)return Gp;J1=1;var i=NC(),e=Vh(),n=fl();function r(s){return i(s,n,e)}return Gp=r,Gp}var Wp,eS;function LC(){if(eS)return Wp;eS=1;var i=NC(),e=RC(),n=ms();function r(s){return i(s,n,e)}return Wp=r,Wp}var Up,tS;function XT(){if(tS)return Up;tS=1;var i=gi(),e=Pn(),n=i(e,"DataView");return Up=n,Up}var Hp,nS;function YT(){if(nS)return Hp;nS=1;var i=gi(),e=Pn(),n=i(e,"Promise");return Hp=n,Hp}var Vp,rS;function ZT(){if(rS)return Vp;rS=1;var i=gi(),e=Pn(),n=i(e,"Set");return Vp=n,Vp}var Kp,iS;function JT(){if(iS)return Kp;iS=1;var i=gi(),e=Pn(),n=i(e,"WeakMap");return Kp=n,Kp}var Qp,oS;function ys(){if(oS)return Qp;oS=1;var i=XT(),e=Nh(),n=YT(),r=ZT(),s=JT(),l=Fr(),c=cC(),u="[object Map]",p="[object Object]",f="[object Promise]",v="[object Set]",y="[object WeakMap]",S="[object DataView]",k=c(i),T=c(e),b=c(n),w=c(r),D=c(s),O=l;return(i&&O(new i(new ArrayBuffer(1)))!=S||e&&O(new e)!=u||n&&O(n.resolve())!=f||r&&O(new r)!=v||s&&O(new s)!=y)&&(O=function(N){var M=l(N),z=M==p?N.constructor:void 0,L=z?c(z):"";if(L)switch(L){case k:return S;case T:return u;case b:return f;case w:return v;case D:return y}return M}),Qp=O,Qp}var Xp,sS;function eE(){if(sS)return Xp;sS=1;var i=Object.prototype,e=i.hasOwnProperty;function n(r){var s=r.length,l=new r.constructor(s);return s&&typeof r[0]=="string"&&e.call(r,"index")&&(l.index=r.index,l.input=r.input),l}return Xp=n,Xp}var Yp,aS;function tE(){if(aS)return Yp;aS=1;var i=Bh();function e(n,r){var s=r?i(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}return Yp=e,Yp}var Zp,lS;function nE(){if(lS)return Zp;lS=1;var i=/\w*$/;function e(n){var r=new n.constructor(n.source,i.exec(n));return r.lastIndex=n.lastIndex,r}return Zp=e,Zp}var Jp,cS;function rE(){if(cS)return Jp;cS=1;var i=Xi(),e=i?i.prototype:void 0,n=e?e.valueOf:void 0;function r(s){return n?Object(n.call(s)):{}}return Jp=r,Jp}var ef,uS;function iE(){if(uS)return ef;uS=1;var i=Bh(),e=tE(),n=nE(),r=rE(),s=yC(),l="[object Boolean]",c="[object Date]",u="[object Map]",p="[object Number]",f="[object RegExp]",v="[object Set]",y="[object String]",S="[object Symbol]",k="[object ArrayBuffer]",T="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",D="[object Int8Array]",O="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",z="[object Uint8ClampedArray]",L="[object Uint16Array]",j="[object Uint32Array]";function F(U,V,K){var ie=U.constructor;switch(V){case k:return i(U);case l:case c:return new ie(+U);case T:return e(U,K);case b:case w:case D:case O:case N:case M:case z:case L:case j:return s(U,K);case u:return new ie;case p:case y:return new ie(U);case f:return n(U);case v:return new ie;case S:return r(U)}}return ef=F,ef}var tf,dS;function oE(){if(dS)return tf;dS=1;var i=ys(),e=Tn(),n="[object Map]";function r(s){return e(s)&&i(s)==n}return tf=r,tf}var nf,pS;function sE(){if(pS)return nf;pS=1;var i=oE(),e=dl(),n=Gh(),r=n&&n.isMap,s=r?e(r):i;return nf=s,nf}var rf,fS;function aE(){if(fS)return rf;fS=1;var i=ys(),e=Tn(),n="[object Set]";function r(s){return e(s)&&i(s)==n}return rf=r,rf}var of,hS;function lE(){if(hS)return of;hS=1;var i=aE(),e=dl(),n=Gh(),r=n&&n.isSet,s=r?e(r):i;return of=s,of}var sf,gS;function AC(){if(gS)return sf;gS=1;var i=Fh(),e=DC(),n=Wh(),r=UT(),s=HT(),l=gC(),c=vC(),u=KT(),p=QT(),f=jC(),v=LC(),y=ys(),S=eE(),k=iE(),T=SC(),b=Zt(),w=gs(),D=sE(),O=cn(),N=lE(),M=fl(),z=ms(),L=1,j=2,F=4,U="[object Arguments]",V="[object Array]",K="[object Boolean]",ie="[object Date]",ne="[object Error]",ae="[object Function]",J="[object GeneratorFunction]",ue="[object Map]",pe="[object Number]",W="[object Object]",ee="[object RegExp]",I="[object Set]",H="[object String]",oe="[object Symbol]",te="[object WeakMap]",se="[object ArrayBuffer]",be="[object DataView]",Se="[object Float32Array]",ve="[object Float64Array]",_e="[object Int8Array]",ye="[object Int16Array]",xt="[object Int32Array]",Dt="[object Uint8Array]",lr="[object Uint8ClampedArray]",dn="[object Uint16Array]",cr="[object Uint32Array]",Ie={};Ie[U]=Ie[V]=Ie[se]=Ie[be]=Ie[K]=Ie[ie]=Ie[Se]=Ie[ve]=Ie[_e]=Ie[ye]=Ie[xt]=Ie[ue]=Ie[pe]=Ie[W]=Ie[ee]=Ie[I]=Ie[H]=Ie[oe]=Ie[Dt]=Ie[lr]=Ie[dn]=Ie[cr]=!0,Ie[ne]=Ie[ae]=Ie[te]=!1;function pn(De,Ot,Fe,Me,Ve,Ke){var Be,It=Ot&L,Rt=Ot&j,xn=Ot&F;if(Fe&&(Be=Ve?Fe(De,Me,Ve,Ke):Fe(De)),Be!==void 0)return Be;if(!O(De))return De;var Nt=b(De);if(Nt){if(Be=S(De),!It)return c(De,Be)}else{var tt=y(De),Dn=tt==ae||tt==J;if(w(De))return l(De,It);if(tt==W||tt==U||Dn&&!Ve){if(Be=Rt||Dn?{}:T(De),!It)return Rt?p(De,s(Be,De)):u(De,r(Be,De))}else{if(!Ie[tt])return Ve?De:{};Be=k(De,tt,It)}}Ke||(Ke=new i);var en=Ke.get(De);if(en)return en;Ke.set(De,Be),N(De)?De.forEach(function(kt){Be.add(pn(kt,Ot,Fe,kt,De,Ke))}):D(De)&&De.forEach(function(kt,Gt){Be.set(Gt,pn(kt,Ot,Fe,Gt,De,Ke))});var fn=xn?Rt?v:f:Rt?z:M,ur=Nt?void 0:fn(De);return e(ur||De,function(kt,Gt){ur&&(Gt=kt,kt=De[Gt]),n(Be,Gt,pn(kt,Ot,Fe,Gt,De,Ke))}),Be}return sf=pn,sf}var af,mS;function cE(){if(mS)return af;mS=1;function i(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return af=i,af}var lf,yS;function uE(){if(yS)return lf;yS=1;function i(e,n,r){var s=-1,l=e.length;n<0&&(n=-n>l?0:l+n),r=r>l?l:r,r<0&&(r+=l),l=n>r?0:r-n>>>0,n>>>=0;for(var c=Array(l);++s<l;)c[s]=e[s+n];return c}return lf=i,lf}var cf,vS;function dE(){if(vS)return cf;vS=1;var i=uC(),e=uE();function n(r,s){return s.length<2?r:i(r,e(s,0,-1))}return cf=n,cf}var uf,bS;function pE(){if(bS)return uf;bS=1;var i=sl(),e=cE(),n=dE(),r=Ah(),s=Object.prototype,l=s.hasOwnProperty;function c(u,p){p=i(p,u);var f=-1,v=p.length;if(!v)return!0;for(var y=u==null||typeof u!="object"&&typeof u!="function";++f<v;){var S=p[f];if(typeof S=="string"){if(S==="__proto__"&&!l.call(u,"__proto__"))return!1;if(S==="constructor"&&f+1<v&&typeof p[f+1]=="string"&&p[f+1]==="prototype"){if(y&&f===0)continue;return!1}}}var k=n(u,p);return k==null||delete k[r(e(p))]}return uf=c,uf}var df,SS;function fE(){if(SS)return df;SS=1;var i=_C();function e(n){return i(n)?void 0:n}return df=e,df}var pf,wS;function hE(){if(wS)return pf;wS=1;var i=Xi(),e=ul(),n=Zt(),r=i?i.isConcatSpreadable:void 0;function s(l){return n(l)||e(l)||!!(r&&l&&l[r])}return pf=s,pf}var ff,CS;function gE(){if(CS)return ff;CS=1;var i=Kh(),e=hE();function n(r,s,l,c,u){var p=-1,f=r.length;for(l||(l=e),u||(u=[]);++p<f;){var v=r[p];s>0&&l(v)?s>1?n(v,s-1,l,c,u):i(u,v):c||(u[u.length]=v)}return u}return ff=n,ff}var hf,_S;function mE(){if(_S)return hf;_S=1;var i=gE();function e(n){var r=n==null?0:n.length;return r?i(n,1):[]}return hf=e,hf}var gf,kS;function yE(){if(kS)return gf;kS=1;var i=mE(),e=TC(),n=EC();function r(s){return n(e(s,void 0,i),s+"")}return gf=r,gf}var mf,PS;function vE(){if(PS)return mf;PS=1;var i=Lh(),e=AC(),n=pE(),r=sl(),s=Zi(),l=fE(),c=yE(),u=LC(),p=1,f=2,v=4,y=c(function(S,k){var T={};if(S==null)return T;var b=!1;k=i(k,function(D){return D=r(D,S),b||(b=D.length>1),D}),s(S,u(S),T),b&&(T=e(T,p|f|v,l));for(var w=k.length;w--;)n(T,k[w]);return T});return mf=y,mf}var bE=vE();const mi=Ze(bE);var yf,TS;function SE(){if(TS)return yf;TS=1;function i(e){return e===void 0}return yf=i,yf}var wE=SE();const ss=Ze(wE);var vf,ES;function CE(){if(ES)return vf;ES=1;var i="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,i),this}return vf=e,vf}var bf,xS;function _E(){if(xS)return bf;xS=1;function i(e){return this.__data__.has(e)}return bf=i,bf}var Sf,DS;function MC(){if(DS)return Sf;DS=1;var i=jh(),e=CE(),n=_E();function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new i;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Sf=r,Sf}var wf,OS;function kE(){if(OS)return wf;OS=1;function i(e,n){for(var r=-1,s=e==null?0:e.length;++r<s;)if(n(e[r],r,e))return!0;return!1}return wf=i,wf}var Cf,IS;function $C(){if(IS)return Cf;IS=1;function i(e,n){return e.has(n)}return Cf=i,Cf}var _f,RS;function FC(){if(RS)return _f;RS=1;var i=MC(),e=kE(),n=$C(),r=1,s=2;function l(c,u,p,f,v,y){var S=p&r,k=c.length,T=u.length;if(k!=T&&!(S&&T>k))return!1;var b=y.get(c),w=y.get(u);if(b&&w)return b==u&&w==c;var D=-1,O=!0,N=p&s?new i:void 0;for(y.set(c,u),y.set(u,c);++D<k;){var M=c[D],z=u[D];if(f)var L=S?f(z,M,D,u,c,y):f(M,z,D,c,u,y);if(L!==void 0){if(L)continue;O=!1;break}if(N){if(!e(u,function(j,F){if(!n(N,F)&&(M===j||v(M,j,p,f,y)))return N.push(F)})){O=!1;break}}else if(!(M===z||v(M,z,p,f,y))){O=!1;break}}return y.delete(c),y.delete(u),O}return _f=l,_f}var kf,NS;function PE(){if(NS)return kf;NS=1;function i(e){var n=-1,r=Array(e.size);return e.forEach(function(s,l){r[++n]=[l,s]}),r}return kf=i,kf}var Pf,jS;function TE(){if(jS)return Pf;jS=1;function i(e){var n=-1,r=Array(e.size);return e.forEach(function(s){r[++n]=s}),r}return Pf=i,Pf}var Tf,LS;function EE(){if(LS)return Tf;LS=1;var i=Xi(),e=mC(),n=hs(),r=FC(),s=PE(),l=TE(),c=1,u=2,p="[object Boolean]",f="[object Date]",v="[object Error]",y="[object Map]",S="[object Number]",k="[object RegExp]",T="[object Set]",b="[object String]",w="[object Symbol]",D="[object ArrayBuffer]",O="[object DataView]",N=i?i.prototype:void 0,M=N?N.valueOf:void 0;function z(L,j,F,U,V,K,ie){switch(F){case O:if(L.byteLength!=j.byteLength||L.byteOffset!=j.byteOffset)return!1;L=L.buffer,j=j.buffer;case D:return!(L.byteLength!=j.byteLength||!K(new e(L),new e(j)));case p:case f:case S:return n(+L,+j);case v:return L.name==j.name&&L.message==j.message;case k:case b:return L==j+"";case y:var ne=s;case T:var ae=U&c;if(ne||(ne=l),L.size!=j.size&&!ae)return!1;var J=ie.get(L);if(J)return J==j;U|=u,ie.set(L,j);var ue=r(ne(L),ne(j),U,V,K,ie);return ie.delete(L),ue;case w:if(M)return M.call(L)==M.call(j)}return!1}return Tf=z,Tf}var Ef,AS;function xE(){if(AS)return Ef;AS=1;var i=jC(),e=1,n=Object.prototype,r=n.hasOwnProperty;function s(l,c,u,p,f,v){var y=u&e,S=i(l),k=S.length,T=i(c),b=T.length;if(k!=b&&!y)return!1;for(var w=k;w--;){var D=S[w];if(!(y?D in c:r.call(c,D)))return!1}var O=v.get(l),N=v.get(c);if(O&&N)return O==c&&N==l;var M=!0;v.set(l,c),v.set(c,l);for(var z=y;++w<k;){D=S[w];var L=l[D],j=c[D];if(p)var F=y?p(j,L,D,c,l,v):p(L,j,D,l,c,v);if(!(F===void 0?L===j||f(L,j,u,p,v):F)){M=!1;break}z||(z=D=="constructor")}if(M&&!z){var U=l.constructor,V=c.constructor;U!=V&&"constructor"in l&&"constructor"in c&&!(typeof U=="function"&&U instanceof U&&typeof V=="function"&&V instanceof V)&&(M=!1)}return v.delete(l),v.delete(c),M}return Ef=s,Ef}var xf,MS;function DE(){if(MS)return xf;MS=1;var i=Fh(),e=FC(),n=EE(),r=xE(),s=ys(),l=Zt(),c=gs(),u=pl(),p=1,f="[object Arguments]",v="[object Array]",y="[object Object]",S=Object.prototype,k=S.hasOwnProperty;function T(b,w,D,O,N,M){var z=l(b),L=l(w),j=z?v:s(b),F=L?v:s(w);j=j==f?y:j,F=F==f?y:F;var U=j==y,V=F==y,K=j==F;if(K&&c(b)){if(!c(w))return!1;z=!0,U=!1}if(K&&!U)return M||(M=new i),z||u(b)?e(b,w,D,O,N,M):n(b,w,j,D,O,N,M);if(!(D&p)){var ie=U&&k.call(b,"__wrapped__"),ne=V&&k.call(w,"__wrapped__");if(ie||ne){var ae=ie?b.value():b,J=ne?w.value():w;return M||(M=new i),N(ae,J,D,O,M)}}return K?(M||(M=new i),r(b,w,D,O,N,M)):!1}return xf=T,xf}var Df,$S;function OE(){if($S)return Df;$S=1;var i=DE(),e=Tn();function n(r,s,l,c,u){return r===s?!0:r==null||s==null||!e(r)&&!e(s)?r!==r&&s!==s:i(r,s,l,c,n,u)}return Df=n,Df}var Of,FS;function IE(){if(FS)return Of;FS=1;var i=OE();function e(n,r){return i(n,r)}return Of=e,Of}var RE=IE();const _n=Ze(RE);var If,zS;function NE(){if(zS)return If;zS=1;var i=OC(),e=ys(),n=ul(),r=Zt(),s=Yi(),l=gs(),c=cl(),u=pl(),p="[object Map]",f="[object Set]",v=Object.prototype,y=v.hasOwnProperty;function S(k){if(k==null)return!0;if(s(k)&&(r(k)||typeof k=="string"||typeof k.splice=="function"||l(k)||u(k)||n(k)))return!k.length;var T=e(k);if(T==p||T==f)return!k.size;if(c(k))return!i(k).length;for(var b in k)if(y.call(k,b))return!1;return!0}return If=S,If}var jE=NE();const Zn=Ze(jE);var Rf,BS;function LE(){if(BS)return Rf;BS=1;var i=hC(),e=fl();function n(r,s){return r&&i(r,s,e)}return Rf=n,Rf}var Nf,qS;function AE(){if(qS)return Nf;qS=1;var i=Yi();function e(n,r){return function(s,l){if(s==null)return s;if(!i(s))return n(s,l);for(var c=s.length,u=r?c:-1,p=Object(s);(r?u--:++u<c)&&l(p[u],u,p)!==!1;);return s}}return Nf=e,Nf}var jf,GS;function ME(){if(GS)return jf;GS=1;var i=LE(),e=AE(),n=e(i);return jf=n,jf}var Lf,WS;function $E(){if(WS)return Lf;WS=1;var i=Hh();function e(n){return typeof n=="function"?n:i}return Lf=e,Lf}var Af,US;function FE(){if(US)return Af;US=1;var i=DC(),e=ME(),n=$E(),r=Zt();function s(l,c){var u=r(l)?i:e;return u(l,n(c))}return Af=s,Af}var Mf,HS;function zE(){return HS||(HS=1,Mf=FE()),Mf}var BE=zE();const qE=Ze(BE);var hl=aC();const Jn=Ze(hl);function rr(i,e){i&&console.warn(`Warning: ${e}`)}function gl(i){return i==null}let zC=class{constructor(){this._eventMap=new Map}on(e,n){return e&&typeof n=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(n)),this}once(e,n){var r=this;if(e&&typeof n=="function"){const s=function(){n(...arguments),r.off(e,s)};this.on(e,s)}}off(e,n){if(e)if(typeof n=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let s=-1;for(;(s=r.findIndex(l=>l===n))>-1;)r.splice(s,1)}}else gl(n)&&this._eventMap.delete(e);return this}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return this._eventMap.has(e)?([...this._eventMap.get(e)].forEach(c=>c(...r)),!0):!1}};function ci(i){try{return i instanceof HTMLElement}catch{return typeof i=="object"&&i.nodeType===1&&typeof i.style=="object"&&typeof i.ownerDocument=="object"}}function GE(i){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(const s of n)i.appendChild(s);return i}function PH(i){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(i.children&&i.children.length){const s=i.children[0];for(const l of n)i.insertBefore(l,s)}else GE(i,...n);return i}function WE(i){if(i&&typeof i=="object")return typeof i.toJSON=="function"?i.toJSON():["left","top","right","bottom","width","height"].reduce((n,r)=>(n[r]=i[r],n),{})}function Nr(i){i.stopPropagation(),i.preventDefault()}function TH(i){return i.length===1&&i.match(/\S/)}function ml(i,e){for(let n=0;n<i.length;n++)i[n]===e?(i[n].tabIndex=0,i[n].focus()):i[n].tabIndex=-1}function EH(i){i.length>0&&ml(i,i[0])}function xH(i){i.length>0&&ml(i,i[i.length-1])}function DH(i,e){let n,r;i.length>0&&(e===i[0]?n=i[i.length-1]:(r=i.indexOf(e),n=i[r-1]),ml(i,n))}function OH(i,e){let n,r;i.length>0&&(e===i[i.length-1]?n=i[0]:(r=i.indexOf(e),n=i[r+1]),ml(i,n))}function IH(i,e,n,r){let s,l;return!i||!n||!r||r.length>1?-1:(r=r.toLowerCase(),s=i.indexOf(e)+1,s>=i.length&&(s=0),l=n.indexOf(r,s),l===-1&&(l=n.indexOf(r,0)),l>=0?l:-1)}function RH(i,e){if(!i)return null;for(;i.parentElement&&Te(i.parentElement,"attributes.role.value","")!==e;)i=i.parentElement;return i.parentElement}function NH(i,e){for(let n=0;n<i.length;n++){const r=i[n].attributes["data-popupid"];if(r&&r.value===e)return i[n]}return null}const Aa={TOP:/top/i,RIGHT:/right/i,BOTTOM:/bottom/i,LEFT:/left/i},Bi={left:0,top:0,height:0,width:0,scrollLeft:0,scrollTop:0};let UE=class extends Et{constructor(e){var n;super(Object.assign({},e)),n=this,this.removePortal=()=>{this._adapter.removePortal()},this.setDisplayNone=(r,s)=>{this._adapter.setDisplayNone(r,s)},this.updateStateIfCursorOnTrigger=r=>{var s,l;if(!((s=r?.matches)===null||s===void 0)&&s.call(r,":hover")){const c=this._adapter.getEventName(),u=this.getState("triggerEventSet");(l=u[c.mouseEnter])===null||l===void 0||l.call(u)}},this.onResize=()=>{this.getState("visible")&&this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{if(this._initContainerPosition(),this._adapter.getAnimatingState())return;const r=this.getProp("content"),s=this.getProp("trigger"),l=this.getProp("clickTriggerToHide"),{visible:c,displayNone:u}=this.getStates();if(u&&this.setDisplayNone(!1),!c){if(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),s==="hover"){const p=()=>{var f;const v=this._adapter.getTriggerDOM();s&&!(!((f=v?.matches)===null||f===void 0)&&f.call(v,":hover"))&&this.hide(),this._adapter.off("portalInserted",p)};this._adapter.on("portalInserted",p)}this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),s==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(s==="click"||l||s==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent()}},this.calcPosition=function(r,s,l){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(Zn(r)?n._adapter.getTriggerBounding():r)||Object.assign({},Bi),l=(Zn(l)?n._adapter.getPopupContainerRect():l)||Object.assign({},Bi),s=(Zn(s)?n._adapter.getWrapperBounding():s)||Object.assign({},Bi);let u=n.calcPosStyle({triggerRect:r,wrapperRect:s,containerRect:l}),p=n.getProp("position");if(n.getProp("autoAdjustOverflow")){const{position:f,isHeightOverFlow:v,isWidthOverFlow:y}=n.adjustPosIfNeed(p,u,r,s,l);(p!==f||v||y)&&(p=f,u=n.calcPosStyle({triggerRect:r,wrapperRect:s,containerRect:l,position:p,spacing:null,isOverFlow:[v,y]}))}return c&&n._mounted&&n._adapter.setPosition(Object.assign(Object.assign({},u),{position:p})),u},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:s,closeOnEsc:l}=this.getProps();switch(r&&r.key){case"Escape":l&&this._handleEscKeyDown(r);break;case"Tab":if(s){const c=this._adapter.getContainer(),u=this._adapter.getFocusableElements(c);u.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(u,r):this._handleContainerTabKeyDown(u,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:n,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(n),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",s=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,n);case"expand":return this._expandPos(e,s);case"reduce":return this._reducePos(e);default:return this._reversePos(e,n)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(Aa.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(Aa.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(Aa.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(Aa.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return e.concat(n)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return n?e.replace(n,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const n=this._adapter.getEventName(),r={[n.keydown]:l=>{this._handleTriggerKeydown(l)}};let s={};switch(e){case"focus":r[n.focus]=()=>{this.delayShow()},r[n.blur]=()=>{this.delayHide()},s=r;break;case"click":r[n.click]=()=>{this.show()},s={};break;case"hover":r[n.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[n.mouseLeave]=()=>{this.delayHide()},r[n.focus]=()=>{const{disableFocusListener:l}=this.getProps();!l&&this.delayShow()},r[n.blur]=()=>{const{disableFocusListener:l}=this.getProps();!l&&this.delayHide()},s=Object.assign({},r),this.getProp("clickToHide")&&(s[n.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},s[n.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[n.contextMenu]=l=>{l.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:s}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){const n=this.getState("visible"),r=this.getState("isInsert");(n!==e||r!==e)&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,n,r,s){if(e&&n&&r!=null&&s!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(n.width/2)}px ${-s*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(n.width/2)}px) ${-s*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(n.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(n.height/2)}px)`}return`${-r*100}% ${-s*100}%`}return null}calcPosStyle(e){var n;const{spacing:r,isOverFlow:s}=e,{innerWidth:l}=window,c=(Zn(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},Bi),u=(Zn(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},Bi),p=(Zn(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},Bi),f=e.position!=null?e.position:this.getProp("position"),v=r??this.getProp("spacing"),{arrowPointAtCenter:y,showArrow:S,arrowBounding:k}=this.getProps(),T=S&&y;let b=v,w=0;if(typeof v!="number"){const ye=f.includes("top")||f.includes("bottom");b=ye?v.y:v.x,w=ye?v.x:v.y}const D=Te(k,"width",24),O=Te(k,"width",24),N=Te(k,"offsetY",0),M=6,z=6;let L,j,F=0,U=0;const V=c.left+c.width/2,K=c.top+c.height/2,ie=M+D/2,ne=z+O/2,ae=p.height-u.height,J=p.width-u.width,ue=ae>0?ae:0,pe=J>0?J:0,W=s&&s[0],ee=s&&s[1],I=V-u.left<u.right-V,H=K-u.top<u.bottom-K,oe=p.width>l,te=Math.abs(p?.width-((n=this._adapter.getContainer())===null||n===void 0?void 0:n.clientWidth))>1;switch(te&&(b=b*p.width/this._adapter.getContainer().clientWidth),f){case"top":L=ee?I?u.left+p.width/2:u.right-p.width/2+pe:V+w,j=W?u.bottom+ue:c.top-b,F=-.5,U=-1;break;case"topLeft":L=ee?oe?u.left:u.right-p.width:T?V-ie+w:c.left+w,j=W?u.bottom+ue:c.top-b,U=-1;break;case"topRight":L=ee?u.right+pe:T?V+ie+w:c.right+w,j=W?u.bottom+ue:c.top-b,U=-1,F=-1;break;case"left":L=ee?u.right+pe-b+ie:c.left-b,j=W?H?u.top+p.height/2:u.bottom-p.height/2+ue:K+w,F=-1,U=-.5;break;case"leftTop":L=ee?u.right+pe-b+ie:c.left-b,j=W?u.top:T?K-ne+w:c.top+w,F=-1;break;case"leftBottom":L=ee?u.right+pe-b+ie:c.left-b,j=W?u.bottom+ue:T?K+ne+w:c.bottom+w,F=-1,U=-1;break;case"bottom":L=ee?I?u.left+p.width/2:u.right-p.width/2+pe:V+w,j=W?u.top+ne-b:c.top+c.height+b,F=-.5;break;case"bottomLeft":L=ee?oe?u.left:u.right-p.width:T?V-ie+w:c.left+w,j=W?u.top+ne-b:c.top+c.height+b;break;case"bottomRight":L=ee?u.right+pe:T?V+ie+w:c.right+w,j=W?u.top+ne-b:c.top+c.height+b,F=-1;break;case"right":L=ee?u.left-b+ie:c.right+b,j=W?H?u.top+p.height/2:u.bottom-p.height/2+ue:K+w,U=-.5;break;case"rightTop":L=ee?u.left-b+ie:c.right+b,j=W?u.top:T?K-ne+w:c.top+w;break;case"rightBottom":L=ee?u.left-b+ie:c.right+b,j=W?u.bottom+ue:T?K+ne+w:c.bottom+w,U=-1;break;case"leftTopOver":L=c.left-b,j=c.top-b;break;case"rightTopOver":L=c.right+b,j=c.top-b,F=-1;break;case"leftBottomOver":L=c.left-b,j=c.bottom+b,U=-1;break;case"rightBottomOver":L=c.right+b,j=c.bottom+b,F=-1,U=-1;break}const se=this.calcTransformOrigin(f,c,F,U),be=this._adapter.containerIsBody();if(L=L-u.left,j=j-u.top,te&&(L/=p.width/this._adapter.getContainer().clientWidth),te&&(j/=p.height/this._adapter.getContainer().clientHeight),be&&!this._adapter.containerIsRelativeOrAbsolute()){const ye=this._adapter.getDocumentElementBounding();L+=u.left-ye.left,j+=u.top-ye.top}L=be?L:L+u.scrollLeft,j=be?j:j+u.scrollTop;const Se=c.height;if(this.getProp("showArrow")&&!y&&Se<=(O/2+N)*2){const ye=Se/2-(N+O/2);(f.includes("Top")||f.includes("Bottom"))&&!f.includes("Over")&&(j=f.includes("Top")?j+ye:j-ye)}const ve={left:this._roundPixel(L),top:this._roundPixel(j)};let _e="";return F!=null&&(_e+=`translateX(${F*100}%) `,Object.defineProperty(ve,"translateX",{enumerable:!1,value:F})),U!=null&&(_e+=`translateY(${U*100}%) `,Object.defineProperty(ve,"translateY",{enumerable:!1,value:U})),se!=null&&(ve.transformOrigin=se),_e&&(ve.transform=_e),ve}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,n,r){return e<r&&n>r}isOverFlow(e,n,r){return e<r&&n<r}isHalfOverFlow(e,n,r){return e<r||n<r}isHalfAllEnough(e,n,r){return e>=r||n>=r}getReverse(e,n,r,s){return e&&s||r}adjustPosIfNeed(e,n,r,s,l){const{innerWidth:c,innerHeight:u}=window,{margin:p}=this.getProps(),f=typeof p=="number"?p:p.marginLeft,v=typeof p=="number"?p:p.marginTop,y=typeof p=="number"?p:p.marginRight,S=typeof p=="number"?p:p.marginBottom;let k=!1,T=!1;const b=this.getProp("spacing");let w=b,D=0;if(typeof b!="number"){const O=e.includes("top")||e.includes("bottom");w=O?b.y:b.x,D=O?b.x:b.y}if(s.width>0&&s.height>0){const O=r.left,N=r.right,M=r.top,z=r.bottom,L=c-O,j=u-M,F=c-N,U=u-z,V=s.width>r.width,K=s.height>r.height,ie=M-v<s.height+w&&U-S>s.height+w,ne=O-f<s.width+w&&F-y>s.width+w,ae=U-S<s.height+w&&M-v>s.height+w,J=F-y<s.width+w&&O-f>s.width+w;j-S<s.height+w&&z-v>s.height+w,z-v<s.height+w&&j-S>s.height+w;const ue=j<s.height+D&&z>s.height+D,pe=z<s.height+D&&j>s.height+D,W=L<s.width+D&&N>s.width+D,ee=N<s.width+D&&L>s.width+D,I=j<s.height+w&&z>s.height+w,H=z<s.height+w&&j>s.height+w,oe=L<s.width&&N>s.width,te=N<s.width&&L>s.width,se=M-l.top,be=O-l.left,Se=se+r.height,ve=be+r.width,_e=l.bottom-z,ye=l.right-N,xt=_e+r.height,Dt=ye+r.width,lr=this.isReverse(se-v,_e-S,s.height+w),dn=this.isReverse(be-f,ye-y,s.width+w),cr=this.isReverse(_e-S,se-v,s.height+w),Ie=this.isReverse(ye-y,be-f,s.width+w);this.isReverse(xt-S,Se-v,s.height+w),this.isReverse(Se-v,xt-S,s.height+w);const pn=this.isReverse(xt,Se,s.height+D),De=this.isReverse(Se,xt,s.height+D),Ot=this.isReverse(Dt,ve,s.width+D),Fe=this.isReverse(ve,Dt,s.width+D),Me=r.height/2,Ve=r.width/2,Ke=this.isOverFlow(M-v,U-S,s.height+w),Be=this.isOverFlow(O-f,F-y,s.width+w),It=this.isOverFlow(z-v,j-S,s.height+w),Rt=this.isOverFlow(N-f,L-y,s.width+w),xn=this.isHalfOverFlow(z-Me,j-Me,(s.height+D)/2),Nt=this.isHalfOverFlow(N-Ve,L-Ve,(s.width+D)/2),tt=this.isHalfAllEnough(z-Me,j-Me,(s.height+D)/2),Dn=this.isHalfAllEnough(N-Ve,L-Ve,(s.width+D)/2),en=this.isOverFlow(se-v,_e-S,s.height+w),fn=this.isOverFlow(be-f,ye-y,s.width+w),ur=this.isOverFlow(Se-v,xt-S,s.height+w),kt=this.isOverFlow(ve-f,Dt-y,s.width+w),Gt=this.isHalfOverFlow(Se-Me,xt-Me,(s.height+D)/2),Ts=this.isHalfOverFlow(ve-Ve,Dt-Ve,(s.width+D)/2),dr=this.isHalfAllEnough(Se-Me,xt-Me,(s.height+D)/2),pr=this.isHalfAllEnough(ve-Ve,Dt-Ve,(s.width+D)/2),Br=this.getReverse(Ke,en,ie,lr),qr=this.getReverse(Be,fn,ne,dn),Gr=this.getReverse(Ke,en,ae,cr),On=this.getReverse(Be,fn,J,Ie),Wt=this.getReverse(It,ur,ue,pn),Wr=this.getReverse(It,ur,pe,De),Gn=this.getReverse(Rt,kt,W,Ot),Ur=this.getReverse(Rt,kt,ee,Fe),oo=xn&&Gt,so=Nt&&Ts;switch(e){case"top":Br&&(e=this._adjustPos(e,!0)),so&&(Gn||Ur)&&(e=this._adjustPos(e,!0,"expand",Gn?"Right":"Left"));break;case"topLeft":Br&&(e=this._adjustPos(e,!0)),Gn&&V&&(e=this._adjustPos(e)),T&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Br&&(e=this._adjustPos(e,!0)),Ur&&V&&(e=this._adjustPos(e)),T&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":qr&&(e=this._adjustPos(e)),oo&&(Wt||Wr)&&(e=this._adjustPos(e,!1,"expand",Wt?"Bottom":"Top"));break;case"leftTop":qr&&(e=this._adjustPos(e)),Wt&&K&&(e=this._adjustPos(e,!0)),k&&(tt||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":qr&&(e=this._adjustPos(e)),Wr&&K&&(e=this._adjustPos(e,!0)),k&&(tt||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":Gr&&(e=this._adjustPos(e,!0)),so&&(Gn||Ur)&&(e=this._adjustPos(e,!0,"expand",Gn?"Right":"Left"));break;case"bottomLeft":Gr&&(e=this._adjustPos(e,!0)),Gn&&V&&(e=this._adjustPos(e)),T&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":Gr&&(e=this._adjustPos(e,!0)),Ur&&V&&(e=this._adjustPos(e)),T&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":On&&(e=this._adjustPos(e)),oo&&(Wt||Wr)&&(e=this._adjustPos(e,!1,"expand",Wt?"Bottom":"Top"));break;case"rightTop":On&&(e=this._adjustPos(e)),Wt&&K&&(e=this._adjustPos(e,!0)),k&&(tt||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":On&&(e=this._adjustPos(e)),Wr&&K&&(e=this._adjustPos(e,!0)),k&&(tt||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":I&&(e=this._adjustPos(e,!0)),oe&&(e=this._adjustPos(e));break;case"leftBottomOver":H&&(e=this._adjustPos(e,!0)),oe&&(e=this._adjustPos(e));break;case"rightTopOver":I&&(e=this._adjustPos(e,!0)),te&&(e=this._adjustPos(e));break;case"rightBottomOver":H&&(e=this._adjustPos(e,!0)),te&&(e=this._adjustPos(e));break}this.isTB(e)&&(k=Ke&&en,e==="top"||e==="bottom"?T=Nt&&Ts||N<0||F<0:T=Rt&&kt||N<0||F<0),this.isLR(e)&&(T=Be&&fn,e==="left"||e==="right"?k=xn&&Gt||M<0||j<0:k=It&&ur||M<0||j<0)}return{position:e,isHeightOverFlow:k,isWidthOverFlow:T}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.getContainerPosition()||!this._adapter.containerIsBody()||this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:n,disableArrowKeyDown:r}=this.getProps(),s=this._adapter.getContainer(),l=this._adapter.getFocusableElements(s),c=l.length;switch(e&&e.key){case"Escape":Nr(e),n&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&c&&this._handleTriggerArrowUpKeydown(l,e);break;case"ArrowDown":!r&&c&&this._handleTriggerArrowDownKeydown(l,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:n,preventScroll:r}=this.getProps();if(n&&e!=="custom"){const s=this._adapter.getTriggerNode();s&&"focus"in s&&s.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:n}=this.getProps();n!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,n){const{preventScroll:r}=this.getProps(),s=this._adapter.getActiveElement();e[e.length-1]===s&&(e[0].focus({preventScroll:r}),n.preventDefault())}_handleContainerShiftTabKeyDown(e,n){const{preventScroll:r}=this.getProps(),s=this._adapter.getActiveElement();e[0]===s&&(e[e.length-1].focus({preventScroll:r}),n.preventDefault())}_handleTriggerArrowDownKeydown(e,n){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),n.preventDefault()}_handleTriggerArrowUpKeydown(e,n){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),n.preventDefault()}};const HE={PREFIX:`${xe}-tooltip`},Ui={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},ai={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function Ka(i){return`${i}-${new Date().getTime()}-${Math.random()}`}function LH(){var i,e;try{return(e=(i=crypto==null?void 0:crypto.randomUUID)===null||i===void 0?void 0:i.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,n=>(Number(n)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(n)/4).toString(16))}catch{return Ka("semi")}}function cs(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:n=7}=i,r="0123456789abcdefghijklmnopqrstuvwxyz",s=r.length;let l="";for(let c=0;c<n;c++){const u=Math.floor(Math.random()*s);l+=r.charAt(u)}return e?`${e}-${l}`:l}var $f,VS;function VE(){if(VS)return $f;VS=1;var i=Wh(),e=sl(),n=Uh(),r=cn(),s=Ah();function l(c,u,p,f){if(!r(c))return c;u=e(u,c);for(var v=-1,y=u.length,S=y-1,k=c;k!=null&&++v<y;){var T=s(u[v]),b=p;if(T==="__proto__"||T==="constructor"||T==="prototype")return c;if(v!=S){var w=k[T];b=f?f(w,T,k):void 0,b===void 0&&(b=r(w)?w:n(u[v+1])?[]:{})}i(k,T,b),k=k[T]}return c}return $f=l,$f}var Ff,KS;function KE(){if(KS)return Ff;KS=1;var i=VE();function e(n,r,s){return n==null?n:i(n,r,s)}return Ff=e,Ff}var QE=KE();const BC=Ze(QE);var zf,QS;function XE(){if(QS)return zf;QS=1;var i=AC(),e=1,n=4;function r(s,l){return l=typeof l=="function"?l:void 0,i(s,e|n,l)}return zf=r,zf}var YE=XE();const ZE=Ze(YE);class JE{constructor(){this.config={}}}const Ba=new JE;var XS=function(i,e,n,r){function s(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(y){c(y)}}function p(v){try{f(r.throw(v))}catch(y){c(y)}}function f(v){v.done?l(v.value):s(v.value).then(u,p)}f((r=r.apply(i,e||[])).next())})};function Ma(i,e){i&&typeof i.stopPropagation=="function"&&i.stopPropagation(),i.nativeEvent&&typeof i.nativeEvent.stopImmediatePropagation=="function"&&i.nativeEvent.stopImmediatePropagation()}function AH(i,e){return ZE(i,n=>{if(typeof e=="function")return e(n);if(typeof n=="function"||C.isValidElement(n)||Object.prototype.toString.call(n)==="[object Error]")return n;if(Array.isArray(n)&&n.length===0){const r=Object.keys(n);if(r.length){const s=[];r.forEach(l=>{BC(s,l,n[l])});try{rr(Te(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected.
|
|
10
|
+
The maximum length of an array is 4294967295.
|
|
11
|
+
Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return s}else return}})}const MH=(i,e)=>{let{match:n,unmatch:r,callInInit:s=!0}=e;if(typeof window<"u"){let c=function(u){u.matches?n&&n(u):r&&r(u)};const l=window.matchMedia(i);return s&&c(l),Object.prototype.hasOwnProperty.call(l,"addEventListener")?(l.addEventListener("change",c),()=>l.removeEventListener("change",c)):(l.addListener(c),()=>l.removeListener(c))}return()=>{}},An=i=>C.isValidElement(i)&&Te(i.type,"elementType")==="Icon";function qC(){return document?document.activeElement:null}function GC(i){if(!ci(i))return[];const n=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(i.querySelectorAll(n))}function Qh(i,e){return XS(this,void 0,void 0,function*(){if(e===0){yield i();return}else{yield new Promise(n=>{setTimeout(()=>XS(this,void 0,void 0,function*(){yield Qh(i,e-1),n()}),0)});return}})}function ex(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}function sr(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=()=>{var r,s;return((s=(r=Ba?.config)===null||r===void 0?void 0:r.overrideDefaultProps)===null||s===void 0?void 0:s[i])||{}};return new Proxy(Object.assign({},e),{get(r,s,l){const c=n();return s in c?c[s]:Reflect.get(r,s,l)},set(r,s,l,c){return Reflect.set(r,s,l,c)},ownKeys(){const r=n();return Array.from(new Set([...Reflect.ownKeys(e),...Object.keys(r)]))},getOwnPropertyDescriptor(r,s){const l=n();return s in l?Reflect.getOwnPropertyDescriptor(l,s):Reflect.getOwnPropertyDescriptor(r,s)}})}const qn=C.createContext({}),tx=()=>document.body;class vs extends E.PureComponent{constructor(e,n){var r;super(e),r=this,this.initContainer=function(s){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var c,u;try{let p;if(!r.el||!(!((c=r.state)===null||c===void 0)&&c.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const v=(r.props.getPopupContainer||s.getPopupContainer||tx)();return v.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,s,r.props.className),p=v,p}}catch(p){if(!l)throw p}return(u=r.state)===null||u===void 0?void 0:u.container},this.addStyle=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const l of Object.keys(s))r.el.style[l]=s[l]},this.addClass=function(s){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:c}=l;for(var u=arguments.length,p=new Array(u>2?u-2:0),f=2;f<u;f++)p[f-2]=arguments[f];const v=Q(s,...p,{[`${s}-rtl`]:c==="rtl"});r.el&&(r.el.className=v)},this.state={container:this.initContainer(n,!0)}}componentDidMount(){const e=this.initContainer(this.context);e!==this.state.container&&this.setState({container:e})}componentDidUpdate(e){const{didUpdate:n}=this.props;n&&n(e)}componentWillUnmount(){const{container:e}=this.state;e&&e.removeChild(this.el)}render(){const{state:e,props:n}=this;return e.container?hl.createPortal(n.children,this.el):null}}vs.contextType=qn;vs.defaultProps={prefixCls:`${xe}-portal`};vs.propTypes={children:g.node,prefixCls:g.string,getPopupContainer:g.func,className:g.string,didUpdate:g.func};var nx=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const rx=i=>{const{className:e,style:n}=i,r=nx(i,["className","style"]);return C.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:n},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))};var ix=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const ox=i=>{const{className:e,style:n}=i,r=ix(i,["className","style"]);return C.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:n},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),C.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},sx=g.shape({offsetX:g.number,offsetY:g.number,width:g.number,height:g.number});class us extends C.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var n,r;(r=(n=this.props).onAnimationStart)===null||r===void 0||r.call(n)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var n,r;(r=(n=this.props).onAnimationEnd)===null||r===void 0||r.call(n,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,n,r,s;(n=(e=this.props).onAnimationStart)===null||n===void 0||n.call(e),this.props.motion||((s=(r=this.props).onAnimationEnd)===null||s===void 0||s.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,n,r){const s=Object.keys(this.props).filter(l=>!_n(this.props[l],e[l]));s.includes("animationState"),(s.includes("startClassName")||s.includes("replayKey")||s.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var l,c,u,p;(c=(l=this.props).onAnimationStart)===null||c===void 0||c.call(l),this.props.motion||((p=(u=this.props).onAnimationEnd)===null||p===void 0||p.call(u,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}us.defaultProps={motion:!0,replayKey:""};var YS=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const qa=HE.PREFIX,ax=Ui.POSITION_SET,lx=Ui.TRIGGER_SET,cx=["flex","block","table","flow-root","grid"],ux=()=>document.body;class ir extends mt{constructor(e){super(e),this.isAnimating=!1,this.cachedLatestTransitionState="enter",this.setContainerEl=n=>this.containerEl={current:n},this.isSpecial=n=>{if(ci(n))return!!n.disabled;if(E.isValidElement(n)){if(Te(n,"props.disabled"))return Ui.STATUS_DISABLED;const s=Te(n,"props.loading"),l=!Zn(n)&&!Zn(n.type)&&(Te(n,"type.elementType")==="Button"||Te(n,"type.elementType")==="IconButton");if(s&&l)return Ui.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:n}=this.state,{showArrow:r,prefixCls:s,style:l}=this.props;let c=null;const u=Q([`${s}-icon-arrow`]),p=Te(l,"backgroundColor"),f=n?.includes("left")||n?.includes("right")?C.createElement(ox,null):C.createElement(rx,null);return r&&(E.isValidElement(r)?c=r:c=C.cloneElement(f,{className:u,style:{color:p,fill:"currentColor"}})),c},this.handlePortalInnerClick=n=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&Ma(n)},this.handlePortalMouseDown=n=>{this.props.stopPropagation&&Ma(n)},this.handlePortalFocus=n=>{this.props.stopPropagation&&Ma(n)},this.handlePortalBlur=n=>{this.props.stopPropagation&&Ma(n)},this.handlePortalInnerKeyDown=n=>{this.foundation.handleContainerKeydown(n)},this.renderContentNode=n=>{const r={initialFocusRef:this.initialFocusRef};return Yt(n)?n(r):n},this.renderPortal=()=>{const{containerStyle:n={},visible:r,portalEventSet:s,placement:l,displayNone:c,transitionState:u,id:p,isPositionUpdated:f}=this.state,{prefixCls:v,content:y,showArrow:S,style:k,motion:T,role:b,zIndex:w}=this.props,D=this.renderContentNode(y),{className:O}=this.props,N=this.context.direction,M=Q(O,{[`${v}-wrapper`]:!0,[`${v}-wrapper-show`]:r,[`${v}-with-arrow`]:!!S,[`${v}-rtl`]:N==="rtl"}),z=this.renderIcon(),L=mi(n,T?["transformOrigin"]:void 0),j=Te(n,"transformOrigin"),F=Te(k,"opacity",null),U=F||1,V=C.createElement(us,{fillMode:"forwards",animationState:u,motion:T&&f,startClassName:u==="enter"?`${qa}-animation-show`:`${qa}-animation-hide`,onAnimationStart:()=>this.isAnimating=!0,onAnimationEnd:()=>{var K,ie;u==="leave"&&(this.didLeave(),(ie=(K=this.props).afterClose)===null||ie===void 0||ie.call(K)),this.isAnimating=!1}},K=>{let{animationStyle:ie,animationClassName:ne,animationEventsNeedBind:ae}=K;return C.createElement("div",Object.assign({className:Q(M,ne),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie),c?{display:"none"}:{}),{transformOrigin:j}),k),F?{opacity:f?U:"0"}:{})},s,ae,{role:b,"x-placement":l,id:p}),C.createElement("div",{className:`${qa}-content`},D),z)});return C.createElement(vs,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:w}},C.createElement("div",{tabIndex:-1,className:`${xe}-portal-inner`,style:L,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},V))},this.wrapSpan=n=>{const{wrapperClassName:r}=this.props,s=Te(n,"props.style.display"),l=Te(n,"props.block"),c=typeof n=="string",u={};return c||(u.display="inline-block"),(l||cx.includes(s))&&(u.width="100%"),C.createElement("span",{className:r,style:u},n)},this.mergeEvents=(n,r)=>{const s={};return qE(r,(l,c)=>{typeof l=="function"&&(s[c]=function(){l(...arguments),n&&typeof n[c]=="function"&&n[c](...arguments)})}),s},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new UE(this.adapter),this.eventManager=new zC,this.triggerEl=C.createRef(),this.containerEl=C.createRef(),this.initialFocusRef=C.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},getAnimatingState:()=>this.isAnimating,insertPortal:(n,r)=>{var{position:s}=r,l=YS(r,["position"]);this.cachedLatestTransitionState="enter",this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),l)},()=>{setTimeout(()=>{this.cachedLatestTransitionState==="enter"&&this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:n=>{this.setState({triggerEventSet:n})},registerPortalEvent:n=>{this.setState({portalEventSet:n})},getTriggerBounding:()=>{const n=this.adapter.getTriggerNode();return this.triggerEl.current=n,n&&n.getBoundingClientRect()},getPopupContainerRect:()=>{const n=this.getPopupContainer();let r=null;if(n&&ci(n)){const s=WE(n.getBoundingClientRect());r=Object.assign(Object.assign({},s),{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const n=this.getPopupContainer();return window.getComputedStyle(n).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const n=this.containerEl&&this.containerEl.current;return n&&n.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:n=>{var{position:r}=n,s=YS(n,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),s),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(n,r)=>{this.setState({displayNone:n},r)},updatePlacementAttr:n=>{this.setState({placement:n})},togglePortalVisible:(n,r)=>{const s={};s.transitionState=n?"enter":"leave",s.visible=n,this.cachedLatestTransitionState=s.transitionState,this.mounted&&this.setState(s,()=>{r()})},registerClickOutsideHandler:n=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let s=this.triggerEl&&this.triggerEl.current,l=this.containerEl&&this.containerEl.current;s=Jn.findDOMNode(s),l=Jn.findDOMNode(l);const c=r.target,u=r.composedPath&&r.composedPath()||[c],p=this.props.clickTriggerToHide?s&&s.contains(c)||u.includes(s):!1;(s&&!s.contains(c)&&l&&!l.contains(c)&&!(u.includes(l)||u.includes(s))||p)&&(this.props.onClickOutSide(r),n())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:n=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=Ob(r=>{if(!this.mounted)return!1;n(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:n=>{this.props.onVisibleChange(n)},registerScrollHandler:n=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=Ob(r=>{if(!this.mounted)return!1;const s=this.adapter.getTriggerNode();if(r.target.contains(s)){const c={x:r.target.scrollLeft,y:r.target.scrollTop};n(c)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const n=document.body.getAttribute("data-position");if(n){this.containerPosition=n;return}requestAnimationFrame(()=>{const r=this.getPopupContainer();if(r&&ci(r)){const l=window.getComputedStyle(r).getPropertyValue("position");document.body.setAttribute("data-position",l),this.containerPosition=l}})},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let n=this.triggerEl.current;return ci(this.triggerEl.current)||(n=Jn.findDOMNode(this.triggerEl.current)),n},getFocusableElements:n=>GC(n),getActiveElement:()=>qC(),setInitialFocus:()=>{const{preventScroll:n}=this.props,r=Te(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:n})},notifyEscKeydown:n=>{this.props.onEscKeyDown(n)},setId:()=>{this.setState({id:cs()})},getTriggerDOM:()=>this.triggerEl.current?Jn.findDOMNode(this.triggerEl.current):null})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||ux,this.foundation.init(),Qh(()=>{let e=this.triggerEl.current;e&&(e instanceof HTMLElement||(e=hl.findDOMNode(e))),this.foundation.updateStateIfCursorOnTrigger(e)},1)}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,n){rr(this.props.mouseLeaveDelay<this.props.mouseEnterDelay,"[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden."),e.visible!==this.props.visible&&(["hover","focus"].includes(this.props.trigger)?this.props.visible?this.foundation.delayShow():this.foundation.delayHide():this.props.visible?this.foundation.show():this.foundation.hide()),_n(e.rePosKey,this.props.rePosKey)||this.rePosition()}render(){const{isInsert:e,triggerEventSet:n,visible:r,id:s}=this.state,{wrapWhenSpecial:l,role:c,trigger:u}=this.props;let{children:p}=this.props;const f=Object.assign({},Te(p,"props.style")),v={};if(l){const k=this.isSpecial(p);k?(f.pointerEvents="none",k===Ui.STATUS_DISABLED&&(v.cursor="not-allowed"),p=E.cloneElement(p,{style:f}),u!=="custom"&&(p=this.wrapSpan(p)),this.isWrapped=!0):E.isValidElement(p)||(p=this.wrapSpan(p),this.isWrapped=!0)}let y={};c==="dialog"?(y["aria-expanded"]=r?"true":"false",y["aria-haspopup"]="dialog",y["aria-controls"]=s):y["aria-describedby"]=s;const S=C.cloneElement(p,Object.assign(Object.assign(Object.assign(Object.assign({},y),p.props),this.mergeEvents(p.props,n)),{style:Object.assign(Object.assign({},Te(p,"props.style")),v),className:Q(Te(p,"props.className")),ref:k=>{this.triggerEl.current=k;const{ref:T}=p;typeof T=="function"?T(k):T&&typeof T=="object"&&(T.current=k)},tabIndex:p.props.tabIndex||0,"data-popupid":s}));return C.createElement(C.Fragment,null,e?this.renderPortal():null,S)}}ir.contextType=qn;ir.propTypes={children:g.node,motion:g.bool,autoAdjustOverflow:g.bool,position:g.oneOf(ax),getPopupContainer:g.func,mouseEnterDelay:g.number,mouseLeaveDelay:g.number,trigger:g.oneOf(lx).isRequired,className:g.string,wrapperClassName:g.string,clickToHide:g.bool,clickTriggerToHide:g.bool,visible:g.bool,style:g.object,content:g.oneOfType([g.node,g.func]),prefixCls:g.string,onVisibleChange:g.func,onClickOutSide:g.func,spacing:g.oneOfType([g.number,g.object]),margin:g.oneOfType([g.number,g.object]),showArrow:g.oneOfType([g.bool,g.node]),zIndex:g.number,rePosKey:g.oneOfType([g.string,g.number]),arrowBounding:sx,transformFromCenter:g.bool,arrowPointAtCenter:g.bool,stopPropagation:g.bool,role:g.string,wrapWhenSpecial:g.bool,guardFocus:g.bool,returnFocusOnClose:g.bool,preventScroll:g.bool,keepDOM:g.bool};ir.__SemiComponentName__="Tooltip";ir.defaultProps=sr(ir.__SemiComponentName__,{arrowBounding:ai.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:qa,role:"tooltip",mouseEnterDelay:ai.MOUSE_ENTER_DELAY,mouseLeaveDelay:ai.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:me,onClickOutSide:me,spacing:ai.SPACING,margin:ai.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:ai.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:me,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1});var $a={exports:{}},ZS;function dx(){if(ZS)return $a.exports;ZS=1;const i=(e,{target:n=document.body}={})=>{const r=document.createElement("textarea"),s=document.activeElement;r.value=e,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";const l=document.getSelection();let c=!1;l.rangeCount>0&&(c=l.getRangeAt(0)),n.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;let u=!1;try{u=document.execCommand("copy")}catch{}return r.remove(),c&&(l.removeAllRanges(),l.addRange(c)),s&&s.focus(),u};return $a.exports=i,$a.exports.default=i,$a.exports}var px=dx();const fx=Ze(px);function er(){}const hx=C.createContext(null);function Bf(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):i.defaultWidth,r=i.formats[n]||i.formats[i.defaultWidth];return r}}function Uo(i){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",s;if(r==="formatting"&&i.formattingValues){var l=i.defaultFormattingWidth||i.defaultWidth,c=n!=null&&n.width?String(n.width):l;s=i.formattingValues[c]||i.formattingValues[l]}else{var u=i.defaultWidth,p=n!=null&&n.width?String(n.width):i.defaultWidth;s=i.values[p]||i.values[u]}var f=i.argumentCallback?i.argumentCallback(e):e;return s[f]}}function Ho(i){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],l=e.match(s);if(!l)return null;var c=l[0],u=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],p=Array.isArray(u)?mx(u,function(y){return y.test(c)}):gx(u,function(y){return y.test(c)}),f;f=i.valueCallback?i.valueCallback(p):p,f=n.valueCallback?n.valueCallback(f):f;var v=e.slice(c.length);return{value:f,rest:v}}}function gx(i,e){for(var n in i)if(i.hasOwnProperty(n)&&e(i[n]))return n}function mx(i,e){for(var n=0;n<i.length;n++)if(e(i[n]))return n}function yx(i){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var s=r[0],l=e.match(i.parsePattern);if(!l)return null;var c=i.valueCallback?i.valueCallback(l[0]):l[0];c=n.valueCallback?n.valueCallback(c):c;var u=e.slice(s.length);return{value:c,rest:u}}}function kh(i){"@babel/helpers - typeof";return kh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kh(i)}function vx(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Xh(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function bx(i){Xh(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||kh(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var Sx={};function wx(){return Sx}function JS(i,e){var n,r,s,l,c,u,p,f;Xh(1,arguments);var v=wx(),y=vx((n=(r=(s=(l=e?.weekStartsOn)!==null&&l!==void 0?l:e==null||(c=e.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&s!==void 0?s:v.weekStartsOn)!==null&&r!==void 0?r:(p=v.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=bx(i),k=S.getUTCDay(),T=(k<y?7:0)+k-y;return S.setUTCDate(S.getUTCDate()-T),S.setUTCHours(0,0,0,0),S}function ew(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Ph(i,e){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ph(i,e)}function Cx(i,e,n){Xh(2,arguments);var r=JS(i,n),s=JS(e,n);return r.getTime()===s.getTime()}var _x={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},kx=function(e,n,r){var s,l=_x[e];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?s+"内":s+"前":s},Px={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Tx={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Ex={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},xx={date:Bf({formats:Px,defaultWidth:"full"}),time:Bf({formats:Tx,defaultWidth:"full"}),dateTime:Bf({formats:Ex,defaultWidth:"full"})};function tw(i,e,n){var r="eeee p";return Cx(i,e,n)?r:i.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var Dx={lastWeek:tw,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:tw,other:"PP p"},Ox=function(e,n,r,s){var l=Dx[e];return typeof l=="function"?l(n,r,s):l},Ix={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Rx={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Nx={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},jx={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Lx={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ax={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Mx=function(e,n){var r=Number(e);switch(n?.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},$x={ordinalNumber:Mx,era:Uo({values:Ix,defaultWidth:"wide"}),quarter:Uo({values:Rx,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Uo({values:Nx,defaultWidth:"wide"}),day:Uo({values:jx,defaultWidth:"wide"}),dayPeriod:Uo({values:Lx,defaultWidth:"wide",formattingValues:Ax,defaultFormattingWidth:"wide"})},Fx=/^(第\s*)?\d+(日|时|分|秒)?/i,zx=/\d+/i,Bx={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},qx={any:[/^(前)/i,/^(公元)/i]},Gx={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Wx={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Ux={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Hx={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vx={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Kx={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Qx={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Xx={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Yx={ordinalNumber:yx({matchPattern:Fx,parsePattern:zx,valueCallback:function(e){return parseInt(e,10)}}),era:Ho({matchPatterns:Bx,defaultMatchWidth:"wide",parsePatterns:qx,defaultParseWidth:"any"}),quarter:Ho({matchPatterns:Gx,defaultMatchWidth:"wide",parsePatterns:Wx,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ho({matchPatterns:Ux,defaultMatchWidth:"wide",parsePatterns:Hx,defaultParseWidth:"any"}),day:Ho({matchPatterns:Vx,defaultMatchWidth:"wide",parsePatterns:Kx,defaultParseWidth:"any"}),dayPeriod:Ho({matchPatterns:Qx,defaultMatchWidth:"any",parsePatterns:Xx,defaultParseWidth:"any"})},Zx={code:"zh-CN",formatDistance:kx,formatLong:xx,formatRelative:Ox,localize:$x,match:Yx,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Th={code:"zh-CN",currency:"CNY",dateFnsLocale:Zx,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},Tabs:{more:"更多"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条",descend:"点击降序",ascend:"点击升序",cancelSort:"取消排序"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"},Chat:{deleteConfirm:"确认删除该会话吗?",clearContext:"上下文已清除",copySuccess:"复制成功",stop:"停止",copy:"复制",copied:"复制成功",dropAreaText:"将文件放到这里"},UserGuide:{skip:"跳过",next:"下一步",prev:"上一步",finish:"完成"},InputNumber:{},JsonViewer:{search:"查找",replace:"替换",replaceAll:"全部替换"},VideoPlayer:{rateChange:"切换速率至 ${rate}",qualityChange:"切换清晰度至${quality}",routeChange:"切换线路至${route}",mirror:"镜像",cancelMirror:"取消镜像",loading:"加载中...",stall:"加载失败",noResource:"暂无资源",videoError:"视频加载错误"}};class Ar extends E.Component{renderChildren(e,n){const{componentName:r}=this.props;let s=e;e?.code||(s=Th);const l=Te(Th,"dateFnsLocale"),c=Te(s,"dateFnsLocale",l),u=Te(s,"currency");return n(s[r],s.code,c,u)}render(){const{children:e}=this.props;return C.createElement(qn.Consumer,null,n=>{let{locale:r}=n;return C.createElement(hx.Consumer,null,s=>this.renderChildren(r||s,e))})}}Ar.propTypes={componentName:g.string.isRequired,children:g.any};Ar.defaultProps={componentName:""};const Jx="semi";var eD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const WC=C.forwardRef((i,e)=>{const{svg:n,spin:r=!1,rotate:s,style:l,className:c,prefixCls:u=Jx,type:p,size:f="default"}=i,v=eD(i,["svg","spin","rotate","style","className","prefixCls","type","size"]),y=Q(`${u}-icon`,{[`${u}-icon-extra-small`]:f==="extra-small",[`${u}-icon-small`]:f==="small",[`${u}-icon-default`]:f==="default",[`${u}-icon-large`]:f==="large",[`${u}-icon-extra-large`]:f==="extra-large",[`${u}-icon-spinning`]:r===!0,[`${u}-icon-${p}`]:!!p},c),S={};return Number.isSafeInteger(s)&&(S.transform=`rotate(${s}deg)`),Object.assign(S,l),C.createElement("span",Object.assign({role:"img",ref:e,"aria-label":p,className:y,style:S},v),n)});WC.elementType="Icon";const qt=(i,e)=>{const n=C.forwardRef((r,s)=>C.createElement(WC,Object.assign({svg:C.createElement(i),type:e,ref:s},r)));return n.elementType="Icon",n};function tD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor"}))}const yl=qt(tD,"alert_circle");function nD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}))}const vl=qt(nD,"alert_triangle");function rD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 7.6a1.5 1.5 0 0 1 2.12 0l5.66 5.65 5.66-5.65a1.5 1.5 0 1 1 2.12 2.12l-6.72 6.72a1.5 1.5 0 0 1-2.12 0L4.08 9.72a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))}const iD=qt(rD,"chevron_down");function oD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))}const sD=qt(oD,"chevron_right");function aD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.04-6.14a1.5 1.5 0 0 1-2.13.04l-2.87-2.78L9.26 17A1.5 1.5 0 0 1 7.1 14.9l2.78-2.87L7 9.26A1.5 1.5 0 1 1 9.1 7.1l2.87 2.78L14.74 7A1.5 1.5 0 0 1 16.9 9.1l-2.78 2.87L17 14.74c.6.58.61 1.53.04 2.12Z",fill:"currentColor"}))}const UC=qt(aD,"clear");function lD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{d:"M17.66 19.78a1.5 1.5 0 0 0 2.12-2.12L14.12 12l5.66-5.66a1.5 1.5 0 0 0-2.12-2.12L12 9.88 6.34 4.22a1.5 1.5 0 1 0-2.12 2.12L9.88 12l-5.66 5.66a1.5 1.5 0 0 0 2.12 2.12L12 14.12l5.66 5.66Z",fill:"currentColor"}))}const bl=qt(lD,"close");function cD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{d:"M7 4c0-1.1.9-2 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-1V8c0-2-1-3-3-3H7V4Z",fill:"currentColor"}),E.createElement("path",{d:"M5 7a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H5Z",fill:"currentColor"}))}const uD=qt(cD,"copy");function dD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7 3.7a1 1 0 0 0-1.4-1.4L17.3 5.26A11.59 11.59 0 0 0 12 4C5 4 1 10 1 12c0 1.18 1.38 3.73 3.94 5.64L2.3 20.3a1 1 0 1 0 1.42 1.42l18-18ZM7.84 14.77l1.46-1.47a3 3 0 0 1 4-4l1.47-1.46a5 5 0 0 0-6.93 6.93Z",fill:"currentColor"}),E.createElement("path",{d:"M12 20c-1.22 0-2.35-.18-3.38-.5l2.57-2.57a5 5 0 0 0 5.75-5.75l3.56-3.56C22.13 9.27 23 11.07 23 12c0 2-4 8-11 8Z",fill:"currentColor"}))}const pD=qt(dD,"eye_closed_solid");function fD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12s4 8 11 8 11-6 11-8-4-8-11-8Zm5 8a5 5 0 1 1-10 0 5 5 0 0 1 10 0Zm-5 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"}))}const hD=qt(fD,"eye_opened");function gD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm-.17-8.4c-.86 0-1.3-.53-1.3-1.23 0-1.05.53-1.72 1.74-2.64l.06-.05c.83-.62 1.4-1.06 1.4-1.85 0-.9-.83-1.4-1.76-1.4-.76 0-1.34.28-1.8.87-.33.34-.6.53-1.05.53C8.38 8.83 8 8.3 8 7.7c0-.6.34-1.22.88-1.68A5.15 5.15 0 0 1 12.28 5c2.71 0 4.62 1.34 4.62 3.64 0 1.68-1 2.5-2.2 3.31-.8.59-1.17.93-1.48 1.62-.33.6-.58 1.04-1.4 1.04Zm-.02 4.17c-.94 0-1.71-.6-1.71-1.54 0-.94.77-1.55 1.7-1.55.95 0 1.7.6 1.7 1.55 0 .93-.75 1.54-1.7 1.54Z",fill:"currentColor"}))}const mD=qt(gD,"help_circle");function yD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor"}))}const Yh=qt(yD,"info_circle");function vD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2a8.5 8.5 0 1 0 4.86 15.48l4.08 4.08a1.5 1.5 0 1 0 2.12-2.12l-4.08-4.08A8.5 8.5 0 0 0 10.5 2ZM5 10.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z",fill:"currentColor"}))}const bD=qt(vD,"search");function SD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor"}))}const HC=qt(SD,"tick");function wD(i){return E.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},i),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor"}))}const Zh=qt(wD,"tick_circle"),Rr={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,UP:38,DOWN:40},Jh="Enter",$H="Escape";function eg(i){return Te(i,"key")===Jh}const qf=al.PREFIX;class tg extends C.PureComponent{constructor(e){super(e),this.copy=n=>{const{content:r,duration:s,onCopy:l}=this.props,c=fx(r);l&&l(n,r,c),this.setCopied(r,s)},this.setCopied=(n,r)=>{this.setState({copied:!0,item:n}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:n}=this.props;return typeof n<"u"?n:C.createElement(Ar,{componentName:"Typography"},r=>C.createElement("span",null,C.createElement(HC,null),r.copied))},this.renderCopyIcon=()=>{const{icon:n}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:l=>eg(l)&&this.copy(l)},s=C.createElement("a",{className:`${qf}-action-copy-icon`},C.createElement(uD,Object.assign({onClick:this.copy},r)));return C.isValidElement(n)?C.cloneElement(n,r):s},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:n,forwardRef:r,copyTip:s,render:l}=this.props,{copied:c}=this.state,u=Q(n,{[`${qf}-action-copy`]:!c,[`${qf}-action-copied`]:c});return l?l(c,this.copy,this.props):C.createElement(Ar,{componentName:"Typography"},p=>C.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:u,ref:r},c?this.renderSuccessTip():C.createElement(ir,{content:typeof s<"u"?s:p.copy},this.renderCopyIcon())))}}tg.propTypes={content:g.string,onCopy:g.func,successTip:g.node,copyTip:g.node,duration:g.number,style:g.object,className:g.string,icon:g.node};tg.defaultProps={content:"",onCopy:er,duration:3,style:{},className:""};const VC={PREFIX:`${xe}-popover`,ARROW:`${xe}-popover-icon-arrow`},KC={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"]},fi={ARROW_BOUNDING:Object.assign(Object.assign({},ai.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var CD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const QC=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:n,arrowStyle:r,popStyle:s}=i,l=CD(i,["position","className","arrowStyle","popStyle"]),c=e.indexOf("top")===0||e.indexOf("bottom")===0,u=Q(n,VC.ARROW),p=Te(r,"borderOpacity"),f=Te(r,"backgroundColor",Te(s,"backgroundColor")),v=Te(r,"borderColor",Te(s,"borderColor")),y=Object.assign(Object.assign({},l),{width:fi.ARROW_BOUNDING.width,height:fi.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:u});return c?C.createElement("svg",Object.assign({},y),C.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",style:{fill:v,opacity:p}}),C.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",style:{fill:f}})):C.createElement("svg",Object.assign({},y),C.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",style:{fill:v,opacity:p}}),C.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",style:{fill:f}}))};QC.propTypes={position:g.string,className:g.string,arrowStyle:g.object,popStyle:g.object};var _D=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const kD=KC.POSITION_SET,PD=KC.TRIGGER_SET;class zn extends C.PureComponent{constructor(e){super(e),this.focusTrigger=()=>{var n;(n=this.tooltipRef.current)===null||n===void 0||n.focusTrigger()},this.renderPopCard=n=>{let{initialFocusRef:r}=n;const{content:s,contentClassName:l,prefixCls:c}=this.props,{direction:u}=this.context,p=Q(c,l,{[`${c}-rtl`]:u==="rtl"}),f=this.renderContentNode({initialFocusRef:r,content:s});return C.createElement("div",{className:p},C.createElement("div",{className:`${c}-content`},f))},this.renderContentNode=n=>{const{initialFocusRef:r,content:s}=n,l={initialFocusRef:r};return Yt(s)?s(l):s},this.tooltipRef=C.createRef()}render(){const e=this.props,{children:n,prefixCls:r,showArrow:s,arrowStyle:l={},arrowBounding:c,position:u,style:p,trigger:f}=e,v=_D(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:y}=this.props;const S={position:u,className:"",popStyle:p,arrowStyle:l},k=s?C.createElement(QC,Object.assign({},S)):!1;gl(y)&&(y=s?fi.SPACING_WITH_ARROW:fi.SPACING);const T=f==="click"||f==="custom"?"dialog":"tooltip";return C.createElement(ir,Object.assign({guardFocus:!0,ref:this.tooltipRef},v,{trigger:f,position:u,style:p,content:this.renderPopCard,prefixCls:r,spacing:y,showArrow:k,arrowBounding:c,role:T}),n)}}zn.contextType=qn;zn.propTypes={children:g.node,content:g.oneOfType([g.node,g.func]),visible:g.bool,autoAdjustOverflow:g.bool,motion:g.bool,position:g.oneOf(kD),margin:g.oneOfType([g.number,g.object]),mouseEnterDelay:g.number,mouseLeaveDelay:g.number,trigger:g.oneOf(PD).isRequired,contentClassName:g.oneOfType([g.string,g.array]),onVisibleChange:g.func,onClickOutSide:g.func,style:g.object,spacing:g.oneOfType([g.number,g.object]),zIndex:g.number,showArrow:g.bool,arrowStyle:g.shape({borderColor:g.string,backgroundColor:g.string,borderOpacity:g.oneOfType([g.string,g.number])}),arrowPointAtCenter:g.bool,arrowBounding:g.object,prefixCls:g.string,guardFocus:g.bool,disableArrowKeyDown:g.bool};zn.__SemiComponentName__="Popover";zn.defaultProps=sr(zn.__SemiComponentName__,{arrowBounding:fi.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:fi.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:VC.PREFIX,onClickOutSide:me,onEscKeyDown:me,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});let Ue;function Gf(i){if(!i)return 0;const e=i.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function TD(i){return Array.prototype.slice.apply(i).map(n=>`${n}: ${i.getPropertyValue(n)};`).join("")}const ED=function(i,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0;if(n.length===0)return"";Ue||(Ue=document.createElement("div"),Ue.setAttribute("aria-hidden","true"),document.body.appendChild(Ue));const p=window.getComputedStyle(i),f=TD(p),v=Gf(p.lineHeight),y=Math.round(v*(e+1)+Gf(p.paddingTop)+Gf(p.paddingBottom));Ue.setAttribute("style",f),Ue.style.position="fixed",Ue.style.left="0",p.getPropertyValue("width")==="auto"&&i.offsetWidth&&(Ue.style.width=`${i.offsetWidth}px`),Ue.style.height="auto",Ue.style.top="-999999px",Ue.style.zIndex="-1000",u&&(Ue.style.fontWeight="600"),Ue.style.textOverflow="clip",Ue.style.webkitLineClamp="none",Ue.innerHTML="";function S(){const N=Ue.scrollWidth<=Ue.offsetWidth,M=Ue.scrollHeight<y;return e===1?N&&M:M}const k=document.createElement("span"),T=document.createTextNode(n);if(k.appendChild(T),l.length>0){const N=document.createTextNode(l);k.appendChild(N)}Ue.appendChild(k),Object.values(mi(r,"expand")).map(N=>N&&Ue.appendChild(N.cloneNode(!0)));function b(){Ue.innerHTML="",Ue.appendChild(k),Object.values(r).map(N=>N&&Ue.appendChild(N.cloneNode(!0)))}function w(N,M){const z=N.length;return M?c==="end"?N.slice(0,M)+s:N.slice(0,M)+s+N.slice(z-M,z):s}function D(N,M){let z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.length,j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const F=Math.floor((z+L)/2),U=w(M,F);if(N.textContent=U,z>=L-1&&L>0)for(let V=L;V>=z;V-=1){const K=w(M,V);if(N.textContent=K,S())return K}else if(L===0)return s;return S()?D(N,M,F,L,F):D(N,M,z,F,j)}let O=n;return S()||(b(),O=D(T,n,0,c==="middle"?Math.floor(n.length/2):n.length)),Ue.innerHTML="",O},XC=C.createContext("normal");var Qa;(function(i){i.Width="width",i.Height="height",i.All="all"})(Qa||(Qa={}));class Hi extends mt{constructor(e){var n;super(e),n=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return hl.findDOMNode(this.childNode||this)}catch{return null}},this.handleResizeEventTriggered=r=>{var s,l,c,u;if(this.props.observerProperty===Qa.All)(l=(s=this.props).onResize)===null||l===void 0||l.call(s,r);else{const p=[];for(const f of r)this.formerPropertyValue.has(f.target)?f.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(f.target)&&(this.formerPropertyValue.set(f.target,f.contentRect[this.props.observerProperty]),p.push(f)):(this.formerPropertyValue.set(f.target,f.contentRect[this.props.observerProperty]),p.push(f));p.length>0&&((u=(c=this.props).onResize)===null||u===void 0||u.call(c,p))}},this.observeElement=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const s=n.getElement();if(n.observer||(n.observer=new ResizeObserver(n.handleResizeEventTriggered)),!(s&&s instanceof Element)){n.observer.disconnect();return}s===n.element&&!r||(n.observer.disconnect(),n.element=s,n.observer.observe(s),n.props.observeParent&&s.parentNode&&s.parentNode.ownerDocument&&s.parentNode.ownerDocument.defaultView&&s.parentNode instanceof s.parentNode.ownerDocument.defaultView.HTMLElement&&(n._parentNode=s.parentNode,n.observer.observe(n._parentNode)))},this.mergeRef=(r,s)=>{this.childNode=s,typeof r=="function"?r(s):typeof r=="object"&&r&&"current"in r&&(r.current=s)},globalThis.ResizeObserver&&(this.observer=new ResizeObserver(this.handleResizeEventTriggered))}componentDidMount(){var e;(e=this.observeElement)===null||e===void 0||e.call(this)}componentDidUpdate(e){var n;(n=this.observeElement)===null||n===void 0||n.call(this,this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}render(){const e=C.Children.only(this.props.children),{ref:n}=e;return C.cloneElement(e,{ref:r=>this.mergeRef(n,r)})}}Hi.propTypes={onResize:g.func,observeParent:g.bool,observerProperty:g.string,delayTick:g.number};Hi.defaultProps={onResize:()=>{},observeParent:!1,observerProperty:"all",delayTick:0};var Wf=function(i,e,n,r){function s(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(y){c(y)}}function p(v){try{f(r.throw(v))}catch(y){c(y)}}function f(v){v.done?l(v.value):s(v.value).then(u,p)}f((r=r.apply(i,e||[])).next())})},xD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const ft=al.PREFIX,DD="...",OD=(i,e)=>{const{mark:n,code:r,underline:s,strong:l,link:c,disabled:u}=i;let p=e;const f=(v,y)=>{let S={};v&&(typeof v=="object"&&(S=Object.assign({},v)),p=C.createElement(y,S,p))};return f(n,"mark"),f(r,"code"),f(s&&!c,"u"),f(l,"strong"),f(i.delete,"del"),f(c,u?"span":"a"),p};class yi extends E.Component{constructor(e){super(e),this.observerTakingEffect=!1,this.onResize=n=>Wf(this,void 0,void 0,function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise(r=>{this.rafId=window.requestAnimationFrame(()=>Wf(this,void 0,void 0,function*(){yield this.getEllipsisState(),r()}))})}),this.canUseCSSEllipsis=()=>{const{copyable:n}=this.props,{expandable:r,expandText:s,pos:l,suffix:c}=this.getEllipsisOpt();return!r&&ss(s)&&!n&&l==="end"&&!c.length},this.shouldTruncated=n=>!n||n<1?!1:n<=1?this.compareSingleRow():this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.compareSingleRow=()=>{if(!(document&&document.createRange))return!1;const n=this.wrapperRef.current,r=n.getBoundingClientRect().width,s=Array.from(n.childNodes),l=document.createRange(),c=s.reduce((u,p)=>{var f;return l.selectNodeContents(p),u+((f=l.getBoundingClientRect().width)!==null&&f!==void 0?f:0)},0);return l.detach(),c>r},this.showTooltip=()=>{var n,r;const{isOverflowed:s,isTruncated:l,expanded:c}=this.state,{showTooltip:u,expandable:p,expandText:f}=this.getEllipsisOpt(),v=this.canUseCSSEllipsis(),y=!c&&(v?s:l),k=!p&&ss(f)&&y&&u;if(!k)return k;const T={type:"tooltip"};return typeof u=="object"?u.type&&u.type.toLowerCase()==="popover"?GT({opts:{showArrow:!0}},u,{opts:{className:Q({[`${ft}-ellipsis-popover`]:!0,[(n=u?.opts)===null||n===void 0?void 0:n.className]:!!(!((r=u?.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},T),u):T},this.onHover=()=>{if(this.canUseCSSEllipsis()){const{rows:r,suffix:s,pos:l}=this.getEllipsisOpt(),c=this.shouldTruncated(r);this.setState({isOverflowed:c,isTruncated:!1});return}},this.getEllipsisState=()=>Wf(this,void 0,void 0,function*(){const{rows:n,suffix:r,pos:s}=this.getEllipsisOpt(),{children:l,strong:c}=this.props;if(!this.wrapperRef||!this.wrapperRef.current){yield this.onResize();return}const{expanded:u}=this.state;if(this.canUseCSSEllipsis())return;if(mT(l))return new Promise(S=>{this.setState({isTruncated:!1,isOverflowed:!1},S)});if(rr("children"in this.props&&typeof l!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!n||n<0||u)return;const f={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},v=Array.isArray(l)?l.join(""):String(l),y=ED(this.wrapperRef.current,n,v,f,DD,r,s,c);return new Promise(S=>{this.setState({isOverflowed:!1,ellipsisContent:y,isTruncated:v!==y},S)})}),this.toggleOverflow=n=>{const{onExpand:r,expandable:s,collapsible:l}=this.getEllipsisOpt(),{expanded:c}=this.state;r&&r(!c,n),(s&&!c||l&&c)&&this.setState({expanded:!c})},this.getEllipsisOpt=()=>{const{ellipsis:n}=this.props;return n?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:n.expandable?this.expandStr:void 0,collapseText:n.collapsible?this.collapseStr:void 0},typeof n=="object"?n:null):{}},this.renderExpandable=()=>{const{expanded:n,isTruncated:r}=this.state;if(!r)return null;const{expandText:s,expandable:l,collapseText:c,collapsible:u}=this.getEllipsisOpt(),p=!l&&ss(s),f=!u&&ss(c);let v;return!n&&!p?v=s:n&&!f&&(v=c),!p||!f?C.createElement("a",{role:"button",tabIndex:0,className:`${ft}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":v,onClick:this.toggleOverflow,onKeyPress:y=>eg(y)&&this.toggleOverflow(y)},v):null},this.getEllipsisStyle=()=>{const{ellipsis:n,component:r}=this.props;if(!n)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:s}=this.getEllipsisOpt(),{expanded:l}=this.state,c=!l&&this.canUseCSSEllipsis(),u=Q({[`${ft}-ellipsis`]:!0,[`${ft}-ellipsis-single-line`]:s===1,[`${ft}-ellipsis-multiple-line`]:s>1,[`${ft}-ellipsis-multiple-line-text`]:s>1&&r==="span",[`${ft}-ellipsis-overflow-ellipsis`]:s===1&&c,[`${ft}-ellipsis-overflow-ellipsis-text`]:s===1&&c&&r==="span"}),p=c&&s>1?{WebkitLineClamp:s}:{};return{ellipsisCls:u,ellipsisStyle:p}},this.renderEllipsisText=n=>{const{suffix:r}=n,{children:s}=this.props,{isTruncated:l,expanded:c,ellipsisContent:u}=this.state;return c||!l?C.createElement("span",{onMouseEnter:this.onHover},s,r&&r.length?r:null):C.createElement("span",{onMouseEnter:this.onHover},u,r)},this.state={editable:!1,copied:!1,isOverflowed:!1,ellipsisContent:e.children,expanded:!1,isTruncated:!1,prevChildren:null},this.wrapperRef=C.createRef(),this.expandRef=C.createRef(),this.copyRef=C.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize().then(()=>Qh(()=>this.observerTakingEffect=!0,1))}static getDerivedStateFromProps(e,n){const{prevChildren:r}=n,s={};return s.prevChildren=e.children,e.ellipsis&&r!==e.children&&(s.isOverflowed=!1,s.ellipsisContent=e.children,s.expanded=!1,s.isTruncated=!0),s}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}renderOperations(){return C.createElement(C.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:n,children:r}=this.props;if(!n)return null;const s=(e=n?.content)!==null&&e!==void 0?e:r;let l,c=!1;Array.isArray(s)?(l="",s.forEach(p=>{typeof p=="object"&&(c=!0),l+=String(p)})):(typeof s!="object"||(c=!0),l=String(s)),rr(c,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const u=Object.assign({content:l,duration:3},typeof n=="object"?n:null);return C.createElement(tg,Object.assign({},u,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:n}=this.props,r=n==="inherit"?this.context:n;if(!e)return null;const s=r==="small"?"small":"default";return C.createElement("span",{className:`${ft}-icon`,"x-semi-prop":"icon"},An(e)?C.cloneElement(e,{size:s}):e)}renderContent(){const e=this.props,{component:n,children:r,className:s,type:l,spacing:c,disabled:u,style:p,ellipsis:f,icon:v,size:y,link:S,heading:k,weight:T}=e,b=xD(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),w=mi(b,["strong","editable","mark","copyable","underline","code","delete"]),D=y==="inherit"?this.context:y,O=this.renderIcon(),N=this.getEllipsisOpt(),{ellipsisCls:M,ellipsisStyle:z}=this.getEllipsisStyle();let L=f?this.renderEllipsisText(N):r;const j=Q({[`${ft}-link-text`]:S,[`${ft}-link-underline`]:this.props.underline&&S});L=OD(this.props,C.createElement(C.Fragment,null,O,this.props.link?C.createElement("span",{className:j},L):L));const F=/^h[1-6]$/,U=lt(k)&&F.test(k),V=Q(s,M,{[`${ft}-${l}`]:l&&!S,[`${ft}-${D}`]:D,[`${ft}-link`]:S,[`${ft}-disabled`]:u,[`${ft}-${c}`]:c,[`${ft}-${k}`]:U,[`${ft}-${k}-weight-${T}`]:U&&T&&isNaN(Number(T))}),K=Object.assign(Object.assign({},isNaN(Number(T))?{}:{fontWeight:T}),p);return C.createElement(ll,Object.assign({className:V,style:Object.assign(Object.assign({},K),z),component:n,forwardRef:this.wrapperRef},w),L,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,n=this.showTooltip(),r=this.renderContent();if(n){const{type:s,opts:l,renderTooltip:c}=n;return Yt(c)?c(e,r):s.toLowerCase()==="popover"?C.createElement(zn,Object.assign({content:e,position:"top"},l),r):C.createElement(ir,Object.assign({content:e,position:"top"},l),r)}else return r}render(){var e=this;const{size:n}=this.props,r=n==="inherit"?this.context:n,s=C.createElement(XC.Provider,{value:r},C.createElement(Ar,{componentName:"Typography"},l=>(this.expandStr=l.expand,this.collapseStr=l.collapse,this.renderTipWrapper())));return this.props.ellipsis?C.createElement(Hi,{onResize:function(){e.observerTakingEffect&&e.onResize(...arguments)},observeParent:!0,observerProperty:Qa.Width},s):s}}yi.propTypes={children:g.node,copyable:g.oneOfType([g.shape({text:g.string,onCopy:g.func,successTip:g.node,copyTip:g.node}),g.bool]),delete:g.bool,disabled:g.bool,ellipsis:g.oneOfType([g.shape({rows:g.number,expandable:g.bool,expandText:g.string,onExpand:g.func,suffix:g.string,showTooltip:g.oneOfType([g.shape({type:g.string,opts:g.object}),g.bool]),collapsible:g.bool,collapseText:g.string,pos:g.oneOf(["end","middle"])}),g.bool]),mark:g.bool,underline:g.bool,link:g.oneOfType([g.object,g.bool]),spacing:g.oneOf(_t.SPACING),strong:g.bool,size:g.oneOf(_t.SIZE),type:g.oneOf(_t.TYPE),style:g.object,className:g.string,icon:g.oneOfType([g.node,g.string]),heading:g.string,component:g.string};yi.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};yi.contextType=XC;class Sl extends E.PureComponent{render(){return C.createElement(yi,Object.assign({component:"span"},this.props))}}Sl.propTypes={copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,icon:g.oneOfType([g.node,g.string]),ellipsis:g.oneOfType([g.object,g.bool]),mark:g.bool,underline:g.bool,link:g.oneOfType([g.object,g.bool]),strong:g.bool,type:g.oneOf(_t.TYPE),size:g.oneOf(_t.SIZE),style:g.object,className:g.string,code:g.bool,component:g.string,weight:g.number};Sl.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var ID=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let ng=class extends E.PureComponent{render(){const e=this.props,{heading:n}=e,r=ID(e,["heading"]),s=_t.HEADING.indexOf(n)!==-1?`h${n}`:"h1";return C.createElement(yi,Object.assign({component:s,heading:s},r))}};ng.propTypes={copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,ellipsis:g.oneOfType([g.object,g.bool]),mark:g.bool,link:g.oneOfType([g.object,g.bool]),underline:g.bool,strong:g.bool,type:g.oneOf(_t.TYPE),heading:g.oneOf(_t.HEADING),style:g.object,className:g.string,component:g.string,weight:g.oneOfType([g.oneOf(_t.WEIGHT),g.number])};ng.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const RD=al.PREFIX;let rg=class extends E.PureComponent{render(){const{className:e}=this.props,n=Q(e,`${RD}-paragraph`);return C.createElement(yi,Object.assign({component:"p"},this.props,{className:n}))}};rg.propTypes={copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,ellipsis:g.oneOfType([g.object,g.bool]),mark:g.bool,link:g.oneOfType([g.object,g.bool]),underline:g.bool,strong:g.bool,type:g.oneOf(_t.TYPE),size:g.oneOf(_t.SIZE),spacing:g.oneOf(_t.SPACING),style:g.object,className:g.string,component:g.string};rg.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",size:"normal",spacing:"normal",style:{},className:""};class ND{constructor(e,n,r,s,l){this.ruleMethods={"bytes-decimal":c=>{const u=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let p=0;for(;c>=1e3;)c/=1e3,p++;return`${this.truncatePrecision(c)} ${u[p]}`},"bytes-binary":c=>{const u=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let p=0;for(;c>=1024;)c/=1024,p++;return`${this.truncatePrecision(c)} ${u[p]}`},percentages:c=>`${this.truncatePrecision(c*100)}%`,exponential:c=>{const p=c.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(p[0]))}e${p[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof l<"u",this.content=e,this.rule=n,this.precision=r,this.truncate=s,this.parser=l}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?Uf(this.content).map(e=>Hf(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?Uf(this.content).filter(e=>Hf(e)).map(e=>this.truncatePrecision(e)).join(","):Uf(this.content).map(e=>Hf(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const n=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=n.toString().split(".");if(r.length===1)return n.toFixed(this.precision);const s=r[1].length;return s<this.precision?`${r[0]}.${r[1]}${"0".repeat(this.precision-s)}`:n.toString()}}function Uf(i){const e=/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g;return i.match(e)||[]}function Hf(i){return!(isNaN(Number(i))||i.replace(/\s+/g,"")==="")}class ig extends E.PureComponent{formatNodeDFS(e){return Array.isArray(e)||(e=[e]),e=e.map(n=>typeof n=="string"||typeof n=="number"?new ND(String(n),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof n=="function"?this.formatNodeDFS(n()):typeof n=="object"&&"children"in n.props?Object.assign(Object.assign({},n),{props:Object.assign(Object.assign({},n.props),{children:this.formatNodeDFS(n.props.children)})}):n),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),C.createElement(yi,Object.assign({component:"span"},e))}}ig.propTypes={rule:g.oneOf(_t.RULE),precision:g.number,truncate:g.oneOf(_t.TRUNCATE),parser:g.func,copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,icon:g.oneOfType([g.node,g.string]),mark:g.bool,underline:g.bool,link:g.oneOfType([g.object,g.bool]),strong:g.bool,type:g.oneOf(_t.TYPE),size:g.oneOf(_t.SIZE),style:g.object,className:g.string,code:g.bool,component:g.string};ig.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Ye=ll;Ye.Text=Sl;Ye.Title=ng;Ye.Paragraph=rg;Ye.Numeral=ig;var Vf,nw;function jD(){if(nw)return Vf;nw=1;var i=Fr(),e=Tn(),n="[object Number]";function r(s){return typeof s=="number"||e(s)&&i(s)==n}return Vf=r,Vf}var LD=jD();const Lr=Ze(LD),AD=`${xe}-spin`,MD={PREFIX:AD},$D={SIZE:["small","middle","large"]};class og extends Et{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},og.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:n}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const s=this;this._timer=setTimeout(()=>{s._adapter.setState({loading:e,delay:0})},n)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}var FD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let rw=-1;function YC(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:n,customIconCls:r}=i,s=FD(i,["id","className","customIconCls"]),l=Te(Ba,"config.overrideDefaultProps.Spin.indicator");if(l&&C.isValidElement(l))return C.cloneElement(l,{className:Q({[r]:r,[n]:n})});let c=e;gl(c)&&(rw++,c=rw);const u=`linearGradient-${c}`;return C.createElement("svg",Object.assign({},s,{className:n,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),C.createElement("defs",null,C.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:u},C.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),C.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),C.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),C.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},C.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),C.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${u})`,strokeWidth:"4",strokeLinecap:"round"})))}var zD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const oi=MD.PREFIX;class Mr extends mt{constructor(e){super(e),this.foundation=new og(this.adapter),this.state={delay:e.delay,loading:!0}}static getDerivedStateFromProps(e){return e.delay?e.spinning===!1?{delay:0,loading:!1}:{delay:e.delay}:{loading:e.spinning}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setLoading:e=>{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:n}=this.props,{loading:r}=this.state;return r?C.createElement("div",{className:`${oi}-wrapper`},e?C.createElement("div",{className:`${oi}-animate`,"x-semi-prop":"indicator"},e):C.createElement(YC,null),n?C.createElement("div",{"x-semi-prop":"tip"},n):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:n,style:r,wrapperClassName:s,childStyle:l,size:c}=e,u=zD(e,["children","style","wrapperClassName","childStyle","size"]),{loading:p}=this.state,f=Q(oi,s,{[`${oi}-${c}`]:c,[`${oi}-block`]:n,[`${oi}-hidden`]:!p});return C.createElement("div",Object.assign({className:f,style:r},this.getDataAttr(u)),this.renderSpin(),C.createElement("div",{className:`${oi}-children`,style:l,"x-semi-prop":"children"},n))}}Mr.propTypes={size:g.oneOf($D.SIZE),spinning:g.bool,children:g.node,indicator:g.node,delay:g.number,tip:g.node,wrapperClassName:g.string,childStyle:g.object,style:g.object};Mr.__SemiComponentName__="Spin";Mr.defaultProps=sr(Mr.__SemiComponentName__,{size:"middle",spinning:!0,children:null,indicator:null,delay:0});const BD={PREFIX:`${xe}-input`},wl={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},BH={};function qD(i){const{value:e,maxLength:n,getValueLength:r}=i;if(Yt(r)){let s=0,l=e.length;for(;s<l;){const c=s+Math.floor((l-s)/2),u=e.slice(0,c+1);r(u)>n?l=c:s=c+1}return e.slice(0,s)}else return e.slice(0,n)}class sg extends Et{static get inputDefaultAdapter(){return{notifyChange:me,setValue:me}}constructor(e){super(Object.assign(Object.assign({},sg.inputDefaultAdapter),e)),this.compositionEnter=!1,this.getNextValue=n=>{const{maxLength:r,minLength:s,getValueLength:l}=this._adapter.getProps();return Yt(l)?r?this.handleVisibleMaxLength(n):(s&&this.handleVisibleMinLength(n),n):n},this.changeInput=(n,r)=>{this._isControlledComponent()?this._adapter.notifyChange(n,r):(this._adapter.setValue(n),this._adapter.notifyChange(n,r))},this.handleCompositionStart=n=>{this.compositionEnter=!0,this._adapter.notifyCompositionStart(n)},this.handleCompositionEnd=n=>{const r=n.target.value;this.compositionEnter=!1,this._adapter.notifyCompositionEnd(n);const{getValueLength:s,maxLength:l,minLength:c}=this.getProps();if(Yt(s)){if(l){const u=this.handleVisibleMaxLength(r);u!==r&&this.changeInput(u,n)}c&&this.handleVisibleMinLength(r)}},this.handleCompositionUpdate=n=>{this._adapter.notifyCompositionUpdate(n)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}setValue(e){this._adapter.setValue(e)}handleChange(e,n){let r=e;this.compositionEnter||(r=this.getNextValue(r)),this.changeInput(r,n)}handleVisibleMinLength(e){const{minLength:n,getValueLength:r}=this._adapter.getProps(),{minLength:s}=this._adapter.getStates();if(Lr(n)&&n>=0&&Yt(r)&<(e)){const l=r(e);if(l<n){const c=e.length+(n-l);c!==s&&this._adapter.setMinLength(c)}else s!==n&&this._adapter.setMinLength(n)}}handleVisibleMaxLength(e){const{maxLength:n,getValueLength:r}=this._adapter.getProps();return Lr(n)&&n>=0&&Yt(r)&<(e)&&r(e)>n?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,n)):e}handleTruncateValue(e,n){const{getValueLength:r}=this._adapter.getProps();return qD({value:e,maxLength:n,getValueLength:r})}handleClear(e){let n=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!n||typeof n!="object")&&(n={}),BC(n,wl.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,n),this._adapter.notifyClear(n),n&&this.stopPropagation(n)}handleClick(e){const{disabled:n}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();n||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const n=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!n)}handleInputType(e){const n=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return n==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:n}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(n,e)}handleFocus(e){const{value:n}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(n,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===Jh&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:n,isHovering:r}=this._adapter.getStates(),{showClear:s,disabled:l,showClearIgnoreDisabled:c}=this._adapter.getProps();return e&&s&&(!l||c)&&(n||r)}handleClickPrefixOrSuffix(e){const{disabled:n}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!n&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&Yt(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e?.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}}var GD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const je=BD.PREFIX,WD=wl.SIZE,UD=wl.STATUS,HD=wl.MODE;class ag extends mt{constructor(e){super(e),this.handleClear=r=>{this.foundation.handleClear(r)},this.handleClick=r=>{this.foundation.handleClick(r)},this.handleMouseOver=r=>{this.setState({isHovering:!0})},this.handleMouseLeave=r=>{this.setState({isHovering:!1})},this.handleModeChange=r=>{this.foundation.handleModeChange(r)},this.handleClickEye=r=>{this.foundation.handleClickEye(r)},this.handleMouseDown=r=>{this.foundation.handleMouseDown(r)},this.handleMouseUp=r=>{this.foundation.handleMouseUp(r)},this.handleModeEnterPress=r=>{this.foundation.handleModeEnterPress(r)},this.handleClickPrefixOrSuffix=r=>{this.foundation.handleClickPrefixOrSuffix(r)},this.handlePreventMouseDown=r=>{this.foundation.handlePreventMouseDown(r)};const n="value"in e?e.value:e.defaultValue;this.state={value:n,cachedValue:e.value,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=C.createRef(),this.prefixRef=C.createRef(),this.suffixRef=C.createRef(),this.foundation=new sg(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,n=this.inputRef&&this.inputRef.current;n&&n.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,n)=>this.props.onChange(e,n),notifyBlur:(e,n)=>this.props.onBlur(n),notifyFocus:(e,n)=>this.props.onFocus(n),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),notifyCompositionStart:e=>this.props.onCompositionStart(e),notifyCompositionEnd:e=>this.props.onCompositionEnd(e),notifyCompositionUpdate:e=>this.props.onCompositionUpdate(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,n){const r={};return e.value!==n.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:n}=this.props;e.mode!==n&&this.handleModeChange(n)}componentDidMount(){const{disabled:e,autoFocus:n,preventScroll:r}=this.props;!e&&(n||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const n=Q({[`${je}-prepend`]:!0,[`${je}-prepend-text`]:e&<(e),[`${je}-prepend-icon`]:An(e)});return C.createElement("div",{className:n,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const n=Q({[`${je}-append`]:!0,[`${je}-append-text`]:e&<(e),[`${je}-append-icon`]:An(e)});return C.createElement("div",{className:n,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=Q(`${je}-clearbtn`),{clearIcon:n}=this.props;return this.foundation.isAllowClear()?C.createElement("div",{className:e,onMouseDown:this.handleClear},n||C.createElement(UC,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:n,disabled:r}=this.props,s=Q(`${je}-modebtn`),l=e?C.createElement(pD,null):C.createElement(hD,null),c=n==="password"&&!r,u=e?"Show password":"Hidden password";return c?C.createElement("div",{role:"button",tabIndex:0,"aria-label":u,className:s,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},l):null}renderPrefix(){const{prefix:e,insetLabel:n,insetLabelId:r}=this.props,s=e||n;if(!s)return null;const l=Q({[`${je}-prefix`]:!0,[`${je}-inset-label`]:n,[`${je}-prefix-text`]:s&<(s),[`${je}-prefix-icon`]:An(s)});return C.createElement("div",{className:l,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},s)}renderSuffix(e){const{suffix:n,hideSuffix:r}=this.props;if(!n)return null;const s=Q({[`${je}-suffix`]:!0,[`${je}-suffix-text`]:n&<(n),[`${je}-suffix-icon`]:An(n),[`${je}-suffix-hidden`]:e&&!!r});return C.createElement("div",{className:s,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},n)}getInputRef(){const{forwardRef:e}=this.props;if(!ss(e)){if(typeof e=="function")return n=>{e(n),this.inputRef={current:n}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:n,addonBefore:r,autoFocus:s,clearIcon:l,className:c,disabled:u,defaultValue:p,placeholder:f,prefix:v,mode:y,insetLabel:S,insetLabelId:k,validateStatus:T,type:b,readonly:w,size:D,suffix:O,style:N,showClear:M,onEnterPress:z,onClear:L,hideSuffix:j,inputStyle:F,forwardRef:U,maxLength:V,getValueLength:K,preventScroll:ie,borderless:ne,showClearIgnoreDisabled:ae,onlyBorder:J}=e,ue=GD(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled","onlyBorder"]),{value:pe,isFocus:W,minLength:ee}=this.state,I=this.foundation.isAllowClear(),H=An(O),oe=this.getInputRef(),te=`${je}-wrapper`,se=Q(te,c,{[`${je}-wrapper__with-prefix`]:v||S,[`${je}-wrapper__with-suffix`]:O,[`${je}-wrapper__with-suffix-hidden`]:I&&!!j,[`${je}-wrapper__with-suffix-icon`]:H,[`${je}-wrapper__with-append`]:r,[`${je}-wrapper__with-prepend`]:n,[`${je}-wrapper__with-append-only`]:r&&!n,[`${je}-wrapper__with-prepend-only`]:!r&&n,[`${te}-readonly`]:w,[`${te}-disabled`]:u,[`${te}-warning`]:T==="warning",[`${te}-error`]:T==="error",[`${te}-focus`]:W,[`${te}-clearable`]:M,[`${te}-modebtn`]:y==="password",[`${te}-hidden`]:b==="hidden",[`${te}-${D}`]:D,[`${je}-borderless`]:ne,[`${je}-only_border`]:J!=null}),be=Q(je,{[`${je}-${D}`]:D,[`${je}-disabled`]:u,[`${je}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${je}-sibling-modebtn`]:y==="password"}),Se=pe??"",ve=Object.assign(Object.assign({},ue),{style:F,className:be,disabled:u,readOnly:w,type:this.foundation.handleInputType(b),placeholder:f,onInput:ye=>this.foundation.handleInput(ye),onChange:ye=>this.foundation.handleChange(ye.target.value,ye),onFocus:ye=>this.foundation.handleFocus(ye),onBlur:ye=>this.foundation.handleBlur(ye),onKeyUp:ye=>this.foundation.handleKeyUp(ye),onKeyDown:ye=>this.foundation.handleKeyDown(ye),onKeyPress:ye=>this.foundation.handleKeyPress(ye),onCompositionStart:this.foundation.handleCompositionStart,onCompositionEnd:this.foundation.handleCompositionEnd,onCompositionUpdate:this.foundation.handleCompositionUpdate,value:Se});Yt(K)||(ve.maxLength=V),ee&&(ve.minLength=ee),T==="error"&&(ve["aria-invalid"]="true");let _e=Object.assign({},N);return J!==void 0&&(_e=Object.assign({borderWidth:J},N)),C.createElement("div",{className:se,style:_e,onMouseEnter:ye=>this.handleMouseOver(ye),onMouseLeave:ye=>this.handleMouseLeave(ye),onClick:ye=>this.handleClick(ye)},this.renderPrepend(),this.renderPrefix(),C.createElement("input",Object.assign({},ve,{ref:oe})),this.renderClearBtn(),this.renderSuffix(I),this.renderModeBtn(),this.renderAppend())}}ag.propTypes={"aria-label":g.string,"aria-labelledby":g.string,"aria-invalid":g.bool,"aria-errormessage":g.string,"aria-describedby":g.string,"aria-required":g.bool,addonBefore:g.node,addonAfter:g.node,clearIcon:g.node,prefix:g.node,suffix:g.node,mode:g.oneOf(HD),value:g.any,defaultValue:g.any,disabled:g.bool,readonly:g.bool,autoFocus:g.bool,type:g.string,showClear:g.bool,hideSuffix:g.bool,placeholder:g.any,size:g.oneOf(WD),className:g.string,style:g.object,validateStatus:g.oneOf(UD),onClear:g.func,onChange:g.func,onBlur:g.func,onFocus:g.func,onInput:g.func,onKeyDown:g.func,onKeyUp:g.func,onKeyPress:g.func,onEnterPress:g.func,onCompositionStart:g.func,onCompositionEnd:g.func,onCompositionUpdate:g.func,insetLabel:g.node,insetLabelId:g.string,inputStyle:g.object,getValueLength:g.func,preventScroll:g.bool,borderless:g.bool};ag.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:me,onChange:me,onBlur:me,onFocus:me,onInput:me,onKeyDown:me,onKeyUp:me,onKeyPress:me,onEnterPress:me,onCompositionStart:me,onCompositionEnd:me,onCompositionUpdate:me,validateStatus:"default",borderless:!1};const as=C.forwardRef((i,e)=>C.createElement(ag,Object.assign({},i,{forwardRef:e})));var VD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class ZC extends C.PureComponent{render(){const e=this.props,{triggerRender:n,componentName:r}=e,s=VD(e,["triggerRender","componentName"]);return n(Object.assign({},s))}}ZC.propTypes={triggerRender:g.func.isRequired,componentName:g.string,componentProps:g.object,value:g.any,inputValue:g.string,placeholder:g.oneOfType([g.string,g.array]),className:g.string,style:g.object};const KD={PREFIX:`${xe}-highlight`},QD=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");class XD extends Et{constructor(e){super(Object.assign({},e)),this.findAll=n=>{let{autoEscape:r=!0,caseSensitive:s=!1,searchWords:l,sourceString:c}=n;lt(l)&&(l=[l]);const u=this.findChunks({autoEscape:r,caseSensitive:s,searchWords:l,sourceString:c}),p=this.combineChunks({chunks:u});return this.fillInChunks({chunksToHighlight:p,totalLength:c?c.length:0})},this.findChunks=n=>{let{autoEscape:r,caseSensitive:s,searchWords:l,sourceString:c}=n;return l.map(u=>typeof u=="string"?{text:u}:u).filter(u=>u.text).reduce((u,p)=>{let f=p.text;r&&(f=QD(f));const v=new RegExp(f,s?"g":"gi");let y;for(;y=v.exec(c);){const S=y.index,k=v.lastIndex;k>S&&u.push({highlight:!0,start:S,end:k,className:p.className,style:p.style}),y.index===v.lastIndex&&v.lastIndex++}return u},[])},this.combineChunks=n=>{let{chunks:r}=n;return r.sort((s,l)=>s.start-l.start).reduce((s,l)=>{if(s.length===0)return[l];{const c=s.pop();if(l.start<=c.end){const u=Math.max(c.end,l.end);s.push({highlight:!0,start:c.start,end:u,className:c.className||l.className,style:Object.assign(Object.assign({},c.style),l.style)})}else s.push(c,l);return s}},[])},this.fillInChunks=n=>{let{chunksToHighlight:r,totalLength:s}=n;const l=[],c=(u,p,f,v,y)=>{p-u>0&&l.push({start:u,end:p,highlight:f,className:v,style:y})};if(r.length===0)c(0,s,!1);else{let u=0;r.forEach(p=>{c(u,p.start,!1),c(p.start,p.end,!0,p.className,p.style),u=p.end}),c(u,s,!1)}return l}}}const YD=KD.PREFIX;class lg extends E.PureComponent{constructor(){super(...arguments),this.getHighLightTextHTML=e=>{let{sourceString:n="",searchWords:r=[],option:s={autoEscape:!0,caseSensitive:!1}}=e;const l=new XD().findAll(Object.assign({sourceString:n,searchWords:r},s)),c=s.highlightTag||"mark",u=s.highlightClassName||"",p=s.highlightStyle||{};return l.map((f,v)=>{const{end:y,start:S,highlight:k,style:T,className:b}=f,w=n.substr(S,y-S);return k?C.createElement(c,{style:Object.assign(Object.assign({},p),T),className:`${u} ${b||""}`.trim(),key:w+v},w):w})}}render(){const{searchWords:e,sourceString:n,component:r,highlightClassName:s,highlightStyle:l,caseSensitive:c,autoEscape:u}=this.props,p=Q({[`${YD}-tag`]:!0},s),f={highlightTag:r,highlightClassName:p,highlightStyle:l,caseSensitive:c,autoEscape:u};return this.getHighLightTextHTML({sourceString:n,searchWords:e,option:f})}}lg.propTypes={style:g.object,className:g.string,autoEscape:g.bool,caseSensitive:g.bool,sourceString:g.string,searchWords:g.arrayOf(g.string),highlightStyle:g.object,highlightClassName:g.string,component:g.string};lg.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""};const ZD={PREFIX:`${xe}-avatar`},Ji={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"]};class JD extends Et{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=n=>{const{target:r}=n;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{rr(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)},this.changeScale=()=>{const{gap:n}=this.getProps(),r=this._adapter.getAvatarNode(),s=r?.firstChild,[l,c]=[r?.offsetWidth||0,s?.offsetWidth||0];if(l!==0&&c!==0&&n*2<l){const u=l-n*2>c?1:(l-n*2)/c;this._adapter.setScale(u)}}}init(){const{children:e}=this.getProps();typeof e=="string"&&this.changeScale()}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}const eO=i=>{let{gradientStart:e,gradientEnd:n}=i;const r=cs();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"52",viewBox:"0 0 51 52",fill:"none"},C.createElement("g",{filter:"url(#filter0_d_6_2)"},C.createElement("path",{d:"M40.4918 46.5592C44.6795 43.176 46.261 34.1333 47.5301 25.6141C49.5854 11.8168 39.6662 1 25.8097 1C11.2857 1 3 11.4279 3 25.3518C3 33.7866 6.29361 43.8947 10.4602 46.5592C12.5868 47.9192 12.5868 47.9051 25.8097 47.9192C38.3651 47.9282 38.5352 48.14 40.4918 46.5592Z",fill:`url(#${r})`})),C.createElement("defs",null,C.createElement("filter",{id:"filter0_d_6_2",x:"0.789215",y:"0.447304",width:"49.2216",height:"51.3549",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},C.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),C.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),C.createElement("feOffset",{dy:"1.65809"}),C.createElement("feGaussianBlur",{stdDeviation:"1.10539"}),C.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),C.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6_2"}),C.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6_2",result:"shape"})),C.createElement("linearGradient",{id:r,x1:"17.671",y1:"31.7392",x2:"17.671",y2:"47.9333",gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:e}),C.createElement("stop",{offset:"1",stopColor:n}))))};var tO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const nO=Ji.SIZE,rO=Ji.SHAPE,iO=Ji.COLOR,Le=ZD.PREFIX;let Ki=class extends mt{constructor(e){super(e),this.handleFocusVisible=n=>{this.foundation.handleFocusVisible(n)},this.handleBlur=n=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:n,onClick:r,imgAttr:s,src:l,srcSet:c,alt:u}=this.props,{isImgExist:p}=this.state;let f=n;const v=r!==er,y=l&&p,S={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(y){const k=v?`clickable Avatar: ${u}`:u,T=Object.assign(Object.assign({src:l,srcSet:c,onError:this.handleError},s),{className:Q({[`${Le}-no-focus-visible`]:v})}),b=v?Object.assign(Object.assign({},T),S):T;f=C.createElement("img",Object.assign({alt:k},b))}else if(typeof n=="string"){const k=u??n,b={role:"img","aria-label":v?`clickable Avatar: ${k}`:k,className:Q(`${Le}-label`,{[`${Le}-no-focus-visible`]:v})},w=v?Object.assign(Object.assign({},b),S):b,D={transform:`scale(${this.state.scale})`};f=C.createElement("span",{className:`${Le}-content`,style:D},C.createElement("span",Object.assign({},w,{"x-semi-prop":"children"}),n))}return f},this.renderBottomSlot=()=>{var n,r;if(!this.props.bottomSlot)return null;if(this.props.bottomSlot.render)return this.props.bottomSlot.render();const s=(n=this.props.bottomSlot.render)!==null&&n!==void 0?n:()=>{var l;const c={};return this.props.bottomSlot.bgColor&&(c.backgroundColor=this.props.bottomSlot.bgColor),this.props.bottomSlot.textColor&&(c.color=this.props.bottomSlot.textColor),C.createElement("span",{style:c,className:Q(`${Le}-bottom_slot-shape_${this.props.bottomSlot.shape}`,`${Le}-bottom_slot-shape_${this.props.bottomSlot.shape}-${this.props.size}`,(l=this.props.bottomSlot.className)!==null&&l!==void 0?l:"")},this.props.bottomSlot.text)};return C.createElement("div",{className:Q([`${Le}-bottom_slot`]),style:(r=this.props.bottomSlot.style)!==null&&r!==void 0?r:{}},s())},this.renderTopSlot=()=>{var n,r,s,l;if(!this.props.topSlot)return null;if(this.props.topSlot.render)return this.props.topSlot.render();const c={};return this.props.topSlot.textColor&&(c.color=this.props.topSlot.textColor),C.createElement("div",{style:(n=this.props.topSlot.style)!==null&&n!==void 0?n:{},className:Q([`${Le}-top_slot-wrapper`,(r=this.props.topSlot.className)!==null&&r!==void 0?r:"",{[`${Le}-animated`]:this.props.contentMotion}])},C.createElement("div",{className:Q([`${Le}-top_slot-bg`,`${Le}-top_slot-bg-${this.props.size}`])},C.createElement("div",{className:Q([`${Le}-top_slot-bg-svg`,`${Le}-top_slot-bg-svg-${this.props.size}`])},C.createElement(eO,{gradientStart:(s=this.props.topSlot.gradientStart)!==null&&s!==void 0?s:"var(--semi-color-primary)",gradientEnd:(l=this.props.topSlot.gradientEnd)!==null&&l!==void 0?l:"var(--semi-color-primary)"}))),C.createElement("div",{className:Q([`${Le}-top_slot`])},C.createElement("div",{style:c,className:Q([`${Le}-top_slot-content`,`${Le}-top_slot-content-${this.props.size}`])},this.props.topSlot.text)))},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1,scale:1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this),this.avatarRef=C.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:n}=this.props,r=n;this.setState({hoverContent:r},()=>{const{onMouseEnter:s}=this.props;s&&s(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:n}=this.props;n&&n(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})},setScale:e=>{this.setState({scale:e})},getAvatarNode:()=>{var e;return(e=this.avatarRef)===null||e===void 0?void 0:e.current}})}componentDidMount(){this.foundation=new JD(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const n=new Image(0,0);n.src=this.props.src,n.onload=()=>{this.setState({isImgExist:!0})},n.onerror=()=>{this.setState({isImgExist:!1})},n.onabort=()=>{this.setState({isImgExist:!1})}}typeof this.props.children=="string"&&this.props.children!==e.children&&this.foundation.changeScale()}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:n}=this.props;switch(e.key){case"Enter":n(e),Nr(e);break;case"Escape":e.target.blur();break}}render(){var e;const n=this.props,{shape:r,children:s,size:l,color:c,className:u,hoverMask:p,onClick:f,imgAttr:v,src:y,srcSet:S,style:k,alt:T,gap:b,bottomSlot:w,topSlot:D,border:O,contentMotion:N}=n,M=tO(n,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:z,hoverContent:L,focusVisible:j}=this.state;let F={};Ji.SIZE.includes(l)||(F={width:l,height:l}),F=Object.assign(Object.assign({},F),k);const U=w||D||O,V={onClick:f,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},K=y&&z,ie=Q(Le,{[`${Le}-${r}`]:r,[`${Le}-${l}`]:l,[`${Le}-${c}`]:c&&!K,[`${Le}-img`]:K,[`${Le}-focus`]:j,[`${Le}-animated`]:N},u),ne=L?C.createElement("div",{className:`${Le}-hover`,"x-semi-prop":"hoverContent"},L):null;let ae=C.createElement("span",Object.assign({},M,{style:U?{}:F,className:ie},U?{}:V,{role:"listitem",ref:this.avatarRef}),this.getContent(),ne);if(O){const J={};typeof O=="object"&&O?.color&&(J.borderColor=O?.color),ae=C.createElement("div",{style:Object.assign({position:"relative"},F)},ae,C.createElement("span",{style:J,className:Q([`${Le}-additionalBorder`,`${Le}-additionalBorder-${l}`,{[`${Le}-${r}`]:r}])}),typeof this.props.border=="object"&&this.props.border.motion&&C.createElement("span",{style:J,className:Q([`${Le}-additionalBorder`,`${Le}-additionalBorder-${l}`,{[`${Le}-${r}`]:r,[`${Le}-additionalBorder-animated`]:typeof this.props.border=="object"&&((e=this.props.border)===null||e===void 0?void 0:e.motion)}])}))}return U?C.createElement("span",Object.assign({className:Q([`${Le}-wrapper`]),style:F},V),ae,D&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&r==="circle"&&this.renderTopSlot(),w&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&this.renderBottomSlot()):ae}};Ki.__SemiComponentName__="Avatar";Ki.defaultProps=sr(Ki.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:er,onMouseEnter:er,onMouseLeave:er});Ki.propTypes={children:g.node,color:g.oneOf(iO),shape:g.oneOf(rO),size:g.oneOf(nO),hoverMask:g.node,className:g.string,style:g.object,gap:g.number,imgAttr:g.object,src:g.string,srcSet:g.string,alt:g.string,onError:g.func,onClick:g.func,onMouseEnter:g.func,onMouseLeave:g.func,bottomSlot:g.shape({render:g.func,shape:g.oneOf(["circle","square"]),text:g.node,bgColor:g.string,textColor:g.string,className:g.string,style:g.object}),topSlot:g.shape({render:g.func,gradientStart:g.string,gradientEnd:g.string,text:g.node,textColor:g.string,className:g.string,style:g.object}),border:g.oneOfType([g.shape({color:g.string,motion:g.bool}),g.bool]),contentMotion:g.bool};Ki.elementType="Avatar";const cg={PREFIX:`${xe}-button`},vi={sizes:["default","small","large"],iconPositions:["left","right"],htmlTypes:["button","reset","submit"],btnTypes:["primary","secondary","tertiary","warning","danger"],themes:["solid","borderless","light","outline"],DEFAULT_ICON_POSITION:"left"},oO={SIZE:["extra-small","small","default","large","extra-large","custom"]};var sO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const aO=vi.sizes,{htmlTypes:lO,btnTypes:cO}=vi;let bs=class extends E.PureComponent{render(){const e=this.props,{children:n,block:r,htmlType:s,loading:l,circle:c,className:u,style:p,disabled:f,size:v,theme:y,type:S,prefixCls:k,iconPosition:T}=e,b=sO(e,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),w=Object.assign(Object.assign({disabled:f},mi(b,["x-semi-children-alias"])),{className:Q(k,{[`${k}-${S}`]:!f&&S,[`${k}-disabled`]:f,[`${k}-size-large`]:v==="large",[`${k}-size-small`]:v==="small",[`${k}-light`]:y==="light",[`${k}-block`]:r,[`${k}-circle`]:c,[`${k}-borderless`]:y==="borderless",[`${k}-outline`]:y==="outline",[`${k}-${S}-disabled`]:f&&S},u),type:s,"aria-disabled":f}),D={};return u&&u.includes("-with-icon")||(D["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),C.createElement("button",Object.assign({},w,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:p}),C.createElement("span",Object.assign({className:Q(`${k}-content`,this.props.contentClassName),onClick:O=>f&&O.stopPropagation()},D),n))}};bs.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:er,onClick:er,onMouseEnter:er,onMouseLeave:er,prefixCls:cg.PREFIX};bs.propTypes={children:g.node,disabled:g.bool,prefixCls:g.string,style:g.object,size:g.oneOf(aO),type:g.oneOf(cO),block:g.bool,onClick:g.func,onMouseDown:g.func,circle:g.bool,loading:g.bool,htmlType:g.oneOf(lO),theme:g.oneOf(vi.themes),className:g.string,onMouseEnter:g.func,onMouseLeave:g.func,"aria-label":g.string,contentClassName:g.string};var uO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const dO=oO.SIZE;class zr extends E.PureComponent{render(){const e=this.props,{children:n,iconPosition:r,iconSize:s,iconStyle:l,style:c,icon:u,noHorizontalPadding:p,theme:f,className:v,prefixCls:y,loading:S}=e,k=uO(e,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),T=Object.assign({},c);Array.isArray(p)?(p.includes("left")&&(T.paddingLeft=0),p.includes("right")&&(T.paddingRight=0)):p===!0?(T.paddingLeft=0,T.paddingRight=0):typeof p=="string"&&(p==="left"&&(T.paddingLeft=0),p==="right"&&(T.paddingRight=0));let b=null,w=null;S&&!k.disabled?w=C.createElement(YC,{customIconCls:`${y}-content-loading-icon`}):C.isValidElement(u)&&(w=u);const D=Q({[`${y}-content-left`]:r==="right",[`${y}-content-right`]:r==="left"}),O=this.props["x-semi-children-alias"]||"children",N=n!=null?C.createElement("span",{className:D,"x-semi-prop":O},n):null;r==="left"?b=C.createElement(C.Fragment,null,w,N):b=C.createElement(C.Fragment,null,N,w);const M=Q(v,`${y}-with-icon`,{[`${y}-with-icon-only`]:N==null||N==="",[`${y}-loading`]:S});return C.createElement(bs,Object.assign({},k,{className:M,theme:f,style:T}),b)}}zr.defaultProps={iconPosition:vi.DEFAULT_ICON_POSITION,prefixCls:cg.PREFIX,loading:!1,noHorizontalPadding:!1,onMouseEnter:me,onMouseLeave:me};zr.elementType="IconButton";zr.propTypes={iconStyle:g.object,style:g.object,loading:g.bool,prefixCls:g.string,icon:g.oneOfType([g.object,g.string,g.node]),iconSize:g.oneOf(dO),noHorizontalPadding:g.oneOfType([g.bool,g.string,g.array]),children:g.node,theme:g.string,iconPosition:g.oneOf(vi.iconPositions),className:g.string,onMouseEnter:g.func,onMouseLeave:g.func};const pO={PREFIX:`${xe}-banner`},fO={TYPE:["info","success","danger","warning"]};class ug extends Et{constructor(e){super(Object.assign(Object.assign({},ug.defaultAdapter),e))}removeBanner(e){this._adapter.notifyClose(e),this._adapter.setVisible()}}const Qt=pO.PREFIX,hO=fO.TYPE;class dg extends mt{constructor(e){super(e),this.remove=n=>{n&&n.stopPropagation(),this.foundation.removeBanner(n)},this.state={visible:!0},rr("target"in this.props,"[Semi Banner] 'target' has been deprecated, please write JSX directly instead.")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:()=>{this.setState({visible:!1})},notifyClose:e=>{const{onClose:n}=this.props;n(e)}})}componentDidMount(){this.foundation=new ug(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}renderCloser(){const{closeIcon:e}=this.props;return e===null?e:C.createElement(zr,{className:`${Qt}-close`,onClick:this.remove,icon:e||C.createElement(bl,{"x-semi-prop":"closeIcon","aria-hidden":!0}),theme:"borderless",size:"small",type:"tertiary","aria-label":"Close"})}renderIcon(){const{type:e,icon:n}=this.props;let s={warning:C.createElement(vl,{size:"large","aria-label":"warning"}),success:C.createElement(Zh,{size:"large","aria-label":"success"}),info:C.createElement(Yh,{size:"large","aria-label":"info"}),danger:C.createElement(yl,{size:"large","aria-label":"danger"})}[e];const l=Q({[`${Qt}-icon`]:!0});return typeof n<"u"&&(s=n),s?C.createElement("div",{className:l,"x-semi-prop":"icon"},s):null}render(){const{children:e,type:n,className:r,style:s,bordered:l,title:c,description:u,fullMode:p}=this.props,{visible:f}=this.state,v=Q(Qt,r,{[`${Qt}-${n}`]:n,[`${Qt}-full`]:p,[`${Qt}-in-container`]:!p,[`${Qt}-bordered`]:!p&&l});return f?C.createElement("div",Object.assign({className:v,style:s,role:"alert"},this.getDataAttr(this.props)),C.createElement("div",{className:`${Qt}-content-wrapper`},C.createElement("div",{className:`${Qt}-content`},this.renderIcon(),C.createElement("div",{className:`${Qt}-content-body`},c?C.createElement(Ye.Title,{heading:5,className:`${Qt}-title`,component:"div","x-semi-prop":"title"},c):null,u?C.createElement(Ye.Paragraph,{className:`${Qt}-description`,component:"div","x-semi-prop":"description"},u):null)),this.renderCloser()),e?C.createElement("div",{className:`${Qt}-extra`,"x-semi-prop":"children"},e):null):null}}dg.propTypes={fullMode:g.bool,type:g.oneOf(hO),title:g.node,description:g.node,icon:g.node,closeIcon:g.node,children:g.node,style:g.object,className:g.string,onClose:g.func,bordered:g.bool};dg.defaultProps={onClose:()=>{},type:"info",fullMode:!0};let et=class extends C.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),n=!!e.icon,r=!!e.loading,s=!!e.disabled;return n||r&&!s?C.createElement(zr,Object.assign({},e)):C.createElement(bs,Object.assign({},e))}};et.__SemiComponentName__="Button";et.propTypes=Object.assign(Object.assign({},bs.propTypes),zr.propTypes);et.defaultProps=sr(et.__SemiComponentName__);et.elementType="Button";var gO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Vo=cg.PREFIX,mO=vi.sizes;class pg extends mt{getInnerWithLine(e){const n=[];return e.length>1?(e.slice(0,-1).forEach((r,s)=>{const l=Te(r,"type.elementType")==="Button",c=Te(r,"props"),{type:u,theme:p,disabled:f}=c??{};if(l&&p!=="outline"){const v=Q(`${Vo}-group-line`,`${Vo}-group-line-${p??"light"}`,`${Vo}-group-line-${u??"primary"}`,{[`${Vo}-group-line-disabled`]:f});n.push(r,C.createElement("span",{className:v,key:`line-${s}`}))}else n.push(r)}),n.push(e.slice(-1)),n):e}render(){const e=this.props,{children:n,disabled:r,size:s,type:l,className:c,style:u,"aria-label":p}=e,f=gO(e,["children","disabled","size","type","className","style","aria-label"]);let v,y=[];const S=Q(`${Vo}-group`,c);return n&&(v=(Array.isArray(n)?n:[n]).map((k,T)=>{var b;return E.isValidElement(k)?E.cloneElement(k,Object.assign(Object.assign(Object.assign({disabled:r,size:s,type:l},k.props),f),{key:(b=k.key)!==null&&b!==void 0?b:T})):k}),y=this.getInnerWithLine(v)),C.createElement("div",{className:S,style:u,role:"group","aria-label":p},y)}}pg.propTypes={children:g.node,disabled:g.bool,type:g.string,size:g.oneOf(mO),theme:g.oneOf(vi.themes),"aria-label":g.string};pg.defaultProps={size:"default"};const JC={PREFIX:`${xe}-card`},yO={SHADOWS:["hover","always"]};var vO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Ko=JC.PREFIX;class e0 extends E.PureComponent{render(){const e=this.props,{avatar:n,className:r,description:s,style:l,title:c}=e,u=vO(e,["avatar","className","description","style","title"]),p=Q(`${Ko}-meta`,r),f=n&&C.createElement("div",{className:`${Ko}-meta-avatar`},n),v=c&&C.createElement("div",{className:`${Ko}-meta-wrapper-title`},c),y=s&&C.createElement("div",{className:`${Ko}-meta-wrapper-description`},s),S=c||s?C.createElement("div",{className:`${Ko}-meta-wrapper`},v,y):null;return C.createElement("div",Object.assign({},u,{className:p,style:l}),f,S)}}e0.propTypes={avatar:g.node,className:g.string,description:g.node,style:g.object,title:g.node};const fg={PREFIX:`${xe}-skeleton`};var bO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const SO=Ji.SIZE,wO=Ji.SHAPE,Cl=i=>e=>n=>C.createElement(e,Object.assign({type:i},n));class eo extends E.PureComponent{render(){const e=this.props,{prefixCls:n,className:r,type:s,size:l,shape:c}=e,u=bO(e,["prefixCls","className","type","size","shape"]),p=Q(r,`${n}-${s}`,{[`${n}-${s}-${l}`]:s.toUpperCase()==="AVATAR"},{[`${n}-${s}-${c}`]:s.toUpperCase()==="AVATAR"});return C.createElement("div",Object.assign({className:p},u))}}eo.propTypes={type:g.string,prefixCls:g.string,style:g.object,className:g.string,size:g.oneOf(SO),shape:g.oneOf(wO)};eo.defaultProps={prefixCls:fg.PREFIX,size:"medium",shape:"circle"};const CO=Cl("avatar")(eo),_O=Cl("image")(eo),kO=Cl("title")(eo),PO=Cl("button")(eo);class hg extends E.PureComponent{render(){const{prefixCls:e,className:n,style:r,rows:s}=this.props,l=Q(n,`${e}-paragraph`);return C.createElement("ul",{className:l,style:r},[...Array(s)].map((c,u)=>C.createElement("li",{key:u})))}}hg.propTypes={rows:g.number,prefixCls:g.string,style:g.object,className:g.string};hg.defaultProps={prefixCls:fg.PREFIX,rows:4};var TO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const iw=fg.PREFIX;class Mn extends E.PureComponent{render(){const e=this.props,{placeholder:n,active:r,children:s,className:l,loading:c,style:u}=e,p=TO(e,["placeholder","active","children","className","loading","style"]),f=Q(iw,{[`${iw}-active`]:!!r},l);let v;return c?v=C.createElement("div",Object.assign({className:f,style:u},p,{"x-semi-prop":"placeholder"}),n):v=s,v}}Mn.Avatar=CO;Mn.Title=kO;Mn.Button=PO;Mn.Paragraph=hg;Mn.Image=_O;Mn.defaultProps={loading:!0};Mn.propTypes={active:g.bool,placeholder:g.node,style:g.object,className:g.string,loading:g.bool,children:g.node};const EO={PREFIX:`${xe}-space`},li={ALIGN_SET:["start","end","center","baseline"],SPACING_LOOSE:"loose",SPACING_MEDIUM:"medium",SPACING_TIGHT:"tight"},xO="Symbol(react.fragment)",Eh=i=>{let e=[];return C.Children.forEach(i,n=>{n!=null&&(Array.isArray(n)?e=e.concat(Eh(n)):E.isValidElement(n)&&n.type&&n.type.toString()===xO&&n.props?e=e.concat(Eh(n.props.children)):e.push(n))}),e},wn=EO.PREFIX;class Ss extends E.PureComponent{render(){const{children:e=null,style:n,className:r,spacing:s,wrap:l,align:c,vertical:u}=this.props,p=l&&u?!1:l,f=Object.assign({},n);let v="",y="";lt(s)?(v=s,y=s):Lr(s)?(f.rowGap=s,f.columnGap=s):uT(s)&&(lt(s[0])?v=s[0]:Lr(s[0])&&(f.columnGap=`${s[0]}px`),lt(s[1])?y=s[1]:Lr(s[1])&&(f.rowGap=`${s[1]}px`));const S=Q(wn,r,{[`${wn}-align-${c}`]:c,[`${wn}-vertical`]:u,[`${wn}-horizontal`]:!u,[`${wn}-wrap`]:p,[`${wn}-tight-horizontal`]:v===li.SPACING_TIGHT,[`${wn}-tight-vertical`]:y===li.SPACING_TIGHT,[`${wn}-medium-horizontal`]:v===li.SPACING_MEDIUM,[`${wn}-medium-vertical`]:y===li.SPACING_MEDIUM,[`${wn}-loose-horizontal`]:v===li.SPACING_LOOSE,[`${wn}-loose-vertical`]:y===li.SPACING_LOOSE}),k=Eh(e),T=Mh(this.props);return C.createElement("div",Object.assign({},T,{className:S,style:f,"x-semi-prop":"children"}),k)}}Ss.propTypes={wrap:g.bool,align:g.oneOf(li.ALIGN_SET),vertical:g.bool,spacing:g.oneOfType([g.string,g.number,g.array]),children:g.node,style:g.object,className:g.string};Ss.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};var DO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const wt=JC.PREFIX;class _l extends E.PureComponent{constructor(){super(...arguments),this.renderHeader=()=>{const{title:e,headerExtraContent:n,header:r,headerLine:s,headerStyle:l}=this.props,c=Q(`${wt}-header`,{[`${wt}-header-bordered`]:!!s}),u=Q(`${wt}-header-wrapper`),p=Q(`${wt}-header-wrapper-title`,{[`${wt}-header-wrapper-spacing`]:!!n});return r||n||e?C.createElement("div",{style:l,className:c},r||C.createElement("div",{className:u},n&&C.createElement("div",{className:`${wt}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},n),e&&C.createElement("div",{className:p},lt(e)?C.createElement(Ye.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,n=Q(`${wt}-cover`);return e&&C.createElement("div",{className:n,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:n,actions:r,loading:s}=this.props,l=Q(`${wt}-body`),c=Q(`${wt}-body-actions`),u=Q(`${wt}-body-actions-item`),p=C.createElement("div",null,C.createElement(Mn.Title,null),C.createElement("br",null),C.createElement(Mn.Paragraph,{rows:3}));return C.createElement("div",{style:e,className:l},n&&C.createElement(Mn,{placeholder:p,loading:s,active:!0},n),Array.isArray(r)&&C.createElement("div",{className:c},C.createElement(Ss,{spacing:12},r.map((f,v)=>C.createElement("div",{key:v,className:u,"x-semi-prop":`actions.${v}`},f)))))},this.renderFooter=()=>{const{footer:e,footerLine:n,footerStyle:r}=this.props,s=Q(`${wt}-footer`,{[`${wt}-footer-bordered`]:n});return e&&C.createElement("div",{style:r,className:s,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:n,shadows:r,style:s,className:l}=e,c=DO(e,["bordered","shadows","style","className"]),u=mi(c,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),p=Q(wt,l,{[`${wt}-bordered`]:n,[`${wt}-shadows`]:r,[`${wt}-shadows-${r}`]:r});return C.createElement("div",Object.assign({},u,{"aria-busy":this.props.loading,className:p,style:s}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}_l.Meta=e0;_l.propTypes={actions:g.array,bodyStyle:g.object,bordered:g.bool,children:g.node,className:g.string,cover:g.node,footer:g.node,footerLine:g.bool,footerStyle:g.object,header:g.node,headerExtraContent:g.node,headerLine:g.bool,headerStyle:g.object,loading:g.bool,shadows:g.oneOf(yO.SHADOWS),style:g.object,title:g.node,"aria-label":g.string};_l.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};var Kf,ow;function OO(){if(ow)return Kf;ow=1;function i(e,n,r,s){for(var l=e.length,c=r+(s?1:-1);s?c--:++c<l;)if(n(e[c],c,e))return c;return-1}return Kf=i,Kf}var Qf,sw;function IO(){if(sw)return Qf;sw=1;function i(e){return e!==e}return Qf=i,Qf}var Xf,aw;function RO(){if(aw)return Xf;aw=1;function i(e,n,r){for(var s=r-1,l=e.length;++s<l;)if(e[s]===n)return s;return-1}return Xf=i,Xf}var Yf,lw;function NO(){if(lw)return Yf;lw=1;var i=OO(),e=IO(),n=RO();function r(s,l,c){return l===l?n(s,l,c):i(s,e,c)}return Yf=r,Yf}var Zf,cw;function jO(){if(cw)return Zf;cw=1;var i=NO();function e(n,r){var s=n==null?0:n.length;return!!s&&i(n,r,0)>-1}return Zf=e,Zf}var Jf,uw;function LO(){if(uw)return Jf;uw=1;function i(e,n,r){for(var s=-1,l=e==null?0:e.length;++s<l;)if(r(n,e[s]))return!0;return!1}return Jf=i,Jf}var eh,dw;function AO(){if(dw)return eh;dw=1;var i=MC(),e=jO(),n=LO(),r=Lh(),s=dl(),l=$C(),c=200;function u(p,f,v,y){var S=-1,k=e,T=!0,b=p.length,w=[],D=f.length;if(!b)return w;v&&(f=r(f,s(v))),y?(k=n,T=!1):f.length>=c&&(k=l,T=!1,f=new i(f));e:for(;++S<b;){var O=p[S],N=v==null?O:v(O);if(O=y||O!==0?O:0,T&&N===N){for(var M=D;M--;)if(f[M]===N)continue e;w.push(O)}else k(f,N,y)||w.push(O)}return w}return eh=u,eh}function xh(){return xh=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(i[r]=n[r])}return i},xh.apply(null,arguments)}function MO(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Ph(i,e)}var pw=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function $O(i,e){return!!(i===e||pw(i)&&pw(e))}function FO(i,e){if(i.length!==e.length)return!1;for(var n=0;n<i.length;n++)if(!$O(i[n],e[n]))return!1;return!0}function th(i,e){e===void 0&&(e=FO);var n,r=[],s,l=!1;function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];return l&&n===this&&e(u,r)||(s=i.apply(this,u),l=!0,n=this,r=u),s}return c}var zO=typeof performance=="object"&&typeof performance.now=="function",fw=zO?function(){return performance.now()}:function(){return Date.now()};function hw(i){cancelAnimationFrame(i.id)}function BO(i,e){var n=fw();function r(){fw()-n>=e?i.call(null):s.id=requestAnimationFrame(r)}var s={id:requestAnimationFrame(r)};return s}var nh=-1;function gw(i){if(i===void 0&&(i=!1),nh===-1||i){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),nh=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return nh}var qi=null;function mw(i){if(i===void 0&&(i=!1),qi===null||i){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),s=r.style;return s.width="100px",s.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?qi="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?qi="negative":qi="positive-ascending"),document.body.removeChild(e),qi}return qi}var qO=150,GO=function(e,n){return e};function WO(i){var e,n=i.getItemOffset,r=i.getEstimatedTotalSize,s=i.getItemSize,l=i.getOffsetForIndexAndAlignment,c=i.getStartIndexForOffset,u=i.getStopIndexForStartIndex,p=i.initInstanceProps,f=i.shouldResetStyleCacheOnItemSizeChange,v=i.validateProps;return e=(function(y){MO(S,y);function S(T){var b;return b=y.call(this,T)||this,b._instanceProps=p(b.props,ew(b)),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:ew(b),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=th(function(w,D,O,N){return b.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:D,visibleStartIndex:O,visibleStopIndex:N})}),b._callOnScroll=void 0,b._callOnScroll=th(function(w,D,O){return b.props.onScroll({scrollDirection:w,scrollOffset:D,scrollUpdateWasRequested:O})}),b._getItemStyle=void 0,b._getItemStyle=function(w){var D=b.props,O=D.direction,N=D.itemSize,M=D.layout,z=b._getItemStyleCache(f&&N,f&&M,f&&O),L;if(z.hasOwnProperty(w))L=z[w];else{var j=n(b.props,w,b._instanceProps),F=s(b.props,w,b._instanceProps),U=O==="horizontal"||M==="horizontal",V=O==="rtl",K=U?j:0;z[w]=L={position:"absolute",left:V?void 0:K,right:V?K:void 0,top:U?0:j,height:U?"100%":F,width:U?F:"100%"}}return L},b._getItemStyleCache=void 0,b._getItemStyleCache=th(function(w,D,O){return{}}),b._onScrollHorizontal=function(w){var D=w.currentTarget,O=D.clientWidth,N=D.scrollLeft,M=D.scrollWidth;b.setState(function(z){if(z.scrollOffset===N)return null;var L=b.props.direction,j=N;if(L==="rtl")switch(mw()){case"negative":j=-N;break;case"positive-descending":j=M-O-N;break}return j=Math.max(0,Math.min(j,M-O)),{isScrolling:!0,scrollDirection:z.scrollOffset<j?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._onScrollVertical=function(w){var D=w.currentTarget,O=D.clientHeight,N=D.scrollHeight,M=D.scrollTop;b.setState(function(z){if(z.scrollOffset===M)return null;var L=Math.max(0,Math.min(M,N-O));return{isScrolling:!0,scrollDirection:z.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._outerRefSetter=function(w){var D=b.props.outerRef;b._outerRef=w,typeof D=="function"?D(w):D!=null&&typeof D=="object"&&D.hasOwnProperty("current")&&(D.current=w)},b._resetIsScrollingDebounced=function(){b._resetIsScrollingTimeoutId!==null&&hw(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=BO(b._resetIsScrolling,qO)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}S.getDerivedStateFromProps=function(b,w){return UO(b,w),v(b),null};var k=S.prototype;return k.scrollTo=function(b){b=Math.max(0,b),this.setState(function(w){return w.scrollOffset===b?null:{scrollDirection:w.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},k.scrollToItem=function(b,w){w===void 0&&(w="auto");var D=this.props,O=D.itemCount,N=D.layout,M=this.state.scrollOffset;b=Math.max(0,Math.min(b,O-1));var z=0;if(this._outerRef){var L=this._outerRef;N==="vertical"?z=L.scrollWidth>L.clientWidth?gw():0:z=L.scrollHeight>L.clientHeight?gw():0}this.scrollTo(l(this.props,b,w,M,this._instanceProps,z))},k.componentDidMount=function(){var b=this.props,w=b.direction,D=b.initialScrollOffset,O=b.layout;if(typeof D=="number"&&this._outerRef!=null){var N=this._outerRef;w==="horizontal"||O==="horizontal"?N.scrollLeft=D:N.scrollTop=D}this._callPropsCallbacks()},k.componentDidUpdate=function(){var b=this.props,w=b.direction,D=b.layout,O=this.state,N=O.scrollOffset,M=O.scrollUpdateWasRequested;if(M&&this._outerRef!=null){var z=this._outerRef;if(w==="horizontal"||D==="horizontal")if(w==="rtl")switch(mw()){case"negative":z.scrollLeft=-N;break;case"positive-ascending":z.scrollLeft=N;break;default:var L=z.clientWidth,j=z.scrollWidth;z.scrollLeft=j-L-N;break}else z.scrollLeft=N;else z.scrollTop=N}this._callPropsCallbacks()},k.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&hw(this._resetIsScrollingTimeoutId)},k.render=function(){var b=this.props,w=b.children,D=b.className,O=b.direction,N=b.height,M=b.innerRef,z=b.innerElementType,L=b.innerTagName,j=b.itemCount,F=b.itemData,U=b.itemKey,V=U===void 0?GO:U,K=b.layout,ie=b.outerElementType,ne=b.outerTagName,ae=b.style,J=b.useIsScrolling,ue=b.width,pe=this.state.isScrolling,W=O==="horizontal"||K==="horizontal",ee=W?this._onScrollHorizontal:this._onScrollVertical,I=this._getRangeToRender(),H=I[0],oe=I[1],te=[];if(j>0)for(var se=H;se<=oe;se++)te.push(E.createElement(w,{data:F,key:V(se,F),index:se,isScrolling:J?pe:void 0,style:this._getItemStyle(se)}));var be=r(this.props,this._instanceProps);return E.createElement(ie||ne||"div",{className:D,onScroll:ee,ref:this._outerRefSetter,style:xh({position:"relative",height:N,width:ue,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:O},ae)},E.createElement(z||L||"div",{children:te,ref:M,style:{height:W?"100%":be,pointerEvents:pe?"none":void 0,width:W?be:"100%"}}))},k._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var w=this._getRangeToRender(),D=w[0],O=w[1],N=w[2],M=w[3];this._callOnItemsRendered(D,O,N,M)}}if(typeof this.props.onScroll=="function"){var z=this.state,L=z.scrollDirection,j=z.scrollOffset,F=z.scrollUpdateWasRequested;this._callOnScroll(L,j,F)}},k._getRangeToRender=function(){var b=this.props,w=b.itemCount,D=b.overscanCount,O=this.state,N=O.isScrolling,M=O.scrollDirection,z=O.scrollOffset;if(w===0)return[0,0,0,0];var L=c(this.props,z,this._instanceProps),j=u(this.props,L,z,this._instanceProps),F=!N||M==="backward"?Math.max(1,D):1,U=!N||M==="forward"?Math.max(1,D):1;return[Math.max(0,L-F),Math.max(0,Math.min(w-1,j+U)),L,j]},S})(E.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var UO=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},HO=WO({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,s,l,c){var u=e.direction,p=e.height,f=e.itemCount,v=e.itemSize,y=e.layout,S=e.width,k=u==="horizontal"||y==="horizontal",T=k?S:p,b=Math.max(0,f*v-T),w=Math.min(b,n*v),D=Math.max(0,n*v-T+v+c);switch(r==="smart"&&(s>=D-T&&s<=w+T?r="auto":r="center"),r){case"start":return w;case"end":return D;case"center":{var O=Math.round(D+(w-D)/2);return O<Math.ceil(T/2)?0:O>b+Math.floor(T/2)?b:O}default:return s>=D&&s<=w?s:s<D?D:w}},getStartIndexForOffset:function(e,n){var r=e.itemCount,s=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/s)))},getStopIndexForStartIndex:function(e,n,r){var s=e.direction,l=e.height,c=e.itemCount,u=e.itemSize,p=e.layout,f=e.width,v=s==="horizontal"||p==="horizontal",y=n*u,S=v?f:l,k=Math.ceil((S+r-y)/u);return Math.max(0,Math.min(c-1,n+k-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const t0={PREFIX:`${xe}-tag`},to={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var VO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Ct=t0.PREFIX,n0=to.TAG_COLOR,r0=to.TAG_SIZE,i0=to.TAG_TYPE,KO=to.AVATAR_SHAPE;class zt extends E.Component{constructor(e){super(e),this.state={visible:!0},this.close=this.close.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}static getDerivedStateFromProps(e){return"visible"in e?{visible:e.visible}:null}setVisible(e){"visible"in this.props||this.setState({visible:e})}close(e,n,r){const{onClose:s}=this.props;e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),s&&s(n,e,r),!e.defaultPrevented&&this.setVisible(!1)}handleKeyDown(e){const{closable:n,onClick:r,onKeyDown:s}=this.props;switch(e.key){case"Backspace":case"Delete":n&&this.close(e,this.props.children,this.props.tagKey),Nr(e);break;case"Enter":r(e),Nr(e);break;case"Escape":e.target.blur();break}s&&s(e)}renderAvatar(){const{avatarShape:e,avatarSrc:n}=this.props;return C.createElement(Ki,{src:n,shape:e})}render(){const e=this.props,{tagKey:n,children:r,size:s,color:l,closable:c,visible:u,onClose:p,onClick:f,className:v,type:y,shape:S,avatarSrc:k,avatarShape:T,tabIndex:b,prefixIcon:w,suffixIcon:D}=e,O=VO(e,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:N}=this.state,M=f!==zt.defaultProps.onClick||c,z={role:"button",tabIndex:b||0,onKeyDown:this.handleKeyDown},L=Object.assign(Object.assign({},O),{onClick:f,tabIndex:b,className:Q(Ct,{[`${Ct}-default`]:s==="default",[`${Ct}-small`]:s==="small",[`${Ct}-large`]:s==="large",[`${Ct}-square`]:S==="square",[`${Ct}-circle`]:S==="circle",[`${Ct}-${y}`]:y,[`${Ct}-${l}-${y}`]:l&&y,[`${Ct}-closable`]:c,[`${Ct}-invisible`]:!N,[`${Ct}-avatar-${T}`]:k},v)}),j=M?Object.assign(Object.assign({},L),z):L,F=c?C.createElement("div",{className:`${Ct}-close`,onClick:K=>this.close(K,r,n)},C.createElement(bl,{size:"small"})):null,U=lt(r),V=Q(`${Ct}-content`,`${Ct}-content-${U?"ellipsis":"center"}`);return C.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||U?`${c?"Closable ":""}Tag: ${r}`:""},j),w?C.createElement("div",{className:`${Ct}-prefix-icon`},w):null,k?this.renderAvatar():null,C.createElement("div",{className:V},r),D?C.createElement("div",{className:`${Ct}-suffix-icon`},D):null,F)}}zt.defaultProps={size:r0[0],color:n0[0],closable:!1,type:i0[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};zt.propTypes={children:g.node,tagKey:g.oneOfType([g.string,g.number]),size:g.oneOf(r0),color:g.oneOf(n0),type:g.oneOf(i0),closable:g.bool,visible:g.bool,onClose:g.func,onClick:g.func,prefixIcon:g.node,suffixIcon:g.node,style:g.object,className:g.string,avatarSrc:g.string,avatarShape:g.oneOf(KO),"aria-label":g.string};var QO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};qn.Consumer;class gg extends C.Component{constructor(e){super(e)}renderChildren(){const{direction:e,children:n}=this.props;return e==="rtl"?C.createElement("div",{className:`${xe}-rtl`},n):n}render(){const e=this.props,{children:n,direction:r}=e,s=QO(e,["children","direction"]);return C.createElement(qn.Provider,{value:Object.assign({direction:r},s)},this.renderChildren())}}gg.propTypes={locale:g.object,timeZone:g.oneOfType([g.string,g.number]),getPopupContainer:g.func,direction:g.oneOf(["ltr","rtl"])};gg.defaultProps={locale:Th,direction:"ltr"};var XO=Function.prototype.toString,rh=Object.create,YO=Object.prototype.toString,ZO=(function(){function i(){this._keys=[],this._values=[]}return i.prototype.has=function(e){return!!~this._keys.indexOf(e)},i.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},i.prototype.set=function(e,n){this._keys.push(e),this._values.push(n)},i})();function JO(){return new ZO}function e2(){return new WeakMap}var t2=typeof WeakMap<"u"?e2:JO;function mg(i){if(!i)return rh(null);var e=i.constructor;if(e===Object)return i===Object.prototype?{}:rh(i);if(e&&~XO.call(e).indexOf("[native code]"))try{return new e}catch{}return rh(i)}function n2(i){var e="";return i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.unicode&&(e+="u"),i.sticky&&(e+="y"),e}function r2(i){return i.flags}var i2=/test/g.flags==="g"?r2:n2;function o0(i){var e=YO.call(i);return e.substring(8,e.length-1)}function o2(i){return i[Symbol.toStringTag]||o0(i)}var s2=typeof Symbol<"u"?o2:o0,a2=Object.defineProperty,l2=Object.getOwnPropertyDescriptor,s0=Object.getOwnPropertyNames,yg=Object.getOwnPropertySymbols,a0=Object.prototype,l0=a0.hasOwnProperty,c2=a0.propertyIsEnumerable,c0=typeof yg=="function";function u2(i){return s0(i).concat(yg(i))}var d2=c0?u2:s0;function kl(i,e,n){for(var r=d2(i),s=0,l=r.length,c=void 0,u=void 0;s<l;++s)if(c=r[s],!(c==="callee"||c==="caller")){if(u=l2(i,c),!u){e[c]=n.copier(i[c],n);continue}!u.get&&!u.set&&(u.value=n.copier(u.value,n));try{a2(e,c,u)}catch{e[c]=u.value}}return e}function p2(i,e){var n=new e.Constructor;e.cache.set(i,n);for(var r=0,s=i.length;r<s;++r)n[r]=e.copier(i[r],e);return n}function f2(i,e){var n=new e.Constructor;return e.cache.set(i,n),kl(i,n,e)}function u0(i,e){return i.slice(0)}function h2(i,e){return i.slice(0,i.size,i.type)}function g2(i,e){return new e.Constructor(u0(i.buffer))}function m2(i,e){return new e.Constructor(i.getTime())}function d0(i,e){var n=new e.Constructor;return e.cache.set(i,n),i.forEach(function(r,s){n.set(s,e.copier(r,e))}),n}function y2(i,e){return kl(i,d0(i,e),e)}function v2(i,e){var n=mg(e.prototype);e.cache.set(i,n);for(var r in i)l0.call(i,r)&&(n[r]=e.copier(i[r],e));return n}function b2(i,e){var n=mg(e.prototype);e.cache.set(i,n);for(var r in i)l0.call(i,r)&&(n[r]=e.copier(i[r],e));for(var s=yg(i),l=0,c=s.length,u=void 0;l<c;++l)u=s[l],c2.call(i,u)&&(n[u]=e.copier(i[u],e));return n}var S2=c0?b2:v2;function w2(i,e){var n=mg(e.prototype);return e.cache.set(i,n),kl(i,n,e)}function ih(i,e){return new e.Constructor(i.valueOf())}function C2(i,e){var n=new e.Constructor(i.source,i2(i));return n.lastIndex=i.lastIndex,n}function Ga(i,e){return i}function p0(i,e){var n=new e.Constructor;return e.cache.set(i,n),i.forEach(function(r){n.add(e.copier(r,e))}),n}function _2(i,e){return kl(i,p0(i,e),e)}var k2=Array.isArray,vg=Object.assign,P2=Object.getPrototypeOf||(function(i){return i.__proto__}),f0={array:p2,arrayBuffer:u0,blob:h2,dataView:g2,date:m2,error:Ga,map:d0,object:S2,regExp:C2,set:p0},T2=vg({},f0,{array:f2,map:y2,object:w2,set:_2});function E2(i){return{Arguments:i.object,Array:i.array,ArrayBuffer:i.arrayBuffer,Blob:i.blob,Boolean:ih,DataView:i.dataView,Date:i.date,Error:i.error,Float32Array:i.arrayBuffer,Float64Array:i.arrayBuffer,Int8Array:i.arrayBuffer,Int16Array:i.arrayBuffer,Int32Array:i.arrayBuffer,Map:i.map,Number:ih,Object:i.object,Promise:Ga,RegExp:i.regExp,Set:i.set,String:ih,WeakMap:Ga,WeakSet:Ga,Uint8Array:i.arrayBuffer,Uint8ClampedArray:i.arrayBuffer,Uint16Array:i.arrayBuffer,Uint32Array:i.arrayBuffer,Uint64Array:i.arrayBuffer}}function h0(i){var e=vg({},f0,i),n=E2(e),r=n.Array,s=n.Object;function l(c,u){if(u.prototype=u.Constructor=void 0,!c||typeof c!="object")return c;if(u.cache.has(c))return u.cache.get(c);if(u.prototype=P2(c),u.Constructor=u.prototype&&u.prototype.constructor,!u.Constructor||u.Constructor===Object)return s(c,u);if(k2(c))return r(c,u);var p=n[s2(c)];return p?p(c,u):typeof c.then=="function"?c:s(c,u)}return function(u){return l(u,{Constructor:void 0,cache:t2(),copier:l,prototype:void 0})}}function x2(i){return h0(vg({},T2,i))}x2({});var Xa=h0({});const D2={PREFIX:`${xe}`};var O2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const si=D2.PREFIX,I2=i=>{const{layout:e="horizontal",dashed:n,align:r="center",className:s,margin:l,style:c,children:u}=i,p=O2(i,["layout","dashed","align","className","margin","style","children"]),f=Q(`${si}-divider`,s,{[`${si}-divider-horizontal`]:e==="horizontal",[`${si}-divider-vertical`]:e==="vertical",[`${si}-divider-dashed`]:!!n,[`${si}-divider-with-text`]:u&&e==="horizontal",[`${si}-divider-with-text-${r}`]:u&&e==="horizontal"});let v={};return l!==void 0&&(e==="vertical"?v={marginLeft:l,marginRight:l}:e==="horizontal"&&(v={marginTop:l,marginBottom:l})),C.createElement("div",Object.assign({},p,{className:f,style:Object.assign(Object.assign({},v),c)}),u&&e==="horizontal"?typeof u=="string"?C.createElement("span",{className:`${si}-divider_inner-text`,"x-semi-prop":"children"},u):u:null)},Ae={DIALOG:`${xe}-modal`},yw={SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function R2(i){return i!==null&&typeof i=="object"}function vw(i){return R2(i)&&typeof i.then=="function"}class N2 extends Et{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(n,r)=>{this._adapter.toggleDisplayNone(n,r)}}destroy(){this.afterHide()}handleCancel(e){var n;const r=this._adapter.notifyCancel(e);vw(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(n=r?.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||n===void 0||n.catch(s=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),s}))}handleOk(e){var n;const r=this._adapter.notifyOk(e);vw(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(n=r?.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||n===void 0||n.catch(s=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),s}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}enabledBodyScroll(){this._adapter.enabledBodyScroll()}}class bg extends Et{constructor(e){super(Object.assign(Object.assign({},bg.defaultAdapter),e)),this.handleKeyDown=n=>{const{closeOnEsc:r}=this.getProps();if(r&&n.keyCode===Rr.ESC){n.stopPropagation(),this.close(n);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:n}=this.getStates();e.target===e.currentTarget&&!n&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var oh,bw;function j2(){if(bw)return oh;bw=1;var i=AO(),e=xC(),n=CC(),r=e(function(s,l){return n(s)?i(s,l):[]});return oh=r,oh}var L2=j2();const A2=Ze(L2);class jr{constructor(e,n){var r;this.addFocusRedirectListener=s=>(this.focusRedirectListenerList.push(s),()=>this.removeFocusRedirectListener(s)),this.removeFocusRedirectListener=s=>{this.focusRedirectListenerList=A2(this.focusRedirectListenerList,s)},this.destroy=()=>{var s;(s=this.container)===null||s===void 0||s.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=s=>{if(!this.enable)return!1;for(const l of this.focusRedirectListenerList)if(!l(s))return!1;return!0},this.focusElement=(s,l)=>{const{preventScroll:c}=this.options;s?.focus({preventScroll:c}),l.preventDefault()},this.onKeyPress=s=>{if(s&&s.key==="Tab"){const l=jr.getFocusableElements(this.container);l.length&&(s.shiftKey?this.handleContainerShiftTabKeyDown(l,s):this.handleContainerTabKeyDown(l,s))}},this.handleContainerTabKeyDown=(s,l)=>{const c=jr.getActiveElement(),u=s[s.length-1]===c,p=s[0];u&&this.shouldFocusRedirect(p)&&this.focusElement(p,l)},this.handleContainerShiftTabKeyDown=(s,l)=>{const c=jr.getActiveElement(),u=s[0]===c,p=s[s.length-1];u&&this.shouldFocusRedirect(p)&&this.focusElement(p,l)},Object.freeze(n),this.container=e,this.options=n,this.enable=(r=n?.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=n?.onFocusRedirectListener?Array.isArray(n.onFocusRedirectListener)?[...n.onFocusRedirectListener]:[n.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!ci(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}var sh=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let M2=0;class Pl extends mt{constructor(e){super(e),this.onKeyDown=n=>{this.foundation.handleKeyDown(n)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=n=>{this.foundation.handleMaskClick(n)},this.close=n=>{this.foundation.close(n)},this.getMaskElement=()=>{const n=sh(this.props,[]),{mask:r,maskClassName:s}=n;if(r){const l=Q(`${Ae.DIALOG}-mask`,{});return C.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:Q(l,s),style:n.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:n,closeIcon:r}=this.props;let s;if(n){const l=r||C.createElement(bl,{"x-semi-prop":"closeIcon"});s=C.createElement(zr,{"aria-label":"close",className:`${Ae.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:l,theme:"borderless",size:"small"})}return s},this.renderIcon=()=>{const{icon:n}=this.props;return n?C.createElement("span",{className:`${Ae.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},n):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:n}=this.props,r=this.renderCloseBtn(),s=this.renderIcon();return n==null?null:C.createElement("div",{className:`${Ae.DIALOG}-header`},s,C.createElement(Ye.Title,{heading:5,className:`${Ae.DIALOG}-title`,id:`${Ae.DIALOG}-title`,"x-semi-prop":"title"},n),r)},this.renderBody=()=>{const{bodyStyle:n,children:r,title:s}=this.props,l=Q(`${Ae.DIALOG}-body`,{[`${Ae.DIALOG}-withIcon`]:this.props.icon}),c=this.renderCloseBtn(),u=this.renderIcon();return s!=null||"header"in this.props?C.createElement("div",{className:l,id:`${Ae.DIALOG}-body`,style:n,"x-semi-prop":"children"},r):C.createElement("div",{className:`${Ae.DIALOG}-body-wrapper`},u,C.createElement("div",{className:l,style:n,"x-semi-prop":"children"},r),c)},this.getDialogElement=()=>{const n=sh(this.props,[]),r={},s=Q(`${Ae.DIALOG}`,{[`${Ae.DIALOG}-centered`]:n.centered,[`${Ae.DIALOG}-${n.size}`]:n.size});n.width&&(r.width=n.width),n.height&&(r.height=n.height),n.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const l=this.renderBody(),c=this.renderHeader(),u=n.footer?C.createElement("div",{className:`${Ae.DIALOG}-footer`,"x-semi-prop":"footer"},n.footer):null,p=C.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Ae.DIALOG}-title`,"aria-describedby":`${Ae.DIALOG}-body`,onAnimationEnd:n.onAnimationEnd,className:Q([`${Ae.DIALOG}-content`,n.contentClassName,{[`${Ae.DIALOG}-content-fullScreen`]:n.isFullScreen,[`${Ae.DIALOG}-content-height-set`]:n.height||Te(n.style,"height")}])},c,l,u);return C.createElement("div",{key:"dialog-element",className:s,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},n.style),r),id:this.dialogId},n?.modalRender?n?.modalRender(p):p)},this.state={dialogMouseDown:!1,prevFocusElement:jr.getActiveElement()},this.foundation=new bg(this.adapter),this.dialogId=`dialog-${M2++}`,this.modalDialogRef=C.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,n,r;const{preventScroll:s}=this.props;let l;if(this.modalDialogRef){const c=jr.getActiveElement();l=this.modalDialogRef.current.contains(c),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new jr(this.modalDialogRef.current,{preventScroll:s})}l||(r=(n=this.modalDialogRef)===null||n===void 0?void 0:n.current)===null||r===void 0||r.focus({preventScroll:s})},modalDialogBlur:()=>{var e,n;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(n=this.focusTrapHandle)===null||n===void 0||n.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:n}=this.props,r=Te(e,"focus");Yt(r)&&e.focus({preventScroll:n})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const n=jr.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=n[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){var e;const n=this.props,{maskClosable:r,className:s,getPopupContainer:l,maskFixed:c,getContainerContext:u}=n,p=sh(n,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:f}=this.context,v=Q(s,{[`${Ae.DIALOG}-popup`]:l&&l()!==((e=globalThis?.document)===null||e===void 0?void 0:e.body)&&!c,[`${Ae.DIALOG}-fixed`]:c,[`${Ae.DIALOG}-rtl`]:f==="rtl"}),y=u(),S=this.getDataAttr(p),k=C.createElement("div",Object.assign({className:v},S),this.getMaskElement(),C.createElement("div",Object.assign({role:"none",className:Q({[`${Ae.DIALOG}-wrap`]:!0,[`${Ae.DIALOG}-wrap-center`]:this.props.centered}),onClick:r?this.onMaskClick:null,onMouseUp:r?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return y&&y.Provider?C.createElement(y.Provider,{value:y.value},k):k}}Pl.contextType=qn;Pl.propTypes={close:g.func,getContainerContext:g.func,contentClassName:g.string,maskClassName:g.string,onAnimationEnd:g.func,preventScroll:g.bool};Pl.defaultProps={close:me,getContainerContext:me,contentClassName:"",maskClassName:""};var $2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const g0=i=>{const[e,n]=E.useState(!0),[r,s]=E.useState(),[l,c]=E.useState(),{direction:u}=i,{title:p,content:f,icon:v,type:y,onCancel:S,onOk:k,className:T}=i,b=$2(i,["title","content","icon","type","onCancel","onOk","className"]),w=E.useCallback(F=>{const U=k&&k(F);U&&U.then?(s(!0),U.then(function(){n(!1),s(!1)},V=>{s(!1)})):n(!1)},[k]),D=E.useCallback(F=>{const U=S&&S(F);U&&U.then?(c(!0),U.then(function(){n(!1),c(!1)},V=>{c(!1)})):n(!1)},[S]),O=`${Ae.DIALOG}-confirm`,N=Q(T,O,{[`${O}-rtl`]:u==="rtl"}),M=Q(`${Ae.DIALOG}-${y}`),z=An(v)?C.cloneElement(v,{className:`${O}-icon ${M}-icon`,size:"extra-large"}):v,L=p==null?null:C.createElement("span",{className:`${O}-title-text`},p),j=Q(`${O}-content`,{[`${O}-content-withIcon`]:i.icon});return C.createElement(Bt,Object.assign({className:N,title:L,confirmLoading:r,cancelLoading:l,onOk:w,onCancel:D,icon:z,visible:e},b),C.createElement("div",{className:j,"x-semi-prop":"content"},f))};function ws(i){const e=document.createElement("div");document.body.appendChild(e);let n=Object.assign({},i);const r=()=>{Jn.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let p=0;p<ui.length;p++)if(ui[p]===l){ui.splice(p,1);break}};function s(u){const{afterClose:p}=u;Jn.render(C.createElement(g0,Object.assign({},u,{afterClose:function(){p?.(...arguments),r()},motion:i.motion})),e)}function l(){n=Object.assign(Object.assign({},n),{visible:!1}),s(n)}function c(u){n=Object.assign(Object.assign({},n),u),s(n)}return s(n),ui.push(l),{destroy:l,update:c}}function m0(i){return Object.assign({type:"info",icon:C.createElement(Yh,null)},i)}function y0(i){return Object.assign({type:"success",icon:C.createElement(Zh,null)},i)}function v0(i){return Object.assign({type:"warning",icon:C.createElement(vl,null)},i)}function b0(i){return Object.assign({type:"error",icon:C.createElement(yl,null),okButtonProps:Object.assign({type:"danger"},i.okButtonProps)},mi(i,["okButtonProps"]))}function S0(i){return Object.assign({type:"confirm",icon:C.createElement(mD,null)},i)}var F2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const z2=(i,e)=>{var{afterClose:n,config:r}=i;F2(i,["afterClose","config"]);const[s,l]=C.useState(r);C.useImperativeHandle(e,()=>({destroy:()=>{l(u=>Object.assign(Object.assign({},u),{visible:!1}))},update:u=>{l(p=>Object.assign(Object.assign({},p),u))}}));const c=()=>{var u;(u=r?.afterClose)===null||u===void 0||u.call(r),n()};return C.createElement(g0,Object.assign({},s,{afterClose:c}))},B2=C.forwardRef(z2);let Sw=0;function q2(){const[i,e]=C.useState([]);function n(r){return e(s=>[...s,r]),()=>{e(s=>s.filter(l=>l!==r))}}return[i,n]}function G2(){const[i,e]=q2();function n(r){return function(l){Sw+=1;const c=C.createRef();let u;const p=C.createElement(B2,{key:`semi-modal-${Sw}`,config:r(l),ref:c,afterClose:()=>{u()}});return u=e(p),{destroy:()=>{c.current&&c.current.destroy()},update:f=>{c.current&&c.current.update(f)}}}}return[{info:n(m0),success:n(y0),error:n(b0),warning:n(v0),confirm:n(S0)},C.createElement(C.Fragment,null,i)]}var W2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let ui=[];class Bt extends mt{constructor(e){super(e),this.bodyOverflow=null,this.handleCancel=n=>{this.foundation.handleCancel(n)},this.handleOk=n=>{this.foundation.handleOk(n)},this.updateState=()=>{const{visible:n}=this.props;this.foundation.toggleDisplayNone(!n)},this.renderFooter=()=>{const{okText:n,okType:r,cancelText:s,confirmLoading:l,cancelLoading:c,hasCancel:u,footerFill:p}=this.props,f=v=>{var y;return u?C.createElement(et,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:c===void 0?this.state.onCancelReturnPromiseStatus==="pending":c,type:"tertiary",block:p,autoFocus:!0},this.props.cancelButtonProps,{style:Object.assign(Object.assign({},p?{marginLeft:"unset"}:{}),(y=this.props.cancelButtonProps)===null||y===void 0?void 0:y.style),"x-semi-children-alias":"cancelText"}),s||v.cancel):null};return C.createElement(Ar,{componentName:"Modal"},(v,y)=>C.createElement("div",{className:Q({[`${Ae.DIALOG}-footerfill`]:p})},f(v),C.createElement(et,Object.assign({"aria-label":"confirm",type:r,theme:"solid",block:p,loading:l===void 0?this.state.onOKReturnPromiseStatus==="pending":l,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),n||v.confirm)))},this.renderDialog=()=>{var n;let r=this.props,{footer:s,className:l,motion:c,maskStyle:u,keepDOM:p,style:f,zIndex:v,getPopupContainer:y,visible:S,modalContentClass:k}=r,T=W2(r,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible","modalContentClass"]),b=f;const w=u,D="footer"in this.props?s:this.renderFooter();let O={zIndex:v};y&&y()!==((n=globalThis?.document)===null||n===void 0?void 0:n.body)&&(O={zIndex:v,position:"static"});const N=Q(l,{[`${Ae.DIALOG}-displayNone`]:p&&this.state.displayNone}),M=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return M&&(this._haveRendered=!0),C.createElement(us,{motion:this.props.motion,animationState:S?"enter":"leave",startClassName:S?`${Ae.DIALOG}-content-animate-show`:`${Ae.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},z=>{let{animationClassName:L,animationEventsNeedBind:j}=z;return C.createElement(us,{motion:this.props.motion,animationState:S?"enter":"leave",startClassName:S?`${Ae.DIALOG}-mask-animate-show`:`${Ae.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},F=>{let{animationClassName:U,animationEventsNeedBind:V}=F;return M?C.createElement(vs,{style:O,getPopupContainer:y}," ",C.createElement(Pl,Object.assign({},T,{contentExtraProps:j,maskExtraProps:V,isFullScreen:this.state.isFullScreen,contentClassName:`${L} ${k}`,maskClassName:U,className:N,getPopupContainer:y,maskStyle:w,style:b,ref:this.modalRef,footer:D,onClose:this.handleCancel}))):C.createElement(C.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new N2(this.adapter),this.modalRef=C.createRef(),this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{var e;const{getPopupContainer:n}=this.props;this.bodyOverflow=document.body.style.overflow||"",(!n||n()===((e=globalThis?.document)===null||e===void 0?void 0:e.body))&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{var e;const{getPopupContainer:n}=this.props;(!n||n()===((e=globalThis?.document)===null||e===void 0?void 0:e.body))&&this.bodyOverflow!==null&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,n)=>{e!==this.state.displayNone&&this.setState({displayNone:e},n||me)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,n){const r={};return e.fullScreen!==n.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&n.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=ex(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,n,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!n.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible?this.foundation.destroy():this.foundation.enabledBodyScroll()}render(){const{visible:e,keepDOM:n,lazyRender:r}=this.props;return this.renderDialog()}}Bt.propTypes={mask:g.bool,closable:g.bool,centered:g.bool,visible:g.bool,width:g.oneOfType([g.string,g.number]),height:g.oneOfType([g.string,g.number]),confirmLoading:g.bool,cancelLoading:g.bool,okText:g.string,okType:g.string,cancelText:g.string,maskClosable:g.bool,onCancel:g.func,onOk:g.func,modalRender:g.func,afterClose:g.func,okButtonProps:g.object,cancelButtonProps:g.object,style:g.object,className:g.string,maskStyle:g.object,bodyStyle:g.object,zIndex:g.number,title:g.node,icon:g.node,header:g.node,footer:g.node,hasCancel:g.bool,motion:g.bool,children:g.node,getPopupContainer:g.func,getContainerContext:g.func,maskFixed:g.bool,closeIcon:g.node,closeOnEsc:g.bool,size:g.oneOf(yw.SIZE),keepDOM:g.bool,lazyRender:g.bool,direction:g.oneOf(yw.directions),fullScreen:g.bool,footerFill:g.bool};Bt.__SemiComponentName__="Modal";Bt.defaultProps=sr(Bt.__SemiComponentName__,{zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:me,onOk:me,afterClose:me,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1});Bt.useModal=G2;Bt.info=function(i){return ws(m0(i))};Bt.success=function(i){return ws(y0(i))};Bt.error=function(i){return ws(b0(i))};Bt.warning=function(i){return ws(v0(i))};Bt.confirm=function(i){return ws(S0(i))};Bt.destroyAll=function(){for(let e=0,n=ui.length;e<n;e++){const r=ui[e];r&&r()}ui=[]};class U2 extends Et{addNotice(e){const n=this._adapter.getNotices();this._adapter.updateNotices([e,...n])}has(e){return this._adapter.getNotices().some(n=>n.id===e)}update(e,n){let r=this._adapter.getNotices();r=r.map(l=>l.id===e?Object.assign(Object.assign({},l),n):l);const s=r.filter(l=>l.id===e);this._adapter.updateNotices(r,[],s)}removeNotice(e){let n=this._adapter.getNotices();const r=[];n=n.filter(s=>s.id===e?(r.push(s),!1):!0),this._adapter.updateNotices(n,r)}destroyAll(){const e=this._adapter.getNotices();e.length>0&&this._adapter.updateNotices([],e)}}const ls={WRAPPER:`${xe}-notification-wrapper`,LIST:`${xe}-notification-list`,NOTICE:`${xe}-notification-notice`},w0={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},H2={duration:3};class Sg extends Et{constructor(e){super(Object.assign(Object.assign({},Sg.defaultAdapter),e)),this._timer=null,this._id=null}init(){this._startCloseTimer(),this._id=this.getProp("id")}destroy(){this._clearCloseTimer()}_startCloseTimer(){const e=this.getProp("duration");e&&Lr(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}_clearCloseTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this._clearCloseTimer(),this._startCloseTimer()}}var V2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Xt=ls.NOTICE,{duration:K2}=H2,{types:C0,themes:Q2,directions:X2}=w0;class hi extends mt{get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose(),this.props.onHookClose&&this.props.onHookClose()}})}constructor(e){super(e),this.clearCloseTimer=()=>{this.foundation._clearCloseTimer()},this.startCloseTimer=()=>{this.foundation._startCloseTimer()},this.close=n=>{this.props.onCloseClick(this.props.id),this.foundation.close(n)},this.notifyClick=n=>{this.props.onClick(n)},this.state={visible:!0},this.foundation=new Sg(this.adapter)}componentWillUnmount(){this.foundation.destroy()}renderTypeIcon(){const{type:e,icon:n}=this.props;let s={warning:C.createElement(vl,{size:"large"}),success:C.createElement(Zh,{size:"large"}),info:C.createElement(Yh,{size:"large"}),error:C.createElement(yl,{size:"large"})}[e];const l=Q({[`${Xt}-icon`]:!0,[`${Xt}-${e}`]:!0});return n&&(s=n),s?C.createElement("div",{className:l,"x-semi-prop":"icon"},An(s)?C.cloneElement(s,{size:s.props.size||"large"}):s):null}render(){const e=this.props.direction||this.context.direction,n=e==="rtl"?"topLeft":"topRight",r=this.props,{content:s,title:l,theme:c,position:u=n,type:p,id:f,onCloseClick:v,className:y,showClose:S,style:k}=r;V2(r,["content","title","theme","position","type","id","onCloseClick","className","showClose","style"]);const{visible:T}=this.state,b=Q(Xt,y,{[`${Xt}-close`]:!T,[`${Xt}-icon-show`]:C0.includes(p),[`${Xt}-${p}`]:!0,[`${Xt}-${c}`]:c==="light",[`${Xt}-rtl`]:e==="rtl"}),w=cs({});return C.createElement("div",{className:b,style:k,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:this.notifyClick,"aria-labelledby":w,role:"alert",onAnimationEnd:this.props.onAnimationEnd,onAnimationStart:this.props.onAnimationStart},C.createElement("div",null,this.renderTypeIcon()),C.createElement("div",{className:`${Xt}-inner`},C.createElement("div",{className:`${Xt}-content-wrapper`},l?C.createElement("div",{id:w,className:`${Xt}-title`,"x-semi-prop":"title"},l):"",s?C.createElement("div",{className:`${Xt}-content`,"x-semi-prop":"content"},s):""),S&&C.createElement(zr,{className:`${Xt}-icon-close`,type:"tertiary",icon:C.createElement(bl,null),theme:"borderless",size:"small",onClick:this.close})))}}hi.contextType=qn;hi.propTypes={duration:g.number,id:g.string,title:g.node,content:g.node,type:g.oneOf(C0),theme:g.oneOf(Q2),icon:g.node,onClick:g.func,onClose:g.func,onCloseClick:g.func,showClose:g.bool,close:g.func,direction:g.oneOf(X2)};hi.__SemiComponentName__="Notification";hi.defaultProps=sr(hi.__SemiComponentName__,{duration:K2,id:"",close:me,onClose:me,onClick:me,onCloseClick:me,content:"",title:"",showClose:!0,theme:"normal"});var Y2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Z2=(i,e)=>{var{afterClose:n}=i,r=Y2(i,["afterClose"]);const[s,l]=E.useState(!0),c=()=>{l(!1)};return C.useImperativeHandle(e,()=>({close:()=>{l(!1)}})),E.useEffect(()=>{s||n(String(r.id))},[s]),s?C.createElement(hi,Object.assign({},r,{onHookClose:c})):null},J2=C.forwardRef(Z2),Qo={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};function eI(){const[i,e]=E.useState([]);function n(s,l){return e(c=>[{element:s,config:l},...c]),c=>{e(u=>u.filter(p=>{let{config:f}=p;return f.id!==c}))}}function r(){const s={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};return i.forEach(l=>{let{element:c,config:u}=l;const{position:p}=u;s[p].push(c)}),Object.entries(s).map(l=>{const c=l[0],u=l[1];return Array.isArray(u)&&u.length?C.createElement("div",{key:c,className:Q(ls.LIST),placement:c},u):null})}return[r(),n]}function tI(){const[i,e]=eI(),n=new Map,r=l=>{const c=Ka("semi_notice_"),u=Object.assign(Object.assign({},l),{id:c});let p;const f=y=>{n.set(c,y)},v=C.createElement(J2,Object.assign({key:c},u,{afterClose:y=>p(y),ref:f}));return p=e(v,Object.assign({},u)),c};return[{success:l=>r(Object.assign(Object.assign(Object.assign({},Qo),l),{type:"success"})),info:l=>r(Object.assign(Object.assign(Object.assign({},Qo),l),{type:"info"})),error:l=>r(Object.assign(Object.assign(Object.assign({},Qo),l),{type:"error"})),warning:l=>r(Object.assign(Object.assign(Object.assign({},Qo),l),{type:"warning"})),open:l=>r(Object.assign(Object.assign(Object.assign({},Qo),l),{type:"default"})),close:l=>{const c=n.get(l);c&&c.close()}},C.createElement(C.Fragment,null,i)]}let Cn=null;const Gi={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};class tr extends mt{constructor(e){var n;super(e),n=this,this.add=r=>this.foundation.addNotice(r),this.has=r=>this.foundation.has(r),this.remove=r=>{this.foundation.removeNotice(String(r))},this.update=(r,s)=>this.foundation.update(r,s),this.destroyAll=()=>this.foundation.destroyAll(),this.renderNoticeInPosition=function(r,s){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const u=Q(ls.LIST);if(r.length){const p=n.setPosInStyle(r[0]);return C.createElement("div",{placement:s,key:s,className:u,style:p},r.map((f,v)=>{const y=l.find(S=>S.id===f.id)!==void 0;return C.createElement(us,{key:f.id,animationState:y?"leave":"enter",startClassName:`${ls.NOTICE}-animation-${y?"hide":"show"}_${s}`},S=>{let{animationClassName:k,animationEventsNeedBind:T,isAnimating:b}=S;return y&&!b?null:C.createElement(hi,Object.assign({},f,{ref:w=>{w&&c.some(D=>D.id===w.props.id)&&w.foundation.restartCloseTimer()},className:Q({[f.className]:!!f.className,[k]:!0})},T,{style:Object.assign({},f.style),close:n.remove}))})}))}return null},this.state={notices:[],removedItems:[],updatedItems:[]},this.noticeStorage=[],this.removeItemStorage=[],this.foundation=new U2(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateNotices:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.noticeStorage=[...n],e.removeItemStorage=[...r],e.setState({notices:n,removedItems:r,updatedItems:s})},getNotices:()=>this.noticeStorage})}static addNotice(e){var n;e=Object.assign(Object.assign({},Gi),e);const r=(n=e.id)!==null&&n!==void 0?n:Ka("notification");if(Cn)Cn.has(`${r}`)?Cn.update(r,e):Cn.add(Object.assign(Object.assign({},e),{id:r}));else{const{getPopupContainer:s}=e,l=document.createElement("div");this.wrapperId||(this.wrapperId=Ka("notification-wrapper").slice(0,32)),l.className=ls.WRAPPER,l.id=this.wrapperId,l.style.zIndex=String(typeof e.zIndex=="number"?e.zIndex:Gi.zIndex),s?s().appendChild(l):document.body.appendChild(l),Jn.render(C.createElement(tr,{ref:c=>Cn=c}),l,()=>{Cn.add(Object.assign(Object.assign({},e),{id:r}))})}return r}static removeNotice(e){return Cn&&Cn.remove(e),e}static info(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"info"}))}static success(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"success"}))}static error(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"error"}))}static warning(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"warning"}))}static open(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"default"}))}static close(e){return this.removeNotice(e)}static destroyAll(){if(Cn){Cn.destroyAll();const e=document.querySelector(`#${this.wrapperId}`);Jn.unmountComponentAtNode(e),e&&e.parentNode.removeChild(e),Cn=null,this.wrapperId=null}}static config(e){["top","left","bottom","right"].map(n=>{n in e&&(Gi[n]=e[n])}),typeof e.zIndex=="number"&&(Gi.zIndex=e.zIndex),typeof e.duration=="number"&&(Gi.duration=e.duration),typeof e.position=="string"&&(Gi.position=e.position)}setPosInStyle(e){const n={};return["top","left","bottom","right"].forEach(r=>{if(r in e){const s=e[r];n[r]=typeof s=="number"?`${s}px`:s}}),n}render(){let{notices:e}=this.state;const{removedItems:n,updatedItems:r}=this.state;e=Array.from(new Set([...e,...n]));const s={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};e.forEach(c=>{const p=(c.direction||this.context.direction)==="rtl"?"topLeft":"topRight",f=c.position||p;s[f].push(c)});const l=Object.entries(s).map(c=>{const u=c[0],p=c[1];return this.renderNoticeInPosition(p,u,n,r)});return C.createElement(C.Fragment,null,l)}}tr.contextType=qn;tr.propTypes={style:g.object,className:g.string,direction:g.oneOf(w0.directions)};tr.defaultProps={};tr.useNotification=tI;const nI={PREFIX:xe+"-overflow-list"},ww={COLLAPSE:"collapse",SCROLL:"scroll"},Cw={START:"start",END:"end"},rI={GROW:1},di={BOUNDARY_SET:Object.values(Cw),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ww),MODE_MAP:ww,BOUNDARY_MAP:Cw,OVERFLOW_DIR:rI},_w={MINIMUM_HTML_ELEMENT_WIDTH:4};class wg extends C.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:n,threshold:r,rootMargin:s,option:l,onIntersect:c}=this.props;this.observer=new IntersectionObserver(c,Object.assign({root:n,threshold:r,rootMargin:s},l)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,n=Object.keys(e);_n(this.cachedKeys,n)||(this.observeElement(!0),this.cachedKeys=n)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:n}=this.props;if(Zn(n)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(n).forEach(r=>{const s=n[r];s&&ci(s)&&this.observer.observe(s)})}render(){const{children:e}=this.props;return e}}wg.propTypes={onIntersect:g.func,option:g.object,root:g.any,threshold:g.number,rootMargin:g.string,items:g.object};wg.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const iI=di.BOUNDARY_MAP;class oI extends Et{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:n}=this.getProps();return n==="scroll"},this.getReversedItems=()=>{const{items:n}=this.getProps();return Xa(n).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:n,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const s=e.map(p=>{let{key:f}=p;return!!n.get(f)}),l=s.indexOf(!0),c=s.lastIndexOf(!0),u=[];return u[0]=l>=0?e.slice(0,l):[],u[1]=c>=0?e.slice(c+1,e.length):e.slice(),u}handleIntersect(e){const n=Xa(this.getState("visibleState")),r={};e.forEach(p=>{const f=Te(p,"target.dataset.scrollkey"),v=p.isIntersecting;r[f]=p,n.set(f,v)});let s=!1;for(const p of n.values())if(p){s=!0;break}const l=s,[c]=e,u=c.boundingClientRect.y;if(!l&&this.previousY!==void 0&&u!==this.previousY){this.previousY=u;return}this.previousY=u,this._adapter.updateVisibleState(n),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:n}=this.getProps(),{overflowWidth:r,containerWidth:s,pivot:l,overflowStatus:c}=this.getStates(),{items:u,onOverflow:p}=this.getProps();let f=r,v=0,y=!1;for(const S of this._adapter.getItemSizeMap().values()){if(f+=S,f>s){y=!0;break}if(v===u.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:u.length-1,visible:u,overflow:[]});break}v++}if(y){const S=Math.max(e,v),k=n===iI.START,T=k?this.getReversedItems().slice(0,S).reverse():u.slice(0,S),b=k?this.getReversedItems().slice(S).reverse():u.slice(S);this._adapter.updateStates({overflowStatus:"overflowed",pivot:S,visible:T,overflow:b}),l!==S&&p(b);return}}}const Xo=nI.PREFIX,ah=di.BOUNDARY_MAP,kw=di.OVERFLOW_DIR,Yo=di.MODE_MAP;class ds extends mt{constructor(e){var n;super(e),n=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Yo.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var s;const l=(s=r[0])===null||s===void 0?void 0:s.target.clientWidth;n.setState({containerWidth:l,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,s,l)=>{this.itemRefs[l]=s,typeof r=="function"?r(s):typeof r=="object"&&r&&"current"in r&&(r.current=s)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,s)=>{const{itemKey:l}=this.props;return Yt(l)?l(r):Te(r,l||"key",s)},this.renderItemList=()=>{const{className:r,wrapperClassName:s,wrapperStyle:l,style:c,visibleItemRenderer:u,renderMode:p,collapseFrom:f}=this.props,{visible:v,overflowStatus:y}=this.state;let S=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(S)&&(S=C.createElement(C.Fragment,null,S)),C.isValidElement(S))){const b=C.cloneElement(S);S=C.createElement(Hi,{onResize:w=>{let[D]=w;this.setState({overflowWidth:D.target.clientWidth,overflowStatus:"calculating"})}},C.createElement("div",{className:`${Xo}-overflow`},b))}const k=p===Yo.SCROLL?(()=>{const b=[C.createElement("div",{className:Q(s,`${Xo}-scroll-wrapper`),ref:w=>{this.scroller=w},style:Object.assign({},l),key:`${Xo}-scroll-wrapper`},v.map(u).map(w=>{const{forwardRef:D,key:O}=w;return C.cloneElement(w,{ref:N=>this.mergeRef(D,N,O),"data-scrollkey":`${O}`,key:O})}))];return this.props.overflowRenderDirection==="both"?(b.unshift(S[0]),b.push(S[1])):this.props.overflowRenderDirection==="start"?(b.unshift(S[1]),b.unshift(S[0])):(b.push(S[0]),b.push(S[1])),b})():[f===ah.START?S:null,v.map((b,w)=>{const{key:D}=b,O=u(b,w),N=C.cloneElement(O);return C.createElement(Hi,{key:D??w,onResize:M=>{let[z]=M;return this.onItemResize(z,b,w)}},C.createElement("div",{key:D??w,className:`${Xo}-item`},N))}),f===ah.END?S:null];return C.createElement("div",{className:Q(`${Xo}`,r),style:Object.assign(Object.assign({},c),p===Yo.COLLAPSE?{maxWidth:"100%",visibility:y==="calculating"?"hidden":"visible"}:null)},...k)},this.onItemResize=(r,s,l)=>{const c=this.getItemKey(s,l),u=this.itemSizeMap.get(c);u?u!==r.target.clientWidth&&(this.itemSizeMap.set(c,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(c,r.target.clientWidth);const{maxCount:p}=this.state;this.itemSizeMap.size===p&&this.setState({overflowStatus:"calculating"})},this.state={direction:kw.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new oI(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,n){const{prevProps:r}=n,s={};s.prevProps=e;const l=c=>!r&&c in e||r&&!_n(r[c],e[c]);if(l("items")||l("style")){if(s.direction=kw.GROW,s.lastOverflowCount=0,s.maxCount=0,e.renderMode===Yo.SCROLL)s.visible=e.items,s.overflow=[];else{let c=e.items.length;Math.floor(n.containerWidth/_w.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(c=Math.min(c,Math.floor(n.containerWidth/_w.MINIMUM_HTML_ELEMENT_WIDTH)));const u=e.collapseFrom===ah.START,p=u?Xa(e.items).reverse().slice(0,c):e.items.slice(0,c),f=u?Xa(e.items).reverse().slice(c):e.items.slice(c);s.visible=p,s.overflow=f,s.maxCount=c}s.pivot=-1,s.overflowStatus="calculating"}return s}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e},()=>{var n,r;(r=(n=this.props).onVisibleStateChange)===null||r===void 0||r.call(n,e)})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,n){const r=e.items.map(f=>f.key),s=this.props.items.map(f=>f.key);_n(r,s)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:l,containerWidth:c,visible:u,overflowStatus:p}=this.state;this.isScrollMode()||p!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:n}=this.props;return n===Yo.SCROLL?C.createElement(wg,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):C.createElement(Hi,{onResize:this.resize},e)}}ds.__SemiComponentName__="OverflowList";ds.defaultProps=sr(ds.__SemiComponentName__,{collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null,overflowRenderDirection:"both"});ds.propTypes={className:g.string,collapseFrom:g.oneOf(di.BOUNDARY_SET),direction:g.oneOf(di.POSITION_SET),items:g.array,minVisibleItems:g.number,onIntersect:g.func,onOverflow:g.func,overflowRenderer:g.func,renderMode:g.oneOf(di.MODE_SET),style:g.object,threshold:g.number,visibleItemRenderer:g.func,wrapperClassName:g.string,wrapperStyle:g.object,collapseMask:g.object,overflowRenderDirection:g.string};const Cg={PREFIX:`${xe}-select`,PREFIX_OPTION:`${xe}-select-option`,PREFIX_GROUP:`${xe}-select-group`},nr={SIZE_SET:["small","large","default"],POSITION_SET:Ui.POSITION_SET,STATUS:lT,SEARCH_POSITION_TRIGGER:"trigger",SEARCH_POSITION_DROPDOWN:"dropdown"},_0={LIST_HEIGHT:270};var Pw=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class sI extends Et{constructor(e){super(Object.assign({},e)),this._keydownHandler=null}init(){this._setDropdownWidth();const e=this.getProp("defaultOpen"),n=this.getProp("open"),r=this._collectOptions();this._setDefaultSelection(r),(e||n)&&this.open(void 0,r),this.getProp("autoFocus")&&this.focus()}focus(){const e=this._isFilterable(),n=this._isMultiple();this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1),e&&n?this.focusInput():e&&!n?this.toggle2SearchInput(!0):this._focusTrigger()}_focusTrigger(){this._adapter.focusTrigger()}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:n}=this.getProps();let r;n&&(e&&Lr(e.width)||e&<(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_collectOptions(){const e=this._adapter.getOptionsFromChildren();return this._adapter.updateOptions(e),this._adapter.rePositionDropdown(),e}_setDefaultSelection(e){let{value:n}=this.getProps();const{defaultValue:r}=this.getProps();this._isControlledComponent()||(n=r),this._update(n,e)}handleOptionListChange(){const e=this._collectOptions(),{selections:n}=this.getStates();this.updateOptionsActiveStatus(n,e);const{defaultActiveFirstOption:r}=this.getProps();r&&this._adapter.updateFocusIndex(0)}handleOptionListChangeHadDefaultValue(){const e=this.getState("selections");let n;const{onChangeWithObject:r}=this.getProps(),s=this._isMultiple();switch(!0){case(s&&!!e.size):try{n=[...e].map(c=>r?c[1]:c[1].value)}catch{n=[]}break;case(s&&!e.size):n=[];break;case(!s&&!!e.size):try{n=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!s&&!e.size):break}const l=this._adapter.getOptionsFromChildren();this._update(n,l)}handleValueChange(e){const{allowCreate:n,autoClearSearchValue:r,remote:s}=this.getProps(),{inputValue:l}=this.getStates();let c;n&&this._isControlledComponent()?(c=this.getState("options"),c.forEach(u=>u._show=!0)):c=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&l&&!s&&(c=this._filterOption(c,l)),this._update(e,c)}_update(e,n){let r;this._isMultiple()?(r=this._updateMultiple(e,n),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,n),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,n)}_updateSingle(e,n){const r=new Map,{onChangeWithObject:s}=this.getProps(),l=s&&typeof e<"u"?e.value:e,c=n.filter(p=>p.value===l),u=!c.length&&typeof l<"u"&&l!==null;if(c.length){const p=c[0],f=Object.assign({},p);r.set(f.label,f)}else if(u){let p={value:e,label:e,_notExist:!0,_scrollIndex:-1};s&&(p=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(p.label,p)}return r}_updateMultiple(e,n){const r=this.getState("selections");let s=[];const l=Array.isArray(e);this.checkMultipleProps(),r.size&&(s=[...r].map(f=>f[1]));const c=new Map;let u=e;const{onChangeWithObject:p}=this.getProps();return p&&l&&(u=e.map(f=>f.value)),l&&u.length&&u.forEach((f,v)=>{const y=n.findIndex(S=>S.value===f);if(y!==-1)c.set(n[y].label,n[y]);else{const S=s.findIndex(k=>k.value===f);if(S!==-1){const k=s[S];if(p){const T=Object.assign({},e[v]);_n(T,k)?c.set(k.label,k):c.set(T.label,T)}else c.set(k.label,k)}else{let k={value:f,label:f,_notExist:!0};p&&(k=Object.assign(Object.assign({},e[v]),{_notExist:!0})),c.set(k.label,Object.assign(Object.assign({},k),{_scrollIndex:-1}))}}}),c}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:n}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&n?this.close({event:e}):r&&!n&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,n){const r=this._isFilterable(),s=n||this.getState("options");if(r){const c=this._filterOption(s,"").filter(u=>!u._inputCreateOnly);this._adapter.updateOptions(c),this.toggle2SearchInput(!0)}else this._adapter.updateFocusState(!0);this._adapter.openMenu(()=>{const{searchPosition:l,autoFocus:c}=this.getProps();c&&l===nr.SEARCH_POSITION_DROPDOWN&&this._adapter.focusDropdownInput()}),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(l=>{this.close({event:l}),this._notifyBlur(l),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e){const{event:n,closeCb:r,notToggleInput:s}=e||{},{isFocus:l}=this.getStates();this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),l&&this._focusTrigger(),this._adapter.unregisterClickOutsideHandler();const c=this._isFilterable();c&&!s&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{c&&this.clearInput(n),r&&r()})}onSelect(e,n,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):this._handleSingleSelect(e,r),this._adapter.updateFocusIndex(n)}_handleSingleSelect(e,n){var{value:r,label:s}=e,l=Pw(e,["value","label"]);const c=new Map().set(s,Object.assign({value:r,label:s},l));this._notifySelect(r,Object.assign({value:r,label:s},l));const u=this._isFilterable();this._isControlledComponent()?this.close({event:n,notToggleInput:!0,closeCb:()=>{this._notifyChange(c),u&&this.toggle2SearchInput(!1)}}):(this._adapter.updateSelection(c),this._notifyChange(c),this.close({event:n,closeCb:()=>{this.updateOptionsActiveStatus(c)}}))}_handleMultipleSelect(e,n){var{value:r,label:s}=e,l=Pw(e,["value","label"]);const c=this._adapter.getMaxLimit(),u=this._adapter.getSelections(),{autoClearSearchValue:p}=this.getProps();if(u.has(s))this._notifyDeselect(r,Object.assign({value:r,label:s},l)),u.delete(s);else if(c&&u.size===c){this._adapter.notifyMaxLimit(Object.assign({value:r,label:s},mi(l,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:s},l)),u.set(s,Object.assign({value:r,label:s},l));if(this._isControlledComponent())this._notifyChange(u),this._isFilterable()&&(p&&this.clearInput(n),this.focusInput());else{this._adapter.updateSelection(u),this.updateOverflowItemCount(u.size),this._adapter.rePositionDropdown();let{options:f}=this.getStates();this._isFilterable()&&(p&&(this.clearInput(n),f=this._filterOption(f,"")),this.focusInput()),this.updateOptionsActiveStatus(u,f),this._notifyChange(u)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:n}=this.getStates();n&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),s=n.map(l=>(e.has(l.label)?(l._selected=!0,r&&delete l._inputCreateOnly):(l._inputCreateOnly&&(l._show=!1),l._selected=!1),l));this._adapter.updateOptions(s)}removeTag(e){const n=this._adapter.getSelections();n.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(n)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(n),this.updateOverflowItemCount(n.size),this.updateOptionsActiveStatus(n),this._adapter.rePositionDropdown(),this._notifyChange(n))}clearInput(e){const{inputValue:n}=this.getStates();if(n!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:s}=this.getProps();let l=r;s||(l=this._filterOption(r,"")),this._adapter.updateOptions(l)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,n){this._adapter.updateInputValue(e);const{options:r,isOpen:s}=this.getStates(),{allowCreate:l,remote:c}=this.getProps();let u=r;c||(u=this._filterOption(r,e)),u=this._createOptionByInput(l,u,e),this._adapter.updateOptions(u),this._adapter.notifySearch(e,n),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,n){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const s=n.toLowerCase();return e.map(l=>{const c=l.label.toString().toLowerCase(),u=l._parentGroup&&l._parentGroup.label,p=c.includes(s),f=lt(u)&&u.toLowerCase().includes(s);return p||f?l._show=!0:l._show=!1,l})}else if(typeof r=="function")return e.map(s=>(r(n,s)?s._show=!0:s._show=!1,s))}else return e}_createOptionByInput(e,n,r){if(e)if(r){const s={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let l=-1,c=-1;n.forEach((u,p)=>{!u._show&&!u._inputCreateOnly||(u.label===r&&(c=p),u._inputCreateOnly&&(l=p,u.value=r,u.label=r,u._show=!0))}),l===-1&&c===-1&&n.push(s),c!==-1&&(n=n.filter(u=>!u._inputCreateOnly))}else n=n.filter(s=>!s._inputCreateOnly);return n}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const n=e.keyCode,{loading:r,filter:s,multiple:l,disabled:c}=this.getProps(),{isOpen:u}=this.getStates();if(!(r||c))switch(n){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Nr(e),this._handleEnterKeyDown(e);break;case Rr.ESC:u&&this.close({event:e}),s&&!l&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const n=e.keyCode,{isOpen:r}=this.getStates();n===Rr.TAB&&r&&this._handleTabKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:n,options:r}=this.getStates(),s=r.filter(u=>u._show),l=s.length;let c=n+e;if(c<0&&(c=l-1),c>=l&&(c=0),e>0){let u=-1;for(let p=0;p<s.length&&(!s[p].disabled&&(u=p),!(u>=c));p++);c=u}else{let u=s.length;for(let p=l-1;p>=0&&(!s[p].disabled&&(u=p),!(u<=c));p--);c=u}this._adapter.updateFocusIndex(c),this._adapter.updateScrollTop(c)}_handleArrowKeyDown(e){const{isOpen:n}=this.getStates();n?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:n}=this.getStates();if(this._adapter.updateFocusState(!1),n){const r=this._adapter.getContainer(),s=this._adapter.getFocusableElements(r);s.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(s,e):this._handlePanelOpenTabKeyDown(s,e):(this.close({event:e}),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,n){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close({event:n}),Nr(n)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Nr(n))}_handlePanelOpenShiftTabKeyDown(e,n){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Nr(n)):(this.close({event:n}),this._notifyBlur(n))}_handleEnterKeyDown(e){const{isOpen:n,options:r,focusIndex:s}=this.getStates();if(!n)this.open();else if(s!==-1){const l=r.filter(u=>u._show),{length:c}=l;if(c<=s)return;if(l&&c){const u=l[s];if(u.disabled)return;this.onSelect(u,s,e)}}else this.close({event:e})}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:n}=this.getStates(),r=e.size;if(r&&!n){const s=[...e.keys()];let l=r-1,c=s[l],u=e.get(c),p=!1;if(u.disabled&&l===0)return;for(;u.disabled&&l!==0;)l=l-1,c=s[l],u=e.get(c),l==0&&u.disabled&&(p=!0);p||this.removeTag(u)}}}_notifyChange(e){const{onChangeWithObject:n}=this.getProps(),r=this.getState("selections");let s;const l=[...e.values()],c=this._isMultiple();if(this._diffSelections(e,r,c))switch(!0){case n:this._notifyChangeWithObject(e);break;case(!n&&!c):s=l.length?l[0].value:void 0,this._adapter.notifyChange(s);break;case(!n&&c):s=l.length?l.map(p=>p.value):[],this._adapter.notifyChange(s);break}}_removeInternalKey(e){let n=Object.assign({},e);return delete n._parentGroup,delete n._show,delete n._selected,delete n._scrollIndex,delete n._keyInJsx,"_keyInOptionList"in n&&(n.key=n._keyInOptionList,delete n._keyInOptionList),n}_notifySelect(e,n){const r=this._removeInternalKey(n);this._adapter.notifySelect(e,r)}_notifyDeselect(e,n){const r=this._removeInternalKey(n);this._adapter.notifyDeselect(e,r)}_diffSelections(e,n,r){let s=!0,l=!0;if(!r){const c=[...e.values()],u=[...n.values()],p=c[0]?c[0].value:c[0],f=u[0]?u[0].value:u[0];l=!_n(p,f);const v=c[0]?c[0].label:c[0],y=u[0]?u[0].label:u[0];s=!_n(v,y)}return l||s}_notifyChangeWithObject(e){this.getState("selections");const n=[];for(const r of e.entries()){let s=Object.assign({label:r[0]},r[1]);s=this._removeInternalKey(s),n.push(s)}this._isMultiple()?this._adapter.notifyChange(n):this._adapter.notifyChange(n[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:n,searchPosition:r}=this.getProps();n&&r===nr.SEARCH_POSITION_TRIGGER&&this.clearInput(e),this.focus(),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===Jh&&this.handleClick(e)}handleClearBtnEnterPress(e){eg(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){const{filter:n,autoFocus:r}=this.getProps(),{isOpen:s,isFocus:l}=this.getStates();l&&!s&&(this._notifyBlur(e),this._adapter.updateFocusState(!1))}handleInputBlur(e){const{filter:n,autoFocus:r}=this.getProps(),{showInput:s,isOpen:l}=this.getStates(),c=this._isMultiple();n&&!c&&(s||r)&&!l&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:n}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select.
|
|
12
|
+
Please note that this is not a legal way to use it`);return}n?r=e:r=e.map(l=>l.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const n=e||this.getProps(),{defaultValue:r,value:s}=n,l=s||r;!gl(l)&&!Array.isArray(l)&&rr(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,n){const{maxTagCount:r,ellipsisTrigger:s}=this.getProps();s&&(n?this._adapter.updateOverflowItemCount(n):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const Zo=t0.PREFIX,k0=to.TAG_SIZE,aI=to.AVATAR_SHAPE;class Ya extends E.PureComponent{renderNTag(e,n){const{size:r,showPopover:s,popoverProps:l,onPlusNMouseEnter:c}=this.props;let u=C.createElement(zt,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:c},"+",e);return s&&(u=C.createElement(zn,Object.assign({showArrow:!0,content:n,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Zo}-rest-group-popover`},l,{key:"_+n_Popover"}),u)),u}renderMergeTags(e){const{maxTagCount:n,tagList:r,restCount:s}=this.props,l=s||r.length-n;let c=e;const u=e.slice(0,n),p=e.slice(n);let f=null;return l>0&&(f=this.renderNTag(l,p),u.push(f),c=u),c}renderAllTags(){const{tagList:e,size:n,mode:r,avatarShape:s,onTagClose:l}=this.props;return e.map(u=>{if(r==="custom")return u;const p=Object.assign({},u);return p.size||(p.size=n),p.avatarShape||(p.avatarShape=s),p.tagKey||(typeof p.children=="string"||typeof p.children=="number"?p.tagKey=p.children:p.tagKey=Math.random()),C.createElement(zt,Object.assign({},p,{key:p.tagKey,onClose:(f,v,y)=>{p.onClose&&p.onClose(f,v,y),l&&l(f,v,y)}}))})}render(){const{style:e,className:n,maxTagCount:r,size:s}=this.props,l=Q({[`${Zo}-group`]:!0,[`${Zo}-group-max`]:r,[`${Zo}-group-small`]:s==="small",[`${Zo}-group-large`]:s==="large"},n),c=this.renderAllTags(),u=typeof r>"u"?c:this.renderMergeTags(c);return C.createElement("div",{style:e,className:l},u)}}Ya.defaultProps={style:{},className:"",size:k0[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};Ya.propTypes={children:g.node,style:g.object,className:g.string,maxTagCount:g.number,restCount:g.number,tagList:g.array,size:g.oneOf(k0),mode:g.string,onTagClose:g.func,showPopover:g.bool,popoverProps:g.object,avatarShape:g.oneOf(aI)};var lI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Tw=(i,e,n,r)=>{const s=i.props;if(!i||!s)return null;const l=Object.assign(Object.assign({value:s.value,label:s.label||s.children||s.value,_show:!0,_selected:!1,_scrollIndex:n},s),{_parentGroup:e});return l._keyInJsx=r||i.key,l},cI=i=>{let e=[],n=[];const r={label:"",children:[],_show:!1};let s=C.Children.toArray(i);s=s.filter(u=>u&&u.props);let l="",c=-1;return s.forEach(u=>{if(u.type.isSelectOption){l="option",c++;const p=Tw(u,void 0,c);r.children.push(p),n.push(p)}else if(u.type.isSelectOptionGroup){l="group";let p=u.props,{children:f}=p,v=lI(p,["children"]);v.key=u.key;let y=[];Array.isArray(f)?y=f.map(T=>T.key):y.push(f.key),f=C.Children.toArray(f);const S=f.map((T,b)=>{let w=T.key;return y[b]===null&&(w=u.key+""+T.key),c++,Tw(T,v,c,w)}),k=Object.assign(Object.assign({},u.props),{children:S,key:u.key});e.push(k),n=n.concat(S)}else rr(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),l==="option"&&(e=[r]),{optionGroups:e,options:n}},uI=i=>{let{index:e,data:n,style:r}=i;const{visibleOptions:s,renderOption:l}=n,c=s[e];return l(c,e,r)};var Ew=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class pi extends E.PureComponent{onClick(e,n){var{value:r,label:s,children:l}=e,c=Ew(e,["value","label","children"]);const{props:u}=this;u.disabled||u.onSelect(Object.assign(Object.assign({},c),{value:r,label:s||l}),n)}renderOptionContent(e){let{config:n,children:r,inputValue:s,prefixCls:l}=e;return lt(r)&&s?C.createElement(lg,{searchWords:n.searchWords,sourceString:n.sourceString,highlightClassName:n.highlightClassName}):r}render(){const e=this.props,{children:n,disabled:r,value:s,selected:l,label:c,empty:u,emptyContent:p,onSelect:f,focused:v,showTick:y,className:S,style:k,onMouseEnter:T,prefixCls:b,renderOptionItem:w,inputValue:D,semiOptionId:O}=e,N=Ew(e,["children","disabled","value","selected","label","empty","emptyContent","onSelect","focused","showTick","className","style","onMouseEnter","prefixCls","renderOptionItem","inputValue","semiOptionId"]),M=Q(b,{[`${b}-disabled`]:r,[`${b}-selected`]:l,[`${b}-focused`]:v,[`${b}-empty`]:u,[S]:S}),z=Q([`${b}-icon`]);if(u)return p===null?null:C.createElement(Ar,{componentName:"Select"},j=>C.createElement("div",{className:M,"x-semi-prop":"emptyContent"},p||j.emptyText));if(typeof w=="function"){const j=Q(S,{[`${b}-custom`]:!0,[`${b}-custom-selected`]:l});return w(Object.assign({disabled:r,focused:v,selected:l,style:k,label:c,value:s,inputValue:D,onMouseEnter:F=>T(F),onClick:F=>this.onClick(Object.assign({value:s,label:c,children:n},N),F),className:j},N))}const L={searchWords:[D],sourceString:n,highlightClassName:`${b}-keyword`};return C.createElement("div",Object.assign({className:M,onClick:j=>{this.onClick(Object.assign({value:s,label:c,children:n},N),j)},onMouseEnter:j=>T&&T(j),role:"option",id:O,"aria-selected":l?"true":"false","aria-disabled":r?"true":"false",style:k},Mh(N)),y?C.createElement("div",{className:z},C.createElement(HC,null)):null,lt(n)?C.createElement("div",{className:`${b}-text`},this.renderOptionContent({children:n,config:L,inputValue:D,prefixCls:b})):n)}}pi.isSelectOption=!0;pi.propTypes={children:g.node,disabled:g.bool,value:g.oneOfType([g.string,g.number]),selected:g.bool,label:g.node,empty:g.bool,emptyContent:g.node,onSelect:g.func,focused:g.bool,showTick:g.bool,className:g.string,style:g.object,onMouseEnter:g.func,prefixCls:g.string,renderOptionItem:g.func,inputValue:g.string};pi.defaultProps={prefixCls:Cg.PREFIX_OPTION};var dI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const pI=Cg.PREFIX_GROUP;class Tl extends mt{render(){const e=this.props,{label:n,className:r,style:s}=e,l=dI(e,["label","className","style"]),c=Q(r,{[pI]:!0});return!n&&typeof n!="number"?null:C.createElement("div",Object.assign({className:c,style:s},this.getDataAttr(l)),n)}}Tl.isSelectOptionGroup=!0;Tl.propTypes={children:g.oneOfType([g.array,g.node]),label:g.node,className:g.string,style:g.object};var fI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const he=Cg.PREFIX,hI=0;class $r extends mt{constructor(e){super(e),this.setOptionContainerEl=n=>this.optionContainerEl={current:n},this.handleInputChange=(n,r)=>this.foundation.handleInputChange(n,r),this.getTagItem=(n,r,s)=>{const{size:l,disabled:c}=this.props,u=n[0],{value:p}=n[1],f=n[1].disabled||c,v=(T,b)=>{b&&typeof b.preventDefault=="function"&&b.preventDefault(),this.foundation.removeTag({label:u,value:p})},{content:y,isRenderInTag:S}=s(n[1],{index:r,disabled:f,onClose:v}),k={disabled:f,closable:!f,onClose:v};return S?C.createElement(zt,Object.assign({},k,{color:"white",size:l||"large",key:p,tabIndex:-1}),y):C.createElement(E.Fragment,{key:p},y)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:hI,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=C.createRef(),this.inputRef=C.createRef(),this.dropdownInputRef=C.createRef(),this.triggerRef=C.createRef(),this.optionsRef=C.createRef(),this.optionContainerEl=C.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new zC,this.foundation=new sI(this.adapter)}get adapter(){var e=this;const n={registerKeyDown:l=>{const c={onKeyDown:l};this.setState({keyboardEventSet:c})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:l=>{this.setState({focusIndex:l})},scrollToFocusOption:()=>{}},r={updateInputValue:l=>{this.setState({inputValue:l})},toggleInputShow:(l,c)=>{this.setState({showInput:l},()=>{c()})},focusInput:()=>{const{preventScroll:l}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:l})},focusDropdownInput:()=>{const{preventScroll:l}=this.props;this.dropdownInputRef&&this.dropdownInputRef.current&&this.dropdownInputRef.current.focus({preventScroll:l})}},s={notifyMaxLimit:l=>this.props.onExceed(l),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:l=>{const c=u=>{const p=this.optionsRef&&this.optionsRef.current,f=this.triggerRef&&this.triggerRef.current,v=Jn.findDOMNode(p),y=u.target,S=u.composedPath&&u.composedPath()||[y];!(v&&v.contains(y))&&!(f&&f.contains(y))&&!(S.includes(f)||S.includes(v))&&l(u)};this.clickOutsideHandler=c,document.addEventListener("mousedown",c,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:l}=this.state;l=l+1,this.setState({optionKey:l})},notifyDeselect:(l,c)=>{delete c._parentGroup,this.props.onDeselect(l,c)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),n),r),s),{on:(l,c)=>this.eventManager.on(l,c),off:l=>this.eventManager.off(l),once:(l,c)=>this.eventManager.once(l,c),emit:l=>this.eventManager.emit(l),getOptionsFromChildren:function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,c=[],u=[];const{optionList:p}=e.props;if(p&&p.length)u=p.map((f,v)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:v},f)),c[0]={children:u,label:""};else{const f=cI(l);c=f.optionGroups,u=f.options}return e.setState({optionGroups:c}),u},updateOptions:l=>{this.setState({options:l})},openMenu:l=>{this.setState({isOpen:!0},()=>{l?.()})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const l=this.triggerRef.current;return l&&l.getBoundingClientRect().width},setOptionWrapperWidth:l=>{this.setState({dropdownMinWidth:l})},updateSelection:l=>{this.setState({selections:l})},getSelections:()=>new Map(this.state.selections),notifyChange:l=>{this.props.onChange(l)},notifySelect:(l,c)=>{delete c._parentGroup,this.props.onSelect(l,c)},notifyDropdownVisibleChange:l=>{this.props.onDropdownVisibleChange(l)},notifySearch:(l,c)=>{this.props.onSearch(l,c)},notifyCreate:l=>{this.props.onCreate(l)},notifyMouseEnter:l=>{this.props.onMouseEnter(l)},notifyMouseLeave:l=>{this.props.onMouseLeave(l)},notifyFocus:l=>{this.props.onFocus(l)},notifyBlur:l=>{this.props.onBlur(l)},notifyClear:()=>{this.props.onClear()},notifyListScroll:l=>{this.props.onListScroll(l)},updateHovering:l=>{this.setState({isHovering:l})},updateFocusState:l=>{this.setState({isFocus:l})},updateOverflowItemCount:l=>{this.setState({overflowItemCount:l})},focusTrigger:()=>{try{const{preventScroll:l}=this.props;this.triggerRef.current.focus({preventScroll:l})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:l=>GC(l),getActiveElement:()=>qC(),setIsFocusInContainer:l=>{this.setState({isFocusInContainer:l})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:l=>{let c;"renderOptionItem"in this.props?(c=`.${he}-option-custom-selected`,l!==void 0&&(c=`.${he}-option-custom:nth-child(${l+1})`)):(c=`.${he}-option-selected`,l!==void 0&&(c=`.${he}-option:nth-child(${l+1})`));let u=document.querySelector(`#${he}-${this.selectOptionListID} ${c}`);if(Array.isArray(u)&&(u=u[0]),u){const p=u.parentNode;p.scrollTop=u.offsetTop-p.offsetTop-p.clientHeight/2+u.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=cs(),this.selectID=this.props.id||cs()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,n){const r=C.Children.toArray(e.children).map(c=>c.key),s=C.Children.toArray(this.props.children).map(c=>c.key);let l=!1;(!_n(r,s)||!_n(e.optionList,this.props.optionList))&&(l=!0,this.foundation.handleOptionListChange()),(!_n(this.props.value,e.value)||l)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderTriggerInput(){const{size:e,multiple:n,disabled:r,inputProps:s,filter:l}=this.props,c=Te(s,"className"),u=Q(`${he}-input`,{[`${he}-input-single`]:!n,[`${he}-input-multiple`]:n},c),{inputValue:p,focusIndex:f}=this.state,v=Object.assign({value:p,disabled:r,className:u,onChange:this.handleInputChange},s);let y={};return n&&(y={width:p?`${p.length*16}px`:"2px"},v.style=y),C.createElement(as,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":f!==-1?`${this.selectID}-option-${f}`:"",onFocus:S=>{n&&l&&this.setState({isFocus:!0}),S.stopPropagation()},onBlur:S=>this.foundation.handleInputBlur(S)},v))}renderDropdownInput(){const{size:e,multiple:n,disabled:r,inputProps:s,filter:l,searchPosition:c,searchPlaceholder:u}=this.props,{inputValue:p,focusIndex:f}=this.state,v=Q(`${he}-dropdown-search-wrapper`,{}),y=Te(s,"className"),S=Q(`${he}-dropdown-input`,{[`${he}-dropdown-input-single`]:!n,[`${he}-dropdown-input-multiple`]:n},y),k=Object.assign(Object.assign({value:p,disabled:r,className:S,onChange:this.handleInputChange,placeholder:u,showClear:!0},s),{onKeyDown:T=>this.foundation._handleKeyDown(T)});return C.createElement("div",{className:v},C.createElement(as,Object.assign({ref:this.dropdownInputRef,prefix:C.createElement(bD,null),"aria-activedescendant":f!==-1?`${this.selectID}-option-${f}`:""},k)))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,n,r){this.foundation.onSelect(e,n,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,n){this.handleInputChange(e,n)}renderEmpty(){return C.createElement(pi,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${he}-loading-wrapper`;return C.createElement("div",{className:e},C.createElement(Mr,null))}renderOption(e,n,r){const{focusIndex:s,inputValue:l}=this.state,{renderOptionItem:c}=this.props;let u;const p=n===s;let f=r||{};return e.style&&(f=Object.assign(Object.assign({},f),e.style)),e._inputCreateOnly?u=this.renderCreateOption(e,p,n,r):("key"in e&&(e._keyInOptionList=e.key),u=C.createElement(pi,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(v,y)=>this.onSelect(v,n,y),focused:p,onMouseEnter:()=>this.onOptionHover(n),style:f,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+n,renderOptionItem:c,inputValue:l,semiOptionId:`${this.selectID}-option-${n}`}),e.label)),u}renderCreateOption(e,n,r,s){const{renderCreateItem:l}=this.props;if(typeof l>"u")return C.createElement(pi,Object.assign({key:e.key||e.label+e.value,onSelect:(p,f)=>this.onSelect(p,r,f),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:n,style:s}),C.createElement(Ar,{componentName:"Select"},p=>C.createElement(C.Fragment,null,C.createElement("span",{className:`${he}-create-tips`},p.createText),e.value)));const c=l(e.value,n,s);return C.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:u=>this.onSelect(e,r,u),key:e.key||e.label},c)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const n=[],r=new Map;return e.forEach((s,l)=>{const c=s._parentGroup,u=this.renderOption(s,l);if(c&&!r.has(c.label)){const p=typeof c.label=="string"||typeof c.label=="number"?c.label:c.key,f=C.createElement(Tl,Object.assign({},c,{key:p}));r.set(c.label,!0),n.push(f)}n.push(u)}),n}renderVirtualizeList(e){const{virtualize:n}=this.props,{direction:r}=this.context,{height:s,width:l,itemSize:c}=n;return C.createElement(HO,{ref:this.virtualizeListRef,height:s||_0.LIST_HEIGHT,itemCount:e.length,itemSize:c,itemData:{visibleOptions:e,renderOption:this.renderOption},width:l||"100%",style:{direction:r}},uI)}renderOptions(e){const{dropdownMinWidth:n,options:r,selections:s}=this.state,{maxHeight:l,dropdownClassName:c,dropdownStyle:u,outerTopSlot:p,innerTopSlot:f,outerBottomSlot:v,innerBottomSlot:y,loading:S,virtualize:k,multiple:T,emptyContent:b,searchPosition:w,filter:D}=this.props,O=r.filter(j=>j._show);let N=this.renderWithGroup(O);k&&(N=this.renderVirtualizeList(O));const M=Object.assign({minWidth:n},u),z=Q({[`${he}-option-list`]:!0,[`${he}-option-list-chosen`]:s.size}),L=!r.length||!r.some(j=>j._show);return C.createElement("div",{id:`${he}-${this.selectOptionListID}`,className:Q({[`${he}-option-list-wrapper`]:!(L&&b===null)},c),style:M,ref:this.setOptionContainerEl,onKeyDown:j=>this.foundation.handleContainerKeyDown(j)},p?C.createElement("div",{className:`${he}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},p):null,w===nr.SEARCH_POSITION_DROPDOWN&&D?this.renderDropdownInput():null,C.createElement("div",{style:{maxHeight:`${l}px`},className:z,role:"listbox","aria-multiselectable":T,onScroll:j=>this.foundation.handleListScroll(j)},f?C.createElement("div",{className:`${he}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},f):null,S?this.renderLoading():L?this.renderEmpty():N,y?C.createElement("div",{className:`${he}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},y):null),v?C.createElement("div",{className:`${he}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},v):null)}renderSingleSelection(e,n){let{renderSelectedItem:r,searchPosition:s}=this.props;const{placeholder:l}=this.props,{showInput:c,inputValue:u}=this.state;let p="";const f=[...e];if(typeof r>"u"&&(r=k=>k.label),f.length){const k=f[0][1];p=r(k)}const v=s===nr.SEARCH_POSITION_TRIGGER,y=Q({[`${he}-selection-text`]:!0,[`${he}-selection-placeholder`]:!p&&p!==0,[`${he}-selection-text-hide`]:u&&c&&v,[`${he}-selection-text-inactive`]:!u&&c&&v}),S=`${he}-content-wrapper`;return C.createElement(C.Fragment,null,C.createElement("div",{className:S},C.createElement("span",{className:y,"x-semi-prop":"placeholder"},p||p===0?p:l),n&&c&&v?this.renderTriggerInput():null))}renderTag(e,n,r){const{size:s,disabled:l}=this.props;let{renderSelectedItem:c}=this.props;const u=e[0],{value:p}=e[1],f=e[1].disabled||l,v=(b,w)=>{w&&typeof w.preventDefault=="function"&&w.preventDefault(),this.foundation.removeTag({label:u,value:p})};typeof c>"u"&&(c=b=>({isRenderInTag:!0,content:b.label}));const{content:y,isRenderInTag:S}=c(e[1],{index:n,disabled:f,onClose:v}),k={disabled:f,closable:!f,onClose:v},T=r&&!Yt(this.props.renderSelectedItem)?C.createElement(Sl,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},y):y;return S?C.createElement(zt,Object.assign({},k,{color:"white",size:s||"large",key:p,style:{maxWidth:"100%"}}),T):C.createElement(E.Fragment,{key:p},T)}renderNTag(e,n){const{size:r,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;let c=C.createElement(zt,{closable:!1,size:r||"large",color:"grey",className:`${he}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return s&&(c=C.createElement(zn,Object.assign({showArrow:!0,content:C.createElement(Ss,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},n.map((u,p)=>this.renderTag(u,p))),trigger:"hover",position:"top",autoAdjustOverflow:!0},l,{key:`_+${e}_Popover`}),c)),c}renderOverflow(e,n){return e.length&&e[0]?this.renderTag(e[0],n,!0):null}handleOverflow(e){const{overflowItemCount:n,selections:r}=this.state,{maxTagCount:s}=this.props,l=r.size-s>0?r.size-s+e.length-1:e.length-1;n!==l&&this.foundation.updateOverflowItemCount(r.size,l)}renderCollapsedTags(e,n){const{overflowItemCount:r}=this.state,s=typeof n=="number"?e.slice(0,n):e;return C.createElement("div",{className:`${he}-content-wrapper-collapse`},C.createElement(ds,{items:s,key:String(e.length),overflowRenderer:l=>this.renderOverflow(l,n-1),onOverflow:l=>this.handleOverflow(l),visibleItemRenderer:(l,c)=>this.renderTag(l,c)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,n){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:s,restTagsPopoverProps:l,maxTagCount:c}=this.props,{isFullTags:u}=this.state;let p;if(typeof r>"u"&&(r=f=>({isRenderInTag:!0,content:f.label})),s){const v=(u?e:e.slice(0,c)).map((y,S)=>this.getTagItem(y,S,r));p=C.createElement(Ya,{tagList:v,maxTagCount:n,restCount:u?void 0:e.length-c,size:"large",mode:"custom",showPopover:s,popoverProps:l,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const v=e.slice(0,c).map((y,S)=>this.getTagItem(y,S,r));p=C.createElement(Ya,{tagList:v,maxTagCount:n,restCount:e.length-c,size:"large",mode:"custom"})}return p}renderMultipleSelection(e,n){let{renderSelectedItem:r,searchPosition:s}=this.props;const{placeholder:l,maxTagCount:c,expandRestTagsOnClick:u,ellipsisTrigger:p}=this.props,{inputValue:f,isOpen:v}=this.state,y=[...e];typeof r>"u"&&(r=M=>({isRenderInTag:!0,content:M.label}));const S=Q({[`${he}-content-wrapper`]:!0,[`${he}-content-wrapper-one-line`]:c&&!v,[`${he}-content-wrapper-empty`]:!y.length}),k=Q({[`${he}-selection-text`]:!0,[`${he}-selection-placeholder`]:!y.length,[`${he}-selection-text-hide`]:y&&y.length}),T=l&&!f?C.createElement("span",{className:k},l):null,b=y.length>c?c:void 0,w=!c,D=p?this.renderCollapsedTags(y,b):this.renderOneLineTags(y,b),O=w||u&&v?y.map((M,z)=>this.renderTag(M,z)):D,N=n&&s===nr.SEARCH_POSITION_TRIGGER;return C.createElement(C.Fragment,null,C.createElement("div",{className:S},y&&y.length?O:T,N?this.renderTriggerInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:n}=this.props,{selections:r}=this.state;if(e)if(n){let s=-1;if(r.forEach(l=>{const c=Te(l,"_scrollIndex");Lr(c)&&c>=0&&(s=s!==-1&&s<c?s:c)}),s!==-1)try{this.virtualizeListRef.current.scrollToItem(s,"center")}catch{}}else this.foundation.updateScrollTop()}renderSuffix(){const{suffix:e}=this.props,n=Q({[`${he}-suffix`]:!0,[`${he}-suffix-text`]:e&<(e),[`${he}-suffix-icon`]:An(e)});return C.createElement("div",{className:n,"x-semi-prop":"suffix"},e)}renderPrefix(){const{prefix:e,insetLabel:n,insetLabelId:r}=this.props,s=e||n,l=Q({[`${he}-prefix`]:!0,[`${he}-inset-label`]:n,[`${he}-prefix-text`]:s&<(s),[`${he}-prefix-icon`]:An(s)});return C.createElement("div",{className:l,id:r,"x-semi-prop":"prefix,insetLabel"},s)}renderSelection(){const e=this.props,{disabled:n,multiple:r,filter:s,style:l,id:c,size:u,className:p,validateStatus:f,showArrow:v,suffix:y,prefix:S,insetLabel:k,placeholder:T,triggerRender:b,arrowIcon:w,clearIcon:D,borderless:O}=e,N=fI(e,["disabled","multiple","filter","style","id","size","className","validateStatus","showArrow","suffix","prefix","insetLabel","placeholder","triggerRender","arrowIcon","clearIcon","borderless"]),{selections:M,isOpen:z,keyboardEventSet:L,inputValue:j,isHovering:F,isFocus:U,showInput:V,focusIndex:K}=this.state,ie=typeof b=="function",ne=!!s,ae=ie?Q(p):Q(he,p,{[`${he}-borderless`]:O,[`${he}-open`]:z,[`${he}-focus`]:U,[`${he}-disabled`]:n,[`${he}-single`]:!r,[`${he}-multiple`]:r,[`${he}-filterable`]:ne,[`${he}-small`]:u==="small",[`${he}-large`]:u==="large",[`${he}-error`]:f==="error",[`${he}-warning`]:f==="warning",[`${he}-no-arrow`]:!v,[`${he}-with-prefix`]:S||k,[`${he}-with-suffix`]:y}),J=this.props.showClear&&(M.size||j)&&!n&&(F||z),ue=v?C.createElement("div",{className:`${he}-arrow`,"x-semi-prop":"arrowIcon"},w):C.createElement("div",{className:`${he}-arrow-empty`}),pe=D||C.createElement(UC,null),W=ie?C.createElement(ZC,{value:Array.from(M.values()),inputValue:j,onChange:this.handleInputChange,onSearch:this.handleInputChange,onRemove:I=>this.foundation.removeTag(I),onClear:this.onClear,disabled:n,triggerRender:b,placeholder:T,componentName:"Select",componentProps:Object.assign({},this.props)}):[C.createElement(E.Fragment,{key:"prefix"},S||k?this.renderPrefix():null),C.createElement(E.Fragment,{key:"selection"},C.createElement("div",{className:Q(`${he}-selection`)},r?this.renderMultipleSelection(M,ne):this.renderSingleSelection(M,ne))),C.createElement(E.Fragment,{key:"suffix"},y?this.renderSuffix():null),C.createElement(E.Fragment,{key:"clearicon"},J?C.createElement("div",{className:Q(`${he}-clear`),onClick:this.onClear},pe):ue)],ee=n||ne&&V||ne&&r?-1:0;return C.createElement("div",Object.assign({role:"combobox","aria-disabled":n,"aria-expanded":z,"aria-controls":`${he}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":M.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:ae,ref:I=>this.triggerRef.current=I,onClick:I=>this.foundation.handleClick(I),style:l,id:this.selectID,tabIndex:ee,"aria-activedescendant":K!==-1?`${this.selectID}-option-${K}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:I=>this.foundation.handleTriggerFocus(I),onBlur:I=>this.foundation.handleTriggerBlur(I),onKeyPress:this.onKeyPress},L,this.getDataAttr(N)),W)}render(){const{direction:e}=this.context,n=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:s=n,zIndex:l,getPopupContainer:c,motion:u,autoAdjustOverflow:p,mouseLeaveDelay:f,mouseEnterDelay:v,spacing:y,stopPropagation:S,dropdownMargin:k}=this.props,{isOpen:T,optionKey:b}=this.state,w=this.renderSelection();return C.createElement(zn,{getPopupContainer:c,motion:u,margin:k,autoAdjustOverflow:p,mouseLeaveDelay:f,mouseEnterDelay:v,zIndex:l,ref:this.optionsRef,content:()=>this.renderOptions(r),visible:T,trigger:"custom",rePosKey:b,position:s,spacing:y,stopPropagation:S,disableArrowKeyDown:!0,onVisibleChange:D=>this.handlePopoverVisibleChange(D),afterClose:()=>this.foundation.handlePopoverClose()},w)}}$r.contextType=qn;$r.Option=pi;$r.OptGroup=Tl;$r.propTypes={"aria-describedby":g.string,"aria-errormessage":g.string,"aria-invalid":g.bool,"aria-labelledby":g.string,"aria-required":g.bool,autoFocus:g.bool,autoClearSearchValue:g.bool,borderless:g.bool,children:g.node,clearIcon:g.node,defaultValue:g.oneOfType([g.string,g.number,g.array,g.object]),ellipsisTrigger:g.bool,value:g.oneOfType([g.string,g.number,g.array,g.object]),placeholder:g.node,onChange:g.func,multiple:g.bool,filter:g.oneOfType([g.func,g.bool]),max:g.number,maxTagCount:g.number,maxHeight:g.oneOfType([g.string,g.number]),style:g.object,className:g.string,size:g.oneOf(nr.SIZE_SET),disabled:g.bool,emptyContent:g.node,expandRestTagsOnClick:g.bool,onDropdownVisibleChange:g.func,zIndex:g.number,position:g.oneOf(nr.POSITION_SET),onSearch:g.func,getPopupContainer:g.func,dropdownClassName:g.string,dropdownStyle:g.object,dropdownMargin:g.oneOfType([g.number,g.object]),outerTopSlot:g.node,innerTopSlot:g.node,inputProps:g.object,outerBottomSlot:g.node,innerBottomSlot:g.node,optionList:g.array,dropdownMatchSelectWidth:g.bool,loading:g.bool,defaultOpen:g.bool,validateStatus:g.oneOf(nr.STATUS),defaultActiveFirstOption:g.bool,triggerRender:g.func,stopPropagation:g.bool,searchPosition:g.string,motion:g.bool,onChangeWithObject:g.bool,suffix:g.node,prefix:g.node,insetLabel:g.node,insetLabelId:g.string,showClear:g.bool,showArrow:g.bool,renderSelectedItem:g.func,allowCreate:g.bool,renderCreateItem:g.func,onMouseEnter:g.func,onMouseLeave:g.func,clickToHide:g.bool,onExceed:g.func,onCreate:g.func,remote:g.bool,onDeselect:g.func,onSelect:g.func,autoAdjustOverflow:g.bool,mouseEnterDelay:g.number,mouseLeaveDelay:g.number,spacing:g.oneOfType([g.number,g.object]),onBlur:g.func,onFocus:g.func,onClear:g.func,virtualize:g.object,renderOptionItem:g.func,onListScroll:g.func,arrowIcon:g.node,preventScroll:g.bool};$r.__SemiComponentName__="Select";$r.defaultProps=sr($r.__SemiComponentName__,{stopPropagation:!0,motion:!0,borderless:!1,zIndex:fi.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:me,onChangeWithObject:!1,onChange:me,onSearch:me,onMouseEnter:me,onMouseLeave:me,onDeselect:me,onSelect:me,onCreate:me,onExceed:me,onFocus:me,onBlur:me,onClear:me,onListScroll:me,maxHeight:_0.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,searchPosition:nr.SEARCH_POSITION_TRIGGER,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:C.createElement(iD,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1});class gI extends Et{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=n=>{const{target:r}=n;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{rr(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,n){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,n):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,n))}destroy(){}}const ln={PREFIX:`${xe}-switch`,FOCUS:`${xe}-switch-focus`,LARGE:`${xe}-switch-large`,SMALL:`${xe}-switch-small`,CHECKED:`${xe}-switch-checked`,DISABLED:`${xe}-switch-disabled`,KNOB:`${xe}-switch-knob`,NATIVE_CONTROL:`${xe}-switch-native-control`,CHECKED_TEXT:`${xe}-switch-checked-text`,UNCHECKED_TEXT:`${xe}-switch-unchecked-text`,LOADING_SPIN:`${xe}-switch-loading-spin`,LOADING:`${xe}-switch-loading`},mI={SIZE_MAP:["default","small","large"]};var yI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class _g extends mt{constructor(e){super(e),this.handleFocusVisible=n=>{this.foundation.handleFocusVisible(n)},this.handleBlur=n=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=C.createRef(),this.foundation=new gI(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,n)=>{this.props.onChange(e,n)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:n,focusVisible:r}=this.state,s=this.props,{className:l,style:c,onMouseEnter:u,onMouseLeave:p,size:f,checkedText:v,uncheckedText:y,loading:S,id:k}=s,T=yI(s,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),b=Q(l,{[ln.PREFIX]:!0,[ln.CHECKED]:e,[ln.DISABLED]:n,[ln.LARGE]:f==="large",[ln.SMALL]:f==="small",[ln.LOADING]:S,[ln.FOCUS]:r}),w={type:"checkbox",className:ln.NATIVE_CONTROL,disabled:n||S,checked:e||!1},D=v&&e&&f!=="small",O=y&&!e&&f!=="small";return C.createElement("div",Object.assign({className:b,style:c,onMouseEnter:u,onMouseLeave:p},this.getDataAttr(T)),S?C.createElement(Mr,{wrapperClassName:ln.LOADING_SPIN,size:f==="default"?"middle":f}):C.createElement("div",{className:ln.KNOB,"aria-hidden":!0}),D?C.createElement("div",{className:ln.CHECKED_TEXT,"x-semi-prop":"checkedText"},v):null,O?C.createElement("div",{className:ln.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},y):null,C.createElement("input",Object.assign({},w,{ref:this.switchRef,id:k,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:N=>this.foundation.handleChange(N.target.checked,N),onFocus:N=>this.handleFocusVisible(N),onBlur:N=>this.handleBlur(N)})))}}_g.propTypes={"aria-label":g.string,"aria-labelledby":g.string,"aria-invalid":g.bool,"aria-errormessage":g.string,"aria-describedby":g.string,className:g.string,checked:g.bool,checkedText:g.node,defaultChecked:g.bool,disabled:g.bool,loading:g.bool,onChange:g.func,onMouseEnter:g.func,onMouseLeave:g.func,style:g.object,size:g.oneOf(mI.SIZE_MAP),uncheckedText:g.node,id:g.string};_g.defaultProps={disabled:!1,className:"",onChange:me,loading:!1,onMouseEnter:me,onMouseLeave:me,size:"default"};const kg=E.createContext(void 0),un=()=>{const i=E.useContext(kg);if(!i)throw new Error("useAppContext must be used within ContextProvider");return i},vI="DevTool",bI="Scan to start local debugging",SI="Device connected!",wI="Debug service disconnected",CI="Not Connected",_I="Node",kI="Browser",PI="Client",TI="Connected",EI="Disconnected",xI="Failed",DI="Unknown",OI="Legend",II="Local debug service on your machine (bridges IDE and client, forwards messages).",RI="The browser page running DevTool IDE.",NI="Debug service inside TikTok on the device (provides HTTP/WS capabilities).",jI="Dots indicate link status; ws/http are shown on opposite sides on the same edge.",LI="Network diagnostics",AI="Network diagnostics",MI="Diagnose QR scan stalls, connection failures, and unreachable ports.",$I="No response after scanning? Click to diagnose",FI="Network diagnostics",zI="Use this when TikTok scan gets no response, LAN access fails, or proxy setup gets in the way.",BI="Open",qI="Run all checks",GI="Manual connect",WI="Manual bind client debug service",UI="When QR scan path is unavailable (proxy/firewall/multi-NIC), you can manually enter client IP and ports to connect.",HI="Specify client endpoint",VI="Go to manual connect",KI="Current result",QI="Not checked yet",XI="Check local service, client HTTP, and client WS to locate the failing segment.",YI="Run all checks, or fill the client endpoint first.",ZI="Checking links",JI="Checking local service, client HTTP, and client WS.",eR="Review check results below after it finishes.",tR="Client endpoint is missing",nR="Client IP / HTTP / WS ports are missing, so the phone-side link cannot be judged yet.",rR="Local debug service is unavailable",iR="IDE cannot access local Node. Confirm `ttmg dev` is running first.",oR="IDE cannot connect to local Node WebSocket. Confirm the local debug service has fully started.",sR="Client link is unreachable",aR="Local service is healthy, but IDE access to phone-side HTTP and WS times out. The issue is on the phone-side path or client debug service.",lR="Client WS is unreachable",cR="Client HTTP is reachable, but WS times out. Check the WS port and client listener first.",uR="Network links are healthy",dR="Local service and client HTTP / WS are reachable. Return to scan debugging to continue upper-layer checks.",pR="Check result is incomplete",fR="This does not match a common failure pattern. Verify client endpoint values and run checks again.",hR="Confirm client IP, HTTP port, and WS port match the loading page.",gR="Computer IP",mR="WS Port",yR="HTTP Port",vR="Computer",bR="Client",SR="View troubleshooting guide",wR="Open proxy setup",CR="Environment details",_R="Expand to view computer and client endpoint values.",kR="Check results",PR="Keeps link-level evidence for locating the failing segment.",TR="IDE ↔ Node (HTTP)",ER="IDE ↔ Node (WS)",xR="IDE ↔ Client (HTTP)",DR="IDE ↔ Client (WS)",OR="Suggestions",IR="Try the actions below first, then run the checks again to see whether the problem is narrowing down.",RR="Actions",NR="Extra info: if the connection succeeds, return to the QR debug page to continue.",jR="Manual connection info has been saved and a full diagnosis was triggered automatically.",LR="Manual connection was submitted, but the quick connectivity check still failed:",AR="When scan misses the endpoint or ports mismatch, fill client IP / HTTP / WS and re-check.",MR="Next step",$R="Result",FR="Recommended fix",zR="Fill endpoint",BR="Provide the client IP, HTTP port, and WS port first, then save and diagnose whether the current path is reachable.",qR="Return to scan debugging",GR="The core network path is reachable. Return to the home page to scan again or continue the current debug flow.",WR="Re-check after restart",UR="Make sure `ttmg dev` is running. Restart the local debug service if needed, then run the checks again.",HR="Run the checks again to confirm whether the issue has narrowed down.",VR="Expand",KR="Collapse",QR="Open docs",XR="Client endpoint not detected",YR="Scan to connect, or fill client IP / HTTP / WS ports.",ZR="Client connectivity failed (LAN / proxy / firewall)",JR="Make sure phone and computer are on the same Wi‑Fi/subnet; disable global VPN/TUN; enable Allow LAN in proxy; allow Node.js in firewall.",eN="Local debug service unavailable",tN="Make sure `ttmg dev` is running in the project root and the port is not occupied.",nN="If you just changed network or proxy settings, go back to the project root and run `ttmg dev` again.",rN="Keep the phone on the debug loading page, enable client debug service, and match the displayed ports.",iN="Keep phone and computer on the same Wi-Fi/subnet; if using a proxy, enable Allow LAN and check VPN/TUN/firewall.",oN="Confirm the WS port is correct and listening; if it still times out, check firewall, router policy, or VPN/TUN.",sN="No obvious issues detected",aN="If it still fails, share the copied environment info and screenshots for investigation.",lN="HTTP reachable but WS unreachable: check WS port correctness and whether the client debug service is listening.",cN="If WS times out: the port is likely blocked by firewall/router policy, or global VPN/TUN affects LAN traffic.",uN="Both HTTP and WS unreachable: check if phone and computer are on the same Wi‑Fi/subnet (AP isolation may exist).",dN="Disable global VPN/TUN; enable Allow LAN in proxy; check firewall rules for LAN access.",pN="If it still fails, route the phone network through the computer network and scan again.",fN="Client HTTP address or port is not available",hN="Client WS address or port is not available",gN="Idle",mN="Running",yN="Check",vN="Waiting for check",bN="Checking...",SN="Network reachable",wN="Hint",CN="If ping works but WS fails, it's usually because the TCP port isn't listening or is blocked (ICMP differs from TCP/WS).",_N="Client disconnected. Please scan the QR code to reconnect.",kN="Node service disconnected. Please restart the debug service in the terminal.",PN="Switch debug device",TN="No device connected",EN="Please connect a device before debugging.",xN="Scan with TikTok to debug",DN="Switch scan device",ON="Initializing debug environment...",IN="Notifying client to initialize debug environment...",RN="Fetching client debug environment configuration...",NN="Failed to fetch client debug environment configuration",jN="Client debug environment configuration fetched successfully",LN="Client debug environment initialized. Waiting to upload game resources...",AN="Failed to initialize client debug environment",MN="Initializing JS runtime environment...",$N="JS runtime environment initialized successfully",FN="Re-upload code package",zN="Uploading game resources...",BN="Uploading game resources",qN="Sending the package to the client. The game will start automatically when it finishes.",GN="Game resources uploaded successfully. Client is loading the game...",WN="Failed to upload game resources. Please check your environment.",UN="Initializing game environment...",HN="Game resources are being compiled locally. Please wait...",VN="Compiling game resources",KN="Game resources updated. Upload again for debugging?",QN="Game resources updated successfully!",XN="Failed to initialize game environment. Please check your environment.",YN="Fetching game debug environment configuration",ZN="Game environment configuration fetched successfully",JN="Failed to fetch game environment configuration",ej="Fetching game scripts",tj="Browser debug environment initialized. The game will start after resources are uploaded.",nj="Game runtime environment initialized. Preparing to upload resources to client.",rj="Uploading game package to client...",ij="Game package uploaded successfully. Client is loading the game...",oj="Failed to upload game package",sj="Re-upload mini game package",aj="Restart mini game",lj="End debugging",cj="Starting debug environment...",uj="Failed to connect to local Node debug service",dj="Connecting to local Node debug service...",pj="Connected to local Node debug service",fj="Failed to connect to local Node debug service. Please make sure 'ttmg dev' is running in the game root directory.",hj="Node debug service disconnected. Please restart the debug service in the terminal.",gj="Client debug service connected successfully",mj="Failed to connect to client debug service. Please scan the QR code again to start the debug service.",yj="Client debug service disconnected. Please scan the QR code again to reconnect.",vj="No LAN IP available for QR scan",bj="Make sure your computer and phone are on the same Wi-Fi, and disable VPN/proxy/firewall blocking. Or use manual binding to connect the client debug service.",Sj="Manual bind IP",wj="Failed to start client debug environment. Please scan the QR code again to start the debug service.",Cj="Failed to load game scripts",_j="Upload to device",kj="Do not upload",Pj="Upload to platform",Tj="Scanning QR code...",Ej="Switch device to start a new debug session by scanning",xj="Make sure your TikTok account is added as a test user for the debug app",Dj="Not logged in",Oj="Launch mode name",Ij="Select launch package",Rj="Select independent subpackage",Nj="Select entry scene",jj="Custom launch parameters",Lj="Example: a=1&b=2",Aj="Scan QR code",Mj="Search",$j="For You feed direct play",Fj="For Your feed card",zj="Creator anchor",Bj="Sidebar",qj="For Your feed ads",Gj="Desktop Shortcut",Wj="DM sharing",Uj="Copy link",Hj="Inbox",Vj="Main package",Kj="Independent subpackage",Qj="Custom launch mode",Xj="Are you sure you want to delete {{name}}?",Yj="Save",Zj="Developer options",Jj="Allow requests to domains not configured on the platform during debugging.",e4="Enable Ad Mock",t4="Use mock ad results to debug ad scenarios.",n4="Enable IAP Mock",r4="Route payment results through the sandbox to debug result-related scenarios.",i4="Select launch mode",o4="Create new launch mode",s4="Select debug mode",a4="Remote debug",l4="Client preview",c4="Client debug",u4="Launch parameters must be a string",d4="Launch parameters should not contain the question mark (?) prefix. Please only input the parameter part.",p4=`Launch parameters format error: empty key-value pair found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,f4=`Launch parameters format error: empty key found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,h4="Launch parameters format error: duplicate key found. Each key must be unique.",g4="Launch parameters format error: invalid key characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",m4="Launch parameters format error: invalid value characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",y4="Launch parameters format error: invalid URL encoding found. Please use the correct encoding format.",v4='Launch parameters format error: missing equal sign (=) or empty value. Please use "key=value" format, and ensure the value is not empty.',b4="Cannot be empty",S4="Save and apply",w4="Apply",C4="Sending local debug setting to client...",_4="Local Node debug service configuration fetched successfully",k4="Failed to fetch local debug service configuration. Please check if Node service is running.",P4="Loading debug environment dependency scripts...",T4="Dependency scripts loaded successfully",E4="Failed to load dependency scripts. Please scan the QR code again to start the debug service.",x4="Dependency scripts are empty. Please scan the QR code again to start the debug service.",D4="Dependency scripts loaded and initialized successfully",O4="Game resources compiled successfully! Scan with your device to debug.",I4="Game resources compiled successfully!",R4="Start debugging",N4="Start debugging",j4="Scan to connect, start debugging",L4="Pick a launch mode, then scan with the TikTok client to preview your mini game on a real device or in the browser.",A4="Device connected, debugging in progress",M4="Connected to the TikTok client — preview your mini game on a real device or in the browser. To switch devices, scan again to start a new debugging session.",$4="Project overview",F4="Launch mode",z4="Upload & publish",B4="Normal launch mode",q4="New launch mode",G4="In local debugging phase, you can quickly view the basic information of the current mini game, including: game name, icon, client key, description, total package size, main package size, independent subpackage size, trusted domains, service terms, privacy policy, etc.",W4="By checking these core information in advance, you can promptly discover potential issues and ensure that the project status meets the platform requirements before formal release, reducing risks and rework after launch.",U4="Not exceed project size {{limit}} limit",H4="Not exceed main package size {{limit}} limit",V4="Not exceed independent subpackage size {{limit}} limit",K4="Exceed project size {{limit}} limit",Q4="Exceed main package size {{limit}} limit",X4="Exceed independent subpackage size {{limit}} limit",Y4="By setting launch mode, you can flexibly select the launch package, entry scene, and launch parameters to meet different testing and online requirements. Please complete the relevant configuration based on actual needs to ensure that the game can start normally and enter the expected scene.",Z4="3. Configuration file check",J4="Ensure that the subpackage file paths are configured correctly, and all paths can be accessed normally to avoid loading failures later.",eL="1. Package size check",tL="2. Mandatory API check",nL="Check if the game has integrated necessary API capabilities to ensure better user experience and conversion effects on TikTok.",rL="The entire game package size must be controlled within {{projectSize}}; the main package size cannot exceed {{mainPackageSize}}, and the size of each independent subpackage cannot exceed {{independentPackageSize}}.",iL="The entire game package size must be controlled within {{projectSize}}; no other additional restrictions.",oL="Configuration file check passed!",sL="Package size check passed!",aL="Package size check failed!",lL="Configuration file check failed!",cL="Performance check",uL="Performance check passed!",dL="Performance check failed!",pL="View docs",fL="Expand check details",hL="Close check details",gL="Game project",mL="Main package size",yL="Independent subpackage size",vL="Trusted domains",bL="Terms & Privacy",SL="Terms & Privacy - Terms URL",wL="Terms & Privacy - Privacy URL",CL="Terms of Service URL",_L="Privacy policy URL",kL="Project Size",PL="Name",TL="Icon",EL="Client key",xL="Description",DL="Current game ClientKey {{clientKey}} cannot be enabled for debug, please check and try again.",OL="Failed to fetch game details. Please try again later.",IL="The current account is not logged in, so game details cannot be retrieved. Please run `ttmg login` in the console and log in with your developer platform account. After logging in, run the `ttmg dev` command to enable debug mode.",RL="You can log in by entering the `ttmg login` command in the console and using your developer platform account and password.",NL="Docs",jL="Quick start",LL="API Reference",AL="Error reference",ML="FAQ",$L="Upload",FL="Cancel",zL="Version note",BL="Upload success",qL="Upload failed",GL="After the game resource is successfully uploaded to the platform, the platform will verify the resource and deploy it. You can view the preview version of the game on the platform.",WL="View on platform",UL="Only after logging in in the command line can the game package upload function on the debug page be used.",HL="Upload current game to platform",VL="No trusted domains are configured on the platform yet. Only domains added to the platform allowlist can send network requests at runtime. If the game needs to access external domains, add them here as needed.",KL="Debug environment script initialization failed, please scan the QR code again",QL="Game resource upload failed, please scan the QR code again",XL="The game is missing Terms & Privacy (Terms URL). The login/authorize flow depends on this field, so debugging will fail until it is configured on the platform.",YL="The game is missing Terms & Privacy (Privacy URL). The login/authorize flow depends on this field, so debugging will fail until it is configured on the platform.",ZL="The game is missing Terms & Privacy (Terms URL and Privacy URL). The login/authorize flow depends on these fields, so debugging will fail until they are configured on the platform.",JL="Current Terms & Privacy (Terms URL) is empty. Please add this URL on the platform to ensure the game can run normally.",eA="Current Terms & Privacy (Privacy URL) is empty. Please add this URL on the platform to ensure the game can run normally.",tA="Current game name is empty. Please complete it before submission to avoid review rejection.",nA="Current game icon is empty. Please complete it before submission to avoid review rejection.",rA="Current game description is empty. Please add the game description to the game description list to ensure that the game can run normally.",iA="Current account does not have permission to view game details of ID {{clientKey}}. Please apply for development permission on the developer platform and run the `ttmg dev` command to enable debug mode.",oA="The terminal cannot reach the TikTok developer platform, so Trust Domains, Terms, Privacy, and other platform config cannot be fetched. Make sure VPN/proxy applies to the terminal, or configure `ttmg config set proxy ...` and restart debugging.",sA="Start connecting to client WebSocket, 👉🏼👉🏼👉🏼 {{wsURL}}...",aA="Client WebSocket service connection timeout, please check if the computer and mobile phone are in the same local area network.",lA="Current account is not logged in, so game details cannot be retrieved. Please run `ttmg login` in the console and log in with your developer platform account. After logging in, run the `ttmg dev` command to enable debug mode.",cA="Current account login expired, please log in again.",uA="Login",dA="Create rewarded video ad",pA="Add shortcut",fA="Open profile sidebar entrance",hA="Get shortcut mission reward",gA="Get entrance mission reward",mA="Integrated!",yA="Not integrated!",vA="Mandatory API check passed!",bA="Mandatory API check failed!",SA="Client preview loading game, please check the browser console for more details...",wA="Client preview environment initialized. Please check the browser console for more details...",CA="Start to send game meta data to client, after which the client will start to launch the game...",_A="Game meta data sent to client successfully, client will start to launch the game...",kA="1. Browser remote debugging: first initialize the remote debugging environment in the browser, and then connect the client to start debugging. This mode requires uploading the game package to the client, but the debugging process is based on the browser's capabilities for remote debugging.",PA="2. Client real preview: upload the local game code to the client, and then preview and debug on the real device. This mode directly verifies the performance and compatibility of the game on the real device.",TA="Invalid port number, please enter a valid port number",EA="If the QR code is no response, please click here to manually bind the client debug service address.",xA="Confirm",DA="Please enter the local IP address of the mobile phone",OA="Start upload",IA="Manually bind the client debug service address",RA="Go to check",NA="Check network",jA="1. Support manually connecting to the client debug service to resolve network connection issues caused by different network environments between the mobile phone and the computer.",LA="2. Only TikTok Android 42.9 and above versions are supported, and iOS does not support it for the time being.",AA="Back",MA="Start connection",$A="Connect",FA="Enter the IP, HTTP port, and WS port shown on the client loading page. After confirmation, the IDE saves them and tries to connect to the client debug service.",zA="Check connectivity",BA="Connectivity check",qA="Client WebSocket",GA="Client HTTP",WA="OK",UA="Failed",HA="Timeout",VA="Connection failed",KA="Please fill IP and ports first",QA="Uploading the game package requires filling in the current game package description first.",XA="Disable domain check",YA="Enable vConsole log panel",ZA="Enable developer info panel",JA="View vConsole runtime logs on the client.",eM="View developer info and runtime stats on the client.",tM="‼️ Detected {{count}} issues. Each item is labeled as Blocking or Suggestion.",nM="Blocking",rM="Suggestion",iM="Basic game info is missing: {{fields}}.",oM="title (Name)",sM="icon (Icon)",aM="description (Description)",lM=", ",cM="You are not logged in with a developer account: upload is unavailable, and network requests may be blocked. For temporary local debugging, disable domain check in Developer Options.",uM="Please resolve this before submission to avoid review rejection.",dM="View details",pM="Hide details",fM="Needs your attention",hM="Recommended",gM="Terminal proxy is not applied",mM="Account lacks development access",yM="Developer login is unavailable",vM="Client Key cannot be recognized",bM="Apply for permission",SM="Open developer portal",wM="{{count}} more issue(s)",CM="Switch to dark theme",_M="Switch to light theme",kM="Features",PM="Optimizations",TM="Bugfixes",EM="Learn more",xM="Changelog",DM="NEW",OM="Review what each DevTool release adds, improves, and fixes.",IM="New/Optimized Feature Target Version:",RM="Wasm Code Split",NM="Split Prepare",jM="Collect Functions",LM="Split Code",AM="Rollback",MM="Split failed",$M="Writing split artifacts...",FM="Retry",zM="Starting split code prepare...",BM="Cancel split code prepare",qM="Background run",GM="Preparing split code, please wait...",WM="During the preparation process, please do not modify the local game package, otherwise it may cause the preparation to fail.",UM="Split code preparation successful!",HM="Split code preparation failed!",VM="Retry preparation",KM="Download prepared Wasm code",QM="Download failed",XM="Retry download",YM="Download successful",ZM="After downloading the prepared Wasm code, you can split the code in the local environment for debugging.",JM="Split code description",e$="Please input split code description",t$="Start prepare",n$="Processing...",r$="Update Wasm split config",i$="Update Wasm split config successful!",o$="Update Wasm split config failed!",s$="Compress prepared Wasm code successful!",a$="Compress prepared Wasm code failed!",l$="Write compress prepared Wasm code",c$="Write compress prepared Wasm code successful!",u$="Write compress prepared Wasm code failed!",d$="Fetch download URL",p$="Fetch download URL successful!",f$="Fetch download URL failed!",h$="Download prepared Wasm code successful!",g$="Download prepared Wasm code failed!",m$="Start split",y$="Collected functions must reach at least 8% of the total before splitting. Keep playing to cover first-screen and core gameplay paths.",v$="Current local project already supports wasm split, please use TikTok client to scan the QR code, start collecting functions, please support complete loading process, game teaching, etc. in advance.",b$="Device connected · collecting functions",S$="Walk through loading, tutorial and core gameplay on the connected device. DevTool keeps recording the functions being called. Once first-screen and core paths are covered you can start the split.",w$="Start collect",C$="Opening collect session...",_$="Resumed previous collect session — your existing progress was preserved.",k$="Wasm file size",P$="Collected function count",T$="Total function count",E$="Split version",x$="Split code processing, please wait...",D$="Cancel split",O$="Get split result",I$="Retry get split result",R$="Get split result failed, please retry.",N$="Split code processing successful!",j$="Download split result",L$="Download split result failed, please retry.",A$="Retry download split result",M$="Download split result successful!",$$="Local can use real device to scan debug QR code, experience split code loading process, confirm game no exception after, can upload current directory files to developer platform for testing and release.",F$="Downloading Android main Wasm file...",z$="Download Android main Wasm file successful",B$="Compressing Android main Wasm file...",q$="Compress Android main Wasm file successful",G$="Downloading Android sub Wasm code...",W$="Download Android sub Wasm code successful",U$="Compressing Android sub Wasm code...",H$="Compress Android sub Wasm code successful",V$="Downloading iOS main Wasm file...",K$="Download iOS main Wasm file successful",Q$="Compressing iOS main Wasm file...",X$="Compress iOS main Wasm file successful",Y$="Downloading iOS sub Wasm code...",Z$="Download iOS sub Wasm code successful",J$="Compressing iOS sub Wasm code...",e3="Compress iOS sub Wasm code successful",t3="Writing split Wasm files...",n3="Write split Wasm files successful",r3="Updating Wasm split config...",i3="Update Wasm split config successful!",o3="No Wasm code found",s3="No Wasm code found in the project. Please make sure the game has been packed with Wasm code and try again.",a3="Current project already has split Wasm code, please use TikTok client to scan the QR code, start collecting functions, please support complete loading process, game teaching, etc. in advance.",l3='You can compress and upload the current result as-is; to start over, hit "Discard split" below.',c3="Discard split",u3="Current project has not enabled Wasm split config",d3="Current project has not enabled Wasm split config. Please enable it in the project config and try again.",p3="Advanced guide",f3="Capability access",h3="Subpackage Collection",g3="Language",m3="简体中文",y3="English",v3={title:vI,scanQRcodeTitle:bI,deviceConnected:SI,serverDisconnected:wI,deviceDisconnected:CI,connectStatusNode:_I,connectStatusBrowser:kI,connectStatusClient:PI,connectStatusConnected:TI,connectStatusDisconnected:EI,connectStatusFailed:xI,connectStatusUnknown:DI,connectStatusLegendTitle:OI,connectStatusLegendNode:II,connectStatusLegendBrowser:RI,connectStatusLegendClient:NI,connectStatusLegendProto:jI,netDiagNav:LI,netDiagTitle:AI,netDiagSubtitle:MI,netDiagEntryScanNoResponse:$I,netDiagEntryTitle:FI,netDiagEntryDesc:zI,netDiagEntryAction:BI,netDiagRunAll:qI,netDiagManualConnectAndCheck:GI,netDiagManualBindTitle:WI,netDiagManualBindDesc:UI,netDiagManualBindEntry:HI,netDiagManualConnectGo:VI,netDiagSummaryTitle:KI,netDiagSummaryIdleTitle:QI,netDiagSummaryIdleDesc:XI,netDiagSummaryIdleHint:YI,netDiagSummaryRunningTitle:ZI,netDiagSummaryRunningDesc:JI,netDiagSummaryRunningHint:eR,netDiagSummaryMissingClientTitle:tR,netDiagSummaryMissingClientDesc:nR,netDiagSummaryNodeTitle:rR,netDiagSummaryNodeDesc:iR,netDiagSummaryNodeWsDesc:oR,netDiagSummaryClientBothTitle:sR,netDiagSummaryClientBothDesc:aR,netDiagSummaryClientWsTitle:lR,netDiagSummaryClientWsDesc:cR,netDiagSummaryHealthyTitle:uR,netDiagSummaryHealthyDesc:dR,netDiagSummaryPartialTitle:pR,netDiagSummaryPartialDesc:fR,netDiagSummaryPartialHint:hR,netDiagEnvIP:gR,netDiagEnvWsPort:mR,netDiagEnvHttpPort:yR,netDiagComputerGroup:vR,netDiagClientGroup:bR,netDiagOpenTroubleshoot:SR,netDiagOpenProxy:wR,netDiagEnvTitle:CR,netDiagEnvSectionDesc:_R,netDiagChecksTitle:kR,netDiagCheckSectionDesc:PR,netDiagCheckNodeHttp:TR,netDiagCheckNodeWs:ER,netDiagCheckClientHttp:xR,netDiagCheckClientWs:DR,netDiagSuggestTitle:OR,netDiagSuggestSectionDesc:IR,netDiagActionsTitle:RR,netDiagSuccessHint:NR,netDiagManualConnectResultSuccess:jR,netDiagManualConnectResultError:LR,netDiagManualSectionDesc:AR,netDiagNextStepTitle:MR,netDiagGuideEyebrow:$R,netDiagGuideStepsTitle:FR,netDiagActionManualConnect:zR,netDiagActionManualConnectDesc:BR,netDiagActionBackToScan:qR,netDiagActionBackToScanDesc:GR,netDiagActionRerunAfterRestart:WR,netDiagActionRerunAfterRestartDesc:UR,netDiagActionRunAllDesc:HR,netDiagExpand:VR,netDiagCollapse:KR,netDiagOpenDoc:QR,netDiagSuggestNoClientTitle:XR,netDiagSuggestNoClientDesc:YR,netDiagSuggestLanTitle:ZR,netDiagSuggestLanDesc:JR,netDiagSuggestNodeTitle:eN,netDiagSuggestNodeDesc:tN,netDiagSuggestNodeRestart:nN,netDiagSuggestClientDebugService:rN,netDiagSuggestLanAndProxy:iN,netDiagSuggestWsBlocked:oN,netDiagSuggestOkTitle:sN,netDiagSuggestOkDesc:aN,netDiagSuggestHttpOkWsFail1:lN,netDiagSuggestHttpOkWsFail2:cN,netDiagSuggestBothFail1:uN,netDiagSuggestBothFail2:dN,netDiagSuggestPhoneProxyFallback:pN,netDiagMissingClientHttp:fN,netDiagMissingClientWs:hN,netDiagStatusIdle:gN,netDiagStatusRunning:mN,netDiagStatusWarning:yN,netDiagCheckIdleDetail:vN,netDiagCheckRunningDetail:bN,netDiagCheckReachableDetail:SN,netDiagQuickHintTitle:wN,netDiagQuickHintDesc:CN,clientDisconnected:_N,nodeDisconnected:kN,switchDevice:PN,disConnectionStatusTitle:TN,disConnectionStatusDesc:EN,scanQRCode:xN,switchScanDevice:DN,startDebug:ON,initClientEnv:IN,fetchClientDevConfig:RN,fetchClientDevConfigFailed:NN,fetchClientDevConfigSuccess:jN,initClientEnvSuccess:LN,initClientEnvFailed:AN,startInitJSDevEnv:MN,initJSDevEnvSuccess:$N,uploadBtn:FN,uploadStart:zN,uploadProcess:BN,uploadProcessDesc:qN,uploadSuccess:GN,uploadError:WN,setupDevEnv:UN,gameResourceCompiling:HN,gameResourceCompilingTitle:VN,gameResourceChange:KN,gameResourceUpdated:QN,devEnvSetupError:XN,getDevEnvStart:YN,getDevEnvSuccess:ZN,setDevEnvFailed:JN,getDevScriptsStart:ej,setDevScriptsSuccess:tj,devEnvSetupSuccess:nj,uploadGameStart:rj,uploadGameSuccess:ij,uploadGameFailed:oj,reUploadGame:sj,relaunchGame:aj,closeGame:lj,loading:cj,nodeServerConnectedFailed:uj,nodeServerStartConnect:dj,nodeServerConnectedSuccess:pj,nodeServerStartError:fj,nodeServerDisconnect:hj,clientConnectedSuccess:gj,clientServerStartError:mj,clientServerDisconnected:yj,networkNoLanIPTitle:vj,networkNoLanIPDesc:bj,networkNoLanIPAction:Sj,startDebugFailed:wj,getDevScriptsFailed:Cj,uploadToClient:_j,notUpload:kj,uploadToPlatform:Pj,"uploadGame.pageTitle":"Upload game","uploadGame.pageDesc":"Uploading is the primary task here. Precheck acts as a safety net and is only emphasized when something needs attention.","uploadGame.guide.title":"Upload & publish","uploadGame.guide.desc":"Review precheck risks, add a short version note, then upload to the platform. Scan the generated preview build to verify it.","uploadGame.guide.precheck.title":"Code precheck","uploadGame.guide.precheck.desc":"Catch package size, API, config, and performance risks early","uploadGame.guide.version.title":"Version note","uploadGame.guide.version.desc":"Describe this change so upload records are easier to identify","uploadGame.guide.preview.title":"Platform preview","uploadGame.guide.preview.desc":"Scan after upload to verify the platform-generated build","uploadGame.packageSizeDoc":"View package size limits","uploadGame.checkTitle":"Code precheck","uploadGame.recheck":"Re-check","uploadGame.uploadTitle":"Upload game package","uploadGame.checkWarn":"Some precheck items failed. Fix them before uploading to avoid review rejection.","uploadGame.detailTitle":"Precheck details","uploadGame.detailDesc":"Expand only when you need the full breakdown for config, API, size, or performance issues.","uploadGame.showDetails":"View precheck details","uploadGame.hideDetails":"Hide precheck details","uploadGame.loginNoticeTitle":"Complete developer login first","uploadGame.readyTitle":"Precheck passed, ready to upload","uploadGame.readyDesc":"No blocking issue is detected right now. Add a version note and submit directly to the platform.","uploadGame.issueTitle":"Precheck note","uploadGame.issueDesc":"Only the key summary is shown here. Expand the full result when needed.","uploadGame.checkFetchFailed":"Failed to fetch precheck results. Re-run the check before deciding whether to upload.","uploadGame.issueCountSuffix":" issues","uploadGame.groupPassSuffix":" checks passed","uploadGame.status.loginReady":"Developer account logged in","uploadGame.status.loginRequired":"Login required for upload","uploadGame.status.checking":"Precheck running","uploadGame.status.checkFailed":"Precheck fetch failed","uploadGame.status.hasIssues":"Precheck has issues","uploadGame.status.ready":"Precheck passed","uploadGame.group.performance":"Performance","uploadGame.group.size":"Package size","uploadGame.group.api":"API","uploadGame.group.config":"Config","uploadGame.unknownIssue":"Issue needs review","uploadGame.uploadDescHint":"Briefly describe this change for later lookup.","uploadGame.progress.title":"Uploading and waiting for platform processing","uploadGame.progress.desc":"The package has been submitted. The platform is validating and deploying it now.","uploadGame.progress.assetTitle":"Platform is processing your package","uploadGame.progress.assetDesc":"Your package was uploaded. The platform is processing it now, please wait…","uploadGame.progress.previewTitle":"Fetching the platform preview QR code","uploadGame.progress.previewDesc":"Upload succeeded. Polling the platform for the preview QR code now.","uploadGame.progress.statusPending":"processing","uploadGame.progress.badgeUploading":"Uploading","uploadGame.progress.badgeChecking":"Validating","uploadGame.progress.badgePreview":"Preparing preview QR","uploadGame.progress.step1":"Pack and upload the code package","uploadGame.progress.step2":"Wait for the platform to finish processing","uploadGame.progress.step3":"Fetch the platform preview QR code","uploadGame.success.title":"Upload completed","uploadGame.success.readyTitle":"Platform preview is ready","uploadGame.success.desc":"The API returned success. Scan the QR code or open the platform page to continue reviewing this uploaded version.","uploadGame.success.pendingDesc":"Upload succeeded, but the preview QR code is not available yet. You can open the platform page first or upload again later.","uploadGame.success.qrHint":"Scan to open the platform result page","uploadGame.success.noQr":"No QR code is available yet","uploadGame.success.uploadAnother":"Upload another version","uploadGame.failure.title":"Platform preview is not ready yet","uploadGame.failure.retry":"Upload again","uploadGame.failure.missingAssetId":"The upload did not return a valid version reference, so platform validation cannot continue. Please upload again.","uploadGame.failure.assetTimeout":"The platform timed out while processing your package. Please check the result on the platform later.","uploadGame.failure.assetStatus":"The platform has not finished processing your package yet, so the preview QR code is not available. Please try again later.","uploadGame.failure.previewTimeout":"The platform finished processing, but no preview QR code was returned in time. Please try again later.","uploadGame.record.title":"Preview version history","uploadGame.record.desc":"Review recently uploaded preview versions here and keep scanning from the same module.","uploadGame.record.refresh":"Refresh","uploadGame.record.loading":"Loading version history...","uploadGame.record.empty":"No preview version records are available yet.","uploadGame.record.latest":"Latest upload","uploadGame.record.selectPlaceholder":"Select a version to view its details","uploadGame.record.noDesc":"No version note was provided","uploadGame.record.detailTitle":"Version {{version}}","uploadGame.record.detailDesc":"Keep the QR code and key metadata for the selected version on the right side.","uploadGame.record.previewHint":"Scan to preview this version","uploadGame.record.previewLoading":"Fetching the preview QR code for this version...","uploadGame.record.previewUnavailable":"No preview QR code is available for this version yet","uploadGame.record.pendingDesc":"This version is still being processed by the platform. Refresh the history and check again later.","uploadGame.record.failedDesc":"This version is currently in an abnormal state. Check the platform for the final result.","uploadGame.record.metaUploadedAt":"Uploaded at","uploadGame.record.metaAssetId":"Asset ID","uploadGame.record.metaSource":"Source group","uploadGame.record.metaSize":"Package size","uploadGame.record.metaUnknown":"-","uploadGame.record.loadFailed":"Failed to load version history. Please try again later.","uploadGame.record.state.ready":"Preview ready","uploadGame.record.state.pending":"Processing","uploadGame.record.state.failed":"Issue","uploadGame.record.source.preview":"Preview","uploadGame.record.source.review":"In review","uploadGame.record.source.live":"Live","uploadGame.record.source.other":"Other",scanning:Tj,scanQRCodeChange:Ej,scanQRCodeDesc:xj,"homeSession.title":"Current debug session","homeSession.modeLabel":"Debug mode","homeSession.entryLabel":"Launch entry","homeSession.domainLabel":"Domain policy","homeSession.mode.clientPreviewDesc":"Client runtime; check vConsole, device capabilities, and real device network.","homeSession.mode.remoteDebugDesc":"Browser runtime; good for JS logic and console checks, not all device capabilities.","homeSession.domainCheck.disabled":"Domain check disabled","homeSession.domainCheck.disabledDesc":"More flexible for temporary debugging. Complete platform config before release.","homeSession.domainCheck.enabledWithDomains":"{{count}} Trust Domains","homeSession.domainCheck.enabledWithDomainsDesc":"Network requests are checked against platform config.","homeSession.domainCheck.enabledNoDomains":"No Trust Domain","homeSession.domainCheck.enabledNoDomainsDesc":"External network requests may be blocked at runtime.","homeSession.chip.domainCheckOn":"Domain check on","homeSession.chip.domainCheckOff":"Domain check off","homeSession.chip.vConsoleOn":"vConsole on","homeSession.chip.vConsoleOff":"vConsole off","homeSession.chip.devPanelOn":"Dev info panel on","homeSession.chip.devPanelOff":"Dev info panel off","homeSession.diff.clientPreviewTitle":"Client preview","homeSession.diff.clientPreviewDesc":"Closer to the client runtime. For API, payment, ad, or domain issues, check phone vConsole and the developer info panel first.","homeSession.diff.remoteDebugTitle":"Remote debug","homeSession.diff.remoteDebugDesc":"Better for quick JS logic checks. Device capabilities, network policy, and client panels still need client preview verification.","homeSession.risk.domainTitle":"Domain risk","homeSession.risk.domainDesc":"Domain check is on but no Trust Domain is configured. External requests may fail at runtime.",notLogin:Dj,launchModeName:Oj,selectLaunchPkg:Ij,selectIndependentPkg:Rj,selectScene:Nj,launchQueries:jj,launchQueriesDesc:Lj,scene_scan_qrcode:Aj,scene_search:Mj,scene_fyf_promotion_direct_feed_play:$j,scene_fyf_card:Fj,scene_anchor:zj,scene_center:Bj,scene_ad:qj,scene_shortcut:Gj,scene_sharing:Wj,scene_link:Uj,scene_inbox:Hj,gameMainPackage:Vj,independentPackage:Kj,customizeLaunchMode:Qj,deleteLaunchModeConfirm:Xj,save:Yj,delete:"Delete",devOptions:Zj,devOptionsDomainCheckDesc:Jj,debugSettingAdMock:e4,debugSettingAdMockDesc:t4,debugSettingIAPMock:n4,debugSettingIAPMockDesc:r4,selectLaunchMode:i4,createNewMode:o4,selectDebugMode:s4,browserDebugMode:a4,clientPreviewMode:l4,clientDebugMode:c4,queriesStringMustBeString:u4,queriesStringNoQuestionMark:d4,queriesStringEmptyPair:p4,queriesStringEmptyKey:f4,queriesStringDuplicateKey:h4,queriesStringInvalidKeyChars:g4,queriesStringInvalidValueChars:m4,queriesStringInvalidEncoding:y4,queriesStringMissingEqual:v4,notEmpty:b4,saveAndUse:S4,use:w4,sendLocalDebugSetting:C4,getDevGameConfigSuccess:_4,getDevGameConfigFailed:k4,startLoadDevScripts:P4,loadDevScriptsSuccess:T4,loadDevScriptsFailed:E4,loadDevScriptsEmpty:x4,loadDevScriptsInitSuccess:D4,gameResourceCompileSuccess:O4,gameResourceCompileSuccessTitle:I4,scanQRCode2Debug:R4,homeHeroEyebrow:N4,homeHeroTitle:j4,homeHeroSubtitle:L4,homeHeroTitleConnected:A4,homeHeroSubtitleConnected:M4,projectInfo:$4,launchMode:F4,codePreCheck:z4,normalLaunchMode:B4,createdLaunchMode:q4,projectInfoDesc:G4,"projectInfo.summary":"Review the active mini game's basics, package status, and platform configuration.",projectInfoDescTip:W4,"projectInfo.section.basic":"Basic info","projectInfo.section.package":"Package status","projectInfo.section.platform":"Platform setup","projectInfo.error.guideTitle":"Complete the following steps to continue using this module","projectInfo.error.stepTitle":"How to restore access","projectInfo.error.helpTitle":"Additional guidance","projectInfo.error.login.title":"Platform config is not available yet","projectInfo.error.login.desc":"The local project is running, but the current debug session does not have a valid developer login yet. Finish login first, then return here to continue using this module.","projectInfo.error.login.stepLogin":"Run `ttmg login` in the terminal and sign in with your developer platform account.","projectInfo.error.login.stepRestart":"After login succeeds, run `ttmg dev` again so the current debug session picks up the latest login state.","projectInfo.error.login.stepProxy":"If login fails in a mainland China network environment, check your proxy or network setup before retrying.","projectInfo.error.permission.title":"This account does not have development access to this game","projectInfo.error.permission.desc":"The local project is available, but this account does not have development access to this game. Platform config and permission-dependent actions such as upload and publish are unavailable.","projectInfo.error.permission.stepCheckAccount":"First confirm the account used in `ttmg login` is the intended developer account for this game.","projectInfo.error.permission.stepApply":"If the account lacks access, apply for development permission for this game on the developer platform.","projectInfo.error.permission.stepRestart":"After permission is granted, run `ttmg dev` again to start a fresh debug session.","projectInfo.error.network.title":"Terminal proxy is not applied; platform API request failed","projectInfo.error.network.desc":"The local debug service is running, but the CLI cannot reach the TikTok developer platform. Trust Domains, Terms, Privacy, and other platform config may not be fetched. This often happens when VPN/proxy only applies to the browser, while terminal requests do not go through the proxy.","projectInfo.error.network.stepCheck":"If the developer platform opens in the browser but `ttmg dev` cannot fetch project overview, Trust Domains, or Terms & Privacy, treat it as a terminal-proxy issue first.","projectInfo.error.network.stepProxy":"Run `ttmg config set proxy http://127.0.0.1:7890`, replacing the port with the HTTP port exposed by your local proxy tool.","projectInfo.error.network.stepRestart":"Run `ttmg dev` again, then return here to continue.","projectInfo.error.general.title":"This module is temporarily unavailable","projectInfo.error.general.desc":"This usually means platform data is temporarily unavailable, project metadata is invalid, or the current debug context is not ready yet.","projectInfo.error.general.stepCheck":"Check whether the current Client key, logged-in account, and debug command all match the intended project.","projectInfo.error.general.stepRetry":"After correcting the issue, run `ttmg dev` again and return here to continue.","projectInfo.error.commandLogin":"Login command","projectInfo.error.commandRestart":"Restart debug command","projectInfo.error.commandProxy":"Proxy command example","projectInfo.error.commandProxyHint":"The address and port above are examples only. Replace them with the actual proxy endpoint exposed by your local proxy tool.","projectInfo.error.helpLoginDesc":"For developers in China, login failures are often caused by proxy settings, enterprise network policies, or terminal environment issues rather than the account itself. In those cases, the network and proxy troubleshooting guide is usually more effective than repeatedly retrying login.","projectInfo.error.helpPermissionDesc":"This is usually not a local project issue. Confirm the account used by `ttmg login` belongs to the target game, then grant this game's development access on the developer platform.","projectInfo.error.helpNetworkDesc":"This usually does not mean Trust Domains are truly missing, and it is not necessarily a permission issue. The CLI process is not reaching the platform through a proxy. Turning on a VPN client is often not enough; write the proxy endpoint into the ttmg config.","projectInfo.error.helpGeneralDesc":"If the steps above all look correct and this module is still unavailable, restart local debugging from the terminal and then continue checking whether the project metadata is configured correctly.","projectInfo.error.openProxyDoc":"Open network/proxy login guide","basicDebugGuide.bannerTitle":"No developer login session is detected right now","basicDebugGuide.bannerDesc":"This does not block the most basic scan-debug flow. If CLI login is temporarily unavailable because of network issues, you can still continue local debugging, switch launch modes, and troubleshoot connectivity.","basicDebugGuide.title":"Basic scan debugging still works without login","basicDebugGuide.desc":"Treat this as a limited mode: platform-dependent capabilities are restricted, but local scan debugging, launch mode switching, and connection troubleshooting still work. Continue with core local debugging first, then restore CLI login when you need platform-side capabilities.","basicDebugGuide.actionScan":"Go to scan debugging","basicDebugGuide.actionNetwork":"Open network diagnostics","basicDebugGuide.actionProxy":"Open network/proxy login guide","basicDebugGuide.availableTitle":"Still available now","basicDebugGuide.availableDesc":"The capabilities below depend on the local debug service and schema, so they do not require a valid developer-platform login session first.","basicDebugGuide.available.scan.title":"Scan debugging","basicDebugGuide.available.scan.desc":"Keep using the current QR code on your device to verify whether the core local debug flow still works.","basicDebugGuide.available.launch.title":"Launch mode","basicDebugGuide.available.launch.desc":"You can still switch scene, launch package, and queries to simulate different entries and runtime parameters.","basicDebugGuide.available.preview.title":"Browser preview / client preview","basicDebugGuide.available.preview.desc":"Continue switching between browser and client debug modes to validate package logic and runtime behavior.","basicDebugGuide.available.network.title":"Network diagnostics","basicDebugGuide.available.network.desc":"When scan has no response, LAN access fails, or proxy environments are complex, you can still diagnose connectivity inside the project.","basicDebugGuide.available.manual.title":"Manual connection","basicDebugGuide.available.manual.desc":"If QR scan is unavailable, you can still try binding the client debug service address manually and continue debugging.","basicDebugGuide.lockedTitle":"Fully available only after login","basicDebugGuide.lockedDesc":"These capabilities actively request developer-platform resources, so they stay restricted without a CLI login session.","basicDebugGuide.locked.project.title":"Project overview","basicDebugGuide.locked.project.desc":"Platform-side basic info, Terms, Privacy, and trusted domain config cannot be fetched reliably.","basicDebugGuide.locked.upload.title":"Upload & publish","basicDebugGuide.locked.upload.desc":"You cannot upload a new version, load preview version records, or generate platform preview QR codes.","basicDebugGuide.locked.platform.title":"Platform-dependent capability validation","basicDebugGuide.locked.platform.desc":"Capabilities such as login, authorize, payment, or direct-play preview depend on platform-side resources and will be incomplete or fail.","basicDebugGuide.stepsTitle":"Recommended flow","basicDebugGuide.stepsDesc":"If your current goal is simply to keep local scan debugging moving, follow this order first. Restore CLI login later when you need platform-side capabilities.","basicDebugGuide.step1":"Keep using scan debugging, launch mode, and client preview first so the local package flow is unblocked.","basicDebugGuide.step2":"If scan itself fails, use network diagnostics or manual connection first instead of treating every issue as a login problem.","basicDebugGuide.step3":"When platform-dependent capabilities are needed, troubleshoot network/proxy first; if necessary, configure a proxy before retrying login.","basicDebugGuide.step4":"After login succeeds, run `ttmg dev` again and return to the project to unlock project overview, upload & publish, and platform-side capability validation.","basicDebugGuide.commandProxy":"Proxy command example","basicDebugGuide.commandProxyHint":"The address and port above are examples only. Replace them with the actual proxy endpoint exposed by your local proxy tool.","basicDebugGuide.commandLogin":"Login command","basicDebugGuide.commandDev":"Restart debug command","basicDebugGuide.entryTitle":"Basic scan debugging still works even if CLI login fails","basicDebugGuide.entryDesc":"Check what is still available and what stays restricted, then decide whether to keep debugging now or fix proxy/login first.","basicDebugGuide.entryAction":"Open basic debug guide",notExceedSizeLimit:U4,notExceedMainPkgSizeLimit:H4,notExceedIndependentPkgSizeLimit:V4,exceedSizeLimit:K4,exceedMainPkgSizeLimit:Q4,exceedIndependentPkgSizeLimit:X4,launchModeDesc:Y4,"launchMode.currentDesc":"Choose an existing configuration, or switch to new mode and configure it again.","launchMode.configDesc":"Set the launch package, entry scene, and launch parameters, then save it and scan from Home.",configFileCheck:Z4,gameJsonCheckDesc:J4,pkgSizeCheckDesc:eL,mandatoryApiCheck:tL,mandatoryApiCheckDesc:nL,commonPkgSizeCheckDescTip:rL,unityPkgSizeCheckDescTip:iL,checkConfigPassed:oL,checkPkgSizePassed:sL,checkPkgSizeFailed:aL,checkConfigFailed:lL,performanceCheck:cL,checkPerformancePassed:uL,checkPerformanceFailed:dL,viewDoc:pL,expandCheckDetail:fL,closeCheckDetail:hL,gameProject:gL,gameMainPackageSize:mL,gameIndependentPackageSize:yL,gameTrustDomains:vL,gameTermsAndPrivacy:bL,gameServiceAgreement:SL,gamePrivacyPolicy:wL,termsLabel:CL,privacyLabel:_L,"projectInfo.configSummary.title":"Platform setup needs attention","projectInfo.configSummary.desc":"These settings come from the developer platform. You can keep debugging now, but complete them before submission or platform capability testing.","projectInfo.configSummary.count":"{{count}} pending","projectInfo.configSummary.reviewGroup":"Submission basics","projectInfo.configSummary.runtimeGroup":"Runtime setup","projectInfo.configSummary.item.icon":"Game icon","projectInfo.configSummary.item.name":"Game name","projectInfo.configSummary.item.description":"Game description","projectInfo.configSummary.item.domain":"Trusted domains","projectInfo.configSummary.item.terms":"Terms URL","projectInfo.configSummary.item.privacy":"Privacy URL","projectInfo.configSummary.reviewHint":"Complete before submission","projectInfo.configSummary.domainHint":"Required before external requests","projectInfo.configSummary.termsHint":"Required before login/authorize","projectInfo.configSummary.privacyHint":"Required for authorization and compliance","projectInfo.status.missing":"Missing","projectInfo.status.reviewBeforeSubmit":"Complete before submission","projectInfo.status.beforeRelease":"Complete before release","projectInfo.status.domainRequired":"Add before external requests","projectInfo.status.authRequired":"Add before login/authorize","projectInfo.logoMissingShort":"Icon missing",gameSize:kL,gameName:PL,gameIcon:TL,gameID:EL,gameDesc:xL,getDevGameDetailNotFound:DL,getDevGameDetailFailed:OL,getDevGameDetailNotLogin:IL,notLoginTip:RL,docs:NL,quickStart:jL,jsApiList:LL,errorReference:AL,faq:ML,upload:$L,cancel:FL,gameAssetDescription:zL,uploadPlatformSuccess:BL,uploadPlatformFailed:qL,uploadPlatformDesc:GL,viewOnPlatform:WL,loginToUpload:UL,uploadGamePackageTip:HL,trustDomainEmptyTip:VL,scriptsSetupFailed:KL,resourcesSetupFailed:QL,policyDependencyTermsRequired:XL,policyDependencyPrivacyRequired:YL,policyDependencyTermsPrivacyRequired:ZL,termsOfServiceEmptyTip:JL,privacyPolicyEmptyTip:eA,gameNameEmptyTip:tA,gameIconEmptyTip:nA,gameDescEmptyTip:rA,gameDetailNoPermission:iA,gameDetailNetworkProxyBlocked:oA,startConnectClientWS:sA,clientConnectTimeout:aA,gameDetailNotLogin:lA,gameLoginExpired:cA,login:uA,createRewardedVideoAd:dA,addShortcut:pA,startEntranceMission:fA,getShortcutMissionReward:hA,getEntranceMissionReward:gA,integrated:mA,notIntegrated:yA,checkApiSuccess:vA,checkApiFailed:bA,debugEnvSetupSuccess:SA,clientPreviewEnvSetupSuccess:wA,startToSendMetaToClient:CA,sendMetaToClientSuccess:_A,browserRemoteDebugDesc:kA,clientRealPreviewDesc:PA,"debug.scan.tips":"Before scanning with TikTok for debugging, you can choose from the following two default launch modes:","debug.mode.browser.title":"Browser Remote Debugging Mode","debug.mode.browser.point.logic":"Game logic runs in the browser","debug.mode.browser.point.devtools":"View logs and set breakpoints in the browser devtools","debug.mode.browser.point.preview":"Preview the game visuals in sync on the client","debug.mode.client.title":"Client On-Device Preview Mode","debug.mode.client.supportVersion":"TikTok iOS >=42.7,TikTok Android >=42.5","debug.mode.client.point.logic":"Game logic runs on the client (real device)","debug.mode.client.point.vconsole":"View runtime logs via vConsole","debug.mode.client.point.preview":"Accurately reproduce and preview game effects on the real device","debug.mode.custom.tip":"For more flexible configurations, you can create a custom launch mode to meet specific debugging and preview needs.","debug.guide.header":"Debug Mode Guide","debug.guide.manualBindIP":"Manually bind the local IP address of the computer","debug.guide.manualBindIPInvalid":"Invalid IP address, please enter a valid IP address",invalidPort:TA,scanQrcodeNoResponse:EA,confirm:xA,manualBindIPPlaceholder:DA,"debug.guide.manualBindIPDesc1":"Please confirm that the mobile phone and computer are in the same local area network. If not, please connect to the same local area network first.","debug.guide.manualBindIPDesc2":"Manually enter the debugging service address and port provided by the client loading page to connect.","debug.guide.manualBindIPDesc3":"Only Android 42.9 and above versions are supported, and iOS does not support it for the time being.",startUpload:OA,manualBindClientDebugServiceTitle:IA,gotoCheck:RA,checkNetworkTitle:NA,manualBindIPInfo1:jA,manualBindIPInfo2:LA,back:AA,manualConnectStart:MA,manualConnectConfirm:$A,manualConnectDialogDesc:FA,connectivityCheck:zA,connectivityCheckTitle:BA,connectivityCheckWS:qA,connectivityCheckHTTP:GA,connectivityOK:WA,connectivityNotOK:UA,connectivityTimeout:HA,connectivityFailed:VA,connectivityMissingParams:KA,needDesc:QA,debugSettingDomainCheck:XA,debugSettingVConsole:YA,debugSettingDevInfoPanel:ZA,debugSettingEnableVconsoleDesc:JA,debugSettingEnableDevInfoPanelDesc:eM,topErrorSummary:tM,topErrorTagRequired:nM,topErrorTagSuggested:rM,topBasicInfoMissing:iM,topBasicInfoNameField:oM,topBasicInfoIconField:sM,topBasicInfoDescriptionField:aM,topBasicInfoFieldJoiner:lM,topLoginStatusWarning:cM,topErrorSuggestedActionTip:uM,topErrorViewDetails:dM,topErrorHideDetails:pM,topErrorTitleRequired:fM,topErrorTitleSuggested:hM,topErrorTitleNetworkProxy:gM,topErrorTitlePermission:mM,topErrorTitleLogin:yM,topErrorTitleProjectNotFound:vM,topErrorCtaApplyPermission:bM,topErrorCtaOpenPortal:SM,topErrorMoreItems:wM,themeToggleToDark:CM,themeToggleToLight:_M,changelogFeature:kM,changelogOptimize:PM,changelogBugfix:TM,changelogLink:EM,changelog:xM,changelogNewTag:DM,changelogTip:OM,changelogTarget:IM,wasmSplit:RM,"wasmSplit.disabled.notLoggedIn":"Run `ttmg login` in the terminal and sign in with your developer-platform account before using Wasm Code Split.","wasmSplit.disabled.networkProxy":"The terminal cannot reach the TikTok developer platform. Configure the terminal proxy, rerun `ttmg dev`, then use Wasm Code Split.","wasmSplit.disabled.noPermission":"The current account does not have development permission for this game. Please apply for development permission on the developer platform before using Wasm Code Split.",splitPrepare:NM,splitCollect:jM,splitCode:LM,"splitPrepare.desc":"Submit a description and kick off the build task","splitCollect.desc":"Scan the QR code and play through the main flow","splitCode.desc":"Server generates the main bundle and sub-bundles",rollback:AM,"wasmSplit.subtitle":"Split Unity Wasm code into on-demand sub-bundles to shrink the first-screen size and improve cold-start performance.","wasmSplit.recommended":"Recommended","wasmSplit.strategy.title":"Choose split strategy","wasmSplit.strategy.subtitle":"Decide where the Wasm split runs next; you can reselect before each prepare.","wasmSplit.mode.local.title":"Local split","wasmSplit.mode.local.desc":"Split inside your local project without relying on a remote service — ideal for intranet development.","wasmSplit.mode.remote.title":"Remote split","wasmSplit.mode.remote.desc":"Use the Portal remote split service for a lighter local footprint and more stable artifacts — recommended for release builds.","wasmSplit.stage.loading":"Initializing","wasmSplit.stage.prepare":"Preparing","wasmSplit.stage.collect":"Collecting","wasmSplit.stage.split":"Splitting","wasmSplit.stage.splitted":"Already split","wasmSplit.stage.rollback":"Rolling back","wasmSplit.stage.error":"Error","wasmSplit.requirements.title":"Split requirements","wasmSplit.requirements.account":"The phone's TikTok app must use a non-US user account; US accounts cannot collect functions.","wasmSplit.requirements.unityPlugin":"Update the project to the latest Unity plugin before splitting.","wasmSplit.requirements.unityPluginLink":"View guide","wasmSplit.help.loading.title":"Initializing","wasmSplit.help.loading.line1":"Reading the current game's split configuration, please wait.","wasmSplit.help.prepare.title":"Prepare · what happens next","wasmSplit.help.prepare.line1":"After you submit, a build task starts to get the Unity Wasm ready for splitting.","wasmSplit.help.prepare.line2":"It usually takes 3–5 minutes; you can switch to other pages and the task keeps running in the background.","wasmSplit.help.collect.title":"Collect functions · record on a real device","wasmSplit.help.collect.line1":"Scan with your phone to enter the game and play through the main flow; the IDE records the called functions automatically.","wasmSplit.help.collect.line2":"The more complete the collection, the more accurate the final split.","wasmSplit.help.collect.line3":"Before scanning, confirm the phone's TikTok app uses a non-US user account and the project has the latest Unity plugin. US accounts cannot collect functions.","wasmSplit.help.split.title":"Split code · generating","wasmSplit.help.split.line1":"The backend generates the main bundle and sub-bundles from the collected function set.","wasmSplit.help.split.line2":"Once done, you can test the split version directly from “Start debugging”.","wasmSplit.help.rollback.title":"Roll back to the previous version","wasmSplit.help.rollback.line1":"This split will be undone and the project restored to its un-split state.","wasmSplit.help.splitted.title":"Already split","wasmSplit.help.splitted.line1":'This project already has a finished Wasm split — you can compress and upload as-is, or hit "Discard split" to start over.',"wasmSplit.help.error.title":"Something went wrong","wasmSplit.help.error.line1":"Follow the prompts to retry, or go back home to check the current game's status.","wasmSplit.meta.stage":"Current stage","wasmSplit.meta.mode":"Split mode","wasmSplit.meta.engine":"Engine","wasmSplit.meta.game":"Game","wasmSplit.meta.wasmSize":"WASM size","wasmSplit.meta.wasmMd5":"WASM MD5","wasmSplit.currentMode":"Current split mode","wasmSplit.initializingEnv":"Initializing split environment","wasmSplit.empty.unityOnly.title":"Available for Unity only","wasmSplit.empty.unityOnly.desc":"This project is not a Unity project. Wasm split is only available for Unity games. Switch to a Unity project and revisit this page.","wasmSplit.empty.backHome":"Back to home","wasmSplit.empty.needDevice.title":"Connect a device and select a game first","wasmSplit.empty.needDevice.desc":"Wasm split depends on the current mini game's Wasm package and login state. Scan to connect the client and select a game under “Start debugging”, then come back here to begin.","wasmSplit.empty.connectDevice":"Connect a device","wasmSplit.splitDoneToast":"Split complete — collected {{count}} functions this time.","rollback.rollbacking":"Rolling back...","rollback.backgroundRun":"Run in background","rollback.success":"Rollback succeeded","rollback.close":"Close","rollback.failed":"Rollback failed","rollback.retry":"Retry","collect.sessionClosed":"The collection session was closed (it may have timed out or been taken over by another client). Click “Start split” again to resume collecting.","collect.startFailed":"Failed to start collecting, please try again","collect.requirements.title":"Before scanning","collect.requirements.desc":"Use a non-US TikTok account and update to the latest Unity plugin before scanning; US accounts cannot collect functions.","collect.requirements.link":"View guide",splitFailed:MM,writingSplitResult:$M,retry:FM,startingPrepare:zM,cancelPrepare:BM,backgroundRun:qM,preparingSplit:GM,warningDuringPreparing:WM,"remotePreparing.title":"Remote build task in progress, please wait...","remotePreparing.eta":"Submitted to Portal cloud build — usually 3 - 5 minutes, can run in background; do not modify the local game package meanwhile.",preparingSplitSuccess:UM,preparingSplitFailed:HM,retryPrepare:VM,downloadPreparedWasmCode:KM,downloadFailed:QM,retryDownload:XM,downloadSuccess:YM,downloadPreparedWasmCodeDesc:ZM,splitDesc:JM,inputSplitDesc:e$,startPrepare:t$,processing:n$,updateWasmSplitConfig:r$,updateWasmSplitConfigSuccess:i$,updateWasmSplitConfigFailed:o$,compressPreparedWasmCodeSuccess:s$,compressPreparedWasmCodeFailed:a$,writeCompressPreparedWasmCode:l$,writeCompressPreparedWasmCodeSuccess:c$,writeCompressPreparedWasmCodeFailed:u$,fetchDownloadUrl:d$,fetchDownloadUrlSuccess:p$,fetchDownloadUrlFailed:f$,downloadPreparedWasmCodeSuccess:h$,downloadPreparedWasmCodeFailed:g$,startSplit:m$,cannotSplitTip:y$,collectDesc:v$,collectConnectedTitle:b$,collectConnectedDesc:S$,startCollect:w$,startingCollect:C$,resumedCollectSession:_$,wasmSize:k$,collectedFuncCount:P$,totalFuncCount:T$,splitVersion:E$,splittingDesc:x$,cancelSplit:D$,getSplitResult:O$,retryGetSplitResult:I$,getSplitResultFailed:R$,splitSuccess:N$,downloadSplitResult:j$,downloadSplitResultFailed:L$,retryDownloadSplitResult:A$,downloadSplitResultSuccess:M$,downloadSplitResultTip:$$,start_download_android_main_wasm:F$,download_android_main_wasm_done:z$,start_compress_android_main_wasm:B$,compress_android_main_wasm_done:q$,start_download_android_sub_wasm_code:G$,download_android_sub_wasm_code_done:W$,start_compress_android_sub_wasm_code:U$,compress_android_sub_wasm_code_done:H$,start_download_ios_main_wasm:V$,download_ios_main_wasm_done:K$,start_compress_ios_main_wasm:Q$,compress_ios_main_wasm_done:X$,start_download_ios_sub_wasm_code:Y$,download_ios_sub_wasm_code_done:Z$,start_compress_ios_sub_wasm_code:J$,compress_ios_sub_wasm_code_done:e3,start_write_splited_wasm_br:t3,write_splited_wasm_done:n3,start_update_wasm_split_config:r3,update_wasm_split_config_done:i3,noWasmCode:o3,noWasmCodeDesc:s3,hasSplitedTitle:a3,hasSplitedDesc:l3,hasSplitedDiscard:c3,noSplitConfigTitle:u3,noSplitConfigDesc:d3,advancedGuide:p3,integrationAssistant:f3,"ia.title":"Capability Access","ia.subtitle":"Collect key platform capabilities, prerequisites, and recommended debugging paths in one place so developers can move from reading docs to hands-on verification faster.","ia.banner.login":"Start with `ttmg login` in the terminal before debugging these capabilities. Many platform-dependent flows cannot be verified completely without a valid developer session.","ia.banner.termsPrivacy":"Configure Terms & Privacy first. Login and authorization flows depend directly on these platform settings.","ia.banner.ready":"The current baseline is ready for debugging. Read the capability guidance first, then jump to the relevant page to configure and verify it.","ia.menuTitle":"Capabilities","ia.sceneLabel":"Recommended entry scene: ","ia.section.prerequisites":"Pre-checks","ia.section.steps":"Recommended debugging path","ia.section.tips":"Development focus","ia.action.goHome":"Open Home","ia.action.goProjectDetail":"Open Project detail","ia.action.goLaunchMode":"Open Launch mode","ia.action.goPrecheck":"Open Code pre-check","ia.action.openCapabilityDoc":"Detailed guide","ia.status.ready":"Ready","ia.status.notReady":"Needs setup","ia.status.login.title":"Developer login","ia.status.login.ready":"A developer account is already loaded, so platform-dependent capability checks can continue.","ia.status.login.notReady":"No active login is detected. Upload, project detail fetches, and some platform task flows may stop here first.","ia.status.terms.title":"Terms URL","ia.status.terms.ready":"Terms URL is configured, so login / authorize checks can continue.","ia.status.terms.notReady":"Terms URL is missing. Login / authorize flows are likely to fail until it is configured.","ia.status.privacy.title":"Privacy URL","ia.status.privacy.ready":"Privacy URL is configured, so the privacy-related prerequisite is in place.","ia.status.privacy.notReady":"Privacy URL is missing. Authorization and compliance-related checks should wait until it is configured.","ia.menu.login":"Login","ia.menu.authorize":"Authorize","ia.menu.payment":"Payment","ia.menu.ad":"Ads","ia.menu.uiAdaptation":"UI adaptation","ia.menu.shareMessage":"In-app message share","ia.menu.shareStory":"Share to Story","ia.menu.subpackage":"Subpackage and preload","ia.menu.network":"Network and realtime","ia.menu.sidebarRevisit":"Sidebar revisit","ia.menu.shortcutRevisit":"Shortcut revisit","ia.menu.directPlayCard":"Direct play card","ia.menu.wasmSplit":"Wasm Code Split","ia.wasmSplit.summary":"Split the Unity Wasm bundle into on-demand chunks to shrink the initial payload and improve cold start. Unity engines only.","performance.menu.title":"Performance","performance.overview.title":"Performance","performance.overview.desc":"Currently supports Wasm code split only. More performance tooling will land in upcoming releases.","performance.section.title":"Optimization tools","performance.section.desc":"Each tool is a standalone capability. Click a card to enter its workflow.","performance.card.wasmSplit.title":"Wasm Code Split","performance.card.wasmSplit.desc":"Split the Unity Wasm bundle into on-demand chunks to shrink the initial payload and improve cold start. Unity engines only.","performance.card.subpackageCollect.title":"Subpackage Collection","performance.card.subpackageCollect.desc":"Record the subpackages predownloaded during startup on a real device, split by FP / TTI phase, and turn them into preload config in game.json.","performance.empty.comingSoon":"More performance tooling is on the way.",subpackageCollect:h3,"subpackageCollect.subtitle":"Preview the startup flow on a real device, collect the subpackages predownloaded during startup, and write them into the preload config.","subpackageCollect.phase.fp":"FP","subpackageCollect.phase.tti":"TTI","subpackageCollect.stage.entry":"Pick entry","subpackageCollect.stage.empty":"No subpackages","subpackageCollect.stage.notStarted":"Not started","subpackageCollect.stage.collecting":"Collecting","subpackageCollect.stage.processing":"Processing","subpackageCollect.stage.success":"Done","subpackageCollect.stage.failed":"Failed","subpackageCollect.stage.unsupported":"Unsupported","subpackageCollect.entry.title":"Pick a startup entry","subpackageCollect.entry.subtitle":"Collect per startup root. The main package is the default; independent subpackages are listed when present.","subpackageCollect.entry.game":"Main package","subpackageCollect.entry.gameTag":"Default","subpackageCollect.entry.independentTag":"Independent","subpackageCollect.empty.title":"This game has no subpackages","subpackageCollect.empty.desc":"game.json defines no subpackages. Startup preload collection only applies to games with subpackages, so there is nothing to do here.","subpackageCollect.empty.back":"Back to Performance","subpackageCollect.unsupported.unity.title":"Unity mini games do not support subpackage collection","subpackageCollect.unsupported.unity.desc":"Subpackage collection only supports non-Unity mini games. This project is a Unity mini game, so entry selection, scanning, and collection controls are hidden.","subpackageCollect.unsupported.unity.action":"Go to Wasm Split","subpackageCollect.devGuide.clientVersion":"Supported client versions","subpackageCollect.devGuide.android":"Android 45.9+","subpackageCollect.devGuide.ios":"iOS 46.0+","subpackageCollect.devGuide.stepsTitle":"Main collection steps","subpackageCollect.devGuide.step1.title":"Upgrade to a supported version","subpackageCollect.devGuide.step1.desc":"Use real-device preview with Android TikTok 45.9 or above, or iOS TikTok 46.0 or above.","subpackageCollect.devGuide.step2.title":"Confirm subpackage config","subpackageCollect.devGuide.step2.desc":"game.json must define subpackages, and the run should target either the main package entry or an independent subpackage entry.","subpackageCollect.devGuide.step3.title":"Follow the real startup path","subpackageCollect.devGuide.step3.desc":"After scanning, do not stop at the first screen. Continue until the game is interactive so the client records the actually predownloaded subpackages.","subpackageCollect.devGuide.step4.title":"Report the interactive state","subpackageCollect.devGuide.step4.desc":"When the game becomes interactive, call reportScene({sceneId:9999}). After the IDE receives it, the collection window closes; review the list, then finish collection to write config.","subpackageCollect.scan.title":"Scan and run","subpackageCollect.scan.subtitle":"Keep DevTool open and preview once through the real startup path.","subpackageCollect.guide.step2":"After scanning, play through the game's real startup logic; as it runs, the client reports the subpackages it actually loads and they get collected.","subpackageCollect.guide.step3":"Keep going until interactive — the game internally calls reportScene({sceneId:9999}); after the IDE receives it, the collection window closes and the Finish button appears, ready to write config.","subpackageCollect.preview.noSchema":"No preview schema yet. Connect a device from Debug first, then come back.","subpackageCollect.preview.currentEntry":"Current entry","subpackageCollect.preview.collectedTitle":"Collected subpackages","subpackageCollect.preview.collectedDesc":"Live capture of this run, deduped by name (first report wins), split into FP / TTI.","subpackageCollect.preview.existingDesc":"Existing config for this entry. It is shown for reference only and is not merged into a new run.","subpackageCollect.preview.empty":"No subpackages captured yet.","subpackageCollect.reportScene.toastTitle":"reportScene({sceneId:9999}) received","subpackageCollect.reportScene.toastDesc":"The game reached the interactive state. Finish collection is now unlocked.","subpackageCollect.reportScene.readyTitle":"Finish collection unlocked","subpackageCollect.reportScene.readyDesc":"The IDE received reportScene({sceneId:9999}). The current list will be used for this run; review it, then finish collection.","subpackageCollect.wait.runningTitle":"Device connected, collecting","subpackageCollect.wait.running":"Keep playing through the real startup path. Reported subpackages will appear below, and the game should call reportScene({sceneId:9999}) when interactive.","subpackageCollect.wait.timeoutTitle":"Recommended","subpackageCollect.wait.timeout":"Still no reportScene({sceneId:9999}). Without it the run can't be finalized. Make sure the API is integrated and you played to the interactive point.","subpackageCollect.wait.docLink":"Integration guide","subpackageCollect.manualConnect.title":"Not connected after scanning?","subpackageCollect.manualConnect.desc":"This is common with VPN, proxy, or multi-NIC setups. Retry the previous record or enter the client IP and ports manually.","subpackageCollect.manualConnect.action":"Manual connect","subpackageCollect.manualConnect.retry":"Retry last connection","subpackageCollect.manualConnect.noRecordTitle":"No manual connection record","subpackageCollect.manualConnect.noRecordDesc":"Fill in the client IP, HTTP port, and WS port first. After saving, this page can retry it directly.","subpackageCollect.manualConnect.retryTitle":"Retrying previous connection","subpackageCollect.manualConnect.retryDesc":"Reconnecting to the client debug service with {{ip}}:{{port}}.","subpackageCollect.mock.title":"Mock reporting (debug only)","subpackageCollect.mock.subtitle":"Real-device reporting is pending. Simulate predownload / reportScene here to validate the UI and CLI write path.","subpackageCollect.mock.placeholder":"Select an available subpackage","subpackageCollect.mock.noCandidates":"No predownloadable subpackage under this entry (requires a subpackages entry in game.json with an existing root directory). You can still trigger reportScene to finish collection.","subpackageCollect.mock.reportFp":"Report FP","subpackageCollect.mock.reportTti":"Report TTI","subpackageCollect.mock.reportScene":"reportScene(9999)","subpackageCollect.finish.overwriteNote":"Finishing overwrites this entry's existing {{existing}} item(s) with the {{current}} item(s) from this run (full overwrite per entry, not incremental merge).","subpackageCollect.finish.clearNote":"No subpackages captured this run; finishing clears this entry's existing {{existing}} item(s).","subpackageCollect.finish.clearTitle":"Clear existing config?","subpackageCollect.finish.clearConfirm":"No subpackages were captured this run. Finishing will clear this entry's existing {{existing}} item(s) and cannot be undone. To keep the existing config, choose Exit collection or run another capture.","subpackageCollect.finish.okClear":"Clear and finish","subpackageCollect.finish.cancel":"Cancel","subpackageCollect.action.finish":"Finish collection","subpackageCollect.action.cancel":"Cancel collection","subpackageCollect.action.exit":"Exit collection","subpackageCollect.action.exitRun":"Exit collection","subpackageCollect.action.recollect":"Collect again","subpackageCollect.action.switch":"Switch entry","subpackageCollect.loading":"Loading project config…","subpackageCollect.processing":"Processing…","subpackageCollect.processing.write":"Writing config to game.json…","subpackageCollect.processing.clear":"Clearing old config before collecting again…","subpackageCollect.processing.cancel":"Canceling collection and clearing config…","subpackageCollect.success.title":"Config written","subpackageCollect.success.empty":"No subpackages were written for this entry.","subpackageCollect.failed.title":"Collection failed","subpackageCollect.error.generic":"Failed to write config. Please retry.","ia.login.summary":"Login is the mini game identity capability. It gets an `auth_code` on the client, then your backend exchanges that code for `open_id` / session state.","ia.login.prerequisite1":"Make sure the active `client_key` matches the terminal debug configuration and is injected correctly into the `tt.login` call path at runtime.","ia.login.prerequisite2":"Your backend should already expose the code-exchange API for `auth_code` -> `open_id` / session, with clear retry, error-code, and session-expiration handling.","ia.login.step1":"Call `tt.login` (or your business wrapper) from the business page and confirm the client can return a stable `auth_code`.","ia.login.step2":"Send the `auth_code` to your backend and verify the `open_id` / session exchange, session persistence, and downstream request propagation all work correctly.","ia.login.step3":"Cover user cancel, network failure, expired `auth_code`, and backend exchange failure branches, then confirm the UI fallback and retry strategy are usable.","ia.login.tip1":"Get the main `auth_code -> open_id / session` path stable first, then expand into profile, analytics, or other business flows that depend on login state.","ia.login.tip2":"In the current SDK, `login` defaults to `user.info.open_id`. If you need more user data or extra scopes, request them separately in `authorize`.","ia.authorize.summary":"Authorization asks users for extra scopes such as `user.info.basic` after `login` has already established base identity, then lets your backend use `access_token` to fetch profile data or complete permission checks.","ia.authorize.prerequisite1":"Fill in Terms URL and Privacy URL in Project detail first, and make sure the `login` flow can already exchange for `open_id/access_token` reliably.","ia.authorize.prerequisite2":"Define scopes from real business needs. Do not assume profile fields such as nickname or avatar come directly from the client; they should come from backend OpenAPI calls after consent.","ia.authorize.step1":"Use `tt.login` to get the one-time `auth_code`, then exchange it on your backend for `open_id` / `access_token` so the base identity state is ready.","ia.authorize.step2":"Call `tt.authorize` only in flows that truly need extra profile data or permissions, for example `scope: 'user.info.basic'`, and cover first-consent, reject, and re-entry branches.","ia.authorize.step3":"After the user agrees, let the backend call OpenAPI with `access_token`, then verify the returned scopes, profile fields, and fallback behavior all match the business path.","ia.authorize.tip1":"Do not collapse authorization into login. `login` establishes identity, while `authorize` requests extra scopes, so their failure handling should stay separate.","ia.authorize.tip2":"Do not block the default flow on non-essential permissions. If users reject consent, the base flow should still work and there should be a clear re-trigger entry.","ia.payment.summary":"IAP monetization is the full chain of backend order creation, client-side payment invocation, and backend verification / fulfillment for virtual goods or value-added services, with TikTok Beans as the only supported payment method.","ia.payment.prerequisite1":"Complete business verification and contract signing first, then enable In-App Purchases in Monetization. The payout entity should match the verified business entity.","ia.payment.prerequisite2":"Prepare product config, test accounts, and backend capabilities for order creation, persistence, and verification. For local iteration, enable IAP Mock first to cover the main branches.","ia.payment.step1":"Finish portal enablement, product setup, and payout info, then connect backend order creation, order persistence, and payment-result verification.","ia.payment.step2":"Integrate client payment invocation and callback handling, and use IAP Mock first to cover success, failure, cancel, and repeated-tap branches.","ia.payment.step3":"Then switch to real-device preview or real-device debug and verify real payment, backend verification, fulfillment / crediting, and retry handling as a complete loop.","ia.payment.tip1":"Do not treat the client success callback as the final truth. Fulfillment or crediting should rely on backend verification or the authoritative order state.","ia.payment.tip2":"Mock is useful for iteration speed, but real-device regression is still required before release, especially for weak-network, duplicate-order, cancel, and timeout cases.","ia.ad.summary":"IAA ads cover rewarded video and interstitial formats, and the core chain is enablement, ad-placement creation, ad load/show, and close / reward callback handling without damaging the core experience.","ia.ad.prerequisite1":"Complete business verification and contract signing first, then enable In-App Ads in Monetization. Unreleased apps are usually blocked from creating usable ad placements.","ia.ad.prerequisite2":"For U.S. / EU launch, start Sensitive Data, USDS / TPRM, and related compliance work early, and prepare both IAA Mock and real-device verification paths.","ia.ad.step1":"Confirm IAA is enabled and the app is already released, then go to Ad placements and create the required placement ids.","ia.ad.step2":"In business code, integrate ad instance creation, load, show, and callback handling, and separately verify rewarded-video and interstitial success, failure, and close branches.","ia.ad.step3":"Focus the final regression on reward accuracy, frequency control, and experience boundaries: rewarded video should grant rewards only after full playback, and interstitials need at least a 60-second gap between triggers.","ia.ad.tip1":"Make reward delivery idempotent so repeated callbacks, page switches, or re-entry do not cause duplicate rewards.","ia.ad.tip2":"Do not force ads into initialization, tutorial, or other high-frequency paths. If platform compliance or release gating is still blocked, fix that first.","ia.uiAdaptation.summary":"UI adaptation focuses on screen-size, capsule-button, and safe-area handling so key UI stays visible, tappable, and correctly aligned across devices.","ia.uiAdaptation.prerequisite1":"List the key pages that depend on top bars, floating actions, fixed bottom areas, or full-screen visuals instead of patching only one page.","ia.uiAdaptation.prerequisite2":"Prepare real-device or multi-size preview coverage, especially across different aspect ratios, top safe areas, and bottom gesture areas.","ia.uiAdaptation.step1":"First centralize window-size, safe-area, and capsule-button metrics into a layout baseline instead of hardcoding them separately in each page.","ia.uiAdaptation.step2":"Adapt top title areas, top-right actions, bottom fixed controls, and modal content so they do not overlap with the capsule button or system safe areas.","ia.uiAdaptation.step3":"Run real-device regression on key pages and check aspect-ratio changes, scroll containers, full-screen backgrounds, and tap targets across devices.","ia.uiAdaptation.tip1":"Do not look only at visual alignment. Tap areas, modal close affordances, and bottom reachability are part of UI adaptation too.","ia.uiAdaptation.tip2":"Do not hardcode the capsule-button position with fixed pixels; base layout on platform metrics and safe-area data.","ia.shareMessage.summary":"`shareAppMessage` is TikTok in-app message sharing. The card title, description, and cover come from the game basic info configured in the developer portal, while the business-side design focus is how `query` carries the exact in-game share scenario.","ia.shareMessage.prerequisite1":"Confirm client-version support first and probe availability with `TTMinis.game.canIUse('shareAppMessage')` instead of assuming the capability exists on every runtime.","ia.shareMessage.prerequisite2":"Make sure the game basic info is correctly configured in the developer portal first, because the in-app message card title, description, and cover are sourced from that portal config. Then focus the business logic on `query` and landing behavior.","ia.shareMessage.step1":"Integrate `TTMinis.game.shareAppMessage` in pages that fit acquisition, recall, or campaign sharing, and verify that the `query` value accurately represents the current business scenario.","ia.shareMessage.step2":"Focus on success, cancel, failure, and repeated-tap branches so the in-app message share action, callbacks, and user feedback all stay stable.","ia.shareMessage.step3":"On device, verify the message-card presentation and post-share return path so recipients land on the right page and the query-driven state is restored correctly.","ia.shareMessage.tip1":"This is better described as an in-app message card share capability, but the card title, description, and cover are not dynamically customized by business code at share time. What you really control is `query` and the landing flow.","ia.shareMessage.tip2":"If many share entries exist, centralize `query` generation and parsing. Maintain the game basic info separately in the developer portal instead of assuming share-time overrides are supported.","ia.shareStory.summary":"`shareToStory` focuses on Story sharing. The visible presentation depends more on the Story asset itself, while the business-side design focus is still the `query` value and the post-share landing flow.","ia.shareStory.prerequisite1":"Identify which campaign, gameplay, or result pages are actually suitable for Story sharing instead of forcing a Story entry into every flow.","ia.shareStory.prerequisite2":"Prepare Story-appropriate assets first, then design the `query` value and landing behavior together. Do not optimize only for visual materials while leaving the in-game return logic ambiguous.","ia.shareStory.step1":"Integrate `shareToStory` on pages that are appropriate for visual propagation and verify that both the selected asset and the `query` value represent the active business scenario correctly.","ia.shareStory.step2":"Cover trigger, cancel, failure, and multiple-asset branches so the Story-sharing presentation and user feedback both behave as expected.","ia.shareStory.step3":"On device, verify the return path after Story sharing and confirm that the target page, campaign state, and params are restored correctly.","ia.shareStory.tip1":"Story sharing should not be treated as a simple copy of message sharing. Asset expression is one part, but `query` and the post-share landing flow still need deliberate business-side design.","ia.shareStory.tip2":"If Story depends on strong visual materials, do focused real-device checks on both asset presentation and whether the `query`-driven return path restores the right page state.","ia.subpackage.summary":"Subpackage and preload focuses on first-package size, split boundaries, and resource loading timing so later content can arrive smoothly without hurting first-screen speed.","ia.subpackage.prerequisite1":"Identify what is truly required on the first screen versus what belongs to later gameplay or optional resources.","ia.subpackage.prerequisite2":"Prepare consistent loading fallback, retry, and loading-state UX instead of scattering split-package logic inside business pages.","ia.subpackage.step1":"Define split boundaries and package names first, and move non-first-screen but high-cost resources out of the main package carefully.","ia.subpackage.step2":"Use `preDownloadSubpackage` or `loadSubpackage` at the right moments and verify progress, success, and failure are all observable.","ia.subpackage.step3":"Run device and weak-network regression on first-screen enter, later jumps, and split-package failure recovery so users do not get stuck mid-load.","ia.subpackage.tip1":"Preload does not mean ready-to-use. Validate the actual business transition when the split package is truly needed.","ia.subpackage.tip2":"Do not over-split just to chase a smaller main package. Timing, fallback, and dependency correctness matter more than raw split count.","ia.network.summary":"Network and realtime covers `request`, `downloadFile`, `connectSocket`, and network-status observation, with the focus on usable weak-network, disconnect, and recovery behavior.","ia.network.prerequisite1":"Unify request, download, and realtime paths before debugging so timeout, retry, and error visibility are not implemented differently in each page.","ia.network.prerequisite2":"Prepare different fallback and user feedback for HTTP, downloads, and long connections instead of treating them as the same failure type.","ia.network.step1":"Wrap request, download, and Socket calls behind a shared layer so timeout, cancel, retry, and logs are handled consistently.","ia.network.step2":"Use `getNetworkType`, network-change listeners, and weak-network listeners to verify that pages react to network changes instead of failing silently.","ia.network.step3":"On device, focus regression on weak-network, reconnect, interrupted downloads, and Socket recovery so state restoration is actually complete.","ia.network.tip1":"Do not test only ideal network. Most real issues come from timeout, half-downloaded assets, broken connections, and repeated reconnect attempts.","ia.network.tip2":"Realtime flows should explicitly cover close, background/foreground transition, and resubscribe logic after recovery.","ia.sidebar.summary":"Sidebar revisit is a P0 retention capability where users return from the TikTok Profile sidebar and then claim a revisit reward.","ia.sidebar.prerequisite1":"Confirm the account region is within the supported rollout and check capability support with `canIUse` in business code first.","ia.sidebar.prerequisite2":"Use a dedicated sidebar-revisit scene in Launch mode instead of keeping the default QR path.","ia.sidebar.step1":"Go to Launch mode, select the `Sidebar revisit` scene, and save it as a dedicated debug mode.","ia.sidebar.step2":"For local debugging, run `ttmg dev`, switch Launch mode to `scene_center`, then scan to enter. That session is already simulating an open from the sidebar entry.","ia.sidebar.step3":"Call `getEntranceMissionReward` directly to verify `canReceiveReward` and your reward-delivery logic. Keep `startEntranceMission` for real user-flow regression instead of treating it as a required Launch mode step.","ia.sidebar.tip1":"This capability strongly depends on scene and region conditions, so do not describe or validate it only through the default QR path.","ia.sidebar.tip2":"If the task cannot continue, check scene, account region, client capability, and task state before suspecting reward logic.","ia.shortcut.summary":"Desktop Shortcut (shortcut revisit) is a P0 retention capability: users add the mini game to the home screen and later re-enter from the shortcut to claim revisit rewards.","ia.shortcut.prerequisite1":"Compatibility: probe support via `TTMinis.game.canIUse('addShortcut')`. Validate on TikTok 41.0.0+ (iOS requires 41.40+).","ia.shortcut.prerequisite2":"Reward verification: in the real user flow, `TTMinis.game.getShortcutMissionReward()` returns `canReceiveReward=true` only when the session is launched from the home-screen shortcut. Under `scene_shortcut` Launch mode, the session itself already simulates that entry.","ia.shortcut.step1":"Add a clear entry point in your UI: check `canIUse('addShortcut')`, then call `TTMinis.game.addShortcut()`, and log `errorCode/errorMsg` on failures for debugging.","ia.shortcut.step2":"For local debugging: run `ttmg dev` → in Launch mode select the `Desktop Shortcut` scene (`scene_shortcut`) → scan to enter. That session is already simulating an open from the desktop shortcut entry.","ia.shortcut.step3":"Call `TTMinis.game.getShortcutMissionReward()` directly and check `canReceiveReward`. If true, continue into your reward/claim flow. Keep `addShortcut` and the real home-screen reopen for real user-flow regression.","ia.shortcut.tip1":"Treat `canReceiveReward` as an entry-source signal: add-shortcut success does not mean the current session is eligible for claiming the revisit reward.","ia.shortcut.tip2":"Show guidance early (first screen / right after tutorial) and make the first-add value obvious. Review will focus on end-to-end flow completeness and one-time/daily reward constraints.","ia.revisit.panel.modeName":"Launch mode","ia.revisit.panel.scene":"Scene","ia.revisit.panel.launchParams":"Launch params","ia.revisit.panel.package":"Package","ia.revisit.panel.signal":"Reward check","ia.revisit.sidebar.panel.title":"Quickly create a sidebar-revisit debug mode","ia.revisit.sidebar.panel.desc":"This creates a dedicated `Sidebar revisit` launch mode for you. Once selected, scanning in already simulates a session opened from the sidebar entry, so you can directly debug `getEntranceMissionReward` and reward delivery without an extra jump step.","ia.revisit.sidebar.panel.modeValue":"Simulate launch under the sidebar-revisit scene","ia.revisit.sidebar.panel.generatedModeName":"Sidebar revisit debug mode","ia.revisit.sidebar.panel.signalValue":"`startEntranceMission` / `getEntranceMissionReward`","ia.revisit.sidebar.panel.createQr":"Create sidebar-revisit debug QR","ia.revisit.shortcut.panel.title":"Quickly create a shortcut-revisit debug mode","ia.revisit.shortcut.panel.desc":"This creates a dedicated `Desktop Shortcut` launch mode for you. Once selected, scanning in already simulates a session opened from the desktop shortcut entry, so you can directly debug `getShortcutMissionReward` / `canReceiveReward` and reward delivery without adding the shortcut first.","ia.revisit.shortcut.panel.modeValue":"Simulate launch under the desktop-shortcut scene","ia.revisit.shortcut.panel.generatedModeName":"Shortcut revisit debug mode","ia.revisit.shortcut.panel.signalValue":"`addShortcut` / `getShortcutMissionReward` / `canReceiveReward`","ia.revisit.shortcut.panel.createQr":"Create shortcut-revisit debug QR","ia.directPlay.summary":"Direct-play debugging is best split into three stages: first verify the mini game package itself, then use a preview QR code to validate the card presentation and handoff path, and finally manage the verified card's live status.","ia.directPlay.versionNotice":"Direct-play stage 2 debugging requires client version 45.4.0 or later. Confirm the client version first before using preview-QR-related capabilities.","ia.directPlay.prerequisite1":"Stage 1 only focuses on the mini game package runtime. TT Feed presentation, forced insertion, and the `Play now` handoff are out of scope there.","ia.directPlay.prerequisite2":"Before moving into stage 2, make sure package launch, first-screen loading, and the core in-game path are already stable under the direct-play scene.","ia.directPlay.step1":"Open Launch mode, choose the direct-play scene, and save a dedicated mode for package debugging.","ia.directPlay.step2":"Return to Home and scan to launch. Verify that the package can enter reliably and complete the basic in-game flow under that scene.","ia.directPlay.step3":"Only after the package itself is stable should you come back here to validate the direct-play card presentation and handoff with a preview QR code, then manage the same card's live status.","ia.directPlay.tip1":"If stage 1 fails, debug it like a normal package/runtime issue first instead of attributing it to Feed presentation or delivery logic too early.","ia.directPlay.tip2":"When stage 2 fails, separate package runtime issues from card configuration, asset, or handoff-path issues; stage 3 only manages the live status of the card already verified in stage 2.","ia.directPlay.stage1.title":"Stage 1: debug the game package itself","ia.directPlay.stage1.desc":"This stage only debugs the mini game package itself. TT Feed presentation, forced insertion, and the `Play now` handoff are out of scope. Use the direct-play scene to generate a launch QR code and confirm the package can start and run normally.","ia.directPlay.stage1.ready":"Direct-play scene ready","ia.directPlay.stage1.notReady":"Need to apply direct-play scene","ia.directPlay.stage1.modeName":"Launch mode","ia.directPlay.stage1.modeValue":"Simulate launch under the direct-play scene","ia.directPlay.stage1.generatedModeName":"Direct-play package debug mode","ia.directPlay.stage1.scene":"Scene","ia.directPlay.stage1.package":"Package","ia.directPlay.stage1.queries":"Queries","ia.directPlay.stage1.apply":"Apply direct-play scene","ia.directPlay.stage1.openHome":"Open Home with this mode","ia.directPlay.stage1.createQr":"Create package debug QR","ia.directPlay.stage1.appliedTitle":"Direct-play scene applied","ia.directPlay.stage1.appliedDesc":"The current launch mode now uses the direct-play scene. You can continue scanning from Home or fine-tune it in Launch mode.","ia.directPlay.stage2.title":"Stage 2: generate preview QR","ia.directPlay.stage2.desc":"After the game package itself is stable, pick a direct-play card and a preview code version, then generate a platform preview QR code to validate the card presentation and handoff path.","ia.directPlay.stage2.banner":"This stage is only for direct-play-card preview and handoff verification. If the game package itself is still unstable, go back to stage 1 first.","ia.directPlay.stage2.cardSelect":"Select direct-play card","ia.directPlay.stage2.assetSelect":"Select preview code version","ia.directPlay.stage2.selectedCard":"Selected card","ia.directPlay.stage2.selectedAsset":"Selected preview code version","ia.directPlay.stage2.cardName":"Card name: ","ia.directPlay.stage2.cardContentId":"Content ID: ","ia.directPlay.stage2.cardDesc":"Card description: ","ia.directPlay.stage2.cardScenario":"Scenario: ","ia.directPlay.stage2.cardStatus":"Review status: ","ia.directPlay.stage2.cardStatus.approved":"Approved","ia.directPlay.stage2.cardStatus.pending":"Available after backend review","ia.directPlay.stage2.cardPackage":"Launch package: ","ia.directPlay.stage2.cardQueries":"Queries: ","ia.directPlay.stage2.assetGroup":"Code version group: ","ia.directPlay.stage2.assetFile":"File: ","ia.directPlay.stage2.assetVersion":"Version: ","ia.directPlay.stage2.assetSize":"Size: ","ia.directPlay.stage2.assetUploaded":"Uploaded at: ","ia.directPlay.stage2.assetGroup.preview":"Preview code version","ia.directPlay.stage2.assetGroup.live":"Live code version","ia.directPlay.stage2.assetGroup.review":"In-review code version","ia.directPlay.stage2.emptyCard":"No direct-play card is available yet.","ia.directPlay.stage2.emptyAsset":"No game asset is available yet.","ia.directPlay.stage2.generate":"Generate preview QR","ia.directPlay.stage2.refresh":"Refresh data","ia.directPlay.stage2.previewUrl":"Preview URL","ia.directPlay.stage2.copy":"Copy URL","ia.directPlay.stage2.open":"Open preview","ia.directPlay.stage2.qrDesc":"Use TikTok to scan this code inside Feed and experience the direct-play-card flow.","ia.directPlay.stage2.copyTitle":"Preview URL copied","ia.directPlay.stage2.copyDesc":"The preview URL has been copied to the clipboard.","ia.directPlay.stage2.selectRequired":"Please select both a direct-play card and a game asset first.","ia.directPlay.stage2.loadCardsFailed":"Failed to load direct-play cards.","ia.directPlay.stage2.loadAssetsFailed":"Failed to load game assets.","ia.directPlay.stage2.loadResourcesFailed":"Failed to load direct-play debugging resources.","ia.directPlay.stage2.previewFailed":"Failed to generate the direct-play preview URL.","ia.directPlay.stage2.modeSelect":"Use existing card","ia.directPlay.stage2.modeCreate":"Create card","ia.directPlay.stage2.create.title":"Create direct-play card","ia.directPlay.stage2.create.desc":"Create a new direct-play card directly in the debug tool. After it succeeds, the list will refresh and the new card will be selected automatically.","ia.directPlay.stage2.create.option":"+ Create direct-play card","ia.directPlay.stage2.create.cardName":"Card name","ia.directPlay.stage2.create.cardNamePlaceholder":"Example: Send reward card for xx game","ia.directPlay.stage2.create.cardDesc":"Card description","ia.directPlay.stage2.create.cardDescPlaceholder":"Example: Send 1000 coins to recall players","ia.directPlay.stage2.create.cardType":"Card type","ia.directPlay.stage2.create.cardType.fixed":"Fixed card","ia.directPlay.stage2.create.cardType.dynamic":"Dynamic card","ia.directPlay.stage2.create.cardType.dynamicDesc":"Dynamic card: the platform provides a server API so developers can push in-game events and campaign reminders dynamically, such as stamina recovery or event start reminders.","ia.directPlay.stage2.create.cardType.fixedDesc":"Fixed card: integrated with fixed client-side logic, such as recalling users with a gift pack by the same rule each time.","ia.directPlay.stage2.create.scenario":"Scenario","ia.directPlay.stage2.create.scenarioPlaceholder":"Example: recover_stamina","ia.directPlay.stage2.create.scenario.rewardIssue":"Reward issue reward_issue","ia.directPlay.stage2.create.scenario.recoverStamina":"Stamina recovery recover_stamina","ia.directPlay.stage2.create.scenario.unlockLevel":"Unlock level unlock_level","ia.directPlay.stage2.create.subPkg":"Launch package","ia.directPlay.stage2.create.params":"Queries","ia.directPlay.stage2.create.paramsPlaceholder":"Example: a=1&b=constant","ia.directPlay.stage2.create.submit":"Create and select card","ia.directPlay.stage2.create.success":"The direct-play card was created and selected automatically.","ia.directPlay.stage2.create.failed":"Failed to create the direct-play card.","ia.directPlay.stage3.title":"Stage 3: manage direct-play card status","ia.directPlay.stage3.desc":"After the stage 2 preview is verified, publish or unpublish the currently selected direct-play card to control whether the live direct-play Feed path uses it.","ia.directPlay.stage3.banner":"Publishing or unpublishing changes the live status of the currently selected direct-play card. Confirm the stage 2 preview QR code before publishing.","ia.directPlay.stage3.selectedCard":"Current card publish status","ia.directPlay.stage3.emptyCard":"Select a direct-play card in stage 2 first.","ia.directPlay.stage3.publishStatus":"Publish status: ","ia.directPlay.stage3.cardStatus.online":"Published","ia.directPlay.stage3.cardStatus.notOnline":"Not published","ia.directPlay.stage3.publish":"Publish direct-play card","ia.directPlay.stage3.published":"Published","ia.directPlay.stage3.offline":"Unpublish direct-play card","ia.directPlay.stage3.confirmTitle":"Publish direct-play card {{name}} ({{contentId}})?","ia.directPlay.stage3.offlineConfirmTitle":"Unpublish direct-play card {{name}} ({{contentId}})?","ia.directPlay.stage3.selectRequired":"Select a direct-play card in stage 2 first.","ia.directPlay.stage3.publishSuccess":"The direct-play card has been published and the latest status was refreshed.","ia.directPlay.stage3.publishFailed":"Failed to publish the direct-play card.","ia.directPlay.stage3.offlineSuccess":"The direct-play card has been unpublished and the latest status was refreshed.","ia.directPlay.stage3.offlineFailed":"Failed to unpublish the direct-play card.","ia.overview.eyebrow":"Capability Map","ia.overview.title":"Capability Access","ia.overview.desc":"Start by confirming the monetization model, then review the recommended capability combination. Revisit, sharing, and foundational capabilities stay available below.","ia.overview.groups.title":"Capability overview","ia.overview.groups.desc":"The sections below stay grouped by business goal into growth and revisit, sharing and growth, and core capabilities for follow-up integration.","ia.overview.keyCapabilities.title":"Key capabilities","ia.overview.keyCapabilities.desc":"These capabilities do not change with monetization mode, so expand them only when needed.","ia.overview.baseline.title":"Baseline prerequisites","ia.overview.baseline.desc":"These states affect most capability flows, so it is worth clearing obvious blockers here before diving into a specific module.","ia.overview.stat.capabilities":"Capabilities","ia.overview.stat.groups":"Groups","ia.overview.stat.prerequisites":"Prerequisites","ia.overview.sectionLabel":"Capability group","ia.overview.section.capabilityUnit":"capabilities","ia.overview.section.identity.title":"Login and authorization","ia.overview.section.identity.desc":"Establish the mini game identity first, then request profile or permission scopes only when needed.","ia.overview.section.monetization.title":"Monetization","ia.overview.section.monetization.desc":"Revenue mainly comes from payment and ads, and both require portal enablement, business-loop validation, and device regression.","ia.monetization.title":"Choose monetization model","ia.monetization.desc":"Review the corresponding capability combination and debugging focus based on the current monetization model of the mini game.","ia.monetization.meta.required":"Required","ia.monetization.meta.optional":"Optional","ia.monetization.meta.support":"Supporting","ia.monetization.meta.experimental":"Experimental","ia.monetization.core.title":"Core capabilities","ia.monetization.mode.iaa.title":"IAA","ia.monetization.mode.iaa.summary":"Ad monetization comes first, so stabilize identity, ad requests, and callback handling early.","ia.monetization.mode.iaa.desc":"For ads-first games, start with `login` to establish user identity, then validate placement setup, ad request flow, and callback handling. Add `authorize` only when you need extra profile fields such as nickname or avatar, prioritize network stability early so ad loading and callbacks do not get blocked, and use revisit capabilities to verify retention and return paths for ad users.","ia.monetization.mode.iap.title":"IAP","ia.monetization.mode.iap.summary":"The payment loop comes first, with order creation, payment, verification, and fulfillment kept consistent end to end.","ia.monetization.mode.iap.desc":"For purchase-driven games, start with `login`, order creation, payment invocation, backend verification, and fulfillment as one closed loop. Add `authorize` only when extra profile data or additional scopes are required, pay special attention to weak-network, payment-cancel, and duplicate-order cases, and use revisit capabilities to validate the return path for paying users.","ia.monetization.mode.iaap.title":"IAAP","ia.monetization.mode.iaap.summary":"Ads and payments run together, so validate overall stability on top of the shared user system.","ia.monetization.mode.iaap.desc":"For hybrid monetization, use `login` to establish the shared user system first, then validate both the ad flow and the payment loop separately. Add `authorize` only when extra user profile data is required, make sure both monetization paths remain stable under the same account and gameplay session, and use revisit capabilities to verify ongoing return traffic for mixed-monetization users.","ia.monetization.recommended.title":"Recommended capability combination","ia.requirement.required":"Required","ia.requirement.optional":"Optional","ia.requirement.recommended":"Recommended","ia.requirement.basic":"Core","ia.requirement.experimental":"Experimental","ia.overview.section.foundation.title":"Core capabilities","ia.overview.section.foundation.desc":"This group focuses on foundational topics such as UI adaptation, network stability, resource loading, and split-package management after core business capabilities are in place.","ia.overview.section.experience.title":"Experience and adaptation","ia.overview.section.experience.desc":"This group is about cross-device consistency, especially safe areas, capsule-button layout, and the usability of key action regions.","ia.overview.section.share.title":"Sharing and growth","ia.overview.section.share.desc":"This topic stays as sharing and growth, but the guidance is split into two concrete scenarios: `shareAppMessage` and `shareToStory`.","ia.overview.section.ui.title":"UI adaptation","ia.overview.section.ui.desc":"This group focuses only on cross-device UI consistency, especially screen size, safe area, capsule-button layout, and key action visibility.","ia.overview.section.growth.title":"Growth and revisit","ia.overview.section.growth.desc":"These capabilities depend more on entry scenes and revisit paths, so scene selection and reward loops need extra attention.","ia.overview.section.performance.title":"Performance","ia.overview.section.performance.desc":"Tools that shrink bundle size, speed up startup, and improve runtime performance. Opt in per capability; more optimizations will land here in upcoming releases.","ia.env.title":"Prerequisite baseline","ia.env.desc":"Surface the three easiest blockers first so the entry flow does not look ready while the actual capability path is still blocked.","ia.map.title":"Capability map","ia.map.desc":"Each card represents one integration path. Start with the overview, then enter a dedicated page for customized debugging guidance.","ia.action.openGuide":"Open integration guide","ia.detail.notFound":"The requested capability guide was not found.","ia.detail.backToMap":"Back to previous page","ia.login.highlight1":"The core output is an `auth_code`, which your backend exchanges for `open_id` / session state.","ia.login.highlight2":"`login` and `authorize` are different paths: `login` establishes identity, while `authorize` requests extra scopes.","ia.authorize.highlight1":"The key is not direct client-side profile access, but explicit extra-scope consent after `login`.","ia.authorize.highlight2":"Nickname, avatar, and other profile data should ultimately be fetched by the backend with `access_token`, not returned in one client call.","ia.payment.highlight1":"The real payment loop is order creation, payment invocation, verification, and fulfillment, not just opening the pay panel.","ia.payment.highlight2":"Use IAP Mock to iterate faster, then validate real Beans payment against backend results on device.","ia.ad.highlight1":"Enable IAA and create placements first, then debug code paths; unreleased apps often cannot even finish placement setup.","ia.ad.highlight2":"Rewarded video needs accurate post-play rewards, while interstitials need strict pacing and low disruption.","ia.uiAdaptation.highlight1":"The goal is not one-off page fixes but a shared layout baseline for safe area, capsule button, and window metrics.","ia.uiAdaptation.highlight2":"Validate on real devices with different sizes so titles, floating buttons, and bottom action areas stay unobstructed.","ia.shareMessage.highlight1":"For `shareAppMessage`, the card title, description, and cover come from the game basic info in the developer portal, not from dynamic business-side customization.","ia.shareMessage.highlight2":"What the business side really needs to design is `query`, so proactive share, mission share, and campaign sharing can land in the correct in-game scenario.","ia.shareStory.highlight1":"`shareToStory` is more visual, but what the business side still needs to design carefully is `query`, so the share can return to the right in-game scenario.","ia.shareStory.highlight2":"Do dedicated device regression for Story, checking both asset presentation quality and `query`-driven return-path stability.","ia.subpackage.highlight1":"Split-package quality depends on boundary definition, preload timing, and fallback, not on splitting as much as possible.","ia.subpackage.highlight2":"Validate both first-screen speed and later scene transitions under weak network.","ia.network.highlight1":"This topic is about weak-network and recovery behavior, not only single-request success on a good connection.","ia.network.highlight2":"Request, download, and realtime paths should each have explicit recovery rules.","ia.sidebar.highlight1":"This is a P0 retention capability, and the key is the sidebar entry, task state, and complete reward loop.","ia.sidebar.highlight2":"Platform guidance shows it helps next-day and 7-day retention, so it is worth keeping as a reusable fixed entry.","ia.shortcut.highlight1":"P0 retention: the critical path is add shortcut → re-enter from home screen → reward state becomes eligible.","ia.shortcut.highlight2":"Works especially well for UA/ad-driven games; debug scene + entry source (`canReceiveReward`) first, then validate your reward loop.","ia.directPlay.highlight1":"It reaches users in Feed with a previously played game card, and the main CTA is `Play now`.","ia.directPlay.highlight2":"It works well as a shared reproduction path for growth, delivery, and QA when recalling high-value users.",languageSwitcherLabel:g3,langChinese:m3,langEnglish:y3},b3="DevTool",S3="扫码开始本地调试",w3="设备连接成功",C3="调试服务已断开连接",_3="未连接设备",k3="Node",P3="浏览器",T3="客户端",E3="已连接",x3="未连接",D3="连接失败",O3="未知",I3="节点说明",R3="本机启动的调试服务(负责与 IDE/客户端建立通道、转发调试消息)",N3="当前打开 DevTool IDE 的浏览器页",j3="真机上的 TikTok 客户端调试服务(提供 HTTP/WS 能力)",L3="点表示该链路的连通状态;同一条边上 ws/http 分别显示在两侧以便区分",A3="网络诊断",M3="网络连接诊断",$3="定位扫码卡住、连接失败和端口不可达。",F3="扫码没响应?点击这里进行诊断处理",z3="网络诊断",B3="TikTok 扫码无响应、局域网不通或代理复杂时,可先在这里快速定位问题。",q3="打开诊断",G3="一键检测",W3="手动连接",U3="手动绑定客户端调试服务",H3="当扫码链路不可用(代理/防火墙/多网卡)时,可通过手动填写客户端 IP 与端口进行连接。",V3="手动指定客户端地址",K3="进入手动连接",Q3="当前结论",X3="尚未开始检测",Y3="先检测本地服务、客户端 HTTP 和客户端 WS,确定卡点在哪一段。",Z3="点击一键检测,或先填写客户端地址后再检测。",J3="正在检测链路",e5="正在检查本地服务、客户端 HTTP 和客户端 WS。",t5="完成后查看下方检测结果。",n5="缺少客户端地址",r5="当前没有客户端 IP / HTTP / WS 端口,无法判断手机侧链路。",i5="本地调试服务不可用",o5="IDE 无法访问本地 Node 服务,请先确认 `ttmg dev` 正在运行。",s5="IDE 无法连接本地 Node WebSocket,请确认本地调试服务已启动完成。",a5="客户端链路不可达",l5="本地服务正常,但 IDE 访问手机端 HTTP 和 WS 都超时,卡点在手机侧链路或客户端调试服务。",c5="客户端 WS 不可达",u5="客户端 HTTP 可访问,但 WS 超时,优先检查 WS 端口和客户端监听状态。",d5="网络链路正常",p5="本地服务和客户端 HTTP / WS 均可达,可返回扫码调试继续排查上层逻辑。",f5="检测结果不完整",h5="当前结果未命中典型故障,请核对客户端地址和端口后重新检测。",g5="确认客户端 IP、HTTP 端口、WS 端口与加载页一致。",m5="电脑端 IP",y5="WS 端口",v5="HTTP 端口",b5="电脑端",S5="客户端",w5="查看排错指南",C5="打开代理配置",_5="环境信息",k5="展开查看本机和客户端地址。",P5="检测结果",T5="保留链路证据,便于确认问题发生在哪一段。",E5="IDE ↔ Node(HTTP)",x5="IDE ↔ Node(WS)",D5="IDE ↔ 客户端(HTTP)",O5="IDE ↔ 客户端(WS)",I5="诊断建议",R5="先按下面的建议处理,再回到上方重新检测,确认问题是否已经收敛。",N5="操作区域",j5="补充信息:如果连接成功,可返回扫码调试页面继续调试。",L5="手动连接已写入当前环境,并已自动触发完整检测。",A5="手动连接已提交,但快速连通性检查失败:",M5="扫码未带回地址或端口不一致时,填写客户端 IP / HTTP / WS 后重新检测。",$5="下一步",F5="诊断结果",z5="建议处理",B5="填写地址",q5="先补齐客户端 IP、HTTP 端口和 WS 端口,再保存并检测当前链路是否可达。",G5="返回扫码调试",W5="当前核心网络链路可达,可以回到首页重新扫码或继续当前调试流程。",U5="重启后重新检测",H5="请先确认 `ttmg dev` 正在运行,必要时重启本地调试服务,然后重新检测。",V5="重新检测当前环境,确认问题是否已经收敛。",K5="展开",Q5="收起",X5="查看文档",Y5="未检测到客户端调试地址",Z5="扫码连接,或填写客户端 IP / HTTP / WS 端口。",J5="客户端连通失败(多为局域网/代理/防火墙问题)",eF="请确认手机与电脑同一 Wi‑Fi/网段;关闭全局代理/关闭 TUN;代理开启 Allow LAN;检查系统防火墙是否放行 Node.js。",tF="本地调试服务不可用",nF="请确认已在项目根目录运行 `ttmg dev`,且端口未被占用。",rF="如刚改过网络或代理配置,建议回到项目根目录重新执行 `ttmg dev`。",iF="确认手机停留在调试加载页,客户端调试服务已开启,端口与加载页一致。",oF="确认手机和电脑在同一 Wi-Fi / 网段;如使用代理,开启 Allow LAN,并检查 VPN/TUN 与防火墙。",sF="确认 WS 端口正确且正在监听;若仍超时,检查防火墙、路由策略或 VPN/TUN。",aF="未发现明显异常",lF="若仍然连接失败,请将本页“复制环境信息”和报错截图发到群里协助排查。",cF="HTTP 可达但 WS 不可达:优先检查 WS 端口是否正确、客户端调试服务是否在监听该端口。",uF="若 WS 超时:多为端口被防火墙/路由策略拦截,或电脑开了全局代理/TUN 影响局域网。",dF="HTTP 与 WS 均不可达:优先检查手机与电脑是否同一 Wi‑Fi/网段(公司网络可能有 AP 隔离)。",pF="关闭全局 VPN/TUN,代理需开启 Allow LAN;检查防火墙是否放行局域网访问。",fF="仍失败时,将手机网络代理到电脑网络后重新扫码。",hF="当前未拿到客户端 HTTP 地址或端口",gF="当前未拿到客户端 WS 地址或端口",mF="待检测",yF="检测中",vF="需确认",bF="等待检测",SF="检测中...",wF="网络可达",CF="提示",_F="如果电脑能 ping 通手机但 WS 连不上,通常是端口未监听或被防火墙/策略拦截(ICMP 与 TCP/WS 条件不同)。",kF="客户端连接已断开,请重新扫码连接",PF="Node 服务连接中断,请在终端重启调试服务",TF="切换调试设备",EF="无设备连接",xF="请先连接设备后再进行调试",DF="使用 TikTok 扫码调试",OF="切换扫码设备",IF="正在初始化调试环境...",RF="通知客户端初始化调试环境...",NF="获取客户端调试环境配置中...",jF="获取客户端调试环境配置失败",LF="客户端调试环境配置获取成功",AF="客户端调试环境初始化成功,等待上传游戏资源包...",MF="客户端调试环境初始化失败",$F="初始化 JS 运行时环境中...",FF="JS 运行时环境初始化成功",zF="重新上传代码包",BF="正在上传游戏资源包...",qF="游戏资源包上传中",GF="正在传输到客户端,完成后会自动启动游戏。",WF="游戏资源包上传成功,客户端准备启动游戏...",UF="游戏资源包上传失败,请检查环境配置",HF="正在初始化游戏环境...",VF="游戏资源正在本地编译,请稍候...",KF="游戏资源编译中",QF="游戏资源已更新,是否重新上传进行调试?",XF="游戏资源更新成功!",YF="游戏环境初始化失败,请检查当前环境",ZF="正在获取游戏调试环境配置",JF="游戏环境配置获取成功",e6="游戏环境配置获取失败",t6="正在获取游戏脚本",n6="浏览器调试环境初始化成功,上传游戏资源后将自动启动游戏",r6="游戏运行环境初始化成功,准备上传资源至客户端",i6="正在上传游戏包至客户端",o6="游戏包上传成功,客户端正在加载游戏...",s6="游戏包上传失败",a6="重新上传小游戏包",l6="重新启动小游戏",c6="结束调试",u6="正在启动调试环境...",d6="本地 Node 调试服务连接失败",p6="正在连接本地 Node 调试服务...",f6="本地 Node 调试服务连接成功",h6="本地 Node 调试服务连接失败,请确认已在游戏根目录下运行 ttmg dev",g6="Node 调试服务已断开,请在终端重启调试服务",m6="客户端调试服务连接成功",y6="客户端调试服务连接失败,请重新扫码开启调试服务",v6="客户端调试服务已断开,请重新扫码连接",b6="未检测到可用于扫码的局域网 IP",S6="请确保电脑与手机连接到同一 Wi-Fi,并关闭 VPN/代理/防火墙拦截后重试;或使用手动绑定方式连接客户端调试服务。",w6="手动绑定 IP",C6="客户端调试环境启动失败,请重新扫码连接",_6="游戏脚本加载失败",k6="上传至手机",P6="暂不上传",T6="上传至平台",E6="正在扫描二维码...",x6="可切换设备扫码开启新的调试会话",D6="请确保您的 TikTok 账号已添加为调试应用的测试用户",O6="未登录",I6="启动模式名称",R6="选择启动包",N6="选择独立分包",j6="选择进入场景",L6="自定义启动参数",A6="示例:a=1&b=2",M6="扫码打开",$6="查询参数必须是字符串类型",F6="搜索",z6="推荐流直玩",B6="异形卡",q6="达人视频",G6="复访奖励 - 侧边栏",W6="推荐页广告",U6="桌面快捷方式",H6="聊天分享",V6="链接访问",K6="消息通知",Q6="首包",X6="查询参数不应包含问号(?)前缀,请只输入参数部分",Y6=`查询参数格式错误:发现空的键值对片段。请确保每个 '&' 符号两侧都有完整的 "key=value" 结构。`,Z6="独立分包",J6="自定义启动模式",e8="不能为空",t8="保存",n8="当前启动模式",r8="新建启动模式",i8="扫码使用",o8="选择调试模式",s8="远程调试",a8="真机预览",l8="真机调试",c8="应用",u8="本地 Node 调试服务配置信息获取成功",d8="获取本地调试服务配置信息失败,请检查 Node 服务是否正常启动",p8="正在加载调试环境依赖脚本资源",f8="依赖脚本资源加载成功",h8="依赖脚本资源加载失败,请重新扫码开启调试服务",g8="依赖脚本内容为空,请重新扫码开启调试服务",m8="依赖脚本资源加载并初始化成功",y8="游戏资源编译成功!请使用手机扫码调试。",v8="游戏资源编译成功!",b8="开始调试",S8="开始调试",w8="扫码连接,开始调试",C8="选择启动模式,使用 TikTok 客户端扫码即可在真机或浏览器中预览小游戏。",_8="设备已连接,调试进行中",k8="已与 TikTok 客户端建立连接,可在真机或浏览器中预览小游戏;如需切换设备,重新扫码即可开启新的调试会话。",P8="项目概览",T8="在本地调试阶段,您可以快速查看当前小游戏的基本信息,包括:游戏名称、图标、Client key、描述、整包大小、首包大小、独立分包大小、信任域名、服务条款、隐私政策等。",E8="通过提前检查这些核心信息,能够及时发现潜在问题,确保在正式发布前,项目状态符合平台要求,减少上线后的风险和返工。",x8="启动模式",D8="上传发布",O8="默认启动模式",I8="新建启动模式",R8="未超过项目大小 {{limit}} 限制",N8="未超过首包大小 {{limit}} 限制",j8="未超过独立分包大小 {{limit}} 限制",L8="超过项目大小 {{limit}} 限制",A8="超过首包大小 {{limit}} 限制",M8="超过独立分包大小 {{limit}} 限制",$8="通过设置启动模式,您可以灵活选择游戏的调试模式、启动包、进入场景以及启动参数,满足不同测试和上线需求。请根据实际需求完成相关配置,确保游戏能够正常启动并进入预期场景。",F8="3. 配置文件检查",z8="确保分包文件路径配置正确,所有路径都能正常访问,避免后续加载失败。",B8="1. 包体大小检查",q8="整个游戏包大小需控制在 {{projectSize}} 以内,首包大小不能超过 {{mainPackageSize}},独立分包大小不能超过 {{independentPackageSize}}。",G8="整个游戏包大小需控制在 {{projectSize}} 以内,无其他额外限制。",W8="2. 必接能力检查",U8="检查游戏是否已集成必要的 API 能力,保证小游戏在 TikTok 中有更好的用户体验和转化效果。",H8="配置文件检查通过",V8="包体大小检查通过",K8="包体大小检查失败",Q8="配置文件检查失败",X8="性能检查",Y8="性能检查通过",Z8="性能检查未通过",J8="查看文档",e7="展开",t7="收起",n7="游戏项目",r7="游戏首包",i7="开发者选项",o7="调试时允许请求未在平台配置的域名。",s7="使用模拟广告结果调试广告场景。",a7="支付结果走沙盒环境,便于调试支付结果相关场景。",l7="开启广告 Mock",c7="开启支付 Mock",u7="📢 发送本地调试设至客户端...",d7="确定要删除{{name}}启动模式吗?",p7="游戏名称",f7="游戏图标",h7="Client key",g7="游戏描述",m7="游戏大小",y7="首包大小",v7="独立分包大小",b7="信任域名",S7="Terms & Privacy",w7="Terms & Privacy - Terms URL",C7="Terms & Privacy - Privacy URL",_7="Terms of Service URL",k7="Privacy policy URL",P7="确保所有可能触发网络请求的域名都已添加到信任域名列表中,避免因域名未配置而导致的网络请求失败。",T7="确认 Terms & Privacy(Terms URL)已填写且有效,用户在使用游戏时需要同意相关条款。",E7="确认 Terms & Privacy(Privacy URL)已填写且有效,用户在使用游戏时需要同意相关条款。",x7="查询参数格式错误:{{pair}} 缺少等号(=)或值为空。请使用 key=value 格式,且值不能为空。",D7="查询参数格式错误:键不能为空。发现 {{pair}}",O7="查询参数中发现重复的键:{{key}}。每个键必须是唯一的。",I7="查询参数格式错误:键 {{key}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",R7="查询参数格式错误:值 {{value}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",N7="查询参数格式错误:键值对 {{pair}} 包含无效的 URL 编码字符。请使用正确的编码格式。",j7="获取游戏详情失败,请稍后重试。",L7="当前账号未登录,无法获取游戏详情。请先在控制台执行 【ttmg login】命令,使用开发者平台账号登录后,再运行 【ttmg dev】 命令以开启调试模式。",A7="你可以通过在控制台输入 `ttmg login` 命令,并使用开发者平台的账号和密码进行登录。",M7="文档",$7="快速开始",F7="API 参考",z7="错误代码参考",B7="常见问题",q7="上传",G7="取消",W7="版本说明",U7="上传成功",H7="上传失败",V7="成功上传游戏资源到平台,平台会对资源进行校验并部署,去平台查看上传后的预览版本。",K7="去平台查看",Q7="只有在命令行完成登录后,调试页面的游戏包上传功能才可使用。请先在控制台执行 `ttmg login`,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",X7="上传当前游戏包至平台",Y7="当前尚未在平台设置信任域名。只有已填写到平台列表中的域名,才允许在运行时发起网络请求;如果游戏会请求外部域名,请按需补充对应配置。",Z7="调试环境脚本初始化失败,请扫码重试",J7="游戏资源上传失败,请扫码重试",ez="当前游戏未配置 Terms & Privacy(Terms URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",tz="当前游戏未配置 Terms & Privacy(Privacy URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",nz="当前游戏未配置 Terms & Privacy(Terms URL 和 Privacy URL)。login/authorize 能力依赖这两个配置,缺失时会导致开发调试失败,请先在平台补充对应 URL。",rz="当前尚未在平台设置 Terms & Privacy(Terms URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",iz="当前尚未在平台设置 Terms & Privacy(Privacy URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",oz="当前尚未在平台配置游戏名称。请在提审前完成补充,避免审核阶段被拒审。",sz="当前尚未在平台配置游戏图标。请在提审前完成补充,避免审核阶段被拒审。",az="当前尚未在平台配置游戏描述。请确保在游戏上线前,在平台完成描述填写,以保证可以顺利发布。",lz="开始连接客户端 WebSocket 服务,👉👉👉 {{wsURL}}...",cz="客户端 WebSocket 服务连接超时,检查电脑和手机是否在同一局域网下",uz="当前账号未登录,无法获取游戏详情。请先在控制台执行 `ttmg login` 命令,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",dz="当前账号登录过期,请重新登录。",pz="当前游戏 ID {{clientKey}} 不存在,无法正常开启调试,请检查修改后重试。",fz="当前账号无权限查看 ID {{clientKey}} 游戏详情,请在开发者平台申请此游戏的开发权限后,再运行 `ttmg dev` 命令以开启调试模式。",hz="终端没有连到 TikTok 开发者平台,Trust Domain、Terms、Privacy 等平台配置无法拉取。请确认 VPN/代理已对终端生效,或配置 `ttmg config set proxy ...` 后重新启动调试。",gz="获取游戏详情失败,请稍后重试。",mz="用户静默登录",yz="激励视频广告",vz="添加桌面快捷方式",bz="获取桌面快捷方式奖励",Sz="跳转到个人主页侧边栏",wz="获取个人主页侧边栏奖励",Cz="已集成!",_z="未集成!",kz="必接能力检查通过",Pz="必接能力检查未通过",Tz="调试环境已完成初始化,在浏览器控制台中查看日志进行游戏开发与调试...",Ez="调试环境已初始化,通过客户端 vConsole 日志面板查看日志进行游戏开发与调试...",xz="开始向客户端发送游戏元数据,完成后客户端将开始启动游戏...",Dz="向客户端发送游戏元数据成功,客户端将开始启动游戏...",Oz="1. 浏览器远程调试:先在浏览器中初始化远程调试环境,客户端连接后即可开始调试。此模式下需要将代码包上传到客户端,但调试过程基于浏览器的能力进行远程调试。",Iz="2. 客户端真机预览:将本地的游戏代码上传到客户端,在真实设备上进行预览与调试,直接验证真机表现与兼容性。",Rz="手动绑定客户端调试服务地址",Nz="无效的端口号,请输入正确的端口号",jz="若扫码长时间无响应,手动绑定客户端调试服务",Lz="确认",Az="请输入手机端 IP 地址",Mz="开始上传",$z="去检查",Fz="检查网络",zz="1. 支持手动连接客户端调试服务,用于解决因手机与电脑处于不同网络/代理环境而导致的连接失败问题。",Bz="2. 手动连接客户端调试服务仅支持 TikTok Android 42.9 及以上版本;iOS 暂不支持。",qz="返回",Gz="开始连接",Wz="确认连接",Uz="请填写客户端加载页展示的 IP、HTTP 端口和 WS 端口。确认后 IDE 会立即保存并尝试连接客户端调试服务。",Hz="检测连通性",Vz="连通性检测结果",Kz="客户端 WebSocket",Qz="客户端 HTTP",Xz="可用",Yz="不可用",Zz="超时",Jz="连接失败",eB="请先填写 IP 和端口",tB="上传之前先填写当前游戏包描述",nB="展示 vConsole",rB="展示开发信息面板",iB="关闭域名校验",oB="在客户端查看 vConsole 运行日志。",sB="在客户端查看开发信息与运行统计。",aB="‼️ 检测到 {{count}} 条问题,每条已标注为「卡点」或「建议」。",lB="卡点",cB="建议",uB="当前游戏缺少基础信息:{{fields}}。",dB="标题(Name)",pB="图标(Icon)",fB="描述(Description)",hB="、",gB="当前未登录开发者账号:上传功能不可用,且网络请求可能被拦截。若需临时联调,请在开发者选项中关闭域名校验。",mB="请在提审之前完成问题处理,避免审核阶段被拒审。",yB="查看详情",vB="收起详情",bB="需要立即处理",SB="建议处理",wB="终端代理未生效",CB="账号缺少开发权限",_B="开发者登录态不可用",kB="Client Key 无法识别",PB="去申请开发权限",TB="前往开发者平台",EB="查看其他 {{count}} 条问题",xB="切换为深色主题",DB="切换为浅色主题",OB="新增功能",IB="功能优化",RB="问题修复",NB="了解如何使用",jB="更新记录",LB="有更新",AB="查看 DevTool 每个版本带来的新功能、优化与修复",MB="新增/优化功能适用 TikTok 版本",$B="Wasm 分包",FB="分包预处理",zB="收集函数",BB="代码分包",qB="回滚分包",GB="分包失败",WB="正在写入分包产物...",UB="重试",HB="正在发起分包预处理...",VB="取消分包预处理",KB="后台运行",QB="分包预处理中,需要一些时间...",XB="期间请不要修改本地游戏包体,否则会造成分包预处理失败",YB="分包预处理成功!",ZB="分包预处理失败!",JB="请点击重试",eq="下载预处理文件",tq="下载失败",nq="请点击重试",rq="下载成功",iq="下载预处理文件后,即可在本地进行代码分包。",oq="分包描述",sq="请输入分包描述",aq="开始预处理",lq="正在处理...",cq="获取下载 URL",uq="获取下载 URL 成功",dq="获取下载 URL 失败",pq="下载预处理文件成功",fq="下载预处理文件失败",hq="更新 Wasm 分包配置",gq="更新 Wasm 分包配置成功",mq="更新 Wasm 分包配置失败",yq="压缩预处理文件成功",vq="压缩预处理文件失败",bq="写入压缩预处理文件",Sq="写入压缩预处理文件成功",wq="写入压缩预处理文件失败",Cq="开始分包",_q="已收集函数数需达到总函数数的 8% 以上才能分包,请继续游玩直至覆盖首屏与核心流程",kq="当前本地项目已经支持 wasm 分包,请用 TikTok 客户端扫描二维码,开始收集函数,请支持完成加载环节、游戏教学等前期内容。",Pq="设备已连接 · 正在收集函数",Tq="请在已连接的设备上完成加载、游戏教学等前期流程,DevTool 会持续记录被调用的函数。覆盖首屏与核心流程后即可开始分包。",Eq="开始收集函数",xq="正在开启收集会话...",Dq="已恢复上次的收集进度,已收集的函数不会丢失。",Oq="Wasm 文件大小",Iq="总函数数量",Rq="当前收集函数数量",Nq="分包版本号",jq="分包处理中,可能需要一些时间,请在分包处理完成后点击下载分包。",Lq="取消分包",Aq="分包处理成功,开始获取下载结果...",Mq="重试获取下载结果",$q="获取下载结果失败,请点击重试。",Fq="分包处理成功!",zq="下载分包文件",Bq="分包下载失败,请点击重试。",qq="重试下载分包文件",Gq="分包下载成功!",Wq="本地可使用真机扫描调试二维码,体验分包后的加载流程,确认游戏无异常后,可将当前目录下的文件上传至开发者平台,进行测试和发布",Uq="正在下载安卓分包主文件...",Hq="下载安卓分包主文件成功",Vq="正在压缩安卓分包主文件...",Kq="压缩安卓分包主文件成功",Qq="正在下载安卓分包代码...",Xq="下载安卓分包代码成功",Yq="正在压缩安卓分包代码...",Zq="压缩安卓分包代码成功",Jq="正在下载 iOS 分包主文件...",eG="下载 iOS 分包主文件成功",tG="正在压缩 iOS 分包主文件...",nG="压缩 iOS 分包主文件成功",rG="正在下载 iOS 分包代码...",iG="下载 iOS 分包代码成功",oG="正在压缩 iOS 分包代码...",sG="压缩 iOS 分包代码成功",aG="正在写入分包文件...",lG="写入分包文件成功",cG="正在更新分包配置...",uG="更新分包配置成功",dG="未发现 Wasm 代码包",pG="未在项目中发现 wasmcode/[hash].webgl.wasm.code.unityweb.wasm.br 文件,请先通过游戏引擎打包项目后再进行 Wasm 分包操作。",fG="当前项目已完成 Wasm 分包,可直接压缩当前代码包后上传至平台",hG="可基于当前结果直接压缩上传;如需放弃本次分包重新开始,点下方「放弃分包」。",gG="放弃分包",mG="当前项目未开启 Wasm 分包功能",yG="当前项目未开启 Wasm 分包功能,请先在项目配置中开启后再进行操作。",vG="深度指南",bG="能力接入",SG="收集子包",wG="语言",CG="简体中文",_G="English",kG={title:b3,scanQRcodeTitle:S3,deviceConnected:w3,serverDisconnected:C3,deviceDisconnected:_3,connectStatusNode:k3,connectStatusBrowser:P3,connectStatusClient:T3,connectStatusConnected:E3,connectStatusDisconnected:x3,connectStatusFailed:D3,connectStatusUnknown:O3,connectStatusLegendTitle:I3,connectStatusLegendNode:R3,connectStatusLegendBrowser:N3,connectStatusLegendClient:j3,connectStatusLegendProto:L3,netDiagNav:A3,netDiagTitle:M3,netDiagSubtitle:$3,netDiagEntryScanNoResponse:F3,netDiagEntryTitle:z3,netDiagEntryDesc:B3,netDiagEntryAction:q3,netDiagRunAll:G3,netDiagManualConnectAndCheck:W3,netDiagManualBindTitle:U3,netDiagManualBindDesc:H3,netDiagManualBindEntry:V3,netDiagManualConnectGo:K3,netDiagSummaryTitle:Q3,netDiagSummaryIdleTitle:X3,netDiagSummaryIdleDesc:Y3,netDiagSummaryIdleHint:Z3,netDiagSummaryRunningTitle:J3,netDiagSummaryRunningDesc:e5,netDiagSummaryRunningHint:t5,netDiagSummaryMissingClientTitle:n5,netDiagSummaryMissingClientDesc:r5,netDiagSummaryNodeTitle:i5,netDiagSummaryNodeDesc:o5,netDiagSummaryNodeWsDesc:s5,netDiagSummaryClientBothTitle:a5,netDiagSummaryClientBothDesc:l5,netDiagSummaryClientWsTitle:c5,netDiagSummaryClientWsDesc:u5,netDiagSummaryHealthyTitle:d5,netDiagSummaryHealthyDesc:p5,netDiagSummaryPartialTitle:f5,netDiagSummaryPartialDesc:h5,netDiagSummaryPartialHint:g5,netDiagEnvIP:m5,netDiagEnvWsPort:y5,netDiagEnvHttpPort:v5,netDiagComputerGroup:b5,netDiagClientGroup:S5,netDiagOpenTroubleshoot:w5,netDiagOpenProxy:C5,netDiagEnvTitle:_5,netDiagEnvSectionDesc:k5,netDiagChecksTitle:P5,netDiagCheckSectionDesc:T5,netDiagCheckNodeHttp:E5,netDiagCheckNodeWs:x5,netDiagCheckClientHttp:D5,netDiagCheckClientWs:O5,netDiagSuggestTitle:I5,netDiagSuggestSectionDesc:R5,netDiagActionsTitle:N5,netDiagSuccessHint:j5,netDiagManualConnectResultSuccess:L5,netDiagManualConnectResultError:A5,netDiagManualSectionDesc:M5,netDiagNextStepTitle:$5,netDiagGuideEyebrow:F5,netDiagGuideStepsTitle:z5,netDiagActionManualConnect:B5,netDiagActionManualConnectDesc:q5,netDiagActionBackToScan:G5,netDiagActionBackToScanDesc:W5,netDiagActionRerunAfterRestart:U5,netDiagActionRerunAfterRestartDesc:H5,netDiagActionRunAllDesc:V5,netDiagExpand:K5,netDiagCollapse:Q5,netDiagOpenDoc:X5,netDiagSuggestNoClientTitle:Y5,netDiagSuggestNoClientDesc:Z5,netDiagSuggestLanTitle:J5,netDiagSuggestLanDesc:eF,netDiagSuggestNodeTitle:tF,netDiagSuggestNodeDesc:nF,netDiagSuggestNodeRestart:rF,netDiagSuggestClientDebugService:iF,netDiagSuggestLanAndProxy:oF,netDiagSuggestWsBlocked:sF,netDiagSuggestOkTitle:aF,netDiagSuggestOkDesc:lF,netDiagSuggestHttpOkWsFail1:cF,netDiagSuggestHttpOkWsFail2:uF,netDiagSuggestBothFail1:dF,netDiagSuggestBothFail2:pF,netDiagSuggestPhoneProxyFallback:fF,netDiagMissingClientHttp:hF,netDiagMissingClientWs:gF,netDiagStatusIdle:mF,netDiagStatusRunning:yF,netDiagStatusWarning:vF,netDiagCheckIdleDetail:bF,netDiagCheckRunningDetail:SF,netDiagCheckReachableDetail:wF,netDiagQuickHintTitle:CF,netDiagQuickHintDesc:_F,clientDisconnected:kF,nodeDisconnected:PF,switchDevice:TF,disConnectionStatusTitle:EF,disConnectionStatusDesc:xF,scanQRCode:DF,switchScanDevice:OF,startDebug:IF,initClientEnv:RF,fetchClientDevConfig:NF,fetchClientDevConfigFailed:jF,fetchClientDevConfigSuccess:LF,initClientEnvSuccess:AF,initClientEnvFailed:MF,startInitJSDevEnv:$F,initJSDevEnvSuccess:FF,uploadBtn:zF,uploadStart:BF,uploadProcess:qF,uploadProcessDesc:GF,uploadSuccess:WF,uploadError:UF,setupDevEnv:HF,gameResourceCompiling:VF,gameResourceCompilingTitle:KF,gameResourceChange:QF,gameResourceUpdated:XF,devEnvSetupError:YF,getDevEnvStart:ZF,getDevEnvSuccess:JF,setDevEnvFailed:e6,getDevScriptsStart:t6,setDevScriptsSuccess:n6,devEnvSetupSuccess:r6,uploadGameStart:i6,uploadGameSuccess:o6,uploadGameFailed:s6,reUploadGame:a6,relaunchGame:l6,closeGame:c6,loading:u6,nodeServerConnectedFailed:d6,nodeServerStartConnect:p6,nodeServerConnectedSuccess:f6,nodeServerStartError:h6,nodeServerDisconnect:g6,clientConnectedSuccess:m6,clientServerStartError:y6,clientServerDisconnected:v6,networkNoLanIPTitle:b6,networkNoLanIPDesc:S6,networkNoLanIPAction:w6,startDebugFailed:C6,getDevScriptsFailed:_6,uploadToClient:k6,notUpload:P6,uploadToPlatform:T6,"uploadGame.pageTitle":"上传游戏","uploadGame.pageDesc":"上传是主流程,预检作为提交前的风险兜底。只有存在问题时才重点提示,避免首屏被检查结果打断。","uploadGame.guide.title":"上传发布","uploadGame.guide.desc":"确认预检风险,补充版本说明后上传至平台。平台生成预览版本后,可继续扫码验证构建结果。","uploadGame.guide.precheck.title":"代码预检","uploadGame.guide.precheck.desc":"提前发现包体、API、配置和性能风险","uploadGame.guide.version.title":"版本说明","uploadGame.guide.version.desc":"补充本次变更,方便区分上传记录","uploadGame.guide.preview.title":"平台预览","uploadGame.guide.preview.desc":"上传后扫码验证平台侧生成结果","uploadGame.packageSizeDoc":"查看包体限制说明","uploadGame.checkTitle":"代码预检","uploadGame.recheck":"重新检查","uploadGame.uploadTitle":"上传游戏包","uploadGame.checkWarn":"代码预检存在未通过项,建议修复后再上传,以避免审核驳回。","uploadGame.detailTitle":"预检详情","uploadGame.detailDesc":"需要定位具体配置、API、包体或性能问题时再展开查看。","uploadGame.showDetails":"查看预检详情","uploadGame.hideDetails":"收起预检详情","uploadGame.loginNoticeTitle":"先完成开发者登录","uploadGame.readyTitle":"预检已通过,可直接上传","uploadGame.readyDesc":"当前未发现阻塞性问题,建议补充版本描述后直接提交平台。","uploadGame.issueTitle":"预检提示","uploadGame.issueDesc":"下方仅展示关键摘要,完整结果可按需展开查看。","uploadGame.checkFetchFailed":"预检结果获取失败,请重新检查后再决定是否上传。","uploadGame.issueCountSuffix":" 个问题","uploadGame.groupPassSuffix":" 项检查通过","uploadGame.status.loginReady":"已登录开发者账号","uploadGame.status.loginRequired":"需先登录后上传","uploadGame.status.checking":"预检检查中","uploadGame.status.checkFailed":"预检结果获取失败","uploadGame.status.hasIssues":"预检存在问题","uploadGame.status.ready":"预检通过","uploadGame.group.performance":"性能","uploadGame.group.size":"包体","uploadGame.group.api":"API","uploadGame.group.config":"配置","uploadGame.unknownIssue":"存在待确认问题","uploadGame.uploadDescHint":"简单说明本次变更,方便后续识别。","uploadGame.progress.title":"正在上传并等待平台处理","uploadGame.progress.desc":"代码包已提交,平台正在进行校验和部署,请稍候。","uploadGame.progress.assetTitle":"平台正在处理代码包","uploadGame.progress.assetDesc":"代码包已上传成功,平台正在处理中,请稍候…","uploadGame.progress.previewTitle":"正在获取平台预览二维码","uploadGame.progress.previewDesc":"上传已成功,正在轮询平台预览二维码,请稍候。","uploadGame.progress.statusPending":"处理中","uploadGame.progress.badgeUploading":"上传中","uploadGame.progress.badgeChecking":"校验中","uploadGame.progress.badgePreview":"生成预览码","uploadGame.progress.step1":"打包并上传代码包","uploadGame.progress.step2":"等待平台处理完成","uploadGame.progress.step3":"获取平台预览二维码","uploadGame.success.title":"上传完成","uploadGame.success.readyTitle":"平台预览已就绪","uploadGame.success.desc":"接口已返回成功结果。你可以扫码或前往平台继续查看本次上传后的版本信息。","uploadGame.success.pendingDesc":"上传已成功,但预览二维码暂未返回。你可以先前往平台查看,或稍后重新上传触发新一轮获取。","uploadGame.success.qrHint":"扫码查看平台结果页","uploadGame.success.noQr":"当前暂无可展示的二维码","uploadGame.success.uploadAnother":"继续上传新版本","uploadGame.failure.title":"平台预览尚未就绪","uploadGame.failure.retry":"重新上传","uploadGame.failure.missingAssetId":"上传未返回有效的版本标识,无法继续校验平台处理结果,请重新上传。","uploadGame.failure.assetTimeout":"平台处理代码包超时,请稍后在平台查看处理结果。","uploadGame.failure.assetStatus":"平台尚未完成代码包处理,暂时无法生成预览二维码,请稍后重试。","uploadGame.failure.previewTimeout":"平台已处理完成,但暂未拿到预览二维码,请稍后重试。","uploadGame.record.title":"预览版本记录","uploadGame.record.desc":"集中查看最近上传到平台的预览版本,并在这里继续扫码验证。","uploadGame.record.refresh":"刷新记录","uploadGame.record.loading":"正在加载历史记录...","uploadGame.record.empty":"当前还没有可展示的预览版本记录。","uploadGame.record.latest":"最新上传","uploadGame.record.selectPlaceholder":"选择一个历史版本后再查看详情","uploadGame.record.noDesc":"开发者未填写版本描述","uploadGame.record.detailTitle":"版本 {{version}}","uploadGame.record.detailDesc":"右侧保留当前版本的二维码和关键信息,方便持续回看。","uploadGame.record.previewHint":"扫码预览当前版本","uploadGame.record.previewLoading":"正在获取该版本的预览二维码...","uploadGame.record.previewUnavailable":"暂未获取到该版本的预览二维码","uploadGame.record.pendingDesc":"该版本仍在平台处理中,可稍后刷新记录继续查看。","uploadGame.record.failedDesc":"该版本当前状态异常,建议前往平台确认处理结果。","uploadGame.record.metaUploadedAt":"上传时间","uploadGame.record.metaAssetId":"Asset ID","uploadGame.record.metaSource":"来源分组","uploadGame.record.metaSize":"包体大小","uploadGame.record.metaUnknown":"-","uploadGame.record.loadFailed":"历史记录加载失败,请稍后重试。","uploadGame.record.state.ready":"可预览","uploadGame.record.state.pending":"处理中","uploadGame.record.state.failed":"异常","uploadGame.record.source.preview":"预览版本","uploadGame.record.source.review":"审核中","uploadGame.record.source.live":"线上版本","uploadGame.record.source.other":"其他记录",scanning:E6,scanQRCodeChange:x6,scanQRCodeDesc:D6,"homeSession.title":"当前调试会话","homeSession.modeLabel":"调试模式","homeSession.entryLabel":"启动入口","homeSession.domainLabel":"域名策略","homeSession.mode.clientPreviewDesc":"真机运行时,重点看 vConsole、端侧能力和真机网络。","homeSession.mode.remoteDebugDesc":"浏览器运行时,适合看 JS 逻辑和控制台,不覆盖全部端侧能力。","homeSession.domainCheck.disabled":"域名校验已关闭","homeSession.domainCheck.disabledDesc":"临时联调更宽松,上线前仍需补齐平台配置。","homeSession.domainCheck.enabledWithDomains":"{{count}} 个 Trust Domain","homeSession.domainCheck.enabledWithDomainsDesc":"网络请求会按平台配置校验。","homeSession.domainCheck.enabledNoDomains":"未配置 Trust Domain","homeSession.domainCheck.enabledNoDomainsDesc":"若游戏请求外部域名,运行时可能被拦截。","homeSession.chip.domainCheckOn":"域名校验开启","homeSession.chip.domainCheckOff":"域名校验关闭","homeSession.chip.vConsoleOn":"vConsole 开启","homeSession.chip.vConsoleOff":"vConsole 关闭","homeSession.chip.devPanelOn":"开发信息面板开启","homeSession.chip.devPanelOff":"开发信息面板关闭","homeSession.diff.clientPreviewTitle":"真机预览","homeSession.diff.clientPreviewDesc":"更接近客户端运行时;接口、支付、广告或域名异常时,优先看手机 vConsole 和开发信息面板。","homeSession.diff.remoteDebugTitle":"远程调试","homeSession.diff.remoteDebugDesc":"更适合快速看 JS 逻辑;真机能力、网络策略和端侧面板仍需切到真机预览验证。","homeSession.risk.domainTitle":"域名风险","homeSession.risk.domainDesc":"当前开启域名校验但没有 Trust Domain;如果游戏请求外部域名,可能出现网络请求失败。",notLogin:O6,launchModeName:I6,selectLaunchPkg:R6,selectIndependentPkg:N6,selectScene:j6,launchQueries:L6,launchQueriesDesc:A6,scene_scan_qrcode:M6,queriesStringMustBeString:$6,scene_search:F6,scene_fyf_promotion_direct_feed_play:z6,scene_fyf_card:B6,scene_anchor:q6,scene_center:G6,scene_ad:W6,scene_shortcut:U6,scene_sharing:H6,scene_link:V6,scene_inbox:K6,mainPackage:Q6,queriesStringNoQuestionMark:X6,queriesStringEmptyPair:Y6,independentPackage:Z6,customizeLaunchMode:J6,notEmpty:e8,save:t8,delete:"删除",selectLaunchMode:n8,createNewMode:r8,saveAndUse:i8,selectDebugMode:o8,browserDebugMode:s8,clientPreviewMode:a8,clientDebugMode:l8,use:c8,getDevGameConfigSuccess:u8,getDevGameConfigFailed:d8,startLoadDevScripts:p8,loadDevScriptsSuccess:f8,loadDevScriptsFailed:h8,loadDevScriptsEmpty:g8,loadDevScriptsInitSuccess:m8,gameResourceCompileSuccess:y8,gameResourceCompileSuccessTitle:v8,scanQRCode2Debug:b8,homeHeroEyebrow:S8,homeHeroTitle:w8,homeHeroSubtitle:C8,homeHeroTitleConnected:_8,homeHeroSubtitleConnected:k8,projectInfo:P8,projectInfoDesc:T8,"projectInfo.summary":"查看当前小游戏的基础信息、包体状态和平台配置。",projectInfoDescTip:E8,"projectInfo.section.basic":"基础信息","projectInfo.section.package":"包体状态","projectInfo.section.platform":"平台配置","projectInfo.error.guideTitle":"完成以下准备后,即可继续使用当前模块","projectInfo.error.stepTitle":"如何恢复使用","projectInfo.error.helpTitle":"补充说明","projectInfo.error.login.title":"当前还无法拉取平台配置","projectInfo.error.login.desc":"本地项目已经启动,但当前调试会话还没有可用的开发者登录态。先完成登录,再回到这里继续当前模块。","projectInfo.error.login.stepLogin":"在命令行执行 `ttmg login`,使用开发者平台账号完成登录。","projectInfo.error.login.stepRestart":"登录成功后,重新执行 `ttmg dev`,让当前调试会话带上最新登录态。","projectInfo.error.login.stepProxy":"如果在国内网络环境下登录失败,优先检查代理或网络设置,再重试登录。","projectInfo.error.permission.title":"当前账号暂无此游戏开发权限","projectInfo.error.permission.desc":"项目本地环境已经可用,但当前账号没有这个游戏的开发权限,无法读取平台配置,也无法执行上传发布等依赖平台权限的操作。","projectInfo.error.permission.stepCheckAccount":"先确认当前执行 `ttmg login` 的账号是否就是目标游戏的开发者账号。","projectInfo.error.permission.stepApply":"如果账号无权限,请先在开发者平台申请该游戏的开发权限。","projectInfo.error.permission.stepRestart":"权限开通后,重新执行 `ttmg dev` 进入新的调试会话。","projectInfo.error.network.title":"终端代理未生效,平台接口请求失败","projectInfo.error.network.desc":"本地调试服务已启动,但 CLI 没有连到 TikTok 开发者平台。此时 Trust Domain、Terms、Privacy 等平台配置都可能拉不到;常见原因是 VPN/代理只对浏览器生效,终端请求没有走代理。","projectInfo.error.network.stepCheck":"如果浏览器能打开开发者平台,但 `ttmg dev` 无法拉取项目概览、信任域名或 Terms & Privacy,优先按终端代理处理。","projectInfo.error.network.stepProxy":"执行 `ttmg config set proxy http://127.0.0.1:7890`,把端口替换为本机代理工具提供的 HTTP 端口。","projectInfo.error.network.stepRestart":"重新执行 `ttmg dev`,再回到当前模块继续操作。","projectInfo.error.general.title":"当前模块暂时不可用","projectInfo.error.general.desc":"这通常是平台数据暂时不可用、项目信息异常,或当前调试上下文尚未准备完成。","projectInfo.error.general.stepCheck":"先确认当前项目的 Client key、登录账号与调试命令是否一致。","projectInfo.error.general.stepRetry":"修正后重新执行 `ttmg dev`,再返回此页面继续操作。","projectInfo.error.commandLogin":"登录命令","projectInfo.error.commandRestart":"重启调试命令","projectInfo.error.commandProxy":"代理命令示例","projectInfo.error.commandProxyHint":"以上地址和端口仅为示例,请替换成你本地代理工具实际提供的代理地址。","projectInfo.error.helpLoginDesc":"国内开发者在登录阶段更常见的问题并不是账号本身,而是网络代理、办公网络策略或终端环境导致无法正常完成登录。遇到这类情况时,优先按照网络与代理排查文档处理,通常比重复尝试登录更有效。","projectInfo.error.helpPermissionDesc":"这通常不是本地工程问题。请先确认 `ttmg login` 使用的账号是否属于目标游戏,并在开发者平台补齐该游戏的开发权限。","projectInfo.error.helpNetworkDesc":"这类问题不是 Trust Domain 真的没配,也不一定是开发权限问题,而是 CLI 进程出网没有走代理。只打开 VPN 客户端通常不够,需要把代理地址写进 ttmg 配置。","projectInfo.error.helpGeneralDesc":"如果上面的步骤都确认无误,仍然无法使用当前模块,可以先回到命令行重新启动调试,再进一步排查项目信息是否配置正确。","projectInfo.error.openProxyDoc":"查看网络/代理登录排查","basicDebugGuide.bannerTitle":"当前未检测到开发者登录态","basicDebugGuide.bannerDesc":"这不会阻断最基础的扫码调试链路。若 CLI 因网络原因暂时无法登录,你仍可继续本地调试、切换启动模式,并排查连接问题。","basicDebugGuide.title":"未登录也可以继续基础扫码调试","basicDebugGuide.desc":"把这里理解成一个受限模式:平台态能力会受影响,但本地扫码调试、启动模式与连接诊断仍然可用。建议先继续完成基础联调,再按网络/代理指引恢复登录。","basicDebugGuide.actionScan":"前往扫码调试","basicDebugGuide.actionNetwork":"打开网络诊断","basicDebugGuide.actionProxy":"查看网络/代理登录排查","basicDebugGuide.availableTitle":"当前仍可使用","basicDebugGuide.availableDesc":"下面这些能力依赖的是本地调试服务与 schema,本身不要求你已经拿到开发者平台登录态。","basicDebugGuide.available.scan.title":"扫码调试","basicDebugGuide.available.scan.desc":"继续使用当前二维码在手机端拉起本地调试,验证基础运行链路是否正常。","basicDebugGuide.available.launch.title":"启动模式","basicDebugGuide.available.launch.desc":"仍可切换 scene、启动包与 queries,模拟不同入口与调试参数。","basicDebugGuide.available.preview.title":"浏览器预览 / 客户端预览","basicDebugGuide.available.preview.desc":"继续在浏览器或客户端之间切换基础调试模式,验证包体逻辑与页面行为。","basicDebugGuide.available.network.title":"网络诊断","basicDebugGuide.available.network.desc":"当扫码无响应、局域网不可达或代理环境复杂时,可先在项目内完成自检。","basicDebugGuide.available.manual.title":"手动连接","basicDebugGuide.available.manual.desc":"如果扫码链路不可用,仍可尝试手动绑定客户端调试服务地址继续联调。","basicDebugGuide.lockedTitle":"登录后才能完整使用","basicDebugGuide.lockedDesc":"这些能力会主动请求开发者平台或依赖平台侧资源,没有 CLI 登录态时会被限制。","basicDebugGuide.locked.project.title":"项目概览","basicDebugGuide.locked.project.desc":"无法稳定拉取平台侧的基础信息、Terms、Privacy 与信任域名配置。","basicDebugGuide.locked.upload.title":"上传发布","basicDebugGuide.locked.upload.desc":"无法上传新版本、拉取预览版本记录,或生成平台侧预览二维码。","basicDebugGuide.locked.platform.title":"平台态能力验证","basicDebugGuide.locked.platform.desc":"例如登录、授权、支付、直玩卡等依赖平台资源的能力,联调会不完整或直接失败。","basicDebugGuide.stepsTitle":"推荐操作顺序","basicDebugGuide.stepsDesc":"如果你的目标只是继续推进基础扫码调试,建议按下面顺序操作;若需要平台态能力,再回头恢复 CLI 登录。","basicDebugGuide.step1":"先继续使用扫码调试、启动模式和客户端预览,把本地包体链路跑通。","basicDebugGuide.step2":"如果扫码本身有问题,先用网络诊断或手动连接定位,不要把所有问题都误判成登录问题。","basicDebugGuide.step3":"需要恢复平台态能力时,再优先处理网络/代理,必要时先配置代理后重试登录。","basicDebugGuide.step4":"登录成功后重新执行 `ttmg dev`,回到项目内解锁项目概览、上传发布和平台态能力验证。","basicDebugGuide.commandProxy":"代理命令示例","basicDebugGuide.commandProxyHint":"以上地址和端口仅为示例,请替换成你本地代理工具实际提供的代理地址。","basicDebugGuide.commandLogin":"登录命令","basicDebugGuide.commandDev":"重启调试命令","basicDebugGuide.entryTitle":"CLI 登录失败时,仍可继续基础扫码调试","basicDebugGuide.entryDesc":"先看可用能力与受限边界,再决定是继续联调,还是回头处理网络/代理登录问题。","basicDebugGuide.entryAction":"打开基础调试指南",launchMode:x8,codePreCheck:D8,normalLaunchMode:O8,createdLaunchMode:I8,notExceedSizeLimit:R8,notExceedMainPkgSizeLimit:N8,notExceedIndependentPkgSizeLimit:j8,exceedSizeLimit:L8,exceedMainPkgSizeLimit:A8,exceedIndependentPkgSizeLimit:M8,launchModeDesc:$8,"launchMode.currentDesc":"选择已有配置,或切换到新建模式后重新配置。","launchMode.configDesc":"设置启动包、入口场景和启动参数,保存后回到首页扫码使用。",configFileCheck:F8,gameJsonCheckDesc:z8,pkgSizeCheckDesc:B8,commonPkgSizeCheckDescTip:q8,unityPkgSizeCheckDescTip:G8,mandatoryApiCheck:W8,mandatoryApiCheckDesc:U8,checkConfigPassed:H8,checkPkgSizePassed:V8,checkPkgSizeFailed:K8,checkConfigFailed:Q8,performanceCheck:X8,checkPerformancePassed:Y8,checkPerformanceFailed:Z8,viewDoc:J8,expandCheckDetail:e7,closeCheckDetail:t7,gameProject:n7,gameMainPackage:r7,devOptions:i7,devOptionsDomainCheckDesc:o7,debugSettingAdMockDesc:s7,debugSettingIAPMockDesc:a7,debugSettingAdMock:l7,debugSettingIAPMock:c7,sendLocalDebugSetting:u7,deleteLaunchModeConfirm:d7,gameName:p7,gameIcon:f7,gameID:h7,gameDesc:g7,gameSize:m7,gameMainPackageSize:y7,gameIndependentPackageSize:v7,gameTrustDomains:b7,gameTermsAndPrivacy:S7,gameServiceAgreement:w7,gamePrivacyPolicy:C7,termsLabel:_7,privacyLabel:k7,gameTrustDomainsDesc:P7,gameServiceAgreementDesc:T7,gamePrivacyPolicyDesc:E7,"projectInfo.configSummary.title":"平台配置待补齐","projectInfo.configSummary.desc":"以下配置来自开发者平台。调试阶段可以继续查看,提审或验证平台能力前请先补齐。","projectInfo.configSummary.count":"{{count}} 项待补","projectInfo.configSummary.reviewGroup":"提审基础信息","projectInfo.configSummary.runtimeGroup":"运行配置","projectInfo.configSummary.item.icon":"游戏图标","projectInfo.configSummary.item.name":"游戏名称","projectInfo.configSummary.item.description":"游戏描述","projectInfo.configSummary.item.domain":"信任域名","projectInfo.configSummary.item.terms":"Terms URL","projectInfo.configSummary.item.privacy":"Privacy URL","projectInfo.configSummary.reviewHint":"提审前补齐","projectInfo.configSummary.domainHint":"请求外部域名前补齐","projectInfo.configSummary.termsHint":"登录/授权前补齐","projectInfo.configSummary.privacyHint":"授权和合规流程依赖","projectInfo.status.missing":"未配置","projectInfo.status.reviewBeforeSubmit":"提审前补齐","projectInfo.status.beforeRelease":"上线前补齐","projectInfo.status.domainRequired":"外部请求前补齐","projectInfo.status.authRequired":"登录/授权前补齐","projectInfo.logoMissingShort":"图标未配置",queriesStringMissingEqual:x7,queriesStringEmptyKey:D7,queriesStringDuplicateKey:O7,queriesStringInvalidKeyChars:I7,queriesStringInvalidValueChars:R7,queriesStringInvalidEncoding:N7,getDevGameDetailFailed:j7,getDevGameDetailNotLogin:L7,notLoginTip:A7,docs:M7,quickStart:$7,jsApiList:F7,errorReference:z7,faq:B7,upload:q7,cancel:G7,gameAssetDescription:W7,uploadPlatformSuccess:U7,uploadPlatformFailed:H7,uploadPlatformDesc:V7,viewOnPlatform:K7,loginToUpload:Q7,uploadGamePackageTip:X7,trustDomainEmptyTip:Y7,scriptsSetupFailed:Z7,resourcesSetupFailed:J7,policyDependencyTermsRequired:ez,policyDependencyPrivacyRequired:tz,policyDependencyTermsPrivacyRequired:nz,termsOfServiceEmptyTip:rz,privacyPolicyEmptyTip:iz,gameNameEmptyTip:oz,gameIconEmptyTip:sz,gameDescEmptyTip:az,startConnectClientWS:lz,clientConnectTimeout:cz,gameDetailNotLogin:uz,gameLoginExpired:dz,getDevGameDetailNotFound:pz,gameDetailNoPermission:fz,gameDetailNetworkProxyBlocked:hz,gameDetailServerError:gz,login:mz,createRewardedVideoAd:yz,addShortcut:vz,getShortcutMissionReward:bz,startEntranceMission:Sz,getEntranceMissionReward:wz,integrated:Cz,notIntegrated:_z,checkApiSuccess:kz,checkApiFailed:Pz,debugEnvSetupSuccess:Tz,clientPreviewEnvSetupSuccess:Ez,startToSendMetaToClient:xz,sendMetaToClientSuccess:Dz,browserRemoteDebugDesc:Oz,clientRealPreviewDesc:Iz,"debug.scan.tips":"在用 TikTok 扫码调试前,你可以选择以下不同的调试模式:","debug.mode.browser.title":"浏览器远程调试","debug.mode.browser.point.logic":"游戏逻辑在浏览器中运行","debug.mode.browser.point.devtools":"可在浏览器环境查看日志、断点调试","debug.mode.browser.point.preview":"在客户端同步查看游戏画面效果","debug.mode.client.title":"客户端真机预览","debug.mode.client.supportVersion":"TikTok iOS >=42.7,TikTok Android >=42.5","debug.mode.client.point.logic":"游戏逻辑在客户端(真机)中运行","debug.mode.client.point.vconsole":"通过 vConsole 查看运行日志","debug.mode.client.point.preview":"在真机上真实还原并预览游戏效果","debug.mode.custom.tip":"如果需要更灵活的配置,你还可以新建自定义启动模式,以满足特定的调试与预览需求。","debug.guide.header":"调试模式简介","debug.guide.manualBindIP":"手动绑定手机端 IP 地址",manualBindClientDebugServiceTitle:Rz,"debug.guide.manualBindIPInvalid":"无效的 IP 地址,请输入正确的 IP 地址",invalidPort:Nz,scanQrcodeNoResponse:jz,confirm:Lz,manualBindIPPlaceholder:Az,"debug.guide.manualBindIPDesc1":"1. 请确认手机与电脑在同一局域网下,若不在同一局域网下,请先连接至同一局域网;","debug.guide.manualBindIPDesc2":"2. 手动输入客户端加载页提供的调试服务地址和端口进行连接","debug.guide.manualBindIPDesc3":"3. 只支持 Android 42.9 及以上版本,iOS 暂不支持",startUpload:Mz,gotoCheck:$z,checkNetworkTitle:Fz,manualBindIPInfo1:zz,manualBindIPInfo2:Bz,back:qz,manualConnectStart:Gz,manualConnectConfirm:Wz,manualConnectDialogDesc:Uz,connectivityCheck:Hz,connectivityCheckTitle:Vz,connectivityCheckWS:Kz,connectivityCheckHTTP:Qz,connectivityOK:Xz,connectivityNotOK:Yz,connectivityTimeout:Zz,connectivityFailed:Jz,connectivityMissingParams:eB,needDesc:tB,debugSettingVConsole:nB,debugSettingDevInfoPanel:rB,debugSettingDomainCheck:iB,debugSettingEnableVconsoleDesc:oB,debugSettingEnableDevInfoPanelDesc:sB,topErrorSummary:aB,topErrorTagRequired:lB,topErrorTagSuggested:cB,topBasicInfoMissing:uB,topBasicInfoNameField:dB,topBasicInfoIconField:pB,topBasicInfoDescriptionField:fB,topBasicInfoFieldJoiner:hB,topLoginStatusWarning:gB,topErrorSuggestedActionTip:mB,topErrorViewDetails:yB,topErrorHideDetails:vB,topErrorTitleRequired:bB,topErrorTitleSuggested:SB,topErrorTitleNetworkProxy:wB,topErrorTitlePermission:CB,topErrorTitleLogin:_B,topErrorTitleProjectNotFound:kB,topErrorCtaApplyPermission:PB,topErrorCtaOpenPortal:TB,topErrorMoreItems:EB,themeToggleToDark:xB,themeToggleToLight:DB,changelogFeature:OB,changelogOptimize:IB,changelogBugfix:RB,changelogLink:NB,changelog:jB,changelogNewTag:LB,changelogTip:AB,changelogTarget:MB,wasmSplit:$B,"wasmSplit.disabled.notLoggedIn":"请先在终端执行 `ttmg login` 完成开发者账号登录,再使用 Wasm 分包功能。","wasmSplit.disabled.networkProxy":"当前终端无法连到 TikTok 开发者平台。请先配置终端代理并重新执行 `ttmg dev`,再使用 Wasm 分包功能。","wasmSplit.disabled.noPermission":"当前账号没有该游戏的开发权限,请到开发者平台申请此游戏的开发权限后,再使用 Wasm 分包功能。",splitPrepare:FB,splitCollect:zB,splitCode:BB,"splitPrepare.desc":"提交分包描述,启动构建任务","splitCollect.desc":"扫码进入游戏,录制函数调用","splitCode.desc":"服务端生成主包与子包产物",rollback:qB,"wasmSplit.subtitle":"将 Unity Wasm 代码拆分为按需加载的子包,缩小首屏体积,提升冷启表现。","wasmSplit.recommended":"推荐","wasmSplit.strategy.title":"选择分包策略","wasmSplit.strategy.subtitle":"决定接下来在哪里执行 Wasm 拆分;可在每次预处理前重新选择。","wasmSplit.mode.local.title":"本地分包","wasmSplit.mode.local.desc":"在本机工程里完成拆分,不依赖远端服务,适合内网开发。","wasmSplit.mode.remote.title":"远程分包","wasmSplit.mode.remote.desc":"使用 Portal 远端拆分服务,本机更轻、产物更稳,推荐线上版本使用。","wasmSplit.stage.loading":"初始化","wasmSplit.stage.prepare":"准备中","wasmSplit.stage.collect":"收集中","wasmSplit.stage.split":"分包中","wasmSplit.stage.splitted":"已分包","wasmSplit.stage.rollback":"回滚","wasmSplit.stage.error":"异常","wasmSplit.requirements.title":"分包要求","wasmSplit.requirements.account":"手机 TikTok 当前需登录非 US 地区用户账号;US 账号无法收集函数。","wasmSplit.requirements.unityPlugin":"开始分包前,请更新 Unity 最新插件。","wasmSplit.requirements.unityPluginLink":"查看文档","wasmSplit.help.loading.title":"正在初始化","wasmSplit.help.loading.line1":"读取当前游戏的分包配置,请稍候。","wasmSplit.help.prepare.title":"预处理 · 接下来会发生什么","wasmSplit.help.prepare.line1":"提交后将启动一次构建任务,把 Unity Wasm 拆分准备好。","wasmSplit.help.prepare.line2":"通常耗时 3 - 5 分钟,可在阶段中切换到其他页面,任务会在后台继续。","wasmSplit.help.collect.title":"收集函数 · 用真机录制","wasmSplit.help.collect.line1":"用手机扫码进入游戏,玩一遍主流程,IDE 会自动记录被调用的函数。","wasmSplit.help.collect.line2":"收集越完整,最终分包的精度越高。","wasmSplit.help.collect.line3":"扫码前请确认手机 TikTok 使用非 US 地区用户账号,并已更新 Unity 最新插件;US 账号无法收集函数。","wasmSplit.help.split.title":"代码分包 · 正在生成","wasmSplit.help.split.line1":"后端根据收集到的函数集合生成主包与子包。","wasmSplit.help.split.line2":"完成后可在「开始调试」中直接试跑分包后的版本。","wasmSplit.help.rollback.title":"回滚到上一个版本","wasmSplit.help.rollback.line1":"本次分包将被撤销,工程恢复为未拆分的状态。","wasmSplit.help.splitted.title":"已完成分包","wasmSplit.help.splitted.line1":"当前工程已经做过一次 Wasm 分包,可直接压缩上传;如需重做,点「放弃分包」后重新开始。","wasmSplit.help.error.title":"出现异常","wasmSplit.help.error.line1":"请按提示重试,或返回首页确认当前游戏的状态。","wasmSplit.meta.stage":"当前阶段","wasmSplit.meta.mode":"分包模式","wasmSplit.meta.engine":"引擎","wasmSplit.meta.game":"游戏","wasmSplit.meta.wasmSize":"WASM 大小","wasmSplit.meta.wasmMd5":"WASM MD5","wasmSplit.currentMode":"当前分包模式","wasmSplit.initializingEnv":"正在初始化分包环境","wasmSplit.empty.unityOnly.title":"仅对 Unity 引擎可用","wasmSplit.empty.unityOnly.desc":"当前项目不是 Unity 引擎,Wasm 分包仅对 Unity 游戏开放。请切换到 Unity 项目后再访问本页面。","wasmSplit.empty.backHome":"回到首页","wasmSplit.empty.needDevice.title":"需要先连接设备并选择游戏","wasmSplit.empty.needDevice.desc":"Wasm 分包依赖当前小游戏的 Wasm 包体与登录态。先在「开始调试」扫码连接客户端、选定游戏后,再回到这里开始分包流程。","wasmSplit.empty.connectDevice":"去连接设备","wasmSplit.splitDoneToast":"分包完成,本次共收集 {{count}} 个函数","rollback.rollbacking":"回滚中...","rollback.backgroundRun":"后台进行","rollback.success":"回滚成功","rollback.close":"关闭","rollback.failed":"回滚失败","rollback.retry":"重试","collect.sessionClosed":"收集会话已关闭(可能是超时或被其他端占用)。请重新点击「开始分包」以恢复收集。","collect.startFailed":"开始收集失败,请重试","collect.requirements.title":"扫码前确认","collect.requirements.desc":"手机 TikTok 需登录非 US 地区用户账号,并已更新 Unity 最新插件;US 账号无法收集函数。","collect.requirements.link":"查看文档",splitFailed:GB,writingSplitResult:WB,retry:UB,startingPrepare:HB,cancelPrepare:VB,backgroundRun:KB,preparingSplit:QB,warningDuringPreparing:XB,"remotePreparing.title":"远程构建任务进行中,需要一些时间...","remotePreparing.eta":"已提交 Portal 云端构建,通常耗时 3 - 5 分钟,可后台运行;期间请勿修改本地游戏包体。",preparingSplitSuccess:YB,preparingSplitFailed:ZB,retryPrepare:JB,downloadPreparedWasmCode:eq,downloadFailed:tq,retryDownload:nq,downloadSuccess:rq,downloadPreparedWasmCodeDesc:iq,splitDesc:oq,inputSplitDesc:sq,startPrepare:aq,processing:lq,fetchDownloadUrl:cq,fetchDownloadUrlSuccess:uq,fetchDownloadUrlFailed:dq,downloadPreparedWasmCodeSuccess:pq,downloadPreparedWasmCodeFailed:fq,updateWasmSplitConfig:hq,updateWasmSplitConfigSuccess:gq,updateWasmSplitConfigFailed:mq,compressPreparedWasmCodeSuccess:yq,compressPreparedWasmCodeFailed:vq,writeCompressPreparedWasmCode:bq,writeCompressPreparedWasmCodeSuccess:Sq,writeCompressPreparedWasmCodeFailed:wq,startSplit:Cq,cannotSplitTip:_q,collectDesc:kq,collectConnectedTitle:Pq,collectConnectedDesc:Tq,startCollect:Eq,startingCollect:xq,resumedCollectSession:Dq,wasmSize:Oq,totalFuncCount:Iq,collectedFuncCount:Rq,splitVersion:Nq,splittingDesc:jq,cancelSplit:Lq,getSplitResult:Aq,retryGetSplitResult:Mq,getSplitResultFailed:$q,splitSuccess:Fq,downloadSplitResult:zq,downloadSplitResultFailed:Bq,retryDownloadSplitResult:qq,downloadSplitResultSuccess:Gq,downloadSplitResultTip:Wq,start_download_android_main_wasm:Uq,download_android_main_wasm_done:Hq,start_compress_android_main_wasm:Vq,compress_android_main_wasm_done:Kq,start_download_android_sub_wasm_code:Qq,download_android_sub_wasm_code_done:Xq,start_compress_android_sub_wasm_code:Yq,compress_android_sub_wasm_code_done:Zq,start_download_ios_main_wasm:Jq,download_ios_main_wasm_done:eG,start_compress_ios_main_wasm:tG,compress_ios_main_wasm_done:nG,start_download_ios_sub_wasm_code:rG,download_ios_sub_wasm_code_done:iG,start_compress_ios_sub_wasm_code:oG,compress_ios_sub_wasm_code_done:sG,start_write_splited_wasm_br:aG,write_splited_wasm_done:lG,start_update_wasm_split_config:cG,update_wasm_split_config_done:uG,noWasmCode:dG,noWasmCodeDesc:pG,hasSplitedTitle:fG,hasSplitedDesc:hG,hasSplitedDiscard:gG,noSplitConfigTitle:mG,noSplitConfigDesc:yG,advancedGuide:vG,integrationAssistant:bG,"ia.title":"能力接入","ia.subtitle":"把关键平台能力的接入前置条件、调试入口和联调顺序集中到一个页面里,减少开发者来回查文档与找入口的成本。","ia.banner.login":"建议先在命令行执行 `ttmg login`,再回到这里按能力开始联调;很多平台态能力在未登录时无法完整验证。","ia.banner.termsPrivacy":"当前建议先补齐 Terms & Privacy 配置;登录、授权等能力会直接依赖这两项平台信息。","ia.banner.ready":"当前基础状态可继续联调;建议先看能力说明,再跳转到对应页面完成配置和验证。","ia.menuTitle":"关键能力","ia.sceneLabel":"推荐入口场景:","ia.section.prerequisites":"前置检查","ia.section.steps":"建议调试路径","ia.section.tips":"开发关注点","ia.action.goHome":"打开首页","ia.action.goProjectDetail":"打开项目详情","ia.action.goLaunchMode":"打开启动模式","ia.action.goPrecheck":"打开代码预检","ia.action.openCapabilityDoc":"详细引导","ia.status.ready":"已就绪","ia.status.notReady":"需补充","ia.status.login.title":"开发者登录","ia.status.login.ready":"当前开发者账号已登录,可继续验证依赖平台态的能力。","ia.status.login.notReady":"尚未检测到登录态,上传、项目详情拉取与部分平台流程可能无法继续。","ia.status.terms.title":"Terms URL","ia.status.terms.ready":"Terms URL 已配置,可继续推进 login / authorize 相关联调。","ia.status.terms.notReady":"Terms URL 缺失,login / authorize 能力容易在联调阶段直接卡住。","ia.status.privacy.title":"Privacy URL","ia.status.privacy.ready":"Privacy URL 已配置,隐私相关前置条件基本齐备。","ia.status.privacy.notReady":"Privacy URL 缺失,授权与合规相关流程需要先补齐配置。","ia.menu.login":"登录","ia.menu.authorize":"授权","ia.menu.payment":"支付","ia.menu.ad":"广告","ia.menu.uiAdaptation":"UI 适配","ia.menu.shareMessage":"站内信分享","ia.menu.shareStory":"分享 Story","ia.menu.subpackage":"分包与预下载","ia.menu.network":"网络与实时通信","ia.menu.sidebarRevisit":"侧边栏复访问","ia.menu.shortcutRevisit":"加桌复访","ia.menu.directPlayCard":"直玩卡","ia.menu.wasmSplit":"Wasm 分包","ia.wasmSplit.summary":"把 Unity Wasm 拆分为按需加载的子包,缩小首包体积、提升冷启表现;仅对 Unity 引擎可用。","performance.menu.title":"性能优化","performance.overview.title":"性能优化","performance.overview.desc":"目前仅支持 Wasm 分包,后续会陆续接入更多性能优化能力。","performance.section.title":"优化工具","performance.section.desc":"每个工具对应一条独立能力,点开卡片进入接入流程。","performance.card.wasmSplit.title":"Wasm 分包","performance.card.wasmSplit.desc":"把 Unity Wasm 拆分为按需加载的子包,缩小首包体积、提升冷启表现;仅对 Unity 引擎可用。","performance.card.subpackageCollect.title":"收集子包","performance.card.subpackageCollect.desc":"在真机启动链路中记录被预下载的子包,按 FP / TTI 两段区分,并写入 game.json 供预加载策略消费。","performance.empty.comingSoon":"更多性能优化能力陆续接入中。",subpackageCollect:SG,"subpackageCollect.subtitle":"真机预览启动链路,采集启动阶段被预下载的子包,并转成预加载配置。","subpackageCollect.phase.fp":"FP","subpackageCollect.phase.tti":"TTI","subpackageCollect.stage.entry":"选择入口","subpackageCollect.stage.empty":"无子包","subpackageCollect.stage.notStarted":"未开始","subpackageCollect.stage.collecting":"收集中","subpackageCollect.stage.processing":"处理中","subpackageCollect.stage.success":"已完成","subpackageCollect.stage.failed":"失败","subpackageCollect.stage.unsupported":"不支持","subpackageCollect.entry.title":"选择启动入口","subpackageCollect.entry.subtitle":"按启动 root 分桶采集。主包为默认入口;存在独立分包时一并列出。","subpackageCollect.entry.game":"主包","subpackageCollect.entry.gameTag":"默认","subpackageCollect.entry.independentTag":"独立分包","subpackageCollect.empty.title":"当前游戏未配置子包","subpackageCollect.empty.desc":"game.json 中没有任何 subpackages,启动预加载收集仅对含子包的游戏有意义,无需在此操作。","subpackageCollect.empty.back":"返回性能优化","subpackageCollect.unsupported.unity.title":"Unity 小游戏不支持子包收集","subpackageCollect.unsupported.unity.desc":"子包收集仅支持非 Unity 小游戏。当前项目是 Unity 小游戏,因此不会展示入口选择、扫码和收集操作区。","subpackageCollect.unsupported.unity.action":"前往 Wasm 分包","subpackageCollect.devGuide.clientVersion":"客户端支持版本","subpackageCollect.devGuide.android":"Android 45.9+","subpackageCollect.devGuide.ios":"iOS 46.0+","subpackageCollect.devGuide.stepsTitle":"收集主要步骤","subpackageCollect.devGuide.step1.title":"升级到支持版本","subpackageCollect.devGuide.step1.desc":"请使用 Android TikTok 45.9 及以上或 iOS TikTok 46.0 及以上真机预览扫码。","subpackageCollect.devGuide.step2.title":"确认子包配置","subpackageCollect.devGuide.step2.desc":"game.json 需配置 subpackages,并确认本次采集的是主包入口还是独立分包入口。","subpackageCollect.devGuide.step3.title":"按真实启动路径操作","subpackageCollect.devGuide.step3.desc":"扫码后不要只停在首屏,按真实路径操作到游戏可交互,客户端会记录实际预下载的子包。","subpackageCollect.devGuide.step4.title":"完成可交互上报","subpackageCollect.devGuide.step4.desc":"游戏进入可交互后调用 reportScene({sceneId:9999});IDE 收到后会关闭采集窗口,检查列表后点击完成收集写入配置。","subpackageCollect.scan.title":"扫码操作","subpackageCollect.scan.subtitle":"保持 DevTool 打开,按真实启动路径完成一次预览。","subpackageCollect.guide.step2":"扫码后按真实启动路径操作游戏,跑通原本的启动逻辑;过程中客户端会把实际加载到的子包信息上报、被采集下来。","subpackageCollect.guide.step3":"持续操作直到进入可交互、游戏内部执行 reportScene({sceneId:9999});IDE 收到后会关闭采集窗口,「完成收集」按钮出现即可写入配置。","subpackageCollect.preview.noSchema":"暂无预览 schema。请先在「开始调试」连接设备后再回到此页。","subpackageCollect.preview.currentEntry":"当前入口","subpackageCollect.preview.collectedTitle":"已采集子包","subpackageCollect.preview.collectedDesc":"本轮实时采集,按子包名去重(保留第一次上报),分 FP / TTI 两段。","subpackageCollect.preview.existingDesc":"该入口已有配置,仅作参考展示,不会并入本轮写入。","subpackageCollect.preview.empty":"尚未采集到子包。","subpackageCollect.reportScene.toastTitle":"已收到 reportScene({sceneId:9999})","subpackageCollect.reportScene.toastDesc":"已确认游戏进入可交互状态,完成收集已解锁。","subpackageCollect.reportScene.readyTitle":"完成收集已解锁","subpackageCollect.reportScene.readyDesc":"IDE 已收到 reportScene({sceneId:9999}),当前列表将作为本轮结果;确认无误后点击「完成收集」。","subpackageCollect.wait.runningTitle":"设备已连接,采集进行中","subpackageCollect.wait.running":"请继续按真实启动路径操作游戏;客户端上报的子包会进入下方列表,并在可交互时机调用 reportScene({sceneId:9999})。","subpackageCollect.wait.timeoutTitle":"建议处理","subpackageCollect.wait.timeout":"仍未收到 reportScene({sceneId:9999})。未收到则无法完成本轮收集,请确认已接入该 API 并跑到可交互时机。","subpackageCollect.wait.docLink":"接入文档","subpackageCollect.manualConnect.title":"扫码后未自动连接?","subpackageCollect.manualConnect.desc":"常见于 VPN / 代理 / 多网卡环境,可重试上次记录或填写客户端 IP 与端口手动连接。","subpackageCollect.manualConnect.action":"手动连接","subpackageCollect.manualConnect.retry":"重试上次连接","subpackageCollect.manualConnect.noRecordTitle":"暂无手动连接记录","subpackageCollect.manualConnect.noRecordDesc":"请先填写客户端 IP、HTTP 端口和 WS 端口,保存后即可在此页一键重试。","subpackageCollect.manualConnect.retryTitle":"正在重试上次连接","subpackageCollect.manualConnect.retryDesc":"已使用 {{ip}}:{{port}} 重新连接客户端调试服务。","subpackageCollect.mock.title":"模拟上报(仅联调)","subpackageCollect.mock.subtitle":"客户端真机上报待联调,先在此模拟 predownload / reportScene,验证 UI 收集与 CLI 写入链路。","subpackageCollect.mock.placeholder":"选择可用子包","subpackageCollect.mock.noCandidates":"当前入口下没有可预下载的子包(需 game.json 配置 subpackages 且 root 目录真实存在),可直接触发 reportScene 完成采集。","subpackageCollect.mock.reportFp":"上报 FP","subpackageCollect.mock.reportTti":"上报 TTI","subpackageCollect.mock.reportScene":"reportScene(9999)","subpackageCollect.finish.overwriteNote":"完成后将用本轮采集的 {{current}} 条覆盖该入口原有 {{existing}} 条配置(按入口整体覆盖,非增量合并)。","subpackageCollect.finish.clearNote":"本轮未采集到子包,完成将清空该入口原有 {{existing}} 条配置。","subpackageCollect.finish.clearTitle":"确认清空原有配置?","subpackageCollect.finish.clearConfirm":"本轮未采集到任何子包,完成收集会清空该入口原有 {{existing}} 条配置且不可恢复。如需保留原配置,请改为「退出收集」或重新跑一轮采集。","subpackageCollect.finish.okClear":"清空并完成","subpackageCollect.finish.cancel":"取消","subpackageCollect.action.finish":"完成收集","subpackageCollect.action.cancel":"取消收集","subpackageCollect.action.exit":"退出收集","subpackageCollect.action.exitRun":"退出收集","subpackageCollect.action.recollect":"重新收集","subpackageCollect.action.switch":"切换入口","subpackageCollect.loading":"正在读取项目配置…","subpackageCollect.processing":"正在处理…","subpackageCollect.processing.write":"正在写入 game.json 配置…","subpackageCollect.processing.clear":"正在清理旧配置,准备重新收集…","subpackageCollect.processing.cancel":"正在取消收集并清空配置…","subpackageCollect.success.title":"配置已写入","subpackageCollect.success.empty":"本入口未写入任何子包。","subpackageCollect.failed.title":"收集失败","subpackageCollect.error.generic":"写入配置失败,请重试。","ia.login.summary":"登录(`tt.login`)用于在客户端获取一次性 `auth_code`(这里透出的字段为 `code`),再由业务服务端换取 `open_id` 并建立会话态。","ia.login.prerequisite1":"先在项目详情页补齐 Terms URL 与 Privacy URL,并确认运行时注入的 `client_key` 与当前调试环境一致(`tt.login` 默认 scope 为 `user.info.open_id`)。","ia.login.prerequisite2":"业务服务端需提供 `code -> open_id` 的换取接口:使用 `auth_code` 调用 TikTok OpenAPI `https://open.tiktokapis.com/v2/oauth/token/`(`grant_type=authorization_code`),并持久化 `open_id`(及必要的令牌/过期时间)。","ia.login.step1":"在业务页调用 `tt.login()`(或业务封装),确认回调稳定返回 `code`(对应 `auth_code`);失败分支记录 `errorCode/errorMsg` 便于联调定位。","ia.login.step2":"将 `code` 立即传给服务端(短时效、一次性),服务端以 `application/x-www-form-urlencoded` 请求 `https://open.tiktokapis.com/v2/oauth/token/` 换取 `open_id`(如业务需要也会同时返回 `access_token/refresh_token`)。","ia.login.step3":"用 `open_id` 建立业务会话并落库:补齐用户取消、弱网重试、防重复消费同一 `code`、`invalid_grant/invalid_client` 等异常;如需长期调用受保护资源,按 `grant_type=refresh_token` 刷新并更新存储。","ia.login.tip1":"不要在客户端使用或下发 `client_secret`;所有 `auth_code -> token/open_id` 的交换必须在服务端完成。","ia.login.tip2":"排障优先级建议:Terms/Privacy 缺失(常见 `102102`)→ `client_key/client_secret` 不匹配(`invalid_client`)→ `auth_code` 过期或重复使用(`invalid_grant`)→ 请求头/参数格式错误(`invalid_request`)。","ia.authorize.summary":"授权能力用于在 `login` 已拿到基础身份后,显式向用户申请 `user.info.basic` 等额外 scope;授权完成后,再由服务端结合 `access_token` 拉取资料或完成权限校验。","ia.authorize.prerequisite1":"先在项目详情页补齐 Terms URL 与 Privacy URL,并确认 `login` 主链路已能稳定换取 `open_id/access_token`。","ia.authorize.prerequisite2":"按业务场景梳理所需 scope;昵称、头像等资料不应假设由客户端直接返回,而要通过授权后的服务端 OpenAPI 获取。","ia.authorize.step1":"先通过 `tt.login` 获取一次性 `auth_code`,由服务端换取 `open_id` / `access_token`,建立基础身份态。","ia.authorize.step2":"在真正需要资料或额外权限的场景调用 `tt.authorize`(如 `scope: 'user.info.basic'`),覆盖首次授权、拒绝授权和再次进入三类路径。","ia.authorize.step3":"用户同意后,由服务端携带 `access_token` 调用 OpenAPI 拉取资料并落到业务链路,确认 scope、资料字段和降级兜底一致。","ia.authorize.tip1":"不要把授权和登录混成一步:`login` 建立基础身份,`authorize` 申请额外 scope,两个失败分支都要单独处理。","ia.authorize.tip2":"非必需权限不要做成默认拦截;用户拒绝后也应能继续基础流程,并保留明确的二次触发入口。","ia.payment.summary":"IAP 支付用于售卖虚拟道具或增值服务,核心链路是“服务端创建订单 -> 客户端发起支付 -> 服务端验单/发货”,当前仅支持 TikTok Beans。","ia.payment.prerequisite1":"先完成企业认证、合同签署,并在 Monetization 中启用 In-App Purchases;收款主体需与企业认证主体一致。","ia.payment.prerequisite2":"提前准备商品配置、测试账号,以及服务端下单、订单落库和验单能力;本地联调可先打开 IAP Mock 覆盖主分支。","ia.payment.step1":"先在平台完成 IAP 开通、商品配置和收款信息填写,再在服务端打通创建订单、订单持久化和支付结果校验。","ia.payment.step2":"客户端接入支付唤起与回调处理,先用 IAP Mock 验证成功、失败、取消、重复点击等基础分支。","ia.payment.step3":"最后切到真机预览或真机调试,验证真实支付、服务端验单、发货/到账以及异常重试链路是否闭环。","ia.payment.tip1":"不要只看客户端支付成功回调;最终发货或到账应以后端验单结果或权威订单状态为准。","ia.payment.tip2":"Mock 适合提效,但提审前必须做真机回归,并覆盖弱网、重复下单、取消支付和超时回调。","ia.ad.summary":"IAA 广告能力覆盖激励视频与插屏广告,核心链路是“开通广告能力 -> 创建广告位 -> 加载/展示广告 -> 处理关闭与发奖回调”,用于变现且不打断核心体验。","ia.ad.prerequisite1":"先完成企业认证、合同签署,并在 Monetization 中启用 In-App Ads;未上线应用通常无法正常创建广告位。","ia.ad.prerequisite2":"如涉及 US / EU,上线前尽早补齐 Sensitive Data、USDS / TPRM 等合规要求,并准备好 IAA Mock / 真机联调方案。","ia.ad.step1":"先在平台确认 IAA 已开通且应用已上线,再进入 Ad placements 创建广告位并拿到对应 placement id。","ia.ad.step2":"在业务中接入广告实例创建、加载、展示和回调处理,分别验证激励视频和插屏的成功、失败、关闭分支。","ia.ad.step3":"重点回归奖励发放、频控与体验边界:激励视频完整播放后要准确发奖,插屏两次触发间隔需不少于 60 秒。","ia.ad.tip1":"广告回调和奖励发放要做幂等处理,避免重复回调、页面切换或重进场景导致重复发奖。","ia.ad.tip2":"不要在初始化、新手引导或高频操作链路强插广告;若平台侧合规或上线门槛未过,先处理这些阻塞项。","ia.uiAdaptation.summary":"UI 适配专题聚焦屏幕尺寸、胶囊按钮与安全区适配,核心目标是在不同设备上保证关键 UI 不被遮挡、裁切或错位。","ia.uiAdaptation.prerequisite1":"先梳理项目里与顶栏、浮层、固定按钮、全屏背景相关的核心页面,避免只在单一页面补样式。","ia.uiAdaptation.prerequisite2":"优先准备真机或多尺寸预览环境,特别覆盖不同长宽比、顶部安全区和底部手势区域差异。","ia.uiAdaptation.step1":"先统一读取设备窗口尺寸、安全区和胶囊按钮位置相关信息,沉淀成布局基线,而不是在页面里分散硬编码。","ia.uiAdaptation.step2":"对顶部标题区、右上角操作按钮、底部固定操作区和弹窗内容做适配,确认不会与胶囊按钮或系统安全区重叠。","ia.uiAdaptation.step3":"在多机型回归关键页面,重点检查横竖比例变化、滚动容器、全屏背景和点击热区是否仍然自然可用。","ia.uiAdaptation.tip1":"不要只看视觉对齐;按钮点击区域、弹窗可关闭区域和底部可达性同样属于 UI 适配问题。","ia.uiAdaptation.tip2":"避免把胶囊按钮位置写死成固定像素,优先基于平台返回信息和安全区做动态布局。","ia.shareMessage.summary":"`shareAppMessage` 对应 TikTok 站内信分享,其中卡片标题、描述和封面来自开发者平台的游戏基本信息,开发者真正需要设计的是 `query` 参数如何承接具体分享场景。","ia.shareMessage.prerequisite1":"先确认客户端版本和能力前置,按文档建议通过 `TTMinis.game.canIUse('shareAppMessage')` 判断是否可用,不要默认所有端上都支持。","ia.shareMessage.prerequisite2":"先在开发者平台补齐并确认游戏基本信息,因为站内信卡片展示的标题、描述和封面取自平台配置;业务侧再重点设计 `query` 参数和落地页承接规则。","ia.shareMessage.step1":"在适合拉新、召回或活动传播的页面接入 `TTMinis.game.shareAppMessage`,并重点确认不同入口下传入的 `query` 能准确表达当前业务场景。","ia.shareMessage.step2":"重点验证站内信分享的成功、取消、失败和重复点击分支,确认分享动作本身、回调和用户反馈都稳定。","ia.shareMessage.step3":"在真机检查站内信卡片的展示效果与回流路径,确认用户打开后能进入正确页面,且 query 对应的业务状态恢复正常。","ia.shareMessage.tip1":"这张卡更接近“站内信卡片分享”能力,但卡片标题、描述和封面并不是业务侧实时自定义的,真正可控的是 `query` 和分享后的承接逻辑。","ia.shareMessage.tip2":"如果分享入口很多,建议统一封装 `query` 生成和解析逻辑;平台侧游戏基本信息则应单独在开发者平台维护,不要误以为能在分享时动态覆盖。","ia.shareStory.summary":"`shareToStory` 聚焦 Story 分享,其中展示效果更依赖 Story 素材本身,而业务侧真正要设计的是 `query` 参数和分享后的回流承接逻辑。","ia.shareStory.prerequisite1":"先梳理哪些活动、玩法或结果页适合 Story 分享,避免把不适合视觉传播的场景也强行套用 Story 入口。","ia.shareStory.prerequisite2":"提前准备符合 Story 场景的素材资源,并同步设计 `query` 参数和落地页承接方案;不要只准备视觉素材而忽略回流后的游戏内逻辑。","ia.shareStory.step1":"在适合传播的页面接入 `shareToStory`,确认素材选择和传入的 `query` 都能准确表达当前业务场景。","ia.shareStory.step2":"验证 Story 分享触发、取消、失败与不同素材组合分支,确认视觉展示和交互反馈都符合预期。","ia.shareStory.step3":"结合真机检查 Story 分享后的回流路径,确认用户回到小游戏时目标页面、活动状态和参数恢复正常。","ia.shareStory.tip1":"Story 分享不是普通消息分享的简单复用,素材表达是一部分,但业务侧仍要把 `query` 和回流承接链路单独设计清楚。","ia.shareStory.tip2":"如果 Story 场景依赖强视觉素材,提审前建议同时回归素材展示效果和 `query` 对应的页面恢复是否稳定。","ia.subpackage.summary":"分包与预下载专题关注首包体积、分包边界与资源加载时机,核心目标是在不拖慢首屏的前提下,让后续内容更平滑地进入。","ia.subpackage.prerequisite1":"先梳理首屏必需资源与后续场景资源,明确哪些内容应该留在主包,哪些适合拆到分包。","ia.subpackage.prerequisite2":"为分包加载失败、弱网重试和加载中反馈准备统一兜底,避免把加载逻辑散落在业务页面里。","ia.subpackage.step1":"先确定分包边界与命名,把高频但非首屏必需的内容拆出,避免为了拆包把强依赖资源错误外置。","ia.subpackage.step2":"在合适时机使用 `preDownloadSubpackage` 或 `loadSubpackage`,验证加载进度、成功回调和失败回调都可观测。","ia.subpackage.step3":"在真机与弱网场景回归首屏进入、后续跳转和分包失败重试,确认用户不会卡死在资源加载链路里。","ia.subpackage.tip1":"预下载不等于立即可用;仍然要验证真正进入业务场景时资源是否已经准备完成。","ia.subpackage.tip2":"不要为了追求首包小而过度拆包;分包数量、加载时机和失败兜底比机械地“拆得越多越好”更重要。","ia.network.summary":"网络与实时通信专题覆盖 `request`、`downloadFile`、`connectSocket` 以及网络状态监听,重点是让弱网、断线和重连场景也保持可用。","ia.network.prerequisite1":"先统一梳理项目里的请求、下载与实时通信路径,避免每个页面各自处理 timeout、重试和错误提示。","ia.network.prerequisite2":"为 HTTP 请求、资源下载和长连接分别设计失败兜底与状态提示,不要把它们混成同一种异常处理。","ia.network.step1":"先封装统一的请求/下载/Socket 调用入口,把超时、取消、重试和日志能力收拢到一层处理。","ia.network.step2":"结合 `getNetworkType`、网络变化监听和弱网监听,验证页面能对网络波动做出合理反馈,而不是静默失败。","ia.network.step3":"在真机上重点回归弱网、断网恢复、下载中断和 Socket 重连场景,确认状态恢复与用户提示是完整的。","ia.network.tip1":"不要只测理想网络;多数线上问题都发生在请求超时、资源半下载、连接闪断和重复重连上。","ia.network.tip2":"实时通信场景要单独验证连接关闭、前后台切换和恢复后的重订阅逻辑,不要只看首次连接成功。","ia.sidebar.summary":"侧边栏复访问是从 TikTok 个人主页侧边栏再次进入小游戏并领取奖励的 P0 留存能力。","ia.sidebar.prerequisite1":"确认账号地区在能力开放范围内,并在业务代码里先做 `canIUse` 探测。","ia.sidebar.prerequisite2":"在启动模式中把进入场景切到侧边栏复访入口,避免继续沿用普通扫码场景。","ia.sidebar.step1":"先到“启动模式”选择“复访奖励 - 侧边栏” scene,并保存为独立的调试模式。","ia.sidebar.step2":"本地联调时先运行 `ttmg dev`,再把启动模式切到 `scene_center` 并扫码进入;此时已经是在模拟“从侧边栏入口打开”的会话。","ia.sidebar.step3":"直接调用 `getEntranceMissionReward` 检查 `canReceiveReward` 与业务发奖逻辑;`startEntranceMission` 留给真实用户路径回归,不是启动模式下的必做前置动作。","ia.sidebar.tip1":"这类能力强依赖入口场景与地区条件,不能只用默认扫码路径描述或验证。","ia.sidebar.tip2":"若任务无法继续,先排查 scene、账号地区、客户端能力与任务状态,而不是直接怀疑奖励逻辑。","ia.shortcut.summary":"桌面快捷方式(加桌复访)是 P0 留存能力:引导用户把小游戏添加到手机桌面,后续从桌面一键进入并可领取复访奖励。","ia.shortcut.prerequisite1":"兼容性:先用 `TTMinis.game.canIUse('addShortcut')` 做能力探测;推荐在 TikTok 41.0.0+ 版本验证(iOS 需 41.40+)。","ia.shortcut.prerequisite2":"奖励校验:真实用户链路里,`TTMinis.game.getShortcutMissionReward()` 的 `canReceiveReward` 只有在“从桌面图标进入”时才可能为 true;而在 `scene_shortcut` 启动模式里,会话本身就在模拟该入口。","ia.shortcut.step1":"在业务入口准备“添加到桌面”触发点:先判断 `canIUse('addShortcut')`,再调用 `TTMinis.game.addShortcut()`,并记录 fail 分支的 `errorCode/errorMsg`。","ia.shortcut.step2":"本地联调:运行 `ttmg dev` → 在“启动模式”选择“桌面快捷方式” scene(`scene_shortcut`)→ 扫码进入;此时已经是在模拟“从桌面入口打开”的会话。","ia.shortcut.step3":"直接调用 `TTMinis.game.getShortcutMissionReward()` 检查 `canReceiveReward`,为 true 时再走业务发奖/领券逻辑;`addShortcut` 与“回桌面再进”留给真实用户路径回归即可。","ia.shortcut.tip1":"把 `canReceiveReward` 当作“是否从桌面入口进入”的信号拆开看:加桌动作本身成功 ≠ 一定能在当前会话领取奖励。","ia.shortcut.tip2":"引导建议越早越显眼(首屏/新手引导结束后),突出“首添奖励 + 复访收益”;提审会重点关注流程闭环与奖励一次性/按日策略是否合理。","ia.revisit.panel.modeName":"启动模式","ia.revisit.panel.scene":"场景","ia.revisit.panel.launchParams":"启动参数","ia.revisit.panel.package":"启动包","ia.revisit.panel.signal":"奖励校验","ia.revisit.sidebar.panel.title":"快速创建侧边栏复访调试模式","ia.revisit.sidebar.panel.desc":"这里会直接生成一个“侧边栏复访”启动模式。选中后扫码进入,即是在模拟“已经从侧边栏入口打开”的会话,可以直接联调 `getEntranceMissionReward` 与奖励发放逻辑,不需要额外先执行跳转动作。","ia.revisit.sidebar.panel.modeValue":"模拟侧边栏复访 scene 启动","ia.revisit.sidebar.panel.generatedModeName":"侧边栏复访调试模式","ia.revisit.sidebar.panel.signalValue":"`startEntranceMission` / `getEntranceMissionReward`","ia.revisit.sidebar.panel.createQr":"创建侧边栏复访调试二维码","ia.revisit.shortcut.panel.title":"快速创建加桌复访调试模式","ia.revisit.shortcut.panel.desc":"这里会直接生成一个“桌面快捷方式”启动模式。选中后扫码进入,即是在模拟“已经从桌面入口打开”的会话,可以直接联调 `getShortcutMissionReward` / `canReceiveReward` 与奖励发放逻辑,不需要额外先做加桌再回桌面。","ia.revisit.shortcut.panel.modeValue":"模拟桌面快捷方式 scene 启动","ia.revisit.shortcut.panel.generatedModeName":"加桌复访调试模式","ia.revisit.shortcut.panel.signalValue":"`addShortcut` / `getShortcutMissionReward` / `canReceiveReward`","ia.revisit.shortcut.panel.createQr":"创建加桌复访调试二维码","ia.directPlay.summary":"直玩卡联调建议拆成三个阶段:先调试小游戏包本身,再用预览二维码验证卡面和承接路径,最后管理已验证直玩卡的上线状态。","ia.directPlay.versionNotice":"直玩阶段二调试能力依赖客户端 45.4.0 及以上版本,请先确认客户端版本满足要求后再使用预览二维码相关能力。","ia.directPlay.prerequisite1":"阶段一只关注小游戏包自身运行,不涉及 TT Feed 卡面、强插或 “Play now” 承接效果。","ia.directPlay.prerequisite2":"进入阶段二前,建议先把推荐流直玩 scene 下的包体启动、首屏加载和核心游戏路径跑通。","ia.directPlay.step1":"在“启动模式”里选择推荐流直玩 scene,保存一个专用启动模式用于游戏包调试。","ia.directPlay.step2":"回到首页扫码启动,确认小游戏包在该 scene 下能够稳定进入并完成基础业务流程。","ia.directPlay.step3":"只有当包体本身稳定后,再回到本页使用预览二维码验证直玩卡卡面与承接路径,确认无误后再管理同一张卡的上线状态。","ia.directPlay.tip1":"阶段一遇到的问题优先按普通包体调试处理,不要过早归因到 Feed 卡面或投放链路。","ia.directPlay.tip2":"阶段二若出现问题,建议区分是包体运行异常,还是卡片配置、素材或承接链路异常;阶段三只管理阶段二已验证卡片的上线状态。","ia.directPlay.stage1.title":"阶段一:调试游戏包本身","ia.directPlay.stage1.desc":"这一阶段只调试小游戏包本身,不涉及 TT Feed 卡面、强插或 Play now 承接。使用推荐流直玩 scene 创建启动二维码,确认包体能正常启动和运行。","ia.directPlay.stage1.ready":"直玩 scene 已就绪","ia.directPlay.stage1.notReady":"需要应用直玩 scene","ia.directPlay.stage1.modeName":"启动模式","ia.directPlay.stage1.modeValue":"模拟推荐流直玩 scene 启动","ia.directPlay.stage1.generatedModeName":"推荐流直玩包体调试模式","ia.directPlay.stage1.scene":"场景","ia.directPlay.stage1.package":"启动包","ia.directPlay.stage1.queries":"Queries","ia.directPlay.stage1.apply":"应用直玩 scene","ia.directPlay.stage1.openHome":"带着当前模式打开首页","ia.directPlay.stage1.createQr":"创建游戏包调试二维码","ia.directPlay.stage1.appliedTitle":"已应用直玩 scene","ia.directPlay.stage1.appliedDesc":"当前启动模式已切到推荐流直玩 scene。你可以直接回首页扫码,也可以到启动模式继续微调。","ia.directPlay.stage2.title":"阶段二:生成预览二维码","ia.directPlay.stage2.desc":"在游戏包本身稳定后,选择直玩卡内容和预览代码版本,生成平台预览二维码,用于验证直玩卡卡面和承接路径。","ia.directPlay.stage2.banner":"这一阶段只用于直玩卡预览与承接验证;若小游戏包本身还不稳定,请先回到阶段一处理。","ia.directPlay.stage2.cardSelect":"选择直玩卡内容","ia.directPlay.stage2.assetSelect":"选择预览代码版本","ia.directPlay.stage2.selectedCard":"当前选中的卡片","ia.directPlay.stage2.selectedAsset":"当前选中的预览代码版本","ia.directPlay.stage2.cardName":"卡片名称:","ia.directPlay.stage2.cardContentId":"Content ID:","ia.directPlay.stage2.cardDesc":"卡片描述:","ia.directPlay.stage2.cardScenario":"场景:","ia.directPlay.stage2.cardStatus":"审核状态:","ia.directPlay.stage2.cardStatus.approved":"已过审","ia.directPlay.stage2.cardStatus.pending":"待后台审核后可用","ia.directPlay.stage2.cardPackage":"启动包:","ia.directPlay.stage2.cardQueries":"Queries:","ia.directPlay.stage2.assetGroup":"代码版本分组:","ia.directPlay.stage2.assetFile":"文件:","ia.directPlay.stage2.assetVersion":"版本:","ia.directPlay.stage2.assetSize":"大小:","ia.directPlay.stage2.assetUploaded":"上传时间:","ia.directPlay.stage2.assetGroup.preview":"预览代码版本","ia.directPlay.stage2.assetGroup.live":"线上代码版本","ia.directPlay.stage2.assetGroup.review":"审核中代码版本","ia.directPlay.stage2.emptyCard":"当前还没有可用的直玩卡内容。","ia.directPlay.stage2.emptyAsset":"当前还没有可用的游戏素材。","ia.directPlay.stage2.generate":"生成预览二维码","ia.directPlay.stage2.refresh":"刷新数据","ia.directPlay.stage2.previewUrl":"预览链接","ia.directPlay.stage2.copy":"复制链接","ia.directPlay.stage2.open":"打开预览","ia.directPlay.stage2.qrDesc":"使用 TikTok 在 Feed 中扫码,体验直玩卡路径。","ia.directPlay.stage2.copyTitle":"已复制预览链接","ia.directPlay.stage2.copyDesc":"预览链接已复制到剪贴板。","ia.directPlay.stage2.selectRequired":"请先选择直玩卡内容和游戏素材。","ia.directPlay.stage2.loadCardsFailed":"加载直玩卡内容失败。","ia.directPlay.stage2.loadAssetsFailed":"加载游戏素材失败。","ia.directPlay.stage2.loadResourcesFailed":"加载直玩卡联调资源失败。","ia.directPlay.stage2.previewFailed":"生成直玩卡预览链接失败。","ia.directPlay.stage2.modeSelect":"选择已有卡片","ia.directPlay.stage2.modeCreate":"新建直玩卡","ia.directPlay.stage2.create.title":"新建直玩卡","ia.directPlay.stage2.create.desc":"直接在调试工具里创建一张新的直玩卡,创建成功后会自动刷新列表并选中这张卡。","ia.directPlay.stage2.create.option":"+ 新建直玩卡","ia.directPlay.stage2.create.cardName":"卡片名称","ia.directPlay.stage2.create.cardNamePlaceholder":"例如:xx游戏发送福利卡片","ia.directPlay.stage2.create.cardDesc":"卡片描述","ia.directPlay.stage2.create.cardDescPlaceholder":"例如:向玩家发送 1000 金币作为召回手段","ia.directPlay.stage2.create.cardType":"卡片类型","ia.directPlay.stage2.create.cardType.fixed":"固定卡","ia.directPlay.stage2.create.cardType.dynamic":"动态卡","ia.directPlay.stage2.create.cardType.dynamicDesc":"动态卡:平台提供 server 接口,支持开发者动态推送游戏内事件、活动提醒,平台收到后将向用户推送,如体力恢复、活动开始提醒。","ia.directPlay.stage2.create.cardType.fixedDesc":"固定卡:以客户端固定逻辑接入,如每次以固定规则的礼包召回用户。","ia.directPlay.stage2.create.scenario":"场景","ia.directPlay.stage2.create.scenarioPlaceholder":"例如:recover_stamina","ia.directPlay.stage2.create.scenario.rewardIssue":"发放福利 reward_issue","ia.directPlay.stage2.create.scenario.recoverStamina":"体力恢复 recover_stamina","ia.directPlay.stage2.create.scenario.unlockLevel":"解锁关卡 unlock_level","ia.directPlay.stage2.create.subPkg":"启动包","ia.directPlay.stage2.create.params":"Queries","ia.directPlay.stage2.create.paramsPlaceholder":"例如:a=1&b=constant","ia.directPlay.stage2.create.submit":"创建并选中卡片","ia.directPlay.stage2.create.success":"直玩卡已创建,并已自动选中。","ia.directPlay.stage2.create.failed":"创建直玩卡失败。","ia.directPlay.stage3.title":"阶段三:管理直玩卡上线状态","ia.directPlay.stage3.desc":"阶段二预览验证通过后,可将当前选中的直玩卡上线或下线,控制线上推荐流直玩链路是否使用。","ia.directPlay.stage3.banner":"上线或下线会修改当前选中直玩卡的线上状态。上线前请先确认阶段二预览二维码已经验证通过。","ia.directPlay.stage3.selectedCard":"当前卡片上线状态","ia.directPlay.stage3.emptyCard":"请先在阶段二选择一张直玩卡内容。","ia.directPlay.stage3.publishStatus":"上线状态:","ia.directPlay.stage3.cardStatus.online":"已上线","ia.directPlay.stage3.cardStatus.notOnline":"未上线","ia.directPlay.stage3.publish":"上线直玩卡","ia.directPlay.stage3.published":"已上线","ia.directPlay.stage3.offline":"下线直玩卡","ia.directPlay.stage3.confirmTitle":"确认上线直玩卡 {{name}}({{contentId}})?","ia.directPlay.stage3.offlineConfirmTitle":"确认下线直玩卡 {{name}}({{contentId}})?","ia.directPlay.stage3.selectRequired":"请先在阶段二选择一张直玩卡内容。","ia.directPlay.stage3.publishSuccess":"直玩卡已上线,已刷新最新状态。","ia.directPlay.stage3.publishFailed":"上线直玩卡失败。","ia.directPlay.stage3.offlineSuccess":"直玩卡已下线,已刷新最新状态。","ia.directPlay.stage3.offlineFailed":"下线直玩卡失败。","ia.overview.eyebrow":"Capability Map","ia.overview.title":"能力接入","ia.overview.desc":"先确认当前小游戏的变现模式,再查看对应的推荐能力组合;复访、裂变与基础能力可在下方继续补齐。","ia.overview.groups.title":"能力接入概览","ia.overview.groups.desc":"下方按业务目标划分为增长与复访、分享与裂变、基础能力三组,便于按专题继续补齐。","ia.overview.keyCapabilities.title":"关键能力","ia.overview.keyCapabilities.desc":"这些能力不随变现模式变化,建议按需展开查看。","ia.overview.baseline.title":"基础前置","ia.overview.baseline.desc":"这些基础状态会影响大部分能力链路,建议先排除明显阻塞,再进入具体模块联调。","ia.overview.stat.capabilities":"能力模块","ia.overview.stat.groups":"能力分组","ia.overview.stat.prerequisites":"基础前置","ia.overview.sectionLabel":"能力分组","ia.overview.section.capabilityUnit":"个能力","ia.overview.section.identity.title":"登录与授权","ia.overview.section.identity.desc":"先建立小游戏身份,再按需申请资料或权限 scope,这是很多用户态能力的起点。","ia.overview.section.monetization.title":"商业化变现","ia.overview.section.monetization.desc":"收入链路主要分为支付和广告,两者都需要先打通平台开通、业务闭环和真机回归。","ia.monetization.title":"选择变现模式","ia.monetization.desc":"按小游戏当前的商业化模式查看对应能力组合与联调重点。","ia.monetization.meta.required":"必接能力","ia.monetization.meta.optional":"可选能力","ia.monetization.meta.support":"配套能力","ia.monetization.meta.experimental":"实验能力","ia.monetization.core.title":"核心能力","ia.monetization.mode.iaa.title":"IAA","ia.monetization.mode.iaa.summary":"广告变现主链路优先,先确保用户身份、广告请求与回调链路稳定。","ia.monetization.mode.iaa.desc":"以广告变现为主,建议先打通 `login` 建立用户身份,再验证广告位配置、广告请求与回调链路;`authorize` 仅在需要昵称、头像等额外用户信息时再接入,同时建议尽早补齐网络稳定性能力,并结合复访能力验证广告用户的留存与回流链路。","ia.monetization.mode.iap.title":"IAP","ia.monetization.mode.iap.summary":"支付闭环优先,重点验证下单、支付、验单与发货链路的一致性。","ia.monetization.mode.iap.desc":"以内购变现为主,建议先打通 `login`、下单、支付拉起、服务端验单与发货闭环;`authorize` 仅在需要额外用户资料或扩展 scope 时再接入,同时要重点关注弱网、取消支付、重复下单等订单校验场景,并结合复访能力验证付费用户的回流承接。","ia.monetization.mode.iaap.title":"IAAP","ia.monetization.mode.iaap.summary":"广告与支付双链路并行,优先验证共用用户体系下的整体联调稳定性。","ia.monetization.mode.iaap.desc":"广告与支付并行,建议先用 `login` 打通共用用户体系,再分别验证广告链路与支付闭环;`authorize` 仅在需要额外用户资料时补充接入,同时要关注两条变现链路在同一账号与同一局内场景下的联调稳定性,并结合复访能力验证混合变现用户的持续回流效果。","ia.monetization.recommended.title":"推荐能力组合","ia.requirement.required":"必接","ia.requirement.optional":"可选","ia.requirement.recommended":"推荐","ia.requirement.basic":"基础","ia.requirement.experimental":"实验","ia.overview.section.foundation.title":"基础能力","ia.overview.section.foundation.desc":"这一组聚焦 UI 适配、网络稳定性、资源加载与分包管理等基础能力,建议在业务能力稳定后系统补齐。","ia.overview.section.experience.title":"体验与适配","ia.overview.section.experience.desc":"这部分关注跨设备体验一致性,尤其是安全区、胶囊按钮和关键操作区在不同机型上的可用性。","ia.overview.section.share.title":"分享与裂变","ia.overview.section.share.desc":"这一组保持“分享与裂变”专题视角,但接入引导拆成 `shareAppMessage` 和 `shareToStory` 两个具体场景分别梳理。","ia.overview.section.ui.title":"UI适配","ia.overview.section.ui.desc":"这一组只聚焦多机型 UI 一致性,重点看屏幕尺寸、安全区、胶囊按钮与关键操作区是否被遮挡。","ia.overview.section.growth.title":"增长与复访","ia.overview.section.growth.desc":"这部分更偏入口场景和留存回流,调试时要特别注意 scene、入口路径和奖励闭环。","ia.overview.section.performance.title":"性能优化","ia.overview.section.performance.desc":"围绕首包体积、启动速度与运行时表现的优化工具集合;按需启用对应能力,后续将持续扩展更多优化项。","ia.env.title":"前置环境","ia.env.desc":"把最容易卡住接入联调的三项基础状态收紧到这里先看,避免页面很松但流程实际走不通。","ia.map.title":"能力地图","ia.map.desc":"每张卡片对应一条能力接入路径。先看能力简介,再进入二级页面查看定制化接入引导。","ia.action.openGuide":"进入接入引导","ia.detail.notFound":"未找到对应的能力引导。","ia.detail.backToMap":"返回上一页面","ia.login.highlight1":"先把 `tt.login` 的 `auth_code -> open_id` 主链路跑通:`open_id` 是业务侧的用户主键与会话索引。","ia.login.highlight2":"默认只拿 `user.info.open_id`;如需昵称/头像等资料或额外 scope,请走 `tt.authorize` 并在服务端完成资料获取与权限校验。","ia.authorize.highlight1":"核心不是在客户端直接拿资料,而是在 `login` 之后由用户显式授权额外 scope。","ia.authorize.highlight2":"昵称、头像等资料最终由服务端携带 `access_token` 调 OpenAPI 获取,不是客户端一键返回。","ia.payment.highlight1":"支付闭环重点是“下单、拉起支付、验单、发货”,不是只把支付面板调起来。","ia.payment.highlight2":"建议先用 IAP Mock 提速,再用真机验证真实 Beans 支付与服务端结果一致性。","ia.ad.highlight1":"先开通 IAA 并创建广告位,再看代码联调;未上线应用通常连广告位都配不起来。","ia.ad.highlight2":"激励视频要保证完整播放后准确发奖,插屏要控制频率和打断感。","ia.uiAdaptation.highlight1":"重点不是单页修样式,而是把安全区、胶囊按钮和窗口尺寸沉淀成统一布局基线。","ia.uiAdaptation.highlight2":"要用真机覆盖多尺寸和异形屏,确认标题、悬浮按钮、底部操作区都不被遮挡。","ia.shareMessage.highlight1":"`shareAppMessage` 的卡片标题、描述和封面来自开发者平台的游戏基本信息,不是业务侧在分享时动态自定义。","ia.shareMessage.highlight2":"业务侧真正要设计的是 `query` 参数,让主动分享、任务分享和活动传播都能落到正确的游戏内场景。","ia.shareStory.highlight1":"`shareToStory` 更偏视觉传播,但业务侧真正需要设计的仍是 `query`,让分享后能回到正确的游戏内场景。","ia.shareStory.highlight2":"Story 分享建议单独做真机回归,同时检查素材展示效果和 `query` 驱动的回流路径是否稳定。","ia.subpackage.highlight1":"分包的核心不是拆得多,而是主包边界、预下载时机和失败兜底是否合理。","ia.subpackage.highlight2":"要同时回归首屏速度、后续场景切换和弱网下的加载体验。","ia.network.highlight1":"网络专题重点是弱网、断线与恢复,不是只看理想网络下的单次请求成功。","ia.network.highlight2":"请求、下载和实时通信应分别设计错误处理和状态恢复策略。","ia.sidebar.highlight1":"P0 留存能力,核心是侧边栏入口、任务状态和奖励领取闭环完整。","ia.sidebar.highlight2":"平台验证过对次留和 7 留有帮助,适合沉淀为固定入口模板。","ia.shortcut.highlight1":"P0 留存能力,核心是“加桌 → 从桌面二次进入 → 才能命中奖励状态”的完整链路。","ia.shortcut.highlight2":"对投放/高频游戏拉留存效果明显;联调时优先验证入口 scene 与 `canReceiveReward`,再看业务侧发奖闭环。","ia.directPlay.highlight1":"在 Feed 中通过历史玩过游戏卡片触达用户,主按钮是 “Play now”。","ia.directPlay.highlight2":"更适合高价值用户召回,可作为投放、增长和 QA 的统一复现入口。",languageSwitcherLabel:wG,langChinese:CG,langEnglish:_G},P0="en-US",T0="__TTMG_IDE_LANG__",Za={"en-US":v3,"zh-CN":kG};function E0(){const i=navigator.language;return i in Za?i:i.split("-")[0]==="zh"?"zh-CN":P0}function x0(i){if(!i)return;if(i in Za)return i;const e=i.split("-")[0];if(e==="zh")return"zh-CN";if(e==="en")return"en-US"}function D0(){try{if(typeof window>"u")return;const i=window.localStorage.getItem(T0);return x0(i)}catch{return}}function PG(i){try{if(typeof window>"u")return;window.localStorage.setItem(T0,i)}catch{}}let Dh=D0()??E0();function TG(i){Dh=x0(i)??D0()??E0(),PG(Dh)}const x=(i,e)=>{let n=Za[Dh][i]??Za[P0][i];return e&&Object.entries(e).forEach(([r,s])=>{n=n.replace(new RegExp(`{{${r}}}`,"g"),s)}),n};function EG(i){return new URLSearchParams(window.location.search).get(i)}function xG(i){const e={};if(!i||typeof i!="string")return e;const r=(i.startsWith("?")?i.substring(1):i).split("&");for(const s of r){if(!s)continue;const l=s.indexOf("=");let c,u;l===-1?(c=decodeURIComponent(s),u=""):(c=decodeURIComponent(s.substring(0,l)),u=decodeURIComponent(s.substring(l+1))),Object.prototype.hasOwnProperty.call(e,c)?Array.isArray(e[c])?e[c].push(u):e[c]=[e[c],u]:e[c]=u}return e}function UH(i){if(!i)return{isValid:!0,message:""};if(typeof i!="string")return{isValid:!1,message:x("queriesStringMustBeString")};if(i.trim()==="")return{isValid:!0,message:""};if(i.startsWith("?"))return{isValid:!1,message:x("queriesStringNoQuestionMark")};const e=i.split("&"),n=new Set;for(const r of e){if(r.trim()==="")return{isValid:!1,message:x("queriesStringEmptyPair")};const s=r.indexOf("=");if(s===-1||s===r.length-1)return{isValid:!1,message:x("queriesStringMissingEqual",{pair:r})};let l=r.substring(0,s),c=r.substring(s+1);try{const u=decodeURIComponent(l),p=decodeURIComponent(c);if(u.trim()==="")return{isValid:!1,message:x("queriesStringEmptyKey",{pair:r})};if(n.has(u))return{isValid:!1,message:x("queriesStringDuplicateKey",{key:u})};n.add(u);const f=/^[\w\-.!~*'()]+$/,v=/[\x00-\x1F\x7F]/;if(!f.test(u)&&u.length>0){if(v.test(u))return{isValid:!1,message:x("queriesStringInvalidKeyChars",{key:u})};if(/[^a-zA-Z0-9\-.!~*'()_]/.test(u))return{isValid:!1,message:x("queriesStringInvalidKeyChars",{key:u})}}if(v.test(p))return{isValid:!1,message:x("queriesStringInvalidValueChars",{value:p})}}catch(u){return{isValid:!1,message:x("queriesStringInvalidEncoding",{pair:r,error:u.message})}}}return{isValid:!0,message:""}}function El(i,...e){Number(EG("enableLog"))&&console[i](...e)}const $n=(...i)=>El("log",...i);$n.info=(...i)=>El("info",...i);$n.warn=(...i)=>El("warn",...i);$n.error=(...i)=>El("error",...i);const Jo={isNodeWSConnected:void 0,nodeWsPort:null,isClientWSConnected:void 0,clientHost:null,clientWsPort:null,clientHttpPort:null,clientKey:"",isResourcesReady:!1,isScriptsReady:!1,packages:{},email:null,hasSetup:!1,nodeStaticBaseUrl:null};class DG{data;constructor(e){this.data={...Jo,...e}}get(e){return this.data[e]}set(e,n){this.data[e]=n,this.logUpdate({[e]:n})}setMultiple(e){this.data={...this.data,...e},this.logUpdate(e)}getMultiple(e){return e.reduce((n,r)=>(n[r]=this.data[r],n),{})}getAll(){return{...this.data}}resetField(e){this.data[e]=Jo[e],this.logUpdate({[e]:Jo[e]})}clear(){this.data={...Jo},this.logUpdate(Jo,!0)}init(e){this.data=e,this.logUpdate(e,!0)}logUpdate(e,n=!1){n?$n("Store has been reset/initialized."):$n("Store updated with batch:",e)}}const Pe=new DG,O0=()=>`http://${Pe.get("clientHost")}:${Pe.get("clientHttpPort")}`,I0="__TTMG_LAUNCH_MODE__",R0="__TTMG_CHANGELOG_LAST_SEEN_VERSION__",Bn={browserDebug:"browserDebug",clientPreview:"clientPreview",clientDebug:"clientDebug"},Wa={name:x("normalLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"normal",scene:"scan_qrcode"};x("clientPreviewMode");const Ua={name:x("createdLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"created",scene:"scan_qrcode"},Pg="game";x("browserDebugMode"),Bn.browserDebug,x("clientPreviewMode"),Bn.clientPreview;const N0="__TTMG_DEBUG_SETTING__";class OG{listeners=new Map;on(e,n){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(n),()=>this.off(e,n)}off(e,n){const r=this.listeners.get(e);r&&(r.delete(n),r.size===0&&this.listeners.delete(e))}emit(e,n){const r=this.listeners.get(e);r&&r.forEach(s=>{try{s(n)}catch(l){console.error(`Error in listener for event "${String(e)}":`,l)}})}removeAllListeners(e){this.listeners.delete(e)}clearAll(){this.listeners.clear()}}const Ee=new OG,IG="docMode",RG="TTMG_DOCS_CAPTURE",j0="mgebtz3do4nz2vpc",xw="10.75.192.135",lh=1024*1024,Oh=[{name:"main",size:2.76*lh,type:"main"},{name:"wasmcode",size:3.42*lh,type:"independent"},{name:"configBundle",size:1.28*lh,type:"independent"}],Dw=encodeURIComponent(`
|
|
13
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
14
|
+
<rect width="128" height="128" rx="24" fill="#eef6ff"/>
|
|
15
|
+
<path d="M64 22l36 20v44l-36 20-36-20V42l36-20z" fill="#7ab7f5"/>
|
|
16
|
+
<path d="M64 38l20 11v30L64 90 44 79V49l20-11z" fill="#1f8fff"/>
|
|
17
|
+
<circle cx="64" cy="64" r="10" fill="#ffffff"/>
|
|
18
|
+
</svg>
|
|
19
|
+
`);function NG(){return typeof window>"u"?new URLSearchParams:new URLSearchParams(window.location.search)}function Tg(){if(typeof window>"u")return!1;if(NG().get(IG)==="1")return!0;try{return window.localStorage.getItem(RG)==="1"}catch{return!1}}function jG(i){const e=i?.["X-TTMG-Docs-Lang"]||i?.["x-ttmg-docs-lang"];return e==="en-US"||e==="zh-CN"?e:"zh-CN"}function LG(i){try{return new URL(i,typeof window>"u"?"http://localhost":window.location.origin).pathname}catch{return i.split("?")[0]}}function AG(i){const e=jG(i);return{data:{schema:`snssdk1233://microapp?app_id=ttmg-doc-fixture&launch_from=devtool_docs&host=${xw}&host_list=${encodeURIComponent(JSON.stringify([xw]))}&port=3000&ws_port=2999`,nodeWsPort:4e3,nodeServerPort:3e3,nodeStaticBaseUrl:"http://127.0.0.1:3000",user:{user_id:"doc-user",email:"devtool-doc@example.com"},devToolVersion:"0.4.1",packages:Oh,engine:"cocos",clientKey:j0,checkResult:[],lang:e}}}function MG(){return{data:{name:"Coins Sort 20",client_key:j0,size:Oh.reduce((i,e)=>i+e.size,0),description:"A sample mini game used for DevTool documentation screenshots.",icon_url:`data:image/svg+xml;charset=utf-8,${Dw}`,display_icon_url:`data:image/svg+xml;charset=utf-8,${Dw}`,created_at:1728e6,privacy_policy_link:"https://example.com/privacy",terms_of_service_link:"https://example.com/terms",request_allowed_domains:["https://api.example.com","https://assets.example.com"],sandbox_info:{sandbox_id:"doc-sandbox"},app_id:"ttmg-doc-fixture",packages:Oh,update_time:1728e6,scopes:["user.info.basic","im.share"]}}}function $G({url:i,method:e,headers:n}){if(!Tg())return null;const r=LG(i),s=e.toUpperCase();return s==="GET"&&r==="/game/config"?AG(n):s==="GET"&&r==="/game/detail"?MG():r==="/game/config-fillback"?{isSuccess:!0,data:{}}:null}const FG=6e5,zG={error:{errorCode:-1,errorMsg:"Request failed"},isSuccess:!1,msg:"Request failed"},BG={error:{errorCode:-1,errorMsg:"Request timeout"},isSuccess:!1,msg:"Request timeout"};function Qi(i){const{url:e,method:n="GET",data:r=void 0,headers:s={},timeout:l=FG}=i;let c=e;const u={method:n,headers:{"Content-Type":"application/json",...s}};if(n.toUpperCase()==="GET"&&r){const y=new URLSearchParams(r).toString();c+=(c.includes("?")?"&":"?")+y}else r&&(u.body=JSON.stringify(r));const p=$G({url:c,method:n,headers:s});if(p)return Promise.resolve(p);const f=new AbortController,v=setTimeout(()=>f.abort(),l);return u.signal=f.signal,fetch(c,u).then(async y=>{if(!y.ok)return{error:{errorCode:-1,errorMsg:y.statusText},isSuccess:!1,msg:y.statusText};const S=y.headers.get("content-type");if(S&&S.includes("application/json"))try{const k=await y.text();return k.trim()?JSON.parse(k):{isSuccess:!0,data:{}}}catch(k){throw new Error(`Failed to parse JSON response: ${k instanceof Error?k.message:"Unknown error"}`)}else return y.text()}).catch(y=>y instanceof DOMException&&y.name==="AbortError"?BG:zG).finally(()=>{clearTimeout(v)})}const es={allowed_domains:[],client_key_type:2,stage:2,description:"TTMG Dev Game",entity:"",icon_big_url:"",icon_url:"",minis_category:"mini_game",minis_status:1,minis_tech_type:0,minis_type:2,scopes:["user.info.open_id","user.info.basic"],tos_url:"",update_time:Date.now(),status_code:0,status_msg:"",name:"TikTok Mini Game"};async function qG(i){const{scopes:e,update_time:n,display_icon_url:r,request_allowed_domains:s,name:l,terms_of_service_link:c,privacy_policy_link:u,description:p}=i||es,f=O0(),v={...es,tos_url:c,privacy_url:u,name:l||es.name,icon_url:r||es.icon_url,icon_big_url:r||es.icon_url,client_key:Pe.get("clientKey"),minis_url:`https://minis-${Pe.get("clientKey")}-vdebug-minigame.tiktok-minis.us/`,package_config:JSON.stringify({packages:Pe.get("packages")}),allowed_domains:s||[],status_code:0,status_msg:"",update_time:n,description:p,scopes:e};console.log(`🚀 ${x("startToSendMetaToClient")}`,v);const y=await Qi({url:`${f}/game/meta`,method:"POST",data:v,headers:{"Content-Type":"application/json"}});return console.log(`✅ ${x("sendMetaToClientSuccess")}`),y}async function Ow(){const i=document.getElementById(Pg);return new Promise(e=>{i.onload=()=>{i.onload=null,e(i)},i.contentWindow?.location.reload()})}const L0="debugMode";function Eg(i){return(i||"").trim().replace(/^v/i,"")}function GG(){const i=[Wa,Ua];try{const e=JSON.parse(localStorage.getItem(I0)||"[]");if(e.length){const n=e.filter(r=>r.id!==Ua.id).filter(r=>r.id!==Wa.id);return[Wa,...n,Ua]}else return i}catch{return i}}function WG(i){try{localStorage.setItem(I0,JSON.stringify(i))}catch(e){console.error("Failed to save launch options:",e)}}function UG(i){try{localStorage.setItem(N0,JSON.stringify(i))}catch(e){console.error("Failed to save debug setting:",e)}}function HG(){const i={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!1,enableDevInfoPanel:!0},e={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!0,enableDevInfoPanel:!0},r=A0()===Bn.browserDebug;try{const s=localStorage.getItem(N0);if(s){const l=JSON.parse(s);return r?{...l,enableVConsole:!1}:l}}catch(s){console.error("Failed to get debug setting:",s)}return r?i:e}function A0(){try{return M0()??Bn.browserDebug}catch(i){return console.error("Failed to get debug mode:",i),Bn.browserDebug}}function M0(){try{const i=localStorage.getItem(L0);return i&&Object.values(Bn).includes(i)?i:null}catch(i){return console.error("Failed to get stored debug mode:",i),null}}function $0(i){try{localStorage.setItem(L0,i)}catch(e){console.error("Failed to save debug mode:",e)}}function VG(){try{return Eg(localStorage.getItem(R0))}catch(i){return console.error("Failed to get changelog last seen version:",i),""}}function KG(i){const e=Eg(i);if(e)try{localStorage.setItem(R0,e)}catch(n){console.error("Failed to save changelog last seen version:",n)}}function QG(i){const e=Eg(i);if(!e)return!1;const n=VG();return n?e!==n:!0}function XG(){const i={header:"font-weight:700;font-size:16px",subtitle:"font-weight:600;font-size:12px",desc:"font-size:12px",supportVersion:"font-size:12px; background:#FFE4B5;padding:1px 6px;border-radius:3px; color:#8B4513",tagBrowser:"background:#4F8BFF;color:#fff;border-radius:3px;padding:1px 6px",tagClient:"background:#22C55E;color:#fff;border-radius:3px;padding:1px 6px",bulletKey:"font-weight:600",bulletVal:"font-size:12px",tip:"font-size:12px;font-style:italic"},e={browserRemoteDebugDesc:x("browserRemoteDebugDesc"),clientRealPreviewDesc:x("clientRealPreviewDesc"),scanTips:x("debug.scan.tips"),browser:{title:x("debug.mode.browser.title"),points:{logic:x("debug.mode.browser.point.logic"),devtools:x("debug.mode.browser.point.devtools"),preview:x("debug.mode.browser.point.preview")}},client:{title:x("debug.mode.client.title"),supportVersion:x("debug.mode.client.supportVersion"),points:{logic:x("debug.mode.client.point.logic"),vconsole:x("debug.mode.client.point.vconsole"),preview:x("debug.mode.client.point.preview")}},customTip:x("debug.mode.custom.tip")};console.log("%c%s",i.header,`📌 ${x("debug.guide.header")}`),console.log("%c%s",i.desc,e.scanTips),console.group("%c%s %cBROWSER",i.subtitle,e.browser.title,i.tagBrowser),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.browser.points.logic),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.browser.points.devtools),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.browser.points.preview),console.groupEnd(),console.group("%c%s %cDEVICE",i.subtitle,e.client.title,i.tagClient),console.log("%c%s",i.supportVersion,e.client.supportVersion),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.client.points.logic),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.client.points.vconsole),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.client.points.preview),console.groupEnd(),console.log("%c💡 %s",i.tip,e.customTip)}const YG="ttmg.";function ZG(i){return i===""||i==="1"||i==="true"}function F0(i){const e=YG+i;try{const n=new URLSearchParams(window.location.search);if(n.has(i)){const r=ZG(n.get(i));try{r?sessionStorage.setItem(e,"1"):sessionStorage.removeItem(e)}catch{}return r}}catch{}try{return sessionStorage.getItem(e)==="1"}catch{return!1}}const JG=F0("enableExperiment"),eW=F0("enableLocalDev");function HH(){return JG}function VH(){return eW}function ch({baseSchema:i,option:e,debugMode:n}){if(e){const{scene:r,pkgName:s,queries:l}=e;let u=`${i}&debugMode=${n}&_tiktok_minis_params=${encodeURIComponent(JSON.stringify({enter_from:r,ttmg_init_module:s}))}`;if(l){const p=xG(l);p&&Object.keys(p).forEach(f=>{u+=`&${f}=${encodeURIComponent(p[f])}`})}return u}else return i}const tW=-1001;function xg(i){return!!(i?.user_id||i?.email)}function Dg(i){const{errorCode:e,user:n}=i;return e===tW||e===0?"networkProxy":e?e===404?"notFound":e===403?"noPermission":e===401?xg(n)?"loginExpired":"notLoggedIn":"unknown":"ok"}function nW(i){const{clientKey:e,errorMsg:n}=i,r=Dg(i);return r==="notFound"?x("getDevGameDetailNotFound",{clientKey:e}):r==="noPermission"?x("gameDetailNoPermission",{clientKey:e}):r==="loginExpired"?x("gameLoginExpired",{clientKey:e}):r==="networkProxy"?x("gameDetailNetworkProxyBlocked",{clientKey:e}):r==="notLoggedIn"?x("gameDetailNotLogin",{clientKey:e}):n||""}const z0="tt-theme";function rW(){try{const i=window.localStorage.getItem(z0);if(i==="light"||i==="dark")return i}catch{}return null}function iW(i){try{window.localStorage.setItem(z0,i)}catch{}}function oW(){const i=rW();return i||"light"}function B0(i){if(typeof document>"u")return;const e=document.documentElement,n=document.body;e.setAttribute("data-theme",i),n&&(n.setAttribute("data-theme",i),n.setAttribute("theme-mode",i))}function Iw(i){B0(i),iW(i)}function sW(){return typeof document>"u"?"light":document.documentElement.getAttribute("data-theme")||"light"}function aW(){const i=oW();return B0(i),i}const lW={devToolVersion:"",engine:"unknown",isConnected:!1,hasSetup:!1,showManualBindIP:!1,debugMode:A0(),schema:"",devSchema:"",gameDetail:null,user:null,feature:{upload:!0,loginStatus:!0,debugSetting:!0,launchMode:!0,sidebar:{enable:!0,info:!1,launch:!1,setting:!1,log:!1,code:!1}},launchOptions:GG(),selectedLaunchOption:Wa,loading:{visible:!0,text:x("loading")},error:{text:""},message:{type:"info",title:x("disConnectionStatusTitle"),desc:x("disConnectionStatusDesc")},debugSetting:HG(),packages:[]};function cW(i,e){switch(e.type){case"SHOW_LOADING":return{...i,loading:{visible:!0,text:e.payload??x("loading")}};case"HIDE_LOADING":return{...i,loading:{...i.loading,visible:!1}};case"SET_MESSAGE":return{...i,message:e.payload};case"SET_IS_CONNECTED":return{...i,isConnected:e.payload};case"SET_SCHEMA":return{...i,schema:e.payload,devSchema:ch({baseSchema:e.payload,option:i.selectedLaunchOption,debugMode:i.debugMode})};case"CLEAR_MESSAGE":return{...i,message:{type:"info",title:"",desc:""}};case"SET_USER":return{...i,user:e.payload};case"SET_LAUNCH_OPTIONS":return WG(e.payload),{...i,launchOptions:e.payload};case"SET_SELECTED_LAUNCH_OPTION":return{...i,selectedLaunchOption:e.payload,devSchema:ch({baseSchema:i.schema,option:e.payload,debugMode:i.debugMode})};case"SET_PACKAGES":return{...i,packages:e.payload};case"SET_DEBUG_SETTING":return UG(e.payload),{...i,debugSetting:e.payload};case"SET_GAME_DETAIL":return{...i,gameDetail:e.payload};case"SET_HAS_SETUP":return{...i,hasSetup:e.payload};case"SET_ERROR":return{...i,error:e.payload};case"SET_DEV_TOOL_VERSION":return{...i,devToolVersion:e.payload};case"SET_DEBUG_MODE":return{...i,debugMode:e.payload,devSchema:ch({baseSchema:i.schema,option:i.selectedLaunchOption,debugMode:e.payload})};case"SET_SHOW_MANUAL_BIND_IP":return{...i,showManualBindIP:e.payload};case"SET_ENGINE":return{...i,engine:e.payload};default:return i}}const uW=({children:i})=>{const[e,n]=E.useReducer(cW,lW),r=E.useCallback(L=>{n({type:"SET_IS_CONNECTED",payload:L})},[]),s=E.useCallback(L=>{n({type:"SHOW_LOADING",payload:L})},[]),l=E.useCallback(()=>{setTimeout(()=>{n({type:"HIDE_LOADING"})},500)},[]),c=E.useCallback(L=>{n({type:"SET_MESSAGE",payload:L})},[]),u=E.useCallback(()=>{n({type:"CLEAR_MESSAGE"})},[]),p=E.useCallback(L=>{n({type:"SET_SCHEMA",payload:L})},[]),f=E.useCallback(L=>{n({type:"SET_USER",payload:L})},[]),v=E.useCallback(L=>{n({type:"SET_LAUNCH_OPTIONS",payload:L})},[]),y=E.useCallback(L=>{n({type:"SET_SELECTED_LAUNCH_OPTION",payload:L})},[]),S=E.useCallback(L=>{n({type:"SET_DEBUG_SETTING",payload:L})},[]),k=E.useCallback(L=>{n({type:"SET_PACKAGES",payload:L})},[]),T=E.useCallback(L=>{n({type:"SET_GAME_DETAIL",payload:L})},[]),b=E.useCallback(L=>{n({type:"SET_HAS_SETUP",payload:L})},[]),w=E.useCallback(L=>{n({type:"SET_ERROR",payload:L})},[]),D=E.useCallback(L=>{n({type:"SET_DEV_TOOL_VERSION",payload:L})},[]),O=E.useCallback(L=>{n({type:"SET_DEBUG_MODE",payload:L})},[]),N=E.useCallback(L=>{n({type:"SET_SHOW_MANUAL_BIND_IP",payload:L})},[]),M=E.useCallback(L=>{n({type:"SET_ENGINE",payload:L})},[]),z=E.useMemo(()=>({state:e,showLoading:s,hideLoading:l,setIsConnected:r,setSchema:p,setMessage:c,clearMessage:u,setUser:f,setLaunchOptions:v,setSelectedLaunchOption:y,setDebugSetting:S,setPackages:k,setGameDetail:T,setHasSetup:b,setError:w,setDevToolVersion:D,setDebugMode:O,setShowManualBindIP:N,setEngine:M}),[e,s,l,r,p,c,u,f,v,y,S,k,T,b,w,D,O,N,M]);return P.jsx(kg.Provider,{value:z,children:i})};var Rw="popstate";function Nw(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function dW(i={}){function e(r,s){let l=s.state?.masked,{pathname:c,search:u,hash:p}=l||r.location;return Ih("",{pathname:c,search:u,hash:p},s.state&&s.state.usr||null,s.state&&s.state.key||"default",l?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,s){return typeof s=="string"?s:ps(s)}return fW(e,n,null,i)}function He(i,e){if(i===!1||i===null||typeof i>"u")throw new Error(e)}function kn(i,e){if(!i){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function pW(){return Math.random().toString(36).substring(2,10)}function jw(i,e){return{usr:i.state,key:i.key,idx:e,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Ih(i,e,n=null,r,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof e=="string"?no(e):e,state:n,key:e&&e.key||r||pW(),unstable_mask:s}}function ps({pathname:i="/",search:e="",hash:n=""}){return e&&e!=="?"&&(i+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(i+=n.charAt(0)==="#"?n:"#"+n),i}function no(i){let e={};if(i){let n=i.indexOf("#");n>=0&&(e.hash=i.substring(n),i=i.substring(0,n));let r=i.indexOf("?");r>=0&&(e.search=i.substring(r),i=i.substring(0,r)),i&&(e.pathname=i)}return e}function fW(i,e,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,c=s.history,u="POP",p=null,f=v();f==null&&(f=0,c.replaceState({...c.state,idx:f},""));function v(){return(c.state||{idx:null}).idx}function y(){u="POP";let w=v(),D=w==null?null:w-f;f=w,p&&p({action:u,location:b.location,delta:D})}function S(w,D){u="PUSH";let O=Nw(w)?w:Ih(b.location,w,D);f=v()+1;let N=jw(O,f),M=b.createHref(O.unstable_mask||O);try{c.pushState(N,"",M)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(M)}l&&p&&p({action:u,location:b.location,delta:1})}function k(w,D){u="REPLACE";let O=Nw(w)?w:Ih(b.location,w,D);f=v();let N=jw(O,f),M=b.createHref(O.unstable_mask||O);c.replaceState(N,"",M),l&&p&&p({action:u,location:b.location,delta:0})}function T(w){return hW(w)}let b={get action(){return u},get location(){return i(s,c)},listen(w){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Rw,y),p=w,()=>{s.removeEventListener(Rw,y),p=null}},createHref(w){return e(s,w)},createURL:T,encodeLocation(w){let D=T(w);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:S,replace:k,go(w){return c.go(w)}};return b}function hW(i,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),He(n,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:ps(i);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function q0(i,e,n="/"){return gW(i,e,n,!1)}function gW(i,e,n,r){let s=typeof e=="string"?no(e):e,l=or(s.pathname||"/",n);if(l==null)return null;let c=G0(i);mW(c);let u=null;for(let p=0;u==null&&p<c.length;++p){let f=EW(l);u=PW(c[p],f,r)}return u}function G0(i,e=[],n=[],r="",s=!1){let l=(c,u,p=s,f)=>{let v={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&p)return;He(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=Fn([r,v.relativePath]),S=n.concat(v);c.children&&c.children.length>0&&(He(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),G0(c.children,e,S,y,p)),!(c.path==null&&!c.index)&&e.push({path:y,score:_W(y,c.index),routesMeta:S})};return i.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))l(c,u);else for(let p of W0(c.path))l(c,u,!0,p)}),e}function W0(i){let e=i.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return s?[l,""]:[l];let c=W0(r.join("/")),u=[];return u.push(...c.map(p=>p===""?l:[l,p].join("/"))),s&&u.push(...c),u.map(p=>i.startsWith("/")&&p===""?"/":p)}function mW(i){i.sort((e,n)=>e.score!==n.score?n.score-e.score:kW(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var yW=/^:[\w-]+$/,vW=3,bW=2,SW=1,wW=10,CW=-2,Lw=i=>i==="*";function _W(i,e){let n=i.split("/"),r=n.length;return n.some(Lw)&&(r+=CW),e&&(r+=bW),n.filter(s=>!Lw(s)).reduce((s,l)=>s+(yW.test(l)?vW:l===""?SW:wW),r)}function kW(i,e){return i.length===e.length&&i.slice(0,-1).every((r,s)=>r===e[s])?i[i.length-1]-e[e.length-1]:0}function PW(i,e,n=!1){let{routesMeta:r}=i,s={},l="/",c=[];for(let u=0;u<r.length;++u){let p=r[u],f=u===r.length-1,v=l==="/"?e:e.slice(l.length)||"/",y=Ja({path:p.relativePath,caseSensitive:p.caseSensitive,end:f},v),S=p.route;if(!y&&f&&n&&!r[r.length-1].route.index&&(y=Ja({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!y)return null;Object.assign(s,y.params),c.push({params:s,pathname:Fn([l,y.pathname]),pathnameBase:IW(Fn([l,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(l=Fn([l,y.pathnameBase]))}return c}function Ja(i,e){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[n,r]=TW(i.path,i.caseSensitive,i.end),s=e.match(n);if(!s)return null;let l=s[0],c=l.replace(/(.)\/+$/,"$1"),u=s.slice(1);return{params:r.reduce((f,{paramName:v,isOptional:y},S)=>{if(v==="*"){let T=u[S]||"";c=l.slice(0,l.length-T.length).replace(/(.)\/+$/,"$1")}const k=u[S];return y&&!k?f[v]=void 0:f[v]=(k||"").replace(/%2F/g,"/"),f},{}),pathname:l,pathnameBase:c,pattern:i}}function TW(i,e=!1,n=!0){kn(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],s="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,p,f,v)=>{if(r.push({paramName:u,isOptional:p!=null}),p){let y=v.charAt(f+c.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),s+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":i!==""&&i!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function EW(i){try{return i.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return kn(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),i}}function or(i,e){if(e==="/")return i;if(!i.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=i.charAt(n);return r&&r!=="/"?null:i.slice(n)||"/"}var xW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function DW(i,e="/"){let{pathname:n,search:r="",hash:s=""}=typeof i=="string"?no(i):i,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=Aw(n.substring(1),"/"):l=Aw(n,e)):l=e,{pathname:l,search:RW(r),hash:NW(s)}}function Aw(i,e){let n=e.replace(/\/+$/,"").split("/");return i.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function uh(i,e,n,r){return`Cannot include a '${i}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function OW(i){return i.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Og(i){let e=OW(i);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function xl(i,e,n,r=!1){let s;typeof i=="string"?s=no(i):(s={...i},He(!s.pathname||!s.pathname.includes("?"),uh("?","pathname","search",s)),He(!s.pathname||!s.pathname.includes("#"),uh("#","pathname","hash",s)),He(!s.search||!s.search.includes("#"),uh("#","search","hash",s)));let l=i===""||s.pathname==="",c=l?"/":s.pathname,u;if(c==null)u=n;else{let y=e.length-1;if(!r&&c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),y-=1;s.pathname=S.join("/")}u=y>=0?e[y]:"/"}let p=DW(s,u),f=c&&c!=="/"&&c.endsWith("/"),v=(l||c===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(f||v)&&(p.pathname+="/"),p}var Fn=i=>i.join("/").replace(/\/\/+/g,"/"),IW=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),RW=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,NW=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,jW=class{constructor(i,e,n,r=!1){this.status=i,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function LW(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function AW(i){return i.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var U0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function H0(i,e){let n=i;if(typeof n!="string"||!xW.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(U0)try{let l=new URL(window.location.href),c=n.startsWith("//")?new URL(l.protocol+n):new URL(n),u=or(c.pathname,e);c.origin===l.origin&&u!=null?n=u+c.search+c.hash:s=!0}catch{kn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var V0=["POST","PUT","PATCH","DELETE"];new Set(V0);var MW=["GET",...V0];new Set(MW);var ro=E.createContext(null);ro.displayName="DataRouter";var Dl=E.createContext(null);Dl.displayName="DataRouterState";var $W=E.createContext(!1),K0=E.createContext({isTransitioning:!1});K0.displayName="ViewTransition";var FW=E.createContext(new Map);FW.displayName="Fetchers";var zW=E.createContext(null);zW.displayName="Await";var Jt=E.createContext(null);Jt.displayName="Navigation";var Cs=E.createContext(null);Cs.displayName="Location";var En=E.createContext({outlet:null,matches:[],isDataRoute:!1});En.displayName="Route";var Ig=E.createContext(null);Ig.displayName="RouteError";var Q0="REACT_ROUTER_ERROR",BW="REDIRECT",qW="ROUTE_ERROR_RESPONSE";function GW(i){if(i.startsWith(`${Q0}:${BW}:{`))try{let e=JSON.parse(i.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function WW(i){if(i.startsWith(`${Q0}:${qW}:{`))try{let e=JSON.parse(i.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new jW(e.status,e.statusText,e.data)}catch{}}function UW(i,{relative:e}={}){He(io(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Jt),{hash:s,pathname:l,search:c}=ks(i,{relative:e}),u=l;return n!=="/"&&(u=l==="/"?n:Fn([n,l])),r.createHref({pathname:u,search:c,hash:s})}function io(){return E.useContext(Cs)!=null}function ar(){return He(io(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Cs).location}var X0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Y0(i){E.useContext(Jt).static||E.useLayoutEffect(i)}function _s(){let{isDataRoute:i}=E.useContext(En);return i?iU():HW()}function HW(){He(io(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(ro),{basename:e,navigator:n}=E.useContext(Jt),{matches:r}=E.useContext(En),{pathname:s}=ar(),l=JSON.stringify(Og(r)),c=E.useRef(!1);return Y0(()=>{c.current=!0}),E.useCallback((p,f={})=>{if(kn(c.current,X0),!c.current)return;if(typeof p=="number"){n.go(p);return}let v=xl(p,JSON.parse(l),s,f.relative==="path");i==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:Fn([e,v.pathname])),(f.replace?n.replace:n.push)(v,f.state,f)},[e,n,l,s,i])}E.createContext(null);function KH(){let{matches:i}=E.useContext(En),e=i[i.length-1];return e?e.params:{}}function ks(i,{relative:e}={}){let{matches:n}=E.useContext(En),{pathname:r}=ar(),s=JSON.stringify(Og(n));return E.useMemo(()=>xl(i,JSON.parse(s),r,e==="path"),[i,s,r,e])}function VW(i,e){return Z0(i,e)}function Z0(i,e,n){He(io(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(Jt),{matches:s}=E.useContext(En),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",p=l?l.pathnameBase:"/",f=l&&l.route;{let w=f&&f.path||"";e_(u,!f||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
20
|
+
|
|
21
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let v=ar(),y;if(e){let w=typeof e=="string"?no(e):e;He(p==="/"||w.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${w.pathname}" was given in the \`location\` prop.`),y=w}else y=v;let S=y.pathname||"/",k=S;if(p!=="/"){let w=p.replace(/^\//,"").split("/");k="/"+S.replace(/^\//,"").split("/").slice(w.length).join("/")}let T=q0(i,{pathname:k});kn(f||T!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),kn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=ZW(T&&T.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:Fn([p,r.encodeLocation?r.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:Fn([p,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),s,n);return e&&b?E.createElement(Cs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},b):b}function KW(){let i=rU(),e=LW(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),n=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",i),c=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:l},"ErrorBoundary")," or"," ",E.createElement("code",{style:l},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:s},n):null,c)}var QW=E.createElement(KW,null),J0=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,e){return e.location!==i.location||e.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:e.error,location:e.location,revalidation:i.revalidation||e.revalidation}}componentDidCatch(i,e){this.props.onError?this.props.onError(i,e):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const n=WW(i.digest);n&&(i=n)}let e=i!==void 0?E.createElement(En.Provider,{value:this.props.routeContext},E.createElement(Ig.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(XW,{error:i},e):e}};J0.contextType=$W;var dh=new WeakMap;function XW({children:i,error:e}){let{basename:n}=E.useContext(Jt);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=GW(e.digest);if(r){let s=dh.get(e);if(s)throw s;let l=H0(r.location,n);if(U0&&!dh.get(e))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw dh.set(e,c),c}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return i}function YW({routeContext:i,match:e,children:n}){let r=E.useContext(ro);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),E.createElement(En.Provider,{value:i},n)}function ZW(i,e=[],n){let r=n?.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let s=i,l=r?.errors;if(l!=null){let v=s.findIndex(y=>y.route.id&&l?.[y.route.id]!==void 0);He(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let c=!1,u=-1;if(n&&r){c=r.renderFallback;for(let v=0;v<s.length;v++){let y=s[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(u=v),y.route.id){let{loaderData:S,errors:k}=r,T=y.route.loader&&!S.hasOwnProperty(y.route.id)&&(!k||k[y.route.id]===void 0);if(y.route.lazy||T){n.isStatic&&(c=!0),u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}}let p=n?.onError,f=r&&p?(v,y)=>{p(v,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:AW(r.matches),errorInfo:y})}:void 0;return s.reduceRight((v,y,S)=>{let k,T=!1,b=null,w=null;r&&(k=l&&y.route.id?l[y.route.id]:void 0,b=y.route.errorElement||QW,c&&(u<0&&S===0?(e_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,w=null):u===S&&(T=!0,w=y.route.hydrateFallbackElement||null)));let D=e.concat(s.slice(0,S+1)),O=()=>{let N;return k?N=b:T?N=w:y.route.Component?N=E.createElement(y.route.Component,null):y.route.element?N=y.route.element:N=v,E.createElement(YW,{match:y,routeContext:{outlet:v,matches:D,isDataRoute:r!=null},children:N})};return r&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?E.createElement(J0,{location:r.location,revalidation:r.revalidation,component:b,error:k,children:O(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:f}):O()},null)}function Rg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function JW(i){let e=E.useContext(ro);return He(e,Rg(i)),e}function eU(i){let e=E.useContext(Dl);return He(e,Rg(i)),e}function tU(i){let e=E.useContext(En);return He(e,Rg(i)),e}function Ng(i){let e=tU(i),n=e.matches[e.matches.length-1];return He(n.route.id,`${i} can only be used on routes that contain a unique "id"`),n.route.id}function nU(){return Ng("useRouteId")}function rU(){let i=E.useContext(Ig),e=eU("useRouteError"),n=Ng("useRouteError");return i!==void 0?i:e.errors?.[n]}function iU(){let{router:i}=JW("useNavigate"),e=Ng("useNavigate"),n=E.useRef(!1);return Y0(()=>{n.current=!0}),E.useCallback(async(s,l={})=>{kn(n.current,X0),n.current&&(typeof s=="number"?await i.navigate(s):await i.navigate(s,{fromRouteId:e,...l}))},[i,e])}var Mw={};function e_(i,e,n){!e&&!Mw[i]&&(Mw[i]=!0,kn(!1,n))}E.memo(oU);function oU({routes:i,future:e,state:n,isStatic:r,onError:s}){return Z0(i,void 0,{state:n,isStatic:r,onError:s})}function ph({to:i,replace:e,state:n,relative:r}){He(io(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=E.useContext(Jt);kn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=E.useContext(En),{pathname:c}=ar(),u=_s(),p=xl(i,Og(l),c,r==="path"),f=JSON.stringify(p);return E.useEffect(()=>{u(JSON.parse(f),{replace:e,state:n,relative:r})},[u,f,r,e,n]),null}function at(i){He(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function sU({basename:i="/",children:e=null,location:n,navigationType:r="POP",navigator:s,static:l=!1,unstable_useTransitions:c}){He(!io(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=i.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:u,navigator:s,static:l,unstable_useTransitions:c,future:{}}),[u,s,l,c]);typeof n=="string"&&(n=no(n));let{pathname:f="/",search:v="",hash:y="",state:S=null,key:k="default",unstable_mask:T}=n,b=E.useMemo(()=>{let w=or(f,u);return w==null?null:{location:{pathname:w,search:v,hash:y,state:S,key:k,unstable_mask:T},navigationType:r}},[u,f,v,y,S,k,r,T]);return kn(b!=null,`<Router basename="${u}"> is not able to match the URL "${f}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:E.createElement(Jt.Provider,{value:p},E.createElement(Cs.Provider,{children:e,value:b}))}function aU({children:i,location:e}){return VW(Rh(i),e)}function Rh(i,e=[]){let n=[];return E.Children.forEach(i,(r,s)=>{if(!E.isValidElement(r))return;let l=[...e,s];if(r.type===E.Fragment){n.push.apply(n,Rh(r.props.children,l));return}He(r.type===at,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Rh(r.props.children,l)),n.push(c)}),n}var Ha="get",Va="application/x-www-form-urlencoded";function Ol(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function lU(i){return Ol(i)&&i.tagName.toLowerCase()==="button"}function cU(i){return Ol(i)&&i.tagName.toLowerCase()==="form"}function uU(i){return Ol(i)&&i.tagName.toLowerCase()==="input"}function dU(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function pU(i,e){return i.button===0&&(!e||e==="_self")&&!dU(i)}var Fa=null;function fU(){if(Fa===null)try{new FormData(document.createElement("form"),0),Fa=!1}catch{Fa=!0}return Fa}var hU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fh(i){return i!=null&&!hU.has(i)?(kn(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Va}"`),null):i}function gU(i,e){let n,r,s,l,c;if(cU(i)){let u=i.getAttribute("action");r=u?or(u,e):null,n=i.getAttribute("method")||Ha,s=fh(i.getAttribute("enctype"))||Va,l=new FormData(i)}else if(lU(i)||uU(i)&&(i.type==="submit"||i.type==="image")){let u=i.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||u.getAttribute("action");if(r=p?or(p,e):null,n=i.getAttribute("formmethod")||u.getAttribute("method")||Ha,s=fh(i.getAttribute("formenctype"))||fh(u.getAttribute("enctype"))||Va,l=new FormData(u,i),!fU()){let{name:f,type:v,value:y}=i;if(v==="image"){let S=f?`${f}.`:"";l.append(`${S}x`,"0"),l.append(`${S}y`,"0")}else f&&l.append(f,y)}}else{if(Ol(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ha,r=null,s=Va,c=i}return l&&s==="text/plain"&&(c=l,l=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:l,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jg(i,e){if(i===!1||i===null||typeof i>"u")throw new Error(e)}function mU(i,e,n,r){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:e&&or(s.pathname,e)==="/"?s.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${r}`,s}async function yU(i,e){if(i.id in e)return e[i.id];try{let n=await import(i.module);return e[i.id]=n,n}catch(n){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function vU(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function bU(i,e,n){let r=await Promise.all(i.map(async s=>{let l=e.routes[s.route.id];if(l){let c=await yU(l,n);return c.links?c.links():[]}return[]}));return _U(r.flat(1).filter(vU).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function $w(i,e,n,r,s,l){let c=(p,f)=>n[f]?p.route.id!==n[f].route.id:!0,u=(p,f)=>n[f].pathname!==p.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==p.params["*"];return l==="assets"?e.filter((p,f)=>c(p,f)||u(p,f)):l==="data"?e.filter((p,f)=>{let v=r.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(c(p,f)||u(p,f))return!0;if(p.route.shouldRevalidate){let y=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function SU(i,e,{includeHydrateFallback:n}={}){return wU(i.map(r=>{let s=e.routes[r.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function wU(i){return[...new Set(i)]}function CU(i){let e={},n=Object.keys(i).sort();for(let r of n)e[r]=i[r];return e}function _U(i,e){let n=new Set;return new Set(e),i.reduce((r,s)=>{let l=JSON.stringify(CU(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function t_(){let i=E.useContext(ro);return jg(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function kU(){let i=E.useContext(Dl);return jg(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Lg=E.createContext(void 0);Lg.displayName="FrameworkContext";function n_(){let i=E.useContext(Lg);return jg(i,"You must render this element inside a <HydratedRouter> element"),i}function PU(i,e){let n=E.useContext(Lg),[r,s]=E.useState(!1),[l,c]=E.useState(!1),{onFocus:u,onBlur:p,onMouseEnter:f,onMouseLeave:v,onTouchStart:y}=e,S=E.useRef(null);E.useEffect(()=>{if(i==="render"&&c(!0),i==="viewport"){let b=D=>{D.forEach(O=>{c(O.isIntersecting)})},w=new IntersectionObserver(b,{threshold:.5});return S.current&&w.observe(S.current),()=>{w.disconnect()}}},[i]),E.useEffect(()=>{if(r){let b=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(b)}}},[r]);let k=()=>{s(!0)},T=()=>{s(!1),c(!1)};return n?i!=="intent"?[l,S,{}]:[l,S,{onFocus:ts(u,k),onBlur:ts(p,T),onMouseEnter:ts(f,k),onMouseLeave:ts(v,T),onTouchStart:ts(y,k)}]:[!1,S,{}]}function ts(i,e){return n=>{i&&i(n),n.defaultPrevented||e(n)}}function TU({page:i,...e}){let{router:n}=t_(),r=E.useMemo(()=>q0(n.routes,i,n.basename),[n.routes,i,n.basename]);return r?E.createElement(xU,{page:i,matches:r,...e}):null}function EU(i){let{manifest:e,routeModules:n}=n_(),[r,s]=E.useState([]);return E.useEffect(()=>{let l=!1;return bU(i,e,n).then(c=>{l||s(c)}),()=>{l=!0}},[i,e,n]),r}function xU({page:i,matches:e,...n}){let r=ar(),{future:s,manifest:l,routeModules:c}=n_(),{basename:u}=t_(),{loaderData:p,matches:f}=kU(),v=E.useMemo(()=>$w(i,e,f,l,r,"data"),[i,e,f,l,r]),y=E.useMemo(()=>$w(i,e,f,l,r,"assets"),[i,e,f,l,r]),S=E.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let b=new Set,w=!1;if(e.forEach(O=>{let N=l.routes[O.route.id];!N||!N.hasLoader||(!v.some(M=>M.route.id===O.route.id)&&O.route.id in p&&c[O.route.id]?.shouldRevalidate||N.hasClientLoader?w=!0:b.add(O.route.id))}),b.size===0)return[];let D=mU(i,u,s.unstable_trailingSlashAwareDataRequests,"data");return w&&b.size>0&&D.searchParams.set("_routes",e.filter(O=>b.has(O.route.id)).map(O=>O.route.id).join(",")),[D.pathname+D.search]},[u,s.unstable_trailingSlashAwareDataRequests,p,r,l,v,e,i,c]),k=E.useMemo(()=>SU(y,l),[y,l]),T=EU(y);return E.createElement(E.Fragment,null,S.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),k.map(b=>E.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),T.map(({key:b,link:w})=>E.createElement("link",{key:b,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function DU(...i){return e=>{i.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var OU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{OU&&(window.__reactRouterVersion="7.13.1")}catch{}function IU({basename:i,children:e,unstable_useTransitions:n,window:r}){let s=E.useRef();s.current==null&&(s.current=dW({window:r,v5Compat:!0}));let l=s.current,[c,u]=E.useState({action:l.action,location:l.location}),p=E.useCallback(f=>{n===!1?u(f):E.startTransition(()=>u(f))},[n]);return E.useLayoutEffect(()=>l.listen(p),[l,p]),E.createElement(sU,{basename:i,children:e,location:c.location,navigationType:c.action,navigator:l,unstable_useTransitions:n})}var r_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i_=E.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:c,unstable_mask:u,state:p,target:f,to:v,preventScrollReset:y,viewTransition:S,unstable_defaultShouldRevalidate:k,...T},b){let{basename:w,navigator:D,unstable_useTransitions:O}=E.useContext(Jt),N=typeof v=="string"&&r_.test(v),M=H0(v,w);v=M.to;let z=UW(v,{relative:s}),L=ar(),j=null;if(u){let J=xl(u,[],L.unstable_mask?L.unstable_mask.pathname:"/",!0);w!=="/"&&(J.pathname=J.pathname==="/"?w:Fn([w,J.pathname])),j=D.createHref(J)}let[F,U,V]=PU(r,T),K=LU(v,{replace:c,unstable_mask:u,state:p,target:f,preventScrollReset:y,relative:s,viewTransition:S,unstable_defaultShouldRevalidate:k,unstable_useTransitions:O});function ie(J){e&&e(J),J.defaultPrevented||K(J)}let ne=!(M.isExternal||l),ae=E.createElement("a",{...T,...V,href:(ne?j:void 0)||M.absoluteURL||z,onClick:ne?ie:e,ref:DU(b,U),target:f,"data-discover":!N&&n==="render"?"true":void 0});return F&&!N?E.createElement(E.Fragment,null,ae,E.createElement(TU,{page:z})):ae});i_.displayName="Link";var RU=E.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:c,viewTransition:u,children:p,...f},v){let y=ks(c,{relative:f.relative}),S=ar(),k=E.useContext(Dl),{navigator:T,basename:b}=E.useContext(Jt),w=k!=null&&zU(y)&&u===!0,D=T.encodeLocation?T.encodeLocation(y).pathname:y.pathname,O=S.pathname,N=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;n||(O=O.toLowerCase(),N=N?N.toLowerCase():null,D=D.toLowerCase()),N&&b&&(N=or(N,b)||N);const M=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let z=O===D||!s&&O.startsWith(D)&&O.charAt(M)==="/",L=N!=null&&(N===D||!s&&N.startsWith(D)&&N.charAt(D.length)==="/"),j={isActive:z,isPending:L,isTransitioning:w},F=z?e:void 0,U;typeof r=="function"?U=r(j):U=[r,z?"active":null,L?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let V=typeof l=="function"?l(j):l;return E.createElement(i_,{...f,"aria-current":F,className:U,ref:v,style:V,to:c,viewTransition:u},typeof p=="function"?p(j):p)});RU.displayName="NavLink";var NU=E.forwardRef(({discover:i="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:s,state:l,method:c=Ha,action:u,onSubmit:p,relative:f,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:S,...k},T)=>{let{unstable_useTransitions:b}=E.useContext(Jt),w=$U(),D=FU(u,{relative:f}),O=c.toLowerCase()==="get"?"get":"post",N=typeof u=="string"&&r_.test(u),M=z=>{if(p&&p(z),z.defaultPrevented)return;z.preventDefault();let L=z.nativeEvent.submitter,j=L?.getAttribute("formmethod")||c,F=()=>w(L||z.currentTarget,{fetcherKey:e,method:j,navigate:n,replace:s,state:l,relative:f,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:S});b&&n!==!1?E.startTransition(()=>F()):F()};return E.createElement("form",{ref:T,method:O,action:D,onSubmit:r?p:M,...k,"data-discover":!N&&i==="render"?"true":void 0})});NU.displayName="Form";function jU(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function o_(i){let e=E.useContext(ro);return He(e,jU(i)),e}function LU(i,{target:e,replace:n,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p,unstable_useTransitions:f}={}){let v=_s(),y=ar(),S=ks(i,{relative:c});return E.useCallback(k=>{if(pU(k,e)){k.preventDefault();let T=n!==void 0?n:ps(y)===ps(S),b=()=>v(i,{replace:T,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p});f?E.startTransition(()=>b()):b()}},[y,v,S,n,r,s,e,i,l,c,u,p,f])}var AU=0,MU=()=>`__${String(++AU)}__`;function $U(){let{router:i}=o_("useSubmit"),{basename:e}=E.useContext(Jt),n=nU(),r=i.fetch,s=i.navigate;return E.useCallback(async(l,c={})=>{let{action:u,method:p,encType:f,formData:v,body:y}=gU(l,e);if(c.navigate===!1){let S=c.fetcherKey||MU();await r(S,n,c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||f,flushSync:c.flushSync})}else await s(c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||f,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,s,e,n])}function FU(i,{relative:e}={}){let{basename:n}=E.useContext(Jt),r=E.useContext(En);He(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...ks(i||".",{relative:e})},c=ar();if(i==null){l.search=c.search;let u=new URLSearchParams(l.search),p=u.getAll("index");if(p.some(v=>v==="")){u.delete("index"),p.filter(y=>y).forEach(y=>u.append("index",y));let v=u.toString();l.search=v?`?${v}`:""}}return(!i||i===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Fn([n,l.pathname])),ps(l)}function zU(i,{relative:e}={}){let n=E.useContext(K0);He(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=o_("useViewTransitionState"),s=ks(i,{relative:e});if(!n.isTransitioning)return!1;let l=or(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=or(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ja(s.pathname,c)!=null||Ja(s.pathname,l)!=null}var BU=Object.defineProperty,Fw=Object.getOwnPropertySymbols,qU=Object.prototype.hasOwnProperty,GU=Object.prototype.propertyIsEnumerable,zw=(i,e,n)=>e in i?BU(i,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[e]=n,WU=(i,e)=>{for(var n in e||(e={}))qU.call(e,n)&&zw(i,n,e[n]);if(Fw)for(var n of Fw(e))GU.call(e,n)&&zw(i,n,e[n]);return i};function UU(i){return E.createElement("svg",WU({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},i),E.createElement("rect",{width:200,height:200,fill:"transparent"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.09 64.86V8.56L5.76 78.94h44.26v20.3h14.07v-20.3h8.82V64.86h-8.82Zm110.18 0V8.56L124.1 69.08c.7-3.74 1.07-7.7 1.07-11.76 0-11-2.7-21.1-7.25-28.55-4.5-7.4-11.13-12.63-19-12.63-7.88 0-14.5 5.23-19.01 12.63-4.54 7.45-7.25 17.55-7.25 28.55s2.7 21.1 7.25 28.55c4.5 7.4 11.13 12.62 19 12.62 7.88 0 14.5-5.23 19.01-12.62a44.09 44.09 0 0 0 3.4-6.93h38.86v20.3h14.08v-20.3h8.81V64.86h-8.81Zm-138.57 0L50.02 47.6v17.26H35.7Zm124.5 0h-14.32L160.2 47.6v17.26Zm-49.1-7.54c0 8.84-2.2 16.32-5.19 21.22-3.08 5.08-5.87 5.87-6.98 5.87-1.12 0-3.9-.8-7-5.87-2.98-4.9-5.19-12.38-5.19-21.22 0-8.85 2.21-16.33 5.2-21.23 3.09-5.07 5.87-5.87 6.98-5.87 1.12 0 3.9.8 7 5.87 2.98 4.9 5.19 12.38 5.19 21.23Z",fill:"var(--semi-color-primary-light-default)"}),E.createElement("path",{d:"M178.34 186.57c-1.85 2.2-6.66 1.02-8.13.24a2.46 2.46 0 0 1-.34-.22c-1.94.22-14.94-.5-15.12-.46-6.12 1.43-14.06 1.03-15.2 1-1.36-.05-4.53-1.33-5.75-5.08-1.2-3.67 0-7.12 2.16-13.37l.13-.38-1.43 2.83c-7.37 14.43-11.05 19.7-17.43 20.14-6.38.45-34.34-.09-41.09-.78-6.75-.7-9.42-1.68-9.35-2.83.05-.92 2.98-2.2 4.44-2.72-5.88-1.57-20.16-5.97-30.18-10.98-12.52-6.26-25.14-15.8-21.91-28.92 3.22-13.13 15.76-16.8 25.59-17.38 2.75-.16 5.14-.1 7.16.07 3.76.33 6.21 1.06 7.2 1.53-1.12-6.37-3.33-19.34-3.33-20.21 0-1.1-3.02-10.67-3.64-14.35-.1-.55-1.11-5.6 3.64-5.02 4.75.57 12.4 18.2 15.88 28.7a401.55 401.55 0 0 0 11.15-9.87c.84-1.02 9.36-9.75 14.87-13.84a60.09 60.09 0 0 1 33-11.76c16.29-.81 34.49 2.36 40.9 11.91 6.4 9.55 6.1 34.44 6.44 48.71.35 14.27.84 27.64 2.11 29.76 1.27 2.12 6.45 5.02 9.77 7.14 3.33 2.11 4.45 3.9 4.36 4.2-.1.3-.4.58-2.24 1.08.34.47.12 1.38-2.12 1.6-4.7.48-8.64-.74-11.54-.74Z",fill:"white"}),E.createElement("path",{d:"M192 185.71c-1.6-2.3-9.7-5.34-15.04-5.75-5.34-.41-6.45.53-7.4 1.85-1 1.37-1.05 3.72.3 4.78m22.14-.88c.34.47.12 1.38-2.12 1.6-4.7.48-8.64-.74-11.54-.74-1.85 2.2-6.66 1.02-8.13.24a2.46 2.46 0 0 1-.34-.22m22.13-.88c1.84-.5 2.15-.78 2.24-1.08.09-.3-1.03-2.09-4.36-4.2-3.32-2.12-8.5-5.02-9.77-7.14-1.27-2.12-1.76-15.49-2.1-29.76-.36-14.27-.06-39.16-6.46-48.7-6.4-9.56-24.6-12.73-40.89-11.92a60.09 60.09 0 0 0-33 11.76c-5.5 4.09-14.03 12.82-14.87 13.84-.37.46-5.43 4.9-11.15 9.87-3.49-10.5-11.13-28.13-15.88-28.7-4.75-.58-3.73 4.47-3.64 5.02.62 3.68 3.64 13.26 3.64 14.35 0 .87 2.21 13.84 3.32 20.2-.98-.46-3.43-1.2-7.19-1.52m19.34 57.21c-5.88-1.57-20.16-5.97-30.18-10.98-12.52-6.26-25.14-15.8-21.91-28.92 3.22-13.13 15.76-16.8 25.59-17.38 2.75-.16 5.14-.1 7.16.07m19.34 57.21c-1.46.52-4.39 1.8-4.44 2.72-.07 1.15 2.6 2.14 9.35 2.83 6.75.7 34.71 1.23 41.09.78 6.38-.44 10.06-5.71 17.43-20.14l1.43-2.83m-64.86 16.64c5.89-2.49 12.35-6.32 16.49-10.11 5.07-4.65 9.55-13.46 9.96-14.28l.82-1.56m43.43 4.15c-.47-3-1.21-7.33.37-14.67 1.47-6.81 6.6-15.3 6.65-11.03.05 4-6.05 17.35-12.86 30.86m0 0c-2.25 6.5-3.51 10-2.3 13.75 1.23 3.75 4.4 5.03 5.76 5.07 1.14.04 9.08.44 15.2-.99m0 0a19.5 19.5 0 0 0 3.27-1.03c6.09-2.63 10.92-8.55 13.53-24.26 2.62-15.71 1.5-42.36-10.29-50.78-11.78-8.41-21.32-6.07-34.03 5.8-5.34 4.98-11.86 14.52-17.42 23.52m44.94 46.75c.18-.04 13.19.68 15.12.46m-60.06-47.2c-.8-3.66-1.44-7.16-1.94-10.43m1.94 10.42c-1.24 2-2.43 3.98-3.55 5.87m.32-30.9c0 3.75.41 8.8 1.3 14.61m0 0c-2.32 2.46-7.78 7.15-13.67 11.55m-42.32-12.78s1.24 7.12 3.87 11.42a29.93 29.93 0 0 0 6.61 7.8m36.13 12.04c-6.87-3.1-17.87-6.8-22.51-8.27m22.51 8.27a394.7 394.7 0 0 1 7.76-13.74M76 150.72c.39-.06.78-.14 1.17-.23 3.97-.93 10.76-5.29 17.05-9.98m-18.22 10.2c-4.7.8-9.36-.34-13.62-3.76m0 0c-3.29-.85-11.28-2.39-12.86-2.41m56.75.71c-2.32-.94-9-3.55-12.05-4.74",stroke:"#515151"}),E.createElement("path",{d:"m77.74 73.31 23.73 43.2-1.7 2.5-22.73 9.55-24.58-44.48 21.9-10.77h3.38Z",fill:"#E6E8EA"}),E.createElement("path",{d:"M74.35 73.31h3.4l23.72 43.2-1.7 2.5m-25.42-45.7-21.9 10.77 24.59 44.48L99.78 119m-25.43-45.7 25.43 45.7",stroke:"#515151"}),E.createElement("path",{d:"M83.9 116.95c.96 1.97-4.91 4.57-8.32 6.18-1.33.63-2.1.98-2.7 1.2.9 3.3 1.24 8.14-4.48 9.82-5.73 1.69-15.07-1.02-18-9.6-2.95-8.6.01-19.97 9.05-27.04 5.67-4.42 15.01-5.77 19.42-4.05 2.15.82 1.38 2.71-.56 4.44a58.1 58.1 0 0 1-4.53 3.58c.4-.01.8-.02 1.23 0 4.13.06 7.26 1.11 7.42 3.14.07.94-.8 2.13-1.95 3.45-.62.71-1.28 1.34-1.95 1.88 2.8-.22 5.94 1.05 2.9 4.2-.41.43-.85.83-1.29 1.2 1.73.02 3.24.56 3.75 1.6Z",fill:"white"}),E.createElement("path",{d:"M69.73 125.1c1.65-.34 2.2-.4 3.14-.76m0 0c.6-.23 1.38-.58 2.7-1.21 3.42-1.6 9.3-4.21 8.32-6.17-.86-1.76-4.53-2.09-7.33-.97-2.84 1.13-3.58 2.24-3.46 2.56.12.31 4.75-.69 8.34-4.4 3.4-3.54-.96-4.7-3.9-4.06-2.26.5-6.4 2.06-6.16 2.85.16.5 5.33-.54 9.1-4.87 1.14-1.32 2.02-2.51 1.95-3.45-.16-2.03-3.3-3.08-7.42-3.15-8.83-.16-11.56 4.78-11.16 5.1 1.1.92 9.36-4.15 14.46-8.67 1.94-1.73 2.71-3.62.56-4.44-4.4-1.72-13.75-.37-19.42 4.05-9.04 7.07-12 18.44-9.06 27.03 2.94 8.6 12.28 11.3 18 9.61 5.73-1.68 5.4-6.53 4.48-9.81Z",stroke:"#515151"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.48 120.15c-.2 1.56-.53 3.98-1.2 6.51-.68 2.53-1.71 5.16-3.3 7.14l.2.19 5.67-4.97-1.1-8.87h-.27Zm31.09 45.32-.25-.1-11.3 21.27h11.92l-.43-.26c-3.5-2.07-4.07-5.79-3.46-9.77.52-3.4 1.9-6.95 3-9.77l.52-1.37Zm-85.81-37.9-.24.13a55.3 55.3 0 0 0 1.65 6.39l.01.04.05.03c1.63.84 4.4 1.85 7.45 2.14 3.05.3 6.39-.12 9.1-2.15l-.12-.24c-3.14 1.2-11.14 1.63-17.9-6.33Z",fill:"#515151"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.54 82.83.02-.16h-.16c-1.82.1-5.84.39-9.87.96-2.02.28-4.04.64-5.79 1.08-1.74.43-3.23.95-4.18 1.58l-.06.04v.07c-.04 1.8.13 3.69.65 5.35a7.28 7.28 0 0 0 2.8 4.05c2.81 1.86 6.69 1.62 9.98-.58 3.3-2.2 6.04-6.37 6.61-12.4Z",fill:"#515151"}),E.createElement("path",{d:"M126.66 84.73a9.79 9.79 0 0 1-9.7 9.87 9.79 9.79 0 0 1-9.7-9.87 9.79 9.79 0 0 1 9.7-9.87c5.35 0 9.7 4.41 9.7 9.87Z",fill:"white",stroke:"#515151"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.41 70.6c.66.25 1.25.47 1.9.26.52-.18.83-.7 1.18-1.3.75-1.27 1.73-2.93 5.56-2.56 3.86.38 4.6 2.17 5.1 3.43.21.5.38.9.69 1.12.48.32.84.33 1.26.35.55.02 1.2.05 2.37.75 1.41.85 2.49 5.65.23 9.93l.26.43c-.45 2.15-3.05 4.37-3.05 4.14 0-3.04 0-4.75-2.92-7.43-4.26 1.6-10.89 1.13-13.94.14-4-1.28-5.98-6.81-2.53-9 1.72-1.1 2.88-.65 3.9-.26Z",fill:"#515151"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M116.7 81.6a.41.41 0 1 0-.74.4c.2.39.47.74.9.95.41.2.93.25 1.58.17a.41.41 0 1 0-.1-.82c-.58.07-.9.01-1.12-.09-.2-.1-.36-.28-.53-.6Zm-6.57 4.22a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.02c-.59.03-1.03.54-1 1.13.02.6.52 1.05 1.1 1.02Zm6.82.73a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.01c-.58.02-1.03.53-1 1.12.03.6.52 1.05 1.1 1.02Z",fill:"#515151"}),E.createElement("ellipse",{cx:127.42,cy:86.0081,rx:2.47934,ry:2.47934,fill:"white",stroke:"#515151"}),E.createElement("circle",{r:4.67102,transform:"matrix(0.707106 0.707108 -0.707106 0.707108 75.0508 75.7794)",fill:"var(--semi-color-primary)",stroke:"var(--semi-color-primary)",strokeWidth:3}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M77.9 72.97a1.1 1.1 0 0 0-1.57 0l-1.26 1.27-1.31-1.3a1.1 1.1 0 1 0-1.57 1.56l1.31 1.3-1.3 1.31a1.1 1.1 0 0 0 1.56 1.57l1.3-1.3 1.27 1.26a1.1 1.1 0 1 0 1.57-1.57l-1.26-1.26 1.26-1.27a1.1 1.1 0 0 0 0-1.57Z",fill:"white"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.41 49.11a32.26 32.26 0 0 0-19-9.84 2.14 2.14 0 0 0-2.42 2.02c-.07 1.2.82 2.2 1.97 2.37a27.86 27.86 0 0 1 16.13 8.36c.83.87 2.24.99 3.17.15.88-.79.99-2.17.15-3.06Zm-35.8-8.52a32.5 32.5 0 0 0-18.74 15.73 2.14 2.14 0 0 0 1.01 2.93c1.11.52 2.4.02 2.96-1.02a28.08 28.08 0 0 1 15.96-13.4 2.28 2.28 0 0 0 1.53-2.72 2.14 2.14 0 0 0-2.72-1.52Zm27.75 15.78c-3.02-3.14-7-5.38-11.53-6.22a2.11 2.11 0 0 0-2.47 2 2.33 2.33 0 0 0 1.9 2.38c3.41.69 6.43 2.37 8.75 4.72.85.85 2.26 1 3.2.15.87-.78 1-2.15.15-3.03Zm-24.64-4.65a21.63 21.63 0 0 0-11.66 9.8 2.1 2.1 0 0 0 .99 2.94c1.12.52 2.4.01 2.98-1 2-3.45 5.17-6.11 8.91-7.5 1.1-.4 1.81-1.56 1.5-2.75a2.1 2.1 0 0 0-2.72-1.5Zm16.63 11.95a10.69 10.69 0 0 0-4-2.47c-1.35-.47-2.56.62-2.63 1.9-.07 1.14.73 2.04 1.65 2.44.56.25 1.07.56 1.52.94.89.74 2.33 1 3.32.11.82-.74 1-2.07.14-2.92Zm-14.28-.76c-1.82.83-3.39 2.16-4.5 3.83-.73 1.08-.16 2.42.9 2.92 1.14.53 2.38-.02 3.05-.88a6.35 6.35 0 0 1 1.93-1.63c.95-.52 1.68-1.63 1.37-2.83-.3-1.15-1.54-1.95-2.75-1.4Z",fill:"var(--semi-color-primary)"}))}var HU=UU;function VU(){return document.getElementById(Pg)?.contentWindow}class KU{ws;connectTimeoutTimer;isTimeout=!1;init(e){this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.ws&&(this.ws.close(),this.ws=void 0),this.isTimeout=!1;const n=`ws://${e.clientHost}:${e.clientWsPort||e.clientHttpPort-1}`;console.info(`⌛️ ${x("startConnectClientWS",{wsURL:n})}`);const r=new WebSocket(n);this.connectTimeoutTimer=setTimeout(()=>{r.readyState!==WebSocket.OPEN&&(this.isTimeout=!0,r.close(),console.error(`${x("clientConnectTimeout")||"客户端连接超时"}`),Ee.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"timeout"}),Ow())},5e3),r.onclose=()=>{this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.isTimeout||(console.error(`${x("clientServerDisconnected")}`),Ee.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"close"}),Ow())},r.onerror=()=>{if(this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),!this.isTimeout){const s=x("clientServerStartError");Ee.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"error"}),console.error(s)}},this.ws=r,r.onopen=()=>{this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.isTimeout||(console.log(`✅ ${x("clientConnectedSuccess")}`),Ee.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!0,from:"client",reason:"open"}),r.send(JSON.stringify({stage:"connecting",status:"success",message:"Browser connected to Client Server Successfully"})))},r.onmessage=function(s){try{const l=JSON.parse(s.data),c=VU();switch(l?.method){case"subscribeHandler":c?.__DEV__?.subscribeHandler?.(l?.payload?.event,l?.payload?.data);break;case"invokeHandler":c?.__DEV__?.invokeHandler?.(l?.payload?.callbackId,l?.payload?.data);break;case"predownloadSubpackage":case"reportScene":l?.payload&&typeof l.payload=="object"&&Ee.emit(l.method,l.payload);break;default:break}}catch(l){console.error(l)}}}send(e){this.ws?.readyState===WebSocket.OPEN&&(e.from="browser",this.ws?.send(JSON.stringify(e)))}close(){this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.ws?.close(),this.ws=void 0}}const Ps=new KU,QU={start:{msgKey:"uploadGameStart"},success:{msgKey:"uploadGameSuccess",handle:i=>{const{packages:e,clientKey:n}=i||{};Pe.setMultiple({packages:e,clientKey:n,isResourcesReady:!0}),Ee.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:!0})}},process:{msgKey:"uploadProcess"},error:{msgKey:"uploadError",handle:i=>{const{msg:e}=i||{};Pe.set("isResourcesReady",!1),Ee.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:!1,isResourcesFailed:!0})}},restart:{msgKey:"uploadGameRestart"}};function XU(i){const{status:e,payload:n}=i,r=QU[e];if(!r){console.warn(`Unknown upload status: ${e}`);return}const s=x(r.msgKey);Ee.emit("uploadGame",{status:e,msg:s,progress:n?.progress}),r.handle&&r.handle(n)}class YU{ws;init(){const e=Pe.get("nodeWsPort");console.info(`⌛️ ${x("nodeServerStartConnect")}`);let n=!1;return this.ws=new WebSocket(`ws://localhost:${e}`),this.ws.onclose=()=>{console.error(`❌ ${x("nodeServerDisconnect")}`),Ee.emit("connectionChange",{node:!1,client:Pe.get("isClientWSConnected"),from:"node",reason:n?"error":"close"})},this.ws.onerror=()=>{n=!0;const r=x("nodeServerStartError");console.error(r),Ee.emit("connectionChange",{node:!1,client:Pe.get("isClientWSConnected"),from:"node",reason:"error"})},this.ws.onopen=()=>{console.log(`✅ ${x("nodeServerConnectedSuccess")}`),Ee.emit("connectionChange",{node:!0,client:Pe.get("isClientWSConnected"),from:"node",reason:"open"}),this.ws?.send(JSON.stringify({event:"connected",method:"connected",from:"browser"}))},this.ws.onmessage=r=>{if(r.data){const s=JSON.parse(r.data);switch(s.method){case"uploadStatus":{XU(s);break}case"compilationStatus":{Ee.emit("compilationStatus",s.payload);break}case"unitySplitStatus":{Ee.emit("unitySplitStatus",s.payload);break}case"resourceChange":{$n.info("Node WS resourceChange",s?.payload),Ee.emit("resourceChange",{});break}case"scanQRCodeSuccess":{const{clientWsPort:c,clientHost:u,clientHttpPort:p}=s.payload;Pe.setMultiple({clientHost:u,clientWsPort:c,clientHttpPort:p}),Ps.init({clientWsPort:c,clientHost:u,clientHttpPort:p}),Ee.emit("scanQRCode",{status:"success"});break}case"scanQRCodeFailed":{const{msg:c}=s.payload;Ee.emit("scanQRCode",{status:"failed",msg:c});break}}}},!0}send(e){e.from="browser",this.ws?.send(JSON.stringify(e))}close(){this.ws?.close(),this.ws=void 0}}const Vi=new YU,ZU=["krypton.js","ttmg-core.js"];async function Bw(i){try{const e=O0();console.log(`⌛️ ${x("startDebug")}`),console.log(`⌛️ ${x("initClientEnv")}`);const n=await Qi({url:`${e}/game/cwd`,method:"POST",data:{command:"start"}});if(console.log(`✅ ${x("initClientEnvSuccess")}`),Ps.send({method:"setDebugSettings",payload:i.debugSetting}),i.debugMode==="clientPreview"||i.debugMode==="clientDebug")Pe.set("isScriptsReady",!0),Vi.send({method:"startUpload"});else{console.log(`⌛️ ${x("startInitJSDevEnv")}`);const s=document.getElementById(Pg).contentWindow;s.__DEV__={isEnable:!0,server:e,nodeStaticBaseUrl:Pe.get("nodeStaticBaseUrl")},console.log(`✅ ${x("initJSDevEnvSuccess")}`);const l=await JU(s,ZU,e),c=Object.values(l).some(u=>!u);Pe.set("isScriptsReady",Object.values(l).every(u=>u)),Ee.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:Pe.get("isResourcesReady"),isScriptsFailed:c}),c||(console.log(`✅ ${x("setDevScriptsSuccess")}`),Vi.send({method:"startUpload"}))}}catch(e){console.log(`❌ ${x("setDevEnvFailed")}`,e?.message??e)}}async function JU(i,e,n){const r={};for(const s of e)try{console.log(`⏳ ${x("startLoadDevScripts")}: ${s}`);const l=await fetch(`${n}/game/scripts/${s}`);if(!l.ok){console.error(`${x("loadDevScriptsFailed")}: ${s}`),r[s]=!1;continue}const c=await l.text();if(!c){console.error(`${x("loadDevScriptsEmpty")}: ${s}`),r[s]=!1;continue}console.log(`✅ ${x("loadDevScriptsSuccess")}: ${s}`);const u=i.document.createElement("script");u.id=s,u.type="text/javascript",u.text=c,i.document.body.appendChild(u),r[s]=!0,console.log(`✅ ${x("loadDevScriptsInitSuccess")}: ${s}`)}catch(l){console.error(`${x("loadDevScriptsFailed")}: ${s}`,l),r[s]=!1}return r}function e9(){const i=()=>typeof document<"u"?document.hidden:!1,[e,n]=E.useState(i);return E.useEffect(()=>{const r=()=>{n(document.hidden),Ps.send({method:"sendPageVisibility",payload:{isHidden:document.hidden}})};return document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)}},[]),e}function t9(){const[i,e]=E.useState([]),n=E.useRef([]),r=E.useRef([]),s=E.useRef([]),l=E.useRef([]),c=E.useRef([]),u=E.useCallback(()=>{const T=[...c.current,...n.current,...r.current,...s.current,...l.current],b=new Map;T.forEach(w=>{const D=w?.text?.trim();if(!D)return;const O=b.get(D);if(!O){b.set(D,{title:w.title,text:D,required:w.required,detail:w.detail});return}!O.required&&w.required&&b.set(D,{title:O.title??w.title,text:D,required:!0,detail:O.detail??w.detail})}),e(Array.from(b.values()))},[]),p=E.useCallback(T=>{const b=[],w=!T?.terms_of_service_link?.trim(),D=!T?.privacy_policy_link?.trim();return w&&D?(b.push({text:x("policyDependencyTermsPrivacyRequired"),required:!0}),b):(w&&b.push({text:x("policyDependencyTermsRequired"),required:!0}),D&&b.push({text:x("policyDependencyPrivacyRequired"),required:!0}),b)},[]),f=E.useCallback(T=>{const b=[],w=!T?.name?.trim(),D=!T?.display_icon_url?.trim()&&!T?.icon_url?.trim(),O=!T?.description?.trim();return w&&b.push(x("topBasicInfoNameField")),D&&b.push(x("topBasicInfoIconField")),O&&b.push(x("topBasicInfoDescriptionField")),b.length===0?[]:[{text:x("topBasicInfoMissing",{fields:b.join(x("topBasicInfoFieldJoiner"))}),required:!1}]},[]),v=E.useCallback(T=>xg(T)?[]:[{text:x("topLoginStatusWarning"),required:!1}],[]),y=E.useCallback(T=>{r.current=p(T),s.current=f(T),u()},[f,p,u]),S=E.useCallback(({currentUser:T,checkResult:b=[]})=>{l.current=v(T),n.current=b.filter(w=>w?.passed===!1).map(w=>({text:w.msg,required:w.required===!0,detail:w.detail})),u()},[v,u]),k=E.useCallback(T=>{c.current=T,u()},[u]);return{topErrorItems:i,updateGameDetailTopErrors:y,updateConfigTopErrors:S,updateGameDetailAccessErrors:k}}const qw="https://developers.tiktok.com/",n9="https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg";function r9(i){const e=Dg({errorCode:i.errorCode,user:i.user});if(e==="noPermission")return{link:qw,text:x("topErrorCtaApplyPermission")};if(e==="networkProxy")return{link:n9,text:x("projectInfo.error.openProxyDoc")};if(e==="notFound"||e==="unknown")return{link:qw,text:x("topErrorCtaOpenPortal")}}function i9(i){const e=Dg({errorCode:i.errorCode,user:i.user});if(e==="networkProxy")return x("topErrorTitleNetworkProxy");if(e==="noPermission")return x("topErrorTitlePermission");if(e==="notLoggedIn"||e==="loginExpired")return x("topErrorTitleLogin");if(e==="notFound")return x("topErrorTitleProjectNotFound")}function o9({onSuccess:i,updateGameDetailAccessErrors:e}){const{state:{user:n},hideLoading:r,setError:s,setGameDetail:l}=un(),c=E.useRef(!1),u=E.useRef(!1),p=E.useCallback(f=>{if(c.current){u.current=!0;return}c.current=!0,Qi({url:"/game/detail",method:"GET"}).then(v=>{if(v.error){r();const{errorCode:y,errorMsg:S}=v.error,k=nW({errorCode:y,errorMsg:S,clientKey:v.error.clientKey,user:f??n});l({client_key:v.error.clientKey,has_error:!0,error_msg:S,error_code:y}),s({text:""}),e(k?[{title:i9({errorCode:y,user:f??n}),text:k,required:!0,detail:r9({errorCode:y,user:f??n})}]:[]);return}s({text:""}),e([]),l(v.data),i(v.data),r()}).finally(()=>{c.current=!1,u.current&&(u.current=!1,p(f))})},[r,i,s,l,e,n]);return{fetchGameDetail:p}}function s9({fetchGameDetail:i,updateConfigTopErrors:e}){const{showLoading:n,hideLoading:r,setError:s,setSchema:l,setUser:c,setPackages:u,setDevToolVersion:p,setEngine:f,setDebugMode:v,setMessage:y}=un(),[S,k]=E.useState(""),T=E.useRef(!1);return E.useEffect(()=>{T.current||(T.current=!0,n(),Qi({url:"/game/config",method:"GET"}).then(b=>{if(b.error){r(),s({visible:!0,text:x("getDevGameConfigFailed")+`: ${b.error.errorMsg}`}),k(x("getDevGameConfigFailed")),console.log(`❌ ${x("getDevGameConfigFailed")}: ${b.error.errorMsg}`);return}const{schema:w,nodeWsPort:D,user:O,packages:N,devToolVersion:M,clientKey:z,engine:L,nodeStaticBaseUrl:j,checkResult:F,lang:U}=b.data;if(TG(U),XG(),console.log(`✅ ${x("getDevGameConfigSuccess")}`),U||Qi({url:"/game/config-fillback",method:"POST",data:{lang:navigator.language}}),l(w),Pe.setMultiple({nodeWsPort:D,email:O?.email,clientKey:z,nodeStaticBaseUrl:j}),c(O),p(M),u(N),f(L),Tg()&&y({type:"success",desc:x("nodeServerConnectedSuccess")}),!M0()){const V=L==="unity"?Bn.clientPreview:Bn.browserDebug;v(V),$0(V)}i(O),e({currentUser:O,checkResult:F}),r()}))},[i,r,p,f,v,s,u,l,c,y,n,e]),{isServerError:!!S,serverErrorMsg:S}}function a9({onResourceChange:i}){E.useEffect(()=>{const e=()=>{i()};return Ee.on("resourceChange",e),()=>{Ee.off("resourceChange",e)}},[i])}function l9(){const[i,e]=E.useState(()=>sW());E.useEffect(()=>{const s=l=>{if(l.key!=="tt-theme")return;const c=l.newValue;(c==="light"||c==="dark")&&(Iw(c),e(c))};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[]);const n=E.useCallback(s=>{Iw(s),e(s)},[]),r=E.useCallback(()=>{n(i==="dark"?"light":"dark")},[i,n]);return{theme:i,setTheme:n,toggle:r}}const c9="modulepreload",u9=function(i){return"/"+i},Gw={},ct=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let p=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");s=p(n.map(f=>{if(f=u9(f),f in Gw)return;Gw[f]=!0;const v=f.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${y}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":c9,v||(S.as="script"),S.crossOrigin="",S.href=f,u&&S.setAttribute("nonce",u),document.head.appendChild(S),v)return new Promise((k,T)=>{S.addEventListener("load",k),S.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return s.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return e().catch(l)})},s_=()=>{const{state:{loading:i}}=un();return i.visible?P.jsx("div",{className:"loading-container",children:P.jsxs("div",{className:"loading-content",children:[P.jsx(Mr,{size:"large"}),P.jsx("div",{className:"loading-text",children:i.text})]})}):null},d9=({size:i=24,color:e="#000",style:n,className:r})=>P.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:P.jsxs("svg",{fill:"currentColor",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",width:i,height:i,children:[P.jsx("path",{d:"M37.86 17.82c.14.24.14.67.14 1.53v9.5c0 1.14 0 1.72-.2 2.26-.16.49-.43.96-.77 1.34-.37.44-.87.73-1.86 1.3l-7.84 4.53c-.74.43-1.11.64-1.4.64a.66.66 0 0 1-.58-.34c-.14-.24-.14-.67-.14-1.53v-9.5c0-1.14 0-1.71.2-2.26.16-.48.43-.95.76-1.34.38-.44.88-.73 1.87-1.3l7.84-4.52c.74-.43 1.11-.65 1.4-.64.25 0 .45.12.58.33Z"}),P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m27.54 1.99 7 3.93 6.89 4a7.23 7.23 0 0 1 3.59 6.2l.06 7.88-.06 7.88a7.23 7.23 0 0 1-3.6 6.2l-6.88 4-7 3.93a7.23 7.23 0 0 1-7.08 0l-7-3.93-6.9-4a7.23 7.23 0 0 1-3.58-6.2L2.9 24l.07-7.88a7.23 7.23 0 0 1 3.59-6.2l6.89-4 7-3.93a7.23 7.23 0 0 1 7.08 0Zm-2.07 3.67 6.98 3.92 6.86 3.99a3.01 3.01 0 0 1 1.5 2.58l.06 7.85-.07 7.85c0 1.06-.57 2.04-1.5 2.58l-6.85 4-6.98 3.9c-.91.52-2.03.52-2.95 0l-6.97-3.9-6.86-4a3.01 3.01 0 0 1-1.5-2.58L7.13 24l.06-7.85c.01-1.06.58-2.04 1.5-2.58l6.86-4 6.97-3.9a3.01 3.01 0 0 1 2.95 0Z"})]})}),p9=()=>P.jsxs("div",{className:"logo-container",children:[P.jsx(d9,{size:24}),P.jsx("div",{className:"logo-title",children:x("title")})]});function Ww(i){return x(i==="ok"?"connectStatusConnected":i==="fail"?"connectStatusFailed":"connectStatusDisconnected")}function ns(i){return i==="ok"?"var(--tt-success-text)":i==="fail"?"var(--tt-error-text)":"var(--tt-text-faint)"}const f9=()=>{const{state:{schema:i,isConnected:e},setIsConnected:n,setMessage:r}=un(),[s,l]=E.useState("off"),[c,u]=E.useState("off"),[p,f]=E.useState("off"),v={node:{bg:"var(--tt-info-bg)",stroke:"var(--tt-info-border)",text:"var(--tt-info-text)"},browser:{bg:"var(--tt-success-bg)",stroke:"var(--tt-success-border)",text:"var(--tt-success-text)"},client:{bg:"var(--tt-accent-soft)",stroke:"var(--tt-accent-strong)",text:"var(--tt-accent-text)"}},y=E.useMemo(()=>{const{nodeWsPort:O,clientHost:N,clientHttpPort:M,clientWsPort:z}=Pe.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let L="",j="";try{if(i){const F=new URL(i);L=(F.searchParams.get("host")||"").trim(),j=(F.searchParams.get("port")||"").trim()}}catch{}return{nodeWsPort:O,clientHost:N,clientHttpPort:M,clientWsPort:z,schemaHost:L,schemaPort:j}},[s,c,p,i]),S=O=>{const{client:N,node:M,reason:z}=O||{};$n.info("connectionChange",N,M),Pe.get("isNodeWSConnected")===M&&(N||r({type:"danger",desc:x("clientServerStartError")})),Pe.get("isClientWSConnected")===N&&(M||r({type:"danger",desc:x("nodeServerStartError")})),Pe.get("isClientWSConnected")&&!N&&(Pe.setMultiple({isClientWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",desc:x("clientDisconnected")})),Pe.get("isNodeWSConnected")&&!M&&(Pe.setMultiple({isNodeWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",title:x("serverDisconnected"),desc:x("nodeDisconnected")})),!Pe.get("isClientWSConnected")&&N&&(Pe.set("isClientWSConnected",!0),r({type:"success",desc:x("clientConnectedSuccess")})),!Pe.get("isNodeWSConnected")&&M&&(Pe.set("isNodeWSConnected",!0),r({type:"success",desc:x("nodeServerConnectedSuccess")})),typeof M=="boolean"&&(l(M?"ok":z==="error"||z==="timeout"?"fail":"off"),M||f("off")),typeof N=="boolean"&&u(N?"ok":z==="error"||z==="timeout"?"fail":"off"),n(!!N&&!!M)},k=O=>{if(O?.status==="success"){f("ok");return}if(O?.status==="failed"){f("fail");return}O?.status==="start"&&f("off")};E.useEffect(()=>(Ee.on("connectionChange",S),Ee.on("scanQRCode",k),()=>{Ee.off("connectionChange",S),Ee.off("scanQRCode",k)}),[n]);const T=P.jsxs("div",{children:[P.jsxs("div",{children:[x("connectStatusNode"),": ",Ww(s)]}),P.jsxs("div",{children:["IDE: ",window.location.origin]}),y.nodeWsPort?P.jsxs("div",{children:["WS: ws://localhost:",y.nodeWsPort]}):null,P.jsxs("div",{children:["HTTP: ",window.location.origin]}),y.schemaHost&&y.schemaPort?P.jsxs("div",{children:[x("scanQRCode"),":ws://",y.schemaHost,":",y.schemaPort]}):null]}),b=P.jsx("div",{children:P.jsxs("div",{children:[x("connectStatusBrowser"),": ",x("connectStatusConnected")]})}),w=P.jsxs("div",{children:[P.jsxs("div",{children:[x("connectStatusClient"),": ",Ww(c)]}),y.clientHost?P.jsxs("div",{children:[y.clientHost,y.clientHttpPort?` http:${y.clientHttpPort}`:"",y.clientWsPort?` ws:${y.clientWsPort}`:""]}):null]}),D=P.jsxs("div",{className:"conn-graph-wrap",children:[P.jsx("div",{className:"conn-graph",children:P.jsx("svg",{className:"conn-graph-svg",width:"340",height:"220",viewBox:"0 0 360 240",children:(()=>{const O={x:180,y:44},N={x:70,y:206},M={x:290,y:206},z=14,L=26,j=4,F=5,U=8,V={x:(O.x+N.x+M.x)/3,y:(O.y+N.y+M.y)/3},K=(W,ee)=>({x:ee.x-W.x,y:ee.y-W.y}),ie=W=>Math.hypot(W.x,W.y)||1,ne=W=>{const ee=ie(W);return{x:W.x/ee,y:W.y/ee}},ae=W=>({x:-W.y,y:W.x}),J=(W,ee,I=1)=>({x:W.x+ee.x*I,y:W.y+ee.y*I}),ue=(W,ee,I)=>{const H=K(W,ee),oe=ne(H),te=ne(ae(H)),se=I.offset||0,be=J(J(W,oe,L),te,se),Se=J(J(ee,oe,-L),te,se),ve=typeof I.t=="number"?Math.min(.9,Math.max(.1,I.t)):.5,_e={x:be.x+(Se.x-be.x)*ve,y:be.y+(Se.y-be.y)*ve},ye=J(W,oe,L),xt=J(ee,oe,-L),Dt={x:ye.x+(xt.x-ye.x)*ve,y:ye.y+(xt.y-ye.y)*ve},lr=I.markMode||"byLineOffset",dn=K(Dt,V),Ie=dn.x*te.x+dn.y*te.y>0?{x:-te.x,y:-te.y}:te,pn=I.labelSide==="inner"?-1:1,De=se>=0?1:-1,Ot=lr==="byTriangleSide"?pn:De,Fe={w:360,h:240,pad:10};let Me=J(_e,Ie,U*Ot);(Me.y>Fe.h-Fe.pad||Me.y<Fe.pad||Me.x>Fe.w-Fe.pad||Me.x<Fe.pad)&&(Me=J(_e,Ie,-U*Ot));const Ve=Me.x<Fe.w-60,Ke={x:Ve?Me.x+F+j:Me.x-F-j,y:Me.y},Be=Ve?"start":"end",It=I.label.length*6+8,Rt=Be==="start"?Ke.x:Ke.x-It,xn=Be==="start"?Ke.x+It:Ke.x;let Nt=Be,tt=Ke.x;return Rt<Fe.pad&&xn>Fe.w-Fe.pad?(Nt="start",tt=Fe.pad):Rt<Fe.pad?(Nt="start",tt=Me.x+F+j):xn>Fe.w-Fe.pad&&(Nt="end",tt=Me.x-F-j),P.jsxs("g",{children:[P.jsx("line",{x1:be.x,y1:be.y,x2:Se.x,y2:Se.y,stroke:"var(--tt-border-strong)",strokeWidth:"2",strokeDasharray:I.dashed?"4 3":void 0}),P.jsx("circle",{cx:Me.x,cy:Me.y,r:F,fill:I.statusColor}),P.jsx("text",{x:tt,y:Ke.y,fontSize:"10",fill:"var(--tt-text-dim)",dominantBaseline:"middle",textAnchor:Nt,paintOrder:"stroke",stroke:"var(--tt-bg-panel)",strokeWidth:"3",children:I.label})]})},pe=(W,ee,I,H)=>P.jsx(ir,{content:I,children:P.jsxs("g",{className:"conn-vertex",children:[P.jsx("rect",{x:W.x-28,y:W.y-14,width:56,height:22,rx:8,fill:H.bg,stroke:H.stroke}),P.jsx("text",{x:W.x,y:W.y-1,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:H.text,children:ee})]})});return P.jsxs(P.Fragment,{children:[ue(N,O,{label:"ws",statusColor:ns(s),offset:-z/2,labelSide:"outer",markMode:"byLineOffset",t:.42}),ue(N,O,{label:"http",statusColor:ns(s),offset:z/2,labelSide:"inner",markMode:"byLineOffset",t:.58}),ue(O,M,{label:"ws",statusColor:ns(p),dashed:!0,offset:0,labelSide:"outer",markMode:"byTriangleSide",t:.55}),ue(N,M,{label:"ws",statusColor:ns(c),offset:-z/2,labelSide:"outer",markMode:"byLineOffset",t:.55}),ue(N,M,{label:"http",statusColor:ns(c),offset:z/2,labelSide:"inner",markMode:"byLineOffset",t:.45}),pe(O,x("connectStatusNode"),T,v.node),pe(N,x("connectStatusBrowser"),b,v.browser),pe(M,x("connectStatusClient"),w,v.client)]})})()})}),P.jsxs("div",{className:"conn-legend",children:[P.jsx("div",{className:"conn-legend-title",children:x("connectStatusLegendTitle")}),P.jsxs("div",{className:"conn-legend-item",children:[P.jsx("div",{className:"conn-legend-name",children:P.jsx(zt,{className:"conn-legend-tag-node",type:"ghost",size:"small",style:{marginRight:6},children:x("connectStatusNode")})}),P.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendNode")})]}),P.jsxs("div",{className:"conn-legend-item",children:[P.jsx("div",{className:"conn-legend-name",children:P.jsx(zt,{color:"green",type:"ghost",size:"small",style:{marginRight:6},children:x("connectStatusBrowser")})}),P.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendBrowser")})]}),P.jsxs("div",{className:"conn-legend-item",children:[P.jsx("div",{className:"conn-legend-name",children:P.jsx(zt,{className:"conn-legend-tag-client",type:"ghost",size:"small",style:{marginRight:6},children:x("connectStatusClient")})}),P.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendClient")})]}),P.jsxs("div",{className:"conn-legend-item",children:[P.jsxs("div",{className:"conn-legend-name",children:[P.jsx(zt,{color:"grey",type:"ghost",size:"small",style:{marginRight:6},children:"WS"}),P.jsx(zt,{color:"grey",type:"ghost",size:"small",children:"HTTP"})]}),P.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendProto")})]})]})]});return P.jsx(zn,{content:D,trigger:"hover",showArrow:!1,children:P.jsxs("div",{className:"connect-status tt-header-chip"+(e?" connect-status-on":" connect-status-off"),role:"status","aria-label":x(e?"deviceConnected":"deviceDisconnected"),children:[P.jsx("span",{className:"connect-status-dot","aria-hidden":"true"}),P.jsx("span",{className:"connect-status-text",children:x(e?"deviceConnected":"deviceDisconnected")})]})})},h9=({version:i})=>{const e=_s(),{state:{devToolVersion:n}}=un(),[r,s]=E.useState(!1);if(E.useEffect(()=>{s(QG(n))},[n]),!i)return null;const l=()=>{n&&(KG(n),s(!1)),e("/changelog")};return P.jsxs("button",{type:"button",onClick:l,className:"version-tag tt-header-chip"+(r?" version-tag-has-new":""),"aria-label":r?`${x("changelog")||"Changelog"} · ${x("changelogNewTag")||"NEW"}`:x("changelog")||"Changelog",title:r?x("changelogNewTag")||"NEW":void 0,children:[P.jsx("span",{className:"version-tag-text",children:i}),r&&P.jsx("span",{className:"version-tag-new",children:x("changelogNewTag")||"NEW"})]})};const a_=(...i)=>i.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();const g9=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const m9=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());const Uw=i=>{const e=m9(i);return e.charAt(0).toUpperCase()+e.slice(1)};var hh={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"};const y9=i=>{for(const e in i)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},v9=E.createContext({}),b9=()=>E.useContext(v9),S9=E.forwardRef(({color:i,size:e,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:l,iconNode:c,...u},p)=>{const{size:f=24,strokeWidth:v=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:k=""}=b9()??{},T=r??y?Number(n??v)*24/Number(e??f):n??v;return E.createElement("svg",{ref:p,...hh,width:e??f??hh.width,height:e??f??hh.height,stroke:i??S,strokeWidth:T,className:a_("lucide",k,s),...!l&&!y9(u)&&{"aria-hidden":"true"},...u},[...c.map(([b,w])=>E.createElement(b,w)),...Array.isArray(l)?l:[l]])});const Ag=(i,e)=>{const n=E.forwardRef(({className:r,...s},l)=>E.createElement(S9,{ref:l,iconNode:e,className:a_(`lucide-${g9(Uw(i))}`,`lucide-${i}`,r),...s}));return n.displayName=Uw(i),n};const w9=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],C9=Ag("arrow-left",w9);const _9=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],k9=Ag("moon",_9);const P9=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],T9=Ag("sun",P9),E9=()=>{const{theme:i,toggle:e}=l9(),n=i==="dark",r=n?T9:k9,s=x(n?"themeToggleToLight":"themeToggleToDark");return P.jsx("button",{type:"button",onClick:e,className:"theme-toggle tt-header-chip","aria-label":s,title:s,children:P.jsx(r,{className:"theme-toggle-icon",size:14,strokeWidth:2})})},x9=E.lazy(()=>ct(()=>import("./index-CdJUBcSF.js"),__vite__mapDeps([0,1,2,3])).then(i=>({default:i.AccessDocs}))),D9=E.lazy(()=>ct(()=>import("./index-FYgsnJbm.js"),__vite__mapDeps([4,1,2,5])).then(i=>({default:i.LangSwitcher})));E.lazy(()=>ct(()=>import("./index-VzIFpCiL.js"),__vite__mapDeps([6,7,8,9,10,11,12,13])).then(i=>({default:i.GameUploader})));const O9=E.lazy(()=>ct(()=>import("./index-B5JnznvI.js"),__vite__mapDeps([14,15])).then(i=>({default:i.LoginStatus}))),I9=E.lazy(()=>ct(()=>import("./index-Dv0bhjYp.js"),__vite__mapDeps([16,17])).then(i=>({default:i.WasmCodeSplit}))),R9=()=>{const{state:{devToolVersion:i,engine:e}}=un();return P.jsxs("div",{className:"header-wrapper",children:[P.jsxs("div",{className:"header-content",children:[P.jsxs("div",{className:"header-content-left",children:[P.jsx(p9,{}),P.jsx(h9,{version:i}),P.jsx(f9,{})]}),P.jsx("div",{className:"header-content-right",children:P.jsxs(Ss,{spacing:12,children:[P.jsx(E.Suspense,{fallback:null,children:P.jsx(x9,{})}),e==="unity"&&P.jsx(E.Suspense,{fallback:null,children:P.jsx(I9,{})}),P.jsx(E.Suspense,{fallback:null,children:P.jsx(D9,{})}),P.jsx(E9,{}),P.jsx(E.Suspense,{fallback:null,children:P.jsx(O9,{})})]})})]}),P.jsx(I2,{})]})},N9=({enabled:i=!0})=>(E.useEffect(()=>{if(!i){Vi.close();return}return Vi.init(),()=>{Vi.close()}},[i]),null),j9=E.lazy(()=>ct(()=>import("./index-DH7hBDqZ.js"),__vite__mapDeps([18,19,20,21])).then(i=>({default:i.Sidebar}))),L9=()=>P.jsx("div",{className:"sidebar-container",children:P.jsx(E.Suspense,{fallback:P.jsx("div",{className:"sidebar-loading-placeholder"}),children:P.jsx(j9,{})})}),A9=({items:i,fallbackErrorText:e})=>{const[n,r]=E.useState(!1),s=E.useMemo(()=>{const f=e?.trim();return f?[{text:f,required:!0},...i.filter(v=>v.text.trim()!==f)]:i},[e,i]);if(E.useEffect(()=>{r(!1)},[s]),s.length===0)return null;const l=f=>f.detail?.link?P.jsxs("a",{className:"app-error-cta",href:f.detail.link,target:"_blank",rel:"noreferrer",children:[P.jsx("span",{children:f.detail.text||x("viewDoc")}),P.jsx(sD,{})]}):null,c=(f,v)=>{const y=f.required?yl:vl,S=f.required?"required":"suggested",k=f.title||(f.required?x("topErrorTitleRequired"):x("topErrorTitleSuggested"));return P.jsxs("div",{className:`app-error-row app-error-row-${S}`,role:f.required?"alert":"status",children:[P.jsx("span",{className:"app-error-row-accent","aria-hidden":"true"}),P.jsx("span",{className:"app-error-row-icon",children:P.jsx(y,{})}),P.jsxs("div",{className:"app-error-row-body",children:[P.jsx("div",{className:"app-error-row-title",children:k}),P.jsx("div",{className:"app-error-row-text",children:f.text})]}),l(f)]},`${f.text}-${S}-${v}`)};if(s.length===1)return P.jsx("div",{className:"app-error-banner",children:c(s[0],0)});const u=s.find(f=>f.required)??s[0],p=s.filter(f=>f!==u);return P.jsxs("div",{className:"app-error-banner app-error-banner-multi",children:[P.jsxs("div",{className:"app-error-multi-head",children:[c(u,0),P.jsx("button",{type:"button",className:"app-error-multi-toggle",onClick:()=>r(f=>!f),children:n?x("topErrorHideDetails"):x("topErrorMoreItems",{count:String(p.length)})})]}),n&&P.jsx("div",{className:"app-error-multi-body",children:p.map((f,v)=>c(f,v+1))})]})},M9=({title:i,subtitle:e,action:n,decoration:r=!0,className:s})=>P.jsxs("header",{className:Q("tt-page-hero",r&&"tt-page-hero-decorated",s),children:[P.jsxs("div",{className:"tt-page-hero-text",children:[P.jsx("h1",{className:"tt-page-hero-title",children:i}),e&&P.jsx("p",{className:"tt-page-hero-subtitle",children:e})]}),n&&P.jsx("div",{className:"tt-page-hero-action",children:n})]}),$9=i=>Number.isFinite(i)?Math.max(0,Math.min(1,i??0)):0,F9=C.memo(()=>{const{setMessage:i,hideLoading:e,state:{gameDetail:n,debugSetting:r,isConnected:s,selectedLaunchOption:l,debugMode:c}}=un();e9();const[u,p]=E.useState(""),f=T=>{if(!T.client||!T.node){Pe.set("hasSetup",!1);return}if(Pe.get("hasSetup"))return;Pe.set("hasSetup",!0),(async()=>(e(),i({type:"success",desc:x("setupDevEnv")}),await Bw({debugSetting:r,debugMode:c})))()},v=E.useCallback(({status:T,msg:b,progress:w})=>{switch(T){case"start":const D=x("uploadProcess");i({type:"info",title:D,desc:x("uploadProcessDesc"),progress:0,intent:"uploading"}),console.log(D);break;case"success":i({type:"success",desc:x("uploadSuccess")}),console.log(`✅ ${x("uploadSuccess")}`);break;case"error":const O=`${x("uploadError")}: ${b}`;i({type:"danger",desc:O}),console.log(O);break;case"restart":break;case"process":const N=$9(w);`${x("uploadProcess")}${(N*100).toFixed(0)}`,i({type:"info",title:x("uploadProcess"),desc:x("uploadProcessDesc"),progress:N,intent:"uploading"});break}},[]),y=E.useCallback(({isScriptsReady:T,isResourcesReady:b,isScriptsFailed:w,isResourcesFailed:D})=>{T&&b?($n.info("scripts and resources are ready, send meta"),qG(n),i({type:"success",desc:x(c==="clientPreview"?"clientPreviewEnvSetupSuccess":"debugEnvSetupSuccess")})):w?i({type:"danger",desc:x("scriptsSetupFailed")}):D&&i({type:"danger",desc:x("resourcesSetupFailed")})},[n,l,c]),S=()=>{if(!s)return;const T=tr.warning({position:"top",duration:1e4,title:x("gameResourceUpdated"),id:u,onClose:()=>{p("")},content:P.jsxs(P.Fragment,{children:[P.jsx("p",{children:x("gameResourceChange")}),P.jsxs("div",{className:"banner-footer",children:[P.jsx(et,{type:"tertiary",onClick:()=>{tr.close(T)},children:x("notUpload")}),P.jsx(et,{style:{marginLeft:12},type:"warning",onClick:()=>{$n.info("upload"),$n.info("upload iframe onload, 开始重新初始化"),Bw({debugSetting:r,debugMode:c}),tr.close(T)},children:x("uploadToClient")})]})]})});p(T)},k=E.useCallback(({status:T,errorMsg:b})=>{T==="start"?(i({type:"info",title:x("gameResourceCompilingTitle"),desc:x("gameResourceCompiling")}),console.warn(`⚠️ ${x("gameResourceCompiling")}`)):T==="end"&&(b?(i({type:"danger",desc:b}),console.error(`❌ ${b}`)):(i({type:"success",title:x("gameResourceCompileSuccessTitle"),desc:x("gameResourceCompileSuccess")}),console.log(`✅ ${x("gameResourceCompileSuccess")}`)))},[]);return E.useEffect(()=>(Ee.on("connectionChange",f),Ee.on("compilationStatus",k),Ee.on("resourceChange",S),Ee.on("uploadGame",v),Ee.on("setupStatusChange",y),()=>{Ee.off("compilationStatus",k),Ee.off("resourceChange",S),Ee.off("setupStatusChange",y),Ee.off("uploadGame",v),Ee.off("connectionChange",f)}),[f,k,S,y,v]),null});var Wi={},gh,Hw;function l_(){return Hw||(Hw=1,gh={L:1,M:0,Q:3,H:2}),gh}var mh,Vw;function c_(){return Vw||(Vw=1,mh={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),mh}var yh,Kw;function z9(){if(Kw)return yh;Kw=1;var i=c_();function e(n){this.mode=i.MODE_8BIT_BYTE,this.data=n}return e.prototype={getLength:function(n){return this.data.length},write:function(n){for(var r=0;r<this.data.length;r++)n.put(this.data.charCodeAt(r),8)}},yh=e,yh}var vh,Qw;function B9(){if(Qw)return vh;Qw=1;var i=l_();function e(n,r){this.totalCount=n,this.dataCount=r}return e.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e.getRSBlocks=function(n,r){var s=e.getRsBlockTable(n,r);if(s==null)throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+r);for(var l=s.length/3,c=new Array,u=0;u<l;u++)for(var p=s[u*3+0],f=s[u*3+1],v=s[u*3+2],y=0;y<p;y++)c.push(new e(f,v));return c},e.getRsBlockTable=function(n,r){switch(r){case i.L:return e.RS_BLOCK_TABLE[(n-1)*4+0];case i.M:return e.RS_BLOCK_TABLE[(n-1)*4+1];case i.Q:return e.RS_BLOCK_TABLE[(n-1)*4+2];case i.H:return e.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},vh=e,vh}var bh,Xw;function q9(){if(Xw)return bh;Xw=1;function i(){this.buffer=new Array,this.length=0}return i.prototype={get:function(e){var n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)==1},put:function(e,n){for(var r=0;r<n;r++)this.putBit((e>>>n-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},bh=i,bh}var Sh,Yw;function u_(){if(Yw)return Sh;Yw=1;for(var i={glog:function(n){if(n<1)throw new Error("glog("+n+")");return i.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return i.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},e=0;e<8;e++)i.EXP_TABLE[e]=1<<e;for(var e=8;e<256;e++)i.EXP_TABLE[e]=i.EXP_TABLE[e-4]^i.EXP_TABLE[e-5]^i.EXP_TABLE[e-6]^i.EXP_TABLE[e-8];for(var e=0;e<255;e++)i.LOG_TABLE[i.EXP_TABLE[e]]=e;return Sh=i,Sh}var wh,Zw;function d_(){if(Zw)return wh;Zw=1;var i=u_();function e(n,r){if(n.length==null)throw new Error(n.length+"/"+r);for(var s=0;s<n.length&&n[s]==0;)s++;this.num=new Array(n.length-s+r);for(var l=0;l<n.length-s;l++)this.num[l]=n[l+s]}return e.prototype={get:function(n){return this.num[n]},getLength:function(){return this.num.length},multiply:function(n){for(var r=new Array(this.getLength()+n.getLength()-1),s=0;s<this.getLength();s++)for(var l=0;l<n.getLength();l++)r[s+l]^=i.gexp(i.glog(this.get(s))+i.glog(n.get(l)));return new e(r,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var r=i.glog(this.get(0))-i.glog(n.get(0)),s=new Array(this.getLength()),l=0;l<this.getLength();l++)s[l]=this.get(l);for(var l=0;l<n.getLength();l++)s[l]^=i.gexp(i.glog(n.get(l))+r);return new e(s,0).mod(n)}},wh=e,wh}var Ch,Jw;function G9(){if(Jw)return Ch;Jw=1;var i=c_(),e=d_(),n=u_(),r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(l){for(var c=l<<10;s.getBCHDigit(c)-s.getBCHDigit(s.G15)>=0;)c^=s.G15<<s.getBCHDigit(c)-s.getBCHDigit(s.G15);return(l<<10|c)^s.G15_MASK},getBCHTypeNumber:function(l){for(var c=l<<12;s.getBCHDigit(c)-s.getBCHDigit(s.G18)>=0;)c^=s.G18<<s.getBCHDigit(c)-s.getBCHDigit(s.G18);return l<<12|c},getBCHDigit:function(l){for(var c=0;l!=0;)c++,l>>>=1;return c},getPatternPosition:function(l){return s.PATTERN_POSITION_TABLE[l-1]},getMask:function(l,c,u){switch(l){case r.PATTERN000:return(c+u)%2==0;case r.PATTERN001:return c%2==0;case r.PATTERN010:return u%3==0;case r.PATTERN011:return(c+u)%3==0;case r.PATTERN100:return(Math.floor(c/2)+Math.floor(u/3))%2==0;case r.PATTERN101:return c*u%2+c*u%3==0;case r.PATTERN110:return(c*u%2+c*u%3)%2==0;case r.PATTERN111:return(c*u%3+(c+u)%2)%2==0;default:throw new Error("bad maskPattern:"+l)}},getErrorCorrectPolynomial:function(l){for(var c=new e([1],0),u=0;u<l;u++)c=c.multiply(new e([1,n.gexp(u)],0));return c},getLengthInBits:function(l,c){if(1<=c&&c<10)switch(l){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw new Error("mode:"+l)}else if(c<27)switch(l){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw new Error("mode:"+l)}else if(c<41)switch(l){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw new Error("mode:"+l)}else throw new Error("type:"+c)},getLostPoint:function(l){for(var c=l.getModuleCount(),u=0,p=0;p<c;p++)for(var f=0;f<c;f++){for(var v=0,y=l.isDark(p,f),S=-1;S<=1;S++)if(!(p+S<0||c<=p+S))for(var k=-1;k<=1;k++)f+k<0||c<=f+k||S==0&&k==0||y==l.isDark(p+S,f+k)&&v++;v>5&&(u+=3+v-5)}for(var p=0;p<c-1;p++)for(var f=0;f<c-1;f++){var T=0;l.isDark(p,f)&&T++,l.isDark(p+1,f)&&T++,l.isDark(p,f+1)&&T++,l.isDark(p+1,f+1)&&T++,(T==0||T==4)&&(u+=3)}for(var p=0;p<c;p++)for(var f=0;f<c-6;f++)l.isDark(p,f)&&!l.isDark(p,f+1)&&l.isDark(p,f+2)&&l.isDark(p,f+3)&&l.isDark(p,f+4)&&!l.isDark(p,f+5)&&l.isDark(p,f+6)&&(u+=40);for(var f=0;f<c;f++)for(var p=0;p<c-6;p++)l.isDark(p,f)&&!l.isDark(p+1,f)&&l.isDark(p+2,f)&&l.isDark(p+3,f)&&l.isDark(p+4,f)&&!l.isDark(p+5,f)&&l.isDark(p+6,f)&&(u+=40);for(var b=0,f=0;f<c;f++)for(var p=0;p<c;p++)l.isDark(p,f)&&b++;var w=Math.abs(100*b/c/c-50)/5;return u+=w*10,u}};return Ch=s,Ch}var _h,eC;function W9(){if(eC)return _h;eC=1;var i=z9(),e=B9(),n=q9(),r=G9(),s=d_();function l(u,p){this.typeNumber=u,this.errorCorrectLevel=p,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;return c.addData=function(u){var p=new i(u);this.dataList.push(p),this.dataCache=null},c.isDark=function(u,p){if(u<0||this.moduleCount<=u||p<0||this.moduleCount<=p)throw new Error(u+","+p);return this.modules[u][p]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var u=1;for(u=1;u<40;u++){for(var p=e.getRSBlocks(u,this.errorCorrectLevel),f=new n,v=0,y=0;y<p.length;y++)v+=p[y].dataCount;for(var y=0;y<this.dataList.length;y++){var S=this.dataList[y];f.put(S.mode,4),f.put(S.getLength(),r.getLengthInBits(S.mode,u)),S.write(f)}if(f.getLengthInBits()<=v*8)break}this.typeNumber=u}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(u,p){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var f=0;f<this.moduleCount;f++){this.modules[f]=new Array(this.moduleCount);for(var v=0;v<this.moduleCount;v++)this.modules[f][v]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(u,p),this.typeNumber>=7&&this.setupTypeNumber(u),this.dataCache==null&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,p)},c.setupPositionProbePattern=function(u,p){for(var f=-1;f<=7;f++)if(!(u+f<=-1||this.moduleCount<=u+f))for(var v=-1;v<=7;v++)p+v<=-1||this.moduleCount<=p+v||(0<=f&&f<=6&&(v==0||v==6)||0<=v&&v<=6&&(f==0||f==6)||2<=f&&f<=4&&2<=v&&v<=4?this.modules[u+f][p+v]=!0:this.modules[u+f][p+v]=!1)},c.getBestMaskPattern=function(){for(var u=0,p=0,f=0;f<8;f++){this.makeImpl(!0,f);var v=r.getLostPoint(this);(f==0||u>v)&&(u=v,p=f)}return p},c.createMovieClip=function(u,p,f){var v=u.createEmptyMovieClip(p,f),y=1;this.make();for(var S=0;S<this.modules.length;S++)for(var k=S*y,T=0;T<this.modules[S].length;T++){var b=T*y,w=this.modules[S][T];w&&(v.beginFill(0,100),v.moveTo(b,k),v.lineTo(b+y,k),v.lineTo(b+y,k+y),v.lineTo(b,k+y),v.endFill())}return v},c.setupTimingPattern=function(){for(var u=8;u<this.moduleCount-8;u++)this.modules[u][6]==null&&(this.modules[u][6]=u%2==0);for(var p=8;p<this.moduleCount-8;p++)this.modules[6][p]==null&&(this.modules[6][p]=p%2==0)},c.setupPositionAdjustPattern=function(){for(var u=r.getPatternPosition(this.typeNumber),p=0;p<u.length;p++)for(var f=0;f<u.length;f++){var v=u[p],y=u[f];if(this.modules[v][y]==null)for(var S=-2;S<=2;S++)for(var k=-2;k<=2;k++)S==-2||S==2||k==-2||k==2||S==0&&k==0?this.modules[v+S][y+k]=!0:this.modules[v+S][y+k]=!1}},c.setupTypeNumber=function(u){for(var p=r.getBCHTypeNumber(this.typeNumber),f=0;f<18;f++){var v=!u&&(p>>f&1)==1;this.modules[Math.floor(f/3)][f%3+this.moduleCount-8-3]=v}for(var f=0;f<18;f++){var v=!u&&(p>>f&1)==1;this.modules[f%3+this.moduleCount-8-3][Math.floor(f/3)]=v}},c.setupTypeInfo=function(u,p){for(var f=this.errorCorrectLevel<<3|p,v=r.getBCHTypeInfo(f),y=0;y<15;y++){var S=!u&&(v>>y&1)==1;y<6?this.modules[y][8]=S:y<8?this.modules[y+1][8]=S:this.modules[this.moduleCount-15+y][8]=S}for(var y=0;y<15;y++){var S=!u&&(v>>y&1)==1;y<8?this.modules[8][this.moduleCount-y-1]=S:y<9?this.modules[8][15-y-1+1]=S:this.modules[8][15-y-1]=S}this.modules[this.moduleCount-8][8]=!u},c.mapData=function(u,p){for(var f=-1,v=this.moduleCount-1,y=7,S=0,k=this.moduleCount-1;k>0;k-=2)for(k==6&&k--;;){for(var T=0;T<2;T++)if(this.modules[v][k-T]==null){var b=!1;S<u.length&&(b=(u[S]>>>y&1)==1);var w=r.getMask(p,v,k-T);w&&(b=!b),this.modules[v][k-T]=b,y--,y==-1&&(S++,y=7)}if(v+=f,v<0||this.moduleCount<=v){v-=f,f=-f;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(u,p,f){for(var v=e.getRSBlocks(u,p),y=new n,S=0;S<f.length;S++){var k=f[S];y.put(k.mode,4),y.put(k.getLength(),r.getLengthInBits(k.mode,u)),k.write(y)}for(var T=0,S=0;S<v.length;S++)T+=v[S].dataCount;if(y.getLengthInBits()>T*8)throw new Error("code length overflow. ("+y.getLengthInBits()+">"+T*8+")");for(y.getLengthInBits()+4<=T*8&&y.put(0,4);y.getLengthInBits()%8!=0;)y.putBit(!1);for(;!(y.getLengthInBits()>=T*8||(y.put(l.PAD0,8),y.getLengthInBits()>=T*8));)y.put(l.PAD1,8);return l.createBytes(y,v)},l.createBytes=function(u,p){for(var f=0,v=0,y=0,S=new Array(p.length),k=new Array(p.length),T=0;T<p.length;T++){var b=p[T].dataCount,w=p[T].totalCount-b;v=Math.max(v,b),y=Math.max(y,w),S[T]=new Array(b);for(var D=0;D<S[T].length;D++)S[T][D]=255&u.buffer[D+f];f+=b;var O=r.getErrorCorrectPolynomial(w),N=new s(S[T],O.getLength()-1),M=N.mod(O);k[T]=new Array(O.getLength()-1);for(var D=0;D<k[T].length;D++){var z=D+M.getLength()-k[T].length;k[T][D]=z>=0?M.get(z):0}}for(var L=0,D=0;D<p.length;D++)L+=p[D].totalCount;for(var j=new Array(L),F=0,D=0;D<v;D++)for(var T=0;T<p.length;T++)D<S[T].length&&(j[F++]=S[T][D]);for(var D=0;D<y;D++)for(var T=0;T<p.length;T++)D<k[T].length&&(j[F++]=k[T][D]);return j},_h=l,_h}var za={},tC;function U9(){if(tC)return za;tC=1,Object.defineProperty(za,"__esModule",{value:!0});var i=Object.assign||function(f){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(f[S]=y[S])}return f},e=$h(),n=l(e),r=fs(),s=l(r);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,v){var y={};for(var S in f)v.indexOf(S)>=0||Object.prototype.hasOwnProperty.call(f,S)&&(y[S]=f[S]);return y}var u={bgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,bgD:n.default.string.isRequired,fgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,fgD:n.default.string.isRequired,size:n.default.number.isRequired,title:n.default.string,viewBoxSize:n.default.number.isRequired,xmlns:n.default.string},p=(0,r.forwardRef)(function(f,v){var y=f.bgColor,S=f.bgD,k=f.fgD,T=f.fgColor,b=f.size,w=f.title,D=f.viewBoxSize,O=f.xmlns,N=O===void 0?"http://www.w3.org/2000/svg":O,M=c(f,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return s.default.createElement("svg",i({},M,{height:b,ref:v,viewBox:"0 0 "+D+" "+D,width:b,xmlns:N}),w?s.default.createElement("title",null,w):null,s.default.createElement("path",{d:S,fill:y}),s.default.createElement("path",{d:k,fill:T}))});return p.displayName="QRCodeSvg",p.propTypes=u,za.default=p,za}var nC;function H9(){if(nC)return Wi;nC=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.QRCode=void 0;var i=Object.assign||function(b){for(var w=1;w<arguments.length;w++){var D=arguments[w];for(var O in D)Object.prototype.hasOwnProperty.call(D,O)&&(b[O]=D[O])}return b},e=$h(),n=y(e),r=l_(),s=y(r),l=W9(),c=y(l),u=fs(),p=y(u),f=U9(),v=y(f);function y(b){return b&&b.__esModule?b:{default:b}}function S(b,w){var D={};for(var O in b)w.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(b,O)&&(D[O]=b[O]);return D}var k={bgColor:n.default.oneOfType([n.default.object,n.default.string]),fgColor:n.default.oneOfType([n.default.object,n.default.string]),level:n.default.string,size:n.default.number,value:n.default.string.isRequired},T=(0,u.forwardRef)(function(b,w){var D=b.bgColor,O=D===void 0?"#FFFFFF":D,N=b.fgColor,M=N===void 0?"#000000":N,z=b.level,L=z===void 0?"L":z,j=b.size,F=j===void 0?256:j,U=b.value,V=S(b,["bgColor","fgColor","level","size","value"]),K=new c.default(-1,s.default[L]);K.addData(U),K.make();var ie=K.modules;return p.default.createElement(v.default,i({},V,{bgColor:O,bgD:ie.map(function(ne,ae){return ne.map(function(J,ue){return J?"":"M "+ue+" "+ae+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:M,fgD:ie.map(function(ne,ae){return ne.map(function(J,ue){return J?"M "+ue+" "+ae+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:w,size:F,viewBoxSize:ie.length}))});return Wi.QRCode=T,T.displayName="QRCode",T.propTypes=k,Wi.default=T,Wi}var V9=H9();const rC=Ze(V9),K9=i=>{const e=_s(),{isConnected:n}=i,{state:{devSchema:r,schema:s,launchOptions:l,selectedLaunchOption:c,debugMode:u,debugSetting:p,gameDetail:f,user:v},setShowManualBindIP:y,setSelectedLaunchOption:S,setDebugMode:k}=un(),[T,b]=E.useState(!1),w=xg(v),D=f?.request_allowed_domains?.length??0,O=!p.enableDomainCheck,N=!O&&D===0,M=u===Bn.clientPreview,z=c?.pkgType==="independent"?x("independentPackage"):x("mainPackage"),L=c?.name||x("normalLaunchMode"),j=x(M?"clientPreviewMode":"browserDebugMode"),F=x(M?"homeSession.mode.clientPreviewDesc":"homeSession.mode.remoteDebugDesc"),U=O?x("homeSession.domainCheck.disabled"):D>0?x("homeSession.domainCheck.enabledWithDomains",{count:String(D)}):x("homeSession.domainCheck.enabledNoDomains"),V=O?x("homeSession.domainCheck.disabledDesc"):D>0?x("homeSession.domainCheck.enabledWithDomainsDesc"):x("homeSession.domainCheck.enabledNoDomainsDesc"),K=E.useMemo(()=>{try{if(!r)return null;const J=new URL(r),ue=(J.searchParams.get("host")||"").trim(),pe=J.searchParams.get("host_list")||"";let W=[];if(pe)try{W=JSON.parse(decodeURIComponent(pe))}catch{W=[]}const ee=ue==="127.0.0.1"||ue==="localhost",I=Array.isArray(W)&&W.length>0;return ee||!I?{host:ue,hostList:W}:null}catch{return{host:"",hostList:[]}}},[r]),ie=J=>{J.status==="success"&&b(!1),J.status==="failed"&&b(!1),J.status==="start"&&b(!0)},ne=J=>{k(J),$0(J)};E.useEffect(()=>(Ee.on("scanQRCode",ie),()=>{Ee.off("scanQRCode",ie)}),[]);const ae=J=>{if(J==="created")S({...Ua,name:""}),e("/launch_mode");else{const ue=l.find(pe=>pe.id===J);ue&&S(ue)}};return n?P.jsx("div",{className:"qr-code-container-connected",children:P.jsxs("div",{className:"qr-code-connected-content",children:[P.jsx("div",{className:"qr-code-tile qr-code-tile-connected",children:P.jsx(rC,{className:"qr-code-connected",size:150,value:s,bgColor:"transparent",fgColor:"#0e0f13"})}),P.jsxs("div",{className:"qr-code-connected-info",children:[P.jsx("div",{className:"qr-code-connected-desc-title",children:x("scanQRCodeChange")}),P.jsx("div",{className:"qr-code-connected-desc",children:x("scanQRCodeDesc")})]}),P.jsxs("div",{className:"qr-code-session-panel",children:[P.jsxs("div",{className:"qr-code-session-header",children:[P.jsx("span",{children:x("homeSession.title")}),P.jsx("span",{className:"qr-code-session-mode-tag",children:j})]}),P.jsxs("div",{className:"qr-code-session-grid",children:[P.jsxs("div",{className:"qr-code-session-item",children:[P.jsx("span",{children:x("homeSession.modeLabel")}),P.jsx("strong",{children:j}),P.jsx("p",{children:F})]}),P.jsxs("div",{className:"qr-code-session-item",children:[P.jsx("span",{children:x("homeSession.entryLabel")}),P.jsx("strong",{children:L}),P.jsx("p",{children:`${z}${c?.scene?` · ${c.scene}`:""}`})]}),P.jsxs("div",{className:"qr-code-session-item",children:[P.jsx("span",{children:x("homeSession.domainLabel")}),P.jsx("strong",{children:U}),P.jsx("p",{children:V})]})]}),P.jsxs("div",{className:"qr-code-session-checks",children:[P.jsx("span",{className:`qr-code-session-check ${O?"is-muted":""}`,children:x(O?"homeSession.chip.domainCheckOff":"homeSession.chip.domainCheckOn")}),P.jsx("span",{className:`qr-code-session-check ${p.enableVConsole?"":"is-muted"}`,children:p.enableVConsole?x("homeSession.chip.vConsoleOn"):x("homeSession.chip.vConsoleOff")}),P.jsx("span",{className:`qr-code-session-check ${p.enableDevInfoPanel?"":"is-muted"}`,children:p.enableDevInfoPanel?x("homeSession.chip.devPanelOn"):x("homeSession.chip.devPanelOff")})]}),P.jsxs("div",{className:`qr-code-session-hint ${N?"is-warning":""}`,children:[P.jsx("strong",{children:x(N?"homeSession.risk.domainTitle":M?"homeSession.diff.clientPreviewTitle":"homeSession.diff.remoteDebugTitle")}),P.jsx("span",{children:x(N?"homeSession.risk.domainDesc":M?"homeSession.diff.clientPreviewDesc":"homeSession.diff.remoteDebugDesc")})]})]})]})}):P.jsxs("div",{className:"qr-code-container-disconnected",children:[P.jsx("div",{className:"qr-code-select-container",children:P.jsx($r,{className:"qr-code-launch-select",value:c?.id,onChange:ae,placeholder:x("selectLaunchMode"),style:{width:"156px"},optionList:l.map(J=>({label:J.name,value:J.id}))})}),P.jsxs("div",{className:"qr-code-content",children:[K?P.jsx(dg,{style:{marginBottom:12},bordered:!1,icon:null,closeIcon:null,fullMode:!1,type:"danger",title:x("networkNoLanIPTitle"),description:P.jsxs("div",{children:[P.jsx("div",{style:{marginBottom:8},children:x("networkNoLanIPDesc")}),P.jsx(et,{size:"small",type:"primary",onClick:()=>y(!0),children:x("networkNoLanIPAction")})]})}):null,P.jsxs("div",{className:"qr-code-schema",children:[P.jsx("div",{className:"qr-code-tile",children:P.jsx(rC,{value:r,bgColor:"transparent",fgColor:"#0e0f13"})}),P.jsxs(pg,{className:"qr-code-mode-switches",children:[P.jsx(et,{className:`qr-code-mode-button ${u==="browserDebug"?"is-active":""}`,theme:"borderless",type:"tertiary",size:"small",onClick:()=>ne("browserDebug"),children:x("browserDebugMode")}),P.jsx(et,{className:`qr-code-mode-button ${u==="clientPreview"?"is-active":""}`,onClick:()=>ne("clientPreview"),theme:"borderless",type:"tertiary",size:"small",children:x("clientPreviewMode")})]}),T&&P.jsxs("div",{className:"qr-code-spin",children:[P.jsx(Mr,{size:"large"}),P.jsx("div",{className:"qr-code-text",children:x("scanning")})]})]}),P.jsxs("div",{className:"qr-code-side-panel",children:[P.jsxs("div",{className:"qr-code-diagnostics-card",children:[P.jsx("div",{className:"qr-code-diagnostics-card-copy",children:P.jsx(Ye.Text,{children:x("netDiagEntryDesc")})}),P.jsx(et,{className:"qr-code-diagnostics-entry",theme:"light",size:"small",onClick:()=>e("/network_diagnostics"),children:x("netDiagEntryAction")})]}),w?null:P.jsxs("div",{className:"qr-code-login-guide",children:[P.jsxs("div",{className:"qr-code-login-guide-copy",children:[P.jsx(Ye.Text,{strong:!0,children:x("basicDebugGuide.entryTitle")}),P.jsx(Ye.Text,{children:x("basicDebugGuide.entryDesc")})]}),P.jsx(et,{theme:"light",onClick:()=>e("/basic_debug_guide"),children:x("basicDebugGuide.entryAction")})]})]})]})]})},Q9=[{key:"domain-check",labelKey:"debugSettingDomainCheck",descriptionKey:"devOptionsDomainCheckDesc",getChecked:i=>!i.enableDomainCheck,getNextSetting:(i,e)=>({...i,enableDomainCheck:!e})},{key:"ad-mock",labelKey:"debugSettingAdMock",descriptionKey:"debugSettingAdMockDesc",getChecked:i=>i.enableAdMock,getNextSetting:(i,e)=>({...i,enableAdMock:e})},{key:"iap-mock",labelKey:"debugSettingIAPMock",descriptionKey:"debugSettingIAPMockDesc",getChecked:i=>i.enableIAPMock,getNextSetting:(i,e)=>({...i,enableIAPMock:e})},{key:"dev-info-panel",labelKey:"debugSettingDevInfoPanel",descriptionKey:"debugSettingEnableDevInfoPanelDesc",getChecked:i=>i.enableDevInfoPanel,getNextSetting:(i,e)=>({...i,enableDevInfoPanel:e})},{key:"vconsole",labelKey:"debugSettingVConsole",descriptionKey:"debugSettingEnableVconsoleDesc",isAvailable:i=>i!==Bn.browserDebug,getChecked:i=>i.enableVConsole,getNextSetting:(i,e)=>({...i,enableVConsole:e})}];function X9({debugMode:i,debugSetting:e,onChange:n}){return Q9.filter(r=>!r.isAvailable||r.isAvailable(i)).map(r=>({key:r.key,checked:r.getChecked(e),label:x(r.labelKey),description:x(r.descriptionKey),onChange:s=>n(r.getNextSetting(e,s))}))}const Y9=()=>{const{state:{debugSetting:i,debugMode:e},setDebugSetting:n}=un(),r=c=>{n(c)},s=()=>{Ps.send({method:"setDebugSettings",payload:i})};E.useEffect(()=>(Ee.on("connectionChange",s),()=>{Ee.off("connectionChange",s)}),[s]);const l=X9({debugMode:e,debugSetting:i,onChange:r});return P.jsx("div",{className:"debug-setting-card",children:P.jsxs(_l,{style:{width:"100%"},children:[P.jsx("div",{className:"debug-setting-head",children:P.jsx(Ye.Text,{style:{fontWeight:"bold",fontSize:16},children:x("devOptions")})}),P.jsx("div",{className:"debug-setting-row",children:l.map(c=>P.jsxs("div",{className:"debug-setting-item",children:[P.jsxs("div",{className:"debug-setting-item-head",children:[P.jsx(_g,{className:"debug-setting-switch",checked:c.checked,onChange:c.onChange}),P.jsx(Ye.Text,{className:"debug-setting-item-title",children:c.label})]}),P.jsx(Ye.Text,{className:"debug-setting-item-desc",type:"tertiary",children:c.description})]},c.key))})]})})};function p_(){return{ip:Pe.get("clientHost")||localStorage.getItem("clientHost")||"",port:Pe.get("clientHttpPort")||localStorage.getItem("clientHttpPort")||"",wsPort:Pe.get("clientWsPort")||localStorage.getItem("clientWsPort")||""}}function QH(i=p_()){return!!(String(i.ip||"").trim()&&String(i.port||"").trim()&&String(i.wsPort||"").trim())}function Z9(i){const{ip:e,port:n,wsPort:r}=i;Pe.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),Vi.send({method:"manualConnect",payload:{clientHost:e,clientWsPort:r,clientHttpPort:n}}),Ps.init({clientWsPort:r,clientHost:e,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}function iC(i){const e=String(i.ip||""),n=String(i.port||""),r=String(i.wsPort||"");Pe.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}const f_=i=>{const{onClose:e,onSuccess:n,onValuesChange:r,onConnectResult:s,getFormApi:l,layout:c="default"}=i,[u,p]=E.useState(!1),[f,v]=E.useState({}),y=(j,F=3e3)=>new Promise(U=>{let V=!1;const K=setTimeout(()=>{if(!V){V=!0;try{ie?.close()}catch{}U({ok:!1,message:x("connectivityTimeout")})}},F);let ie=null;try{ie=new WebSocket(j),ie.onopen=()=>{if(!V){V=!0,clearTimeout(K);try{ie?.close()}catch{}U({ok:!0,message:x("connectivityOK")})}},ie.onerror=()=>{V||(V=!0,clearTimeout(K),U({ok:!1,message:x("connectivityFailed")}))}}catch{clearTimeout(K),U({ok:!1,message:x("connectivityFailed")})}}),S=async j=>{if(!L(j)){s?.({ok:!1,message:x("connectivityMissingParams")});return}p(!0),Z9(j);const{ip:F,wsPort:U}=j,V=await y(`ws://${F}:${U}`);s?.(V),V.ok&&n?.(),p(!1)},k=E.useMemo(()=>p_(),[]),[T,b]=E.useState(k),w=E.useRef(k),D=E.useRef(null),O=E.useRef(null),N=E.useRef(null),M=j=>{const F={...w.current,...j};w.current=F,b(F),v(U=>({...U,...j.ip!==void 0?{ip:void 0}:{},...j.port!==void 0?{port:void 0}:{},...j.wsPort!==void 0?{wsPort:void 0}:{}})),r?.(F),iC(F)},z=()=>{const j=D.current?.querySelector("input")?.value,F=O.current?.querySelector("input")?.value,U=N.current?.querySelector("input")?.value,V={ip:String(j||""),port:String(F||""),wsPort:String(U||"")};(V.ip!==w.current.ip||V.port!==w.current.port||V.wsPort!==w.current.wsPort)&&M(V)};E.useEffect(()=>{w.current=k,b(k),r?.(k),iC(k)},[k]),E.useEffect(()=>{const j=[0,80,300,800].map(F=>window.setTimeout(()=>z(),F));return()=>{j.forEach(F=>window.clearTimeout(F))}},[]),E.useEffect(()=>{l?.({getValues:()=>w.current,submitForm:()=>S(w.current)})},[l]);const L=j=>{const F={};return String(j.ip||"").trim()||(F.ip=x("debug.guide.manualBindIPInvalid")),String(j.port||"").trim()||(F.port=x("invalidPort")),String(j.wsPort||"").trim()||(F.wsPort=x("invalidPort")),v(F),Object.keys(F).length===0};return P.jsxs("div",{className:`manual-connection-form manual-connection-form-${c}`,children:[c==="default"?P.jsx("div",{className:"manual-connection-tip",children:x("manualConnectDialogDesc")}):null,P.jsxs("div",{className:"manual-connection-grid",children:[P.jsxs("div",{className:"manual-connection-field",children:[P.jsxs("div",{className:"manual-connection-label",children:[P.jsx(Ye.Text,{strong:!0,children:"Client IP "}),P.jsx(Ye.Text,{type:"danger",children:"*"})]}),P.jsx("div",{ref:D,children:P.jsx(as,{value:T.ip,onChange:j=>M({ip:String(j||"")}),onBlur:z,placeholder:"192.168.x.x"})}),f.ip?P.jsx(Ye.Text,{type:"danger",children:f.ip}):null]}),P.jsxs("div",{className:"manual-connection-field",children:[P.jsxs("div",{className:"manual-connection-label",children:[P.jsx(Ye.Text,{strong:!0,children:"Port 1(HTTP 端口) "}),P.jsx(Ye.Text,{type:"danger",children:"*"})]}),P.jsx("div",{ref:O,children:P.jsx(as,{value:T.port,onChange:j=>M({port:String(j||"")}),onBlur:z,placeholder:"3000"})}),f.port?P.jsx(Ye.Text,{type:"danger",children:f.port}):null]}),P.jsxs("div",{className:"manual-connection-field",children:[P.jsxs("div",{className:"manual-connection-label",children:[P.jsx(Ye.Text,{strong:!0,children:"Port 2(WS 端口) "}),P.jsx(Ye.Text,{type:"danger",children:"*"})]}),P.jsx("div",{ref:N,children:P.jsx(as,{value:T.wsPort,onChange:j=>M({wsPort:String(j||"")}),onBlur:z,placeholder:"2999"})}),f.wsPort?P.jsx(Ye.Text,{type:"danger",children:f.wsPort}):null]})]}),e?P.jsxs("div",{className:"manual-connection-footer",children:[P.jsx(et,{type:"tertiary",onClick:()=>e(),disabled:u,children:x("cancel")}),P.jsx(et,{type:"primary",theme:"solid",onClick:()=>S(w.current),loading:u,children:x("manualConnectConfirm")})]}):null]})},J9=()=>{const{state:{showManualBindIP:i},setShowManualBindIP:e}=un();return P.jsx(Bt,{className:"manual-connection-modal",width:520,title:x("manualBindClientDebugServiceTitle"),visible:i,showCancel:!1,onCancel:()=>e(!1),showOk:!1,footer:null,children:P.jsx(f_,{onClose:()=>e(!1),onSuccess:()=>e(!1)})})},eH=()=>{const{state:{isConnected:i,message:e}}=E.useContext(kg),n=e?.intent==="uploading",r=Math.max(0,Math.min(100,Math.round((e?.progress??0)*100))),s=!!e?.title;return P.jsxs("div",{"data-doc-shot":"start-debug-qr-idle",className:`home-container ${i?"home-container-connected":""}`,children:[P.jsx(M9,{title:x(i?"homeHeroTitleConnected":"homeHeroTitle"),subtitle:x(i?"homeHeroSubtitleConnected":"homeHeroSubtitle")}),P.jsxs("div",{className:Q("home-status-banner",`home-status-banner-${e?.type??"info"}`,{"home-status-banner-uploading":n}),"aria-live":"polite",children:[P.jsx("span",{className:"home-status-dot"}),P.jsxs("div",{className:"home-status-copy",children:[e?.title?P.jsx("div",{className:"home-status-title",children:e.title}):null,e?.desc?P.jsx("div",{className:Q("home-status-desc",{"home-status-desc-standalone":!s}),children:e.desc}):null]}),n?P.jsxs("div",{className:"home-status-progress-value",children:[r,"%"]}):null,n?P.jsx("div",{className:"home-status-progress-track",children:P.jsx("span",{className:"home-status-progress-fill",style:{width:`${r}%`}})}):null]}),P.jsx(K9,{isConnected:i}),!i&&P.jsx(Y9,{})]})},tH="https://bytedance.larkoffice.com/wiki/WvifwWjGri7bTzkPbqKcqVi5ntc";function nH(i){try{return i?(new URL(i).searchParams.get("port")||"").trim():""}catch{return""}}function rH(i,e){return i?i.ok?"success":i.code==="status"?"warning":"error":e?"running":"idle"}function iH(i){return x(i==="success"?"connectivityOK":i==="warning"?"netDiagStatusWarning":i==="error"?"connectivityNotOK":i==="running"?"netDiagStatusRunning":"netDiagStatusIdle")}function oH(i,e){return i?i.ok?x("netDiagCheckReachableDetail"):i.msg||x("connectivityFailed"):x(e?"netDiagCheckRunningDetail":"netDiagCheckIdleDetail")}function sH({hasChecked:i,running:e,nodeHttp:n,nodeWs:r,clientHttp:s,clientWs:l,hasClientEndpoint:c}){return e?{kind:"running",title:x("netDiagSummaryRunningTitle"),desc:x("netDiagSummaryRunningDesc"),suggestions:[x("netDiagSummaryRunningHint")]}:i?c?n&&!n.ok?{kind:"node-service",title:x("netDiagSummaryNodeTitle"),desc:x("netDiagSummaryNodeDesc"),suggestions:[x("netDiagSuggestNodeDesc"),x("netDiagSuggestNodeRestart")]}:r&&!r.ok?{kind:"node-service",title:x("netDiagSummaryNodeTitle"),desc:x("netDiagSummaryNodeWsDesc"),suggestions:[x("netDiagSuggestNodeDesc")]}:s?.ok&&l&&!l.ok?{kind:"client-ws-failed",title:x("netDiagSummaryClientWsTitle"),desc:x("netDiagSummaryClientWsDesc"),suggestions:[x("netDiagSuggestClientDebugService"),x("netDiagSuggestWsBlocked"),x("netDiagSuggestPhoneProxyFallback")]}:s&&!s.ok&&l&&!l.ok?{kind:"client-both-failed",title:x("netDiagSummaryClientBothTitle"),desc:x("netDiagSummaryClientBothDesc"),suggestions:[x("netDiagSuggestClientDebugService"),x("netDiagSuggestLanAndProxy"),x("netDiagSuggestPhoneProxyFallback")]}:n?.ok&&r?.ok&&s?.ok&&l?.ok?{kind:"healthy",title:x("netDiagSummaryHealthyTitle"),desc:x("netDiagSummaryHealthyDesc"),suggestions:[x("netDiagSuggestOkDesc")]}:{kind:"partial",title:x("netDiagSummaryPartialTitle"),desc:x("netDiagSummaryPartialDesc"),suggestions:[x("netDiagSummaryPartialHint")]}:{kind:"missing-client",title:x("netDiagSummaryMissingClientTitle"),desc:x("netDiagSummaryMissingClientDesc"),suggestions:[x("netDiagSuggestNoClientDesc")]}:c?{kind:"idle",title:x("netDiagSummaryIdleTitle"),desc:x("netDiagSummaryIdleDesc"),suggestions:[x("netDiagSummaryIdleHint")]}:{kind:"missing-client",title:x("netDiagSummaryMissingClientTitle"),desc:x("netDiagSummaryMissingClientDesc"),suggestions:[x("netDiagSuggestNoClientDesc")]}}const oC=(i,e=3e3)=>new Promise(n=>{let r=!1;const s=setTimeout(()=>{if(!r){r=!0;try{l?.close()}catch{}n({ok:!1,code:"timeout",msg:x("connectivityTimeout")})}},e);let l=null;try{l=new WebSocket(i),l.onopen=()=>{if(!r){r=!0,clearTimeout(s);try{l?.close()}catch{}n({ok:!0,code:"ok"})}},l.onerror=()=>{r||(r=!0,clearTimeout(s),n({ok:!1,code:"error",msg:x("connectivityFailed")}))}}catch{clearTimeout(s),n({ok:!1,code:"error",msg:x("connectivityFailed")})}}),sC=async i=>{try{const e=new AbortController,n=setTimeout(()=>e.abort(),3e3),r=await fetch(i,{method:"GET",cache:"no-store",signal:e.signal});return clearTimeout(n),r.ok?{ok:!0,code:"ok"}:{ok:!1,code:"status",msg:`${r.status} ${r.statusText}`}}catch(e){return e instanceof DOMException&&e.name==="AbortError"?{ok:!1,code:"timeout",msg:x("connectivityTimeout")}:{ok:!1,code:"error",msg:x("connectivityFailed")}}},aH=()=>{const i=_s(),{state:{devSchema:e,schema:n}}=un(),r=E.useRef(0),[s,l]=E.useState(!1),[c,u]=E.useState(!1),[p,f]=E.useState(!0),[v,y]=E.useState(!1),[S,k]=E.useState(!1),[T,b]=E.useState(),[w,D]=E.useState(),[O,N]=E.useState(),[M,z]=E.useState(),[L,j]=E.useState(!1),[F,U]=E.useState(null),[V,K]=E.useState(()=>({ip:String(Pe.get("clientHost")||localStorage.getItem("clientHost")||""),port:String(Pe.get("clientHttpPort")||localStorage.getItem("clientHttpPort")||""),wsPort:String(Pe.get("clientWsPort")||localStorage.getItem("clientWsPort")||"")})),ie=E.useMemo(()=>({ip:String(V.ip||""),port:String(V.port||""),wsPort:String(V.wsPort||"")}),[V]),ne=E.useCallback(te=>{K(te)},[]),ae=E.useMemo(()=>{const{nodeWsPort:te,clientHost:se,clientHttpPort:be,clientWsPort:Se}=Pe.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let ve="";try{n&&(ve=(new URL(n).searchParams.get("host")||"").trim())}catch{}return{schemaHost:ve,httpPort:nH(n),nodeWsPort:te,clientHost:se,clientHttpPort:be,clientWsPort:Se}},[e,n]),J=String(ie.ip||ae.clientHost||"").trim(),ue=String(ie.port||ae.clientHttpPort||"").trim(),pe=String(ie.wsPort||ae.clientWsPort||"").trim(),W=E.useCallback(async()=>{j(!0),l(!0),b(void 0),D(void 0),N(void 0),z(void 0);const te=await sC("/game/config");b(te);const se=ae.nodeWsPort;D(se?await oC(`ws://localhost:${se}`):{ok:!1,code:"error",msg:x("connectivityMissingParams")}),N(J&&ue?await sC(`http://${J}:${ue}/game/scripts/krypton.js`):{ok:!1,code:"error",msg:x("netDiagMissingClientHttp")}),z(J&&pe?await oC(`ws://${J}:${pe}`):{ok:!1,code:"error",msg:x("netDiagMissingClientWs")}),k(!0),l(!1)},[ae.nodeWsPort,J,ue,pe]);E.useEffect(()=>{W()},[W]);const ee=E.useMemo(()=>[{key:"node-http",title:x("netDiagCheckNodeHttp"),target:"/game/config",item:T},{key:"node-ws",title:x("netDiagCheckNodeWs"),target:ae.nodeWsPort?`ws://localhost:${ae.nodeWsPort}`:"-",item:w},{key:"client-http",title:x("netDiagCheckClientHttp"),target:J&&ue?`http://${J}:${ue}`:"-",item:O},{key:"client-ws",title:x("netDiagCheckClientWs"),target:J&&pe?`ws://${J}:${pe}`:"-",item:M}],[O,M,ae.nodeWsPort,T,w,J,ue,pe]),I=E.useMemo(()=>sH({hasChecked:L,running:s,nodeHttp:T,nodeWs:w,clientHttp:O,clientWs:M,hasClientEndpoint:!!(J&&ue&&pe)}),[O,M,L,T,w,J,ue,pe,s]),H=I.suggestions,oe=E.useCallback(()=>{r.current=window.scrollY,U(null),y(!0)},[]);return E.useEffect(()=>{if(!v)return;const te=()=>{window.scrollTo({top:r.current,left:0})},se=window.requestAnimationFrame(te),be=window.setTimeout(te,80);return()=>{window.cancelAnimationFrame(se),window.clearTimeout(be)}},[v]),P.jsxs("div",{className:"check-network-container",children:[P.jsxs("div",{className:"check-network-hero",children:[P.jsx("div",{className:"check-network-back",children:P.jsxs("button",{type:"button",className:"check-network-back-link",onClick:()=>i("/"),children:[P.jsx(C9,{size:14,strokeWidth:2}),P.jsx("span",{children:x("back")})]})}),P.jsx("div",{className:"check-network-hero-head",children:P.jsxs("div",{className:"check-network-hero-copy",children:[P.jsx("div",{className:"check-network-hero-title",children:x("netDiagTitle")}),P.jsx("div",{className:"check-network-hero-subtitle",children:x("netDiagSubtitle")})]})})]}),P.jsxs("section",{className:`check-network-section check-network-summary-result check-network-summary-result-${I.kind}`,children:[P.jsxs("div",{className:"check-network-section-headline",children:[P.jsx("div",{children:P.jsxs("div",{className:"check-network-title-row",children:[P.jsx("div",{className:"check-network-section-title",children:x("netDiagSummaryTitle")}),P.jsx(et,{className:"check-network-title-link",theme:"borderless",onClick:()=>window.open(tH),children:x("netDiagOpenTroubleshoot")})]})}),P.jsx(et,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>f(te=>!te),children:x(p?"netDiagCollapse":"netDiagExpand")})]}),p?P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"check-network-summary-main",children:[P.jsx("div",{className:"check-network-summary-eyebrow",children:x("netDiagGuideEyebrow")}),P.jsx("div",{className:"check-network-summary-result-title",children:I.title}),P.jsx("div",{className:"check-network-summary-result-desc",children:I.desc})]}),P.jsxs("div",{className:"check-network-guide-panel",children:[P.jsx("div",{className:"check-network-guide-label",children:x("netDiagGuideStepsTitle")}),P.jsx("div",{className:"check-network-suggestion-list",children:H.map((te,se)=>P.jsxs("div",{className:"check-network-suggestion-item",children:[P.jsx("span",{className:"check-network-suggestion-index",children:se+1}),P.jsx("span",{className:"check-network-suggestion-text",children:te})]},`${te}_${se}`))})]})]}):null]}),P.jsxs("section",{className:"check-network-section check-network-manual-entry",children:[P.jsxs("div",{className:"check-network-section-headline",children:[P.jsxs("div",{children:[P.jsx("div",{className:"check-network-section-title",children:x("netDiagManualBindEntry")}),P.jsx("div",{className:"check-network-suggest-desc",children:x("netDiagManualSectionDesc")})]}),P.jsxs("div",{className:"check-network-manual-entry-actions",children:[P.jsx(et,{className:"check-network-recheck-action",theme:"borderless",loading:s,onClick:()=>{W()},children:x("netDiagRunAll")}),P.jsx(et,{className:"check-network-next-step-action",theme:"solid",type:"primary",onClick:oe,children:x("netDiagActionManualConnect")})]})]}),F?P.jsx("div",{className:`check-network-inline-result ${F.ok?"success":"error"}`,children:F.ok?x("netDiagManualConnectResultSuccess"):`${x("netDiagManualConnectResultError")} ${F.message}`}):null]}),P.jsxs("section",{className:"check-network-section check-network-env-section",children:[P.jsxs("div",{className:"check-network-section-headline",children:[P.jsxs("div",{children:[P.jsx("div",{className:"check-network-section-title",children:x("netDiagEnvTitle")}),P.jsx("div",{className:"check-network-suggest-desc",children:x("netDiagEnvSectionDesc")})]}),P.jsx(et,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>u(te=>!te),children:x(c?"netDiagCollapse":"netDiagExpand")})]}),c?P.jsxs("div",{className:"check-network-summary-grid",children:[P.jsxs("div",{className:"check-network-summary-card",children:[P.jsx("div",{className:"check-network-summary-title",children:x("netDiagComputerGroup")}),P.jsxs("div",{className:"check-network-kv",children:[P.jsx("span",{children:x("netDiagEnvIP")}),P.jsx("span",{children:ae.schemaHost||"-"})]}),P.jsxs("div",{className:"check-network-kv",children:[P.jsx("span",{children:x("netDiagEnvWsPort")}),P.jsx("span",{children:ae.nodeWsPort||"-"})]}),P.jsxs("div",{className:"check-network-kv",children:[P.jsx("span",{children:x("netDiagEnvHttpPort")}),P.jsx("span",{children:ae.httpPort||"-"})]})]}),P.jsxs("div",{className:"check-network-summary-card",children:[P.jsx("div",{className:"check-network-summary-title",children:x("netDiagClientGroup")}),P.jsxs("div",{className:"check-network-kv",children:[P.jsx("span",{children:"IP"}),P.jsx("span",{children:J||"-"})]}),P.jsxs("div",{className:"check-network-kv",children:[P.jsx("span",{children:x("netDiagEnvWsPort")}),P.jsx("span",{children:pe||"-"})]}),P.jsxs("div",{className:"check-network-kv",children:[P.jsx("span",{children:x("netDiagEnvHttpPort")}),P.jsx("span",{children:ue||"-"})]})]})]}):null]}),P.jsxs("section",{className:"check-network-section check-network-check-section",children:[P.jsxs("div",{className:"check-network-section-headline",children:[P.jsxs("div",{children:[P.jsx("div",{className:"check-network-section-title",children:x("netDiagChecksTitle")}),P.jsx("div",{className:"check-network-suggest-desc",children:x("netDiagCheckSectionDesc")})]}),P.jsx(et,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>k(te=>!te),children:x(S?"netDiagCollapse":"netDiagExpand")})]}),S?P.jsx("div",{className:"check-network-checks",children:ee.map(te=>{const se=rH(te.item,s&&L);return P.jsxs("div",{className:`check-network-check-card check-network-check-${se}`,children:[P.jsxs("div",{className:"check-network-check-main",children:[P.jsxs("div",{className:"check-network-check-title-row",children:[P.jsx("span",{className:"check-network-check-dot"}),P.jsx("span",{className:"check-network-check-title",children:te.title})]}),P.jsxs("div",{className:"check-network-check-meta",children:[P.jsx("span",{className:"check-network-check-target",children:te.target}),P.jsx("span",{className:"check-network-check-detail",children:oH(te.item,s&&L)})]})]}),P.jsx("span",{className:`check-network-check-badge check-network-check-badge-${se}`,children:iH(se)})]},te.key)})}):null]}),P.jsxs(Bt,{className:"manual-connection-modal check-network-manual-modal",width:560,title:x("manualBindClientDebugServiceTitle"),visible:v,showCancel:!1,showOk:!1,footer:null,onCancel:()=>y(!1),children:[P.jsx(f_,{onClose:()=>y(!1),onSuccess:()=>y(!1),onValuesChange:ne,onConnectResult:te=>{U(te),W()}}),F&&!F.ok?P.jsx("div",{className:"check-network-inline-result error",children:`${x("netDiagManualConnectResultError")} ${F.message}`}):null]})]})},lH=E.lazy(()=>ct(()=>import("./index-B4j49Ts7.js"),__vite__mapDeps([22,23,24,25,26,27])).then(i=>({default:i.ProjectDetail}))),cH=E.lazy(()=>ct(()=>import("./index-Ca-cQ1Oq.js"),__vite__mapDeps([28,10,11])).then(i=>({default:i.DebugSetting}))),uH=E.lazy(()=>ct(()=>import("./index-DRr-Punk.js"),__vite__mapDeps([29,30,31,7,8,9,10,11,12,32])).then(i=>({default:i.LaunchMode}))),dH=E.lazy(()=>ct(()=>import("./index-DV0N-QmJ.js"),__vite__mapDeps([33,7,8,9,10,11,12,23,34])).then(i=>({default:i.CheckCode}))),pH=E.lazy(()=>ct(()=>import("./index-Dx-boSFk.js"),__vite__mapDeps([35,36])).then(i=>({default:i.BasicDebugGuide}))),fH=E.lazy(()=>ct(()=>import("./index-q7fKJFmZ.js"),__vite__mapDeps([37,24,25,38,39])).then(i=>({default:i.ChangeLog}))),hH=E.lazy(()=>ct(()=>import("./index-DXEfgIqc.js"),__vite__mapDeps([40,24,41,25,42,43,44,45,19])).then(i=>({default:i.IntegrationAssistant}))),gH=E.lazy(()=>ct(()=>import("./Detail-DNF1PK-R.js"),__vite__mapDeps([46,47,48,24,25,30,31,7,8,9,10,11,12,42,43,49,38])).then(i=>({default:i.IntegrationAssistantDetail}))),mH=E.lazy(()=>ct(()=>import("./MonetizationMode-C59U6Ari.js"),__vite__mapDeps([50,47,48,24,25,41,42,43,44,45,19])).then(i=>({default:i.IntegrationAssistantMonetizationMode}))),yH=E.lazy(()=>ct(()=>import("./index-BzEQAUVA.js"),__vite__mapDeps([51,52])).then(i=>({default:i.ManualConnect}))),vH=E.lazy(()=>ct(()=>import("./index-BCV7VBUL.js"),__vite__mapDeps([53,24,25,54,8,9,55,7,10,11,12,49,38,56,17])).then(i=>({default:i.WasmCodeSplit}))),bH=E.lazy(()=>ct(()=>import("./index-BPqSXmk6.js"),__vite__mapDeps([57,25,20,45,44,58,59])).then(i=>({default:i.Performance}))),SH=E.lazy(()=>ct(()=>import("./index-Bn_Zugqv.js"),__vite__mapDeps([60,24,25,54,8,9,55,26,58,44,61])).then(i=>({default:i.SubpackageCollect}))),wH=()=>P.jsx("div",{className:"routes-container",children:P.jsx(E.Suspense,{fallback:P.jsx(s_,{}),children:P.jsxs(aU,{children:[P.jsx(at,{path:"/",element:P.jsx(eH,{})}),P.jsx(at,{path:"/integration_assistant",element:P.jsx(hH,{})}),P.jsx(at,{path:"/integration_assistant/mode/:modeKey",element:P.jsx(mH,{})}),P.jsx(at,{path:"/integration_assistant/:capabilityKey",element:P.jsx(gH,{})}),P.jsx(at,{path:"/project_overview",element:P.jsx(lH,{})}),P.jsx(at,{path:"/project_detail",element:P.jsx(ph,{to:"/project_overview",replace:!0})}),P.jsx(at,{path:"/basic_debug_guide",element:P.jsx(pH,{})}),P.jsx(at,{path:"/debug_setting",element:P.jsx(cH,{})}),P.jsx(at,{path:"/launch_mode",element:P.jsx(uH,{})}),P.jsx(at,{path:"/upload_publish",element:P.jsx(dH,{})}),P.jsx(at,{path:"/version_upload",element:P.jsx(ph,{to:"/upload_publish",replace:!0})}),P.jsx(at,{path:"/precheck_code",element:P.jsx(ph,{to:"/upload_publish",replace:!0})}),P.jsx(at,{path:"/network_diagnostics",element:P.jsx(aH,{})}),P.jsx(at,{path:"/manual_connect",element:P.jsx(yH,{})}),P.jsx(at,{path:"/changelog",element:P.jsx(fH,{})}),P.jsx(at,{path:"/wasm_split",element:P.jsx(vH,{})}),P.jsx(at,{path:"/performance",element:P.jsx(bH,{})}),P.jsx(at,{path:"/subpackage_collect",element:P.jsx(SH,{})})]})})});function CH(){const{state:{loading:i,error:e,user:n}}=un(),{topErrorItems:r,updateGameDetailTopErrors:s,updateConfigTopErrors:l,updateGameDetailAccessErrors:c}=t9(),{fetchGameDetail:u}=o9({onSuccess:s,updateGameDetailAccessErrors:c}),{isServerError:p,serverErrorMsg:f}=s9({fetchGameDetail:u,updateConfigTopErrors:l}),v=Tg();return a9({onResourceChange:u}),E.useEffect(()=>{const y=async S=>{if(S.status!=="update_wasm_split_config_done")return;const k=await Qi({url:"/game/config",method:"GET"});k.error||l({currentUser:n,checkResult:k.data?.checkResult})};return Ee.on("unitySplitStatus",y),()=>{Ee.off("unitySplitStatus",y)}},[l,n]),p&&!i.visible?P.jsxs("div",{className:"server-error-container",children:[P.jsx(HU,{}),P.jsx("div",{className:"server-error-text",children:f})]}):P.jsxs(IU,{children:[P.jsx(A9,{items:r,fallbackErrorText:e.text}),P.jsx(N9,{enabled:!v&&!i.visible&&!p}),P.jsx(F9,{}),P.jsx(J9,{}),P.jsxs("div",{className:"main-layout",children:[P.jsx(R9,{}),P.jsxs("div",{className:"content-wrapper",children:[P.jsx(L9,{}),P.jsx(wH,{})]})]}),P.jsx(s_,{})]})}aW();gP.createRoot(document.getElementById("root")).render(P.jsx(gg,{children:P.jsx(uW,{children:P.jsx(CH,{})})}));export{Ka as $,C9 as A,et as B,_l as C,bl as D,Yt as E,mi as F,qn as G,g as H,iD as I,sr as J,me as K,Ar as L,vl as M,Wa as N,HH as O,M9 as P,rC as Q,C as R,Ss as S,Ye as T,VH as U,f_ as V,Lr as W,An as X,zr as Y,yl as Z,Te as _,zt as a,Zi as a$,Jn as a0,us as a1,ch as a2,ir as a3,Ee as a4,pg as a5,p_ as a6,QH as a7,Z9 as a8,Bt as a9,JS as aA,wx as aB,Bf as aC,Uo as aD,Ho as aE,yx as aF,Ph as aG,ew as aH,lT as aI,lt as aJ,ss as aK,rr as aL,Rr as aM,lg as aN,fi as aO,cs as aP,_n as aQ,ZC as aR,as as aS,lE as aT,JP as aU,Lh as aV,fl as aW,NO as aX,Yi as aY,yT as aZ,Wh as a_,sD as aa,Mh as ab,ar as ac,qt as ad,TG as ae,Ui as af,EH as ag,xH as ah,Nr as ai,NH as aj,IH as ak,ml as al,RH as am,TH as an,OH as ao,DH as ap,HC as aq,ai as ar,tr as as,Ze as at,eT as au,cn as av,Xh as aw,bx as ax,vx as ay,kh as az,Qi as b,BD as b$,zT as b0,cl as b1,AO as b2,gE as b3,xC as b4,CC as b5,uC as b6,VE as b7,sl as b8,ul as b9,vC as bA,BC as bB,KC as bC,Fr as bD,Tn as bE,dl as bF,Gh as bG,ET as bH,gl as bI,wl as bJ,Xa as bK,er as bL,DT as bM,$E as bN,Fh as bO,OE as bP,VP as bQ,SP as bR,OO as bS,ME as bT,uE as bU,FT as bV,ci as bW,PH as bX,GE as bY,Ob as bZ,_C as b_,Zt as ba,Uh as bb,wC as bc,Ah as bd,yE as be,el as bf,Hh as bg,ZT as bh,mP as bi,TE as bj,MC as bk,jO as bl,LO as bm,$C as bn,Zn as bo,mT as bp,$H as bq,eg as br,HO as bs,uT as bt,hl as bu,rg as bv,UC as bw,pE as bx,WP as by,HP as bz,Ag as c,qD as c0,Hi as c1,jD as c2,BH as c3,UP as c4,Zx as c5,ZE as c6,Ya as c7,uI as c8,bD as c9,LH as ca,_g as cb,AH as cc,MH as cd,Ki as ce,Mr as d,nW as e,_s as f,Dg as g,xg as h,x as i,P as j,Yh as k,Zh as l,dg as m,$r as n,Dh as o,zn as p,KH as q,E as r,KG as s,xe as t,un as u,UH as v,Et as w,vw as x,mt as y,Q as z};
|