@ttmg/cli 0.3.7-beta.3 → 0.3.7

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/index.js +384 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/package.json +1 -1
  5. package/dist/public/assets/Detail-BzyVtzyL.js +1 -0
  6. package/dist/public/assets/Detail-BzyVtzyL.js.br +0 -0
  7. package/dist/public/assets/MonetizationMode-gxP1CQqy.js +1 -0
  8. package/dist/public/assets/MonetizationModeSummary-CD54_ROf.js +1 -0
  9. package/dist/public/assets/baseForm-CB6KCNqW.css +1 -0
  10. package/dist/public/assets/baseForm-CB6KCNqW.css.br +0 -0
  11. package/dist/public/assets/baseForm-d3x5z6BS.js +10 -0
  12. package/dist/public/assets/baseForm-d3x5z6BS.js.br +0 -0
  13. package/dist/public/assets/index-07cXGo3a.js +14 -0
  14. package/dist/public/assets/index-07cXGo3a.js.br +0 -0
  15. package/dist/public/assets/{index-C5pUkGpS.js → index-766JxwXs.js} +1 -1
  16. package/dist/public/assets/index-766JxwXs.js.br +0 -0
  17. package/dist/public/assets/index-88dZ53Te.css +1 -0
  18. package/dist/public/assets/index-88dZ53Te.css.br +0 -0
  19. package/dist/public/assets/index-B7M-KACw.js +1 -0
  20. package/dist/public/assets/{index-rDVdz60K.js → index-BBHUSsVA.js} +1 -1
  21. package/dist/public/assets/index-BBHUSsVA.js.br +0 -0
  22. package/dist/public/assets/{index-D48tyFsA.js → index-BNtIdKnQ.js} +1 -1
  23. package/dist/public/assets/{index-CBkk8KwT.js → index-BZOItUfZ.js} +1 -1
  24. package/dist/public/assets/index-BZOItUfZ.js.br +0 -0
  25. package/dist/public/assets/{index-BKY0zDI7.js → index-Ba-my-vz.js} +1 -1
  26. package/dist/public/assets/index-Bf85t01Q.css +1 -0
  27. package/dist/public/assets/index-Bf85t01Q.css.br +0 -0
  28. package/dist/public/assets/{index-KxEzggZ9.js → index-Bz8ZWlHc.js} +1 -1
  29. package/dist/public/assets/index-C06KDNuj.css +1 -0
  30. package/dist/public/assets/index-C0Izps-u.js +1 -0
  31. package/dist/public/assets/index-C4Lcagww.js +1 -0
  32. package/dist/public/assets/{index-bAz3gu-3.js → index-CLDvvBgM.js} +1 -1
  33. package/dist/public/assets/{index-DbiZkOAh.css → index-CLgcHgzd.css} +1 -1
  34. package/dist/public/assets/index-CQR5bkkv.js +1 -0
  35. package/dist/public/assets/{index-HL2ryl1V.js → index-CYD_pNmH.js} +1 -1
  36. package/dist/public/assets/{index-aXJ7ldcB.js → index-Cr55HKuS.js} +1 -1
  37. package/dist/public/assets/{index-6LE--ADL.css → index-D2LsTDVa.css} +1 -1
  38. package/dist/public/assets/index-D2LsTDVa.css.br +0 -0
  39. package/dist/public/assets/{index-C4wGgEDm.css → index-DNsJSSmy.css} +1 -1
  40. package/dist/public/assets/index-E142v_RY.js +1 -0
  41. package/dist/public/assets/index-E142v_RY.js.br +0 -0
  42. package/dist/public/assets/index-tOg_vZEc.js +1 -0
  43. package/dist/public/assets/index-utYbqRWL.js +1 -0
  44. package/dist/public/assets/index-utYbqRWL.js.br +0 -0
  45. package/dist/public/assets/{times-Cue9NmYo.js → times-BvsrZcqF.js} +1 -1
  46. package/dist/public/index.html +2 -2
  47. package/dist/scripts/docs/capture.js +12 -4
  48. package/dist/scripts/docs/render.js +3 -2
  49. package/dist/scripts/docs/server.js +71 -9
  50. package/package.json +1 -1
  51. package/dist/public/assets/Detail-DZjhasKd.js +0 -1
  52. package/dist/public/assets/Detail-DZjhasKd.js.br +0 -0
  53. package/dist/public/assets/baseForm-Dyl22bqB.js +0 -10
  54. package/dist/public/assets/baseForm-Dyl22bqB.js.br +0 -0
  55. package/dist/public/assets/baseForm-DzWBZ1nI.css +0 -1
  56. package/dist/public/assets/baseForm-DzWBZ1nI.css.br +0 -0
  57. package/dist/public/assets/index-4r0PC3Bk.js +0 -1
  58. package/dist/public/assets/index-6LE--ADL.css.br +0 -0
  59. package/dist/public/assets/index-BACeBrQR.css +0 -1
  60. package/dist/public/assets/index-BBnWlodN.css +0 -1
  61. package/dist/public/assets/index-BBnWlodN.css.br +0 -0
  62. package/dist/public/assets/index-BLRDSesS.js +0 -1
  63. package/dist/public/assets/index-BUy8I0vu.js +0 -1
  64. package/dist/public/assets/index-BrSFFuip.js +0 -1
  65. package/dist/public/assets/index-BrSFFuip.js.br +0 -0
  66. package/dist/public/assets/index-C5pUkGpS.js.br +0 -0
  67. package/dist/public/assets/index-CBkk8KwT.js.br +0 -0
  68. package/dist/public/assets/index-Cx35BU6U.js +0 -1
  69. package/dist/public/assets/index-Cx35BU6U.js.br +0 -0
  70. package/dist/public/assets/index-DD7xtDwI.js +0 -14
  71. package/dist/public/assets/index-DD7xtDwI.js.br +0 -0
  72. package/dist/public/assets/index-_INIaBu0.js +0 -1
  73. package/dist/public/assets/index-jaMAKGHW.css +0 -1
  74. package/dist/public/assets/index-rDVdz60K.js.br +0 -0
  75. /package/dist/public/assets/{Detail-BaQ9eM95.css → index-BaQ9eM95.css} +0 -0
@@ -0,0 +1,14 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BBHUSsVA.js","assets/index-CLgcHgzd.css","assets/index-Cr55HKuS.js","assets/index-BZOItUfZ.js","assets/index-BFPQPvSA.css","assets/index-CYD_pNmH.js","assets/baseForm-d3x5z6BS.js","assets/times-BvsrZcqF.js","assets/times-C7C5ulLg.css","assets/baseForm-CB6KCNqW.css","assets/index-DXFg6tGR.css","assets/index-utYbqRWL.js","assets/index-88dZ53Te.css","assets/index-Bz8ZWlHc.js","assets/index-DNsJSSmy.css","assets/index-C0Izps-u.js","assets/index-C06KDNuj.css","assets/index-B7M-KACw.js","assets/MonetizationModeSummary-CD54_ROf.js","assets/index-tOg_vZEc.js","assets/index-Bf85t01Q.css","assets/Detail-BzyVtzyL.js","assets/index-CQR5bkkv.js","assets/index-BaQ9eM95.css","assets/MonetizationMode-gxP1CQqy.js","assets/index-C4Lcagww.js","assets/index-AtMMzkp0.css","assets/index-766JxwXs.js","assets/index-Ba-my-vz.js","assets/index-BPf4cmgA.css","assets/index-BnU4EHWL.css","assets/index-BNtIdKnQ.js","assets/index-Bf6aJOeV.css","assets/index-CLDvvBgM.js","assets/index-CH7igbHY.css","assets/index-E142v_RY.js","assets/index-DPSts5Re.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 La=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var fu={exports:{}},Wo={},hu={exports:{}},De={};var uy;function HP(){if(uy)return De;uy=1;var o=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"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function b(x){return x===null||typeof x!="object"?null:(x=y&&x[y]||x["@@iterator"],typeof x=="function"?x:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function _(x,W,re){this.props=x,this.context=W,this.refs=S,this.updater=re||P}_.prototype.isReactComponent={},_.prototype.setState=function(x,W){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,W,"setState")},_.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function O(){}O.prototype=_.prototype;function I(x,W,re){this.props=x,this.context=W,this.refs=S,this.updater=re||P}var N=I.prototype=new O;N.constructor=I,E(N,_.prototype),N.isPureReactComponent=!0;var M=Array.isArray,F=Object.prototype.hasOwnProperty,L={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function z(x,W,re){var ae,de={},he=null,ye=null;if(W!=null)for(ae in W.ref!==void 0&&(ye=W.ref),W.key!==void 0&&(he=""+W.key),W)F.call(W,ae)&&!A.hasOwnProperty(ae)&&(de[ae]=W[ae]);var be=arguments.length-2;if(be===1)de.children=re;else if(1<be){for(var ne=Array(be),oe=0;oe<be;oe++)ne[oe]=arguments[oe+2];de.children=ne}if(x&&x.defaultProps)for(ae in be=x.defaultProps,be)de[ae]===void 0&&(de[ae]=be[ae]);return{$$typeof:o,type:x,key:he,ref:ye,props:de,_owner:L.current}}function U(x,W){return{$$typeof:o,type:x.type,key:W,ref:x.ref,props:x.props,_owner:x._owner}}function K(x){return typeof x=="object"&&x!==null&&x.$$typeof===o}function V(x){var W={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(re){return W[re]})}var ie=/\/+/g;function ee(x,W){return typeof x=="object"&&x!==null&&x.key!=null?V(""+x.key):W.toString(36)}function ve(x,W,re,ae,de){var he=typeof x;(he==="undefined"||he==="boolean")&&(x=null);var ye=!1;if(x===null)ye=!0;else switch(he){case"string":case"number":ye=!0;break;case"object":switch(x.$$typeof){case o:case e:ye=!0}}if(ye)return ye=x,de=de(ye),x=ae===""?"."+ee(ye,0):ae,M(de)?(re="",x!=null&&(re=x.replace(ie,"$&/")+"/"),ve(de,W,re,"",function(oe){return oe})):de!=null&&(K(de)&&(de=U(de,re+(!de.key||ye&&ye.key===de.key?"":(""+de.key).replace(ie,"$&/")+"/")+x)),W.push(de)),1;if(ye=0,ae=ae===""?".":ae+":",M(x))for(var be=0;be<x.length;be++){he=x[be];var ne=ae+ee(he,be);ye+=ve(he,W,re,ne,de)}else if(ne=b(x),typeof ne=="function")for(x=ne.call(x),be=0;!(he=x.next()).done;)he=he.value,ne=ae+ee(he,be++),ye+=ve(he,W,re,ne,de);else if(he==="object")throw W=String(x),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return ye}function le(x,W,re){if(x==null)return x;var ae=[],de=0;return ve(x,ae,"","",function(he){return W.call(re,he,de++)}),ae}function _e(x){if(x._status===-1){var W=x._result;W=W(),W.then(function(re){(x._status===0||x._status===-1)&&(x._status=1,x._result=re)},function(re){(x._status===0||x._status===-1)&&(x._status=2,x._result=re)}),x._status===-1&&(x._status=0,x._result=W)}if(x._status===1)return x._result.default;throw x._result}var Ce={current:null},H={transition:null},Z={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:H,ReactCurrentOwner:L};return De.Children={map:le,forEach:function(x,W,re){le(x,function(){W.apply(this,arguments)},re)},count:function(x){var W=0;return le(x,function(){W++}),W},toArray:function(x){return le(x,function(W){return W})||[]},only:function(x){if(!K(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},De.Component=_,De.Fragment=n,De.Profiler=s,De.PureComponent=I,De.StrictMode=r,De.Suspense=p,De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,De.cloneElement=function(x,W,re){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var ae=E({},x.props),de=x.key,he=x.ref,ye=x._owner;if(W!=null){if(W.ref!==void 0&&(he=W.ref,ye=L.current),W.key!==void 0&&(de=""+W.key),x.type&&x.type.defaultProps)var be=x.type.defaultProps;for(ne in W)F.call(W,ne)&&!A.hasOwnProperty(ne)&&(ae[ne]=W[ne]===void 0&&be!==void 0?be[ne]:W[ne])}var ne=arguments.length-2;if(ne===1)ae.children=re;else if(1<ne){be=Array(ne);for(var oe=0;oe<ne;oe++)be[oe]=arguments[oe+2];ae.children=be}return{$$typeof:o,type:x.type,key:de,ref:he,props:ae,_owner:ye}},De.createContext=function(x){return x={$$typeof:c,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:l,_context:x},x.Consumer=x},De.createElement=z,De.createFactory=function(x){var W=z.bind(null,x);return W.type=x,W},De.createRef=function(){return{current:null}},De.forwardRef=function(x){return{$$typeof:u,render:x}},De.isValidElement=K,De.lazy=function(x){return{$$typeof:v,_payload:{_status:-1,_result:x},_init:_e}},De.memo=function(x,W){return{$$typeof:h,type:x,compare:W===void 0?null:W}},De.startTransition=function(x){var W=H.transition;H.transition={};try{x()}finally{H.transition=W}},De.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},De.useCallback=function(x,W){return Ce.current.useCallback(x,W)},De.useContext=function(x){return Ce.current.useContext(x)},De.useDebugValue=function(){},De.useDeferredValue=function(x){return Ce.current.useDeferredValue(x)},De.useEffect=function(x,W){return Ce.current.useEffect(x,W)},De.useId=function(){return Ce.current.useId()},De.useImperativeHandle=function(x,W,re){return Ce.current.useImperativeHandle(x,W,re)},De.useInsertionEffect=function(x,W){return Ce.current.useInsertionEffect(x,W)},De.useLayoutEffect=function(x,W){return Ce.current.useLayoutEffect(x,W)},De.useMemo=function(x,W){return Ce.current.useMemo(x,W)},De.useReducer=function(x,W,re){return Ce.current.useReducer(x,W,re)},De.useRef=function(x){return Ce.current.useRef(x)},De.useState=function(x){return Ce.current.useState(x)},De.useSyncExternalStore=function(x,W,re){return Ce.current.useSyncExternalStore(x,W,re)},De.useTransition=function(){return Ce.current.useTransition()},De.version="18.2.0",De}var dy;function fs(){return dy||(dy=1,hu.exports=HP()),hu.exports}var py;function VP(){if(py)return Wo;py=1;var o=fs(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(u,p,h){var v,y={},b=null,P=null;h!==void 0&&(b=""+h),p.key!==void 0&&(b=""+p.key),p.ref!==void 0&&(P=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:b,ref:P,props:y,_owner:s.current}}return Wo.Fragment=n,Wo.jsx=c,Wo.jsxs=c,Wo}var fy;function KP(){return fy||(fy=1,fu.exports=VP()),fu.exports}var T=KP(),ja={},gu={exports:{}},Ft={},mu={exports:{}},vu={};var hy;function QP(){return hy||(hy=1,(function(o){function e(H,Z){var x=H.length;H.push(Z);e:for(;0<x;){var W=x-1>>>1,re=H[W];if(0<s(re,Z))H[W]=Z,H[x]=re,x=W;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var Z=H[0],x=H.pop();if(x!==Z){H[0]=x;e:for(var W=0,re=H.length,ae=re>>>1;W<ae;){var de=2*(W+1)-1,he=H[de],ye=de+1,be=H[ye];if(0>s(he,x))ye<re&&0>s(be,he)?(H[W]=be,H[ye]=x,W=ye):(H[W]=he,H[de]=x,W=de);else if(ye<re&&0>s(be,x))H[W]=be,H[ye]=x,W=ye;else break e}}return Z}function s(H,Z){var x=H.sortIndex-Z.sortIndex;return x!==0?x:H.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;o.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();o.unstable_now=function(){return c.now()-u}}var p=[],h=[],v=1,y=null,b=3,P=!1,E=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,I=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(H){for(var Z=n(h);Z!==null;){if(Z.callback===null)r(h);else if(Z.startTime<=H)r(h),Z.sortIndex=Z.expirationTime,e(p,Z);else break;Z=n(h)}}function M(H){if(S=!1,N(H),!E)if(n(p)!==null)E=!0,_e(F);else{var Z=n(h);Z!==null&&Ce(M,Z.startTime-H)}}function F(H,Z){E=!1,S&&(S=!1,O(z),z=-1),P=!0;var x=b;try{for(N(Z),y=n(p);y!==null&&(!(y.expirationTime>Z)||H&&!V());){var W=y.callback;if(typeof W=="function"){y.callback=null,b=y.priorityLevel;var re=W(y.expirationTime<=Z);Z=o.unstable_now(),typeof re=="function"?y.callback=re:y===n(p)&&r(p),N(Z)}else r(p);y=n(p)}if(y!==null)var ae=!0;else{var de=n(h);de!==null&&Ce(M,de.startTime-Z),ae=!1}return ae}finally{y=null,b=x,P=!1}}var L=!1,A=null,z=-1,U=5,K=-1;function V(){return!(o.unstable_now()-K<U)}function ie(){if(A!==null){var H=o.unstable_now();K=H;var Z=!0;try{Z=A(!0,H)}finally{Z?ee():(L=!1,A=null)}}else L=!1}var ee;if(typeof I=="function")ee=function(){I(ie)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,le=ve.port2;ve.port1.onmessage=ie,ee=function(){le.postMessage(null)}}else ee=function(){_(ie,0)};function _e(H){A=H,L||(L=!0,ee())}function Ce(H,Z){z=_(function(){H(o.unstable_now())},Z)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(H){H.callback=null},o.unstable_continueExecution=function(){E||P||(E=!0,_e(F))},o.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<H?Math.floor(1e3/H):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_getFirstCallbackNode=function(){return n(p)},o.unstable_next=function(H){switch(b){case 1:case 2:case 3:var Z=3;break;default:Z=b}var x=b;b=Z;try{return H()}finally{b=x}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=function(){},o.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var x=b;b=H;try{return Z()}finally{b=x}},o.unstable_scheduleCallback=function(H,Z,x){var W=o.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?W+x:W):x=W,H){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=x+re,H={id:v++,callback:Z,priorityLevel:H,startTime:x,expirationTime:re,sortIndex:-1},x>W?(H.sortIndex=x,e(h,H),n(p)===null&&H===n(h)&&(S?(O(z),z=-1):S=!0,Ce(M,x-W))):(H.sortIndex=re,e(p,H),E||P||(E=!0,_e(F))),H},o.unstable_shouldYield=V,o.unstable_wrapCallback=function(H){var Z=b;return function(){var x=b;b=Z;try{return H.apply(this,arguments)}finally{b=x}}}})(vu)),vu}var gy;function XP(){return gy||(gy=1,mu.exports=QP()),mu.exports}var my;function YP(){if(my)return Ft;my=1;var o=fs(),e=XP();function n(t){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+t+"; visit "+i+" 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,i){c(t,i),c(t+"Capture",i)}function c(t,i){for(s[t]=i,t=0;t<i.length;t++)r.add(i[t])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,h=/^[: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 b(t){return p.call(y,t)?!0:p.call(v,t)?!1:h.test(t)?y[t]=!0:(v[t]=!0,!1)}function P(t,i,a,d){if(a!==null&&a.type===0)return!1;switch(typeof i){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 E(t,i,a,d){if(i===null||typeof i>"u"||P(t,i,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(t,i,a,d,f,m,C){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=f,this.mustUseProperty=a,this.propertyName=t,this.type=i,this.sanitizeURL=m,this.removeEmptyString=C}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0];_[i]=new S(i,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){_[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_[t]=new S(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){_[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){_[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){_[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){_[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){_[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function I(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 i=t.replace(O,I);_[i]=new S(i,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var i=t.replace(O,I);_[i]=new S(i,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(O,I);_[i]=new S(i,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),_.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function N(t,i,a,d){var f=_.hasOwnProperty(i)?_[i]:null;(f!==null?f.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(E(i,a,f,d)&&(a=null),d||f===null?b(i)&&(a===null?t.removeAttribute(i):t.setAttribute(i,""+a)):f.mustUseProperty?t[f.propertyName]=a===null?f.type===3?!1:"":a:(i=f.attributeName,d=f.attributeNamespace,a===null?t.removeAttribute(i):(f=f.type,a=f===3||f===4&&a===!0?"":""+a,d?t.setAttributeNS(d,i,a):t.setAttribute(i,a))))}var M=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),L=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),V=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),H=Symbol.iterator;function Z(t){return t===null||typeof t!="object"?null:(t=H&&t[H]||t["@@iterator"],typeof t=="function"?t:null)}var x=Object.assign,W;function re(t){if(W===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);W=i&&i[1]||""}return`
3
+ `+W+t}var ae=!1;function de(t,i){if(!t||ae)return"";ae=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(G){var d=G}Reflect.construct(t,[],i)}else{try{i.call()}catch(G){d=G}t.call(i.prototype)}else{try{throw Error()}catch(G){d=G}t()}}catch(G){if(G&&d&&typeof G.stack=="string"){for(var f=G.stack.split(`
4
+ `),m=d.stack.split(`
5
+ `),C=f.length-1,R=m.length-1;1<=C&&0<=R&&f[C]!==m[R];)R--;for(;1<=C&&0<=R;C--,R--)if(f[C]!==m[R]){if(C!==1||R!==1)do if(C--,R--,0>R||f[C]!==m[R]){var j=`
6
+ `+f[C].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=C&&0<=R);break}}}finally{ae=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?re(t):""}function he(t){switch(t.tag){case 5:return re(t.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return t=de(t.type,!1),t;case 11:return t=de(t.type.render,!1),t;case 1:return t=de(t.type,!0),t;default:return""}}function ye(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 A:return"Fragment";case L:return"Portal";case U:return"Profiler";case z:return"StrictMode";case ee:return"Suspense";case ve:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case V:return(t.displayName||"Context")+".Consumer";case K:return(t._context.displayName||"Context")+".Provider";case ie:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case le:return i=t.displayName||null,i!==null?i:ye(t.type)||"Memo";case _e:i=t._payload,t=t._init;try{return ye(t(i))}catch{}}return null}function be(t){var i=t.type;switch(t.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=i.render,t=t.displayName||t.name||"",i.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(i);case 8:return i===z?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ne(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function oe(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function mt(t){var i=oe(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),d=""+t[i];if(!t.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var f=a.get,m=a.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return f.call(this)},set:function(C){d=""+C,m.call(this,C)}}),Object.defineProperty(t,i,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(C){d=""+C},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function vt(t){t._valueTracker||(t._valueTracker=mt(t))}function pn(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var a=i.getValue(),d="";return t&&(d=oe(t)?t.checked?"true":"false":t.value),t=d,t!==a?(i.setValue(t),!0):!1}function en(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,i){var a=i.checked;return x({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function Ie(t,i){var a=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;a=ne(i.value!=null?i.value:a),t._wrapperState={initialChecked:d,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function fn(t,i){i=i.checked,i!=null&&N(t,"checked",i,!1)}function xe(t,i){fn(t,i);var a=ne(i.value),d=i.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}i.hasOwnProperty("value")?Fe(t,i.type,a):i.hasOwnProperty("defaultValue")&&Fe(t,i.type,ne(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(t.defaultChecked=!!i.defaultChecked)}function Dt(t,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+t._wrapperState.initialValue,a||i===t.value||(t.value=i),t.defaultValue=i}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function Fe(t,i,a){(i!=="number"||en(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var Me=Array.isArray;function Ve(t,i,a,d){if(t=t.options,i){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=!0;for(a=0;a<t.length;a++)f=i.hasOwnProperty("$"+t[a].value),t[a].selected!==f&&(t[a].selected=f),f&&d&&(t[a].defaultSelected=!0)}else{for(a=""+ne(a),i=null,f=0;f<t.length;f++){if(t[f].value===a){t[f].selected=!0,d&&(t[f].defaultSelected=!0);return}i!==null||t[f].disabled||(i=t[f])}i!==null&&(i.selected=!0)}}function Ke(t,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return x({},i,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Be(t,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(n(92));if(Me(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}t._wrapperState={initialValue:ne(a)}}function It(t,i){var a=ne(i.value),d=ne(i.defaultValue);a!=null&&(a=""+a,a!==t.value&&(t.value=a),i.defaultValue==null&&t.defaultValue!==a&&(t.defaultValue=a)),d!=null&&(t.defaultValue=""+d)}function Rt(t){var i=t.textContent;i===t._wrapperState.initialValue&&i!==""&&i!==null&&(t.value=i)}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,i){return t==null||t==="http://www.w3.org/1999/xhtml"?xn(i):t==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var tt,Dn=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,d,f){MSApp.execUnsafeLocalFunction(function(){return t(i,a,d,f)})}:t})(function(t,i){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=i;else{for(tt=tt||document.createElement("div"),tt.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=tt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;i.firstChild;)t.appendChild(i.firstChild)}});function tn(t,i){if(i){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=i;return}}t.textContent=i}var hn={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(hn).forEach(function(t){ur.forEach(function(i){i=i+t.charAt(0).toUpperCase()+t.substring(1),hn[i]=hn[t]})});function kt(t,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||hn.hasOwnProperty(t)&&hn[t]?(""+i).trim():i+"px"}function Bt(t,i){t=t.style;for(var a in i)if(i.hasOwnProperty(a)){var d=a.indexOf("--")===0,f=kt(a,i[a],d);a==="float"&&(a="cssFloat"),d?t.setProperty(a,f):t[a]=f}}var Ts=x({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,i){if(i){if(Ts[t]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,t));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function pr(t,i){if(t.indexOf("-")===-1)return typeof i.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,In=null,qt=null;function Wr(t){if(t=xo(t)){if(typeof Gr!="function")throw Error(n(280));var i=t.stateNode;i&&(i=Xs(i),Gr(t.stateNode,t.type,i))}}function Gn(t){In?qt?qt.push(t):qt=[t]:In=t}function Ur(){if(In){var t=In,i=qt;if(qt=In=null,Wr(t),i)for(t=0;t<i.length;t++)Wr(i[t])}}function oo(t,i){return t(i)}function so(){}var Dl=!1;function Ig(t,i,a){if(Dl)return t(i,a);Dl=!0;try{return oo(t,i,a)}finally{Dl=!1,(In!==null||qt!==null)&&(so(),Ur())}}function ao(t,i){var a=t.stateNode;if(a===null)return null;var d=Xs(a);if(d===null)return null;a=d[i];e:switch(i){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,i,typeof a));return a}var Il=!1;if(u)try{var lo={};Object.defineProperty(lo,"passive",{get:function(){Il=!0}}),window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{Il=!1}function ZC(t,i,a,d,f,m,C,R,j){var G=Array.prototype.slice.call(arguments,3);try{i.apply(a,G)}catch(Y){this.onError(Y)}}var co=!1,Os=null,xs=!1,Rl=null,JC={onError:function(t){co=!0,Os=t}};function e_(t,i,a,d,f,m,C,R,j){co=!1,Os=null,ZC.apply(JC,arguments)}function t_(t,i,a,d,f,m,C,R,j){if(e_.apply(this,arguments),co){if(co){var G=Os;co=!1,Os=null}else throw Error(n(198));xs||(xs=!0,Rl=G)}}function Hr(t){var i=t,a=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(a=i.return),t=i.return;while(t)}return i.tag===3?a:null}function Rg(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function Ng(t){if(Hr(t)!==t)throw Error(n(188))}function n_(t){var i=t.alternate;if(!i){if(i=Hr(t),i===null)throw Error(n(188));return i!==t?null:t}for(var a=t,d=i;;){var f=a.return;if(f===null)break;var m=f.alternate;if(m===null){if(d=f.return,d!==null){a=d;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===a)return Ng(f),t;if(m===d)return Ng(f),i;m=m.sibling}throw Error(n(188))}if(a.return!==d.return)a=f,d=m;else{for(var C=!1,R=f.child;R;){if(R===a){C=!0,a=f,d=m;break}if(R===d){C=!0,d=f,a=m;break}R=R.sibling}if(!C){for(R=m.child;R;){if(R===a){C=!0,a=m,d=f;break}if(R===d){C=!0,d=m,a=f;break}R=R.sibling}if(!C)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:i}function Ag(t){return t=n_(t),t!==null?Lg(t):null}function Lg(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var i=Lg(t);if(i!==null)return i;t=t.sibling}return null}var jg=e.unstable_scheduleCallback,Mg=e.unstable_cancelCallback,r_=e.unstable_shouldYield,i_=e.unstable_requestPaint,nt=e.unstable_now,o_=e.unstable_getCurrentPriorityLevel,Nl=e.unstable_ImmediatePriority,$g=e.unstable_UserBlockingPriority,Ds=e.unstable_NormalPriority,s_=e.unstable_LowPriority,Fg=e.unstable_IdlePriority,Is=null,Rn=null;function a_(t){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(Is,t,void 0,(t.current.flags&128)===128)}catch{}}var gn=Math.clz32?Math.clz32:u_,l_=Math.log,c_=Math.LN2;function u_(t){return t>>>=0,t===0?32:31-(l_(t)/c_|0)|0}var Rs=64,Ns=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 As(t,i){var a=t.pendingLanes;if(a===0)return 0;var d=0,f=t.suspendedLanes,m=t.pingedLanes,C=a&268435455;if(C!==0){var R=C&~f;R!==0?d=uo(R):(m&=C,m!==0&&(d=uo(m)))}else C=a&~f,C!==0?d=uo(C):m!==0&&(d=uo(m));if(d===0)return 0;if(i!==0&&i!==d&&(i&f)===0&&(f=d&-d,m=i&-i,f>=m||f===16&&(m&4194240)!==0))return i;if((d&4)!==0&&(d|=a&16),i=t.entangledLanes,i!==0)for(t=t.entanglements,i&=d;0<i;)a=31-gn(i),f=1<<a,d|=t[a],i&=~f;return d}function d_(t,i){switch(t){case 1:case 2:case 4:return i+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 i+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 p_(t,i){for(var a=t.suspendedLanes,d=t.pingedLanes,f=t.expirationTimes,m=t.pendingLanes;0<m;){var C=31-gn(m),R=1<<C,j=f[C];j===-1?((R&a)===0||(R&d)!==0)&&(f[C]=d_(R,i)):j<=i&&(t.expiredLanes|=R),m&=~R}}function Al(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function zg(){var t=Rs;return Rs<<=1,(Rs&4194240)===0&&(Rs=64),t}function Ll(t){for(var i=[],a=0;31>a;a++)i.push(t);return i}function po(t,i,a){t.pendingLanes|=i,i!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,i=31-gn(i),t[i]=a}function f_(t,i){var a=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;var d=t.eventTimes;for(t=t.expirationTimes;0<a;){var f=31-gn(a),m=1<<f;i[f]=0,d[f]=-1,t[f]=-1,a&=~m}}function jl(t,i){var a=t.entangledLanes|=i;for(t=t.entanglements;a;){var d=31-gn(a),f=1<<d;f&i|t[d]&i&&(t[d]|=i),a&=~f}}var $e=0;function Bg(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var qg,Ml,Gg,Wg,Ug,$l=!1,Ls=[],fr=null,hr=null,gr=null,fo=new Map,ho=new Map,mr=[],h_="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 Hg(t,i){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(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ho.delete(i.pointerId)}}function go(t,i,a,d,f,m){return t===null||t.nativeEvent!==m?(t={blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:m,targetContainers:[f]},i!==null&&(i=xo(i),i!==null&&Ml(i)),t):(t.eventSystemFlags|=d,i=t.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),t)}function g_(t,i,a,d,f){switch(i){case"focusin":return fr=go(fr,t,i,a,d,f),!0;case"dragenter":return hr=go(hr,t,i,a,d,f),!0;case"mouseover":return gr=go(gr,t,i,a,d,f),!0;case"pointerover":var m=f.pointerId;return fo.set(m,go(fo.get(m)||null,t,i,a,d,f)),!0;case"gotpointercapture":return m=f.pointerId,ho.set(m,go(ho.get(m)||null,t,i,a,d,f)),!0}return!1}function Vg(t){var i=Vr(t.target);if(i!==null){var a=Hr(i);if(a!==null){if(i=a.tag,i===13){if(i=Rg(a),i!==null){t.blockedOn=i,Ug(t.priority,function(){Gg(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function js(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var a=zl(t.domEventName,t.eventSystemFlags,i[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 i=xo(a),i!==null&&Ml(i),t.blockedOn=a,!1;i.shift()}return!0}function Kg(t,i,a){js(t)&&a.delete(i)}function m_(){$l=!1,fr!==null&&js(fr)&&(fr=null),hr!==null&&js(hr)&&(hr=null),gr!==null&&js(gr)&&(gr=null),fo.forEach(Kg),ho.forEach(Kg)}function mo(t,i){t.blockedOn===i&&(t.blockedOn=null,$l||($l=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,m_)))}function vo(t){function i(f){return mo(f,t)}if(0<Ls.length){mo(Ls[0],t);for(var a=1;a<Ls.length;a++){var d=Ls[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(i),ho.forEach(i),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);)Vg(a),a.blockedOn===null&&mr.shift()}var bi=M.ReactCurrentBatchConfig,Ms=!0;function v_(t,i,a,d){var f=$e,m=bi.transition;bi.transition=null;try{$e=1,Fl(t,i,a,d)}finally{$e=f,bi.transition=m}}function y_(t,i,a,d){var f=$e,m=bi.transition;bi.transition=null;try{$e=4,Fl(t,i,a,d)}finally{$e=f,bi.transition=m}}function Fl(t,i,a,d){if(Ms){var f=zl(t,i,a,d);if(f===null)rc(t,i,d,$s,a),Hg(t,d);else if(g_(f,t,i,a,d))d.stopPropagation();else if(Hg(t,d),i&4&&-1<h_.indexOf(t)){for(;f!==null;){var m=xo(f);if(m!==null&&qg(m),m=zl(t,i,a,d),m===null&&rc(t,i,d,$s,a),m===f)break;f=m}f!==null&&d.stopPropagation()}else rc(t,i,d,null,a)}}var $s=null;function zl(t,i,a,d){if($s=null,t=qr(d),t=Vr(t),t!==null)if(i=Hr(t),i===null)t=null;else if(a=i.tag,a===13){if(t=Rg(i),t!==null)return t;t=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null);return $s=t,null}function Qg(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(o_()){case Nl:return 1;case $g:return 4;case Ds:case s_:return 16;case Fg:return 536870912;default:return 16}default:return 16}}var vr=null,Bl=null,Fs=null;function Xg(){if(Fs)return Fs;var t,i=Bl,a=i.length,d,f="value"in vr?vr.value:vr.textContent,m=f.length;for(t=0;t<a&&i[t]===f[t];t++);var C=a-t;for(d=1;d<=C&&i[a-d]===f[m-d];d++);return Fs=f.slice(t,1<d?1-d:void 0)}function zs(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Bs(){return!0}function Yg(){return!1}function Gt(t){function i(a,d,f,m,C){this._reactName=a,this._targetInst=f,this.type=d,this.nativeEvent=m,this.target=C,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)?Bs:Yg,this.isPropagationStopped=Yg,this}return x(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Bs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Bs)},persist:function(){},isPersistent:Bs}),i}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ql=Gt(Si),yo=x({},Si,{view:0,detail:0}),b_=Gt(yo),Gl,Wl,bo,qs=x({},yo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hl,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"?(Gl=t.screenX-bo.screenX,Wl=t.screenY-bo.screenY):Wl=Gl=0,bo=t),Gl)},movementY:function(t){return"movementY"in t?t.movementY:Wl}}),Zg=Gt(qs),S_=x({},qs,{dataTransfer:0}),w_=Gt(S_),C_=x({},yo,{relatedTarget:0}),Ul=Gt(C_),__=x({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),P_=Gt(__),E_=x({},Si,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),k_=Gt(E_),T_=x({},Si,{data:0}),Jg=Gt(T_),O_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x_={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"},D_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I_(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=D_[t])?!!i[t]:!1}function Hl(){return I_}var R_=x({},yo,{key:function(t){if(t.key){var i=O_[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=zs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?x_[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hl,charCode:function(t){return t.type==="keypress"?zs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?zs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),N_=Gt(R_),A_=x({},qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),em=Gt(A_),L_=x({},yo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hl}),j_=Gt(L_),M_=x({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),$_=Gt(M_),F_=x({},qs,{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}),z_=Gt(F_),B_=[9,13,27,32],Vl=u&&"CompositionEvent"in window,So=null;u&&"documentMode"in document&&(So=document.documentMode);var q_=u&&"TextEvent"in window&&!So,tm=u&&(!Vl||So&&8<So&&11>=So),nm=" ",rm=!1;function im(t,i){switch(t){case"keyup":return B_.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var wi=!1;function G_(t,i){switch(t){case"compositionend":return om(i);case"keypress":return i.which!==32?null:(rm=!0,nm);case"textInput":return t=i.data,t===nm&&rm?null:t;default:return null}}function W_(t,i){if(wi)return t==="compositionend"||!Vl&&im(t,i)?(t=Xg(),Fs=Bl=vr=null,wi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return tm&&i.locale!=="ko"?null:i.data;default:return null}}var U_={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 sm(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!U_[t.type]:i==="textarea"}function am(t,i,a,d){Gn(d),i=Vs(i,"onChange"),0<i.length&&(a=new ql("onChange","change",null,a,d),t.push({event:a,listeners:i}))}var wo=null,Co=null;function H_(t){Em(t,0)}function Gs(t){var i=ki(t);if(pn(i))return t}function V_(t,i){if(t==="change")return i}var lm=!1;if(u){var Kl;if(u){var Ql="oninput"in document;if(!Ql){var cm=document.createElement("div");cm.setAttribute("oninput","return;"),Ql=typeof cm.oninput=="function"}Kl=Ql}else Kl=!1;lm=Kl&&(!document.documentMode||9<document.documentMode)}function um(){wo&&(wo.detachEvent("onpropertychange",dm),Co=wo=null)}function dm(t){if(t.propertyName==="value"&&Gs(Co)){var i=[];am(i,Co,t,qr(t)),Ig(H_,i)}}function K_(t,i,a){t==="focusin"?(um(),wo=i,Co=a,wo.attachEvent("onpropertychange",dm)):t==="focusout"&&um()}function Q_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gs(Co)}function X_(t,i){if(t==="click")return Gs(i)}function Y_(t,i){if(t==="input"||t==="change")return Gs(i)}function Z_(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var mn=typeof Object.is=="function"?Object.is:Z_;function _o(t,i){if(mn(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var a=Object.keys(t),d=Object.keys(i);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var f=a[d];if(!p.call(i,f)||!mn(t[f],i[f]))return!1}return!0}function pm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fm(t,i){var a=pm(t);t=0;for(var d;a;){if(a.nodeType===3){if(d=t+a.textContent.length,t<=i&&d>=i)return{node:a,offset:i-t};t=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=pm(a)}}function hm(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?hm(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function gm(){for(var t=window,i=en();i instanceof t.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)t=i.contentWindow;else break;i=en(t.document)}return i}function Xl(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function J_(t){var i=gm(),a=t.focusedElem,d=t.selectionRange;if(i!==a&&a&&a.ownerDocument&&hm(a.ownerDocument.documentElement,a)){if(d!==null&&Xl(a)){if(i=d.start,t=d.end,t===void 0&&(t=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(t,a.value.length);else if(t=(i=a.ownerDocument||document)&&i.defaultView||window,t.getSelection){t=t.getSelection();var f=a.textContent.length,m=Math.min(d.start,f);d=d.end===void 0?m:Math.min(d.end,f),!t.extend&&m>d&&(f=d,d=m,m=f),f=fm(a,m);var C=fm(a,d);f&&C&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==C.node||t.focusOffset!==C.offset)&&(i=i.createRange(),i.setStart(f.node,f.offset),t.removeAllRanges(),m>d?(t.addRange(i),t.extend(C.node,C.offset)):(i.setEnd(C.node,C.offset),t.addRange(i)))}}for(i=[],t=a;t=t.parentNode;)t.nodeType===1&&i.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)t=i[a],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var eP=u&&"documentMode"in document&&11>=document.documentMode,Ci=null,Yl=null,Po=null,Zl=!1;function mm(t,i,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zl||Ci==null||Ci!==en(d)||(d=Ci,"selectionStart"in d&&Xl(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}),Po&&_o(Po,d)||(Po=d,d=Vs(Yl,"onSelect"),0<d.length&&(i=new ql("onSelect","select",null,i,a),t.push({event:i,listeners:d}),i.target=Ci)))}function Ws(t,i){var a={};return a[t.toLowerCase()]=i.toLowerCase(),a["Webkit"+t]="webkit"+i,a["Moz"+t]="moz"+i,a}var _i={animationend:Ws("Animation","AnimationEnd"),animationiteration:Ws("Animation","AnimationIteration"),animationstart:Ws("Animation","AnimationStart"),transitionend:Ws("Transition","TransitionEnd")},Jl={},vm={};u&&(vm=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 Us(t){if(Jl[t])return Jl[t];if(!_i[t])return t;var i=_i[t],a;for(a in i)if(i.hasOwnProperty(a)&&a in vm)return Jl[t]=i[a];return t}var ym=Us("animationend"),bm=Us("animationiteration"),Sm=Us("animationstart"),wm=Us("transitionend"),Cm=new Map,_m="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 yr(t,i){Cm.set(t,i),l(i,[t])}for(var ec=0;ec<_m.length;ec++){var tc=_m[ec],tP=tc.toLowerCase(),nP=tc[0].toUpperCase()+tc.slice(1);yr(tP,"on"+nP)}yr(ym,"onAnimationEnd"),yr(bm,"onAnimationIteration"),yr(Sm,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(wm,"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 Eo="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(" "),rP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Eo));function Pm(t,i,a){var d=t.type||"unknown-event";t.currentTarget=a,t_(d,i,void 0,t),t.currentTarget=null}function Em(t,i){i=(i&4)!==0;for(var a=0;a<t.length;a++){var d=t[a],f=d.event;d=d.listeners;e:{var m=void 0;if(i)for(var C=d.length-1;0<=C;C--){var R=d[C],j=R.instance,G=R.currentTarget;if(R=R.listener,j!==m&&f.isPropagationStopped())break e;Pm(f,R,G),m=j}else for(C=0;C<d.length;C++){if(R=d[C],j=R.instance,G=R.currentTarget,R=R.listener,j!==m&&f.isPropagationStopped())break e;Pm(f,R,G),m=j}}}if(xs)throw t=Rl,xs=!1,Rl=null,t}function qe(t,i){var a=i[cc];a===void 0&&(a=i[cc]=new Set);var d=t+"__bubble";a.has(d)||(km(i,t,2,!1),a.add(d))}function nc(t,i,a){var d=0;i&&(d|=4),km(a,t,d,i)}var Hs="_reactListening"+Math.random().toString(36).slice(2);function ko(t){if(!t[Hs]){t[Hs]=!0,r.forEach(function(a){a!=="selectionchange"&&(rP.has(a)||nc(a,!1,t),nc(a,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[Hs]||(i[Hs]=!0,nc("selectionchange",!1,i))}}function km(t,i,a,d){switch(Qg(i)){case 1:var f=v_;break;case 4:f=y_;break;default:f=Fl}a=f.bind(null,i,a,t),f=void 0,!Il||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),d?f!==void 0?t.addEventListener(i,a,{capture:!0,passive:f}):t.addEventListener(i,a,!0):f!==void 0?t.addEventListener(i,a,{passive:f}):t.addEventListener(i,a,!1)}function rc(t,i,a,d,f){var m=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var C=d.tag;if(C===3||C===4){var R=d.stateNode.containerInfo;if(R===f||R.nodeType===8&&R.parentNode===f)break;if(C===4)for(C=d.return;C!==null;){var j=C.tag;if((j===3||j===4)&&(j=C.stateNode.containerInfo,j===f||j.nodeType===8&&j.parentNode===f))return;C=C.return}for(;R!==null;){if(C=Vr(R),C===null)return;if(j=C.tag,j===5||j===6){d=m=C;continue e}R=R.parentNode}}d=d.return}Ig(function(){var G=m,Y=qr(a),J=[];e:{var Q=Cm.get(t);if(Q!==void 0){var se=ql,ue=t;switch(t){case"keypress":if(zs(a)===0)break e;case"keydown":case"keyup":se=N_;break;case"focusin":ue="focus",se=Ul;break;case"focusout":ue="blur",se=Ul;break;case"beforeblur":case"afterblur":se=Ul;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":se=Zg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=w_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=j_;break;case ym:case bm:case Sm:se=P_;break;case wm:se=$_;break;case"scroll":se=b_;break;case"wheel":se=z_;break;case"copy":case"cut":case"paste":se=k_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=em}var pe=(i&4)!==0,rt=!pe&&t==="scroll",B=pe?Q!==null?Q+"Capture":null:Q;pe=[];for(var $=G,q;$!==null;){q=$;var te=q.stateNode;if(q.tag===5&&te!==null&&(q=te,B!==null&&(te=ao($,B),te!=null&&pe.push(To($,te,q)))),rt)break;$=$.return}0<pe.length&&(Q=new se(Q,ue,null,a,Y),J.push({event:Q,listeners:pe}))}}if((i&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",se=t==="mouseout"||t==="pointerout",Q&&a!==Br&&(ue=a.relatedTarget||a.fromElement)&&(Vr(ue)||ue[Wn]))break e;if((se||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,se?(ue=a.relatedTarget||a.toElement,se=G,ue=ue?Vr(ue):null,ue!==null&&(rt=Hr(ue),ue!==rt||ue.tag!==5&&ue.tag!==6)&&(ue=null)):(se=null,ue=G),se!==ue)){if(pe=Zg,te="onMouseLeave",B="onMouseEnter",$="mouse",(t==="pointerout"||t==="pointerover")&&(pe=em,te="onPointerLeave",B="onPointerEnter",$="pointer"),rt=se==null?Q:ki(se),q=ue==null?Q:ki(ue),Q=new pe(te,$+"leave",se,a,Y),Q.target=rt,Q.relatedTarget=q,te=null,Vr(Y)===G&&(pe=new pe(B,$+"enter",ue,a,Y),pe.target=q,pe.relatedTarget=rt,te=pe),rt=te,se&&ue)t:{for(pe=se,B=ue,$=0,q=pe;q;q=Pi(q))$++;for(q=0,te=B;te;te=Pi(te))q++;for(;0<$-q;)pe=Pi(pe),$--;for(;0<q-$;)B=Pi(B),q--;for(;$--;){if(pe===B||B!==null&&pe===B.alternate)break t;pe=Pi(pe),B=Pi(B)}pe=null}else pe=null;se!==null&&Tm(J,Q,se,pe,!1),ue!==null&&rt!==null&&Tm(J,rt,ue,pe,!0)}}e:{if(Q=G?ki(G):window,se=Q.nodeName&&Q.nodeName.toLowerCase(),se==="select"||se==="input"&&Q.type==="file")var ge=V_;else if(sm(Q))if(lm)ge=Y_;else{ge=Q_;var Se=K_}else(se=Q.nodeName)&&se.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ge=X_);if(ge&&(ge=ge(t,G))){am(J,ge,a,Y);break e}Se&&Se(t,Q,G),t==="focusout"&&(Se=Q._wrapperState)&&Se.controlled&&Q.type==="number"&&Fe(Q,"number",Q.value)}switch(Se=G?ki(G):window,t){case"focusin":(sm(Se)||Se.contentEditable==="true")&&(Ci=Se,Yl=G,Po=null);break;case"focusout":Po=Yl=Ci=null;break;case"mousedown":Zl=!0;break;case"contextmenu":case"mouseup":case"dragend":Zl=!1,mm(J,a,Y);break;case"selectionchange":if(eP)break;case"keydown":case"keyup":mm(J,a,Y)}var we;if(Vl)e:{switch(t){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else wi?im(t,a)&&(Pe="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Pe="onCompositionStart");Pe&&(tm&&a.locale!=="ko"&&(wi||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&wi&&(we=Xg()):(vr=Y,Bl="value"in vr?vr.value:vr.textContent,wi=!0)),Se=Vs(G,Pe),0<Se.length&&(Pe=new Jg(Pe,t,null,a,Y),J.push({event:Pe,listeners:Se}),we?Pe.data=we:(we=om(a),we!==null&&(Pe.data=we)))),(we=q_?G_(t,a):W_(t,a))&&(G=Vs(G,"onBeforeInput"),0<G.length&&(Y=new Jg("onBeforeInput","beforeinput",null,a,Y),J.push({event:Y,listeners:G}),Y.data=we))}Em(J,i)})}function To(t,i,a){return{instance:t,listener:i,currentTarget:a}}function Vs(t,i){for(var a=i+"Capture",d=[];t!==null;){var f=t,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=ao(t,a),m!=null&&d.unshift(To(t,m,f)),m=ao(t,i),m!=null&&d.push(To(t,m,f))),t=t.return}return d}function Pi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Tm(t,i,a,d,f){for(var m=i._reactName,C=[];a!==null&&a!==d;){var R=a,j=R.alternate,G=R.stateNode;if(j!==null&&j===d)break;R.tag===5&&G!==null&&(R=G,f?(j=ao(a,m),j!=null&&C.unshift(To(a,j,R))):f||(j=ao(a,m),j!=null&&C.push(To(a,j,R)))),a=a.return}C.length!==0&&t.push({event:i,listeners:C})}var iP=/\r\n?/g,oP=/\u0000|\uFFFD/g;function Om(t){return(typeof t=="string"?t:""+t).replace(iP,`
7
+ `).replace(oP,"")}function Ks(t,i,a){if(i=Om(i),Om(t)!==i&&a)throw Error(n(425))}function Qs(){}var ic=null,oc=null;function sc(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var ac=typeof setTimeout=="function"?setTimeout:void 0,sP=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,aP=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(t){return xm.resolve(null).then(t).catch(lP)}:ac;function lP(t){setTimeout(function(){throw t})}function lc(t,i){var a=i,d=0;do{var f=a.nextSibling;if(t.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(d===0){t.removeChild(f),vo(i);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=f}while(a);vo(i)}function br(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return t}function Dm(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return t;i--}else a==="/$"&&i++}t=t.previousSibling}return null}var Ei=Math.random().toString(36).slice(2),Nn="__reactFiber$"+Ei,Oo="__reactProps$"+Ei,Wn="__reactContainer$"+Ei,cc="__reactEvents$"+Ei,cP="__reactListeners$"+Ei,uP="__reactHandles$"+Ei;function Vr(t){var i=t[Nn];if(i)return i;for(var a=t.parentNode;a;){if(i=a[Wn]||a[Nn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(t=Dm(t);t!==null;){if(a=t[Nn])return a;t=Dm(t)}return i}t=a,a=t.parentNode}return null}function xo(t){return t=t[Nn]||t[Wn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ki(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(n(33))}function Xs(t){return t[Oo]||null}var uc=[],Ti=-1;function Sr(t){return{current:t}}function Ge(t){0>Ti||(t.current=uc[Ti],uc[Ti]=null,Ti--)}function ze(t,i){Ti++,uc[Ti]=t.current,t.current=i}var wr={},yt=Sr(wr),At=Sr(!1),Kr=wr;function Oi(t,i){var a=t.type.contextTypes;if(!a)return wr;var d=t.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var f={},m;for(m in a)f[m]=i[m];return d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=f),f}function Lt(t){return t=t.childContextTypes,t!=null}function Ys(){Ge(At),Ge(yt)}function Im(t,i,a){if(yt.current!==wr)throw Error(n(168));ze(yt,i),ze(At,a)}function Rm(t,i,a){var d=t.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var f in d)if(!(f in i))throw Error(n(108,be(t)||"Unknown",f));return x({},a,d)}function Zs(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wr,Kr=yt.current,ze(yt,t),ze(At,At.current),!0}function Nm(t,i,a){var d=t.stateNode;if(!d)throw Error(n(169));a?(t=Rm(t,i,Kr),d.__reactInternalMemoizedMergedChildContext=t,Ge(At),Ge(yt),ze(yt,t)):Ge(At),ze(At,a)}var Un=null,Js=!1,dc=!1;function Am(t){Un===null?Un=[t]:Un.push(t)}function dP(t){Js=!0,Am(t)}function Cr(){if(!dc&&Un!==null){dc=!0;var t=0,i=$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,Js=!1}catch(f){throw Un!==null&&(Un=Un.slice(t+1)),jg(Nl,Cr),f}finally{$e=i,dc=!1}}return null}var xi=[],Di=0,ea=null,ta=0,nn=[],rn=0,Qr=null,Hn=1,Vn="";function Xr(t,i){xi[Di++]=ta,xi[Di++]=ea,ea=t,ta=i}function Lm(t,i,a){nn[rn++]=Hn,nn[rn++]=Vn,nn[rn++]=Qr,Qr=t;var d=Hn;t=Vn;var f=32-gn(d)-1;d&=~(1<<f),a+=1;var m=32-gn(i)+f;if(30<m){var C=f-f%5;m=(d&(1<<C)-1).toString(32),d>>=C,f-=C,Hn=1<<32-gn(i)+f|a<<f|d,Vn=m+t}else Hn=1<<m|a<<f|d,Vn=t}function pc(t){t.return!==null&&(Xr(t,1),Lm(t,1,0))}function fc(t){for(;t===ea;)ea=xi[--Di],xi[Di]=null,ta=xi[--Di],xi[Di]=null;for(;t===Qr;)Qr=nn[--rn],nn[rn]=null,Vn=nn[--rn],nn[rn]=null,Hn=nn[--rn],nn[rn]=null}var Wt=null,Ut=null,We=!1,vn=null;function jm(t,i){var a=ln(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=t,i=t.deletions,i===null?(t.deletions=[a],t.flags|=16):i.push(a)}function Mm(t,i){switch(t.tag){case 5:var a=t.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(t.stateNode=i,Wt=t,Ut=br(i.firstChild),!0):!1;case 6:return i=t.pendingProps===""||i.nodeType!==3?null:i,i!==null?(t.stateNode=i,Wt=t,Ut=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=Qr!==null?{id:Hn,overflow:Vn}:null,t.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=ln(18,null,null,0),a.stateNode=i,a.return=t,t.child=a,Wt=t,Ut=null,!0):!1;default:return!1}}function hc(t){return(t.mode&1)!==0&&(t.flags&128)===0}function gc(t){if(We){var i=Ut;if(i){var a=i;if(!Mm(t,i)){if(hc(t))throw Error(n(418));i=br(a.nextSibling);var d=Wt;i&&Mm(t,i)?jm(d,a):(t.flags=t.flags&-4097|2,We=!1,Wt=t)}}else{if(hc(t))throw Error(n(418));t.flags=t.flags&-4097|2,We=!1,Wt=t}}}function $m(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Wt=t}function na(t){if(t!==Wt)return!1;if(!We)return $m(t),We=!0,!1;var i;if((i=t.tag!==3)&&!(i=t.tag!==5)&&(i=t.type,i=i!=="head"&&i!=="body"&&!sc(t.type,t.memoizedProps)),i&&(i=Ut)){if(hc(t))throw Fm(),Error(n(418));for(;i;)jm(t,i),i=br(i.nextSibling)}if($m(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(n(317));e:{for(t=t.nextSibling,i=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"){if(i===0){Ut=br(t.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}t=t.nextSibling}Ut=null}}else Ut=Wt?br(t.stateNode.nextSibling):null;return!0}function Fm(){for(var t=Ut;t;)t=br(t.nextSibling)}function Ii(){Ut=Wt=null,We=!1}function mc(t){vn===null?vn=[t]:vn.push(t)}var pP=M.ReactCurrentBatchConfig;function yn(t,i){if(t&&t.defaultProps){i=x({},i),t=t.defaultProps;for(var a in t)i[a]===void 0&&(i[a]=t[a]);return i}return i}var ra=Sr(null),ia=null,Ri=null,vc=null;function yc(){vc=Ri=ia=null}function bc(t){var i=ra.current;Ge(ra),t._currentValue=i}function Sc(t,i,a){for(;t!==null;){var d=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),t===a)break;t=t.return}}function Ni(t,i){ia=t,vc=Ri=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&i)!==0&&(jt=!0),t.firstContext=null)}function on(t){var i=t._currentValue;if(vc!==t)if(t={context:t,memoizedValue:i,next:null},Ri===null){if(ia===null)throw Error(n(308));Ri=t,ia.dependencies={lanes:0,firstContext:t}}else Ri=Ri.next=t;return i}var Yr=null;function wc(t){Yr===null?Yr=[t]:Yr.push(t)}function zm(t,i,a,d){var f=i.interleaved;return f===null?(a.next=a,wc(i)):(a.next=f.next,f.next=a),i.interleaved=a,Kn(t,d)}function Kn(t,i){t.lanes|=i;var a=t.alternate;for(a!==null&&(a.lanes|=i),a=t,t=t.return;t!==null;)t.childLanes|=i,a=t.alternate,a!==null&&(a.childLanes|=i),a=t,t=t.return;return a.tag===3?a.stateNode:null}var _r=!1;function Cc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bm(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Qn(t,i){return{eventTime:t,lane:i,tag:0,payload:null,callback:null,next:null}}function Pr(t,i,a){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(Re&2)!==0){var f=d.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),d.pending=i,Kn(t,a)}return f=d.interleaved,f===null?(i.next=i,wc(d)):(i.next=f.next,f.next=i),d.interleaved=i,Kn(t,a)}function oa(t,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var d=i.lanes;d&=t.pendingLanes,a|=d,i.lanes=a,jl(t,a)}}function qm(t,i){var a=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var f=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var C={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?f=m=C:m=m.next=C,a=a.next}while(a!==null);m===null?f=m=i:m=m.next=i}else f=m=i;a={baseState:d.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:d.shared,effects:d.effects},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=i:t.next=i,a.lastBaseUpdate=i}function sa(t,i,a,d){var f=t.updateQueue;_r=!1;var m=f.firstBaseUpdate,C=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var j=R,G=j.next;j.next=null,C===null?m=G:C.next=G,C=j;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,R=Y.lastBaseUpdate,R!==C&&(R===null?Y.firstBaseUpdate=G:R.next=G,Y.lastBaseUpdate=j))}if(m!==null){var J=f.baseState;C=0,Y=G=j=null,R=m;do{var Q=R.lane,se=R.eventTime;if((d&Q)===Q){Y!==null&&(Y=Y.next={eventTime:se,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var ue=t,pe=R;switch(Q=i,se=a,pe.tag){case 1:if(ue=pe.payload,typeof ue=="function"){J=ue.call(se,J,Q);break e}J=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=pe.payload,Q=typeof ue=="function"?ue.call(se,J,Q):ue,Q==null)break e;J=x({},J,Q);break e;case 2:_r=!0}}R.callback!==null&&R.lane!==0&&(t.flags|=64,Q=f.effects,Q===null?f.effects=[R]:Q.push(R))}else se={eventTime:se,lane:Q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Y===null?(G=Y=se,j=J):Y=Y.next=se,C|=Q;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;Q=R,R=Q.next,Q.next=null,f.lastBaseUpdate=Q,f.shared.pending=null}}while(!0);if(Y===null&&(j=J),f.baseState=j,f.firstBaseUpdate=G,f.lastBaseUpdate=Y,i=f.shared.interleaved,i!==null){f=i;do C|=f.lane,f=f.next;while(f!==i)}else m===null&&(f.shared.lanes=0);ei|=C,t.lanes=C,t.memoizedState=J}}function Gm(t,i,a){if(t=i.effects,i.effects=null,t!==null)for(i=0;i<t.length;i++){var d=t[i],f=d.callback;if(f!==null){if(d.callback=null,d=a,typeof f!="function")throw Error(n(191,f));f.call(d)}}}var Wm=new o.Component().refs;function _c(t,i,a,d){i=t.memoizedState,a=a(d,i),a=a==null?i:x({},i,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var aa={isMounted:function(t){return(t=t._reactInternals)?Hr(t)===t:!1},enqueueSetState:function(t,i,a){t=t._reactInternals;var d=Ot(),f=Or(t),m=Qn(d,f);m.payload=i,a!=null&&(m.callback=a),i=Pr(t,m,f),i!==null&&(wn(i,t,f,d),oa(i,t,f))},enqueueReplaceState:function(t,i,a){t=t._reactInternals;var d=Ot(),f=Or(t),m=Qn(d,f);m.tag=1,m.payload=i,a!=null&&(m.callback=a),i=Pr(t,m,f),i!==null&&(wn(i,t,f,d),oa(i,t,f))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var a=Ot(),d=Or(t),f=Qn(a,d);f.tag=2,i!=null&&(f.callback=i),i=Pr(t,f,d),i!==null&&(wn(i,t,d,a),oa(i,t,d))}};function Um(t,i,a,d,f,m,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,m,C):i.prototype&&i.prototype.isPureReactComponent?!_o(a,d)||!_o(f,m):!0}function Hm(t,i,a){var d=!1,f=wr,m=i.contextType;return typeof m=="object"&&m!==null?m=on(m):(f=Lt(i)?Kr:yt.current,d=i.contextTypes,m=(d=d!=null)?Oi(t,f):wr),i=new i(a,m),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=aa,t.stateNode=i,i._reactInternals=t,d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=m),i}function Vm(t,i,a,d){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,d),i.state!==t&&aa.enqueueReplaceState(i,i.state,null)}function Pc(t,i,a,d){var f=t.stateNode;f.props=a,f.state=t.memoizedState,f.refs=Wm,Cc(t);var m=i.contextType;typeof m=="object"&&m!==null?f.context=on(m):(m=Lt(i)?Kr:yt.current,f.context=Oi(t,m)),f.state=t.memoizedState,m=i.getDerivedStateFromProps,typeof m=="function"&&(_c(t,i,m,a),f.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(i=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),i!==f.state&&aa.enqueueReplaceState(f,f.state,null),sa(t,a,f,d),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function Do(t,i,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 f=d,m=""+t;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===m?i.ref:(i=function(C){var R=f.refs;R===Wm&&(R=f.refs={}),C===null?delete R[m]:R[m]=C},i._stringRef=m,i)}if(typeof t!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,t))}return t}function la(t,i){throw t=Object.prototype.toString.call(i),Error(n(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t))}function Km(t){var i=t._init;return i(t._payload)}function Qm(t){function i(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;)i(B,$),$=$.sibling;return null}function d(B,$){for(B=new Map;$!==null;)$.key!==null?B.set($.key,$):B.set($.index,$),$=$.sibling;return B}function f(B,$){return B=Dr(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 C(B){return t&&B.alternate===null&&(B.flags|=2),B}function R(B,$,q,te){return $===null||$.tag!==6?($=au(q,B.mode,te),$.return=B,$):($=f($,q),$.return=B,$)}function j(B,$,q,te){var ge=q.type;return ge===A?Y(B,$,q.props.children,te,q.key):$!==null&&($.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===_e&&Km(ge)===$.type)?(te=f($,q.props),te.ref=Do(B,$,q),te.return=B,te):(te=Ta(q.type,q.key,q.props,null,B.mode,te),te.ref=Do(B,$,q),te.return=B,te)}function G(B,$,q,te){return $===null||$.tag!==4||$.stateNode.containerInfo!==q.containerInfo||$.stateNode.implementation!==q.implementation?($=lu(q,B.mode,te),$.return=B,$):($=f($,q.children||[]),$.return=B,$)}function Y(B,$,q,te,ge){return $===null||$.tag!==7?($=ii(q,B.mode,te,ge),$.return=B,$):($=f($,q),$.return=B,$)}function J(B,$,q){if(typeof $=="string"&&$!==""||typeof $=="number")return $=au(""+$,B.mode,q),$.return=B,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case F:return q=Ta($.type,$.key,$.props,null,B.mode,q),q.ref=Do(B,null,$),q.return=B,q;case L:return $=lu($,B.mode,q),$.return=B,$;case _e:var te=$._init;return J(B,te($._payload),q)}if(Me($)||Z($))return $=ii($,B.mode,q,null),$.return=B,$;la(B,$)}return null}function Q(B,$,q,te){var ge=$!==null?$.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return ge!==null?null:R(B,$,""+q,te);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case F:return q.key===ge?j(B,$,q,te):null;case L:return q.key===ge?G(B,$,q,te):null;case _e:return ge=q._init,Q(B,$,ge(q._payload),te)}if(Me(q)||Z(q))return ge!==null?null:Y(B,$,q,te,null);la(B,q)}return null}function se(B,$,q,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return B=B.get(q)||null,R($,B,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case F:return B=B.get(te.key===null?q:te.key)||null,j($,B,te,ge);case L:return B=B.get(te.key===null?q:te.key)||null,G($,B,te,ge);case _e:var Se=te._init;return se(B,$,q,Se(te._payload),ge)}if(Me(te)||Z(te))return B=B.get(q)||null,Y($,B,te,ge,null);la($,te)}return null}function ue(B,$,q,te){for(var ge=null,Se=null,we=$,Pe=$=0,ut=null;we!==null&&Pe<q.length;Pe++){we.index>Pe?(ut=we,we=null):ut=we.sibling;var Ne=Q(B,we,q[Pe],te);if(Ne===null){we===null&&(we=ut);break}t&&we&&Ne.alternate===null&&i(B,we),$=m(Ne,$,Pe),Se===null?ge=Ne:Se.sibling=Ne,Se=Ne,we=ut}if(Pe===q.length)return a(B,we),We&&Xr(B,Pe),ge;if(we===null){for(;Pe<q.length;Pe++)we=J(B,q[Pe],te),we!==null&&($=m(we,$,Pe),Se===null?ge=we:Se.sibling=we,Se=we);return We&&Xr(B,Pe),ge}for(we=d(B,we);Pe<q.length;Pe++)ut=se(we,B,Pe,q[Pe],te),ut!==null&&(t&&ut.alternate!==null&&we.delete(ut.key===null?Pe:ut.key),$=m(ut,$,Pe),Se===null?ge=ut:Se.sibling=ut,Se=ut);return t&&we.forEach(function(Ir){return i(B,Ir)}),We&&Xr(B,Pe),ge}function pe(B,$,q,te){var ge=Z(q);if(typeof ge!="function")throw Error(n(150));if(q=ge.call(q),q==null)throw Error(n(151));for(var Se=ge=null,we=$,Pe=$=0,ut=null,Ne=q.next();we!==null&&!Ne.done;Pe++,Ne=q.next()){we.index>Pe?(ut=we,we=null):ut=we.sibling;var Ir=Q(B,we,Ne.value,te);if(Ir===null){we===null&&(we=ut);break}t&&we&&Ir.alternate===null&&i(B,we),$=m(Ir,$,Pe),Se===null?ge=Ir:Se.sibling=Ir,Se=Ir,we=ut}if(Ne.done)return a(B,we),We&&Xr(B,Pe),ge;if(we===null){for(;!Ne.done;Pe++,Ne=q.next())Ne=J(B,Ne.value,te),Ne!==null&&($=m(Ne,$,Pe),Se===null?ge=Ne:Se.sibling=Ne,Se=Ne);return We&&Xr(B,Pe),ge}for(we=d(B,we);!Ne.done;Pe++,Ne=q.next())Ne=se(we,B,Pe,Ne.value,te),Ne!==null&&(t&&Ne.alternate!==null&&we.delete(Ne.key===null?Pe:Ne.key),$=m(Ne,$,Pe),Se===null?ge=Ne:Se.sibling=Ne,Se=Ne);return t&&we.forEach(function(UP){return i(B,UP)}),We&&Xr(B,Pe),ge}function rt(B,$,q,te){if(typeof q=="object"&&q!==null&&q.type===A&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case F:e:{for(var ge=q.key,Se=$;Se!==null;){if(Se.key===ge){if(ge=q.type,ge===A){if(Se.tag===7){a(B,Se.sibling),$=f(Se,q.props.children),$.return=B,B=$;break e}}else if(Se.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===_e&&Km(ge)===Se.type){a(B,Se.sibling),$=f(Se,q.props),$.ref=Do(B,Se,q),$.return=B,B=$;break e}a(B,Se);break}else i(B,Se);Se=Se.sibling}q.type===A?($=ii(q.props.children,B.mode,te,q.key),$.return=B,B=$):(te=Ta(q.type,q.key,q.props,null,B.mode,te),te.ref=Do(B,$,q),te.return=B,B=te)}return C(B);case L:e:{for(Se=q.key;$!==null;){if($.key===Se)if($.tag===4&&$.stateNode.containerInfo===q.containerInfo&&$.stateNode.implementation===q.implementation){a(B,$.sibling),$=f($,q.children||[]),$.return=B,B=$;break e}else{a(B,$);break}else i(B,$);$=$.sibling}$=lu(q,B.mode,te),$.return=B,B=$}return C(B);case _e:return Se=q._init,rt(B,$,Se(q._payload),te)}if(Me(q))return ue(B,$,q,te);if(Z(q))return pe(B,$,q,te);la(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,$!==null&&$.tag===6?(a(B,$.sibling),$=f($,q),$.return=B,B=$):(a(B,$),$=au(q,B.mode,te),$.return=B,B=$),C(B)):a(B,$)}return rt}var Ai=Qm(!0),Xm=Qm(!1),Io={},An=Sr(Io),Ro=Sr(Io),No=Sr(Io);function Zr(t){if(t===Io)throw Error(n(174));return t}function Ec(t,i){switch(ze(No,i),ze(Ro,t),ze(An,Io),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Nt(null,"");break;default:t=t===8?i.parentNode:i,i=t.namespaceURI||null,t=t.tagName,i=Nt(i,t)}Ge(An),ze(An,i)}function Li(){Ge(An),Ge(Ro),Ge(No)}function Ym(t){Zr(No.current);var i=Zr(An.current),a=Nt(i,t.type);i!==a&&(ze(Ro,t),ze(An,a))}function kc(t){Ro.current===t&&(Ge(An),Ge(Ro))}var Qe=Sr(0);function ca(t){for(var i=t;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Tc=[];function Oc(){for(var t=0;t<Tc.length;t++)Tc[t]._workInProgressVersionPrimary=null;Tc.length=0}var ua=M.ReactCurrentDispatcher,xc=M.ReactCurrentBatchConfig,Jr=0,Xe=null,ot=null,lt=null,da=!1,Ao=!1,Lo=0,fP=0;function bt(){throw Error(n(321))}function Dc(t,i){if(i===null)return!1;for(var a=0;a<i.length&&a<t.length;a++)if(!mn(t[a],i[a]))return!1;return!0}function Ic(t,i,a,d,f,m){if(Jr=m,Xe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,ua.current=t===null||t.memoizedState===null?vP:yP,t=a(d,f),Ao){m=0;do{if(Ao=!1,Lo=0,25<=m)throw Error(n(301));m+=1,lt=ot=null,i.updateQueue=null,ua.current=bP,t=a(d,f)}while(Ao)}if(ua.current=ha,i=ot!==null&&ot.next!==null,Jr=0,lt=ot=Xe=null,da=!1,i)throw Error(n(300));return t}function Rc(){var t=Lo!==0;return Lo=0,t}function Ln(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Xe.memoizedState=lt=t:lt=lt.next=t,lt}function sn(){if(ot===null){var t=Xe.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var i=lt===null?Xe.memoizedState:lt.next;if(i!==null)lt=i,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},lt===null?Xe.memoizedState=lt=t:lt=lt.next=t}return lt}function jo(t,i){return typeof i=="function"?i(t):i}function Nc(t){var i=sn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=ot,f=d.baseQueue,m=a.pending;if(m!==null){if(f!==null){var C=f.next;f.next=m.next,m.next=C}d.baseQueue=f=m,a.pending=null}if(f!==null){m=f.next,d=d.baseState;var R=C=null,j=null,G=m;do{var Y=G.lane;if((Jr&Y)===Y)j!==null&&(j=j.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 J={lane:Y,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};j===null?(R=j=J,C=d):j=j.next=J,Xe.lanes|=Y,ei|=Y}G=G.next}while(G!==null&&G!==m);j===null?C=d:j.next=R,mn(d,i.memoizedState)||(jt=!0),i.memoizedState=d,i.baseState=C,i.baseQueue=j,a.lastRenderedState=d}if(t=a.interleaved,t!==null){f=t;do m=f.lane,Xe.lanes|=m,ei|=m,f=f.next;while(f!==t)}else f===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function Ac(t){var i=sn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=a.dispatch,f=a.pending,m=i.memoizedState;if(f!==null){a.pending=null;var C=f=f.next;do m=t(m,C.action),C=C.next;while(C!==f);mn(m,i.memoizedState)||(jt=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),a.lastRenderedState=m}return[m,d]}function Zm(){}function Jm(t,i){var a=Xe,d=sn(),f=i(),m=!mn(d.memoizedState,f);if(m&&(d.memoizedState=f,jt=!0),d=d.queue,Lc(nv.bind(null,a,d,t),[t]),d.getSnapshot!==i||m||lt!==null&&lt.memoizedState.tag&1){if(a.flags|=2048,Mo(9,tv.bind(null,a,d,f,i),void 0,null),ct===null)throw Error(n(349));(Jr&30)!==0||ev(a,i,f)}return f}function ev(t,i,a){t.flags|=16384,t={getSnapshot:i,value:a},i=Xe.updateQueue,i===null?(i={lastEffect:null,stores:null},Xe.updateQueue=i,i.stores=[t]):(a=i.stores,a===null?i.stores=[t]:a.push(t))}function tv(t,i,a,d){i.value=a,i.getSnapshot=d,rv(i)&&iv(t)}function nv(t,i,a){return a(function(){rv(i)&&iv(t)})}function rv(t){var i=t.getSnapshot;t=t.value;try{var a=i();return!mn(t,a)}catch{return!0}}function iv(t){var i=Kn(t,1);i!==null&&wn(i,t,1,-1)}function ov(t){var i=Ln();return typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:t},i.queue=t,t=t.dispatch=mP.bind(null,Xe,t),[i.memoizedState,t]}function Mo(t,i,a,d){return t={tag:t,create:i,destroy:a,deps:d,next:null},i=Xe.updateQueue,i===null?(i={lastEffect:null,stores:null},Xe.updateQueue=i,i.lastEffect=t.next=t):(a=i.lastEffect,a===null?i.lastEffect=t.next=t:(d=a.next,a.next=t,t.next=d,i.lastEffect=t)),t}function sv(){return sn().memoizedState}function pa(t,i,a,d){var f=Ln();Xe.flags|=t,f.memoizedState=Mo(1|i,a,void 0,d===void 0?null:d)}function fa(t,i,a,d){var f=sn();d=d===void 0?null:d;var m=void 0;if(ot!==null){var C=ot.memoizedState;if(m=C.destroy,d!==null&&Dc(d,C.deps)){f.memoizedState=Mo(i,a,m,d);return}}Xe.flags|=t,f.memoizedState=Mo(1|i,a,m,d)}function av(t,i){return pa(8390656,8,t,i)}function Lc(t,i){return fa(2048,8,t,i)}function lv(t,i){return fa(4,2,t,i)}function cv(t,i){return fa(4,4,t,i)}function uv(t,i){if(typeof i=="function")return t=t(),i(t),function(){i(null)};if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function dv(t,i,a){return a=a!=null?a.concat([t]):null,fa(4,4,uv.bind(null,i,t),a)}function jc(){}function pv(t,i){var a=sn();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Dc(i,d[1])?d[0]:(a.memoizedState=[t,i],t)}function fv(t,i){var a=sn();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Dc(i,d[1])?d[0]:(t=t(),a.memoizedState=[t,i],t)}function hv(t,i,a){return(Jr&21)===0?(t.baseState&&(t.baseState=!1,jt=!0),t.memoizedState=a):(mn(a,i)||(a=zg(),Xe.lanes|=a,ei|=a,t.baseState=!0),i)}function hP(t,i){var a=$e;$e=a!==0&&4>a?a:4,t(!0);var d=xc.transition;xc.transition={};try{t(!1),i()}finally{$e=a,xc.transition=d}}function gv(){return sn().memoizedState}function gP(t,i,a){var d=Or(t);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},mv(t))vv(i,a);else if(a=zm(t,i,a,d),a!==null){var f=Ot();wn(a,t,d,f),yv(a,i,d)}}function mP(t,i,a){var d=Or(t),f={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(mv(t))vv(i,f);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var C=i.lastRenderedState,R=m(C,a);if(f.hasEagerState=!0,f.eagerState=R,mn(R,C)){var j=i.interleaved;j===null?(f.next=f,wc(i)):(f.next=j.next,j.next=f),i.interleaved=f;return}}catch{}a=zm(t,i,f,d),a!==null&&(f=Ot(),wn(a,t,d,f),yv(a,i,d))}}function mv(t){var i=t.alternate;return t===Xe||i!==null&&i===Xe}function vv(t,i){Ao=da=!0;var a=t.pending;a===null?i.next=i:(i.next=a.next,a.next=i),t.pending=i}function yv(t,i,a){if((a&4194240)!==0){var d=i.lanes;d&=t.pendingLanes,a|=d,i.lanes=a,jl(t,a)}}var ha={readContext:on,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},vP={readContext:on,useCallback:function(t,i){return Ln().memoizedState=[t,i===void 0?null:i],t},useContext:on,useEffect:av,useImperativeHandle:function(t,i,a){return a=a!=null?a.concat([t]):null,pa(4194308,4,uv.bind(null,i,t),a)},useLayoutEffect:function(t,i){return pa(4194308,4,t,i)},useInsertionEffect:function(t,i){return pa(4,2,t,i)},useMemo:function(t,i){var a=Ln();return i=i===void 0?null:i,t=t(),a.memoizedState=[t,i],t},useReducer:function(t,i,a){var d=Ln();return i=a!==void 0?a(i):i,d.memoizedState=d.baseState=i,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},d.queue=t,t=t.dispatch=gP.bind(null,Xe,t),[d.memoizedState,t]},useRef:function(t){var i=Ln();return t={current:t},i.memoizedState=t},useState:ov,useDebugValue:jc,useDeferredValue:function(t){return Ln().memoizedState=t},useTransition:function(){var t=ov(!1),i=t[0];return t=hP.bind(null,t[1]),Ln().memoizedState=t,[i,t]},useMutableSource:function(){},useSyncExternalStore:function(t,i,a){var d=Xe,f=Ln();if(We){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),ct===null)throw Error(n(349));(Jr&30)!==0||ev(d,i,a)}f.memoizedState=a;var m={value:a,getSnapshot:i};return f.queue=m,av(nv.bind(null,d,m,t),[t]),d.flags|=2048,Mo(9,tv.bind(null,d,m,a,i),void 0,null),a},useId:function(){var t=Ln(),i=ct.identifierPrefix;if(We){var a=Vn,d=Hn;a=(d&~(1<<32-gn(d)-1)).toString(32)+a,i=":"+i+"R"+a,a=Lo++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=fP++,i=":"+i+"r"+a.toString(32)+":";return t.memoizedState=i},unstable_isNewReconciler:!1},yP={readContext:on,useCallback:pv,useContext:on,useEffect:Lc,useImperativeHandle:dv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:fv,useReducer:Nc,useRef:sv,useState:function(){return Nc(jo)},useDebugValue:jc,useDeferredValue:function(t){var i=sn();return hv(i,ot.memoizedState,t)},useTransition:function(){var t=Nc(jo)[0],i=sn().memoizedState;return[t,i]},useMutableSource:Zm,useSyncExternalStore:Jm,useId:gv,unstable_isNewReconciler:!1},bP={readContext:on,useCallback:pv,useContext:on,useEffect:Lc,useImperativeHandle:dv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:fv,useReducer:Ac,useRef:sv,useState:function(){return Ac(jo)},useDebugValue:jc,useDeferredValue:function(t){var i=sn();return ot===null?i.memoizedState=t:hv(i,ot.memoizedState,t)},useTransition:function(){var t=Ac(jo)[0],i=sn().memoizedState;return[t,i]},useMutableSource:Zm,useSyncExternalStore:Jm,useId:gv,unstable_isNewReconciler:!1};function ji(t,i){try{var a="",d=i;do a+=he(d),d=d.return;while(d);var f=a}catch(m){f=`
8
+ Error generating stack: `+m.message+`
9
+ `+m.stack}return{value:t,source:i,stack:f,digest:null}}function Mc(t,i,a){return{value:t,source:null,stack:a??null,digest:i??null}}function $c(t,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var SP=typeof WeakMap=="function"?WeakMap:Map;function bv(t,i,a){a=Qn(-1,a),a.tag=3,a.payload={element:null};var d=i.value;return a.callback=function(){wa||(wa=!0,Jc=d),$c(t,i)},a}function Sv(t,i,a){a=Qn(-1,a),a.tag=3;var d=t.type.getDerivedStateFromError;if(typeof d=="function"){var f=i.value;a.payload=function(){return d(f)},a.callback=function(){$c(t,i)}}var m=t.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){$c(t,i),typeof d!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var C=i.stack;this.componentDidCatch(i.value,{componentStack:C!==null?C:""})}),a}function wv(t,i,a){var d=t.pingCache;if(d===null){d=t.pingCache=new SP;var f=new Set;d.set(i,f)}else f=d.get(i),f===void 0&&(f=new Set,d.set(i,f));f.has(a)||(f.add(a),t=AP.bind(null,t,i,a),i.then(t,t))}function Cv(t){do{var i;if((i=t.tag===13)&&(i=t.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return t;t=t.return}while(t!==null);return null}function _v(t,i,a,d,f){return(t.mode&1)===0?(t===i?t.flags|=65536:(t.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=Qn(-1,1),i.tag=2,Pr(a,i,1))),a.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var wP=M.ReactCurrentOwner,jt=!1;function Tt(t,i,a,d){i.child=t===null?Xm(i,null,a,d):Ai(i,t.child,a,d)}function Pv(t,i,a,d,f){a=a.render;var m=i.ref;return Ni(i,f),d=Ic(t,i,a,d,m,f),a=Rc(),t!==null&&!jt?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~f,Xn(t,i,f)):(We&&a&&pc(i),i.flags|=1,Tt(t,i,d,f),i.child)}function Ev(t,i,a,d,f){if(t===null){var m=a.type;return typeof m=="function"&&!su(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=m,kv(t,i,m,d,f)):(t=Ta(a.type,null,d,i,i.mode,f),t.ref=i.ref,t.return=i,i.child=t)}if(m=t.child,(t.lanes&f)===0){var C=m.memoizedProps;if(a=a.compare,a=a!==null?a:_o,a(C,d)&&t.ref===i.ref)return Xn(t,i,f)}return i.flags|=1,t=Dr(m,d),t.ref=i.ref,t.return=i,i.child=t}function kv(t,i,a,d,f){if(t!==null){var m=t.memoizedProps;if(_o(m,d)&&t.ref===i.ref)if(jt=!1,i.pendingProps=d=m,(t.lanes&f)!==0)(t.flags&131072)!==0&&(jt=!0);else return i.lanes=t.lanes,Xn(t,i,f)}return Fc(t,i,a,d,f)}function Tv(t,i,a){var d=i.pendingProps,f=d.children,m=t!==null?t.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze($i,Ht),Ht|=a;else{if((a&1073741824)===0)return t=m!==null?m.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:t,cachePool:null,transitions:null},i.updateQueue=null,ze($i,Ht),Ht|=t,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:a,ze($i,Ht),Ht|=d}else m!==null?(d=m.baseLanes|a,i.memoizedState=null):d=a,ze($i,Ht),Ht|=d;return Tt(t,i,f,a),i.child}function Ov(t,i){var a=i.ref;(t===null&&a!==null||t!==null&&t.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function Fc(t,i,a,d,f){var m=Lt(a)?Kr:yt.current;return m=Oi(i,m),Ni(i,f),a=Ic(t,i,a,d,m,f),d=Rc(),t!==null&&!jt?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~f,Xn(t,i,f)):(We&&d&&pc(i),i.flags|=1,Tt(t,i,a,f),i.child)}function xv(t,i,a,d,f){if(Lt(a)){var m=!0;Zs(i)}else m=!1;if(Ni(i,f),i.stateNode===null)ma(t,i),Hm(i,a,d),Pc(i,a,d,f),d=!0;else if(t===null){var C=i.stateNode,R=i.memoizedProps;C.props=R;var j=C.context,G=a.contextType;typeof G=="object"&&G!==null?G=on(G):(G=Lt(a)?Kr:yt.current,G=Oi(i,G));var Y=a.getDerivedStateFromProps,J=typeof Y=="function"||typeof C.getSnapshotBeforeUpdate=="function";J||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(R!==d||j!==G)&&Vm(i,C,d,G),_r=!1;var Q=i.memoizedState;C.state=Q,sa(i,d,C,f),j=i.memoizedState,R!==d||Q!==j||At.current||_r?(typeof Y=="function"&&(_c(i,a,Y,d),j=i.memoizedState),(R=_r||Um(i,a,R,d,Q,j,G))?(J||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(i.flags|=4194308)):(typeof C.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=j),C.props=d,C.state=j,C.context=G,d=R):(typeof C.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{C=i.stateNode,Bm(t,i),R=i.memoizedProps,G=i.type===i.elementType?R:yn(i.type,R),C.props=G,J=i.pendingProps,Q=C.context,j=a.contextType,typeof j=="object"&&j!==null?j=on(j):(j=Lt(a)?Kr:yt.current,j=Oi(i,j));var se=a.getDerivedStateFromProps;(Y=typeof se=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(R!==J||Q!==j)&&Vm(i,C,d,j),_r=!1,Q=i.memoizedState,C.state=Q,sa(i,d,C,f);var ue=i.memoizedState;R!==J||Q!==ue||At.current||_r?(typeof se=="function"&&(_c(i,a,se,d),ue=i.memoizedState),(G=_r||Um(i,a,G,d,Q,ue,j)||!1)?(Y||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(d,ue,j),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(d,ue,j)),typeof C.componentDidUpdate=="function"&&(i.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof C.componentDidUpdate!="function"||R===t.memoizedProps&&Q===t.memoizedState||(i.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&Q===t.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=ue),C.props=d,C.state=ue,C.context=j,d=G):(typeof C.componentDidUpdate!="function"||R===t.memoizedProps&&Q===t.memoizedState||(i.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&Q===t.memoizedState||(i.flags|=1024),d=!1)}return zc(t,i,a,d,m,f)}function zc(t,i,a,d,f,m){Ov(t,i);var C=(i.flags&128)!==0;if(!d&&!C)return f&&Nm(i,a,!1),Xn(t,i,m);d=i.stateNode,wP.current=i;var R=C&&typeof a.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,t!==null&&C?(i.child=Ai(i,t.child,null,m),i.child=Ai(i,null,R,m)):Tt(t,i,R,m),i.memoizedState=d.state,f&&Nm(i,a,!0),i.child}function Dv(t){var i=t.stateNode;i.pendingContext?Im(t,i.pendingContext,i.pendingContext!==i.context):i.context&&Im(t,i.context,!1),Ec(t,i.containerInfo)}function Iv(t,i,a,d,f){return Ii(),mc(f),i.flags|=256,Tt(t,i,a,d),i.child}var Bc={dehydrated:null,treeContext:null,retryLane:0};function qc(t){return{baseLanes:t,cachePool:null,transitions:null}}function Rv(t,i,a){var d=i.pendingProps,f=Qe.current,m=!1,C=(i.flags&128)!==0,R;if((R=C)||(R=t!==null&&t.memoizedState===null?!1:(f&2)!==0),R?(m=!0,i.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),ze(Qe,f&1),t===null)return gc(i),t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((i.mode&1)===0?i.lanes=1:t.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(C=d.children,t=d.fallback,m?(d=i.mode,m=i.child,C={mode:"hidden",children:C},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=C):m=Oa(C,d,0,null),t=ii(t,d,a,null),m.return=i,t.return=i,m.sibling=t,i.child=m,i.child.memoizedState=qc(a),i.memoizedState=Bc,t):Gc(i,C));if(f=t.memoizedState,f!==null&&(R=f.dehydrated,R!==null))return CP(t,i,C,d,R,f,a);if(m){m=d.fallback,C=i.mode,f=t.child,R=f.sibling;var j={mode:"hidden",children:d.children};return(C&1)===0&&i.child!==f?(d=i.child,d.childLanes=0,d.pendingProps=j,i.deletions=null):(d=Dr(f,j),d.subtreeFlags=f.subtreeFlags&14680064),R!==null?m=Dr(R,m):(m=ii(m,C,a,null),m.flags|=2),m.return=i,d.return=i,d.sibling=m,i.child=d,d=m,m=i.child,C=t.child.memoizedState,C=C===null?qc(a):{baseLanes:C.baseLanes|a,cachePool:null,transitions:C.transitions},m.memoizedState=C,m.childLanes=t.childLanes&~a,i.memoizedState=Bc,d}return m=t.child,t=m.sibling,d=Dr(m,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=a),d.return=i,d.sibling=null,t!==null&&(a=i.deletions,a===null?(i.deletions=[t],i.flags|=16):a.push(t)),i.child=d,i.memoizedState=null,d}function Gc(t,i){return i=Oa({mode:"visible",children:i},t.mode,0,null),i.return=t,t.child=i}function ga(t,i,a,d){return d!==null&&mc(d),Ai(i,t.child,null,a),t=Gc(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function CP(t,i,a,d,f,m,C){if(a)return i.flags&256?(i.flags&=-257,d=Mc(Error(n(422))),ga(t,i,C,d)):i.memoizedState!==null?(i.child=t.child,i.flags|=128,null):(m=d.fallback,f=i.mode,d=Oa({mode:"visible",children:d.children},f,0,null),m=ii(m,f,C,null),m.flags|=2,d.return=i,m.return=i,d.sibling=m,i.child=d,(i.mode&1)!==0&&Ai(i,t.child,null,C),i.child.memoizedState=qc(C),i.memoizedState=Bc,m);if((i.mode&1)===0)return ga(t,i,C,null);if(f.data==="$!"){if(d=f.nextSibling&&f.nextSibling.dataset,d)var R=d.dgst;return d=R,m=Error(n(419)),d=Mc(m,d,void 0),ga(t,i,C,d)}if(R=(C&t.childLanes)!==0,jt||R){if(d=ct,d!==null){switch(C&-C){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(d.suspendedLanes|C))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,Kn(t,f),wn(d,t,f,-1))}return ou(),d=Mc(Error(n(421))),ga(t,i,C,d)}return f.data==="$?"?(i.flags|=128,i.child=t.child,i=LP.bind(null,t),f._reactRetry=i,null):(t=m.treeContext,Ut=br(f.nextSibling),Wt=i,We=!0,vn=null,t!==null&&(nn[rn++]=Hn,nn[rn++]=Vn,nn[rn++]=Qr,Hn=t.id,Vn=t.overflow,Qr=i),i=Gc(i,d.children),i.flags|=4096,i)}function Nv(t,i,a){t.lanes|=i;var d=t.alternate;d!==null&&(d.lanes|=i),Sc(t.return,i,a)}function Wc(t,i,a,d,f){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:f}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=a,m.tailMode=f)}function Av(t,i,a){var d=i.pendingProps,f=d.revealOrder,m=d.tail;if(Tt(t,i,d.children,a),d=Qe.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Nv(t,a,i);else if(t.tag===19)Nv(t,a,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}d&=1}if(ze(Qe,d),(i.mode&1)===0)i.memoizedState=null;else switch(f){case"forwards":for(a=i.child,f=null;a!==null;)t=a.alternate,t!==null&&ca(t)===null&&(f=a),a=a.sibling;a=f,a===null?(f=i.child,i.child=null):(f=a.sibling,a.sibling=null),Wc(i,!1,f,a,m);break;case"backwards":for(a=null,f=i.child,i.child=null;f!==null;){if(t=f.alternate,t!==null&&ca(t)===null){i.child=f;break}t=f.sibling,f.sibling=a,a=f,f=t}Wc(i,!0,a,null,m);break;case"together":Wc(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ma(t,i){(i.mode&1)===0&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=2)}function Xn(t,i,a){if(t!==null&&(i.dependencies=t.dependencies),ei|=i.lanes,(a&i.childLanes)===0)return null;if(t!==null&&i.child!==t.child)throw Error(n(153));if(i.child!==null){for(t=i.child,a=Dr(t,t.pendingProps),i.child=a,a.return=i;t.sibling!==null;)t=t.sibling,a=a.sibling=Dr(t,t.pendingProps),a.return=i;a.sibling=null}return i.child}function _P(t,i,a){switch(i.tag){case 3:Dv(i),Ii();break;case 5:Ym(i);break;case 1:Lt(i.type)&&Zs(i);break;case 4:Ec(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,f=i.memoizedProps.value;ze(ra,d._currentValue),d._currentValue=f;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(ze(Qe,Qe.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?Rv(t,i,a):(ze(Qe,Qe.current&1),t=Xn(t,i,a),t!==null?t.sibling:null);ze(Qe,Qe.current&1);break;case 19:if(d=(a&i.childLanes)!==0,(t.flags&128)!==0){if(d)return Av(t,i,a);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ze(Qe,Qe.current),d)break;return null;case 22:case 23:return i.lanes=0,Tv(t,i,a)}return Xn(t,i,a)}var Lv,Uc,jv,Mv;Lv=function(t,i){for(var a=i.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===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Uc=function(){},jv=function(t,i,a,d){var f=t.memoizedProps;if(f!==d){t=i.stateNode,Zr(An.current);var m=null;switch(a){case"input":f=cr(t,f),d=cr(t,d),m=[];break;case"select":f=x({},f,{value:void 0}),d=x({},d,{value:void 0}),m=[];break;case"textarea":f=Ke(t,f),d=Ke(t,d),m=[];break;default:typeof f.onClick!="function"&&typeof d.onClick=="function"&&(t.onclick=Qs)}dr(a,d);var C;a=null;for(G in f)if(!d.hasOwnProperty(G)&&f.hasOwnProperty(G)&&f[G]!=null)if(G==="style"){var R=f[G];for(C in R)R.hasOwnProperty(C)&&(a||(a={}),a[C]="")}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 j=d[G];if(R=f?.[G],d.hasOwnProperty(G)&&j!==R&&(j!=null||R!=null))if(G==="style")if(R){for(C in R)!R.hasOwnProperty(C)||j&&j.hasOwnProperty(C)||(a||(a={}),a[C]="");for(C in j)j.hasOwnProperty(C)&&R[C]!==j[C]&&(a||(a={}),a[C]=j[C])}else a||(m||(m=[]),m.push(G,a)),a=j;else G==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,R=R?R.__html:void 0,j!=null&&R!==j&&(m=m||[]).push(G,j)):G==="children"?typeof j!="string"&&typeof j!="number"||(m=m||[]).push(G,""+j):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(j!=null&&G==="onScroll"&&qe("scroll",t),m||R===j||(m=[])):(m=m||[]).push(G,j))}a&&(m=m||[]).push("style",a);var G=m;(i.updateQueue=G)&&(i.flags|=4)}},Mv=function(t,i,a,d){a!==d&&(i.flags|=4)};function $o(t,i){if(!We)switch(t.tailMode){case"hidden":i=t.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.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?i||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function St(t){var i=t.alternate!==null&&t.alternate.child===t.child,a=0,d=0;if(i)for(var f=t.child;f!==null;)a|=f.lanes|f.childLanes,d|=f.subtreeFlags&14680064,d|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)a|=f.lanes|f.childLanes,d|=f.subtreeFlags,d|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=d,t.childLanes=a,i}function PP(t,i,a){var d=i.pendingProps;switch(fc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(i),null;case 1:return Lt(i.type)&&Ys(),St(i),null;case 3:return d=i.stateNode,Li(),Ge(At),Ge(yt),Oc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(t===null||t.child===null)&&(na(i)?i.flags|=4:t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,vn!==null&&(nu(vn),vn=null))),Uc(t,i),St(i),null;case 5:kc(i);var f=Zr(No.current);if(a=i.type,t!==null&&i.stateNode!=null)jv(t,i,a,d,f),t.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return St(i),null}if(t=Zr(An.current),na(i)){d=i.stateNode,a=i.type;var m=i.memoizedProps;switch(d[Nn]=i,d[Oo]=m,t=(i.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(f=0;f<Eo.length;f++)qe(Eo[f],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),f=null;for(var C in m)if(m.hasOwnProperty(C)){var R=m[C];C==="children"?typeof R=="string"?d.textContent!==R&&(m.suppressHydrationWarning!==!0&&Ks(d.textContent,R,t),f=["children",R]):typeof R=="number"&&d.textContent!==""+R&&(m.suppressHydrationWarning!==!0&&Ks(d.textContent,R,t),f=["children",""+R]):s.hasOwnProperty(C)&&R!=null&&C==="onScroll"&&qe("scroll",d)}switch(a){case"input":vt(d),Dt(d,m,!0);break;case"textarea":vt(d),Rt(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=Qs)}d=f,i.updateQueue=d,d!==null&&(i.flags|=4)}else{C=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=xn(a)),t==="http://www.w3.org/1999/xhtml"?a==="script"?(t=C.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof d.is=="string"?t=C.createElement(a,{is:d.is}):(t=C.createElement(a),a==="select"&&(C=t,d.multiple?C.multiple=!0:d.size&&(C.size=d.size))):t=C.createElementNS(t,a),t[Nn]=i,t[Oo]=d,Lv(t,i,!1,!1),i.stateNode=t;e:{switch(C=pr(a,d),a){case"dialog":qe("cancel",t),qe("close",t),f=d;break;case"iframe":case"object":case"embed":qe("load",t),f=d;break;case"video":case"audio":for(f=0;f<Eo.length;f++)qe(Eo[f],t);f=d;break;case"source":qe("error",t),f=d;break;case"img":case"image":case"link":qe("error",t),qe("load",t),f=d;break;case"details":qe("toggle",t),f=d;break;case"input":Ie(t,d),f=cr(t,d),qe("invalid",t);break;case"option":f=d;break;case"select":t._wrapperState={wasMultiple:!!d.multiple},f=x({},d,{value:void 0}),qe("invalid",t);break;case"textarea":Be(t,d),f=Ke(t,d),qe("invalid",t);break;default:f=d}dr(a,f),R=f;for(m in R)if(R.hasOwnProperty(m)){var j=R[m];m==="style"?Bt(t,j):m==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Dn(t,j)):m==="children"?typeof j=="string"?(a!=="textarea"||j!=="")&&tn(t,j):typeof j=="number"&&tn(t,""+j):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?j!=null&&m==="onScroll"&&qe("scroll",t):j!=null&&N(t,m,j,C))}switch(a){case"input":vt(t),Dt(t,d,!1);break;case"textarea":vt(t),Rt(t);break;case"option":d.value!=null&&t.setAttribute("value",""+ne(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 f.onClick=="function"&&(t.onclick=Qs)}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&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return St(i),null;case 6:if(t&&i.stateNode!=null)Mv(t,i,t.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(a=Zr(No.current),Zr(An.current),na(i)){if(d=i.stateNode,a=i.memoizedProps,d[Nn]=i,(m=d.nodeValue!==a)&&(t=Wt,t!==null))switch(t.tag){case 3:Ks(d.nodeValue,a,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ks(d.nodeValue,a,(t.mode&1)!==0)}m&&(i.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Nn]=i,i.stateNode=d}return St(i),null;case 13:if(Ge(Qe),d=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(We&&Ut!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Fm(),Ii(),i.flags|=98560,m=!1;else if(m=na(i),d!==null&&d.dehydrated!==null){if(t===null){if(!m)throw Error(n(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Nn]=i}else Ii(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;St(i),m=!1}else vn!==null&&(nu(vn),vn=null),m=!0;if(!m)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(d=d!==null,d!==(t!==null&&t.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(t===null||(Qe.current&1)!==0?st===0&&(st=3):ou())),i.updateQueue!==null&&(i.flags|=4),St(i),null);case 4:return Li(),Uc(t,i),t===null&&ko(i.stateNode.containerInfo),St(i),null;case 10:return bc(i.type._context),St(i),null;case 17:return Lt(i.type)&&Ys(),St(i),null;case 19:if(Ge(Qe),m=i.memoizedState,m===null)return St(i),null;if(d=(i.flags&128)!==0,C=m.rendering,C===null)if(d)$o(m,!1);else{if(st!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(C=ca(t),C!==null){for(i.flags|=128,$o(m,!1),d=C.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=a,a=i.child;a!==null;)m=a,t=d,m.flags&=14680066,C=m.alternate,C===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=C.childLanes,m.lanes=C.lanes,m.child=C.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=C.memoizedProps,m.memoizedState=C.memoizedState,m.updateQueue=C.updateQueue,m.type=C.type,t=C.dependencies,m.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),a=a.sibling;return ze(Qe,Qe.current&1|2),i.child}t=t.sibling}m.tail!==null&&nt()>Fi&&(i.flags|=128,d=!0,$o(m,!1),i.lanes=4194304)}else{if(!d)if(t=ca(C),t!==null){if(i.flags|=128,d=!0,a=t.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),$o(m,!0),m.tail===null&&m.tailMode==="hidden"&&!C.alternate&&!We)return St(i),null}else 2*nt()-m.renderingStartTime>Fi&&a!==1073741824&&(i.flags|=128,d=!0,$o(m,!1),i.lanes=4194304);m.isBackwards?(C.sibling=i.child,i.child=C):(a=m.last,a!==null?a.sibling=C:i.child=C,m.last=C)}return m.tail!==null?(i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=nt(),i.sibling=null,a=Qe.current,ze(Qe,d?a&1|2:a&1),i):(St(i),null);case 22:case 23:return iu(),d=i.memoizedState!==null,t!==null&&t.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(Ht&1073741824)!==0&&(St(i),i.subtreeFlags&6&&(i.flags|=8192)):St(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function EP(t,i){switch(fc(i),i.tag){case 1:return Lt(i.type)&&Ys(),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Li(),Ge(At),Ge(yt),Oc(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 5:return kc(i),null;case 13:if(Ge(Qe),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ii()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return Ge(Qe),null;case 4:return Li(),null;case 10:return bc(i.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var va=!1,wt=!1,kP=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Mi(t,i){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){Je(t,i,d)}else a.current=null}function Hc(t,i,a){try{a()}catch(d){Je(t,i,d)}}var $v=!1;function TP(t,i){if(ic=Ms,t=gm(),Xl(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 f=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var C=0,R=-1,j=-1,G=0,Y=0,J=t,Q=null;t:for(;;){for(var se;J!==a||f!==0&&J.nodeType!==3||(R=C+f),J!==m||d!==0&&J.nodeType!==3||(j=C+d),J.nodeType===3&&(C+=J.nodeValue.length),(se=J.firstChild)!==null;)Q=J,J=se;for(;;){if(J===t)break t;if(Q===a&&++G===f&&(R=C),Q===m&&++Y===d&&(j=C),(se=J.nextSibling)!==null)break;J=Q,Q=J.parentNode}J=se}a=R===-1||j===-1?null:{start:R,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(oc={focusedElem:t,selectionRange:a},Ms=!1,ce=i;ce!==null;)if(i=ce,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,ce=t;else for(;ce!==null;){i=ce;try{var ue=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ue!==null){var pe=ue.memoizedProps,rt=ue.memoizedState,B=i.stateNode,$=B.getSnapshotBeforeUpdate(i.elementType===i.type?pe:yn(i.type,pe),rt);B.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var q=i.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(te){Je(i,i.return,te)}if(t=i.sibling,t!==null){t.return=i.return,ce=t;break}ce=i.return}return ue=$v,$v=!1,ue}function Fo(t,i,a){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var f=d=d.next;do{if((f.tag&t)===t){var m=f.destroy;f.destroy=void 0,m!==void 0&&Hc(i,a,m)}f=f.next}while(f!==d)}}function ya(t,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&t)===t){var d=a.create;a.destroy=d()}a=a.next}while(a!==i)}}function Vc(t){var i=t.ref;if(i!==null){var a=t.stateNode;t.tag,t=a,typeof i=="function"?i(t):i.current=t}}function Fv(t){var i=t.alternate;i!==null&&(t.alternate=null,Fv(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&(delete i[Nn],delete i[Oo],delete i[cc],delete i[cP],delete i[uP])),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 zv(t){return t.tag===5||t.tag===3||t.tag===4}function Bv(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||zv(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 Kc(t,i,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(t,i):a.insertBefore(t,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(t,a)):(i=a,i.appendChild(t)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Qs));else if(d!==4&&(t=t.child,t!==null))for(Kc(t,i,a),t=t.sibling;t!==null;)Kc(t,i,a),t=t.sibling}function Qc(t,i,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,i?a.insertBefore(t,i):a.appendChild(t);else if(d!==4&&(t=t.child,t!==null))for(Qc(t,i,a),t=t.sibling;t!==null;)Qc(t,i,a),t=t.sibling}var pt=null,bn=!1;function Er(t,i,a){for(a=a.child;a!==null;)qv(t,i,a),a=a.sibling}function qv(t,i,a){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Is,a)}catch{}switch(a.tag){case 5:wt||Mi(a,i);case 6:var d=pt,f=bn;pt=null,Er(t,i,a),pt=d,bn=f,pt!==null&&(bn?(t=pt,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):pt.removeChild(a.stateNode));break;case 18:pt!==null&&(bn?(t=pt,a=a.stateNode,t.nodeType===8?lc(t.parentNode,a):t.nodeType===1&&lc(t,a),vo(t)):lc(pt,a.stateNode));break;case 4:d=pt,f=bn,pt=a.stateNode.containerInfo,bn=!0,Er(t,i,a),pt=d,bn=f;break;case 0:case 11:case 14:case 15:if(!wt&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){f=d=d.next;do{var m=f,C=m.destroy;m=m.tag,C!==void 0&&((m&2)!==0||(m&4)!==0)&&Hc(a,i,C),f=f.next}while(f!==d)}Er(t,i,a);break;case 1:if(!wt&&(Mi(a,i),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(R){Je(a,i,R)}Er(t,i,a);break;case 21:Er(t,i,a);break;case 22:a.mode&1?(wt=(d=wt)||a.memoizedState!==null,Er(t,i,a),wt=d):Er(t,i,a);break;default:Er(t,i,a)}}function Gv(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new kP),i.forEach(function(d){var f=jP.bind(null,t,d);a.has(d)||(a.add(d),d.then(f,f))})}}function Sn(t,i){var a=i.deletions;if(a!==null)for(var d=0;d<a.length;d++){var f=a[d];try{var m=t,C=i,R=C;e:for(;R!==null;){switch(R.tag){case 5:pt=R.stateNode,bn=!1;break e;case 3:pt=R.stateNode.containerInfo,bn=!0;break e;case 4:pt=R.stateNode.containerInfo,bn=!0;break e}R=R.return}if(pt===null)throw Error(n(160));qv(m,C,f),pt=null,bn=!1;var j=f.alternate;j!==null&&(j.return=null),f.return=null}catch(G){Je(f,i,G)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Wv(i,t),i=i.sibling}function Wv(t,i){var a=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Sn(i,t),jn(t),d&4){try{Fo(3,t,t.return),ya(3,t)}catch(pe){Je(t,t.return,pe)}try{Fo(5,t,t.return)}catch(pe){Je(t,t.return,pe)}}break;case 1:Sn(i,t),jn(t),d&512&&a!==null&&Mi(a,a.return);break;case 5:if(Sn(i,t),jn(t),d&512&&a!==null&&Mi(a,a.return),t.flags&32){var f=t.stateNode;try{tn(f,"")}catch(pe){Je(t,t.return,pe)}}if(d&4&&(f=t.stateNode,f!=null)){var m=t.memoizedProps,C=a!==null?a.memoizedProps:m,R=t.type,j=t.updateQueue;if(t.updateQueue=null,j!==null)try{R==="input"&&m.type==="radio"&&m.name!=null&&fn(f,m),pr(R,C);var G=pr(R,m);for(C=0;C<j.length;C+=2){var Y=j[C],J=j[C+1];Y==="style"?Bt(f,J):Y==="dangerouslySetInnerHTML"?Dn(f,J):Y==="children"?tn(f,J):N(f,Y,J,G)}switch(R){case"input":xe(f,m);break;case"textarea":It(f,m);break;case"select":var Q=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var se=m.value;se!=null?Ve(f,!!m.multiple,se,!1):Q!==!!m.multiple&&(m.defaultValue!=null?Ve(f,!!m.multiple,m.defaultValue,!0):Ve(f,!!m.multiple,m.multiple?[]:"",!1))}f[Oo]=m}catch(pe){Je(t,t.return,pe)}}break;case 6:if(Sn(i,t),jn(t),d&4){if(t.stateNode===null)throw Error(n(162));f=t.stateNode,m=t.memoizedProps;try{f.nodeValue=m}catch(pe){Je(t,t.return,pe)}}break;case 3:if(Sn(i,t),jn(t),d&4&&a!==null&&a.memoizedState.isDehydrated)try{vo(i.containerInfo)}catch(pe){Je(t,t.return,pe)}break;case 4:Sn(i,t),jn(t);break;case 13:Sn(i,t),jn(t),f=t.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(Zc=nt())),d&4&&Gv(t);break;case 22:if(Y=a!==null&&a.memoizedState!==null,t.mode&1?(wt=(G=wt)||Y,Sn(i,t),wt=G):Sn(i,t),jn(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(J=ce=Y;ce!==null;){switch(Q=ce,se=Q.child,Q.tag){case 0:case 11:case 14:case 15:Fo(4,Q,Q.return);break;case 1:Mi(Q,Q.return);var ue=Q.stateNode;if(typeof ue.componentWillUnmount=="function"){d=Q,a=Q.return;try{i=d,ue.props=i.memoizedProps,ue.state=i.memoizedState,ue.componentWillUnmount()}catch(pe){Je(d,a,pe)}}break;case 5:Mi(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Vv(J);continue}}se!==null?(se.return=Q,ce=se):Vv(J)}Y=Y.sibling}e:for(Y=null,J=t;;){if(J.tag===5){if(Y===null){Y=J;try{f=J.stateNode,G?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(R=J.stateNode,j=J.memoizedProps.style,C=j!=null&&j.hasOwnProperty("display")?j.display:null,R.style.display=kt("display",C))}catch(pe){Je(t,t.return,pe)}}}else if(J.tag===6){if(Y===null)try{J.stateNode.nodeValue=G?"":J.memoizedProps}catch(pe){Je(t,t.return,pe)}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===t)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===t)break e;for(;J.sibling===null;){if(J.return===null||J.return===t)break e;Y===J&&(Y=null),J=J.return}Y===J&&(Y=null),J.sibling.return=J.return,J=J.sibling}}break;case 19:Sn(i,t),jn(t),d&4&&Gv(t);break;case 21:break;default:Sn(i,t),jn(t)}}function jn(t){var i=t.flags;if(i&2){try{e:{for(var a=t.return;a!==null;){if(zv(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var f=d.stateNode;d.flags&32&&(tn(f,""),d.flags&=-33);var m=Bv(t);Qc(t,m,f);break;case 3:case 4:var C=d.stateNode.containerInfo,R=Bv(t);Kc(t,R,C);break;default:throw Error(n(161))}}catch(j){Je(t,t.return,j)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function OP(t,i,a){ce=t,Uv(t)}function Uv(t,i,a){for(var d=(t.mode&1)!==0;ce!==null;){var f=ce,m=f.child;if(f.tag===22&&d){var C=f.memoizedState!==null||va;if(!C){var R=f.alternate,j=R!==null&&R.memoizedState!==null||wt;R=va;var G=wt;if(va=C,(wt=j)&&!G)for(ce=f;ce!==null;)C=ce,j=C.child,C.tag===22&&C.memoizedState!==null?Kv(f):j!==null?(j.return=C,ce=j):Kv(f);for(;m!==null;)ce=m,Uv(m),m=m.sibling;ce=f,va=R,wt=G}Hv(t)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,ce=m):Hv(t)}}function Hv(t){for(;ce!==null;){var i=ce;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:wt||ya(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!wt)if(a===null)d.componentDidMount();else{var f=i.elementType===i.type?a.memoizedProps:yn(i.type,a.memoizedProps);d.componentDidUpdate(f,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=i.updateQueue;m!==null&&Gm(i,m,d);break;case 3:var C=i.updateQueue;if(C!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Gm(i,C,a)}break;case 5:var R=i.stateNode;if(a===null&&i.flags&4){a=R;var j=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&a.focus();break;case"img":j.src&&(a.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var G=i.alternate;if(G!==null){var Y=G.memoizedState;if(Y!==null){var J=Y.dehydrated;J!==null&&vo(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}wt||i.flags&512&&Vc(i)}catch(Q){Je(i,i.return,Q)}}if(i===t){ce=null;break}if(a=i.sibling,a!==null){a.return=i.return,ce=a;break}ce=i.return}}function Vv(t){for(;ce!==null;){var i=ce;if(i===t){ce=null;break}var a=i.sibling;if(a!==null){a.return=i.return,ce=a;break}ce=i.return}}function Kv(t){for(;ce!==null;){var i=ce;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{ya(4,i)}catch(j){Je(i,a,j)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var f=i.return;try{d.componentDidMount()}catch(j){Je(i,f,j)}}var m=i.return;try{Vc(i)}catch(j){Je(i,m,j)}break;case 5:var C=i.return;try{Vc(i)}catch(j){Je(i,C,j)}}}catch(j){Je(i,i.return,j)}if(i===t){ce=null;break}var R=i.sibling;if(R!==null){R.return=i.return,ce=R;break}ce=i.return}}var xP=Math.ceil,ba=M.ReactCurrentDispatcher,Xc=M.ReactCurrentOwner,an=M.ReactCurrentBatchConfig,Re=0,ct=null,it=null,ft=0,Ht=0,$i=Sr(0),st=0,zo=null,ei=0,Sa=0,Yc=0,Bo=null,Mt=null,Zc=0,Fi=1/0,Yn=null,wa=!1,Jc=null,kr=null,Ca=!1,Tr=null,_a=0,qo=0,eu=null,Pa=-1,Ea=0;function Ot(){return(Re&6)!==0?nt():Pa!==-1?Pa:Pa=nt()}function Or(t){return(t.mode&1)===0?1:(Re&2)!==0&&ft!==0?ft&-ft:pP.transition!==null?(Ea===0&&(Ea=zg()),Ea):(t=$e,t!==0||(t=window.event,t=t===void 0?16:Qg(t.type)),t)}function wn(t,i,a,d){if(50<qo)throw qo=0,eu=null,Error(n(185));po(t,a,d),((Re&2)===0||t!==ct)&&(t===ct&&((Re&2)===0&&(Sa|=a),st===4&&xr(t,ft)),$t(t,d),a===1&&Re===0&&(i.mode&1)===0&&(Fi=nt()+500,Js&&Cr()))}function $t(t,i){var a=t.callbackNode;p_(t,i);var d=As(t,t===ct?ft:0);if(d===0)a!==null&&Mg(a),t.callbackNode=null,t.callbackPriority=0;else if(i=d&-d,t.callbackPriority!==i){if(a!=null&&Mg(a),i===1)t.tag===0?dP(Xv.bind(null,t)):Am(Xv.bind(null,t)),aP(function(){(Re&6)===0&&Cr()}),a=null;else{switch(Bg(d)){case 1:a=Nl;break;case 4:a=$g;break;case 16:a=Ds;break;case 536870912:a=Fg;break;default:a=Ds}a=iy(a,Qv.bind(null,t))}t.callbackPriority=i,t.callbackNode=a}}function Qv(t,i){if(Pa=-1,Ea=0,(Re&6)!==0)throw Error(n(327));var a=t.callbackNode;if(zi()&&t.callbackNode!==a)return null;var d=As(t,t===ct?ft:0);if(d===0)return null;if((d&30)!==0||(d&t.expiredLanes)!==0||i)i=ka(t,d);else{i=d;var f=Re;Re|=2;var m=Zv();(ct!==t||ft!==i)&&(Yn=null,Fi=nt()+500,ni(t,i));do try{RP();break}catch(R){Yv(t,R)}while(!0);yc(),ba.current=m,Re=f,it!==null?i=0:(ct=null,ft=0,i=st)}if(i!==0){if(i===2&&(f=Al(t),f!==0&&(d=f,i=tu(t,f))),i===1)throw a=zo,ni(t,0),xr(t,d),$t(t,nt()),a;if(i===6)xr(t,d);else{if(f=t.current.alternate,(d&30)===0&&!DP(f)&&(i=ka(t,d),i===2&&(m=Al(t),m!==0&&(d=m,i=tu(t,m))),i===1))throw a=zo,ni(t,0),xr(t,d),$t(t,nt()),a;switch(t.finishedWork=f,t.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:ri(t,Mt,Yn);break;case 3:if(xr(t,d),(d&130023424)===d&&(i=Zc+500-nt(),10<i)){if(As(t,0)!==0)break;if(f=t.suspendedLanes,(f&d)!==d){Ot(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=ac(ri.bind(null,t,Mt,Yn),i);break}ri(t,Mt,Yn);break;case 4:if(xr(t,d),(d&4194240)===d)break;for(i=t.eventTimes,f=-1;0<d;){var C=31-gn(d);m=1<<C,C=i[C],C>f&&(f=C),d&=~m}if(d=f,d=nt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*xP(d/1960))-d,10<d){t.timeoutHandle=ac(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?Qv.bind(null,t):null}function tu(t,i){var a=Bo;return t.current.memoizedState.isDehydrated&&(ni(t,i).flags|=256),t=ka(t,i),t!==2&&(i=Mt,Mt=a,i!==null&&nu(i)),t}function nu(t){Mt===null?Mt=t:Mt.push.apply(Mt,t)}function DP(t){for(var i=t;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var f=a[d],m=f.getSnapshot;f=f.value;try{if(!mn(m(),f))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function xr(t,i){for(i&=~Yc,i&=~Sa,t.suspendedLanes|=i,t.pingedLanes&=~i,t=t.expirationTimes;0<i;){var a=31-gn(i),d=1<<a;t[a]=-1,i&=~d}}function Xv(t){if((Re&6)!==0)throw Error(n(327));zi();var i=As(t,0);if((i&1)===0)return $t(t,nt()),null;var a=ka(t,i);if(t.tag!==0&&a===2){var d=Al(t);d!==0&&(i=d,a=tu(t,d))}if(a===1)throw a=zo,ni(t,0),xr(t,i),$t(t,nt()),a;if(a===6)throw Error(n(345));return t.finishedWork=t.current.alternate,t.finishedLanes=i,ri(t,Mt,Yn),$t(t,nt()),null}function ru(t,i){var a=Re;Re|=1;try{return t(i)}finally{Re=a,Re===0&&(Fi=nt()+500,Js&&Cr())}}function ti(t){Tr!==null&&Tr.tag===0&&(Re&6)===0&&zi();var i=Re;Re|=1;var a=an.transition,d=$e;try{if(an.transition=null,$e=1,t)return t()}finally{$e=d,an.transition=a,Re=i,(Re&6)===0&&Cr()}}function iu(){Ht=$i.current,Ge($i)}function ni(t,i){t.finishedWork=null,t.finishedLanes=0;var a=t.timeoutHandle;if(a!==-1&&(t.timeoutHandle=-1,sP(a)),it!==null)for(a=it.return;a!==null;){var d=a;switch(fc(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Ys();break;case 3:Li(),Ge(At),Ge(yt),Oc();break;case 5:kc(d);break;case 4:Li();break;case 13:Ge(Qe);break;case 19:Ge(Qe);break;case 10:bc(d.type._context);break;case 22:case 23:iu()}a=a.return}if(ct=t,it=t=Dr(t.current,null),ft=Ht=i,st=0,zo=null,Yc=Sa=ei=0,Mt=Bo=null,Yr!==null){for(i=0;i<Yr.length;i++)if(a=Yr[i],d=a.interleaved,d!==null){a.interleaved=null;var f=d.next,m=a.pending;if(m!==null){var C=m.next;m.next=f,d.next=C}a.pending=d}Yr=null}return t}function Yv(t,i){do{var a=it;try{if(yc(),ua.current=ha,da){for(var d=Xe.memoizedState;d!==null;){var f=d.queue;f!==null&&(f.pending=null),d=d.next}da=!1}if(Jr=0,lt=ot=Xe=null,Ao=!1,Lo=0,Xc.current=null,a===null||a.return===null){st=1,zo=i,it=null;break}e:{var m=t,C=a.return,R=a,j=i;if(i=ft,R.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=j,Y=R,J=Y.tag;if((Y.mode&1)===0&&(J===0||J===11||J===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var se=Cv(C);if(se!==null){se.flags&=-257,_v(se,C,R,m,i),se.mode&1&&wv(m,G,i),i=se,j=G;var ue=i.updateQueue;if(ue===null){var pe=new Set;pe.add(j),i.updateQueue=pe}else ue.add(j);break e}else{if((i&1)===0){wv(m,G,i),ou();break e}j=Error(n(426))}}else if(We&&R.mode&1){var rt=Cv(C);if(rt!==null){(rt.flags&65536)===0&&(rt.flags|=256),_v(rt,C,R,m,i),mc(ji(j,R));break e}}m=j=ji(j,R),st!==4&&(st=2),Bo===null?Bo=[m]:Bo.push(m),m=C;do{switch(m.tag){case 3:m.flags|=65536,i&=-i,m.lanes|=i;var B=bv(m,j,i);qm(m,B);break e;case 1:R=j;var $=m.type,q=m.stateNode;if((m.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(kr===null||!kr.has(q)))){m.flags|=65536,i&=-i,m.lanes|=i;var te=Sv(m,R,i);qm(m,te);break e}}m=m.return}while(m!==null)}ey(a)}catch(ge){i=ge,it===a&&a!==null&&(it=a=a.return);continue}break}while(!0)}function Zv(){var t=ba.current;return ba.current=ha,t===null?ha:t}function ou(){(st===0||st===3||st===2)&&(st=4),ct===null||(ei&268435455)===0&&(Sa&268435455)===0||xr(ct,ft)}function ka(t,i){var a=Re;Re|=2;var d=Zv();(ct!==t||ft!==i)&&(Yn=null,ni(t,i));do try{IP();break}catch(f){Yv(t,f)}while(!0);if(yc(),Re=a,ba.current=d,it!==null)throw Error(n(261));return ct=null,ft=0,st}function IP(){for(;it!==null;)Jv(it)}function RP(){for(;it!==null&&!r_();)Jv(it)}function Jv(t){var i=ry(t.alternate,t,Ht);t.memoizedProps=t.pendingProps,i===null?ey(t):it=i,Xc.current=null}function ey(t){var i=t;do{var a=i.alternate;if(t=i.return,(i.flags&32768)===0){if(a=PP(a,i,Ht),a!==null){it=a;return}}else{if(a=EP(a,i),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(i=i.sibling,i!==null){it=i;return}it=i=t}while(i!==null);st===0&&(st=5)}function ri(t,i,a){var d=$e,f=an.transition;try{an.transition=null,$e=1,NP(t,i,a,d)}finally{an.transition=f,$e=d}return null}function NP(t,i,a,d){do zi();while(Tr!==null);if((Re&6)!==0)throw Error(n(327));a=t.finishedWork;var f=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(f_(t,m),t===ct&&(it=ct=null,ft=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Ca||(Ca=!0,iy(Ds,function(){return zi(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=an.transition,an.transition=null;var C=$e;$e=1;var R=Re;Re|=4,Xc.current=null,TP(t,a),Wv(a,t),J_(oc),Ms=!!ic,oc=ic=null,t.current=a,OP(a),i_(),Re=R,$e=C,an.transition=m}else t.current=a;if(Ca&&(Ca=!1,Tr=t,_a=f),m=t.pendingLanes,m===0&&(kr=null),a_(a.stateNode),$t(t,nt()),i!==null)for(d=t.onRecoverableError,a=0;a<i.length;a++)f=i[a],d(f.value,{componentStack:f.stack,digest:f.digest});if(wa)throw wa=!1,t=Jc,Jc=null,t;return(_a&1)!==0&&t.tag!==0&&zi(),m=t.pendingLanes,(m&1)!==0?t===eu?qo++:(qo=0,eu=t):qo=0,Cr(),null}function zi(){if(Tr!==null){var t=Bg(_a),i=an.transition,a=$e;try{if(an.transition=null,$e=16>t?16:t,Tr===null)var d=!1;else{if(t=Tr,Tr=null,_a=0,(Re&6)!==0)throw Error(n(331));var f=Re;for(Re|=4,ce=t.current;ce!==null;){var m=ce,C=m.child;if((ce.flags&16)!==0){var R=m.deletions;if(R!==null){for(var j=0;j<R.length;j++){var G=R[j];for(ce=G;ce!==null;){var Y=ce;switch(Y.tag){case 0:case 11:case 15:Fo(8,Y,m)}var J=Y.child;if(J!==null)J.return=Y,ce=J;else for(;ce!==null;){Y=ce;var Q=Y.sibling,se=Y.return;if(Fv(Y),Y===G){ce=null;break}if(Q!==null){Q.return=se,ce=Q;break}ce=se}}}var ue=m.alternate;if(ue!==null){var pe=ue.child;if(pe!==null){ue.child=null;do{var rt=pe.sibling;pe.sibling=null,pe=rt}while(pe!==null)}}ce=m}}if((m.subtreeFlags&2064)!==0&&C!==null)C.return=m,ce=C;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;){C=ce;var q=C.child;if((C.subtreeFlags&2064)!==0&&q!==null)q.return=C,ce=q;else e:for(C=$;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===C){ce=null;break e}var te=R.sibling;if(te!==null){te.return=R.return,ce=te;break e}ce=R.return}}if(Re=f,Cr(),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(Is,t)}catch{}d=!0}return d}finally{$e=a,an.transition=i}}return!1}function ty(t,i,a){i=ji(a,i),i=bv(t,i,1),t=Pr(t,i,1),i=Ot(),t!==null&&(po(t,1,i),$t(t,i))}function Je(t,i,a){if(t.tag===3)ty(t,t,a);else for(;i!==null;){if(i.tag===3){ty(i,t,a);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(kr===null||!kr.has(d))){t=ji(a,t),t=Sv(i,t,1),i=Pr(i,t,1),t=Ot(),i!==null&&(po(i,1,t),$t(i,t));break}}i=i.return}}function AP(t,i,a){var d=t.pingCache;d!==null&&d.delete(i),i=Ot(),t.pingedLanes|=t.suspendedLanes&a,ct===t&&(ft&a)===a&&(st===4||st===3&&(ft&130023424)===ft&&500>nt()-Zc?ni(t,0):Yc|=a),$t(t,i)}function ny(t,i){i===0&&((t.mode&1)===0?i=1:(i=Ns,Ns<<=1,(Ns&130023424)===0&&(Ns=4194304)));var a=Ot();t=Kn(t,i),t!==null&&(po(t,i,a),$t(t,a))}function LP(t){var i=t.memoizedState,a=0;i!==null&&(a=i.retryLane),ny(t,a)}function jP(t,i){var a=0;switch(t.tag){case 13:var d=t.stateNode,f=t.memoizedState;f!==null&&(a=f.retryLane);break;case 19:d=t.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),ny(t,a)}var ry;ry=function(t,i,a){if(t!==null)if(t.memoizedProps!==i.pendingProps||At.current)jt=!0;else{if((t.lanes&a)===0&&(i.flags&128)===0)return jt=!1,_P(t,i,a);jt=(t.flags&131072)!==0}else jt=!1,We&&(i.flags&1048576)!==0&&Lm(i,ta,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;ma(t,i),t=i.pendingProps;var f=Oi(i,yt.current);Ni(i,a),f=Ic(null,i,d,t,f,a);var m=Rc();return i.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Lt(d)?(m=!0,Zs(i)):m=!1,i.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Cc(i),f.updater=aa,i.stateNode=f,f._reactInternals=i,Pc(i,d,t,a),i=zc(null,i,d,!0,m,a)):(i.tag=0,We&&m&&pc(i),Tt(null,i,f,a),i=i.child),i;case 16:d=i.elementType;e:{switch(ma(t,i),t=i.pendingProps,f=d._init,d=f(d._payload),i.type=d,f=i.tag=$P(d),t=yn(d,t),f){case 0:i=Fc(null,i,d,t,a);break e;case 1:i=xv(null,i,d,t,a);break e;case 11:i=Pv(null,i,d,t,a);break e;case 14:i=Ev(null,i,d,yn(d.type,t),a);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:yn(d,f),Fc(t,i,d,f,a);case 1:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:yn(d,f),xv(t,i,d,f,a);case 3:e:{if(Dv(i),t===null)throw Error(n(387));d=i.pendingProps,m=i.memoizedState,f=m.element,Bm(t,i),sa(i,d,null,a);var C=i.memoizedState;if(d=C.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){f=ji(Error(n(423)),i),i=Iv(t,i,d,a,f);break e}else if(d!==f){f=ji(Error(n(424)),i),i=Iv(t,i,d,a,f);break e}else for(Ut=br(i.stateNode.containerInfo.firstChild),Wt=i,We=!0,vn=null,a=Xm(i,null,d,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ii(),d===f){i=Xn(t,i,a);break e}Tt(t,i,d,a)}i=i.child}return i;case 5:return Ym(i),t===null&&gc(i),d=i.type,f=i.pendingProps,m=t!==null?t.memoizedProps:null,C=f.children,sc(d,f)?C=null:m!==null&&sc(d,m)&&(i.flags|=32),Ov(t,i),Tt(t,i,C,a),i.child;case 6:return t===null&&gc(i),null;case 13:return Rv(t,i,a);case 4:return Ec(i,i.stateNode.containerInfo),d=i.pendingProps,t===null?i.child=Ai(i,null,d,a):Tt(t,i,d,a),i.child;case 11:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:yn(d,f),Pv(t,i,d,f,a);case 7:return Tt(t,i,i.pendingProps,a),i.child;case 8:return Tt(t,i,i.pendingProps.children,a),i.child;case 12:return Tt(t,i,i.pendingProps.children,a),i.child;case 10:e:{if(d=i.type._context,f=i.pendingProps,m=i.memoizedProps,C=f.value,ze(ra,d._currentValue),d._currentValue=C,m!==null)if(mn(m.value,C)){if(m.children===f.children&&!At.current){i=Xn(t,i,a);break e}}else for(m=i.child,m!==null&&(m.return=i);m!==null;){var R=m.dependencies;if(R!==null){C=m.child;for(var j=R.firstContext;j!==null;){if(j.context===d){if(m.tag===1){j=Qn(-1,a&-a),j.tag=2;var G=m.updateQueue;if(G!==null){G=G.shared;var Y=G.pending;Y===null?j.next=j:(j.next=Y.next,Y.next=j),G.pending=j}}m.lanes|=a,j=m.alternate,j!==null&&(j.lanes|=a),Sc(m.return,a,i),R.lanes|=a;break}j=j.next}}else if(m.tag===10)C=m.type===i.type?null:m.child;else if(m.tag===18){if(C=m.return,C===null)throw Error(n(341));C.lanes|=a,R=C.alternate,R!==null&&(R.lanes|=a),Sc(C,a,i),C=m.sibling}else C=m.child;if(C!==null)C.return=m;else for(C=m;C!==null;){if(C===i){C=null;break}if(m=C.sibling,m!==null){m.return=C.return,C=m;break}C=C.return}m=C}Tt(t,i,f.children,a),i=i.child}return i;case 9:return f=i.type,d=i.pendingProps.children,Ni(i,a),f=on(f),d=d(f),i.flags|=1,Tt(t,i,d,a),i.child;case 14:return d=i.type,f=yn(d,i.pendingProps),f=yn(d.type,f),Ev(t,i,d,f,a);case 15:return kv(t,i,i.type,i.pendingProps,a);case 17:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:yn(d,f),ma(t,i),i.tag=1,Lt(d)?(t=!0,Zs(i)):t=!1,Ni(i,a),Hm(i,d,f),Pc(i,d,f,a),zc(null,i,d,!0,t,a);case 19:return Av(t,i,a);case 22:return Tv(t,i,a)}throw Error(n(156,i.tag))};function iy(t,i){return jg(t,i)}function MP(t,i,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=i,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 ln(t,i,a,d){return new MP(t,i,a,d)}function su(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $P(t){if(typeof t=="function")return su(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ie)return 11;if(t===le)return 14}return 2}function Dr(t,i){var a=t.alternate;return a===null?(a=ln(t.tag,i,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=i,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,i=t.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Ta(t,i,a,d,f,m){var C=2;if(d=t,typeof t=="function")su(t)&&(C=1);else if(typeof t=="string")C=5;else e:switch(t){case A:return ii(a.children,f,m,i);case z:C=8,f|=8;break;case U:return t=ln(12,a,i,f|2),t.elementType=U,t.lanes=m,t;case ee:return t=ln(13,a,i,f),t.elementType=ee,t.lanes=m,t;case ve:return t=ln(19,a,i,f),t.elementType=ve,t.lanes=m,t;case Ce:return Oa(a,f,m,i);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:C=10;break e;case V:C=9;break e;case ie:C=11;break e;case le:C=14;break e;case _e:C=16,d=null;break e}throw Error(n(130,t==null?t:typeof t,""))}return i=ln(C,a,i,f),i.elementType=t,i.type=d,i.lanes=m,i}function ii(t,i,a,d){return t=ln(7,t,d,i),t.lanes=a,t}function Oa(t,i,a,d){return t=ln(22,t,d,i),t.elementType=Ce,t.lanes=a,t.stateNode={isHidden:!1},t}function au(t,i,a){return t=ln(6,t,null,i),t.lanes=a,t}function lu(t,i,a){return i=ln(4,t.children!==null?t.children:[],t.key,i),i.lanes=a,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}function FP(t,i,a,d,f){this.tag=i,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=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=d,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function cu(t,i,a,d,f,m,C,R,j){return t=new FP(t,i,a,R,j),i===1?(i=1,m===!0&&(i|=8)):i=0,m=ln(3,null,null,i),t.current=m,m.stateNode=t,m.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cc(m),t}function zP(t,i,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:d==null?null:""+d,children:t,containerInfo:i,implementation:a}}function oy(t){if(!t)return wr;t=t._reactInternals;e:{if(Hr(t)!==t||t.tag!==1)throw Error(n(170));var i=t;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Lt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(t.tag===1){var a=t.type;if(Lt(a))return Rm(t,a,i)}return i}function sy(t,i,a,d,f,m,C,R,j){return t=cu(a,d,!0,t,f,m,C,R,j),t.context=oy(null),a=t.current,d=Ot(),f=Or(a),m=Qn(d,f),m.callback=i??null,Pr(a,m,f),t.current.lanes=f,po(t,f,d),$t(t,d),t}function xa(t,i,a,d){var f=i.current,m=Ot(),C=Or(f);return a=oy(a),i.context===null?i.context=a:i.pendingContext=a,i=Qn(m,C),i.payload={element:t},d=d===void 0?null:d,d!==null&&(i.callback=d),t=Pr(f,i,C),t!==null&&(wn(t,f,C,m),oa(t,f,C)),C}function Da(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function ay(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<i?a:i}}function uu(t,i){ay(t,i),(t=t.alternate)&&ay(t,i)}function BP(){return null}var ly=typeof reportError=="function"?reportError:function(t){console.error(t)};function du(t){this._internalRoot=t}Ia.prototype.render=du.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(n(409));xa(t,i,null,null)},Ia.prototype.unmount=du.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;ti(function(){xa(null,t,null,null)}),i[Wn]=null}};function Ia(t){this._internalRoot=t}Ia.prototype.unstable_scheduleHydration=function(t){if(t){var i=Wg();t={blockedOn:null,target:t,priority:i};for(var a=0;a<mr.length&&i!==0&&i<mr[a].priority;a++);mr.splice(a,0,t),a===0&&Vg(t)}};function pu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ra(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function cy(){}function qP(t,i,a,d,f){if(f){if(typeof d=="function"){var m=d;d=function(){var G=Da(C);m.call(G)}}var C=sy(i,d,t,0,null,!1,!1,"",cy);return t._reactRootContainer=C,t[Wn]=C.current,ko(t.nodeType===8?t.parentNode:t),ti(),C}for(;f=t.lastChild;)t.removeChild(f);if(typeof d=="function"){var R=d;d=function(){var G=Da(j);R.call(G)}}var j=cu(t,0,!1,null,null,!1,!1,"",cy);return t._reactRootContainer=j,t[Wn]=j.current,ko(t.nodeType===8?t.parentNode:t),ti(function(){xa(i,j,a,d)}),j}function Na(t,i,a,d,f){var m=a._reactRootContainer;if(m){var C=m;if(typeof f=="function"){var R=f;f=function(){var j=Da(C);R.call(j)}}xa(i,C,t,f)}else C=qP(a,i,t,f,d);return Da(C)}qg=function(t){switch(t.tag){case 3:var i=t.stateNode;if(i.current.memoizedState.isDehydrated){var a=uo(i.pendingLanes);a!==0&&(jl(i,a|1),$t(i,nt()),(Re&6)===0&&(Fi=nt()+500,Cr()))}break;case 13:ti(function(){var d=Kn(t,1);if(d!==null){var f=Ot();wn(d,t,1,f)}}),uu(t,1)}},Ml=function(t){if(t.tag===13){var i=Kn(t,134217728);if(i!==null){var a=Ot();wn(i,t,134217728,a)}uu(t,134217728)}},Gg=function(t){if(t.tag===13){var i=Or(t),a=Kn(t,i);if(a!==null){var d=Ot();wn(a,t,i,d)}uu(t,i)}},Wg=function(){return $e},Ug=function(t,i){var a=$e;try{return $e=t,i()}finally{$e=a}},Gr=function(t,i,a){switch(i){case"input":if(xe(t,a),i=a.name,a.type==="radio"&&i!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var d=a[i];if(d!==t&&d.form===t.form){var f=Xs(d);if(!f)throw Error(n(90));pn(d),xe(d,f)}}}break;case"textarea":It(t,a);break;case"select":i=a.value,i!=null&&Ve(t,!!a.multiple,i,!1)}},oo=ru,so=ti;var GP={usingClientEntryPoint:!1,Events:[xo,ki,Xs,Gn,Ur,ru]},Go={findFiberByHostInstance:Vr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},WP={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=Ag(t),t===null?null:t.stateNode},findFiberByHostInstance:Go.findFiberByHostInstance||BP,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 Aa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Aa.isDisabled&&Aa.supportsFiber)try{Is=Aa.inject(WP),Rn=Aa}catch{}}return Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GP,Ft.createPortal=function(t,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pu(i))throw Error(n(200));return zP(t,i,null,a)},Ft.createRoot=function(t,i){if(!pu(t))throw Error(n(299));var a=!1,d="",f=ly;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(f=i.onRecoverableError)),i=cu(t,1,!1,null,null,a,!1,d,f),t[Wn]=i.current,ko(t.nodeType===8?t.parentNode:t),new du(i)},Ft.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(n(188)):(t=Object.keys(t).join(","),Error(n(268,t)));return t=Ag(i),t=t===null?null:t.stateNode,t},Ft.flushSync=function(t){return ti(t)},Ft.hydrate=function(t,i,a){if(!Ra(i))throw Error(n(200));return Na(null,t,i,!0,a)},Ft.hydrateRoot=function(t,i,a){if(!pu(t))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,f=!1,m="",C=ly;if(a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(C=a.onRecoverableError)),i=sy(i,null,t,1,a??null,f,!1,m,C),t[Wn]=i.current,ko(t),d)for(t=0;t<d.length;t++)a=d[t],f=a._getVersion,f=f(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,f]:i.mutableSourceEagerHydrationData.push(a,f);return new Ia(i)},Ft.render=function(t,i,a){if(!Ra(i))throw Error(n(200));return Na(null,t,i,!1,a)},Ft.unmountComponentAtNode=function(t){if(!Ra(t))throw Error(n(40));return t._reactRootContainer?(ti(function(){Na(null,null,t,!1,function(){t._reactRootContainer=null,t[Wn]=null})}),!0):!1},Ft.unstable_batchedUpdates=ru,Ft.unstable_renderSubtreeIntoContainer=function(t,i,a,d){if(!Ra(a))throw Error(n(200));if(t==null||t._reactInternals===void 0)throw Error(n(38));return Na(t,i,a,!1,d)},Ft.version="18.2.0-next-9e3b772b8-20220608",Ft}var vy;function Xw(){if(vy)return gu.exports;vy=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(e){console.error(e)}}return o(),gu.exports=YP(),gu.exports}var yy;function ZP(){if(yy)return ja;yy=1;var o=Xw();return ja.createRoot=o.createRoot,ja.hydrateRoot=o.hydrateRoot,ja}var JP=ZP(),yu,by;function eE(){if(by)return yu;by=1;function o(){}return yu=o,yu}var tE=eE();const me=Ze(tE);var bu,Sy;function Yt(){if(Sy)return bu;Sy=1;var o=Array.isArray;return bu=o,bu}var Su,wy;function Yw(){if(wy)return Su;wy=1;var o=typeof La=="object"&&La&&La.Object===Object&&La;return Su=o,Su}var wu,Cy;function kn(){if(Cy)return wu;Cy=1;var o=Yw(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=o||e||Function("return this")();return wu=n,wu}var Cu,_y;function Xi(){if(_y)return Cu;_y=1;var o=kn(),e=o.Symbol;return Cu=e,Cu}var _u,Py;function nE(){if(Py)return _u;Py=1;var o=Xi(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,s=o?o.toStringTag:void 0;function l(c){var u=n.call(c,s),p=c[s];try{c[s]=void 0;var h=!0}catch{}var v=r.call(c);return h&&(u?c[s]=p:delete c[s]),v}return _u=l,_u}var Pu,Ey;function rE(){if(Ey)return Pu;Ey=1;var o=Object.prototype,e=o.toString;function n(r){return e.call(r)}return Pu=n,Pu}var Eu,ky;function Fr(){if(ky)return Eu;ky=1;var o=Xi(),e=nE(),n=rE(),r="[object Null]",s="[object Undefined]",l=o?o.toStringTag:void 0;function c(u){return u==null?u===void 0?s:r:l&&l in Object(u)?e(u):n(u)}return Eu=c,Eu}var ku,Ty;function Tn(){if(Ty)return ku;Ty=1;function o(e){return e!=null&&typeof e=="object"}return ku=o,ku}var Tu,Oy;function tl(){if(Oy)return Tu;Oy=1;var o=Fr(),e=Tn(),n="[object Symbol]";function r(s){return typeof s=="symbol"||e(s)&&o(s)==n}return Tu=r,Tu}var Ou,xy;function iE(){if(xy)return Ou;xy=1;var o=Yt(),e=tl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function s(l,c){if(o(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 Ou=s,Ou}var xu,Dy;function un(){if(Dy)return xu;Dy=1;function o(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return xu=o,xu}var Du,Iy;function nl(){if(Iy)return Du;Iy=1;var o=Fr(),e=un(),n="[object AsyncFunction]",r="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(u){if(!e(u))return!1;var p=o(u);return p==r||p==s||p==n||p==l}return Du=c,Du}var Iu,Ry;function oE(){if(Ry)return Iu;Ry=1;var o=kn(),e=o["__core-js_shared__"];return Iu=e,Iu}var Ru,Ny;function sE(){if(Ny)return Ru;Ny=1;var o=oE(),e=(function(){var r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return Ru=n,Ru}var Nu,Ay;function Zw(){if(Ay)return Nu;Ay=1;var o=Function.prototype,e=o.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return Nu=n,Nu}var Au,Ly;function aE(){if(Ly)return Au;Ly=1;var o=nl(),e=sE(),n=un(),r=Zw(),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,p=c.toString,h=u.hasOwnProperty,v=RegExp("^"+p.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(b){if(!n(b)||e(b))return!1;var P=o(b)?v:l;return P.test(r(b))}return Au=y,Au}var Lu,jy;function lE(){if(jy)return Lu;jy=1;function o(e,n){return e?.[n]}return Lu=o,Lu}var ju,My;function gi(){if(My)return ju;My=1;var o=aE(),e=lE();function n(r,s){var l=e(r,s);return o(l)?l:void 0}return ju=n,ju}var Mu,$y;function rl(){if($y)return Mu;$y=1;var o=gi(),e=o(Object,"create");return Mu=e,Mu}var $u,Fy;function cE(){if(Fy)return $u;Fy=1;var o=rl();function e(){this.__data__=o?o(null):{},this.size=0}return $u=e,$u}var Fu,zy;function uE(){if(zy)return Fu;zy=1;function o(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Fu=o,Fu}var zu,By;function dE(){if(By)return zu;By=1;var o=rl(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function s(l){var c=this.__data__;if(o){var u=c[l];return u===e?void 0:u}return r.call(c,l)?c[l]:void 0}return zu=s,zu}var Bu,qy;function pE(){if(qy)return Bu;qy=1;var o=rl(),e=Object.prototype,n=e.hasOwnProperty;function r(s){var l=this.__data__;return o?l[s]!==void 0:n.call(l,s)}return Bu=r,Bu}var qu,Gy;function fE(){if(Gy)return qu;Gy=1;var o=rl(),e="__lodash_hash_undefined__";function n(r,s){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=o&&s===void 0?e:s,this}return qu=n,qu}var Gu,Wy;function hE(){if(Wy)return Gu;Wy=1;var o=cE(),e=uE(),n=dE(),r=pE(),s=fE();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var h=c[u];this.set(h[0],h[1])}}return l.prototype.clear=o,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,Gu=l,Gu}var Wu,Uy;function gE(){if(Uy)return Wu;Uy=1;function o(){this.__data__=[],this.size=0}return Wu=o,Wu}var Uu,Hy;function hs(){if(Hy)return Uu;Hy=1;function o(e,n){return e===n||e!==e&&n!==n}return Uu=o,Uu}var Hu,Vy;function il(){if(Vy)return Hu;Vy=1;var o=hs();function e(n,r){for(var s=n.length;s--;)if(o(n[s][0],r))return s;return-1}return Hu=e,Hu}var Vu,Ky;function mE(){if(Ky)return Vu;Ky=1;var o=il(),e=Array.prototype,n=e.splice;function r(s){var l=this.__data__,c=o(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 Vu=r,Vu}var Ku,Qy;function vE(){if(Qy)return Ku;Qy=1;var o=il();function e(n){var r=this.__data__,s=o(r,n);return s<0?void 0:r[s][1]}return Ku=e,Ku}var Qu,Xy;function yE(){if(Xy)return Qu;Xy=1;var o=il();function e(n){return o(this.__data__,n)>-1}return Qu=e,Qu}var Xu,Yy;function bE(){if(Yy)return Xu;Yy=1;var o=il();function e(n,r){var s=this.__data__,l=o(s,n);return l<0?(++this.size,s.push([n,r])):s[l][1]=r,this}return Xu=e,Xu}var Yu,Zy;function ol(){if(Zy)return Yu;Zy=1;var o=gE(),e=mE(),n=vE(),r=yE(),s=bE();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var h=c[u];this.set(h[0],h[1])}}return l.prototype.clear=o,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,Yu=l,Yu}var Zu,Jy;function xh(){if(Jy)return Zu;Jy=1;var o=gi(),e=kn(),n=o(e,"Map");return Zu=n,Zu}var Ju,e1;function SE(){if(e1)return Ju;e1=1;var o=hE(),e=ol(),n=xh();function r(){this.size=0,this.__data__={hash:new o,map:new(n||e),string:new o}}return Ju=r,Ju}var ed,t1;function wE(){if(t1)return ed;t1=1;function o(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return ed=o,ed}var td,n1;function sl(){if(n1)return td;n1=1;var o=wE();function e(n,r){var s=n.__data__;return o(r)?s[typeof r=="string"?"string":"hash"]:s.map}return td=e,td}var nd,r1;function CE(){if(r1)return nd;r1=1;var o=sl();function e(n){var r=o(this,n).delete(n);return this.size-=r?1:0,r}return nd=e,nd}var rd,i1;function _E(){if(i1)return rd;i1=1;var o=sl();function e(n){return o(this,n).get(n)}return rd=e,rd}var id,o1;function PE(){if(o1)return id;o1=1;var o=sl();function e(n){return o(this,n).has(n)}return id=e,id}var od,s1;function EE(){if(s1)return od;s1=1;var o=sl();function e(n,r){var s=o(this,n),l=s.size;return s.set(n,r),this.size+=s.size==l?0:1,this}return od=e,od}var sd,a1;function Dh(){if(a1)return sd;a1=1;var o=SE(),e=CE(),n=_E(),r=PE(),s=EE();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var h=c[u];this.set(h[0],h[1])}}return l.prototype.clear=o,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,sd=l,sd}var ad,l1;function kE(){if(l1)return ad;l1=1;var o=Dh(),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 h=r.apply(this,c);return l.cache=p.set(u,h)||p,h};return l.cache=new(n.Cache||o),l}return n.Cache=o,ad=n,ad}var ld,c1;function TE(){if(c1)return ld;c1=1;var o=kE(),e=500;function n(r){var s=o(r,function(c){return l.size===e&&l.clear(),c}),l=s.cache;return s}return ld=n,ld}var cd,u1;function OE(){if(u1)return cd;u1=1;var o=TE(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=o(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(e,function(c,u,p,h){l.push(p?h.replace(n,"$1"):u||c)}),l});return cd=r,cd}var ud,d1;function Ih(){if(d1)return ud;d1=1;function o(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 ud=o,ud}var dd,p1;function xE(){if(p1)return dd;p1=1;var o=Xi(),e=Ih(),n=Yt(),r=tl(),s=o?o.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 dd=c,dd}var pd,f1;function DE(){if(f1)return pd;f1=1;var o=xE();function e(n){return n==null?"":o(n)}return pd=e,pd}var fd,h1;function al(){if(h1)return fd;h1=1;var o=Yt(),e=iE(),n=OE(),r=DE();function s(l,c){return o(l)?l:e(l,c)?[l]:n(r(l))}return fd=s,fd}var hd,g1;function Rh(){if(g1)return hd;g1=1;var o=tl();function e(n){if(typeof n=="string"||o(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return hd=e,hd}var gd,m1;function Jw(){if(m1)return gd;m1=1;var o=al(),e=Rh();function n(r,s){s=o(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 gd=n,gd}var md,v1;function IE(){if(v1)return md;v1=1;var o=Jw();function e(n,r,s){var l=n==null?void 0:o(n,r);return l===void 0?s:l}return md=e,md}var RE=IE();const ke=Ze(RE),e0=function(o){if(ke(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(o,...n)}};class xt{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({},xt.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];e0(e,...r)}_persistEvent(e){this._adapter.persistEvent(e)}}var k=fs();const w=Ze(k);function Nh(o){return Object.keys(o).reduce((e,n)=>(n.substr(0,5)==="data-"&&(e[n]=o[n]),e),{})}const{hasOwnProperty:NE}=Object.prototype;class gt extends k.Component{constructor(e){super(e),this.isControlled=n=>!!(n&&this.props&&typeof this.props=="object"&&NE.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 e0(e,...r)}getDataAttr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return Nh(e)}}gt.propTypes={};gt.defaultProps={};var vd,y1;function AE(){if(y1)return vd;y1=1;var o=kn(),e=function(){return o.Date.now()};return vd=e,vd}var yd,b1;function LE(){if(b1)return yd;b1=1;var o=/\s/;function e(n){for(var r=n.length;r--&&o.test(n.charAt(r)););return r}return yd=e,yd}var bd,S1;function jE(){if(S1)return bd;S1=1;var o=LE(),e=/^\s+/;function n(r){return r&&r.slice(0,o(r)+1).replace(e,"")}return bd=n,bd}var Sd,w1;function ME(){if(w1)return Sd;w1=1;var o=jE(),e=un(),n=tl(),r=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function p(h){if(typeof h=="number")return h;if(n(h))return r;if(e(h)){var v=typeof h.valueOf=="function"?h.valueOf():h;h=e(v)?v+"":v}if(typeof h!="string")return h===0?h:+h;h=o(h);var y=l.test(h);return y||c.test(h)?u(h.slice(2),y?2:8):s.test(h)?r:+h}return Sd=p,Sd}var wd,C1;function $E(){if(C1)return wd;C1=1;var o=un(),e=AE(),n=ME(),r="Expected a function",s=Math.max,l=Math.min;function c(u,p,h){var v,y,b,P,E,S,_=0,O=!1,I=!1,N=!0;if(typeof u!="function")throw new TypeError(r);p=n(p)||0,o(h)&&(O=!!h.leading,I="maxWait"in h,b=I?s(n(h.maxWait)||0,p):b,N="trailing"in h?!!h.trailing:N);function M(ee){var ve=v,le=y;return v=y=void 0,_=ee,P=u.apply(le,ve),P}function F(ee){return _=ee,E=setTimeout(z,p),O?M(ee):P}function L(ee){var ve=ee-S,le=ee-_,_e=p-ve;return I?l(_e,b-le):_e}function A(ee){var ve=ee-S,le=ee-_;return S===void 0||ve>=p||ve<0||I&&le>=b}function z(){var ee=e();if(A(ee))return U(ee);E=setTimeout(z,L(ee))}function U(ee){return E=void 0,N&&v?M(ee):(v=y=void 0,P)}function K(){E!==void 0&&clearTimeout(E),_=0,v=S=y=E=void 0}function V(){return E===void 0?P:U(e())}function ie(){var ee=e(),ve=A(ee);if(v=arguments,y=this,S=ee,ve){if(E===void 0)return F(S);if(I)return clearTimeout(E),E=setTimeout(z,p),M(S)}return E===void 0&&(E=setTimeout(z,p)),P}return ie.cancel=K,ie.flush=V,ie}return wd=c,wd}var Cd,_1;function FE(){if(_1)return Cd;_1=1;var o=$E(),e=un(),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),o(s,l,{leading:u,maxWait:l,trailing:p})}return Cd=r,Cd}var zE=FE();const P1=Ze(zE);var _d={exports:{}};var E1;function BE(){return E1||(E1=1,(function(o){(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}o.exports?(n.default=n,o.exports=n):window.classNames=n})()})(_d)),_d.exports}var qE=BE();const X=Ze(qE);var Pd={exports:{}},Ed,k1;function GE(){if(k1)return Ed;k1=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ed=o,Ed}var kd,T1;function WE(){if(T1)return kd;T1=1;var o=GE();function e(){}function n(){}return n.resetWarningCache=e,kd=function(){function r(c,u,p,h,v,y){if(y!==o){var b=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 b.name="Invariant Violation",b}}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},kd}var O1;function Ah(){return O1||(O1=1,Pd.exports=WE()()),Pd.exports}var UE=Ah();const g=Ze(UE),Te="semi",HE=["default","error","warning","success"];var VE=Yt();const KE=Ze(VE),ll={PREFIX:`${Te}-typography`},Et={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 QE=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const XE=ll.PREFIX;let cl=class extends k.PureComponent{render(){const e=this.props,{component:n,className:r,children:s,forwardRef:l}=e,c=QE(e,["component","className","children","forwardRef"]),u=n,p=X(XE,r);return w.createElement(u,Object.assign({className:p,ref:l},c),s)}};cl.defaultProps={component:"article",style:{},className:""};cl.propTypes={component:g.string,style:g.object,className:g.string};var YE=nl();const Qt=Ze(YE);var Td,x1;function ZE(){if(x1)return Td;x1=1;function o(e){return e===null}return Td=o,Td}var JE=ZE();const ek=Ze(JE);var Od,D1;function tk(){if(D1)return Od;D1=1;var o=Fr(),e=Yt(),n=Tn(),r="[object String]";function s(l){return typeof l=="string"||!e(l)&&n(l)&&o(l)==r}return Od=s,Od}var nk=tk();const at=Ze(nk);var xd,I1;function rk(){if(I1)return xd;I1=1;var o=ol();function e(){this.__data__=new o,this.size=0}return xd=e,xd}var Dd,R1;function ik(){if(R1)return Dd;R1=1;function o(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return Dd=o,Dd}var Id,N1;function ok(){if(N1)return Id;N1=1;function o(e){return this.__data__.get(e)}return Id=o,Id}var Rd,A1;function sk(){if(A1)return Rd;A1=1;function o(e){return this.__data__.has(e)}return Rd=o,Rd}var Nd,L1;function ak(){if(L1)return Nd;L1=1;var o=ol(),e=xh(),n=Dh(),r=200;function s(l,c){var u=this.__data__;if(u instanceof o){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 Nd=s,Nd}var Ad,j1;function Lh(){if(j1)return Ad;j1=1;var o=ol(),e=rk(),n=ik(),r=ok(),s=sk(),l=ak();function c(u){var p=this.__data__=new o(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,Ad=c,Ad}var Ld,M1;function t0(){if(M1)return Ld;M1=1;var o=gi(),e=(function(){try{var n=o(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Ld=e,Ld}var jd,$1;function jh(){if($1)return jd;$1=1;var o=t0();function e(n,r,s){r=="__proto__"&&o?o(n,r,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[r]=s}return jd=e,jd}var Md,F1;function n0(){if(F1)return Md;F1=1;var o=jh(),e=hs();function n(r,s,l){(l!==void 0&&!e(r[s],l)||l===void 0&&!(s in r))&&o(r,s,l)}return Md=n,Md}var $d,z1;function lk(){if(z1)return $d;z1=1;function o(e){return function(n,r,s){for(var l=-1,c=Object(n),u=s(n),p=u.length;p--;){var h=u[e?p:++l];if(r(c[h],h,c)===!1)break}return n}}return $d=o,$d}var Fd,B1;function r0(){if(B1)return Fd;B1=1;var o=lk(),e=o();return Fd=e,Fd}var rs={exports:{}};rs.exports;var q1;function i0(){return q1||(q1=1,(function(o,e){var n=kn(),r=e&&!e.nodeType&&e,s=r&&!0&&o&&!o.nodeType&&o,l=s&&s.exports===r,c=l?n.Buffer:void 0,u=c?c.allocUnsafe:void 0;function p(h,v){if(v)return h.slice();var y=h.length,b=u?u(y):new h.constructor(y);return h.copy(b),b}o.exports=p})(rs,rs.exports)),rs.exports}var zd,G1;function o0(){if(G1)return zd;G1=1;var o=kn(),e=o.Uint8Array;return zd=e,zd}var Bd,W1;function Mh(){if(W1)return Bd;W1=1;var o=o0();function e(n){var r=new n.constructor(n.byteLength);return new o(r).set(new o(n)),r}return Bd=e,Bd}var qd,U1;function s0(){if(U1)return qd;U1=1;var o=Mh();function e(n,r){var s=r?o(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}return qd=e,qd}var Gd,H1;function a0(){if(H1)return Gd;H1=1;function o(e,n){var r=-1,s=e.length;for(n||(n=Array(s));++r<s;)n[r]=e[r];return n}return Gd=o,Gd}var Wd,V1;function ck(){if(V1)return Wd;V1=1;var o=un(),e=Object.create,n=(function(){function r(){}return function(s){if(!o(s))return{};if(e)return e(s);r.prototype=s;var l=new r;return r.prototype=void 0,l}})();return Wd=n,Wd}var Ud,K1;function l0(){if(K1)return Ud;K1=1;function o(e,n){return function(r){return e(n(r))}}return Ud=o,Ud}var Hd,Q1;function $h(){if(Q1)return Hd;Q1=1;var o=l0(),e=o(Object.getPrototypeOf,Object);return Hd=e,Hd}var Vd,X1;function ul(){if(X1)return Vd;X1=1;var o=Object.prototype;function e(n){var r=n&&n.constructor,s=typeof r=="function"&&r.prototype||o;return n===s}return Vd=e,Vd}var Kd,Y1;function c0(){if(Y1)return Kd;Y1=1;var o=ck(),e=$h(),n=ul();function r(s){return typeof s.constructor=="function"&&!n(s)?o(e(s)):{}}return Kd=r,Kd}var Qd,Z1;function uk(){if(Z1)return Qd;Z1=1;var o=Fr(),e=Tn(),n="[object Arguments]";function r(s){return e(s)&&o(s)==n}return Qd=r,Qd}var Xd,J1;function dl(){if(J1)return Xd;J1=1;var o=uk(),e=Tn(),n=Object.prototype,r=n.hasOwnProperty,s=n.propertyIsEnumerable,l=o((function(){return arguments})())?o:function(c){return e(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return Xd=l,Xd}var Yd,eb;function u0(){if(eb)return Yd;eb=1;var o=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=o}return Yd=e,Yd}var Zd,tb;function Yi(){if(tb)return Zd;tb=1;var o=nl(),e=u0();function n(r){return r!=null&&e(r.length)&&!o(r)}return Zd=n,Zd}var Jd,nb;function d0(){if(nb)return Jd;nb=1;var o=Yi(),e=Tn();function n(r){return e(r)&&o(r)}return Jd=n,Jd}var is={exports:{}},ep,rb;function dk(){if(rb)return ep;rb=1;function o(){return!1}return ep=o,ep}is.exports;var ib;function gs(){return ib||(ib=1,(function(o,e){var n=kn(),r=dk(),s=e&&!e.nodeType&&e,l=s&&!0&&o&&!o.nodeType&&o,c=l&&l.exports===s,u=c?n.Buffer:void 0,p=u?u.isBuffer:void 0,h=p||r;o.exports=h})(is,is.exports)),is.exports}var tp,ob;function p0(){if(ob)return tp;ob=1;var o=Fr(),e=$h(),n=Tn(),r="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,p=c.call(Object);function h(v){if(!n(v)||o(v)!=r)return!1;var y=e(v);if(y===null)return!0;var b=u.call(y,"constructor")&&y.constructor;return typeof b=="function"&&b instanceof b&&c.call(b)==p}return tp=h,tp}var np,sb;function pk(){if(sb)return np;sb=1;var o=Fr(),e=u0(),n=Tn(),r="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",h="[object Map]",v="[object Number]",y="[object Object]",b="[object RegExp]",P="[object Set]",E="[object String]",S="[object WeakMap]",_="[object ArrayBuffer]",O="[object DataView]",I="[object Float32Array]",N="[object Float64Array]",M="[object Int8Array]",F="[object Int16Array]",L="[object Int32Array]",A="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",K="[object Uint32Array]",V={};V[I]=V[N]=V[M]=V[F]=V[L]=V[A]=V[z]=V[U]=V[K]=!0,V[r]=V[s]=V[_]=V[l]=V[O]=V[c]=V[u]=V[p]=V[h]=V[v]=V[y]=V[b]=V[P]=V[E]=V[S]=!1;function ie(ee){return n(ee)&&e(ee.length)&&!!V[o(ee)]}return np=ie,np}var rp,ab;function pl(){if(ab)return rp;ab=1;function o(e){return function(n){return e(n)}}return rp=o,rp}var os={exports:{}};os.exports;var lb;function Fh(){return lb||(lb=1,(function(o,e){var n=Yw(),r=e&&!e.nodeType&&e,s=r&&!0&&o&&!o.nodeType&&o,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{}})();o.exports=u})(os,os.exports)),os.exports}var ip,cb;function fl(){if(cb)return ip;cb=1;var o=pk(),e=pl(),n=Fh(),r=n&&n.isTypedArray,s=r?e(r):o;return ip=s,ip}var op,ub;function f0(){if(ub)return op;ub=1;function o(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}return op=o,op}var sp,db;function zh(){if(db)return sp;db=1;var o=jh(),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))&&o(l,c,u)}return sp=s,sp}var ap,pb;function Zi(){if(pb)return ap;pb=1;var o=zh(),e=jh();function n(r,s,l,c){var u=!l;l||(l={});for(var p=-1,h=s.length;++p<h;){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):o(l,v,y)}return l}return ap=n,ap}var lp,fb;function fk(){if(fb)return lp;fb=1;function o(e,n){for(var r=-1,s=Array(e);++r<e;)s[r]=n(r);return s}return lp=o,lp}var cp,hb;function Bh(){if(hb)return cp;hb=1;var o=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,s){var l=typeof r;return s=s??o,!!s&&(l=="number"||l!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<s}return cp=n,cp}var up,gb;function h0(){if(gb)return up;gb=1;var o=fk(),e=dl(),n=Yt(),r=gs(),s=Bh(),l=fl(),c=Object.prototype,u=c.hasOwnProperty;function p(h,v){var y=n(h),b=!y&&e(h),P=!y&&!b&&r(h),E=!y&&!b&&!P&&l(h),S=y||b||P||E,_=S?o(h.length,String):[],O=_.length;for(var I in h)(v||u.call(h,I))&&!(S&&(I=="length"||P&&(I=="offset"||I=="parent")||E&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||s(I,O)))&&_.push(I);return _}return up=p,up}var dp,mb;function hk(){if(mb)return dp;mb=1;function o(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return dp=o,dp}var pp,vb;function gk(){if(vb)return pp;vb=1;var o=un(),e=ul(),n=hk(),r=Object.prototype,s=r.hasOwnProperty;function l(c){if(!o(c))return n(c);var u=e(c),p=[];for(var h in c)h=="constructor"&&(u||!s.call(c,h))||p.push(h);return p}return pp=l,pp}var fp,yb;function ms(){if(yb)return fp;yb=1;var o=h0(),e=gk(),n=Yi();function r(s){return n(s)?o(s,!0):e(s)}return fp=r,fp}var hp,bb;function mk(){if(bb)return hp;bb=1;var o=Zi(),e=ms();function n(r){return o(r,e(r))}return hp=n,hp}var gp,Sb;function vk(){if(Sb)return gp;Sb=1;var o=n0(),e=i0(),n=s0(),r=a0(),s=c0(),l=dl(),c=Yt(),u=d0(),p=gs(),h=nl(),v=un(),y=p0(),b=fl(),P=f0(),E=mk();function S(_,O,I,N,M,F,L){var A=P(_,I),z=P(O,I),U=L.get(z);if(U){o(_,I,U);return}var K=F?F(A,z,I+"",_,O,L):void 0,V=K===void 0;if(V){var ie=c(z),ee=!ie&&p(z),ve=!ie&&!ee&&b(z);K=z,ie||ee||ve?c(A)?K=A:u(A)?K=r(A):ee?(V=!1,K=e(z,!0)):ve?(V=!1,K=n(z,!0)):K=[]:y(z)||l(z)?(K=A,l(A)?K=E(A):(!v(A)||h(A))&&(K=s(z))):V=!1}V&&(L.set(z,K),M(K,z,N,F,L),L.delete(z)),o(_,I,K)}return gp=S,gp}var mp,wb;function yk(){if(wb)return mp;wb=1;var o=Lh(),e=n0(),n=r0(),r=vk(),s=un(),l=ms(),c=f0();function u(p,h,v,y,b){p!==h&&n(h,function(P,E){if(b||(b=new o),s(P))r(p,h,E,v,u,y,b);else{var S=y?y(c(p,E),P,E+"",p,h,b):void 0;S===void 0&&(S=P),e(p,E,S)}},l)}return mp=u,mp}var vp,Cb;function qh(){if(Cb)return vp;Cb=1;function o(e){return e}return vp=o,vp}var yp,_b;function bk(){if(_b)return yp;_b=1;function o(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 yp=o,yp}var bp,Pb;function g0(){if(Pb)return bp;Pb=1;var o=bk(),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),h=Array(p);++u<p;)h[u]=c[s+u];u=-1;for(var v=Array(s+1);++u<s;)v[u]=c[u];return v[s]=l(h),o(r,this,v)}}return bp=n,bp}var Sp,Eb;function Sk(){if(Eb)return Sp;Eb=1;function o(e){return function(){return e}}return Sp=o,Sp}var wp,kb;function wk(){if(kb)return wp;kb=1;var o=Sk(),e=t0(),n=qh(),r=e?function(s,l){return e(s,"toString",{configurable:!0,enumerable:!1,value:o(l),writable:!0})}:n;return wp=r,wp}var Cp,Tb;function Ck(){if(Tb)return Cp;Tb=1;var o=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>=o)return arguments[0]}else l=0;return s.apply(void 0,arguments)}}return Cp=r,Cp}var _p,Ob;function m0(){if(Ob)return _p;Ob=1;var o=wk(),e=Ck(),n=e(o);return _p=n,_p}var Pp,xb;function v0(){if(xb)return Pp;xb=1;var o=qh(),e=g0(),n=m0();function r(s,l){return n(e(s,l,o),s+"")}return Pp=r,Pp}var Ep,Db;function _k(){if(Db)return Ep;Db=1;var o=hs(),e=Yi(),n=Bh(),r=un();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)?o(u[c],l):!1}return Ep=s,Ep}var kp,Ib;function Pk(){if(Ib)return kp;Ib=1;var o=v0(),e=_k();function n(r){return o(function(s,l){var c=-1,u=l.length,p=u>1?l[u-1]:void 0,h=u>2?l[2]:void 0;for(p=r.length>3&&typeof p=="function"?(u--,p):void 0,h&&e(l[0],l[1],h)&&(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 kp=n,kp}var Tp,Rb;function Ek(){if(Rb)return Tp;Rb=1;var o=yk(),e=Pk(),n=e(function(r,s,l){o(r,s,l)});return Tp=n,Tp}var kk=Ek();const Tk=Ze(kk);var Op,Nb;function y0(){if(Nb)return Op;Nb=1;function o(e,n){for(var r=-1,s=e==null?0:e.length;++r<s&&n(e[r],r,e)!==!1;);return e}return Op=o,Op}var xp,Ab;function Ok(){if(Ab)return xp;Ab=1;var o=l0(),e=o(Object.keys,Object);return xp=e,xp}var Dp,Lb;function b0(){if(Lb)return Dp;Lb=1;var o=ul(),e=Ok(),n=Object.prototype,r=n.hasOwnProperty;function s(l){if(!o(l))return e(l);var c=[];for(var u in Object(l))r.call(l,u)&&u!="constructor"&&c.push(u);return c}return Dp=s,Dp}var Ip,jb;function hl(){if(jb)return Ip;jb=1;var o=h0(),e=b0(),n=Yi();function r(s){return n(s)?o(s):e(s)}return Ip=r,Ip}var Rp,Mb;function xk(){if(Mb)return Rp;Mb=1;var o=Zi(),e=hl();function n(r,s){return r&&o(s,e(s),r)}return Rp=n,Rp}var Np,$b;function Dk(){if($b)return Np;$b=1;var o=Zi(),e=ms();function n(r,s){return r&&o(s,e(s),r)}return Np=n,Np}var Ap,Fb;function Ik(){if(Fb)return Ap;Fb=1;function o(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 Ap=o,Ap}var Lp,zb;function S0(){if(zb)return Lp;zb=1;function o(){return[]}return Lp=o,Lp}var jp,Bb;function Gh(){if(Bb)return jp;Bb=1;var o=Ik(),e=S0(),n=Object.prototype,r=n.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(c){return c==null?[]:(c=Object(c),o(s(c),function(u){return r.call(c,u)}))}:e;return jp=l,jp}var Mp,qb;function Rk(){if(qb)return Mp;qb=1;var o=Zi(),e=Gh();function n(r,s){return o(r,e(r),s)}return Mp=n,Mp}var $p,Gb;function Wh(){if(Gb)return $p;Gb=1;function o(e,n){for(var r=-1,s=n.length,l=e.length;++r<s;)e[l+r]=n[r];return e}return $p=o,$p}var Fp,Wb;function w0(){if(Wb)return Fp;Wb=1;var o=Wh(),e=$h(),n=Gh(),r=S0(),s=Object.getOwnPropertySymbols,l=s?function(c){for(var u=[];c;)o(u,n(c)),c=e(c);return u}:r;return Fp=l,Fp}var zp,Ub;function Nk(){if(Ub)return zp;Ub=1;var o=Zi(),e=w0();function n(r,s){return o(r,e(r),s)}return zp=n,zp}var Bp,Hb;function C0(){if(Hb)return Bp;Hb=1;var o=Wh(),e=Yt();function n(r,s,l){var c=s(r);return e(r)?c:o(c,l(r))}return Bp=n,Bp}var qp,Vb;function _0(){if(Vb)return qp;Vb=1;var o=C0(),e=Gh(),n=hl();function r(s){return o(s,n,e)}return qp=r,qp}var Gp,Kb;function P0(){if(Kb)return Gp;Kb=1;var o=C0(),e=w0(),n=ms();function r(s){return o(s,n,e)}return Gp=r,Gp}var Wp,Qb;function Ak(){if(Qb)return Wp;Qb=1;var o=gi(),e=kn(),n=o(e,"DataView");return Wp=n,Wp}var Up,Xb;function Lk(){if(Xb)return Up;Xb=1;var o=gi(),e=kn(),n=o(e,"Promise");return Up=n,Up}var Hp,Yb;function jk(){if(Yb)return Hp;Yb=1;var o=gi(),e=kn(),n=o(e,"Set");return Hp=n,Hp}var Vp,Zb;function Mk(){if(Zb)return Vp;Zb=1;var o=gi(),e=kn(),n=o(e,"WeakMap");return Vp=n,Vp}var Kp,Jb;function vs(){if(Jb)return Kp;Jb=1;var o=Ak(),e=xh(),n=Lk(),r=jk(),s=Mk(),l=Fr(),c=Zw(),u="[object Map]",p="[object Object]",h="[object Promise]",v="[object Set]",y="[object WeakMap]",b="[object DataView]",P=c(o),E=c(e),S=c(n),_=c(r),O=c(s),I=l;return(o&&I(new o(new ArrayBuffer(1)))!=b||e&&I(new e)!=u||n&&I(n.resolve())!=h||r&&I(new r)!=v||s&&I(new s)!=y)&&(I=function(N){var M=l(N),F=M==p?N.constructor:void 0,L=F?c(F):"";if(L)switch(L){case P:return b;case E:return u;case S:return h;case _:return v;case O:return y}return M}),Kp=I,Kp}var Qp,eS;function $k(){if(eS)return Qp;eS=1;var o=Object.prototype,e=o.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 Qp=n,Qp}var Xp,tS;function Fk(){if(tS)return Xp;tS=1;var o=Mh();function e(n,r){var s=r?o(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}return Xp=e,Xp}var Yp,nS;function zk(){if(nS)return Yp;nS=1;var o=/\w*$/;function e(n){var r=new n.constructor(n.source,o.exec(n));return r.lastIndex=n.lastIndex,r}return Yp=e,Yp}var Zp,rS;function Bk(){if(rS)return Zp;rS=1;var o=Xi(),e=o?o.prototype:void 0,n=e?e.valueOf:void 0;function r(s){return n?Object(n.call(s)):{}}return Zp=r,Zp}var Jp,iS;function qk(){if(iS)return Jp;iS=1;var o=Mh(),e=Fk(),n=zk(),r=Bk(),s=s0(),l="[object Boolean]",c="[object Date]",u="[object Map]",p="[object Number]",h="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",P="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",_="[object Float64Array]",O="[object Int8Array]",I="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",L="[object Uint16Array]",A="[object Uint32Array]";function z(U,K,V){var ie=U.constructor;switch(K){case P:return o(U);case l:case c:return new ie(+U);case E:return e(U,V);case S:case _:case O:case I:case N:case M:case F:case L:case A:return s(U,V);case u:return new ie;case p:case y:return new ie(U);case h:return n(U);case v:return new ie;case b:return r(U)}}return Jp=z,Jp}var ef,oS;function Gk(){if(oS)return ef;oS=1;var o=vs(),e=Tn(),n="[object Map]";function r(s){return e(s)&&o(s)==n}return ef=r,ef}var tf,sS;function Wk(){if(sS)return tf;sS=1;var o=Gk(),e=pl(),n=Fh(),r=n&&n.isMap,s=r?e(r):o;return tf=s,tf}var nf,aS;function Uk(){if(aS)return nf;aS=1;var o=vs(),e=Tn(),n="[object Set]";function r(s){return e(s)&&o(s)==n}return nf=r,nf}var rf,lS;function Hk(){if(lS)return rf;lS=1;var o=Uk(),e=pl(),n=Fh(),r=n&&n.isSet,s=r?e(r):o;return rf=s,rf}var of,cS;function E0(){if(cS)return of;cS=1;var o=Lh(),e=y0(),n=zh(),r=xk(),s=Dk(),l=i0(),c=a0(),u=Rk(),p=Nk(),h=_0(),v=P0(),y=vs(),b=$k(),P=qk(),E=c0(),S=Yt(),_=gs(),O=Wk(),I=un(),N=Hk(),M=hl(),F=ms(),L=1,A=2,z=4,U="[object Arguments]",K="[object Array]",V="[object Boolean]",ie="[object Date]",ee="[object Error]",ve="[object Function]",le="[object GeneratorFunction]",_e="[object Map]",Ce="[object Number]",H="[object Object]",Z="[object RegExp]",x="[object Set]",W="[object String]",re="[object Symbol]",ae="[object WeakMap]",de="[object ArrayBuffer]",he="[object DataView]",ye="[object Float32Array]",be="[object Float64Array]",ne="[object Int8Array]",oe="[object Int16Array]",mt="[object Int32Array]",vt="[object Uint8Array]",pn="[object Uint8ClampedArray]",en="[object Uint16Array]",cr="[object Uint32Array]",Ie={};Ie[U]=Ie[K]=Ie[de]=Ie[he]=Ie[V]=Ie[ie]=Ie[ye]=Ie[be]=Ie[ne]=Ie[oe]=Ie[mt]=Ie[_e]=Ie[Ce]=Ie[H]=Ie[Z]=Ie[x]=Ie[W]=Ie[re]=Ie[vt]=Ie[pn]=Ie[en]=Ie[cr]=!0,Ie[ee]=Ie[ve]=Ie[ae]=!1;function fn(xe,Dt,Fe,Me,Ve,Ke){var Be,It=Dt&L,Rt=Dt&A,xn=Dt&z;if(Fe&&(Be=Ve?Fe(xe,Me,Ve,Ke):Fe(xe)),Be!==void 0)return Be;if(!I(xe))return xe;var Nt=S(xe);if(Nt){if(Be=b(xe),!It)return c(xe,Be)}else{var tt=y(xe),Dn=tt==ve||tt==le;if(_(xe))return l(xe,It);if(tt==H||tt==U||Dn&&!Ve){if(Be=Rt||Dn?{}:E(xe),!It)return Rt?p(xe,s(Be,xe)):u(xe,r(Be,xe))}else{if(!Ie[tt])return Ve?xe:{};Be=P(xe,tt,It)}}Ke||(Ke=new o);var tn=Ke.get(xe);if(tn)return tn;Ke.set(xe,Be),N(xe)?xe.forEach(function(kt){Be.add(fn(kt,Dt,Fe,kt,xe,Ke))}):O(xe)&&xe.forEach(function(kt,Bt){Be.set(Bt,fn(kt,Dt,Fe,Bt,xe,Ke))});var hn=xn?Rt?v:h:Rt?F:M,ur=Nt?void 0:hn(xe);return e(ur||xe,function(kt,Bt){ur&&(Bt=kt,kt=xe[Bt]),n(Be,Bt,fn(kt,Dt,Fe,Bt,xe,Ke))}),Be}return of=fn,of}var sf,uS;function Vk(){if(uS)return sf;uS=1;function o(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return sf=o,sf}var af,dS;function Kk(){if(dS)return af;dS=1;function o(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 af=o,af}var lf,pS;function Qk(){if(pS)return lf;pS=1;var o=Jw(),e=Kk();function n(r,s){return s.length<2?r:o(r,e(s,0,-1))}return lf=n,lf}var cf,fS;function Xk(){if(fS)return cf;fS=1;var o=al(),e=Vk(),n=Qk(),r=Rh(),s=Object.prototype,l=s.hasOwnProperty;function c(u,p){p=o(p,u);var h=-1,v=p.length;if(!v)return!0;for(var y=u==null||typeof u!="object"&&typeof u!="function";++h<v;){var b=p[h];if(typeof b=="string"){if(b==="__proto__"&&!l.call(u,"__proto__"))return!1;if(b==="constructor"&&h+1<v&&typeof p[h+1]=="string"&&p[h+1]==="prototype"){if(y&&h===0)continue;return!1}}}var P=n(u,p);return P==null||delete P[r(e(p))]}return cf=c,cf}var uf,hS;function Yk(){if(hS)return uf;hS=1;var o=p0();function e(n){return o(n)?void 0:n}return uf=e,uf}var df,gS;function Zk(){if(gS)return df;gS=1;var o=Xi(),e=dl(),n=Yt(),r=o?o.isConcatSpreadable:void 0;function s(l){return n(l)||e(l)||!!(r&&l&&l[r])}return df=s,df}var pf,mS;function Jk(){if(mS)return pf;mS=1;var o=Wh(),e=Zk();function n(r,s,l,c,u){var p=-1,h=r.length;for(l||(l=e),u||(u=[]);++p<h;){var v=r[p];s>0&&l(v)?s>1?n(v,s-1,l,c,u):o(u,v):c||(u[u.length]=v)}return u}return pf=n,pf}var ff,vS;function eT(){if(vS)return ff;vS=1;var o=Jk();function e(n){var r=n==null?0:n.length;return r?o(n,1):[]}return ff=e,ff}var hf,yS;function tT(){if(yS)return hf;yS=1;var o=eT(),e=g0(),n=m0();function r(s){return n(e(s,void 0,o),s+"")}return hf=r,hf}var gf,bS;function nT(){if(bS)return gf;bS=1;var o=Ih(),e=E0(),n=Xk(),r=al(),s=Zi(),l=Yk(),c=tT(),u=P0(),p=1,h=2,v=4,y=c(function(b,P){var E={};if(b==null)return E;var S=!1;P=o(P,function(O){return O=r(O,b),S||(S=O.length>1),O}),s(b,u(b),E),S&&(E=e(E,p|h|v,l));for(var _=P.length;_--;)n(E,P[_]);return E});return gf=y,gf}var rT=nT();const mi=Ze(rT);var mf,SS;function iT(){if(SS)return mf;SS=1;function o(e){return e===void 0}return mf=o,mf}var oT=iT();const ss=Ze(oT);var vf,wS;function sT(){if(wS)return vf;wS=1;var o="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,o),this}return vf=e,vf}var yf,CS;function aT(){if(CS)return yf;CS=1;function o(e){return this.__data__.has(e)}return yf=o,yf}var bf,_S;function k0(){if(_S)return bf;_S=1;var o=Dh(),e=sT(),n=aT();function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new o;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,bf=r,bf}var Sf,PS;function lT(){if(PS)return Sf;PS=1;function o(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 Sf=o,Sf}var wf,ES;function T0(){if(ES)return wf;ES=1;function o(e,n){return e.has(n)}return wf=o,wf}var Cf,kS;function O0(){if(kS)return Cf;kS=1;var o=k0(),e=lT(),n=T0(),r=1,s=2;function l(c,u,p,h,v,y){var b=p&r,P=c.length,E=u.length;if(P!=E&&!(b&&E>P))return!1;var S=y.get(c),_=y.get(u);if(S&&_)return S==u&&_==c;var O=-1,I=!0,N=p&s?new o:void 0;for(y.set(c,u),y.set(u,c);++O<P;){var M=c[O],F=u[O];if(h)var L=b?h(F,M,O,u,c,y):h(M,F,O,c,u,y);if(L!==void 0){if(L)continue;I=!1;break}if(N){if(!e(u,function(A,z){if(!n(N,z)&&(M===A||v(M,A,p,h,y)))return N.push(z)})){I=!1;break}}else if(!(M===F||v(M,F,p,h,y))){I=!1;break}}return y.delete(c),y.delete(u),I}return Cf=l,Cf}var _f,TS;function cT(){if(TS)return _f;TS=1;function o(e){var n=-1,r=Array(e.size);return e.forEach(function(s,l){r[++n]=[l,s]}),r}return _f=o,_f}var Pf,OS;function uT(){if(OS)return Pf;OS=1;function o(e){var n=-1,r=Array(e.size);return e.forEach(function(s){r[++n]=s}),r}return Pf=o,Pf}var Ef,xS;function dT(){if(xS)return Ef;xS=1;var o=Xi(),e=o0(),n=hs(),r=O0(),s=cT(),l=uT(),c=1,u=2,p="[object Boolean]",h="[object Date]",v="[object Error]",y="[object Map]",b="[object Number]",P="[object RegExp]",E="[object Set]",S="[object String]",_="[object Symbol]",O="[object ArrayBuffer]",I="[object DataView]",N=o?o.prototype:void 0,M=N?N.valueOf:void 0;function F(L,A,z,U,K,V,ie){switch(z){case I:if(L.byteLength!=A.byteLength||L.byteOffset!=A.byteOffset)return!1;L=L.buffer,A=A.buffer;case O:return!(L.byteLength!=A.byteLength||!V(new e(L),new e(A)));case p:case h:case b:return n(+L,+A);case v:return L.name==A.name&&L.message==A.message;case P:case S:return L==A+"";case y:var ee=s;case E:var ve=U&c;if(ee||(ee=l),L.size!=A.size&&!ve)return!1;var le=ie.get(L);if(le)return le==A;U|=u,ie.set(L,A);var _e=r(ee(L),ee(A),U,K,V,ie);return ie.delete(L),_e;case _:if(M)return M.call(L)==M.call(A)}return!1}return Ef=F,Ef}var kf,DS;function pT(){if(DS)return kf;DS=1;var o=_0(),e=1,n=Object.prototype,r=n.hasOwnProperty;function s(l,c,u,p,h,v){var y=u&e,b=o(l),P=b.length,E=o(c),S=E.length;if(P!=S&&!y)return!1;for(var _=P;_--;){var O=b[_];if(!(y?O in c:r.call(c,O)))return!1}var I=v.get(l),N=v.get(c);if(I&&N)return I==c&&N==l;var M=!0;v.set(l,c),v.set(c,l);for(var F=y;++_<P;){O=b[_];var L=l[O],A=c[O];if(p)var z=y?p(A,L,O,c,l,v):p(L,A,O,l,c,v);if(!(z===void 0?L===A||h(L,A,u,p,v):z)){M=!1;break}F||(F=O=="constructor")}if(M&&!F){var U=l.constructor,K=c.constructor;U!=K&&"constructor"in l&&"constructor"in c&&!(typeof U=="function"&&U instanceof U&&typeof K=="function"&&K instanceof K)&&(M=!1)}return v.delete(l),v.delete(c),M}return kf=s,kf}var Tf,IS;function fT(){if(IS)return Tf;IS=1;var o=Lh(),e=O0(),n=dT(),r=pT(),s=vs(),l=Yt(),c=gs(),u=fl(),p=1,h="[object Arguments]",v="[object Array]",y="[object Object]",b=Object.prototype,P=b.hasOwnProperty;function E(S,_,O,I,N,M){var F=l(S),L=l(_),A=F?v:s(S),z=L?v:s(_);A=A==h?y:A,z=z==h?y:z;var U=A==y,K=z==y,V=A==z;if(V&&c(S)){if(!c(_))return!1;F=!0,U=!1}if(V&&!U)return M||(M=new o),F||u(S)?e(S,_,O,I,N,M):n(S,_,A,O,I,N,M);if(!(O&p)){var ie=U&&P.call(S,"__wrapped__"),ee=K&&P.call(_,"__wrapped__");if(ie||ee){var ve=ie?S.value():S,le=ee?_.value():_;return M||(M=new o),N(ve,le,O,I,M)}}return V?(M||(M=new o),r(S,_,O,I,N,M)):!1}return Tf=E,Tf}var Of,RS;function hT(){if(RS)return Of;RS=1;var o=fT(),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:o(r,s,l,c,n,u)}return Of=n,Of}var xf,NS;function gT(){if(NS)return xf;NS=1;var o=hT();function e(n,r){return o(n,r)}return xf=e,xf}var mT=gT();const Pn=Ze(mT);var Df,AS;function vT(){if(AS)return Df;AS=1;var o=b0(),e=vs(),n=dl(),r=Yt(),s=Yi(),l=gs(),c=ul(),u=fl(),p="[object Map]",h="[object Set]",v=Object.prototype,y=v.hasOwnProperty;function b(P){if(P==null)return!0;if(s(P)&&(r(P)||typeof P=="string"||typeof P.splice=="function"||l(P)||u(P)||n(P)))return!P.length;var E=e(P);if(E==p||E==h)return!P.size;if(c(P))return!o(P).length;for(var S in P)if(y.call(P,S))return!1;return!0}return Df=b,Df}var yT=vT();const Zn=Ze(yT);var If,LS;function bT(){if(LS)return If;LS=1;var o=r0(),e=hl();function n(r,s){return r&&o(r,s,e)}return If=n,If}var Rf,jS;function ST(){if(jS)return Rf;jS=1;var o=Yi();function e(n,r){return function(s,l){if(s==null)return s;if(!o(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 Rf=e,Rf}var Nf,MS;function wT(){if(MS)return Nf;MS=1;var o=bT(),e=ST(),n=e(o);return Nf=n,Nf}var Af,$S;function CT(){if($S)return Af;$S=1;var o=qh();function e(n){return typeof n=="function"?n:o}return Af=e,Af}var Lf,FS;function _T(){if(FS)return Lf;FS=1;var o=y0(),e=wT(),n=CT(),r=Yt();function s(l,c){var u=r(l)?o:e;return u(l,n(c))}return Lf=s,Lf}var jf,zS;function PT(){return zS||(zS=1,jf=_T()),jf}var ET=PT();const kT=Ze(ET);var gl=Xw();const Jn=Ze(gl);function rr(o,e){o&&console.warn(`Warning: ${e}`)}function ml(o){return o==null}let x0=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 ml(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(o){try{return o instanceof HTMLElement}catch{return typeof o=="object"&&o.nodeType===1&&typeof o.style=="object"&&typeof o.ownerDocument=="object"}}function TT(o){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)o.appendChild(s);return o}function QW(o){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(o.children&&o.children.length){const s=o.children[0];for(const l of n)o.insertBefore(l,s)}else TT(o,...n);return o}function OT(o){if(o&&typeof o=="object")return typeof o.toJSON=="function"?o.toJSON():["left","top","right","bottom","width","height"].reduce((n,r)=>(n[r]=o[r],n),{})}function Nr(o){o.stopPropagation(),o.preventDefault()}function XW(o){return o.length===1&&o.match(/\S/)}function vl(o,e){for(let n=0;n<o.length;n++)o[n]===e?(o[n].tabIndex=0,o[n].focus()):o[n].tabIndex=-1}function YW(o){o.length>0&&vl(o,o[0])}function ZW(o){o.length>0&&vl(o,o[o.length-1])}function JW(o,e){let n,r;o.length>0&&(e===o[0]?n=o[o.length-1]:(r=o.indexOf(e),n=o[r-1]),vl(o,n))}function eU(o,e){let n,r;o.length>0&&(e===o[o.length-1]?n=o[0]:(r=o.indexOf(e),n=o[r+1]),vl(o,n))}function tU(o,e,n,r){let s,l;return!o||!n||!r||r.length>1?-1:(r=r.toLowerCase(),s=o.indexOf(e)+1,s>=o.length&&(s=0),l=n.indexOf(r,s),l===-1&&(l=n.indexOf(r,0)),l>=0?l:-1)}function nU(o,e){if(!o)return null;for(;o.parentElement&&ke(o.parentElement,"attributes.role.value","")!==e;)o=o.parentElement;return o.parentElement}function rU(o,e){for(let n=0;n<o.length;n++){const r=o[n].attributes["data-popupid"];if(r&&r.value===e)return o[n]}return null}const Ma={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 xT=class extends xt{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 h;const v=this._adapter.getTriggerDOM();s&&!(!((h=v?.matches)===null||h===void 0)&&h.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:h,isHeightOverFlow:v,isWidthOverFlow:y}=n.adjustPosIfNeed(p,u,r,s,l);(p!==h||v||y)&&(p=h,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(Ma.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(Ma.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(Ma.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(Ma.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),h=e.position!=null?e.position:this.getProp("position"),v=r??this.getProp("spacing"),{arrowPointAtCenter:y,showArrow:b,arrowBounding:P}=this.getProps(),E=b&&y;let S=v,_=0;if(typeof v!="number"){const oe=h.includes("top")||h.includes("bottom");S=oe?v.y:v.x,_=oe?v.x:v.y}const O=ke(P,"width",24),I=ke(P,"width",24),N=ke(P,"offsetY",0),M=6,F=6;let L,A,z=0,U=0;const K=c.left+c.width/2,V=c.top+c.height/2,ie=M+O/2,ee=F+I/2,ve=p.height-u.height,le=p.width-u.width,_e=ve>0?ve:0,Ce=le>0?le:0,H=s&&s[0],Z=s&&s[1],x=K-u.left<u.right-K,W=V-u.top<u.bottom-V,re=p.width>l,ae=Math.abs(p?.width-((n=this._adapter.getContainer())===null||n===void 0?void 0:n.clientWidth))>1;switch(ae&&(S=S*p.width/this._adapter.getContainer().clientWidth),h){case"top":L=Z?x?u.left+p.width/2:u.right-p.width/2+Ce:K+_,A=H?u.bottom+_e:c.top-S,z=-.5,U=-1;break;case"topLeft":L=Z?re?u.left:u.right-p.width:E?K-ie+_:c.left+_,A=H?u.bottom+_e:c.top-S,U=-1;break;case"topRight":L=Z?u.right+Ce:E?K+ie+_:c.right+_,A=H?u.bottom+_e:c.top-S,U=-1,z=-1;break;case"left":L=Z?u.right+Ce-S+ie:c.left-S,A=H?W?u.top+p.height/2:u.bottom-p.height/2+_e:V+_,z=-1,U=-.5;break;case"leftTop":L=Z?u.right+Ce-S+ie:c.left-S,A=H?u.top:E?V-ee+_:c.top+_,z=-1;break;case"leftBottom":L=Z?u.right+Ce-S+ie:c.left-S,A=H?u.bottom+_e:E?V+ee+_:c.bottom+_,z=-1,U=-1;break;case"bottom":L=Z?x?u.left+p.width/2:u.right-p.width/2+Ce:K+_,A=H?u.top+ee-S:c.top+c.height+S,z=-.5;break;case"bottomLeft":L=Z?re?u.left:u.right-p.width:E?K-ie+_:c.left+_,A=H?u.top+ee-S:c.top+c.height+S;break;case"bottomRight":L=Z?u.right+Ce:E?K+ie+_:c.right+_,A=H?u.top+ee-S:c.top+c.height+S,z=-1;break;case"right":L=Z?u.left-S+ie:c.right+S,A=H?W?u.top+p.height/2:u.bottom-p.height/2+_e:V+_,U=-.5;break;case"rightTop":L=Z?u.left-S+ie:c.right+S,A=H?u.top:E?V-ee+_:c.top+_;break;case"rightBottom":L=Z?u.left-S+ie:c.right+S,A=H?u.bottom+_e:E?V+ee+_:c.bottom+_,U=-1;break;case"leftTopOver":L=c.left-S,A=c.top-S;break;case"rightTopOver":L=c.right+S,A=c.top-S,z=-1;break;case"leftBottomOver":L=c.left-S,A=c.bottom+S,U=-1;break;case"rightBottomOver":L=c.right+S,A=c.bottom+S,z=-1,U=-1;break}const de=this.calcTransformOrigin(h,c,z,U),he=this._adapter.containerIsBody();if(L=L-u.left,A=A-u.top,ae&&(L/=p.width/this._adapter.getContainer().clientWidth),ae&&(A/=p.height/this._adapter.getContainer().clientHeight),he&&!this._adapter.containerIsRelativeOrAbsolute()){const oe=this._adapter.getDocumentElementBounding();L+=u.left-oe.left,A+=u.top-oe.top}L=he?L:L+u.scrollLeft,A=he?A:A+u.scrollTop;const ye=c.height;if(this.getProp("showArrow")&&!y&&ye<=(I/2+N)*2){const oe=ye/2-(N+I/2);(h.includes("Top")||h.includes("Bottom"))&&!h.includes("Over")&&(A=h.includes("Top")?A+oe:A-oe)}const be={left:this._roundPixel(L),top:this._roundPixel(A)};let ne="";return z!=null&&(ne+=`translateX(${z*100}%) `,Object.defineProperty(be,"translateX",{enumerable:!1,value:z})),U!=null&&(ne+=`translateY(${U*100}%) `,Object.defineProperty(be,"translateY",{enumerable:!1,value:U})),de!=null&&(be.transformOrigin=de),ne&&(be.transform=ne),be}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(),h=typeof p=="number"?p:p.marginLeft,v=typeof p=="number"?p:p.marginTop,y=typeof p=="number"?p:p.marginRight,b=typeof p=="number"?p:p.marginBottom;let P=!1,E=!1;const S=this.getProp("spacing");let _=S,O=0;if(typeof S!="number"){const I=e.includes("top")||e.includes("bottom");_=I?S.y:S.x,O=I?S.x:S.y}if(s.width>0&&s.height>0){const I=r.left,N=r.right,M=r.top,F=r.bottom,L=c-I,A=u-M,z=c-N,U=u-F,K=s.width>r.width,V=s.height>r.height,ie=M-v<s.height+_&&U-b>s.height+_,ee=I-h<s.width+_&&z-y>s.width+_,ve=U-b<s.height+_&&M-v>s.height+_,le=z-y<s.width+_&&I-h>s.width+_;A-b<s.height+_&&F-v>s.height+_,F-v<s.height+_&&A-b>s.height+_;const _e=A<s.height+O&&F>s.height+O,Ce=F<s.height+O&&A>s.height+O,H=L<s.width+O&&N>s.width+O,Z=N<s.width+O&&L>s.width+O,x=A<s.height+_&&F>s.height+_,W=F<s.height+_&&A>s.height+_,re=L<s.width&&N>s.width,ae=N<s.width&&L>s.width,de=M-l.top,he=I-l.left,ye=de+r.height,be=he+r.width,ne=l.bottom-F,oe=l.right-N,mt=ne+r.height,vt=oe+r.width,pn=this.isReverse(de-v,ne-b,s.height+_),en=this.isReverse(he-h,oe-y,s.width+_),cr=this.isReverse(ne-b,de-v,s.height+_),Ie=this.isReverse(oe-y,he-h,s.width+_);this.isReverse(mt-b,ye-v,s.height+_),this.isReverse(ye-v,mt-b,s.height+_);const fn=this.isReverse(mt,ye,s.height+O),xe=this.isReverse(ye,mt,s.height+O),Dt=this.isReverse(vt,be,s.width+O),Fe=this.isReverse(be,vt,s.width+O),Me=r.height/2,Ve=r.width/2,Ke=this.isOverFlow(M-v,U-b,s.height+_),Be=this.isOverFlow(I-h,z-y,s.width+_),It=this.isOverFlow(F-v,A-b,s.height+_),Rt=this.isOverFlow(N-h,L-y,s.width+_),xn=this.isHalfOverFlow(F-Me,A-Me,(s.height+O)/2),Nt=this.isHalfOverFlow(N-Ve,L-Ve,(s.width+O)/2),tt=this.isHalfAllEnough(F-Me,A-Me,(s.height+O)/2),Dn=this.isHalfAllEnough(N-Ve,L-Ve,(s.width+O)/2),tn=this.isOverFlow(de-v,ne-b,s.height+_),hn=this.isOverFlow(he-h,oe-y,s.width+_),ur=this.isOverFlow(ye-v,mt-b,s.height+_),kt=this.isOverFlow(be-h,vt-y,s.width+_),Bt=this.isHalfOverFlow(ye-Me,mt-Me,(s.height+O)/2),Ts=this.isHalfOverFlow(be-Ve,vt-Ve,(s.width+O)/2),dr=this.isHalfAllEnough(ye-Me,mt-Me,(s.height+O)/2),pr=this.isHalfAllEnough(be-Ve,vt-Ve,(s.width+O)/2),Br=this.getReverse(Ke,tn,ie,pn),qr=this.getReverse(Be,hn,ee,en),Gr=this.getReverse(Ke,tn,ve,cr),In=this.getReverse(Be,hn,le,Ie),qt=this.getReverse(It,ur,_e,fn),Wr=this.getReverse(It,ur,Ce,xe),Gn=this.getReverse(Rt,kt,H,Dt),Ur=this.getReverse(Rt,kt,Z,Fe),oo=xn&&Bt,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&&K&&(e=this._adjustPos(e)),E&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Br&&(e=this._adjustPos(e,!0)),Ur&&K&&(e=this._adjustPos(e)),E&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":qr&&(e=this._adjustPos(e)),oo&&(qt||Wr)&&(e=this._adjustPos(e,!1,"expand",qt?"Bottom":"Top"));break;case"leftTop":qr&&(e=this._adjustPos(e)),qt&&V&&(e=this._adjustPos(e,!0)),P&&(tt||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":qr&&(e=this._adjustPos(e)),Wr&&V&&(e=this._adjustPos(e,!0)),P&&(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&&K&&(e=this._adjustPos(e)),E&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":Gr&&(e=this._adjustPos(e,!0)),Ur&&K&&(e=this._adjustPos(e)),E&&(Dn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),oo&&(qt||Wr)&&(e=this._adjustPos(e,!1,"expand",qt?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),qt&&V&&(e=this._adjustPos(e,!0)),P&&(tt||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),Wr&&V&&(e=this._adjustPos(e,!0)),P&&(tt||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":x&&(e=this._adjustPos(e,!0)),re&&(e=this._adjustPos(e));break;case"leftBottomOver":W&&(e=this._adjustPos(e,!0)),re&&(e=this._adjustPos(e));break;case"rightTopOver":x&&(e=this._adjustPos(e,!0)),ae&&(e=this._adjustPos(e));break;case"rightBottomOver":W&&(e=this._adjustPos(e,!0)),ae&&(e=this._adjustPos(e));break}this.isTB(e)&&(P=Ke&&tn,e==="top"||e==="bottom"?E=Nt&&Ts||N<0||z<0:E=Rt&&kt||N<0||z<0),this.isLR(e)&&(E=Be&&hn,e==="left"||e==="right"?P=xn&&Bt||M<0||A<0:P=It&&ur||M<0||A<0)}return{position:e,isHeightOverFlow:P,isWidthOverFlow:E}}_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 DT={PREFIX:`${Te}-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 Qa(o){return`${o}-${new Date().getTime()}-${Math.random()}`}function oU(){var o,e;try{return(e=(o=crypto==null?void 0:crypto.randomUUID)===null||o===void 0?void 0:o.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 Qa("semi")}}function cs(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:n=7}=o,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 Mf,BS;function IT(){if(BS)return Mf;BS=1;var o=zh(),e=al(),n=Bh(),r=un(),s=Rh();function l(c,u,p,h){if(!r(c))return c;u=e(u,c);for(var v=-1,y=u.length,b=y-1,P=c;P!=null&&++v<y;){var E=s(u[v]),S=p;if(E==="__proto__"||E==="constructor"||E==="prototype")return c;if(v!=b){var _=P[E];S=h?h(_,E,P):void 0,S===void 0&&(S=r(_)?_:n(u[v+1])?[]:{})}o(P,E,S),P=P[E]}return c}return Mf=l,Mf}var $f,qS;function RT(){if(qS)return $f;qS=1;var o=IT();function e(n,r,s){return n==null?n:o(n,r,s)}return $f=e,$f}var NT=RT();const D0=Ze(NT);var Ff,GS;function AT(){if(GS)return Ff;GS=1;var o=E0(),e=1,n=4;function r(s,l){return l=typeof l=="function"?l:void 0,o(s,e|n,l)}return Ff=r,Ff}var LT=AT();const jT=Ze(LT);class MT{constructor(){this.config={}}}const qa=new MT;var WS=function(o,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{h(r.next(v))}catch(y){c(y)}}function p(v){try{h(r.throw(v))}catch(y){c(y)}}function h(v){v.done?l(v.value):s(v.value).then(u,p)}h((r=r.apply(o,e||[])).next())})};function $a(o,e){o&&typeof o.stopPropagation=="function"&&o.stopPropagation(),o.nativeEvent&&typeof o.nativeEvent.stopImmediatePropagation=="function"&&o.nativeEvent.stopImmediatePropagation()}function sU(o,e){return jT(o,n=>{if(typeof e=="function")return e(n);if(typeof n=="function"||w.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=>{D0(s,l,n[l])});try{rr(ke(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 aU=(o,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(o);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()=>{}},Mn=o=>w.isValidElement(o)&&ke(o.type,"elementType")==="Icon";function I0(){return document?document.activeElement:null}function R0(o){if(!ci(o))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(o.querySelectorAll(n))}function Uh(o,e){return WS(this,void 0,void 0,function*(){if(e===0){yield o();return}else{yield new Promise(n=>{setTimeout(()=>WS(this,void 0,void 0,function*(){yield Uh(o,e-1),n()}),0)});return}})}function $T(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}function ar(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=()=>{var r,s;return((s=(r=qa?.config)===null||r===void 0?void 0:r.overrideDefaultProps)===null||s===void 0?void 0:s[o])||{}};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=w.createContext({}),FT=()=>document.body;class ys extends k.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||FT)();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),h=2;h<u;h++)p[h-2]=arguments[h];const v=X(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?gl.createPortal(n.children,this.el):null}}ys.contextType=qn;ys.defaultProps={prefixCls:`${Te}-portal`};ys.propTypes={children:g.node,prefixCls:g.string,getPopupContainer:g.func,className:g.string,didUpdate:g.func};var zT=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const BT=o=>{const{className:e,style:n}=o,r=zT(o,["className","style"]);return w.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"}),w.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 qT=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const GT=o=>{const{className:e,style:n}=o,r=qT(o,["className","style"]);return w.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"}),w.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"}))},WT=g.shape({offsetX:g.number,offsetY:g.number,width:g.number,height:g.number});class us extends w.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=>!Pn(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 US=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Ga=DT.PREFIX,UT=Ui.POSITION_SET,HT=Ui.TRIGGER_SET,VT=["flex","block","table","flow-root","grid"],KT=()=>document.body;class ir extends gt{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(k.isValidElement(n)){if(ke(n,"props.disabled"))return Ui.STATUS_DISABLED;const s=ke(n,"props.loading"),l=!Zn(n)&&!Zn(n.type)&&(ke(n,"type.elementType")==="Button"||ke(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=X([`${s}-icon-arrow`]),p=ke(l,"backgroundColor"),h=n?.includes("left")||n?.includes("right")?w.createElement(GT,null):w.createElement(BT,null);return r&&(k.isValidElement(r)?c=r:c=w.cloneElement(h,{className:u,style:{color:p,fill:"currentColor"}})),c},this.handlePortalInnerClick=n=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&$a(n)},this.handlePortalMouseDown=n=>{this.props.stopPropagation&&$a(n)},this.handlePortalFocus=n=>{this.props.stopPropagation&&$a(n)},this.handlePortalBlur=n=>{this.props.stopPropagation&&$a(n)},this.handlePortalInnerKeyDown=n=>{this.foundation.handleContainerKeydown(n)},this.renderContentNode=n=>{const r={initialFocusRef:this.initialFocusRef};return Qt(n)?n(r):n},this.renderPortal=()=>{const{containerStyle:n={},visible:r,portalEventSet:s,placement:l,displayNone:c,transitionState:u,id:p,isPositionUpdated:h}=this.state,{prefixCls:v,content:y,showArrow:b,style:P,motion:E,role:S,zIndex:_}=this.props,O=this.renderContentNode(y),{className:I}=this.props,N=this.context.direction,M=X(I,{[`${v}-wrapper`]:!0,[`${v}-wrapper-show`]:r,[`${v}-with-arrow`]:!!b,[`${v}-rtl`]:N==="rtl"}),F=this.renderIcon(),L=mi(n,E?["transformOrigin"]:void 0),A=ke(n,"transformOrigin"),z=ke(P,"opacity",null),U=z||1,K=w.createElement(us,{fillMode:"forwards",animationState:u,motion:E&&h,startClassName:u==="enter"?`${Ga}-animation-show`:`${Ga}-animation-hide`,onAnimationStart:()=>this.isAnimating=!0,onAnimationEnd:()=>{var V,ie;u==="leave"&&(this.didLeave(),(ie=(V=this.props).afterClose)===null||ie===void 0||ie.call(V)),this.isAnimating=!1}},V=>{let{animationStyle:ie,animationClassName:ee,animationEventsNeedBind:ve}=V;return w.createElement("div",Object.assign({className:X(M,ee),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie),c?{display:"none"}:{}),{transformOrigin:A}),P),z?{opacity:h?U:"0"}:{})},s,ve,{role:S,"x-placement":l,id:p}),w.createElement("div",{className:`${Ga}-content`},O),F)});return w.createElement(ys,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:_}},w.createElement("div",{tabIndex:-1,className:`${Te}-portal-inner`,style:L,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},K))},this.wrapSpan=n=>{const{wrapperClassName:r}=this.props,s=ke(n,"props.style.display"),l=ke(n,"props.block"),c=typeof n=="string",u={};return c||(u.display="inline-block"),(l||VT.includes(s))&&(u.width="100%"),w.createElement("span",{className:r,style:u},n)},this.mergeEvents=(n,r)=>{const s={};return kT(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 xT(this.adapter),this.eventManager=new x0,this.triggerEl=w.createRef(),this.containerEl=w.createRef(),this.initialFocusRef=w.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=US(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=OT(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=US(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=P1(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=P1(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=>R0(n),getActiveElement:()=>I0(),setInitialFocus:()=>{const{preventScroll:n}=this.props,r=ke(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||KT,this.foundation.init(),Uh(()=>{let e=this.triggerEl.current;e&&(e instanceof HTMLElement||(e=gl.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()),Pn(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 h=Object.assign({},ke(p,"props.style")),v={};if(l){const P=this.isSpecial(p);P?(h.pointerEvents="none",P===Ui.STATUS_DISABLED&&(v.cursor="not-allowed"),p=k.cloneElement(p,{style:h}),u!=="custom"&&(p=this.wrapSpan(p)),this.isWrapped=!0):k.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 b=w.cloneElement(p,Object.assign(Object.assign(Object.assign(Object.assign({},y),p.props),this.mergeEvents(p.props,n)),{style:Object.assign(Object.assign({},ke(p,"props.style")),v),className:X(ke(p,"props.className")),ref:P=>{this.triggerEl.current=P;const{ref:E}=p;typeof E=="function"?E(P):E&&typeof E=="object"&&(E.current=P)},tabIndex:p.props.tabIndex||0,"data-popupid":s}));return w.createElement(w.Fragment,null,e?this.renderPortal():null,b)}}ir.contextType=qn;ir.propTypes={children:g.node,motion:g.bool,autoAdjustOverflow:g.bool,position:g.oneOf(UT),getPopupContainer:g.func,mouseEnterDelay:g.number,mouseLeaveDelay:g.number,trigger:g.oneOf(HT).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:WT,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=ar(ir.__SemiComponentName__,{arrowBounding:ai.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Ga,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 Fa={exports:{}},HS;function QT(){if(HS)return Fa.exports;HS=1;const o=(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 Fa.exports=o,Fa.exports.default=o,Fa.exports}var XT=QT();const YT=Ze(XT);function er(){}const ZT=w.createContext(null);function zf(o){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):o.defaultWidth,r=o.formats[n]||o.formats[o.defaultWidth];return r}}function Uo(o){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",s;if(r==="formatting"&&o.formattingValues){var l=o.defaultFormattingWidth||o.defaultWidth,c=n!=null&&n.width?String(n.width):l;s=o.formattingValues[c]||o.formattingValues[l]}else{var u=o.defaultWidth,p=n!=null&&n.width?String(n.width):o.defaultWidth;s=o.values[p]||o.values[u]}var h=o.argumentCallback?o.argumentCallback(e):e;return s[h]}}function Ho(o){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],l=e.match(s);if(!l)return null;var c=l[0],u=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],p=Array.isArray(u)?eO(u,function(y){return y.test(c)}):JT(u,function(y){return y.test(c)}),h;h=o.valueCallback?o.valueCallback(p):p,h=n.valueCallback?n.valueCallback(h):h;var v=e.slice(c.length);return{value:h,rest:v}}}function JT(o,e){for(var n in o)if(o.hasOwnProperty(n)&&e(o[n]))return n}function eO(o,e){for(var n=0;n<o.length;n++)if(e(o[n]))return n}function tO(o){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(o.matchPattern);if(!r)return null;var s=r[0],l=e.match(o.parsePattern);if(!l)return null;var c=o.valueCallback?o.valueCallback(l[0]):l[0];c=n.valueCallback?n.valueCallback(c):c;var u=e.slice(s.length);return{value:c,rest:u}}}function wh(o){"@babel/helpers - typeof";return wh=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},wh(o)}function nO(o){if(o===null||o===!0||o===!1)return NaN;var e=Number(o);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Hh(o,e){if(e.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+e.length+" present")}function rO(o){Hh(1,arguments);var e=Object.prototype.toString.call(o);return o instanceof Date||wh(o)==="object"&&e==="[object Date]"?new Date(o.getTime()):typeof o=="number"||e==="[object Number]"?new Date(o):((typeof o=="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 iO={};function oO(){return iO}function VS(o,e){var n,r,s,l,c,u,p,h;Hh(1,arguments);var v=oO(),y=nO((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||(h=p.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=rO(o),P=b.getUTCDay(),E=(P<y?7:0)+P-y;return b.setUTCDate(b.getUTCDate()-E),b.setUTCHours(0,0,0,0),b}function KS(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Ch(o,e){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ch(o,e)}function sO(o,e,n){Hh(2,arguments);var r=VS(o,n),s=VS(e,n);return r.getTime()===s.getTime()}var aO={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}} 年"}},lO=function(e,n,r){var s,l=aO[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},cO={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},uO={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dO={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pO={date:zf({formats:cO,defaultWidth:"full"}),time:zf({formats:uO,defaultWidth:"full"}),dateTime:zf({formats:dO,defaultWidth:"full"})};function QS(o,e,n){var r="eeee p";return sO(o,e,n)?r:o.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var fO={lastWeek:QS,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:QS,other:"PP p"},hO=function(e,n,r,s){var l=fO[e];return typeof l=="function"?l(n,r,s):l},gO={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},mO={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},vO={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},yO={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},bO={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:"夜间"}},SO={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:"夜间"}},wO=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()}},CO={ordinalNumber:wO,era:Uo({values:gO,defaultWidth:"wide"}),quarter:Uo({values:mO,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Uo({values:vO,defaultWidth:"wide"}),day:Uo({values:yO,defaultWidth:"wide"}),dayPeriod:Uo({values:bO,defaultWidth:"wide",formattingValues:SO,defaultFormattingWidth:"wide"})},_O=/^(第\s*)?\d+(日|时|分|秒)?/i,PO=/\d+/i,EO={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},kO={any:[/^(前)/i,/^(公元)/i]},TO={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},OO={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},xO={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},DO={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]},IO={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},RO={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},NO={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},AO={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},LO={ordinalNumber:tO({matchPattern:_O,parsePattern:PO,valueCallback:function(e){return parseInt(e,10)}}),era:Ho({matchPatterns:EO,defaultMatchWidth:"wide",parsePatterns:kO,defaultParseWidth:"any"}),quarter:Ho({matchPatterns:TO,defaultMatchWidth:"wide",parsePatterns:OO,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ho({matchPatterns:xO,defaultMatchWidth:"wide",parsePatterns:DO,defaultParseWidth:"any"}),day:Ho({matchPatterns:IO,defaultMatchWidth:"wide",parsePatterns:RO,defaultParseWidth:"any"}),dayPeriod:Ho({matchPatterns:NO,defaultMatchWidth:"any",parsePatterns:AO,defaultParseWidth:"any"})},jO={code:"zh-CN",formatDistance:lO,formatLong:pO,formatRelative:hO,localize:CO,match:LO,options:{weekStartsOn:1,firstWeekContainsDate:4}};const _h={code:"zh-CN",currency:"CNY",dateFnsLocale:jO,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 jr extends k.Component{renderChildren(e,n){const{componentName:r}=this.props;let s=e;e?.code||(s=_h);const l=ke(_h,"dateFnsLocale"),c=ke(s,"dateFnsLocale",l),u=ke(s,"currency");return n(s[r],s.code,c,u)}render(){const{children:e}=this.props;return w.createElement(qn.Consumer,null,n=>{let{locale:r}=n;return w.createElement(ZT.Consumer,null,s=>this.renderChildren(r||s,e))})}}jr.propTypes={componentName:g.string.isRequired,children:g.any};jr.defaultProps={componentName:""};const MO="semi";var $O=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const N0=w.forwardRef((o,e)=>{const{svg:n,spin:r=!1,rotate:s,style:l,className:c,prefixCls:u=MO,type:p,size:h="default"}=o,v=$O(o,["svg","spin","rotate","style","className","prefixCls","type","size"]),y=X(`${u}-icon`,{[`${u}-icon-extra-small`]:h==="extra-small",[`${u}-icon-small`]:h==="small",[`${u}-icon-default`]:h==="default",[`${u}-icon-large`]:h==="large",[`${u}-icon-extra-large`]:h==="extra-large",[`${u}-icon-spinning`]:r===!0,[`${u}-icon-${p}`]:!!p},c),b={};return Number.isSafeInteger(s)&&(b.transform=`rotate(${s}deg)`),Object.assign(b,l),w.createElement("span",Object.assign({role:"img",ref:e,"aria-label":p,className:y,style:b},v),n)});N0.elementType="Icon";const Zt=(o,e)=>{const n=w.forwardRef((r,s)=>w.createElement(N0,Object.assign({svg:w.createElement(o),type:e,ref:s},r)));return n.elementType="Icon",n};function FO(o){return k.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},o),k.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 Vh=Zt(FO,"alert_circle");function zO(o){return k.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},o),k.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 Kh=Zt(zO,"alert_triangle");function BO(o){return k.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},o),k.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 qO=Zt(BO,"chevron_down");function GO(o){return k.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},o),k.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 A0=Zt(GO,"clear");function WO(o){return k.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},o),k.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 yl=Zt(WO,"close");function UO(o){return k.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},o),k.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"}),k.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 HO=Zt(UO,"copy");function VO(o){return k.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},o),k.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"}),k.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 KO=Zt(VO,"eye_closed_solid");function QO(o){return k.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},o),k.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 XO=Zt(QO,"eye_opened");function YO(o){return k.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},o),k.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 ZO=Zt(YO,"help_circle");function JO(o){return k.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},o),k.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 Qh=Zt(JO,"info_circle");function ex(o){return k.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},o),k.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 tx=Zt(ex,"search");function nx(o){return k.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},o),k.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 L0=Zt(nx,"tick");function rx(o){return k.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},o),k.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 Xh=Zt(rx,"tick_circle"),Rr={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,UP:38,DOWN:40},Yh="Enter",lU="Escape";function Zh(o){return ke(o,"key")===Yh}const Bf=ll.PREFIX;class Jh extends w.PureComponent{constructor(e){super(e),this.copy=n=>{const{content:r,duration:s,onCopy:l}=this.props,c=YT(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:w.createElement(jr,{componentName:"Typography"},r=>w.createElement("span",null,w.createElement(L0,null),r.copied))},this.renderCopyIcon=()=>{const{icon:n}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:l=>Zh(l)&&this.copy(l)},s=w.createElement("a",{className:`${Bf}-action-copy-icon`},w.createElement(HO,Object.assign({onClick:this.copy},r)));return w.isValidElement(n)?w.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=X(n,{[`${Bf}-action-copy`]:!c,[`${Bf}-action-copied`]:c});return l?l(c,this.copy,this.props):w.createElement(jr,{componentName:"Typography"},p=>w.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:u,ref:r},c?this.renderSuccessTip():w.createElement(ir,{content:typeof s<"u"?s:p.copy},this.renderCopyIcon())))}}Jh.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};Jh.defaultProps={content:"",onCopy:er,duration:3,style:{},className:""};const j0={PREFIX:`${Te}-popover`,ARROW:`${Te}-popover-icon-arrow`},M0={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 ix=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const $0=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:n,arrowStyle:r,popStyle:s}=o,l=ix(o,["position","className","arrowStyle","popStyle"]),c=e.indexOf("top")===0||e.indexOf("bottom")===0,u=X(n,j0.ARROW),p=ke(r,"borderOpacity"),h=ke(r,"backgroundColor",ke(s,"backgroundColor")),v=ke(r,"borderColor",ke(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?w.createElement("svg",Object.assign({},y),w.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}}),w.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:h}})):w.createElement("svg",Object.assign({},y),w.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}}),w.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:h}}))};$0.propTypes={position:g.string,className:g.string,arrowStyle:g.object,popStyle:g.object};var ox=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const sx=M0.POSITION_SET,ax=M0.TRIGGER_SET;class Bn extends w.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=X(c,l,{[`${c}-rtl`]:u==="rtl"}),h=this.renderContentNode({initialFocusRef:r,content:s});return w.createElement("div",{className:p},w.createElement("div",{className:`${c}-content`},h))},this.renderContentNode=n=>{const{initialFocusRef:r,content:s}=n,l={initialFocusRef:r};return Qt(s)?s(l):s},this.tooltipRef=w.createRef()}render(){const e=this.props,{children:n,prefixCls:r,showArrow:s,arrowStyle:l={},arrowBounding:c,position:u,style:p,trigger:h}=e,v=ox(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:y}=this.props;const b={position:u,className:"",popStyle:p,arrowStyle:l},P=s?w.createElement($0,Object.assign({},b)):!1;ml(y)&&(y=s?fi.SPACING_WITH_ARROW:fi.SPACING);const E=h==="click"||h==="custom"?"dialog":"tooltip";return w.createElement(ir,Object.assign({guardFocus:!0,ref:this.tooltipRef},v,{trigger:h,position:u,style:p,content:this.renderPopCard,prefixCls:r,spacing:y,showArrow:P,arrowBounding:c,role:E}),n)}}Bn.contextType=qn;Bn.propTypes={children:g.node,content:g.oneOfType([g.node,g.func]),visible:g.bool,autoAdjustOverflow:g.bool,motion:g.bool,position:g.oneOf(sx),margin:g.oneOfType([g.number,g.object]),mouseEnterDelay:g.number,mouseLeaveDelay:g.number,trigger:g.oneOf(ax).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};Bn.__SemiComponentName__="Popover";Bn.defaultProps=ar(Bn.__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:j0.PREFIX,onClickOutSide:me,onEscKeyDown:me,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});let Ue;function qf(o){if(!o)return 0;const e=o.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function lx(o){return Array.prototype.slice.apply(o).map(n=>`${n}: ${o.getPropertyValue(n)};`).join("")}const cx=function(o,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(o),h=lx(p),v=qf(p.lineHeight),y=Math.round(v*(e+1)+qf(p.paddingTop)+qf(p.paddingBottom));Ue.setAttribute("style",h),Ue.style.position="fixed",Ue.style.left="0",p.getPropertyValue("width")==="auto"&&o.offsetWidth&&(Ue.style.width=`${o.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 b(){const N=Ue.scrollWidth<=Ue.offsetWidth,M=Ue.scrollHeight<y;return e===1?N&&M:M}const P=document.createElement("span"),E=document.createTextNode(n);if(P.appendChild(E),l.length>0){const N=document.createTextNode(l);P.appendChild(N)}Ue.appendChild(P),Object.values(mi(r,"expand")).map(N=>N&&Ue.appendChild(N.cloneNode(!0)));function S(){Ue.innerHTML="",Ue.appendChild(P),Object.values(r).map(N=>N&&Ue.appendChild(N.cloneNode(!0)))}function _(N,M){const F=N.length;return M?c==="end"?N.slice(0,M)+s:N.slice(0,M)+s+N.slice(F-M,F):s}function O(N,M){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.length,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const z=Math.floor((F+L)/2),U=_(M,z);if(N.textContent=U,F>=L-1&&L>0)for(let K=L;K>=F;K-=1){const V=_(M,K);if(N.textContent=V,b())return V}else if(L===0)return s;return b()?O(N,M,z,L,z):O(N,M,F,z,A)}let I=n;return b()||(S(),I=O(E,n,0,c==="middle"?Math.floor(n.length/2):n.length)),Ue.innerHTML="",I},F0=w.createContext("normal");var Xa;(function(o){o.Width="width",o.Height="height",o.All="all"})(Xa||(Xa={}));class Hi extends gt{constructor(e){var n;super(e),n=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return gl.findDOMNode(this.childNode||this)}catch{return null}},this.handleResizeEventTriggered=r=>{var s,l,c,u;if(this.props.observerProperty===Xa.All)(l=(s=this.props).onResize)===null||l===void 0||l.call(s,r);else{const p=[];for(const h of r)this.formerPropertyValue.has(h.target)?h.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(h.target)&&(this.formerPropertyValue.set(h.target,h.contentRect[this.props.observerProperty]),p.push(h)):(this.formerPropertyValue.set(h.target,h.contentRect[this.props.observerProperty]),p.push(h));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=w.Children.only(this.props.children),{ref:n}=e;return w.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 Gf=function(o,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{h(r.next(v))}catch(y){c(y)}}function p(v){try{h(r.throw(v))}catch(y){c(y)}}function h(v){v.done?l(v.value):s(v.value).then(u,p)}h((r=r.apply(o,e||[])).next())})},ux=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const dt=ll.PREFIX,dx="...",px=(o,e)=>{const{mark:n,code:r,underline:s,strong:l,link:c,disabled:u}=o;let p=e;const h=(v,y)=>{let b={};v&&(typeof v=="object"&&(b=Object.assign({},v)),p=w.createElement(y,b,p))};return h(n,"mark"),h(r,"code"),h(s&&!c,"u"),h(l,"strong"),h(o.delete,"del"),h(c,u?"span":"a"),p};class vi extends k.Component{constructor(e){super(e),this.observerTakingEffect=!1,this.onResize=n=>Gf(this,void 0,void 0,function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise(r=>{this.rafId=window.requestAnimationFrame(()=>Gf(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 h;return l.selectNodeContents(p),u+((h=l.getBoundingClientRect().width)!==null&&h!==void 0?h: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:h}=this.getEllipsisOpt(),v=this.canUseCSSEllipsis(),y=!c&&(v?s:l),P=!p&&ss(h)&&y&&u;if(!P)return P;const E={type:"tooltip"};return typeof u=="object"?u.type&&u.type.toLowerCase()==="popover"?Tk({opts:{showArrow:!0}},u,{opts:{className:X({[`${dt}-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({},E),u):E},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=()=>Gf(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(ek(l))return new Promise(b=>{this.setState({isTruncated:!1,isOverflowed:!1},b)});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 h={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},v=Array.isArray(l)?l.join(""):String(l),y=cx(this.wrapperRef.current,n,v,h,dx,r,s,c);return new Promise(b=>{this.setState({isOverflowed:!1,ellipsisContent:y,isTruncated:v!==y},b)})}),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),h=!u&&ss(c);let v;return!n&&!p?v=s:n&&!h&&(v=c),!p||!h?w.createElement("a",{role:"button",tabIndex:0,className:`${dt}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":v,onClick:this.toggleOverflow,onKeyPress:y=>Zh(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=X({[`${dt}-ellipsis`]:!0,[`${dt}-ellipsis-single-line`]:s===1,[`${dt}-ellipsis-multiple-line`]:s>1,[`${dt}-ellipsis-multiple-line-text`]:s>1&&r==="span",[`${dt}-ellipsis-overflow-ellipsis`]:s===1&&c,[`${dt}-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?w.createElement("span",{onMouseEnter:this.onHover},s,r&&r.length?r:null):w.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=w.createRef(),this.expandRef=w.createRef(),this.copyRef=w.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize().then(()=>Uh(()=>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 w.createElement(w.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 w.createElement(Jh,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 w.createElement("span",{className:`${dt}-icon`,"x-semi-prop":"icon"},Mn(e)?w.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:h,icon:v,size:y,link:b,heading:P,weight:E}=e,S=ux(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),_=mi(S,["strong","editable","mark","copyable","underline","code","delete"]),O=y==="inherit"?this.context:y,I=this.renderIcon(),N=this.getEllipsisOpt(),{ellipsisCls:M,ellipsisStyle:F}=this.getEllipsisStyle();let L=h?this.renderEllipsisText(N):r;const A=X({[`${dt}-link-text`]:b,[`${dt}-link-underline`]:this.props.underline&&b});L=px(this.props,w.createElement(w.Fragment,null,I,this.props.link?w.createElement("span",{className:A},L):L));const z=/^h[1-6]$/,U=at(P)&&z.test(P),K=X(s,M,{[`${dt}-${l}`]:l&&!b,[`${dt}-${O}`]:O,[`${dt}-link`]:b,[`${dt}-disabled`]:u,[`${dt}-${c}`]:c,[`${dt}-${P}`]:U,[`${dt}-${P}-weight-${E}`]:U&&E&&isNaN(Number(E))}),V=Object.assign(Object.assign({},isNaN(Number(E))?{}:{fontWeight:E}),p);return w.createElement(cl,Object.assign({className:K,style:Object.assign(Object.assign({},V),F),component:n,forwardRef:this.wrapperRef},_),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 Qt(c)?c(e,r):s.toLowerCase()==="popover"?w.createElement(Bn,Object.assign({content:e,position:"top"},l),r):w.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=w.createElement(F0.Provider,{value:r},w.createElement(jr,{componentName:"Typography"},l=>(this.expandStr=l.expand,this.collapseStr=l.collapse,this.renderTipWrapper())));return this.props.ellipsis?w.createElement(Hi,{onResize:function(){e.observerTakingEffect&&e.onResize(...arguments)},observeParent:!0,observerProperty:Xa.Width},s):s}}vi.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(Et.SPACING),strong:g.bool,size:g.oneOf(Et.SIZE),type:g.oneOf(Et.TYPE),style:g.object,className:g.string,icon:g.oneOfType([g.node,g.string]),heading:g.string,component:g.string};vi.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:""};vi.contextType=F0;class bl extends k.PureComponent{render(){return w.createElement(vi,Object.assign({component:"span"},this.props))}}bl.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(Et.TYPE),size:g.oneOf(Et.SIZE),style:g.object,className:g.string,code:g.bool,component:g.string,weight:g.number};bl.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 fx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let eg=class extends k.PureComponent{render(){const e=this.props,{heading:n}=e,r=fx(e,["heading"]),s=Et.HEADING.indexOf(n)!==-1?`h${n}`:"h1";return w.createElement(vi,Object.assign({component:s,heading:s},r))}};eg.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(Et.TYPE),heading:g.oneOf(Et.HEADING),style:g.object,className:g.string,component:g.string,weight:g.oneOfType([g.oneOf(Et.WEIGHT),g.number])};eg.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const hx=ll.PREFIX;let tg=class extends k.PureComponent{render(){const{className:e}=this.props,n=X(e,`${hx}-paragraph`);return w.createElement(vi,Object.assign({component:"p"},this.props,{className:n}))}};tg.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(Et.TYPE),size:g.oneOf(Et.SIZE),spacing:g.oneOf(Et.SPACING),style:g.object,className:g.string,component:g.string};tg.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 gx{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"?Wf(this.content).map(e=>Uf(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?Wf(this.content).filter(e=>Uf(e)).map(e=>this.truncatePrecision(e)).join(","):Wf(this.content).map(e=>Uf(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 Wf(o){const e=/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g;return o.match(e)||[]}function Uf(o){return!(isNaN(Number(o))||o.replace(/\s+/g,"")==="")}class ng extends k.PureComponent{formatNodeDFS(e){return Array.isArray(e)||(e=[e]),e=e.map(n=>typeof n=="string"||typeof n=="number"?new gx(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),w.createElement(vi,Object.assign({component:"span"},e))}}ng.propTypes={rule:g.oneOf(Et.RULE),precision:g.number,truncate:g.oneOf(Et.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(Et.TYPE),size:g.oneOf(Et.SIZE),style:g.object,className:g.string,code:g.bool,component:g.string};ng.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=cl;Ye.Text=bl;Ye.Title=eg;Ye.Paragraph=tg;Ye.Numeral=ng;var Hf,XS;function mx(){if(XS)return Hf;XS=1;var o=Fr(),e=Tn(),n="[object Number]";function r(s){return typeof s=="number"||e(s)&&o(s)==n}return Hf=r,Hf}var vx=mx();const Lr=Ze(vx),yx=`${Te}-spin`,bx={PREFIX:yx},Sx={SIZE:["small","middle","large"]};class rg extends xt{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},rg.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 wx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let YS=-1;function z0(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:n,customIconCls:r}=o,s=wx(o,["id","className","customIconCls"]),l=ke(qa,"config.overrideDefaultProps.Spin.indicator");if(l&&w.isValidElement(l))return w.cloneElement(l,{className:X({[r]:r,[n]:n})});let c=e;ml(c)&&(YS++,c=YS);const u=`linearGradient-${c}`;return w.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"}),w.createElement("defs",null,w.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:u},w.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),w.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),w.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),w.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},w.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),w.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 Cx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const oi=bx.PREFIX;class Mr extends gt{constructor(e){super(e),this.foundation=new rg(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?w.createElement("div",{className:`${oi}-wrapper`},e?w.createElement("div",{className:`${oi}-animate`,"x-semi-prop":"indicator"},e):w.createElement(z0,null),n?w.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=Cx(e,["children","style","wrapperClassName","childStyle","size"]),{loading:p}=this.state,h=X(oi,s,{[`${oi}-${c}`]:c,[`${oi}-block`]:n,[`${oi}-hidden`]:!p});return w.createElement("div",Object.assign({className:h,style:r},this.getDataAttr(u)),this.renderSpin(),w.createElement("div",{className:`${oi}-children`,style:l,"x-semi-prop":"children"},n))}}Mr.propTypes={size:g.oneOf(Sx.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=ar(Mr.__SemiComponentName__,{size:"middle",spinning:!0,children:null,indicator:null,delay:0});const _x={PREFIX:`${Te}-input`},Sl={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},dU={};function Px(o){const{value:e,maxLength:n,getValueLength:r}=o;if(Qt(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 ig extends xt{static get inputDefaultAdapter(){return{notifyChange:me,setValue:me}}constructor(e){super(Object.assign(Object.assign({},ig.inputDefaultAdapter),e)),this.compositionEnter=!1,this.getNextValue=n=>{const{maxLength:r,minLength:s,getValueLength:l}=this._adapter.getProps();return Qt(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(Qt(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&&Qt(r)&&at(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&&Qt(r)&&at(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 Px({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={}),D0(n,Sl.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===Yh&&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&&Qt(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e?.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}}var Ex=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Ae=_x.PREFIX,kx=Sl.SIZE,Tx=Sl.STATUS,Ox=Sl.MODE;class og extends gt{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=w.createRef(),this.prefixRef=w.createRef(),this.suffixRef=w.createRef(),this.foundation=new ig(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=X({[`${Ae}-prepend`]:!0,[`${Ae}-prepend-text`]:e&&at(e),[`${Ae}-prepend-icon`]:Mn(e)});return w.createElement("div",{className:n,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const n=X({[`${Ae}-append`]:!0,[`${Ae}-append-text`]:e&&at(e),[`${Ae}-append-icon`]:Mn(e)});return w.createElement("div",{className:n,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=X(`${Ae}-clearbtn`),{clearIcon:n}=this.props;return this.foundation.isAllowClear()?w.createElement("div",{className:e,onMouseDown:this.handleClear},n||w.createElement(A0,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:n,disabled:r}=this.props,s=X(`${Ae}-modebtn`),l=e?w.createElement(KO,null):w.createElement(XO,null),c=n==="password"&&!r,u=e?"Show password":"Hidden password";return c?w.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=X({[`${Ae}-prefix`]:!0,[`${Ae}-inset-label`]:n,[`${Ae}-prefix-text`]:s&&at(s),[`${Ae}-prefix-icon`]:Mn(s)});return w.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=X({[`${Ae}-suffix`]:!0,[`${Ae}-suffix-text`]:n&&at(n),[`${Ae}-suffix-icon`]:Mn(n),[`${Ae}-suffix-hidden`]:e&&!!r});return w.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:h,prefix:v,mode:y,insetLabel:b,insetLabelId:P,validateStatus:E,type:S,readonly:_,size:O,suffix:I,style:N,showClear:M,onEnterPress:F,onClear:L,hideSuffix:A,inputStyle:z,forwardRef:U,maxLength:K,getValueLength:V,preventScroll:ie,borderless:ee,showClearIgnoreDisabled:ve,onlyBorder:le}=e,_e=Ex(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:Ce,isFocus:H,minLength:Z}=this.state,x=this.foundation.isAllowClear(),W=Mn(I),re=this.getInputRef(),ae=`${Ae}-wrapper`,de=X(ae,c,{[`${Ae}-wrapper__with-prefix`]:v||b,[`${Ae}-wrapper__with-suffix`]:I,[`${Ae}-wrapper__with-suffix-hidden`]:x&&!!A,[`${Ae}-wrapper__with-suffix-icon`]:W,[`${Ae}-wrapper__with-append`]:r,[`${Ae}-wrapper__with-prepend`]:n,[`${Ae}-wrapper__with-append-only`]:r&&!n,[`${Ae}-wrapper__with-prepend-only`]:!r&&n,[`${ae}-readonly`]:_,[`${ae}-disabled`]:u,[`${ae}-warning`]:E==="warning",[`${ae}-error`]:E==="error",[`${ae}-focus`]:H,[`${ae}-clearable`]:M,[`${ae}-modebtn`]:y==="password",[`${ae}-hidden`]:S==="hidden",[`${ae}-${O}`]:O,[`${Ae}-borderless`]:ee,[`${Ae}-only_border`]:le!=null}),he=X(Ae,{[`${Ae}-${O}`]:O,[`${Ae}-disabled`]:u,[`${Ae}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${Ae}-sibling-modebtn`]:y==="password"}),ye=Ce??"",be=Object.assign(Object.assign({},_e),{style:z,className:he,disabled:u,readOnly:_,type:this.foundation.handleInputType(S),placeholder:h,onInput:oe=>this.foundation.handleInput(oe),onChange:oe=>this.foundation.handleChange(oe.target.value,oe),onFocus:oe=>this.foundation.handleFocus(oe),onBlur:oe=>this.foundation.handleBlur(oe),onKeyUp:oe=>this.foundation.handleKeyUp(oe),onKeyDown:oe=>this.foundation.handleKeyDown(oe),onKeyPress:oe=>this.foundation.handleKeyPress(oe),onCompositionStart:this.foundation.handleCompositionStart,onCompositionEnd:this.foundation.handleCompositionEnd,onCompositionUpdate:this.foundation.handleCompositionUpdate,value:ye});Qt(V)||(be.maxLength=K),Z&&(be.minLength=Z),E==="error"&&(be["aria-invalid"]="true");let ne=Object.assign({},N);return le!==void 0&&(ne=Object.assign({borderWidth:le},N)),w.createElement("div",{className:de,style:ne,onMouseEnter:oe=>this.handleMouseOver(oe),onMouseLeave:oe=>this.handleMouseLeave(oe),onClick:oe=>this.handleClick(oe)},this.renderPrepend(),this.renderPrefix(),w.createElement("input",Object.assign({},be,{ref:re})),this.renderClearBtn(),this.renderSuffix(x),this.renderModeBtn(),this.renderAppend())}}og.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(Ox),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(kx),className:g.string,style:g.object,validateStatus:g.oneOf(Tx),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};og.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=w.forwardRef((o,e)=>w.createElement(og,Object.assign({},o,{forwardRef:e})));var xx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class B0 extends w.PureComponent{render(){const e=this.props,{triggerRender:n,componentName:r}=e,s=xx(e,["triggerRender","componentName"]);return n(Object.assign({},s))}}B0.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 Dx={PREFIX:`${Te}-highlight`},Ix=o=>o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");class Rx extends xt{constructor(e){super(Object.assign({},e)),this.findAll=n=>{let{autoEscape:r=!0,caseSensitive:s=!1,searchWords:l,sourceString:c}=n;at(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 h=p.text;r&&(h=Ix(h));const v=new RegExp(h,s?"g":"gi");let y;for(;y=v.exec(c);){const b=y.index,P=v.lastIndex;P>b&&u.push({highlight:!0,start:b,end:P,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,h,v,y)=>{p-u>0&&l.push({start:u,end:p,highlight:h,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 Nx=Dx.PREFIX;class sg extends k.PureComponent{constructor(){super(...arguments),this.getHighLightTextHTML=e=>{let{sourceString:n="",searchWords:r=[],option:s={autoEscape:!0,caseSensitive:!1}}=e;const l=new Rx().findAll(Object.assign({sourceString:n,searchWords:r},s)),c=s.highlightTag||"mark",u=s.highlightClassName||"",p=s.highlightStyle||{};return l.map((h,v)=>{const{end:y,start:b,highlight:P,style:E,className:S}=h,_=n.substr(b,y-b);return P?w.createElement(c,{style:Object.assign(Object.assign({},p),E),className:`${u} ${S||""}`.trim(),key:_+v},_):_})}}render(){const{searchWords:e,sourceString:n,component:r,highlightClassName:s,highlightStyle:l,caseSensitive:c,autoEscape:u}=this.props,p=X({[`${Nx}-tag`]:!0},s),h={highlightTag:r,highlightClassName:p,highlightStyle:l,caseSensitive:c,autoEscape:u};return this.getHighLightTextHTML({sourceString:n,searchWords:e,option:h})}}sg.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};sg.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""};const Ax={PREFIX:`${Te}-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 Lx extends xt{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 jx=o=>{let{gradientStart:e,gradientEnd:n}=o;const r=cs();return w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"52",viewBox:"0 0 51 52",fill:"none"},w.createElement("g",{filter:"url(#filter0_d_6_2)"},w.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})`})),w.createElement("defs",null,w.createElement("filter",{id:"filter0_d_6_2",x:"0.789215",y:"0.447304",width:"49.2216",height:"51.3549",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},w.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),w.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"}),w.createElement("feOffset",{dy:"1.65809"}),w.createElement("feGaussianBlur",{stdDeviation:"1.10539"}),w.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"}),w.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6_2"}),w.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6_2",result:"shape"})),w.createElement("linearGradient",{id:r,x1:"17.671",y1:"31.7392",x2:"17.671",y2:"47.9333",gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:e}),w.createElement("stop",{offset:"1",stopColor:n}))))};var Mx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const $x=Ji.SIZE,Fx=Ji.SHAPE,zx=Ji.COLOR,Le=Ax.PREFIX;let Ki=class extends gt{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 h=n;const v=r!==er,y=l&&p,b={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(y){const P=v?`clickable Avatar: ${u}`:u,E=Object.assign(Object.assign({src:l,srcSet:c,onError:this.handleError},s),{className:X({[`${Le}-no-focus-visible`]:v})}),S=v?Object.assign(Object.assign({},E),b):E;h=w.createElement("img",Object.assign({alt:P},S))}else if(typeof n=="string"){const P=u??n,S={role:"img","aria-label":v?`clickable Avatar: ${P}`:P,className:X(`${Le}-label`,{[`${Le}-no-focus-visible`]:v})},_=v?Object.assign(Object.assign({},S),b):S,O={transform:`scale(${this.state.scale})`};h=w.createElement("span",{className:`${Le}-content`,style:O},w.createElement("span",Object.assign({},_,{"x-semi-prop":"children"}),n))}return h},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),w.createElement("span",{style:c,className:X(`${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 w.createElement("div",{className:X([`${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),w.createElement("div",{style:(n=this.props.topSlot.style)!==null&&n!==void 0?n:{},className:X([`${Le}-top_slot-wrapper`,(r=this.props.topSlot.className)!==null&&r!==void 0?r:"",{[`${Le}-animated`]:this.props.contentMotion}])},w.createElement("div",{className:X([`${Le}-top_slot-bg`,`${Le}-top_slot-bg-${this.props.size}`])},w.createElement("div",{className:X([`${Le}-top_slot-bg-svg`,`${Le}-top_slot-bg-svg-${this.props.size}`])},w.createElement(jx,{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)"}))),w.createElement("div",{className:X([`${Le}-top_slot`])},w.createElement("div",{style:c,className:X([`${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=w.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 Lx(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:h,imgAttr:v,src:y,srcSet:b,style:P,alt:E,gap:S,bottomSlot:_,topSlot:O,border:I,contentMotion:N}=n,M=Mx(n,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:F,hoverContent:L,focusVisible:A}=this.state;let z={};Ji.SIZE.includes(l)||(z={width:l,height:l}),z=Object.assign(Object.assign({},z),P);const U=_||O||I,K={onClick:h,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},V=y&&F,ie=X(Le,{[`${Le}-${r}`]:r,[`${Le}-${l}`]:l,[`${Le}-${c}`]:c&&!V,[`${Le}-img`]:V,[`${Le}-focus`]:A,[`${Le}-animated`]:N},u),ee=L?w.createElement("div",{className:`${Le}-hover`,"x-semi-prop":"hoverContent"},L):null;let ve=w.createElement("span",Object.assign({},M,{style:U?{}:z,className:ie},U?{}:K,{role:"listitem",ref:this.avatarRef}),this.getContent(),ee);if(I){const le={};typeof I=="object"&&I?.color&&(le.borderColor=I?.color),ve=w.createElement("div",{style:Object.assign({position:"relative"},z)},ve,w.createElement("span",{style:le,className:X([`${Le}-additionalBorder`,`${Le}-additionalBorder-${l}`,{[`${Le}-${r}`]:r}])}),typeof this.props.border=="object"&&this.props.border.motion&&w.createElement("span",{style:le,className:X([`${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?w.createElement("span",Object.assign({className:X([`${Le}-wrapper`]),style:z},K),ve,O&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&r==="circle"&&this.renderTopSlot(),_&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&this.renderBottomSlot()):ve}};Ki.__SemiComponentName__="Avatar";Ki.defaultProps=ar(Ki.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:er,onMouseEnter:er,onMouseLeave:er});Ki.propTypes={children:g.node,color:g.oneOf(zx),shape:g.oneOf(Fx),size:g.oneOf($x),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 ag={PREFIX:`${Te}-button`},yi={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"},Bx={SIZE:["extra-small","small","default","large","extra-large","custom"]};var qx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Gx=yi.sizes,{htmlTypes:Wx,btnTypes:Ux}=yi;let bs=class extends k.PureComponent{render(){const e=this.props,{children:n,block:r,htmlType:s,loading:l,circle:c,className:u,style:p,disabled:h,size:v,theme:y,type:b,prefixCls:P,iconPosition:E}=e,S=qx(e,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),_=Object.assign(Object.assign({disabled:h},mi(S,["x-semi-children-alias"])),{className:X(P,{[`${P}-${b}`]:!h&&b,[`${P}-disabled`]:h,[`${P}-size-large`]:v==="large",[`${P}-size-small`]:v==="small",[`${P}-light`]:y==="light",[`${P}-block`]:r,[`${P}-circle`]:c,[`${P}-borderless`]:y==="borderless",[`${P}-outline`]:y==="outline",[`${P}-${b}-disabled`]:h&&b},u),type:s,"aria-disabled":h}),O={};return u&&u.includes("-with-icon")||(O["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),w.createElement("button",Object.assign({},_,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:p}),w.createElement("span",Object.assign({className:X(`${P}-content`,this.props.contentClassName),onClick:I=>h&&I.stopPropagation()},O),n))}};bs.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:er,onClick:er,onMouseEnter:er,onMouseLeave:er,prefixCls:ag.PREFIX};bs.propTypes={children:g.node,disabled:g.bool,prefixCls:g.string,style:g.object,size:g.oneOf(Gx),type:g.oneOf(Ux),block:g.bool,onClick:g.func,onMouseDown:g.func,circle:g.bool,loading:g.bool,htmlType:g.oneOf(Wx),theme:g.oneOf(yi.themes),className:g.string,onMouseEnter:g.func,onMouseLeave:g.func,"aria-label":g.string,contentClassName:g.string};var Hx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Vx=Bx.SIZE;class zr extends k.PureComponent{render(){const e=this.props,{children:n,iconPosition:r,iconSize:s,iconStyle:l,style:c,icon:u,noHorizontalPadding:p,theme:h,className:v,prefixCls:y,loading:b}=e,P=Hx(e,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),E=Object.assign({},c);Array.isArray(p)?(p.includes("left")&&(E.paddingLeft=0),p.includes("right")&&(E.paddingRight=0)):p===!0?(E.paddingLeft=0,E.paddingRight=0):typeof p=="string"&&(p==="left"&&(E.paddingLeft=0),p==="right"&&(E.paddingRight=0));let S=null,_=null;b&&!P.disabled?_=w.createElement(z0,{customIconCls:`${y}-content-loading-icon`}):w.isValidElement(u)&&(_=u);const O=X({[`${y}-content-left`]:r==="right",[`${y}-content-right`]:r==="left"}),I=this.props["x-semi-children-alias"]||"children",N=n!=null?w.createElement("span",{className:O,"x-semi-prop":I},n):null;r==="left"?S=w.createElement(w.Fragment,null,_,N):S=w.createElement(w.Fragment,null,N,_);const M=X(v,`${y}-with-icon`,{[`${y}-with-icon-only`]:N==null||N==="",[`${y}-loading`]:b});return w.createElement(bs,Object.assign({},P,{className:M,theme:h,style:E}),S)}}zr.defaultProps={iconPosition:yi.DEFAULT_ICON_POSITION,prefixCls:ag.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(Vx),noHorizontalPadding:g.oneOfType([g.bool,g.string,g.array]),children:g.node,theme:g.string,iconPosition:g.oneOf(yi.iconPositions),className:g.string,onMouseEnter:g.func,onMouseLeave:g.func};const Kx={PREFIX:`${Te}-banner`},Qx={TYPE:["info","success","danger","warning"]};class lg extends xt{constructor(e){super(Object.assign(Object.assign({},lg.defaultAdapter),e))}removeBanner(e){this._adapter.notifyClose(e),this._adapter.setVisible()}}const Vt=Kx.PREFIX,Xx=Qx.TYPE;class Ss extends gt{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 lg(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}renderCloser(){const{closeIcon:e}=this.props;return e===null?e:w.createElement(zr,{className:`${Vt}-close`,onClick:this.remove,icon:e||w.createElement(yl,{"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:w.createElement(Kh,{size:"large","aria-label":"warning"}),success:w.createElement(Xh,{size:"large","aria-label":"success"}),info:w.createElement(Qh,{size:"large","aria-label":"info"}),danger:w.createElement(Vh,{size:"large","aria-label":"danger"})}[e];const l=X({[`${Vt}-icon`]:!0});return typeof n<"u"&&(s=n),s?w.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:h}=this.state,v=X(Vt,r,{[`${Vt}-${n}`]:n,[`${Vt}-full`]:p,[`${Vt}-in-container`]:!p,[`${Vt}-bordered`]:!p&&l});return h?w.createElement("div",Object.assign({className:v,style:s,role:"alert"},this.getDataAttr(this.props)),w.createElement("div",{className:`${Vt}-content-wrapper`},w.createElement("div",{className:`${Vt}-content`},this.renderIcon(),w.createElement("div",{className:`${Vt}-content-body`},c?w.createElement(Ye.Title,{heading:5,className:`${Vt}-title`,component:"div","x-semi-prop":"title"},c):null,u?w.createElement(Ye.Paragraph,{className:`${Vt}-description`,component:"div","x-semi-prop":"description"},u):null)),this.renderCloser()),e?w.createElement("div",{className:`${Vt}-extra`,"x-semi-prop":"children"},e):null):null}}Ss.propTypes={fullMode:g.bool,type:g.oneOf(Xx),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};Ss.defaultProps={onClose:()=>{},type:"info",fullMode:!0};let et=class extends w.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?w.createElement(zr,Object.assign({},e)):w.createElement(bs,Object.assign({},e))}};et.__SemiComponentName__="Button";et.propTypes=Object.assign(Object.assign({},bs.propTypes),zr.propTypes);et.defaultProps=ar(et.__SemiComponentName__);et.elementType="Button";var Yx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Vo=ag.PREFIX,Zx=yi.sizes;class cg extends gt{getInnerWithLine(e){const n=[];return e.length>1?(e.slice(0,-1).forEach((r,s)=>{const l=ke(r,"type.elementType")==="Button",c=ke(r,"props"),{type:u,theme:p,disabled:h}=c??{};if(l&&p!=="outline"){const v=X(`${Vo}-group-line`,`${Vo}-group-line-${p??"light"}`,`${Vo}-group-line-${u??"primary"}`,{[`${Vo}-group-line-disabled`]:h});n.push(r,w.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,h=Yx(e,["children","disabled","size","type","className","style","aria-label"]);let v,y=[];const b=X(`${Vo}-group`,c);return n&&(v=(Array.isArray(n)?n:[n]).map((P,E)=>{var S;return k.isValidElement(P)?k.cloneElement(P,Object.assign(Object.assign(Object.assign({disabled:r,size:s,type:l},P.props),h),{key:(S=P.key)!==null&&S!==void 0?S:E})):P}),y=this.getInnerWithLine(v)),w.createElement("div",{className:b,style:u,role:"group","aria-label":p},y)}}cg.propTypes={children:g.node,disabled:g.bool,type:g.string,size:g.oneOf(Zx),theme:g.oneOf(yi.themes),"aria-label":g.string};cg.defaultProps={size:"default"};const q0={PREFIX:`${Te}-card`},Jx={SHADOWS:["hover","always"]};var eD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Ko=q0.PREFIX;class G0 extends k.PureComponent{render(){const e=this.props,{avatar:n,className:r,description:s,style:l,title:c}=e,u=eD(e,["avatar","className","description","style","title"]),p=X(`${Ko}-meta`,r),h=n&&w.createElement("div",{className:`${Ko}-meta-avatar`},n),v=c&&w.createElement("div",{className:`${Ko}-meta-wrapper-title`},c),y=s&&w.createElement("div",{className:`${Ko}-meta-wrapper-description`},s),b=c||s?w.createElement("div",{className:`${Ko}-meta-wrapper`},v,y):null;return w.createElement("div",Object.assign({},u,{className:p,style:l}),h,b)}}G0.propTypes={avatar:g.node,className:g.string,description:g.node,style:g.object,title:g.node};const ug={PREFIX:`${Te}-skeleton`};var tD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const nD=Ji.SIZE,rD=Ji.SHAPE,wl=o=>e=>n=>w.createElement(e,Object.assign({type:o},n));class eo extends k.PureComponent{render(){const e=this.props,{prefixCls:n,className:r,type:s,size:l,shape:c}=e,u=tD(e,["prefixCls","className","type","size","shape"]),p=X(r,`${n}-${s}`,{[`${n}-${s}-${l}`]:s.toUpperCase()==="AVATAR"},{[`${n}-${s}-${c}`]:s.toUpperCase()==="AVATAR"});return w.createElement("div",Object.assign({className:p},u))}}eo.propTypes={type:g.string,prefixCls:g.string,style:g.object,className:g.string,size:g.oneOf(nD),shape:g.oneOf(rD)};eo.defaultProps={prefixCls:ug.PREFIX,size:"medium",shape:"circle"};const iD=wl("avatar")(eo),oD=wl("image")(eo),sD=wl("title")(eo),aD=wl("button")(eo);class dg extends k.PureComponent{render(){const{prefixCls:e,className:n,style:r,rows:s}=this.props,l=X(n,`${e}-paragraph`);return w.createElement("ul",{className:l,style:r},[...Array(s)].map((c,u)=>w.createElement("li",{key:u})))}}dg.propTypes={rows:g.number,prefixCls:g.string,style:g.object,className:g.string};dg.defaultProps={prefixCls:ug.PREFIX,rows:4};var lD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const ZS=ug.PREFIX;class $n extends k.PureComponent{render(){const e=this.props,{placeholder:n,active:r,children:s,className:l,loading:c,style:u}=e,p=lD(e,["placeholder","active","children","className","loading","style"]),h=X(ZS,{[`${ZS}-active`]:!!r},l);let v;return c?v=w.createElement("div",Object.assign({className:h,style:u},p,{"x-semi-prop":"placeholder"}),n):v=s,v}}$n.Avatar=iD;$n.Title=sD;$n.Button=aD;$n.Paragraph=dg;$n.Image=oD;$n.defaultProps={loading:!0};$n.propTypes={active:g.bool,placeholder:g.node,style:g.object,className:g.string,loading:g.bool,children:g.node};const cD={PREFIX:`${Te}-space`},li={ALIGN_SET:["start","end","center","baseline"],SPACING_LOOSE:"loose",SPACING_MEDIUM:"medium",SPACING_TIGHT:"tight"},uD="Symbol(react.fragment)",Ph=o=>{let e=[];return w.Children.forEach(o,n=>{n!=null&&(Array.isArray(n)?e=e.concat(Ph(n)):k.isValidElement(n)&&n.type&&n.type.toString()===uD&&n.props?e=e.concat(Ph(n.props.children)):e.push(n))}),e},Cn=cD.PREFIX;class ws extends k.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,h=Object.assign({},n);let v="",y="";at(s)?(v=s,y=s):Lr(s)?(h.rowGap=s,h.columnGap=s):KE(s)&&(at(s[0])?v=s[0]:Lr(s[0])&&(h.columnGap=`${s[0]}px`),at(s[1])?y=s[1]:Lr(s[1])&&(h.rowGap=`${s[1]}px`));const b=X(Cn,r,{[`${Cn}-align-${c}`]:c,[`${Cn}-vertical`]:u,[`${Cn}-horizontal`]:!u,[`${Cn}-wrap`]:p,[`${Cn}-tight-horizontal`]:v===li.SPACING_TIGHT,[`${Cn}-tight-vertical`]:y===li.SPACING_TIGHT,[`${Cn}-medium-horizontal`]:v===li.SPACING_MEDIUM,[`${Cn}-medium-vertical`]:y===li.SPACING_MEDIUM,[`${Cn}-loose-horizontal`]:v===li.SPACING_LOOSE,[`${Cn}-loose-vertical`]:y===li.SPACING_LOOSE}),P=Ph(e),E=Nh(this.props);return w.createElement("div",Object.assign({},E,{className:b,style:h,"x-semi-prop":"children"}),P)}}ws.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};ws.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};var dD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Ct=q0.PREFIX;class Cl extends k.PureComponent{constructor(){super(...arguments),this.renderHeader=()=>{const{title:e,headerExtraContent:n,header:r,headerLine:s,headerStyle:l}=this.props,c=X(`${Ct}-header`,{[`${Ct}-header-bordered`]:!!s}),u=X(`${Ct}-header-wrapper`),p=X(`${Ct}-header-wrapper-title`,{[`${Ct}-header-wrapper-spacing`]:!!n});return r||n||e?w.createElement("div",{style:l,className:c},r||w.createElement("div",{className:u},n&&w.createElement("div",{className:`${Ct}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},n),e&&w.createElement("div",{className:p},at(e)?w.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=X(`${Ct}-cover`);return e&&w.createElement("div",{className:n,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:n,actions:r,loading:s}=this.props,l=X(`${Ct}-body`),c=X(`${Ct}-body-actions`),u=X(`${Ct}-body-actions-item`),p=w.createElement("div",null,w.createElement($n.Title,null),w.createElement("br",null),w.createElement($n.Paragraph,{rows:3}));return w.createElement("div",{style:e,className:l},n&&w.createElement($n,{placeholder:p,loading:s,active:!0},n),Array.isArray(r)&&w.createElement("div",{className:c},w.createElement(ws,{spacing:12},r.map((h,v)=>w.createElement("div",{key:v,className:u,"x-semi-prop":`actions.${v}`},h)))))},this.renderFooter=()=>{const{footer:e,footerLine:n,footerStyle:r}=this.props,s=X(`${Ct}-footer`,{[`${Ct}-footer-bordered`]:n});return e&&w.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=dD(e,["bordered","shadows","style","className"]),u=mi(c,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),p=X(Ct,l,{[`${Ct}-bordered`]:n,[`${Ct}-shadows`]:r,[`${Ct}-shadows-${r}`]:r});return w.createElement("div",Object.assign({},u,{"aria-busy":this.props.loading,className:p,style:s}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Cl.Meta=G0;Cl.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(Jx.SHADOWS),style:g.object,title:g.node,"aria-label":g.string};Cl.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};var Vf,JS;function pD(){if(JS)return Vf;JS=1;function o(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 Vf=o,Vf}var Kf,ew;function fD(){if(ew)return Kf;ew=1;function o(e){return e!==e}return Kf=o,Kf}var Qf,tw;function hD(){if(tw)return Qf;tw=1;function o(e,n,r){for(var s=r-1,l=e.length;++s<l;)if(e[s]===n)return s;return-1}return Qf=o,Qf}var Xf,nw;function gD(){if(nw)return Xf;nw=1;var o=pD(),e=fD(),n=hD();function r(s,l,c){return l===l?n(s,l,c):o(s,e,c)}return Xf=r,Xf}var Yf,rw;function mD(){if(rw)return Yf;rw=1;var o=gD();function e(n,r){var s=n==null?0:n.length;return!!s&&o(n,r,0)>-1}return Yf=e,Yf}var Zf,iw;function vD(){if(iw)return Zf;iw=1;function o(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 Zf=o,Zf}var Jf,ow;function yD(){if(ow)return Jf;ow=1;var o=k0(),e=mD(),n=vD(),r=Ih(),s=pl(),l=T0(),c=200;function u(p,h,v,y){var b=-1,P=e,E=!0,S=p.length,_=[],O=h.length;if(!S)return _;v&&(h=r(h,s(v))),y?(P=n,E=!1):h.length>=c&&(P=l,E=!1,h=new o(h));e:for(;++b<S;){var I=p[b],N=v==null?I:v(I);if(I=y||I!==0?I:0,E&&N===N){for(var M=O;M--;)if(h[M]===N)continue e;_.push(I)}else P(h,N,y)||_.push(I)}return _}return Jf=u,Jf}function Eh(){return Eh=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o},Eh.apply(null,arguments)}function bD(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,Ch(o,e)}var sw=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function SD(o,e){return!!(o===e||sw(o)&&sw(e))}function wD(o,e){if(o.length!==e.length)return!1;for(var n=0;n<o.length;n++)if(!SD(o[n],e[n]))return!1;return!0}function eh(o,e){e===void 0&&(e=wD);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=o.apply(this,u),l=!0,n=this,r=u),s}return c}var CD=typeof performance=="object"&&typeof performance.now=="function",aw=CD?function(){return performance.now()}:function(){return Date.now()};function lw(o){cancelAnimationFrame(o.id)}function _D(o,e){var n=aw();function r(){aw()-n>=e?o.call(null):s.id=requestAnimationFrame(r)}var s={id:requestAnimationFrame(r)};return s}var th=-1;function cw(o){if(o===void 0&&(o=!1),th===-1||o){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),th=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return th}var qi=null;function uw(o){if(o===void 0&&(o=!1),qi===null||o){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 PD=150,ED=function(e,n){return e};function kD(o){var e,n=o.getItemOffset,r=o.getEstimatedTotalSize,s=o.getItemSize,l=o.getOffsetForIndexAndAlignment,c=o.getStartIndexForOffset,u=o.getStopIndexForStartIndex,p=o.initInstanceProps,h=o.shouldResetStyleCacheOnItemSizeChange,v=o.validateProps;return e=(function(y){bD(b,y);function b(E){var S;return S=y.call(this,E)||this,S._instanceProps=p(S.props,KS(S)),S._outerRef=void 0,S._resetIsScrollingTimeoutId=null,S.state={instance:KS(S),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof S.props.initialScrollOffset=="number"?S.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},S._callOnItemsRendered=void 0,S._callOnItemsRendered=eh(function(_,O,I,N){return S.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:O,visibleStartIndex:I,visibleStopIndex:N})}),S._callOnScroll=void 0,S._callOnScroll=eh(function(_,O,I){return S.props.onScroll({scrollDirection:_,scrollOffset:O,scrollUpdateWasRequested:I})}),S._getItemStyle=void 0,S._getItemStyle=function(_){var O=S.props,I=O.direction,N=O.itemSize,M=O.layout,F=S._getItemStyleCache(h&&N,h&&M,h&&I),L;if(F.hasOwnProperty(_))L=F[_];else{var A=n(S.props,_,S._instanceProps),z=s(S.props,_,S._instanceProps),U=I==="horizontal"||M==="horizontal",K=I==="rtl",V=U?A:0;F[_]=L={position:"absolute",left:K?void 0:V,right:K?V:void 0,top:U?0:A,height:U?"100%":z,width:U?z:"100%"}}return L},S._getItemStyleCache=void 0,S._getItemStyleCache=eh(function(_,O,I){return{}}),S._onScrollHorizontal=function(_){var O=_.currentTarget,I=O.clientWidth,N=O.scrollLeft,M=O.scrollWidth;S.setState(function(F){if(F.scrollOffset===N)return null;var L=S.props.direction,A=N;if(L==="rtl")switch(uw()){case"negative":A=-N;break;case"positive-descending":A=M-I-N;break}return A=Math.max(0,Math.min(A,M-I)),{isScrolling:!0,scrollDirection:F.scrollOffset<A?"forward":"backward",scrollOffset:A,scrollUpdateWasRequested:!1}},S._resetIsScrollingDebounced)},S._onScrollVertical=function(_){var O=_.currentTarget,I=O.clientHeight,N=O.scrollHeight,M=O.scrollTop;S.setState(function(F){if(F.scrollOffset===M)return null;var L=Math.max(0,Math.min(M,N-I));return{isScrolling:!0,scrollDirection:F.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},S._resetIsScrollingDebounced)},S._outerRefSetter=function(_){var O=S.props.outerRef;S._outerRef=_,typeof O=="function"?O(_):O!=null&&typeof O=="object"&&O.hasOwnProperty("current")&&(O.current=_)},S._resetIsScrollingDebounced=function(){S._resetIsScrollingTimeoutId!==null&&lw(S._resetIsScrollingTimeoutId),S._resetIsScrollingTimeoutId=_D(S._resetIsScrolling,PD)},S._resetIsScrolling=function(){S._resetIsScrollingTimeoutId=null,S.setState({isScrolling:!1},function(){S._getItemStyleCache(-1,null)})},S}b.getDerivedStateFromProps=function(S,_){return TD(S,_),v(S),null};var P=b.prototype;return P.scrollTo=function(S){S=Math.max(0,S),this.setState(function(_){return _.scrollOffset===S?null:{scrollDirection:_.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},P.scrollToItem=function(S,_){_===void 0&&(_="auto");var O=this.props,I=O.itemCount,N=O.layout,M=this.state.scrollOffset;S=Math.max(0,Math.min(S,I-1));var F=0;if(this._outerRef){var L=this._outerRef;N==="vertical"?F=L.scrollWidth>L.clientWidth?cw():0:F=L.scrollHeight>L.clientHeight?cw():0}this.scrollTo(l(this.props,S,_,M,this._instanceProps,F))},P.componentDidMount=function(){var S=this.props,_=S.direction,O=S.initialScrollOffset,I=S.layout;if(typeof O=="number"&&this._outerRef!=null){var N=this._outerRef;_==="horizontal"||I==="horizontal"?N.scrollLeft=O:N.scrollTop=O}this._callPropsCallbacks()},P.componentDidUpdate=function(){var S=this.props,_=S.direction,O=S.layout,I=this.state,N=I.scrollOffset,M=I.scrollUpdateWasRequested;if(M&&this._outerRef!=null){var F=this._outerRef;if(_==="horizontal"||O==="horizontal")if(_==="rtl")switch(uw()){case"negative":F.scrollLeft=-N;break;case"positive-ascending":F.scrollLeft=N;break;default:var L=F.clientWidth,A=F.scrollWidth;F.scrollLeft=A-L-N;break}else F.scrollLeft=N;else F.scrollTop=N}this._callPropsCallbacks()},P.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&lw(this._resetIsScrollingTimeoutId)},P.render=function(){var S=this.props,_=S.children,O=S.className,I=S.direction,N=S.height,M=S.innerRef,F=S.innerElementType,L=S.innerTagName,A=S.itemCount,z=S.itemData,U=S.itemKey,K=U===void 0?ED:U,V=S.layout,ie=S.outerElementType,ee=S.outerTagName,ve=S.style,le=S.useIsScrolling,_e=S.width,Ce=this.state.isScrolling,H=I==="horizontal"||V==="horizontal",Z=H?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),W=x[0],re=x[1],ae=[];if(A>0)for(var de=W;de<=re;de++)ae.push(k.createElement(_,{data:z,key:K(de,z),index:de,isScrolling:le?Ce:void 0,style:this._getItemStyle(de)}));var he=r(this.props,this._instanceProps);return k.createElement(ie||ee||"div",{className:O,onScroll:Z,ref:this._outerRefSetter,style:Eh({position:"relative",height:N,width:_e,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:I},ve)},k.createElement(F||L||"div",{children:ae,ref:M,style:{height:H?"100%":he,pointerEvents:Ce?"none":void 0,width:H?he:"100%"}}))},P._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var S=this.props.itemCount;if(S>0){var _=this._getRangeToRender(),O=_[0],I=_[1],N=_[2],M=_[3];this._callOnItemsRendered(O,I,N,M)}}if(typeof this.props.onScroll=="function"){var F=this.state,L=F.scrollDirection,A=F.scrollOffset,z=F.scrollUpdateWasRequested;this._callOnScroll(L,A,z)}},P._getRangeToRender=function(){var S=this.props,_=S.itemCount,O=S.overscanCount,I=this.state,N=I.isScrolling,M=I.scrollDirection,F=I.scrollOffset;if(_===0)return[0,0,0,0];var L=c(this.props,F,this._instanceProps),A=u(this.props,L,F,this._instanceProps),z=!N||M==="backward"?Math.max(1,O):1,U=!N||M==="forward"?Math.max(1,O):1;return[Math.max(0,L-z),Math.max(0,Math.min(_-1,A+U)),L,A]},b})(k.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var TD=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},OD=kD({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,h=e.itemCount,v=e.itemSize,y=e.layout,b=e.width,P=u==="horizontal"||y==="horizontal",E=P?b:p,S=Math.max(0,h*v-E),_=Math.min(S,n*v),O=Math.max(0,n*v-E+v+c);switch(r==="smart"&&(s>=O-E&&s<=_+E?r="auto":r="center"),r){case"start":return _;case"end":return O;case"center":{var I=Math.round(O+(_-O)/2);return I<Math.ceil(E/2)?0:I>S+Math.floor(E/2)?S:I}default:return s>=O&&s<=_?s:s<O?O:_}},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,h=e.width,v=s==="horizontal"||p==="horizontal",y=n*u,b=v?h:l,P=Math.ceil((b+r-y)/u);return Math.max(0,Math.min(c-1,n+P-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const W0={PREFIX:`${Te}-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 xD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const _t=W0.PREFIX,U0=to.TAG_COLOR,H0=to.TAG_SIZE,V0=to.TAG_TYPE,DD=to.AVATAR_SHAPE;class ht extends k.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 w.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:h,className:v,type:y,shape:b,avatarSrc:P,avatarShape:E,tabIndex:S,prefixIcon:_,suffixIcon:O}=e,I=xD(e,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:N}=this.state,M=h!==ht.defaultProps.onClick||c,F={role:"button",tabIndex:S||0,onKeyDown:this.handleKeyDown},L=Object.assign(Object.assign({},I),{onClick:h,tabIndex:S,className:X(_t,{[`${_t}-default`]:s==="default",[`${_t}-small`]:s==="small",[`${_t}-large`]:s==="large",[`${_t}-square`]:b==="square",[`${_t}-circle`]:b==="circle",[`${_t}-${y}`]:y,[`${_t}-${l}-${y}`]:l&&y,[`${_t}-closable`]:c,[`${_t}-invisible`]:!N,[`${_t}-avatar-${E}`]:P},v)}),A=M?Object.assign(Object.assign({},L),F):L,z=c?w.createElement("div",{className:`${_t}-close`,onClick:V=>this.close(V,r,n)},w.createElement(yl,{size:"small"})):null,U=at(r),K=X(`${_t}-content`,`${_t}-content-${U?"ellipsis":"center"}`);return w.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||U?`${c?"Closable ":""}Tag: ${r}`:""},A),_?w.createElement("div",{className:`${_t}-prefix-icon`},_):null,P?this.renderAvatar():null,w.createElement("div",{className:K},r),O?w.createElement("div",{className:`${_t}-suffix-icon`},O):null,z)}}ht.defaultProps={size:H0[0],color:U0[0],closable:!1,type:V0[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ht.propTypes={children:g.node,tagKey:g.oneOfType([g.string,g.number]),size:g.oneOf(H0),color:g.oneOf(U0),type:g.oneOf(V0),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(DD),"aria-label":g.string};var ID=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};qn.Consumer;class pg extends w.Component{constructor(e){super(e)}renderChildren(){const{direction:e,children:n}=this.props;return e==="rtl"?w.createElement("div",{className:`${Te}-rtl`},n):n}render(){const e=this.props,{children:n,direction:r}=e,s=ID(e,["children","direction"]);return w.createElement(qn.Provider,{value:Object.assign({direction:r},s)},this.renderChildren())}}pg.propTypes={locale:g.object,timeZone:g.oneOfType([g.string,g.number]),getPopupContainer:g.func,direction:g.oneOf(["ltr","rtl"])};pg.defaultProps={locale:_h,direction:"ltr"};var RD=Function.prototype.toString,nh=Object.create,ND=Object.prototype.toString,AD=(function(){function o(){this._keys=[],this._values=[]}return o.prototype.has=function(e){return!!~this._keys.indexOf(e)},o.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},o.prototype.set=function(e,n){this._keys.push(e),this._values.push(n)},o})();function LD(){return new AD}function jD(){return new WeakMap}var MD=typeof WeakMap<"u"?jD:LD;function fg(o){if(!o)return nh(null);var e=o.constructor;if(e===Object)return o===Object.prototype?{}:nh(o);if(e&&~RD.call(e).indexOf("[native code]"))try{return new e}catch{}return nh(o)}function $D(o){var e="";return o.global&&(e+="g"),o.ignoreCase&&(e+="i"),o.multiline&&(e+="m"),o.unicode&&(e+="u"),o.sticky&&(e+="y"),e}function FD(o){return o.flags}var zD=/test/g.flags==="g"?FD:$D;function K0(o){var e=ND.call(o);return e.substring(8,e.length-1)}function BD(o){return o[Symbol.toStringTag]||K0(o)}var qD=typeof Symbol<"u"?BD:K0,GD=Object.defineProperty,WD=Object.getOwnPropertyDescriptor,Q0=Object.getOwnPropertyNames,hg=Object.getOwnPropertySymbols,X0=Object.prototype,Y0=X0.hasOwnProperty,UD=X0.propertyIsEnumerable,Z0=typeof hg=="function";function HD(o){return Q0(o).concat(hg(o))}var VD=Z0?HD:Q0;function _l(o,e,n){for(var r=VD(o),s=0,l=r.length,c=void 0,u=void 0;s<l;++s)if(c=r[s],!(c==="callee"||c==="caller")){if(u=WD(o,c),!u){e[c]=n.copier(o[c],n);continue}!u.get&&!u.set&&(u.value=n.copier(u.value,n));try{GD(e,c,u)}catch{e[c]=u.value}}return e}function KD(o,e){var n=new e.Constructor;e.cache.set(o,n);for(var r=0,s=o.length;r<s;++r)n[r]=e.copier(o[r],e);return n}function QD(o,e){var n=new e.Constructor;return e.cache.set(o,n),_l(o,n,e)}function J0(o,e){return o.slice(0)}function XD(o,e){return o.slice(0,o.size,o.type)}function YD(o,e){return new e.Constructor(J0(o.buffer))}function ZD(o,e){return new e.Constructor(o.getTime())}function eC(o,e){var n=new e.Constructor;return e.cache.set(o,n),o.forEach(function(r,s){n.set(s,e.copier(r,e))}),n}function JD(o,e){return _l(o,eC(o,e),e)}function e2(o,e){var n=fg(e.prototype);e.cache.set(o,n);for(var r in o)Y0.call(o,r)&&(n[r]=e.copier(o[r],e));return n}function t2(o,e){var n=fg(e.prototype);e.cache.set(o,n);for(var r in o)Y0.call(o,r)&&(n[r]=e.copier(o[r],e));for(var s=hg(o),l=0,c=s.length,u=void 0;l<c;++l)u=s[l],UD.call(o,u)&&(n[u]=e.copier(o[u],e));return n}var n2=Z0?t2:e2;function r2(o,e){var n=fg(e.prototype);return e.cache.set(o,n),_l(o,n,e)}function rh(o,e){return new e.Constructor(o.valueOf())}function i2(o,e){var n=new e.Constructor(o.source,zD(o));return n.lastIndex=o.lastIndex,n}function Wa(o,e){return o}function tC(o,e){var n=new e.Constructor;return e.cache.set(o,n),o.forEach(function(r){n.add(e.copier(r,e))}),n}function o2(o,e){return _l(o,tC(o,e),e)}var s2=Array.isArray,gg=Object.assign,a2=Object.getPrototypeOf||(function(o){return o.__proto__}),nC={array:KD,arrayBuffer:J0,blob:XD,dataView:YD,date:ZD,error:Wa,map:eC,object:n2,regExp:i2,set:tC},l2=gg({},nC,{array:QD,map:JD,object:r2,set:o2});function c2(o){return{Arguments:o.object,Array:o.array,ArrayBuffer:o.arrayBuffer,Blob:o.blob,Boolean:rh,DataView:o.dataView,Date:o.date,Error:o.error,Float32Array:o.arrayBuffer,Float64Array:o.arrayBuffer,Int8Array:o.arrayBuffer,Int16Array:o.arrayBuffer,Int32Array:o.arrayBuffer,Map:o.map,Number:rh,Object:o.object,Promise:Wa,RegExp:o.regExp,Set:o.set,String:rh,WeakMap:Wa,WeakSet:Wa,Uint8Array:o.arrayBuffer,Uint8ClampedArray:o.arrayBuffer,Uint16Array:o.arrayBuffer,Uint32Array:o.arrayBuffer,Uint64Array:o.arrayBuffer}}function rC(o){var e=gg({},nC,o),n=c2(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=a2(c),u.Constructor=u.prototype&&u.prototype.constructor,!u.Constructor||u.Constructor===Object)return s(c,u);if(s2(c))return r(c,u);var p=n[qD(c)];return p?p(c,u):typeof c.then=="function"?c:s(c,u)}return function(u){return l(u,{Constructor:void 0,cache:MD(),copier:l,prototype:void 0})}}function u2(o){return rC(gg({},l2,o))}u2({});var Ya=rC({});const d2={PREFIX:`${Te}`};var p2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const si=d2.PREFIX,f2=o=>{const{layout:e="horizontal",dashed:n,align:r="center",className:s,margin:l,style:c,children:u}=o,p=p2(o,["layout","dashed","align","className","margin","style","children"]),h=X(`${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})),w.createElement("div",Object.assign({},p,{className:h,style:Object.assign(Object.assign({},v),c)}),u&&e==="horizontal"?typeof u=="string"?w.createElement("span",{className:`${si}-divider_inner-text`,"x-semi-prop":"children"},u):u:null)},je={DIALOG:`${Te}-modal`},dw={SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function h2(o){return o!==null&&typeof o=="object"}function pw(o){return h2(o)&&typeof o.then=="function"}class g2 extends xt{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);pw(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);pw(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 mg extends xt{constructor(e){super(Object.assign(Object.assign({},mg.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 ih,fw;function m2(){if(fw)return ih;fw=1;var o=yD(),e=v0(),n=d0(),r=e(function(s,l){return n(s)?o(s,l):[]});return ih=r,ih}var v2=m2();const y2=Ze(v2);class Ar{constructor(e,n){var r;this.addFocusRedirectListener=s=>(this.focusRedirectListenerList.push(s),()=>this.removeFocusRedirectListener(s)),this.removeFocusRedirectListener=s=>{this.focusRedirectListenerList=y2(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=Ar.getFocusableElements(this.container);l.length&&(s.shiftKey?this.handleContainerShiftTabKeyDown(l,s):this.handleContainerTabKeyDown(l,s))}},this.handleContainerTabKeyDown=(s,l)=>{const c=Ar.getActiveElement(),u=s[s.length-1]===c,p=s[0];u&&this.shouldFocusRedirect(p)&&this.focusElement(p,l)},this.handleContainerShiftTabKeyDown=(s,l)=>{const c=Ar.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 oh=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let b2=0;class Pl extends gt{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=oh(this.props,[]),{mask:r,maskClassName:s}=n;if(r){const l=X(`${je.DIALOG}-mask`,{});return w.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:X(l,s),style:n.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:n,closeIcon:r}=this.props;let s;if(n){const l=r||w.createElement(yl,{"x-semi-prop":"closeIcon"});s=w.createElement(zr,{"aria-label":"close",className:`${je.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?w.createElement("span",{className:`${je.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:w.createElement("div",{className:`${je.DIALOG}-header`},s,w.createElement(Ye.Title,{heading:5,className:`${je.DIALOG}-title`,id:`${je.DIALOG}-title`,"x-semi-prop":"title"},n),r)},this.renderBody=()=>{const{bodyStyle:n,children:r,title:s}=this.props,l=X(`${je.DIALOG}-body`,{[`${je.DIALOG}-withIcon`]:this.props.icon}),c=this.renderCloseBtn(),u=this.renderIcon();return s!=null||"header"in this.props?w.createElement("div",{className:l,id:`${je.DIALOG}-body`,style:n,"x-semi-prop":"children"},r):w.createElement("div",{className:`${je.DIALOG}-body-wrapper`},u,w.createElement("div",{className:l,style:n,"x-semi-prop":"children"},r),c)},this.getDialogElement=()=>{const n=oh(this.props,[]),r={},s=X(`${je.DIALOG}`,{[`${je.DIALOG}-centered`]:n.centered,[`${je.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?w.createElement("div",{className:`${je.DIALOG}-footer`,"x-semi-prop":"footer"},n.footer):null,p=w.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${je.DIALOG}-title`,"aria-describedby":`${je.DIALOG}-body`,onAnimationEnd:n.onAnimationEnd,className:X([`${je.DIALOG}-content`,n.contentClassName,{[`${je.DIALOG}-content-fullScreen`]:n.isFullScreen,[`${je.DIALOG}-content-height-set`]:n.height||ke(n.style,"height")}])},c,l,u);return w.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:Ar.getActiveElement()},this.foundation=new mg(this.adapter),this.dialogId=`dialog-${b2++}`,this.modalDialogRef=w.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=Ar.getActiveElement();l=this.modalDialogRef.current.contains(c),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Ar(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=ke(e,"focus");Qt(r)&&e.focus({preventScroll:n})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const n=Ar.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=oh(n,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:h}=this.context,v=X(s,{[`${je.DIALOG}-popup`]:l&&l()!==((e=globalThis?.document)===null||e===void 0?void 0:e.body)&&!c,[`${je.DIALOG}-fixed`]:c,[`${je.DIALOG}-rtl`]:h==="rtl"}),y=u(),b=this.getDataAttr(p),P=w.createElement("div",Object.assign({className:v},b),this.getMaskElement(),w.createElement("div",Object.assign({role:"none",className:X({[`${je.DIALOG}-wrap`]:!0,[`${je.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?w.createElement(y.Provider,{value:y.value},P):P}}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 S2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const iC=o=>{const[e,n]=k.useState(!0),[r,s]=k.useState(),[l,c]=k.useState(),{direction:u}=o,{title:p,content:h,icon:v,type:y,onCancel:b,onOk:P,className:E}=o,S=S2(o,["title","content","icon","type","onCancel","onOk","className"]),_=k.useCallback(z=>{const U=P&&P(z);U&&U.then?(s(!0),U.then(function(){n(!1),s(!1)},K=>{s(!1)})):n(!1)},[P]),O=k.useCallback(z=>{const U=b&&b(z);U&&U.then?(c(!0),U.then(function(){n(!1),c(!1)},K=>{c(!1)})):n(!1)},[b]),I=`${je.DIALOG}-confirm`,N=X(E,I,{[`${I}-rtl`]:u==="rtl"}),M=X(`${je.DIALOG}-${y}`),F=Mn(v)?w.cloneElement(v,{className:`${I}-icon ${M}-icon`,size:"extra-large"}):v,L=p==null?null:w.createElement("span",{className:`${I}-title-text`},p),A=X(`${I}-content`,{[`${I}-content-withIcon`]:o.icon});return w.createElement(Xt,Object.assign({className:N,title:L,confirmLoading:r,cancelLoading:l,onOk:_,onCancel:O,icon:F,visible:e},S),w.createElement("div",{className:A,"x-semi-prop":"content"},h))};function Cs(o){const e=document.createElement("div");document.body.appendChild(e);let n=Object.assign({},o);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(w.createElement(iC,Object.assign({},u,{afterClose:function(){p?.(...arguments),r()},motion:o.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 oC(o){return Object.assign({type:"info",icon:w.createElement(Qh,null)},o)}function sC(o){return Object.assign({type:"success",icon:w.createElement(Xh,null)},o)}function aC(o){return Object.assign({type:"warning",icon:w.createElement(Kh,null)},o)}function lC(o){return Object.assign({type:"error",icon:w.createElement(Vh,null),okButtonProps:Object.assign({type:"danger"},o.okButtonProps)},mi(o,["okButtonProps"]))}function cC(o){return Object.assign({type:"confirm",icon:w.createElement(ZO,null)},o)}var w2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const C2=(o,e)=>{var{afterClose:n,config:r}=o;w2(o,["afterClose","config"]);const[s,l]=w.useState(r);w.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 w.createElement(iC,Object.assign({},s,{afterClose:c}))},_2=w.forwardRef(C2);let hw=0;function P2(){const[o,e]=w.useState([]);function n(r){return e(s=>[...s,r]),()=>{e(s=>s.filter(l=>l!==r))}}return[o,n]}function E2(){const[o,e]=P2();function n(r){return function(l){hw+=1;const c=w.createRef();let u;const p=w.createElement(_2,{key:`semi-modal-${hw}`,config:r(l),ref:c,afterClose:()=>{u()}});return u=e(p),{destroy:()=>{c.current&&c.current.destroy()},update:h=>{c.current&&c.current.update(h)}}}}return[{info:n(oC),success:n(sC),error:n(lC),warning:n(aC),confirm:n(cC)},w.createElement(w.Fragment,null,o)]}var k2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let ui=[];class Xt extends gt{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,h=v=>{var y;return u?w.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 w.createElement(jr,{componentName:"Modal"},(v,y)=>w.createElement("div",{className:X({[`${je.DIALOG}-footerfill`]:p})},h(v),w.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:h,zIndex:v,getPopupContainer:y,visible:b,modalContentClass:P}=r,E=k2(r,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible","modalContentClass"]),S=h;const _=u,O="footer"in this.props?s:this.renderFooter();let I={zIndex:v};y&&y()!==((n=globalThis?.document)===null||n===void 0?void 0:n.body)&&(I={zIndex:v,position:"static"});const N=X(l,{[`${je.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),w.createElement(us,{motion:this.props.motion,animationState:b?"enter":"leave",startClassName:b?`${je.DIALOG}-content-animate-show`:`${je.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},F=>{let{animationClassName:L,animationEventsNeedBind:A}=F;return w.createElement(us,{motion:this.props.motion,animationState:b?"enter":"leave",startClassName:b?`${je.DIALOG}-mask-animate-show`:`${je.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},z=>{let{animationClassName:U,animationEventsNeedBind:K}=z;return M?w.createElement(ys,{style:I,getPopupContainer:y}," ",w.createElement(Pl,Object.assign({},E,{contentExtraProps:A,maskExtraProps:K,isFullScreen:this.state.isFullScreen,contentClassName:`${L} ${P}`,maskClassName:U,className:N,getPopupContainer:y,maskStyle:_,style:S,ref:this.modalRef,footer:O,onClose:this.handleCancel}))):w.createElement(w.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g2(this.adapter),this.modalRef=w.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=$T(),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()}}Xt.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(dw.SIZE),keepDOM:g.bool,lazyRender:g.bool,direction:g.oneOf(dw.directions),fullScreen:g.bool,footerFill:g.bool};Xt.__SemiComponentName__="Modal";Xt.defaultProps=ar(Xt.__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});Xt.useModal=E2;Xt.info=function(o){return Cs(oC(o))};Xt.success=function(o){return Cs(sC(o))};Xt.error=function(o){return Cs(lC(o))};Xt.warning=function(o){return Cs(aC(o))};Xt.confirm=function(o){return Cs(cC(o))};Xt.destroyAll=function(){for(let e=0,n=ui.length;e<n;e++){const r=ui[e];r&&r()}ui=[]};class T2 extends xt{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:`${Te}-notification-wrapper`,LIST:`${Te}-notification-list`,NOTICE:`${Te}-notification-notice`},uC={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},O2={duration:3};class vg extends xt{constructor(e){super(Object.assign(Object.assign({},vg.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 x2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Kt=ls.NOTICE,{duration:D2}=O2,{types:dC,themes:I2,directions:R2}=uC;class hi extends gt{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 vg(this.adapter)}componentWillUnmount(){this.foundation.destroy()}renderTypeIcon(){const{type:e,icon:n}=this.props;let s={warning:w.createElement(Kh,{size:"large"}),success:w.createElement(Xh,{size:"large"}),info:w.createElement(Qh,{size:"large"}),error:w.createElement(Vh,{size:"large"})}[e];const l=X({[`${Kt}-icon`]:!0,[`${Kt}-${e}`]:!0});return n&&(s=n),s?w.createElement("div",{className:l,"x-semi-prop":"icon"},Mn(s)?w.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:h,onCloseClick:v,className:y,showClose:b,style:P}=r;x2(r,["content","title","theme","position","type","id","onCloseClick","className","showClose","style"]);const{visible:E}=this.state,S=X(Kt,y,{[`${Kt}-close`]:!E,[`${Kt}-icon-show`]:dC.includes(p),[`${Kt}-${p}`]:!0,[`${Kt}-${c}`]:c==="light",[`${Kt}-rtl`]:e==="rtl"}),_=cs({});return w.createElement("div",{className:S,style:P,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:this.notifyClick,"aria-labelledby":_,role:"alert",onAnimationEnd:this.props.onAnimationEnd,onAnimationStart:this.props.onAnimationStart},w.createElement("div",null,this.renderTypeIcon()),w.createElement("div",{className:`${Kt}-inner`},w.createElement("div",{className:`${Kt}-content-wrapper`},l?w.createElement("div",{id:_,className:`${Kt}-title`,"x-semi-prop":"title"},l):"",s?w.createElement("div",{className:`${Kt}-content`,"x-semi-prop":"content"},s):""),b&&w.createElement(zr,{className:`${Kt}-icon-close`,type:"tertiary",icon:w.createElement(yl,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(dC),theme:g.oneOf(I2),icon:g.node,onClick:g.func,onClose:g.func,onCloseClick:g.func,showClose:g.bool,close:g.func,direction:g.oneOf(R2)};hi.__SemiComponentName__="Notification";hi.defaultProps=ar(hi.__SemiComponentName__,{duration:D2,id:"",close:me,onClose:me,onClick:me,onCloseClick:me,content:"",title:"",showClose:!0,theme:"normal"});var N2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const A2=(o,e)=>{var{afterClose:n}=o,r=N2(o,["afterClose"]);const[s,l]=k.useState(!0),c=()=>{l(!1)};return w.useImperativeHandle(e,()=>({close:()=>{l(!1)}})),k.useEffect(()=>{s||n(String(r.id))},[s]),s?w.createElement(hi,Object.assign({},r,{onHookClose:c})):null},L2=w.forwardRef(A2),Qo={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};function j2(){const[o,e]=k.useState([]);function n(s,l){return e(c=>[{element:s,config:l},...c]),c=>{e(u=>u.filter(p=>{let{config:h}=p;return h.id!==c}))}}function r(){const s={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};return o.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?w.createElement("div",{key:c,className:X(ls.LIST),placement:c},u):null})}return[r(),n]}function M2(){const[o,e]=j2(),n=new Map,r=l=>{const c=Qa("semi_notice_"),u=Object.assign(Object.assign({},l),{id:c});let p;const h=y=>{n.set(c,y)},v=w.createElement(L2,Object.assign({key:c},u,{afterClose:y=>p(y),ref:h}));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()}},w.createElement(w.Fragment,null,o)]}let _n=null;const Gi={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};class tr extends gt{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=X(ls.LIST);if(r.length){const p=n.setPosInStyle(r[0]);return w.createElement("div",{placement:s,key:s,className:u,style:p},r.map((h,v)=>{const y=l.find(b=>b.id===h.id)!==void 0;return w.createElement(us,{key:h.id,animationState:y?"leave":"enter",startClassName:`${ls.NOTICE}-animation-${y?"hide":"show"}_${s}`},b=>{let{animationClassName:P,animationEventsNeedBind:E,isAnimating:S}=b;return y&&!S?null:w.createElement(hi,Object.assign({},h,{ref:_=>{_&&c.some(O=>O.id===_.props.id)&&_.foundation.restartCloseTimer()},className:X({[h.className]:!!h.className,[P]:!0})},E,{style:Object.assign({},h.style),close:n.remove}))})}))}return null},this.state={notices:[],removedItems:[],updatedItems:[]},this.noticeStorage=[],this.removeItemStorage=[],this.foundation=new T2(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:Qa("notification");if(_n)_n.has(`${r}`)?_n.update(r,e):_n.add(Object.assign(Object.assign({},e),{id:r}));else{const{getPopupContainer:s}=e,l=document.createElement("div");this.wrapperId||(this.wrapperId=Qa("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(w.createElement(tr,{ref:c=>_n=c}),l,()=>{_n.add(Object.assign(Object.assign({},e),{id:r}))})}return r}static removeNotice(e){return _n&&_n.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(_n){_n.destroyAll();const e=document.querySelector(`#${this.wrapperId}`);Jn.unmountComponentAtNode(e),e&&e.parentNode.removeChild(e),_n=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",h=c.position||p;s[h].push(c)});const l=Object.entries(s).map(c=>{const u=c[0],p=c[1];return this.renderNoticeInPosition(p,u,n,r)});return w.createElement(w.Fragment,null,l)}}tr.contextType=qn;tr.propTypes={style:g.object,className:g.string,direction:g.oneOf(uC.directions)};tr.defaultProps={};tr.useNotification=M2;const $2={PREFIX:Te+"-overflow-list"},gw={COLLAPSE:"collapse",SCROLL:"scroll"},mw={START:"start",END:"end"},F2={GROW:1},di={BOUNDARY_SET:Object.values(mw),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(gw),MODE_MAP:gw,BOUNDARY_MAP:mw,OVERFLOW_DIR:F2},vw={MINIMUM_HTML_ELEMENT_WIDTH:4};class yg extends w.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);Pn(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}}yg.propTypes={onIntersect:g.func,option:g.object,root:g.any,threshold:g.number,rootMargin:g.string,items:g.object};yg.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const z2=di.BOUNDARY_MAP;class B2 extends xt{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 Ya(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:h}=p;return!!n.get(h)}),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=Ya(this.getState("visibleState")),r={};e.forEach(p=>{const h=ke(p,"target.dataset.scrollkey"),v=p.isIntersecting;r[h]=p,n.set(h,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 h=r,v=0,y=!1;for(const b of this._adapter.getItemSizeMap().values()){if(h+=b,h>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 b=Math.max(e,v),P=n===z2.START,E=P?this.getReversedItems().slice(0,b).reverse():u.slice(0,b),S=P?this.getReversedItems().slice(b).reverse():u.slice(b);this._adapter.updateStates({overflowStatus:"overflowed",pivot:b,visible:E,overflow:S}),l!==b&&p(S);return}}}const Xo=$2.PREFIX,sh=di.BOUNDARY_MAP,yw=di.OVERFLOW_DIR,Yo=di.MODE_MAP;class ds extends gt{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 Qt(l)?l(r):ke(r,l||"key",s)},this.renderItemList=()=>{const{className:r,wrapperClassName:s,wrapperStyle:l,style:c,visibleItemRenderer:u,renderMode:p,collapseFrom:h}=this.props,{visible:v,overflowStatus:y}=this.state;let b=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(b)&&(b=w.createElement(w.Fragment,null,b)),w.isValidElement(b))){const S=w.cloneElement(b);b=w.createElement(Hi,{onResize:_=>{let[O]=_;this.setState({overflowWidth:O.target.clientWidth,overflowStatus:"calculating"})}},w.createElement("div",{className:`${Xo}-overflow`},S))}const P=p===Yo.SCROLL?(()=>{const S=[w.createElement("div",{className:X(s,`${Xo}-scroll-wrapper`),ref:_=>{this.scroller=_},style:Object.assign({},l),key:`${Xo}-scroll-wrapper`},v.map(u).map(_=>{const{forwardRef:O,key:I}=_;return w.cloneElement(_,{ref:N=>this.mergeRef(O,N,I),"data-scrollkey":`${I}`,key:I})}))];return this.props.overflowRenderDirection==="both"?(S.unshift(b[0]),S.push(b[1])):this.props.overflowRenderDirection==="start"?(S.unshift(b[1]),S.unshift(b[0])):(S.push(b[0]),S.push(b[1])),S})():[h===sh.START?b:null,v.map((S,_)=>{const{key:O}=S,I=u(S,_),N=w.cloneElement(I);return w.createElement(Hi,{key:O??_,onResize:M=>{let[F]=M;return this.onItemResize(F,S,_)}},w.createElement("div",{key:O??_,className:`${Xo}-item`},N))}),h===sh.END?b:null];return w.createElement("div",{className:X(`${Xo}`,r),style:Object.assign(Object.assign({},c),p===Yo.COLLAPSE?{maxWidth:"100%",visibility:y==="calculating"?"hidden":"visible"}:null)},...P)},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:yw.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new B2(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&&!Pn(r[c],e[c]);if(l("items")||l("style")){if(s.direction=yw.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/vw.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(c=Math.min(c,Math.floor(n.containerWidth/vw.MINIMUM_HTML_ELEMENT_WIDTH)));const u=e.collapseFrom===sh.START,p=u?Ya(e.items).reverse().slice(0,c):e.items.slice(0,c),h=u?Ya(e.items).reverse().slice(c):e.items.slice(c);s.visible=p,s.overflow=h,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(h=>h.key),s=this.props.items.map(h=>h.key);Pn(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?w.createElement(yg,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):w.createElement(Hi,{onResize:this.resize},e)}}ds.__SemiComponentName__="OverflowList";ds.defaultProps=ar(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 bg={PREFIX:`${Te}-select`,PREFIX_OPTION:`${Te}-select-option`,PREFIX_GROUP:`${Te}-select-group`},nr={SIZE_SET:["small","large","default"],POSITION_SET:Ui.POSITION_SET,STATUS:HE,SEARCH_POSITION_TRIGGER:"trigger",SEARCH_POSITION_DROPDOWN:"dropdown"},pC={LIST_HEIGHT:270};var bw=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class q2 extends xt{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&&at(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],h=Object.assign({},p);r.set(h.label,h)}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(h=>h[1]));const c=new Map;let u=e;const{onChangeWithObject:p}=this.getProps();return p&&l&&(u=e.map(h=>h.value)),l&&u.length&&u.forEach((h,v)=>{const y=n.findIndex(b=>b.value===h);if(y!==-1)c.set(n[y].label,n[y]);else{const b=s.findIndex(P=>P.value===h);if(b!==-1){const P=s[b];if(p){const E=Object.assign({},e[v]);Pn(E,P)?c.set(P.label,P):c.set(E.label,E)}else c.set(P.label,P)}else{let P={value:h,label:h,_notExist:!0};p&&(P=Object.assign(Object.assign({},e[v]),{_notExist:!0})),c.set(P.label,Object.assign(Object.assign({},P),{_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=bw(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=bw(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:h}=this.getStates();this._isFilterable()&&(p&&(this.clearInput(n),h=this._filterOption(h,"")),this.focusInput()),this.updateOptionsActiveStatus(u,h),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),h=at(u)&&u.toLowerCase().includes(s);return p||h?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],h=u[0]?u[0].value:u[0];l=!Pn(p,h);const v=c[0]?c[0].label:c[0],y=u[0]?u[0].label:u[0];s=!Pn(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===Yh&&this.handleClick(e)}handleClearBtnEnterPress(e){Zh(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;!ml(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=W0.PREFIX,fC=to.TAG_SIZE,G2=to.AVATAR_SHAPE;class Za extends k.PureComponent{renderNTag(e,n){const{size:r,showPopover:s,popoverProps:l,onPlusNMouseEnter:c}=this.props;let u=w.createElement(ht,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:c},"+",e);return s&&(u=w.createElement(Bn,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 h=null;return l>0&&(h=this.renderNTag(l,p),u.push(h),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()),w.createElement(ht,Object.assign({},p,{key:p.tagKey,onClose:(h,v,y)=>{p.onClose&&p.onClose(h,v,y),l&&l(h,v,y)}}))})}render(){const{style:e,className:n,maxTagCount:r,size:s}=this.props,l=X({[`${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 w.createElement("div",{style:e,className:l},u)}}Za.defaultProps={style:{},className:"",size:fC[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};Za.propTypes={children:g.node,style:g.object,className:g.string,maxTagCount:g.number,restCount:g.number,tagList:g.array,size:g.oneOf(fC),mode:g.string,onTagClose:g.func,showPopover:g.bool,popoverProps:g.object,avatarShape:g.oneOf(G2)};var W2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Sw=(o,e,n,r)=>{const s=o.props;if(!o||!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||o.key,l},U2=o=>{let e=[],n=[];const r={label:"",children:[],_show:!1};let s=w.Children.toArray(o);s=s.filter(u=>u&&u.props);let l="",c=-1;return s.forEach(u=>{if(u.type.isSelectOption){l="option",c++;const p=Sw(u,void 0,c);r.children.push(p),n.push(p)}else if(u.type.isSelectOptionGroup){l="group";let p=u.props,{children:h}=p,v=W2(p,["children"]);v.key=u.key;let y=[];Array.isArray(h)?y=h.map(E=>E.key):y.push(h.key),h=w.Children.toArray(h);const b=h.map((E,S)=>{let _=E.key;return y[S]===null&&(_=u.key+""+E.key),c++,Sw(E,v,c,_)}),P=Object.assign(Object.assign({},u.props),{children:b,key:u.key});e.push(P),n=n.concat(b)}else rr(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),l==="option"&&(e=[r]),{optionGroups:e,options:n}},H2=o=>{let{index:e,data:n,style:r}=o;const{visibleOptions:s,renderOption:l}=n,c=s[e];return l(c,e,r)};var ww=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class pi extends k.PureComponent{onClick(e,n){var{value:r,label:s,children:l}=e,c=ww(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 at(r)&&s?w.createElement(sg,{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:h,focused:v,showTick:y,className:b,style:P,onMouseEnter:E,prefixCls:S,renderOptionItem:_,inputValue:O,semiOptionId:I}=e,N=ww(e,["children","disabled","value","selected","label","empty","emptyContent","onSelect","focused","showTick","className","style","onMouseEnter","prefixCls","renderOptionItem","inputValue","semiOptionId"]),M=X(S,{[`${S}-disabled`]:r,[`${S}-selected`]:l,[`${S}-focused`]:v,[`${S}-empty`]:u,[b]:b}),F=X([`${S}-icon`]);if(u)return p===null?null:w.createElement(jr,{componentName:"Select"},A=>w.createElement("div",{className:M,"x-semi-prop":"emptyContent"},p||A.emptyText));if(typeof _=="function"){const A=X(b,{[`${S}-custom`]:!0,[`${S}-custom-selected`]:l});return _(Object.assign({disabled:r,focused:v,selected:l,style:P,label:c,value:s,inputValue:O,onMouseEnter:z=>E(z),onClick:z=>this.onClick(Object.assign({value:s,label:c,children:n},N),z),className:A},N))}const L={searchWords:[O],sourceString:n,highlightClassName:`${S}-keyword`};return w.createElement("div",Object.assign({className:M,onClick:A=>{this.onClick(Object.assign({value:s,label:c,children:n},N),A)},onMouseEnter:A=>E&&E(A),role:"option",id:I,"aria-selected":l?"true":"false","aria-disabled":r?"true":"false",style:P},Nh(N)),y?w.createElement("div",{className:F},w.createElement(L0,null)):null,at(n)?w.createElement("div",{className:`${S}-text`},this.renderOptionContent({children:n,config:L,inputValue:O,prefixCls:S})):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:bg.PREFIX_OPTION};var V2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const K2=bg.PREFIX_GROUP;class El extends gt{render(){const e=this.props,{label:n,className:r,style:s}=e,l=V2(e,["label","className","style"]),c=X(r,{[K2]:!0});return!n&&typeof n!="number"?null:w.createElement("div",Object.assign({className:c,style:s},this.getDataAttr(l)),n)}}El.isSelectOptionGroup=!0;El.propTypes={children:g.oneOfType([g.array,g.node]),label:g.node,className:g.string,style:g.object};var Q2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const fe=bg.PREFIX,X2=0;class $r extends gt{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],h=n[1].disabled||c,v=(E,S)=>{S&&typeof S.preventDefault=="function"&&S.preventDefault(),this.foundation.removeTag({label:u,value:p})},{content:y,isRenderInTag:b}=s(n[1],{index:r,disabled:h,onClose:v}),P={disabled:h,closable:!h,onClose:v};return b?w.createElement(ht,Object.assign({},P,{color:"white",size:l||"large",key:p,tabIndex:-1}),y):w.createElement(k.Fragment,{key:p},y)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:X2,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=w.createRef(),this.inputRef=w.createRef(),this.dropdownInputRef=w.createRef(),this.triggerRef=w.createRef(),this.optionsRef=w.createRef(),this.optionContainerEl=w.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 x0,this.foundation=new q2(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,h=this.triggerRef&&this.triggerRef.current,v=Jn.findDOMNode(p),y=u.target,b=u.composedPath&&u.composedPath()||[y];!(v&&v.contains(y))&&!(h&&h.contains(y))&&!(b.includes(h)||b.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((h,v)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:v},h)),c[0]={children:u,label:""};else{const h=U2(l);c=h.optionGroups,u=h.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=>R0(l),getActiveElement:()=>I0(),setIsFocusInContainer:l=>{this.setState({isFocusInContainer:l})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:l=>{let c;"renderOptionItem"in this.props?(c=`.${fe}-option-custom-selected`,l!==void 0&&(c=`.${fe}-option-custom:nth-child(${l+1})`)):(c=`.${fe}-option-selected`,l!==void 0&&(c=`.${fe}-option:nth-child(${l+1})`));let u=document.querySelector(`#${fe}-${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=w.Children.toArray(e.children).map(c=>c.key),s=w.Children.toArray(this.props.children).map(c=>c.key);let l=!1;(!Pn(r,s)||!Pn(e.optionList,this.props.optionList))&&(l=!0,this.foundation.handleOptionListChange()),(!Pn(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=ke(s,"className"),u=X(`${fe}-input`,{[`${fe}-input-single`]:!n,[`${fe}-input-multiple`]:n},c),{inputValue:p,focusIndex:h}=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),w.createElement(as,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":h!==-1?`${this.selectID}-option-${h}`:"",onFocus:b=>{n&&l&&this.setState({isFocus:!0}),b.stopPropagation()},onBlur:b=>this.foundation.handleInputBlur(b)},v))}renderDropdownInput(){const{size:e,multiple:n,disabled:r,inputProps:s,filter:l,searchPosition:c,searchPlaceholder:u}=this.props,{inputValue:p,focusIndex:h}=this.state,v=X(`${fe}-dropdown-search-wrapper`,{}),y=ke(s,"className"),b=X(`${fe}-dropdown-input`,{[`${fe}-dropdown-input-single`]:!n,[`${fe}-dropdown-input-multiple`]:n},y),P=Object.assign(Object.assign({value:p,disabled:r,className:b,onChange:this.handleInputChange,placeholder:u,showClear:!0},s),{onKeyDown:E=>this.foundation._handleKeyDown(E)});return w.createElement("div",{className:v},w.createElement(as,Object.assign({ref:this.dropdownInputRef,prefix:w.createElement(tx,null),"aria-activedescendant":h!==-1?`${this.selectID}-option-${h}`:""},P)))}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 w.createElement(pi,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${fe}-loading-wrapper`;return w.createElement("div",{className:e},w.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 h=r||{};return e.style&&(h=Object.assign(Object.assign({},h),e.style)),e._inputCreateOnly?u=this.renderCreateOption(e,p,n,r):("key"in e&&(e._keyInOptionList=e.key),u=w.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:h,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 w.createElement(pi,Object.assign({key:e.key||e.label+e.value,onSelect:(p,h)=>this.onSelect(p,r,h),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:n,style:s}),w.createElement(jr,{componentName:"Select"},p=>w.createElement(w.Fragment,null,w.createElement("span",{className:`${fe}-create-tips`},p.createText),e.value)));const c=l(e.value,n,s);return w.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,h=w.createElement(El,Object.assign({},c,{key:p}));r.set(c.label,!0),n.push(h)}n.push(u)}),n}renderVirtualizeList(e){const{virtualize:n}=this.props,{direction:r}=this.context,{height:s,width:l,itemSize:c}=n;return w.createElement(OD,{ref:this.virtualizeListRef,height:s||pC.LIST_HEIGHT,itemCount:e.length,itemSize:c,itemData:{visibleOptions:e,renderOption:this.renderOption},width:l||"100%",style:{direction:r}},H2)}renderOptions(e){const{dropdownMinWidth:n,options:r,selections:s}=this.state,{maxHeight:l,dropdownClassName:c,dropdownStyle:u,outerTopSlot:p,innerTopSlot:h,outerBottomSlot:v,innerBottomSlot:y,loading:b,virtualize:P,multiple:E,emptyContent:S,searchPosition:_,filter:O}=this.props,I=r.filter(A=>A._show);let N=this.renderWithGroup(I);P&&(N=this.renderVirtualizeList(I));const M=Object.assign({minWidth:n},u),F=X({[`${fe}-option-list`]:!0,[`${fe}-option-list-chosen`]:s.size}),L=!r.length||!r.some(A=>A._show);return w.createElement("div",{id:`${fe}-${this.selectOptionListID}`,className:X({[`${fe}-option-list-wrapper`]:!(L&&S===null)},c),style:M,ref:this.setOptionContainerEl,onKeyDown:A=>this.foundation.handleContainerKeyDown(A)},p?w.createElement("div",{className:`${fe}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},p):null,_===nr.SEARCH_POSITION_DROPDOWN&&O?this.renderDropdownInput():null,w.createElement("div",{style:{maxHeight:`${l}px`},className:F,role:"listbox","aria-multiselectable":E,onScroll:A=>this.foundation.handleListScroll(A)},h?w.createElement("div",{className:`${fe}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},h):null,b?this.renderLoading():L?this.renderEmpty():N,y?w.createElement("div",{className:`${fe}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},y):null),v?w.createElement("div",{className:`${fe}-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 h=[...e];if(typeof r>"u"&&(r=P=>P.label),h.length){const P=h[0][1];p=r(P)}const v=s===nr.SEARCH_POSITION_TRIGGER,y=X({[`${fe}-selection-text`]:!0,[`${fe}-selection-placeholder`]:!p&&p!==0,[`${fe}-selection-text-hide`]:u&&c&&v,[`${fe}-selection-text-inactive`]:!u&&c&&v}),b=`${fe}-content-wrapper`;return w.createElement(w.Fragment,null,w.createElement("div",{className:b},w.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],h=e[1].disabled||l,v=(S,_)=>{_&&typeof _.preventDefault=="function"&&_.preventDefault(),this.foundation.removeTag({label:u,value:p})};typeof c>"u"&&(c=S=>({isRenderInTag:!0,content:S.label}));const{content:y,isRenderInTag:b}=c(e[1],{index:n,disabled:h,onClose:v}),P={disabled:h,closable:!h,onClose:v},E=r&&!Qt(this.props.renderSelectedItem)?w.createElement(bl,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},y):y;return b?w.createElement(ht,Object.assign({},P,{color:"white",size:s||"large",key:p,style:{maxWidth:"100%"}}),E):w.createElement(k.Fragment,{key:p},E)}renderNTag(e,n){const{size:r,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;let c=w.createElement(ht,{closable:!1,size:r||"large",color:"grey",className:`${fe}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return s&&(c=w.createElement(Bn,Object.assign({showArrow:!0,content:w.createElement(ws,{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 w.createElement("div",{className:`${fe}-content-wrapper-collapse`},w.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=h=>({isRenderInTag:!0,content:h.label})),s){const v=(u?e:e.slice(0,c)).map((y,b)=>this.getTagItem(y,b,r));p=w.createElement(Za,{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,b)=>this.getTagItem(y,b,r));p=w.createElement(Za,{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:h,isOpen:v}=this.state,y=[...e];typeof r>"u"&&(r=M=>({isRenderInTag:!0,content:M.label}));const b=X({[`${fe}-content-wrapper`]:!0,[`${fe}-content-wrapper-one-line`]:c&&!v,[`${fe}-content-wrapper-empty`]:!y.length}),P=X({[`${fe}-selection-text`]:!0,[`${fe}-selection-placeholder`]:!y.length,[`${fe}-selection-text-hide`]:y&&y.length}),E=l&&!h?w.createElement("span",{className:P},l):null,S=y.length>c?c:void 0,_=!c,O=p?this.renderCollapsedTags(y,S):this.renderOneLineTags(y,S),I=_||u&&v?y.map((M,F)=>this.renderTag(M,F)):O,N=n&&s===nr.SEARCH_POSITION_TRIGGER;return w.createElement(w.Fragment,null,w.createElement("div",{className:b},y&&y.length?I:E,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=ke(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=X({[`${fe}-suffix`]:!0,[`${fe}-suffix-text`]:e&&at(e),[`${fe}-suffix-icon`]:Mn(e)});return w.createElement("div",{className:n,"x-semi-prop":"suffix"},e)}renderPrefix(){const{prefix:e,insetLabel:n,insetLabelId:r}=this.props,s=e||n,l=X({[`${fe}-prefix`]:!0,[`${fe}-inset-label`]:n,[`${fe}-prefix-text`]:s&&at(s),[`${fe}-prefix-icon`]:Mn(s)});return w.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:h,showArrow:v,suffix:y,prefix:b,insetLabel:P,placeholder:E,triggerRender:S,arrowIcon:_,clearIcon:O,borderless:I}=e,N=Q2(e,["disabled","multiple","filter","style","id","size","className","validateStatus","showArrow","suffix","prefix","insetLabel","placeholder","triggerRender","arrowIcon","clearIcon","borderless"]),{selections:M,isOpen:F,keyboardEventSet:L,inputValue:A,isHovering:z,isFocus:U,showInput:K,focusIndex:V}=this.state,ie=typeof S=="function",ee=!!s,ve=ie?X(p):X(fe,p,{[`${fe}-borderless`]:I,[`${fe}-open`]:F,[`${fe}-focus`]:U,[`${fe}-disabled`]:n,[`${fe}-single`]:!r,[`${fe}-multiple`]:r,[`${fe}-filterable`]:ee,[`${fe}-small`]:u==="small",[`${fe}-large`]:u==="large",[`${fe}-error`]:h==="error",[`${fe}-warning`]:h==="warning",[`${fe}-no-arrow`]:!v,[`${fe}-with-prefix`]:b||P,[`${fe}-with-suffix`]:y}),le=this.props.showClear&&(M.size||A)&&!n&&(z||F),_e=v?w.createElement("div",{className:`${fe}-arrow`,"x-semi-prop":"arrowIcon"},_):w.createElement("div",{className:`${fe}-arrow-empty`}),Ce=O||w.createElement(A0,null),H=ie?w.createElement(B0,{value:Array.from(M.values()),inputValue:A,onChange:this.handleInputChange,onSearch:this.handleInputChange,onRemove:x=>this.foundation.removeTag(x),onClear:this.onClear,disabled:n,triggerRender:S,placeholder:E,componentName:"Select",componentProps:Object.assign({},this.props)}):[w.createElement(k.Fragment,{key:"prefix"},b||P?this.renderPrefix():null),w.createElement(k.Fragment,{key:"selection"},w.createElement("div",{className:X(`${fe}-selection`)},r?this.renderMultipleSelection(M,ee):this.renderSingleSelection(M,ee))),w.createElement(k.Fragment,{key:"suffix"},y?this.renderSuffix():null),w.createElement(k.Fragment,{key:"clearicon"},le?w.createElement("div",{className:X(`${fe}-clear`),onClick:this.onClear},Ce):_e)],Z=n||ee&&K||ee&&r?-1:0;return w.createElement("div",Object.assign({role:"combobox","aria-disabled":n,"aria-expanded":F,"aria-controls":`${fe}-${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:ve,ref:x=>this.triggerRef.current=x,onClick:x=>this.foundation.handleClick(x),style:l,id:this.selectID,tabIndex:Z,"aria-activedescendant":V!==-1?`${this.selectID}-option-${V}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:x=>this.foundation.handleTriggerFocus(x),onBlur:x=>this.foundation.handleTriggerBlur(x),onKeyPress:this.onKeyPress},L,this.getDataAttr(N)),H)}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:h,mouseEnterDelay:v,spacing:y,stopPropagation:b,dropdownMargin:P}=this.props,{isOpen:E,optionKey:S}=this.state,_=this.renderSelection();return w.createElement(Bn,{getPopupContainer:c,motion:u,margin:P,autoAdjustOverflow:p,mouseLeaveDelay:h,mouseEnterDelay:v,zIndex:l,ref:this.optionsRef,content:()=>this.renderOptions(r),visible:E,trigger:"custom",rePosKey:S,position:s,spacing:y,stopPropagation:b,disableArrowKeyDown:!0,onVisibleChange:O=>this.handlePopoverVisibleChange(O),afterClose:()=>this.foundation.handlePopoverClose()},_)}}$r.contextType=qn;$r.Option=pi;$r.OptGroup=El;$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=ar($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:pC.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,searchPosition:nr.SEARCH_POSITION_TRIGGER,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:w.createElement(qO,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1});class Y2 extends xt{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 cn={PREFIX:`${Te}-switch`,FOCUS:`${Te}-switch-focus`,LARGE:`${Te}-switch-large`,SMALL:`${Te}-switch-small`,CHECKED:`${Te}-switch-checked`,DISABLED:`${Te}-switch-disabled`,KNOB:`${Te}-switch-knob`,NATIVE_CONTROL:`${Te}-switch-native-control`,CHECKED_TEXT:`${Te}-switch-checked-text`,UNCHECKED_TEXT:`${Te}-switch-unchecked-text`,LOADING_SPIN:`${Te}-switch-loading-spin`,LOADING:`${Te}-switch-loading`},Z2={SIZE_MAP:["default","small","large"]};var J2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class Sg extends gt{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=w.createRef(),this.foundation=new Y2(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:h,checkedText:v,uncheckedText:y,loading:b,id:P}=s,E=J2(s,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),S=X(l,{[cn.PREFIX]:!0,[cn.CHECKED]:e,[cn.DISABLED]:n,[cn.LARGE]:h==="large",[cn.SMALL]:h==="small",[cn.LOADING]:b,[cn.FOCUS]:r}),_={type:"checkbox",className:cn.NATIVE_CONTROL,disabled:n||b,checked:e||!1},O=v&&e&&h!=="small",I=y&&!e&&h!=="small";return w.createElement("div",Object.assign({className:S,style:c,onMouseEnter:u,onMouseLeave:p},this.getDataAttr(E)),b?w.createElement(Mr,{wrapperClassName:cn.LOADING_SPIN,size:h==="default"?"middle":h}):w.createElement("div",{className:cn.KNOB,"aria-hidden":!0}),O?w.createElement("div",{className:cn.CHECKED_TEXT,"x-semi-prop":"checkedText"},v):null,I?w.createElement("div",{className:cn.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},y):null,w.createElement("input",Object.assign({},_,{ref:this.switchRef,id:P,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)})))}}Sg.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(Z2.SIZE_MAP),uncheckedText:g.node,id:g.string};Sg.defaultProps={disabled:!1,className:"",onChange:me,loading:!1,onMouseEnter:me,onMouseLeave:me,size:"default"};const wg=k.createContext(void 0),dn=()=>{const o=k.useContext(wg);if(!o)throw new Error("useAppContext must be used within ContextProvider");return o},eI="DevTool",tI="Scan to start local debugging",nI="Device connected!",rI="Debug service disconnected",iI="Not Connected",oI="Node",sI="Browser",aI="Client",lI="Connected",cI="Disconnected",uI="Failed",dI="Unknown",pI="Legend",fI="Local debug service on your machine (bridges IDE and client, forwards messages).",hI="The browser page running DevTool IDE.",gI="Debug service inside TikTok on the device (provides HTTP/WS capabilities).",mI="Dots indicate link status; ws/http are shown on opposite sides on the same edge.",vI="Network diagnostics",yI="Network connectivity diagnostics",bI="Helps diagnose QR scan stuck / connection failures / unreachable ports (browser-side checks only).",SI="No response after scanning? Click to diagnose",wI="Network diagnostics",CI="Use this when TikTok scan gets no response, LAN access fails, or proxy setup gets in the way.",_I="Open",PI="Run all checks",EI="Manual connect",kI="Manual bind client debug service",TI="When QR scan path is unavailable (proxy/firewall/multi-NIC), you can manually enter client IP and ports to connect.",OI="Manual connect",xI="Go to manual connect",DI="Diagnosis summary",II="Run a full check first",RI="There is no fresh result yet. Run all checks first to tell whether the issue is on local Node, client endpoint data, or the LAN path.",NI="If you already have the client IP and ports, save them and diagnose directly.",AI="Checking the network path",LI="The tool is checking local Node, client HTTP, and client WS one by one. This usually takes a few seconds.",jI="Each link result will refresh below, then the page will summarize the main issue automatically.",MI="Client debug endpoint is missing",$I="Client IP / HTTP / WS info is not ready yet. Fill those values first before deciding whether this is a network-path issue.",FI="Local debug service is not ready",zI="The browser-to-local-Node path is failing. Check whether `ttmg dev` is running and whether the local port is actually listening.",BI="The local Node WebSocket path is failing, which usually means the debug service is not fully up or the local WS port is abnormal.",qI="Client path is unreachable as a whole",GI="Both client HTTP and WS failed. This may be caused by LAN reachability, proxy, VPN/TUN, or firewall issues, but it can also mean the client debug service is not enabled yet or the current ports are not actually listening.",WI="Client WS path is failing",UI="Client HTTP is reachable but WS is not. The most likely issues are WS port mismatch, missing listener, client debug service not being fully enabled, or policy blocking.",HI="No obvious network issue detected",VI="All four core links are reachable right now. If the problem still exists, continue with higher-level debugging using this page as evidence.",KI="There is a partial mismatch to verify",QI="The result does not match a common failure pattern yet. Re-check the environment info and port values, then run the checks again.",XI="Start by confirming the client IP, HTTP port, and WS port match what the client loading page shows.",YI="Computer IP",ZI="WS Port",JI="HTTP Port",eR="Computer",tR="Client",nR="View troubleshooting guide",rR="Open proxy setup",iR="Environment",oR="Shows the computer-side and client-side address information used in the current diagnosis.",sR="Check results",aR="Shows the detailed result of each link check. Expand it when you need the full breakdown.",lR="IDE ↔ Node (HTTP)",cR="IDE ↔ Node (WS)",uR="IDE ↔ Client (HTTP)",dR="IDE ↔ Client (WS)",pR="Suggestions",fR="Try the actions below first, then run the checks again to see whether the problem is narrowing down.",hR="Actions",gR="Extra info: if the connection succeeds, return to the QR debug page to continue.",mR="Manual connection info has been saved and a full diagnosis was triggered automatically.",vR="Manual connection was submitted, but the quick connectivity check still failed:",yR="Use this section when scan does not return the client endpoint, or when you need to specify the client IP and ports manually.",bR="Recommended next step",SR="Fill manual connection",wR="Provide the client IP, HTTP port, and WS port first, then save and diagnose whether the current path is reachable.",CR="Return to scan debugging",_R="The core network path is reachable. Return to the home page to scan again or continue the current debug flow.",PR="Re-check after restart",ER="Make sure `ttmg dev` is running. Restart the local debug service if needed, then run the checks again.",kR="Run the checks again to confirm whether the issue has narrowed down.",TR="Expand",OR="Collapse",xR="Open docs",DR="Client endpoint not detected",IR="Scan to connect first, or use Manual bind IP to provide client IP/ports.",RR="Client connectivity failed (LAN / proxy / firewall)",NR="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.",AR="Local debug service unavailable",LR="Make sure `ttmg dev` is running in the project root and the port is not occupied.",jR="If you just changed network or proxy settings, go back to the project root and run `ttmg dev` again.",MR="Make sure the client is currently on the debug loading page and that the client debug service is enabled. The manually filled HTTP / WS ports must match the values shown on that page.",$R="No obvious issues detected",FR="If it still fails, share the copied environment info and screenshots for investigation.",zR="HTTP reachable but WS unreachable: check WS port correctness and whether the client debug service is listening.",BR="If WS times out: the port is likely blocked by firewall/router policy, or global VPN/TUN affects LAN traffic.",qR="Both HTTP and WS unreachable: check if phone and computer are on the same Wi‑Fi/subnet (AP isolation may exist).",GR="Disable global VPN/TUN; enable Allow LAN in proxy; check firewall rules for LAN access.",WR="Client HTTP address or port is not available",UR="Client WS address or port is not available",HR="Idle",VR="Running",KR="Check",QR="Waiting for check",XR="Checking...",YR="Network reachable",ZR="Hint",JR="If ping works but WS fails, it's usually because the TCP port isn't listening or is blocked (ICMP differs from TCP/WS).",eN="Client disconnected. Please scan the QR code to reconnect.",tN="Node service disconnected. Please restart the debug service in the terminal.",nN="Switch debug device",rN="No device connected",iN="Please connect a device before debugging.",oN="Scan with TikTok to debug",sN="Switch scan device",aN="Initializing debug environment...",lN="Notifying client to initialize debug environment...",cN="Fetching client debug environment configuration...",uN="Failed to fetch client debug environment configuration",dN="Client debug environment configuration fetched successfully",pN="Client debug environment initialized. Waiting to upload game resources...",fN="Failed to initialize client debug environment",hN="Initializing JS runtime environment...",gN="JS runtime environment initialized successfully",mN="Re-upload code package",vN="Uploading game resources...",yN="Uploading game resources, progress:",bN="Game resources uploaded successfully. Client is loading the game...",SN="Failed to upload game resources. Please check your environment.",wN="Initializing game environment...",CN="Game resources are being compiled locally. Please wait...",_N="Compiling game resources",PN="Game resources updated. Upload again for debugging?",EN="Game resources updated successfully!",kN="Failed to initialize game environment. Please check your environment.",TN="Fetching game debug environment configuration",ON="Game environment configuration fetched successfully",xN="Failed to fetch game environment configuration",DN="Fetching game scripts",IN="Browser debug environment initialized. The game will start after resources are uploaded.",RN="Game runtime environment initialized. Preparing to upload resources to client.",NN="Uploading game package to client...",AN="Game package uploaded successfully. Client is loading the game...",LN="Failed to upload game package",jN="Re-upload mini game package",MN="Restart mini game",$N="End debugging",FN="Starting debug environment...",zN="Failed to connect to local Node debug service",BN="Connecting to local Node debug service...",qN="Connected to local Node debug service",GN="Failed to connect to local Node debug service. Please make sure 'ttmg dev' is running in the game root directory.",WN="Node debug service disconnected. Please restart the debug service in the terminal.",UN="Client debug service connected successfully",HN="Failed to connect to client debug service. Please scan the QR code again to start the debug service.",VN="Client debug service disconnected. Please scan the QR code again to reconnect.",KN="No LAN IP available for QR scan",QN="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.",XN="Manual bind IP",YN="Failed to start client debug environment. Please scan the QR code again to start the debug service.",ZN="Failed to load game scripts",JN="Upload to device",e4="Do not upload",t4="Upload to platform",n4="Scanning QR code...",r4="Switch device to start a new debug session by scanning",i4="Make sure your TikTok account is added as a test user for the debug app",o4="Not logged in",s4="Launch mode name",a4="Select launch package",l4="Select independent subpackage",c4="Select entry scene",u4="Custom launch parameters",d4="Example: a=1&b=2",p4="Scan QR code",f4="Search",h4="For You feed direct play",g4="For Your feed card",m4="Creator anchor",v4="Sidebar",y4="For Your feed ads",b4="Desktop Shortcut",S4="DM sharing",w4="Copy link",C4="Main package",_4="Independent subpackage",P4="Custom launch mode",E4="Are you sure you want to delete {{name}}?",k4="Save",T4="Developer options",O4="Allow requests to domains not configured on the platform during debugging.",x4="Enable Ad Mock",D4="Use mock ad results to debug ad scenarios.",I4="Enable IAP Mock",R4="Route payment results through the sandbox to debug result-related scenarios.",N4="Select launch mode",A4="Create new launch mode",L4="Select debug mode",j4="Remote debug",M4="Client preview",$4="Client debug",F4="Launch parameters must be a string",z4="Launch parameters should not contain the question mark (?) prefix. Please only input the parameter part.",B4=`Launch parameters format error: empty key-value pair found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,q4=`Launch parameters format error: empty key found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,G4="Launch parameters format error: duplicate key found. Each key must be unique.",W4="Launch parameters format error: invalid key characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",U4="Launch parameters format error: invalid value characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",H4="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.',K4="Cannot be empty",Q4="Save and apply",X4="Apply",Y4="Sending local debug setting to client...",Z4="Local Node debug service configuration fetched successfully",J4="Failed to fetch local debug service configuration. Please check if Node service is running.",eA="Loading debug environment dependency scripts...",tA="Dependency scripts loaded successfully",nA="Failed to load dependency scripts. Please scan the QR code again to start the debug service.",rA="Dependency scripts are empty. Please scan the QR code again to start the debug service.",iA="Dependency scripts loaded and initialized successfully",oA="Game resources compiled successfully! Scan with your device to debug.",sA="Game resources compiled successfully!",aA="Start debugging",lA="Project overview",cA="Launch mode",uA="Upload & publish",dA="Normal launch mode",pA="New launch mode",fA="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.",hA="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.",gA="Not exceed project size {{limit}} limit",mA="Not exceed main package size {{limit}} limit",vA="Not exceed independent subpackage size {{limit}} limit",yA="Exceed project size {{limit}} limit",bA="Exceed main package size {{limit}} limit",SA="Exceed independent subpackage size {{limit}} limit",wA="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.",CA="3. Configuration file check",_A="Ensure that the subpackage file paths are configured correctly, and all paths can be accessed normally to avoid loading failures later.",PA="1. Package size check",EA="2. Mandatory API check",kA="Check if the game has integrated necessary API capabilities to ensure better user experience and conversion effects on TikTok.",TA="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}}.",OA="The entire game package size must be controlled within {{projectSize}}; no other additional restrictions.",xA="Configuration file check passed!",DA="Package size check passed!",IA="Package size check failed!",RA="Configuration file check failed!",NA="Performance check",AA="Performance check passed!",LA="Performance check failed!",jA="View docs",MA="Expand check details",$A="Close check details",FA="Game project",zA="Main package size",BA="Independent subpackage size",qA="Trusted domains",GA="Terms & Privacy",WA="Terms & Privacy - Terms URL",UA="Terms & Privacy - Privacy URL",HA="Terms of Service URL",VA="Privacy policy URL",KA="Project Size",QA="Name",XA="Icon",YA="Client key",ZA="Description",JA="Current game ClientKey {{clientKey}} cannot be enabled for debug, please check and try again.",eL="Failed to fetch game details. Please try again later.",tL="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.",nL="You can log in by entering the `ttmg login` command in the console and using your developer platform account and password.",rL="Docs",iL="Quick start",oL="API Reference",sL="Error reference",aL="FAQ",lL="Upload",cL="Cancel",uL="Add resource description",dL="Upload success",pL="Upload failed",fL="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.",hL="View on platform",gL="Only after logging in in the command line can the game package upload function on the debug page be used.",mL="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.",yL="Debug environment script initialization failed, please scan the QR code again",bL="Game resource upload failed, please scan the QR code again",SL="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.",wL="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.",CL="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.",_L="Current Terms & Privacy (Terms URL) is empty. Please add this URL on the platform to ensure the game can run normally.",PL="Current Terms & Privacy (Privacy URL) is empty. Please add this URL on the platform to ensure the game can run normally.",EL="Current game name is empty. Please complete it before submission to avoid review rejection.",kL="Current game icon is empty. Please complete it before submission to avoid review rejection.",TL="Current game description is empty. Please add the game description to the game description list to ensure that the game can run normally.",OL="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.",xL="Start connecting to client WebSocket, 👉🏼👉🏼👉🏼 {{wsURL}}...",DL="Client WebSocket service connection timeout, please check if the computer and mobile phone are in the same local area network.",IL="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="Current account login expired, please log in again.",NL="Login",AL="Create rewarded video ad",LL="Add shortcut",jL="Open profile sidebar entrance",ML="Get shortcut mission reward",$L="Get entrance mission reward",FL="Integrated!",zL="Not integrated!",BL="Mandatory API check passed!",qL="Mandatory API check failed!",GL="Client preview loading game, please check the browser console for more details...",WL="Client preview environment initialized. Please check the browser console for more details...",UL="Start to send game meta data to client, after which the client will start to launch the game...",HL="Game meta data sent to client successfully, client will start to launch the game...",VL="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.",KL="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.",QL="Invalid port number, please enter a valid port number",XL="If the QR code is no response, please click here to manually bind the client debug service address.",YL="Confirm",ZL="Please enter the local IP address of the mobile phone",JL="Start upload",ej="Manually bind the client debug service address",tj="Go to check",nj="Check network",rj="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.",ij="2. Only TikTok Android 42.9 and above versions are supported, and iOS does not support it for the time being.",oj="Back",sj="Start connection",aj="Check connectivity",lj="Connectivity check",cj="Client WebSocket",uj="Client HTTP",dj="OK",pj="Failed",fj="Timeout",hj="Connection failed",gj="Please fill IP and ports first",mj="Uploading the game package requires filling in the current game package description first.",vj="Disable domain check",yj="Enable vConsole log panel",bj="Enable developer info panel",Sj="View vConsole runtime logs on the client.",wj="View developer info and runtime stats on the client.",Cj="‼️ Detected {{count}} issues. Each item is labeled as Blocking or Suggestion.",_j="Blocking",Pj="Suggestion",Ej="Basic game info is missing: {{fields}}.",kj="title (Name)",Tj="icon (Icon)",Oj="description (Description)",xj=", ",Dj="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.",Ij="Please resolve this before submission to avoid review rejection.",Rj="View details",Nj="Hide details",Aj="Features",Lj="Optimizations",jj="Bugfixes",Mj="Learn more",$j="Changelog",Fj="New/Optimized Feature Target Version:",zj="Wasm Code Split",Bj="Split Prepare",qj="Collect Functions",Gj="Split Code",Wj="Rollback",Uj="Starting split code prepare...",Hj="Cancel split code prepare",Vj="Background run",Kj="Preparing split code, please wait...",Qj="During the preparation process, please do not modify the local game package, otherwise it may cause the preparation to fail.",Xj="Split code preparation successful!",Yj="Split code preparation failed!",Zj="Retry preparation",Jj="Download prepared Wasm code",eM="Download failed",tM="Retry download",nM="Download successful",rM="After downloading the prepared Wasm code, you can split the code in the local environment for debugging.",iM="Split code description",oM="Please input split code description",sM="Start prepare",aM="Processing...",lM="Update Wasm split config",cM="Update Wasm split config successful!",uM="Update Wasm split config failed!",dM="Compress prepared Wasm code successful!",pM="Compress prepared Wasm code failed!",fM="Write compress prepared Wasm code",hM="Write compress prepared Wasm code successful!",gM="Write compress prepared Wasm code failed!",mM="Fetch download URL",vM="Fetch download URL successful!",yM="Fetch download URL failed!",bM="Download prepared Wasm code successful!",SM="Download prepared Wasm code failed!",wM="Start split",CM="Current collected function count is not enough, at least 8% of the total function count is required to start split.",_M="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.",PM="Start collect",EM="Wasm file size",kM="Collected function count",TM="Total function count",OM="Split version",xM="Split code processing, please wait...",DM="Cancel split",IM="Get split result",RM="Retry get split result",NM="Get split result failed, please retry.",AM="Split code processing successful!",LM="Download split result",jM="Download split result failed, please retry.",MM="Retry download split result",$M="Download split result successful!",FM="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.",zM="Downloading Android main Wasm file...",BM="Download Android main Wasm file successful",qM="Compressing Android main Wasm file...",GM="Compress Android main Wasm file successful",WM="Downloading Android sub Wasm code...",UM="Download Android sub Wasm code successful",HM="Compressing Android sub Wasm code...",VM="Compress Android sub Wasm code successful",KM="Downloading iOS main Wasm file...",QM="Download iOS main Wasm file successful",XM="Compressing iOS main Wasm file...",YM="Compress iOS main Wasm file successful",ZM="Downloading iOS sub Wasm code...",JM="Download iOS sub Wasm code successful",e$="Compressing iOS sub Wasm code...",t$="Compress iOS sub Wasm code successful",n$="Writing split Wasm files...",r$="Write split Wasm files successful",i$="Updating Wasm split config...",o$="Update Wasm split config successful!",s$="No Wasm code found",a$="No Wasm code found in the project. Please make sure the game has been packed with Wasm code and try again.",l$="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.",c$="Do you want to continue split Wasm code?",u$="Current project has not enabled Wasm split config",d$="Current project has not enabled Wasm split config. Please enable it in the project config and try again.",p$="Advanced guide",f$="Integration assistant",h$={title:eI,scanQRcodeTitle:tI,deviceConnected:nI,serverDisconnected:rI,deviceDisconnected:iI,connectStatusNode:oI,connectStatusBrowser:sI,connectStatusClient:aI,connectStatusConnected:lI,connectStatusDisconnected:cI,connectStatusFailed:uI,connectStatusUnknown:dI,connectStatusLegendTitle:pI,connectStatusLegendNode:fI,connectStatusLegendBrowser:hI,connectStatusLegendClient:gI,connectStatusLegendProto:mI,netDiagNav:vI,netDiagTitle:yI,netDiagSubtitle:bI,netDiagEntryScanNoResponse:SI,netDiagEntryTitle:wI,netDiagEntryDesc:CI,netDiagEntryAction:_I,netDiagRunAll:PI,netDiagManualConnectAndCheck:EI,netDiagManualBindTitle:kI,netDiagManualBindDesc:TI,netDiagManualBindEntry:OI,netDiagManualConnectGo:xI,netDiagSummaryTitle:DI,netDiagSummaryIdleTitle:II,netDiagSummaryIdleDesc:RI,netDiagSummaryIdleHint:NI,netDiagSummaryRunningTitle:AI,netDiagSummaryRunningDesc:LI,netDiagSummaryRunningHint:jI,netDiagSummaryMissingClientTitle:MI,netDiagSummaryMissingClientDesc:$I,netDiagSummaryNodeTitle:FI,netDiagSummaryNodeDesc:zI,netDiagSummaryNodeWsDesc:BI,netDiagSummaryClientBothTitle:qI,netDiagSummaryClientBothDesc:GI,netDiagSummaryClientWsTitle:WI,netDiagSummaryClientWsDesc:UI,netDiagSummaryHealthyTitle:HI,netDiagSummaryHealthyDesc:VI,netDiagSummaryPartialTitle:KI,netDiagSummaryPartialDesc:QI,netDiagSummaryPartialHint:XI,netDiagEnvIP:YI,netDiagEnvWsPort:ZI,netDiagEnvHttpPort:JI,netDiagComputerGroup:eR,netDiagClientGroup:tR,netDiagOpenTroubleshoot:nR,netDiagOpenProxy:rR,netDiagEnvTitle:iR,netDiagEnvSectionDesc:oR,netDiagChecksTitle:sR,netDiagCheckSectionDesc:aR,netDiagCheckNodeHttp:lR,netDiagCheckNodeWs:cR,netDiagCheckClientHttp:uR,netDiagCheckClientWs:dR,netDiagSuggestTitle:pR,netDiagSuggestSectionDesc:fR,netDiagActionsTitle:hR,netDiagSuccessHint:gR,netDiagManualConnectResultSuccess:mR,netDiagManualConnectResultError:vR,netDiagManualSectionDesc:yR,netDiagNextStepTitle:bR,netDiagActionManualConnect:SR,netDiagActionManualConnectDesc:wR,netDiagActionBackToScan:CR,netDiagActionBackToScanDesc:_R,netDiagActionRerunAfterRestart:PR,netDiagActionRerunAfterRestartDesc:ER,netDiagActionRunAllDesc:kR,netDiagExpand:TR,netDiagCollapse:OR,netDiagOpenDoc:xR,netDiagSuggestNoClientTitle:DR,netDiagSuggestNoClientDesc:IR,netDiagSuggestLanTitle:RR,netDiagSuggestLanDesc:NR,netDiagSuggestNodeTitle:AR,netDiagSuggestNodeDesc:LR,netDiagSuggestNodeRestart:jR,netDiagSuggestClientDebugService:MR,netDiagSuggestOkTitle:$R,netDiagSuggestOkDesc:FR,netDiagSuggestHttpOkWsFail1:zR,netDiagSuggestHttpOkWsFail2:BR,netDiagSuggestBothFail1:qR,netDiagSuggestBothFail2:GR,netDiagMissingClientHttp:WR,netDiagMissingClientWs:UR,netDiagStatusIdle:HR,netDiagStatusRunning:VR,netDiagStatusWarning:KR,netDiagCheckIdleDetail:QR,netDiagCheckRunningDetail:XR,netDiagCheckReachableDetail:YR,netDiagQuickHintTitle:ZR,netDiagQuickHintDesc:JR,clientDisconnected:eN,nodeDisconnected:tN,switchDevice:nN,disConnectionStatusTitle:rN,disConnectionStatusDesc:iN,scanQRCode:oN,switchScanDevice:sN,startDebug:aN,initClientEnv:lN,fetchClientDevConfig:cN,fetchClientDevConfigFailed:uN,fetchClientDevConfigSuccess:dN,initClientEnvSuccess:pN,initClientEnvFailed:fN,startInitJSDevEnv:hN,initJSDevEnvSuccess:gN,uploadBtn:mN,uploadStart:vN,uploadProcess:yN,uploadSuccess:bN,uploadError:SN,setupDevEnv:wN,gameResourceCompiling:CN,gameResourceCompilingTitle:_N,gameResourceChange:PN,gameResourceUpdated:EN,devEnvSetupError:kN,getDevEnvStart:TN,getDevEnvSuccess:ON,setDevEnvFailed:xN,getDevScriptsStart:DN,setDevScriptsSuccess:IN,devEnvSetupSuccess:RN,uploadGameStart:NN,uploadGameSuccess:AN,uploadGameFailed:LN,reUploadGame:jN,relaunchGame:MN,closeGame:$N,loading:FN,nodeServerConnectedFailed:zN,nodeServerStartConnect:BN,nodeServerConnectedSuccess:qN,nodeServerStartError:GN,nodeServerDisconnect:WN,clientConnectedSuccess:UN,clientServerStartError:HN,clientServerDisconnected:VN,networkNoLanIPTitle:KN,networkNoLanIPDesc:QN,networkNoLanIPAction:XN,startDebugFailed:YN,getDevScriptsFailed:ZN,uploadToClient:JN,notUpload:e4,uploadToPlatform:t4,"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":"Before Upload & Publish","uploadGame.guide.desc":"Run the code precheck first, then upload the current package to generate a platform preview version. After upload succeeds, scan to verify the platform build and continue review and publishing on the platform.","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 found issues to fix","uploadGame.issueDesc":"Start with this compact issue summary, then expand the detailed report only 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":"Add a short note for this version so uploads are easier to distinguish on the platform.","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":"Checking platform asset status","uploadGame.progress.assetDesc":"Upload succeeded. Polling the platform asset status now. Current status: {{status}}","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 until the platform asset becomes ready","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 response did not include asset_id, so platform validation cannot continue.","uploadGame.failure.assetTimeout":"The target asset did not enter ready status within the expected time. Please check the platform later.","uploadGame.failure.assetStatus":"The target asset status is {status}. It has not entered ready yet, so no preview QR code will be shown.","uploadGame.failure.previewTimeout":"The asset became ready, but no preview QR code was returned within the expected 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:n4,scanQRCodeChange:r4,scanQRCodeDesc:i4,notLogin:o4,launchModeName:s4,selectLaunchPkg:a4,selectIndependentPkg:l4,selectScene:c4,launchQueries:u4,launchQueriesDesc:d4,scene_scan_qrcode:p4,scene_search:f4,scene_fyf_promotion_direct_feed_play:h4,scene_fyf_card:g4,scene_anchor:m4,scene_center:v4,scene_ad:y4,scene_shortcut:b4,scene_sharing:S4,scene_link:w4,gameMainPackage:C4,independentPackage:_4,customizeLaunchMode:P4,deleteLaunchModeConfirm:E4,save:k4,delete:"Delete",devOptions:T4,devOptionsDomainCheckDesc:O4,debugSettingAdMock:x4,debugSettingAdMockDesc:D4,debugSettingIAPMock:I4,debugSettingIAPMockDesc:R4,selectLaunchMode:N4,createNewMode:A4,selectDebugMode:L4,browserDebugMode:j4,clientPreviewMode:M4,clientDebugMode:$4,queriesStringMustBeString:F4,queriesStringNoQuestionMark:z4,queriesStringEmptyPair:B4,queriesStringEmptyKey:q4,queriesStringDuplicateKey:G4,queriesStringInvalidKeyChars:W4,queriesStringInvalidValueChars:U4,queriesStringInvalidEncoding:H4,queriesStringMissingEqual:V4,notEmpty:K4,saveAndUse:Q4,use:X4,sendLocalDebugSetting:Y4,getDevGameConfigSuccess:Z4,getDevGameConfigFailed:J4,startLoadDevScripts:eA,loadDevScriptsSuccess:tA,loadDevScriptsFailed:nA,loadDevScriptsEmpty:rA,loadDevScriptsInitSuccess:iA,gameResourceCompileSuccess:oA,gameResourceCompileSuccessTitle:sA,scanQRCode2Debug:aA,projectInfo:lA,launchMode:cA,codePreCheck:uA,normalLaunchMode:dA,createdLaunchMode:pA,projectInfoDesc:fA,projectInfoDescTip:hA,"projectInfo.section.basic":"Basic info","projectInfo.section.package":"Package status","projectInfo.section.platform":"Platform setup","projectInfo.error.guideTitle":"Complete the following steps to view project overview","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 there is no valid developer session in the current debug context yet. Finish login first, then return here to view project overview.","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 cannot access this module yet","projectInfo.error.permission.desc":"The local project is available, but the current developer account does not have development access to this game, so platform-side config cannot be loaded.","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.general.title":"Project overview 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 come back to this page.","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":"If login itself works but this page still cannot load project overview, the issue is more likely to be account permission than the local project. Check account ownership and the game's authorization on the developer platform first.","projectInfo.error.helpGeneralDesc":"If the steps above all look correct and the 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":"See what you can still debug",notExceedSizeLimit:gA,notExceedMainPkgSizeLimit:mA,notExceedIndependentPkgSizeLimit:vA,exceedSizeLimit:yA,exceedMainPkgSizeLimit:bA,exceedIndependentPkgSizeLimit:SA,launchModeDesc:wA,configFileCheck:CA,gameJsonCheckDesc:_A,pkgSizeCheckDesc:PA,mandatoryApiCheck:EA,mandatoryApiCheckDesc:kA,commonPkgSizeCheckDescTip:TA,unityPkgSizeCheckDescTip:OA,checkConfigPassed:xA,checkPkgSizePassed:DA,checkPkgSizeFailed:IA,checkConfigFailed:RA,performanceCheck:NA,checkPerformancePassed:AA,checkPerformanceFailed:LA,viewDoc:jA,expandCheckDetail:MA,closeCheckDetail:$A,gameProject:FA,gameMainPackageSize:zA,gameIndependentPackageSize:BA,gameTrustDomains:qA,gameTermsAndPrivacy:GA,gameServiceAgreement:WA,gamePrivacyPolicy:UA,termsLabel:HA,privacyLabel:VA,gameSize:KA,gameName:QA,gameIcon:XA,gameID:YA,gameDesc:ZA,getDevGameDetailNotFound:JA,getDevGameDetailFailed:eL,getDevGameDetailNotLogin:tL,notLoginTip:nL,docs:rL,quickStart:iL,jsApiList:oL,errorReference:sL,faq:aL,upload:lL,cancel:cL,gameAssetDescription:uL,uploadPlatformSuccess:dL,uploadPlatformFailed:pL,uploadPlatformDesc:fL,viewOnPlatform:hL,loginToUpload:gL,uploadGamePackageTip:mL,trustDomainEmptyTip:vL,scriptsSetupFailed:yL,resourcesSetupFailed:bL,policyDependencyTermsRequired:SL,policyDependencyPrivacyRequired:wL,policyDependencyTermsPrivacyRequired:CL,termsOfServiceEmptyTip:_L,privacyPolicyEmptyTip:PL,gameNameEmptyTip:EL,gameIconEmptyTip:kL,gameDescEmptyTip:TL,gameDetailNoPermission:OL,startConnectClientWS:xL,clientConnectTimeout:DL,gameDetailNotLogin:IL,gameLoginExpired:RL,login:NL,createRewardedVideoAd:AL,addShortcut:LL,startEntranceMission:jL,getShortcutMissionReward:ML,getEntranceMissionReward:$L,integrated:FL,notIntegrated:zL,checkApiSuccess:BL,checkApiFailed:qL,debugEnvSetupSuccess:GL,clientPreviewEnvSetupSuccess:WL,startToSendMetaToClient:UL,sendMetaToClientSuccess:HL,browserRemoteDebugDesc:VL,clientRealPreviewDesc:KL,"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:QL,scanQrcodeNoResponse:XL,confirm:YL,manualBindIPPlaceholder:ZL,"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:JL,manualBindClientDebugServiceTitle:ej,gotoCheck:tj,checkNetworkTitle:nj,manualBindIPInfo1:rj,manualBindIPInfo2:ij,back:oj,manualConnectStart:sj,connectivityCheck:aj,connectivityCheckTitle:lj,connectivityCheckWS:cj,connectivityCheckHTTP:uj,connectivityOK:dj,connectivityNotOK:pj,connectivityTimeout:fj,connectivityFailed:hj,connectivityMissingParams:gj,needDesc:mj,debugSettingDomainCheck:vj,debugSettingVConsole:yj,debugSettingDevInfoPanel:bj,debugSettingEnableVconsoleDesc:Sj,debugSettingEnableDevInfoPanelDesc:wj,topErrorSummary:Cj,topErrorTagRequired:_j,topErrorTagSuggested:Pj,topBasicInfoMissing:Ej,topBasicInfoNameField:kj,topBasicInfoIconField:Tj,topBasicInfoDescriptionField:Oj,topBasicInfoFieldJoiner:xj,topLoginStatusWarning:Dj,topErrorSuggestedActionTip:Ij,topErrorViewDetails:Rj,topErrorHideDetails:Nj,changelogFeature:Aj,changelogOptimize:Lj,changelogBugfix:jj,changelogLink:Mj,changelog:$j,changelogTarget:Fj,wasmSplit:zj,splitPrepare:Bj,splitCollect:qj,splitCode:Gj,rollback:Wj,startingPrepare:Uj,cancelPrepare:Hj,backgroundRun:Vj,preparingSplit:Kj,warningDuringPreparing:Qj,preparingSplitSuccess:Xj,preparingSplitFailed:Yj,retryPrepare:Zj,downloadPreparedWasmCode:Jj,downloadFailed:eM,retryDownload:tM,downloadSuccess:nM,downloadPreparedWasmCodeDesc:rM,splitDesc:iM,inputSplitDesc:oM,startPrepare:sM,processing:aM,updateWasmSplitConfig:lM,updateWasmSplitConfigSuccess:cM,updateWasmSplitConfigFailed:uM,compressPreparedWasmCodeSuccess:dM,compressPreparedWasmCodeFailed:pM,writeCompressPreparedWasmCode:fM,writeCompressPreparedWasmCodeSuccess:hM,writeCompressPreparedWasmCodeFailed:gM,fetchDownloadUrl:mM,fetchDownloadUrlSuccess:vM,fetchDownloadUrlFailed:yM,downloadPreparedWasmCodeSuccess:bM,downloadPreparedWasmCodeFailed:SM,startSplit:wM,cannotSplitTip:CM,collectDesc:_M,startCollect:PM,wasmSize:EM,collectedFuncCount:kM,totalFuncCount:TM,splitVersion:OM,splittingDesc:xM,cancelSplit:DM,getSplitResult:IM,retryGetSplitResult:RM,getSplitResultFailed:NM,splitSuccess:AM,downloadSplitResult:LM,downloadSplitResultFailed:jM,retryDownloadSplitResult:MM,downloadSplitResultSuccess:$M,downloadSplitResultTip:FM,start_download_android_main_wasm:zM,download_android_main_wasm_done:BM,start_compress_android_main_wasm:qM,compress_android_main_wasm_done:GM,start_download_android_sub_wasm_code:WM,download_android_sub_wasm_code_done:UM,start_compress_android_sub_wasm_code:HM,compress_android_sub_wasm_code_done:VM,start_download_ios_main_wasm:KM,download_ios_main_wasm_done:QM,start_compress_ios_main_wasm:XM,compress_ios_main_wasm_done:YM,start_download_ios_sub_wasm_code:ZM,download_ios_sub_wasm_code_done:JM,start_compress_ios_sub_wasm_code:e$,compress_ios_sub_wasm_code_done:t$,start_write_splited_wasm_br:n$,write_splited_wasm_done:r$,start_update_wasm_split_config:i$,update_wasm_split_config_done:o$,noWasmCode:s$,noWasmCodeDesc:a$,hasSplitedTitle:l$,hasSplitedDesc:c$,noSplitConfigTitle:u$,noSplitConfigDesc:d$,advancedGuide:p$,integrationAssistant:f$,"ia.title":"Integration Assistant","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.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 two phases: stage 1 only verifies the mini game package itself under the direct-play scene, and stage 2 uses a preview QR code to validate the card presentation and handoff path.","ia.directPlay.versionNotice":"Direct-play stage 2 debugging requires client version 45.3.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 and use the preview QR code to validate the direct-play card presentation and handoff.","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.","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 asset, 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 asset","ia.directPlay.stage2.selectedCard":"Selected card","ia.directPlay.stage2.selectedAsset":"Selected asset","ia.directPlay.stage2.cardName":"Card name: ","ia.directPlay.stage2.cardDesc":"Card description: ","ia.directPlay.stage2.cardScenario":"Scenario: ","ia.directPlay.stage2.cardStatus":"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":"Asset 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 asset","ia.directPlay.stage2.assetGroup.live":"Live asset","ia.directPlay.stage2.assetGroup.review":"In review asset","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: dynamic launcher card","ia.directPlay.stage2.create.cardDesc":"Card description","ia.directPlay.stage2.create.cardDescPlaceholder":"Example: dynamic card","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: strength_recovery","ia.directPlay.stage2.create.scenario.strengthRecovery":"Stamina recovery strength_recovery","ia.directPlay.stage2.create.scenario.recallScenario":"Fixed recall entry recall_scenario","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.overview.eyebrow":"Capability Map","ia.overview.title":"Capability Integration Assistant","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":"Identity 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.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."},g$="DevTool",m$="扫码开始本地调试",v$="设备连接成功",y$="调试服务已断开连接",b$="未连接设备",S$="Node",w$="浏览器",C$="客户端",_$="已连接",P$="未连接",E$="连接失败",k$="未知",T$="节点说明",O$="本机启动的调试服务(负责与 IDE/客户端建立通道、转发调试消息)",x$="当前打开 DevTool IDE 的浏览器页",D$="真机上的 TikTok 客户端调试服务(提供 HTTP/WS 能力)",I$="点表示该链路的连通状态;同一条边上 ws/http 分别显示在两侧以便区分",R$="网络诊断",N$="网络连通性诊断",A$="用于定位扫码卡住、连接失败、端口不可达等网络问题(仅在本机浏览器侧做检测)",L$="扫码没响应?点击这里进行诊断处理",j$="网络诊断",M$="TikTok 扫码无响应、局域网不通或代理复杂时,可先在这里快速定位问题。",$$="打开诊断",F$="一键检测",z$="手动连接",B$="手动绑定客户端调试服务",q$="当扫码链路不可用(代理/防火墙/多网卡)时,可通过手动填写客户端 IP 与端口进行连接。",G$="手动连接",W$="进入手动连接",U$="诊断结论",H$="先做一次完整检测",V$="当前还没有最新检测结果。建议先执行一键检测,判断问题是在本地 Node、客户端地址,还是局域网链路。",K$="如果你已经拿到客户端 IP 和端口,可以直接保存并检测,减少来回切换。",Q$="正在检测网络链路",X$="系统正在依次检查本地 Node 服务、客户端 HTTP 与客户端 WS,请稍等几秒。",Y$="检测期间会刷新四项链路结果,完成后会自动给出主结论。",Z$="缺少客户端调试地址",J$="当前还没有可用的客户端 IP / HTTP / WS 端口,先补齐这些信息,再判断是否是网络链路问题。",e3="本地调试服务没有准备好",t3="浏览器到本地 Node 服务的链路异常,优先排查 `ttmg dev` 是否运行,以及本机端口是否正常监听。",n3="本地 Node WebSocket 链路异常,通常意味着调试服务未启动完成,或本地监听端口异常。",r3="客户端链路整体不可达",i3="浏览器访问客户端的 HTTP 和 WS 都失败,既可能是同网段、代理、VPN/TUN 或防火墙问题,也可能是客户端调试服务尚未开启或当前端口并未监听。",o3="客户端 WS 链路异常",s3="客户端 HTTP 可达但 WS 不可达,问题更可能在 WS 端口、监听状态、客户端调试服务未完全开启或策略拦截上。",a3="没有发现明显网络异常",l3="当前四条核心链路都可达。如果问题仍存在,建议带着本页信息和截图继续排查上层逻辑。",c3="存在局部异常,需要继续核对",u3="当前不是典型的失败模式,建议先核对环境信息和端口值,再重新检测一次。",d3="优先确认客户端 IP、HTTP 端口、WS 端口是否和客户端加载页展示的一致。",p3="电脑端 IP",f3="WS 端口",h3="HTTP 端口",g3="电脑端",m3="客户端",v3="查看排错指南",y3="打开代理配置",b3="环境概览",S3="展示当前诊断所使用的电脑端与客户端地址信息。",w3="检测结果",C3="展示各链路的检测明细,可在需要时展开查看。",_3="IDE ↔ Node(HTTP)",P3="IDE ↔ Node(WS)",E3="IDE ↔ 客户端(HTTP)",k3="IDE ↔ 客户端(WS)",T3="诊断建议",O3="先按下面的建议处理,再回到上方重新检测,确认问题是否已经收敛。",x3="操作区域",D3="补充信息:如果连接成功,可返回扫码调试页面继续调试。",I3="手动连接已写入当前环境,并已自动触发完整检测。",R3="手动连接已提交,但快速连通性检查失败:",N3="当扫码未返回客户端地址,或需要手动指定客户端 IP 与端口时,可在此配置。",A3="建议下一步",L3="填写手动连接",j3="先补齐客户端 IP、HTTP 端口和 WS 端口,再保存并检测当前链路是否可达。",M3="返回扫码调试",$3="当前核心网络链路可达,可以回到首页重新扫码或继续当前调试流程。",F3="重启后重新检测",z3="请先确认 `ttmg dev` 正在运行,必要时重启本地调试服务,然后重新检测。",B3="重新检测当前环境,确认问题是否已经收敛。",q3="展开",G3="收起",W3="查看文档",U3="未检测到客户端调试地址",H3="请先扫码连接,或点击“手动绑定 IP”后填入客户端的 IP/端口。",V3="客户端连通失败(多为局域网/代理/防火墙问题)",K3="请确认手机与电脑同一 Wi‑Fi/网段;关闭全局代理/关闭 TUN;代理开启 Allow LAN;检查系统防火墙是否放行 Node.js。",Q3="本地调试服务不可用",X3="请确认已在项目根目录运行 `ttmg dev`,且端口未被占用。",Y3="如刚改过网络或代理配置,建议回到项目根目录重新执行 `ttmg dev`。",Z3="请先确认客户端当前停留在调试加载页,且客户端调试服务已经开启;手动填写的 HTTP / WS 端口需要与加载页展示的一致。",J3="未发现明显异常",e5="若仍然连接失败,请将本页“复制环境信息”和报错截图发到群里协助排查。",t5="HTTP 可达但 WS 不可达:优先检查 WS 端口是否正确、客户端调试服务是否在监听该端口。",n5="若 WS 超时:多为端口被防火墙/路由策略拦截,或电脑开了全局代理/TUN 影响局域网。",r5="HTTP 与 WS 均不可达:优先检查手机与电脑是否同一 Wi‑Fi/网段(公司网络可能有 AP 隔离)。",i5="关闭全局 VPN/TUN,代理需开启 Allow LAN;检查防火墙是否放行局域网访问。",o5="当前未拿到客户端 HTTP 地址或端口",s5="当前未拿到客户端 WS 地址或端口",a5="待检测",l5="检测中",c5="需确认",u5="等待检测",d5="检测中...",p5="网络可达",f5="提示",h5="如果电脑能 ping 通手机但 WS 连不上,通常是端口未监听或被防火墙/策略拦截(ICMP 与 TCP/WS 条件不同)。",g5="客户端连接已断开,请重新扫码连接",m5="Node 服务连接中断,请在终端重启调试服务",v5="切换调试设备",y5="无设备连接",b5="请先连接设备后再进行调试",S5="使用 TikTok 扫码调试",w5="切换扫码设备",C5="正在初始化调试环境...",_5="通知客户端初始化调试环境...",P5="获取客户端调试环境配置中...",E5="获取客户端调试环境配置失败",k5="客户端调试环境配置获取成功",T5="客户端调试环境初始化成功,等待上传游戏资源包...",O5="客户端调试环境初始化失败",x5="初始化 JS 运行时环境中...",D5="JS 运行时环境初始化成功",I5="重新上传代码包",R5="正在上传游戏资源包...",N5="游戏资源包上传中,进度:",A5="游戏资源包上传成功,客户端准备启动游戏...",L5="游戏资源包上传失败,请检查环境配置",j5="正在初始化游戏环境...",M5="游戏资源正在本地编译,请稍候...",$5="游戏资源编译中",F5="游戏资源已更新,是否重新上传进行调试?",z5="游戏资源更新成功!",B5="游戏环境初始化失败,请检查当前环境",q5="正在获取游戏调试环境配置",G5="游戏环境配置获取成功",W5="游戏环境配置获取失败",U5="正在获取游戏脚本",H5="浏览器调试环境初始化成功,上传游戏资源后将自动启动游戏",V5="游戏运行环境初始化成功,准备上传资源至客户端",K5="正在上传游戏包至客户端",Q5="游戏包上传成功,客户端正在加载游戏...",X5="游戏包上传失败",Y5="重新上传小游戏包",Z5="重新启动小游戏",J5="结束调试",eF="正在启动调试环境...",tF="本地 Node 调试服务连接失败",nF="正在连接本地 Node 调试服务...",rF="本地 Node 调试服务连接成功",iF="本地 Node 调试服务连接失败,请确认已在游戏根目录下运行 ttmg dev",oF="Node 调试服务已断开,请在终端重启调试服务",sF="客户端调试服务连接成功",aF="客户端调试服务连接失败,请重新扫码开启调试服务",lF="客户端调试服务已断开,请重新扫码连接",cF="未检测到可用于扫码的局域网 IP",uF="请确保电脑与手机连接到同一 Wi-Fi,并关闭 VPN/代理/防火墙拦截后重试;或使用手动绑定方式连接客户端调试服务。",dF="手动绑定 IP",pF="客户端调试环境启动失败,请重新扫码连接",fF="游戏脚本加载失败",hF="上传至手机",gF="暂不上传",mF="上传游戏包至平台",vF="正在扫描二维码...",yF="可切换设备扫码开启新的调试会话",bF="请确保您的 TikTok 账号已添加为调试应用的测试用户",SF="未登录",wF="启动模式名称",CF="选择启动包",_F="选择独立分包",PF="选择进入场景",EF="自定义启动参数",kF="示例:a=1&b=2",TF="扫码打开",OF="查询参数必须是字符串类型",xF="搜索",DF="推荐流直玩",IF="异形卡",RF="达人视频",NF="复访奖励 - 侧边栏",AF="推荐页广告",LF="桌面快捷方式",jF="聊天分享",MF="链接访问",$F="首包",FF="查询参数不应包含问号(?)前缀,请只输入参数部分",zF=`查询参数格式错误:发现空的键值对片段。请确保每个 '&' 符号两侧都有完整的 "key=value" 结构。`,BF="独立分包",qF="自定义启动模式",GF="不能为空",WF="保存",UF="当前启动模式",HF="新建启动模式",VF="扫码使用",KF="选择调试模式",QF="远程调试",XF="真机预览",YF="真机调试",ZF="应用",JF="本地 Node 调试服务配置信息获取成功",e6="获取本地调试服务配置信息失败,请检查 Node 服务是否正常启动",t6="正在加载调试环境依赖脚本资源",n6="依赖脚本资源加载成功",r6="依赖脚本资源加载失败,请重新扫码开启调试服务",i6="依赖脚本内容为空,请重新扫码开启调试服务",o6="依赖脚本资源加载并初始化成功",s6="游戏资源编译成功!请使用手机扫码调试。",a6="游戏资源编译成功!",l6="开始调试",c6="项目概览",u6="在本地调试阶段,您可以快速查看当前小游戏的基本信息,包括:游戏名称、图标、Client key、描述、整包大小、首包大小、独立分包大小、信任域名、服务条款、隐私政策等。",d6="通过提前检查这些核心信息,能够及时发现潜在问题,确保在正式发布前,项目状态符合平台要求,减少上线后的风险和返工。",p6="启动模式",f6="上传发布",h6="默认启动模式",g6="新建启动模式",m6="未超过项目大小 {{limit}} 限制",v6="未超过首包大小 {{limit}} 限制",y6="未超过独立分包大小 {{limit}} 限制",b6="超过项目大小 {{limit}} 限制",S6="超过首包大小 {{limit}} 限制",w6="超过独立分包大小 {{limit}} 限制",C6="通过设置启动模式,您可以灵活选择游戏的调试模式、启动包、进入场景以及启动参数,满足不同测试和上线需求。请根据实际需求完成相关配置,确保游戏能够正常启动并进入预期场景。",_6="3. 配置文件检查",P6="确保分包文件路径配置正确,所有路径都能正常访问,避免后续加载失败。",E6="1. 包体大小检查",k6="整个游戏包大小需控制在 {{projectSize}} 以内,首包大小不能超过 {{mainPackageSize}},独立分包大小不能超过 {{independentPackageSize}}。",T6="整个游戏包大小需控制在 {{projectSize}} 以内,无其他额外限制。",O6="2. 必接能力检查",x6="检查游戏是否已集成必要的 API 能力,保证小游戏在 TikTok 中有更好的用户体验和转化效果。",D6="配置文件检查通过",I6="包体大小检查通过",R6="包体大小检查失败",N6="配置文件检查失败",A6="性能检查",L6="性能检查通过",j6="性能检查未通过",M6="查看文档",$6="展开",F6="收起",z6="游戏项目",B6="游戏首包",q6="开发者选项",G6="调试时允许请求未在平台配置的域名。",W6="使用模拟广告结果调试广告场景。",U6="支付结果走沙盒环境,便于调试支付结果相关场景。",H6="开启广告 Mock",V6="开启支付 Mock",K6="📢 发送本地调试设至客户端...",Q6="确定要删除{{name}}启动模式吗?",X6="游戏名称",Y6="游戏图标",Z6="Client key",J6="游戏描述",e8="游戏大小",t8="首包大小",n8="独立分包大小",r8="信任域名",i8="Terms & Privacy",o8="Terms & Privacy - Terms URL",s8="Terms & Privacy - Privacy URL",a8="Terms of Service URL",l8="Privacy policy URL",c8="确保所有可能触发网络请求的域名都已添加到信任域名列表中,避免因域名未配置而导致的网络请求失败。",u8="确认 Terms & Privacy(Terms URL)已填写且有效,用户在使用游戏时需要同意相关条款。",d8="确认 Terms & Privacy(Privacy URL)已填写且有效,用户在使用游戏时需要同意相关条款。",p8="查询参数格式错误:{{pair}} 缺少等号(=)或值为空。请使用 key=value 格式,且值不能为空。",f8="查询参数格式错误:键不能为空。发现 {{pair}}",h8="查询参数中发现重复的键:{{key}}。每个键必须是唯一的。",g8="查询参数格式错误:键 {{key}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",m8="查询参数格式错误:值 {{value}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",v8="查询参数格式错误:键值对 {{pair}} 包含无效的 URL 编码字符。请使用正确的编码格式。",y8="获取游戏详情失败,请稍后重试。",b8="当前账号未登录,无法获取游戏详情。请先在控制台执行 【ttmg login】命令,使用开发者平台账号登录后,再运行 【ttmg dev】 命令以开启调试模式。",S8="你可以通过在控制台输入 `ttmg login` 命令,并使用开发者平台的账号和密码进行登录。",w8="文档",C8="快速开始",_8="API 参考",P8="错误代码参考",E8="常见问题",k8="上传",T8="取消",O8="添加资源描述",x8="上传成功",D8="上传失败",I8="成功上传游戏资源到平台,平台会对资源进行校验并部署,去平台查看上传后的预览版本。",R8="去平台查看",N8="只有在命令行完成登录后,调试页面的游戏包上传功能才可使用。请先在控制台执行 `ttmg login`,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",A8="上传当前游戏包至平台",L8="当前尚未在平台设置信任域名。只有已填写到平台列表中的域名,才允许在运行时发起网络请求;如果游戏会请求外部域名,请按需补充对应配置。",j8="调试环境脚本初始化失败,请扫码重试",M8="游戏资源上传失败,请扫码重试",$8="当前游戏未配置 Terms & Privacy(Terms URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",F8="当前游戏未配置 Terms & Privacy(Privacy URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",z8="当前游戏未配置 Terms & Privacy(Terms URL 和 Privacy URL)。login/authorize 能力依赖这两个配置,缺失时会导致开发调试失败,请先在平台补充对应 URL。",B8="当前尚未在平台设置 Terms & Privacy(Terms URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",q8="当前尚未在平台设置 Terms & Privacy(Privacy URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",G8="当前尚未在平台配置游戏名称。请在提审前完成补充,避免审核阶段被拒审。",W8="当前尚未在平台配置游戏图标。请在提审前完成补充,避免审核阶段被拒审。",U8="当前尚未在平台配置游戏描述。请确保在游戏上线前,在平台完成描述填写,以保证可以顺利发布。",H8="开始连接客户端 WebSocket 服务,👉👉👉 {{wsURL}}...",V8="客户端 WebSocket 服务连接超时,检查电脑和手机是否在同一局域网下",K8="当前账号未登录,无法获取游戏详情。请先在控制台执行 `ttmg login` 命令,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",Q8="当前账号登录过期,请重新登录。",X8="当前游戏 ID {{clientKey}} 不存在,无法正常开启调试,请检查修改后重试。",Y8="当前账号无权限查看 ID {{clientKey}} 游戏详情,请在开发者平台申请此游戏的开发权限后,再运行 `ttmg dev` 命令以开启调试模式。",Z8="获取游戏详情失败,请稍后重试。",J8="用户静默登录",e7="激励视频广告",t7="添加桌面快捷方式",n7="获取桌面快捷方式奖励",r7="跳转到个人主页侧边栏",i7="获取个人主页侧边栏奖励",o7="已集成!",s7="未集成!",a7="必接能力检查通过",l7="必接能力检查未通过",c7="调试环境已完成初始化,在浏览器控制台中查看日志进行游戏开发与调试...",u7="调试环境已初始化,通过客户端 vConsole 日志面板查看日志进行游戏开发与调试...",d7="开始向客户端发送游戏元数据,完成后客户端将开始启动游戏...",p7="向客户端发送游戏元数据成功,客户端将开始启动游戏...",f7="1. 浏览器远程调试:先在浏览器中初始化远程调试环境,客户端连接后即可开始调试。此模式下需要将代码包上传到客户端,但调试过程基于浏览器的能力进行远程调试。",h7="2. 客户端真机预览:将本地的游戏代码上传到客户端,在真实设备上进行预览与调试,直接验证真机表现与兼容性。",g7="手动绑定客户端调试服务地址",m7="无效的端口号,请输入正确的端口号",v7="若扫码长时间无响应,手动绑定客户端调试服务",y7="确认",b7="请输入手机端 IP 地址",S7="开始上传",w7="去检查",C7="检查网络",_7="1. 支持手动连接客户端调试服务,用于解决因手机与电脑处于不同网络/代理环境而导致的连接失败问题。",P7="2. 手动连接客户端调试服务仅支持 TikTok Android 42.9 及以上版本;iOS 暂不支持。",E7="返回",k7="开始连接",T7="检测连通性",O7="连通性检测结果",x7="客户端 WebSocket",D7="客户端 HTTP",I7="可用",R7="不可用",N7="超时",A7="连接失败",L7="请先填写 IP 和端口",j7="上传之前先填写当前游戏包描述",M7="展示 vConsole",$7="展示开发信息面板",F7="关闭域名校验",z7="在客户端查看 vConsole 运行日志。",B7="在客户端查看开发信息与运行统计。",q7="‼️ 检测到 {{count}} 条问题,每条已标注为「卡点」或「建议」。",G7="卡点",W7="建议",U7="当前游戏缺少基础信息:{{fields}}。",H7="标题(Name)",V7="图标(Icon)",K7="描述(Description)",Q7="、",X7="当前未登录开发者账号:上传功能不可用,且网络请求可能被拦截。若需临时联调,请在开发者选项中关闭域名校验。",Y7="请在提审之前完成问题处理,避免审核阶段被拒审。",Z7="查看详情",J7="收起详情",ez="新增功能",tz="功能优化",nz="问题修复",rz="了解如何使用",iz="更新记录",oz="新增/优化功能适用 TikTok 版本",sz="Wasm 分包",az="分包预处理",lz="收集函数",cz="代码分包",uz="回滚分包",dz="正在发起分包预处理...",pz="取消分包预处理",fz="后台运行",hz="分包预处理中,需要一些时间...",gz="期间请不要修改本地游戏包体,否则会造成分包预处理失败",mz="分包预处理成功!",vz="分包预处理失败!",yz="请点击重试",bz="下载预处理文件",Sz="下载失败",wz="请点击重试",Cz="下载成功",_z="下载预处理文件后,即可在本地进行代码分包。",Pz="分包描述",Ez="请输入分包描述",kz="开始预处理",Tz="正在处理...",Oz="获取下载 URL",xz="获取下载 URL 成功",Dz="获取下载 URL 失败",Iz="下载预处理文件成功",Rz="下载预处理文件失败",Nz="更新 Wasm 分包配置",Az="更新 Wasm 分包配置成功",Lz="更新 Wasm 分包配置失败",jz="压缩预处理文件成功",Mz="压缩预处理文件失败",$z="写入压缩预处理文件",Fz="写入压缩预处理文件成功",zz="写入压缩预处理文件失败",Bz="开始分包",qz="当前收集函数数量不足,至少需要占所有函数数量的 8% 以上才可开始分包",Gz="当前本地项目已经支持 wasm 分包,请用 TikTok 客户端扫描二维码,开始收集函数,请支持完成加载环节、游戏教学等前期内容。",Wz="开始收集函数",Uz="Wasm 文件大小",Hz="总函数数量",Vz="当前收集函数数量",Kz="分包版本号",Qz="分包处理中,可能需要一些时间,请在分包处理完成后点击下载分包。",Xz="取消分包",Yz="分包处理成功,开始获取下载结果...",Zz="重试获取下载结果",Jz="获取下载结果失败,请点击重试。",eB="分包处理成功!",tB="下载分包文件",nB="分包下载失败,请点击重试。",rB="重试下载分包文件",iB="分包下载成功!",oB="本地可使用真机扫描调试二维码,体验分包后的加载流程,确认游戏无异常后,可将当前目录下的文件上传至开发者平台,进行测试和发布",sB="正在下载安卓分包主文件...",aB="下载安卓分包主文件成功",lB="正在压缩安卓分包主文件...",cB="压缩安卓分包主文件成功",uB="正在下载安卓分包代码...",dB="下载安卓分包代码成功",pB="正在压缩安卓分包代码...",fB="压缩安卓分包代码成功",hB="正在下载 iOS 分包主文件...",gB="下载 iOS 分包主文件成功",mB="正在压缩 iOS 分包主文件...",vB="压缩 iOS 分包主文件成功",yB="正在下载 iOS 分包代码...",bB="下载 iOS 分包代码成功",SB="正在压缩 iOS 分包代码...",wB="压缩 iOS 分包代码成功",CB="正在写入分包文件...",_B="写入分包文件成功",PB="正在更新分包配置...",EB="更新分包配置成功",kB="未发现 Wasm 代码包",TB="未在项目中发现 wasmcode/[hash].webgl.wasm.code.unityweb.wasm.br 文件,请先通过游戏引擎打包项目后再进行 Wasm 分包操作。",OB="当前项目已完成 Wasm 分包,可直接压缩当前代码包后上传至平台",xB="想放弃本次 Wasm 分包操作吗?",DB="当前项目未开启 Wasm 分包功能",IB="当前项目未开启 Wasm 分包功能,请先在项目配置中开启后再进行操作。",RB="深度指南",NB="接入助手",AB={title:g$,scanQRcodeTitle:m$,deviceConnected:v$,serverDisconnected:y$,deviceDisconnected:b$,connectStatusNode:S$,connectStatusBrowser:w$,connectStatusClient:C$,connectStatusConnected:_$,connectStatusDisconnected:P$,connectStatusFailed:E$,connectStatusUnknown:k$,connectStatusLegendTitle:T$,connectStatusLegendNode:O$,connectStatusLegendBrowser:x$,connectStatusLegendClient:D$,connectStatusLegendProto:I$,netDiagNav:R$,netDiagTitle:N$,netDiagSubtitle:A$,netDiagEntryScanNoResponse:L$,netDiagEntryTitle:j$,netDiagEntryDesc:M$,netDiagEntryAction:$$,netDiagRunAll:F$,netDiagManualConnectAndCheck:z$,netDiagManualBindTitle:B$,netDiagManualBindDesc:q$,netDiagManualBindEntry:G$,netDiagManualConnectGo:W$,netDiagSummaryTitle:U$,netDiagSummaryIdleTitle:H$,netDiagSummaryIdleDesc:V$,netDiagSummaryIdleHint:K$,netDiagSummaryRunningTitle:Q$,netDiagSummaryRunningDesc:X$,netDiagSummaryRunningHint:Y$,netDiagSummaryMissingClientTitle:Z$,netDiagSummaryMissingClientDesc:J$,netDiagSummaryNodeTitle:e3,netDiagSummaryNodeDesc:t3,netDiagSummaryNodeWsDesc:n3,netDiagSummaryClientBothTitle:r3,netDiagSummaryClientBothDesc:i3,netDiagSummaryClientWsTitle:o3,netDiagSummaryClientWsDesc:s3,netDiagSummaryHealthyTitle:a3,netDiagSummaryHealthyDesc:l3,netDiagSummaryPartialTitle:c3,netDiagSummaryPartialDesc:u3,netDiagSummaryPartialHint:d3,netDiagEnvIP:p3,netDiagEnvWsPort:f3,netDiagEnvHttpPort:h3,netDiagComputerGroup:g3,netDiagClientGroup:m3,netDiagOpenTroubleshoot:v3,netDiagOpenProxy:y3,netDiagEnvTitle:b3,netDiagEnvSectionDesc:S3,netDiagChecksTitle:w3,netDiagCheckSectionDesc:C3,netDiagCheckNodeHttp:_3,netDiagCheckNodeWs:P3,netDiagCheckClientHttp:E3,netDiagCheckClientWs:k3,netDiagSuggestTitle:T3,netDiagSuggestSectionDesc:O3,netDiagActionsTitle:x3,netDiagSuccessHint:D3,netDiagManualConnectResultSuccess:I3,netDiagManualConnectResultError:R3,netDiagManualSectionDesc:N3,netDiagNextStepTitle:A3,netDiagActionManualConnect:L3,netDiagActionManualConnectDesc:j3,netDiagActionBackToScan:M3,netDiagActionBackToScanDesc:$3,netDiagActionRerunAfterRestart:F3,netDiagActionRerunAfterRestartDesc:z3,netDiagActionRunAllDesc:B3,netDiagExpand:q3,netDiagCollapse:G3,netDiagOpenDoc:W3,netDiagSuggestNoClientTitle:U3,netDiagSuggestNoClientDesc:H3,netDiagSuggestLanTitle:V3,netDiagSuggestLanDesc:K3,netDiagSuggestNodeTitle:Q3,netDiagSuggestNodeDesc:X3,netDiagSuggestNodeRestart:Y3,netDiagSuggestClientDebugService:Z3,netDiagSuggestOkTitle:J3,netDiagSuggestOkDesc:e5,netDiagSuggestHttpOkWsFail1:t5,netDiagSuggestHttpOkWsFail2:n5,netDiagSuggestBothFail1:r5,netDiagSuggestBothFail2:i5,netDiagMissingClientHttp:o5,netDiagMissingClientWs:s5,netDiagStatusIdle:a5,netDiagStatusRunning:l5,netDiagStatusWarning:c5,netDiagCheckIdleDetail:u5,netDiagCheckRunningDetail:d5,netDiagCheckReachableDetail:p5,netDiagQuickHintTitle:f5,netDiagQuickHintDesc:h5,clientDisconnected:g5,nodeDisconnected:m5,switchDevice:v5,disConnectionStatusTitle:y5,disConnectionStatusDesc:b5,scanQRCode:S5,switchScanDevice:w5,startDebug:C5,initClientEnv:_5,fetchClientDevConfig:P5,fetchClientDevConfigFailed:E5,fetchClientDevConfigSuccess:k5,initClientEnvSuccess:T5,initClientEnvFailed:O5,startInitJSDevEnv:x5,initJSDevEnvSuccess:D5,uploadBtn:I5,uploadStart:R5,uploadProcess:N5,uploadSuccess:A5,uploadError:L5,setupDevEnv:j5,gameResourceCompiling:M5,gameResourceCompilingTitle:$5,gameResourceChange:F5,gameResourceUpdated:z5,devEnvSetupError:B5,getDevEnvStart:q5,getDevEnvSuccess:G5,setDevEnvFailed:W5,getDevScriptsStart:U5,setDevScriptsSuccess:H5,devEnvSetupSuccess:V5,uploadGameStart:K5,uploadGameSuccess:Q5,uploadGameFailed:X5,reUploadGame:Y5,relaunchGame:Z5,closeGame:J5,loading:eF,nodeServerConnectedFailed:tF,nodeServerStartConnect:nF,nodeServerConnectedSuccess:rF,nodeServerStartError:iF,nodeServerDisconnect:oF,clientConnectedSuccess:sF,clientServerStartError:aF,clientServerDisconnected:lF,networkNoLanIPTitle:cF,networkNoLanIPDesc:uF,networkNoLanIPAction:dF,startDebugFailed:pF,getDevScriptsFailed:fF,uploadToClient:hF,notUpload:gF,uploadToPlatform:mF,"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":"已上传成功,正在轮询平台资产状态,当前状态:{{status}}","uploadGame.progress.previewTitle":"正在获取平台预览二维码","uploadGame.progress.previewDesc":"上传已成功,正在轮询平台预览二维码,请稍候。","uploadGame.progress.statusPending":"处理中","uploadGame.progress.badgeUploading":"上传中","uploadGame.progress.badgeChecking":"校验中","uploadGame.progress.badgePreview":"生成预览码","uploadGame.progress.step1":"打包并上传代码包","uploadGame.progress.step2":"等待平台资源状态变为 ready","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":"上传接口未返回 asset_id,无法继续校验平台状态。","uploadGame.failure.assetTimeout":"在限定时间内未等到目标 asset 进入 ready 状态,请稍后在平台查看。","uploadGame.failure.assetStatus":"目标 asset 当前状态为 {status},尚未进入 ready,暂不展示预览二维码。","uploadGame.failure.previewTimeout":"asset 已进入 ready,但在限定时间内未拿到预览二维码,请稍后重试。","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:vF,scanQRCodeChange:yF,scanQRCodeDesc:bF,notLogin:SF,launchModeName:wF,selectLaunchPkg:CF,selectIndependentPkg:_F,selectScene:PF,launchQueries:EF,launchQueriesDesc:kF,scene_scan_qrcode:TF,queriesStringMustBeString:OF,scene_search:xF,scene_fyf_promotion_direct_feed_play:DF,scene_fyf_card:IF,scene_anchor:RF,scene_center:NF,scene_ad:AF,scene_shortcut:LF,scene_sharing:jF,scene_link:MF,mainPackage:$F,queriesStringNoQuestionMark:FF,queriesStringEmptyPair:zF,independentPackage:BF,customizeLaunchMode:qF,notEmpty:GF,save:WF,delete:"删除",selectLaunchMode:UF,createNewMode:HF,saveAndUse:VF,selectDebugMode:KF,browserDebugMode:QF,clientPreviewMode:XF,clientDebugMode:YF,use:ZF,getDevGameConfigSuccess:JF,getDevGameConfigFailed:e6,startLoadDevScripts:t6,loadDevScriptsSuccess:n6,loadDevScriptsFailed:r6,loadDevScriptsEmpty:i6,loadDevScriptsInitSuccess:o6,gameResourceCompileSuccess:s6,gameResourceCompileSuccessTitle:a6,scanQRCode2Debug:l6,projectInfo:c6,projectInfoDesc:u6,projectInfoDescTip:d6,"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.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":"如果你已经能正常登录,但这里只是无法读取项目概览,通常更接近权限问题,而不是本地工程问题。建议先确认账号归属和开发者平台上的项目授权关系。","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:p6,codePreCheck:f6,normalLaunchMode:h6,createdLaunchMode:g6,notExceedSizeLimit:m6,notExceedMainPkgSizeLimit:v6,notExceedIndependentPkgSizeLimit:y6,exceedSizeLimit:b6,exceedMainPkgSizeLimit:S6,exceedIndependentPkgSizeLimit:w6,launchModeDesc:C6,configFileCheck:_6,gameJsonCheckDesc:P6,pkgSizeCheckDesc:E6,commonPkgSizeCheckDescTip:k6,unityPkgSizeCheckDescTip:T6,mandatoryApiCheck:O6,mandatoryApiCheckDesc:x6,checkConfigPassed:D6,checkPkgSizePassed:I6,checkPkgSizeFailed:R6,checkConfigFailed:N6,performanceCheck:A6,checkPerformancePassed:L6,checkPerformanceFailed:j6,viewDoc:M6,expandCheckDetail:$6,closeCheckDetail:F6,gameProject:z6,gameMainPackage:B6,devOptions:q6,devOptionsDomainCheckDesc:G6,debugSettingAdMockDesc:W6,debugSettingIAPMockDesc:U6,debugSettingAdMock:H6,debugSettingIAPMock:V6,sendLocalDebugSetting:K6,deleteLaunchModeConfirm:Q6,gameName:X6,gameIcon:Y6,gameID:Z6,gameDesc:J6,gameSize:e8,gameMainPackageSize:t8,gameIndependentPackageSize:n8,gameTrustDomains:r8,gameTermsAndPrivacy:i8,gameServiceAgreement:o8,gamePrivacyPolicy:s8,termsLabel:a8,privacyLabel:l8,gameTrustDomainsDesc:c8,gameServiceAgreementDesc:u8,gamePrivacyPolicyDesc:d8,queriesStringMissingEqual:p8,queriesStringEmptyKey:f8,queriesStringDuplicateKey:h8,queriesStringInvalidKeyChars:g8,queriesStringInvalidValueChars:m8,queriesStringInvalidEncoding:v8,getDevGameDetailFailed:y8,getDevGameDetailNotLogin:b8,notLoginTip:S8,docs:w8,quickStart:C8,jsApiList:_8,errorReference:P8,faq:E8,upload:k8,cancel:T8,gameAssetDescription:O8,uploadPlatformSuccess:x8,uploadPlatformFailed:D8,uploadPlatformDesc:I8,viewOnPlatform:R8,loginToUpload:N8,uploadGamePackageTip:A8,trustDomainEmptyTip:L8,scriptsSetupFailed:j8,resourcesSetupFailed:M8,policyDependencyTermsRequired:$8,policyDependencyPrivacyRequired:F8,policyDependencyTermsPrivacyRequired:z8,termsOfServiceEmptyTip:B8,privacyPolicyEmptyTip:q8,gameNameEmptyTip:G8,gameIconEmptyTip:W8,gameDescEmptyTip:U8,startConnectClientWS:H8,clientConnectTimeout:V8,gameDetailNotLogin:K8,gameLoginExpired:Q8,getDevGameDetailNotFound:X8,gameDetailNoPermission:Y8,gameDetailServerError:Z8,login:J8,createRewardedVideoAd:e7,addShortcut:t7,getShortcutMissionReward:n7,startEntranceMission:r7,getEntranceMissionReward:i7,integrated:o7,notIntegrated:s7,checkApiSuccess:a7,checkApiFailed:l7,debugEnvSetupSuccess:c7,clientPreviewEnvSetupSuccess:u7,startToSendMetaToClient:d7,sendMetaToClientSuccess:p7,browserRemoteDebugDesc:f7,clientRealPreviewDesc:h7,"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:g7,"debug.guide.manualBindIPInvalid":"无效的 IP 地址,请输入正确的 IP 地址",invalidPort:m7,scanQrcodeNoResponse:v7,confirm:y7,manualBindIPPlaceholder:b7,"debug.guide.manualBindIPDesc1":"1. 请确认手机与电脑在同一局域网下,若不在同一局域网下,请先连接至同一局域网;","debug.guide.manualBindIPDesc2":"2. 手动输入客户端加载页提供的调试服务地址和端口进行连接","debug.guide.manualBindIPDesc3":"3. 只支持 Android 42.9 及以上版本,iOS 暂不支持",startUpload:S7,gotoCheck:w7,checkNetworkTitle:C7,manualBindIPInfo1:_7,manualBindIPInfo2:P7,back:E7,manualConnectStart:k7,connectivityCheck:T7,connectivityCheckTitle:O7,connectivityCheckWS:x7,connectivityCheckHTTP:D7,connectivityOK:I7,connectivityNotOK:R7,connectivityTimeout:N7,connectivityFailed:A7,connectivityMissingParams:L7,needDesc:j7,debugSettingVConsole:M7,debugSettingDevInfoPanel:$7,debugSettingDomainCheck:F7,debugSettingEnableVconsoleDesc:z7,debugSettingEnableDevInfoPanelDesc:B7,topErrorSummary:q7,topErrorTagRequired:G7,topErrorTagSuggested:W7,topBasicInfoMissing:U7,topBasicInfoNameField:H7,topBasicInfoIconField:V7,topBasicInfoDescriptionField:K7,topBasicInfoFieldJoiner:Q7,topLoginStatusWarning:X7,topErrorSuggestedActionTip:Y7,topErrorViewDetails:Z7,topErrorHideDetails:J7,changelogFeature:ez,changelogOptimize:tz,changelogBugfix:nz,changelogLink:rz,changelog:iz,changelogTarget:oz,wasmSplit:sz,splitPrepare:az,splitCollect:lz,splitCode:cz,rollback:uz,startingPrepare:dz,cancelPrepare:pz,backgroundRun:fz,preparingSplit:hz,warningDuringPreparing:gz,preparingSplitSuccess:mz,preparingSplitFailed:vz,retryPrepare:yz,downloadPreparedWasmCode:bz,downloadFailed:Sz,retryDownload:wz,downloadSuccess:Cz,downloadPreparedWasmCodeDesc:_z,splitDesc:Pz,inputSplitDesc:Ez,startPrepare:kz,processing:Tz,fetchDownloadUrl:Oz,fetchDownloadUrlSuccess:xz,fetchDownloadUrlFailed:Dz,downloadPreparedWasmCodeSuccess:Iz,downloadPreparedWasmCodeFailed:Rz,updateWasmSplitConfig:Nz,updateWasmSplitConfigSuccess:Az,updateWasmSplitConfigFailed:Lz,compressPreparedWasmCodeSuccess:jz,compressPreparedWasmCodeFailed:Mz,writeCompressPreparedWasmCode:$z,writeCompressPreparedWasmCodeSuccess:Fz,writeCompressPreparedWasmCodeFailed:zz,startSplit:Bz,cannotSplitTip:qz,collectDesc:Gz,startCollect:Wz,wasmSize:Uz,totalFuncCount:Hz,collectedFuncCount:Vz,splitVersion:Kz,splittingDesc:Qz,cancelSplit:Xz,getSplitResult:Yz,retryGetSplitResult:Zz,getSplitResultFailed:Jz,splitSuccess:eB,downloadSplitResult:tB,downloadSplitResultFailed:nB,retryDownloadSplitResult:rB,downloadSplitResultSuccess:iB,downloadSplitResultTip:oB,start_download_android_main_wasm:sB,download_android_main_wasm_done:aB,start_compress_android_main_wasm:lB,compress_android_main_wasm_done:cB,start_download_android_sub_wasm_code:uB,download_android_sub_wasm_code_done:dB,start_compress_android_sub_wasm_code:pB,compress_android_sub_wasm_code_done:fB,start_download_ios_main_wasm:hB,download_ios_main_wasm_done:gB,start_compress_ios_main_wasm:mB,compress_ios_main_wasm_done:vB,start_download_ios_sub_wasm_code:yB,download_ios_sub_wasm_code_done:bB,start_compress_ios_sub_wasm_code:SB,compress_ios_sub_wasm_code_done:wB,start_write_splited_wasm_br:CB,write_splited_wasm_done:_B,start_update_wasm_split_config:PB,update_wasm_split_config_done:EB,noWasmCode:kB,noWasmCodeDesc:TB,hasSplitedTitle:OB,hasSplitedDesc:xB,noSplitConfigTitle:DB,noSplitConfigDesc:IB,advancedGuide:RB,integrationAssistant:NB,"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.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":"直玩卡联调建议拆成两个阶段:阶段一只调试小游戏包本身,确认在推荐流直玩 scene 下能正常启动;阶段二再用预览二维码验证卡面和承接路径。","ia.directPlay.versionNotice":"直玩阶段二调试能力依赖客户端 45.3.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.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":"例如:独立分包动态卡","ia.directPlay.stage2.create.cardDesc":"卡片描述","ia.directPlay.stage2.create.cardDescPlaceholder":"例如:动态卡","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":"例如:strength_recovery","ia.directPlay.stage2.create.scenario.strengthRecovery":"体力恢复 strength_recovery","ia.directPlay.stage2.create.scenario.recallScenario":"回访固定入口 recall_scenario","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.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.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 的统一复现入口。"},hC="en-US",gC="__TTMG_IDE_LANG__",Ja={"en-US":h$,"zh-CN":AB};function mC(){const o=navigator.language;return o in Ja?o:o.split("-")[0]==="zh"?"zh-CN":hC}function vC(o){if(!o)return;if(o in Ja)return o;const e=o.split("-")[0];if(e==="zh")return"zh-CN";if(e==="en")return"en-US"}function yC(){try{if(typeof window>"u")return;const o=window.localStorage.getItem(gC);return vC(o)}catch{return}}function LB(o){try{if(typeof window>"u")return;window.localStorage.setItem(gC,o)}catch{}}let kh=yC()??mC();function jB(o){kh=vC(o)??yC()??mC(),LB(kh)}const D=(o,e)=>{let n=Ja[kh][o]??Ja[hC][o];return e&&Object.entries(e).forEach(([r,s])=>{n=n.replace(new RegExp(`{{${r}}}`,"g"),s)}),n};function MB(o){return new URLSearchParams(window.location.search).get(o)}function $B(o){const e={};if(!o||typeof o!="string")return e;const r=(o.startsWith("?")?o.substring(1):o).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 gU(o){if(!o)return{isValid:!0,message:""};if(typeof o!="string")return{isValid:!1,message:D("queriesStringMustBeString")};if(o.trim()==="")return{isValid:!0,message:""};if(o.startsWith("?"))return{isValid:!1,message:D("queriesStringNoQuestionMark")};const e=o.split("&"),n=new Set;for(const r of e){if(r.trim()==="")return{isValid:!1,message:D("queriesStringEmptyPair")};const s=r.indexOf("=");if(s===-1||s===r.length-1)return{isValid:!1,message:D("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:D("queriesStringEmptyKey",{pair:r})};if(n.has(u))return{isValid:!1,message:D("queriesStringDuplicateKey",{key:u})};n.add(u);const h=/^[\w\-.!~*'()]+$/,v=/[\x00-\x1F\x7F]/;if(!h.test(u)&&u.length>0){if(v.test(u))return{isValid:!1,message:D("queriesStringInvalidKeyChars",{key:u})};if(/[^a-zA-Z0-9\-.!~*'()_]/.test(u))return{isValid:!1,message:D("queriesStringInvalidKeyChars",{key:u})}}if(v.test(p))return{isValid:!1,message:D("queriesStringInvalidValueChars",{value:p})}}catch(u){return{isValid:!1,message:D("queriesStringInvalidEncoding",{pair:r,error:u.message})}}}return{isValid:!0,message:""}}function kl(o,...e){Number(MB("enableLog"))&&console[o](...e)}const Fn=(...o)=>kl("log",...o);Fn.info=(...o)=>kl("info",...o);Fn.warn=(...o)=>kl("warn",...o);Fn.error=(...o)=>kl("error",...o);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 FB{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?Fn("Store has been reset/initialized."):Fn("Store updated with batch:",e)}}const Ee=new FB,bC=()=>`http://${Ee.get("clientHost")}:${Ee.get("clientHttpPort")}`,SC="__TTMG_LAUNCH_MODE__",wC="__TTMG_CHANGELOG_LAST_SEEN_VERSION__",or={browserDebug:"browserDebug",clientPreview:"clientPreview",clientDebug:"clientDebug"},Ua={name:D("normalLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"normal",scene:"scan_qrcode"};D("clientPreviewMode");const Ha={name:D("createdLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"created",scene:"scan_qrcode"},Cg="game";D("browserDebugMode"),or.browserDebug,D("clientPreviewMode"),or.clientPreview;const CC="__TTMG_DEBUG_SETTING__";class zB{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 Oe=new zB,BB=6e5,qB={error:{errorCode:-1,errorMsg:"Request failed"},isSuccess:!1,msg:"Request failed"},GB={error:{errorCode:-1,errorMsg:"Request timeout"},isSuccess:!1,msg:"Request timeout"};function Qi(o){const{url:e,method:n="GET",data:r=void 0,headers:s={},timeout:l=BB}=o;let c=e;const u={method:n,headers:{"Content-Type":"application/json",...s}};if(n.toUpperCase()==="GET"&&r){const v=new URLSearchParams(r).toString();c+=(c.includes("?")?"&":"?")+v}else r&&(u.body=JSON.stringify(r));const p=new AbortController,h=setTimeout(()=>p.abort(),l);return u.signal=p.signal,fetch(c,u).then(async v=>{if(!v.ok)return{error:{errorCode:-1,errorMsg:v.statusText},isSuccess:!1,msg:v.statusText};const y=v.headers.get("content-type");if(y&&y.includes("application/json"))try{const b=await v.text();return b.trim()?JSON.parse(b):{isSuccess:!0,data:{}}}catch(b){throw new Error(`Failed to parse JSON response: ${b instanceof Error?b.message:"Unknown error"}`)}else return v.text()}).catch(v=>v instanceof DOMException&&v.name==="AbortError"?GB:qB).finally(()=>{clearTimeout(h)})}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 WB(o){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}=o||es,h=bC(),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:Ee.get("clientKey"),minis_url:`https://minis-${Ee.get("clientKey")}-vdebug-minigame.tiktok-minis.us/`,package_config:JSON.stringify({packages:Ee.get("packages")}),allowed_domains:s||[],status_code:0,status_msg:"",update_time:n,description:p,scopes:e};console.log(`🚀 ${D("startToSendMetaToClient")}`,v);const y=await Qi({url:`${h}/game/meta`,method:"POST",data:v,headers:{"Content-Type":"application/json"}});return console.log(`✅ ${D("sendMetaToClientSuccess")}`),y}async function Cw(){const o=document.getElementById(Cg);return new Promise(e=>{o.onload=()=>{o.onload=null,e(o)},o.contentWindow?.location.reload()})}const _C="debugMode";function _g(o){return(o||"").trim().replace(/^v/i,"")}function UB(){const o=[Ua,Ha];try{const e=JSON.parse(localStorage.getItem(SC)||"[]");if(e.length){const n=e.filter(r=>r.id!==Ha.id).filter(r=>r.id!==Ua.id);return[Ua,...n,Ha]}else return o}catch{return o}}function HB(o){try{localStorage.setItem(SC,JSON.stringify(o))}catch(e){console.error("Failed to save launch options:",e)}}function VB(o){try{localStorage.setItem(CC,JSON.stringify(o))}catch(e){console.error("Failed to save debug setting:",e)}}function KB(){const o={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!1,enableDevInfoPanel:!0},e={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!0,enableDevInfoPanel:!0},r=PC()===or.browserDebug;try{const s=localStorage.getItem(CC);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?o:e}function PC(){try{return EC()??or.browserDebug}catch(o){return console.error("Failed to get debug mode:",o),or.browserDebug}}function EC(){try{const o=localStorage.getItem(_C);return o&&Object.values(or).includes(o)?o:null}catch(o){return console.error("Failed to get stored debug mode:",o),null}}function kC(o){try{localStorage.setItem(_C,o)}catch(e){console.error("Failed to save debug mode:",e)}}function QB(){try{return _g(localStorage.getItem(wC))}catch(o){return console.error("Failed to get changelog last seen version:",o),""}}function XB(o){const e=_g(o);if(e)try{localStorage.setItem(wC,e)}catch(n){console.error("Failed to save changelog last seen version:",n)}}function YB(o){const e=_g(o);if(!e)return!1;const n=QB();return n?e!==n:!0}function ZB(){const o={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:D("browserRemoteDebugDesc"),clientRealPreviewDesc:D("clientRealPreviewDesc"),scanTips:D("debug.scan.tips"),browser:{title:D("debug.mode.browser.title"),points:{logic:D("debug.mode.browser.point.logic"),devtools:D("debug.mode.browser.point.devtools"),preview:D("debug.mode.browser.point.preview")}},client:{title:D("debug.mode.client.title"),supportVersion:D("debug.mode.client.supportVersion"),points:{logic:D("debug.mode.client.point.logic"),vconsole:D("debug.mode.client.point.vconsole"),preview:D("debug.mode.client.point.preview")}},customTip:D("debug.mode.custom.tip")};console.log("%c%s",o.header,`📌 ${D("debug.guide.header")}`),console.log("%c%s",o.desc,e.scanTips),console.group("%c%s %cBROWSER",o.subtitle,e.browser.title,o.tagBrowser),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.browser.points.logic),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.browser.points.devtools),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.browser.points.preview),console.groupEnd(),console.group("%c%s %cDEVICE",o.subtitle,e.client.title,o.tagClient),console.log("%c%s",o.supportVersion,e.client.supportVersion),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.client.points.logic),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.client.points.vconsole),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.client.points.preview),console.groupEnd(),console.log("%c💡 %s",o.tip,e.customTip)}function ah({baseSchema:o,option:e,debugMode:n}){if(e){const{scene:r,pkgName:s,queries:l}=e;let u=`${o}&debugMode=${n}&_tiktok_minis_params=${encodeURIComponent(JSON.stringify({enter_from:r,ttmg_init_module:s}))}`;if(l){const p=$B(l);p&&Object.keys(p).forEach(h=>{u+=`&${h}=${encodeURIComponent(p[h])}`})}return u}else return o}function Pg(o){return!!(o?.user_id||o?.email)}function TC(o){const{errorCode:e,user:n}=o;return e?e===404?"notFound":e===403?"noPermission":e===401?Pg(n)?"loginExpired":"notLoggedIn":"unknown":"ok"}function JB(o){const{clientKey:e,errorMsg:n}=o,r=TC(o);return r==="notFound"?D("getDevGameDetailNotFound",{clientKey:e}):r==="noPermission"?D("gameDetailNoPermission",{clientKey:e}):r==="loginExpired"?D("gameLoginExpired",{clientKey:e}):r==="notLoggedIn"?D("gameDetailNotLogin",{clientKey:e}):n||""}const eq={devToolVersion:"",engine:"unknown",isConnected:!1,hasSetup:!1,showManualBindIP:!1,debugMode:PC(),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:UB(),selectedLaunchOption:Ua,loading:{visible:!0,text:D("loading")},error:{text:""},message:{type:"info",title:D("disConnectionStatusTitle"),desc:D("disConnectionStatusDesc")},debugSetting:KB(),packages:[]};function tq(o,e){switch(e.type){case"SHOW_LOADING":return{...o,loading:{visible:!0,text:e.payload??D("loading")}};case"HIDE_LOADING":return{...o,loading:{...o.loading,visible:!1}};case"SET_MESSAGE":return{...o,message:e.payload};case"SET_IS_CONNECTED":return{...o,isConnected:e.payload};case"SET_SCHEMA":return{...o,schema:e.payload,devSchema:ah({baseSchema:e.payload,option:o.selectedLaunchOption,debugMode:o.debugMode})};case"CLEAR_MESSAGE":return{...o,message:{type:"info",title:"",desc:""}};case"SET_USER":return{...o,user:e.payload};case"SET_LAUNCH_OPTIONS":return HB(e.payload),{...o,launchOptions:e.payload};case"SET_SELECTED_LAUNCH_OPTION":return{...o,selectedLaunchOption:e.payload,devSchema:ah({baseSchema:o.schema,option:e.payload,debugMode:o.debugMode})};case"SET_PACKAGES":return{...o,packages:e.payload};case"SET_DEBUG_SETTING":return VB(e.payload),{...o,debugSetting:e.payload};case"SET_GAME_DETAIL":return{...o,gameDetail:e.payload};case"SET_HAS_SETUP":return{...o,hasSetup:e.payload};case"SET_ERROR":return{...o,error:e.payload};case"SET_DEV_TOOL_VERSION":return{...o,devToolVersion:e.payload};case"SET_DEBUG_MODE":return{...o,debugMode:e.payload,devSchema:ah({baseSchema:o.schema,option:o.selectedLaunchOption,debugMode:e.payload})};case"SET_SHOW_MANUAL_BIND_IP":return{...o,showManualBindIP:e.payload};case"SET_ENGINE":return{...o,engine:e.payload};default:return o}}const nq=({children:o})=>{const[e,n]=k.useReducer(tq,eq),r=k.useCallback(L=>{n({type:"SET_IS_CONNECTED",payload:L})},[]),s=k.useCallback(L=>{n({type:"SHOW_LOADING",payload:L})},[]),l=k.useCallback(()=>{setTimeout(()=>{n({type:"HIDE_LOADING"})},500)},[]),c=k.useCallback(L=>{n({type:"SET_MESSAGE",payload:L})},[]),u=k.useCallback(()=>{n({type:"CLEAR_MESSAGE"})},[]),p=k.useCallback(L=>{n({type:"SET_SCHEMA",payload:L})},[]),h=k.useCallback(L=>{n({type:"SET_USER",payload:L})},[]),v=k.useCallback(L=>{n({type:"SET_LAUNCH_OPTIONS",payload:L})},[]),y=k.useCallback(L=>{n({type:"SET_SELECTED_LAUNCH_OPTION",payload:L})},[]),b=k.useCallback(L=>{n({type:"SET_DEBUG_SETTING",payload:L})},[]),P=k.useCallback(L=>{n({type:"SET_PACKAGES",payload:L})},[]),E=k.useCallback(L=>{n({type:"SET_GAME_DETAIL",payload:L})},[]),S=k.useCallback(L=>{n({type:"SET_HAS_SETUP",payload:L})},[]),_=k.useCallback(L=>{n({type:"SET_ERROR",payload:L})},[]),O=k.useCallback(L=>{n({type:"SET_DEV_TOOL_VERSION",payload:L})},[]),I=k.useCallback(L=>{n({type:"SET_DEBUG_MODE",payload:L})},[]),N=k.useCallback(L=>{n({type:"SET_SHOW_MANUAL_BIND_IP",payload:L})},[]),M=k.useCallback(L=>{n({type:"SET_ENGINE",payload:L})},[]),F=k.useMemo(()=>({state:e,showLoading:s,hideLoading:l,setIsConnected:r,setSchema:p,setMessage:c,clearMessage:u,setUser:h,setLaunchOptions:v,setSelectedLaunchOption:y,setDebugSetting:b,setPackages:P,setGameDetail:E,setHasSetup:S,setError:_,setDevToolVersion:O,setDebugMode:I,setShowManualBindIP:N,setEngine:M}),[e,s,l,r,p,c,u,h,v,y,b,P,E,S,_,O,I,N,M]);return T.jsx(wg.Provider,{value:F,children:o})};var _w="popstate";function Pw(o){return typeof o=="object"&&o!=null&&"pathname"in o&&"search"in o&&"hash"in o&&"state"in o&&"key"in o}function rq(o={}){function e(r,s){let l=s.state?.masked,{pathname:c,search:u,hash:p}=l||r.location;return Th("",{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 oq(e,n,null,o)}function He(o,e){if(o===!1||o===null||typeof o>"u")throw new Error(e)}function En(o,e){if(!o){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function iq(){return Math.random().toString(36).substring(2,10)}function Ew(o,e){return{usr:o.state,key:o.key,idx:e,masked:o.unstable_mask?{pathname:o.pathname,search:o.search,hash:o.hash}:void 0}}function Th(o,e,n=null,r,s){return{pathname:typeof o=="string"?o:o.pathname,search:"",hash:"",...typeof e=="string"?no(e):e,state:n,key:e&&e.key||r||iq(),unstable_mask:s}}function ps({pathname:o="/",search:e="",hash:n=""}){return e&&e!=="?"&&(o+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(o+=n.charAt(0)==="#"?n:"#"+n),o}function no(o){let e={};if(o){let n=o.indexOf("#");n>=0&&(e.hash=o.substring(n),o=o.substring(0,n));let r=o.indexOf("?");r>=0&&(e.search=o.substring(r),o=o.substring(0,r)),o&&(e.pathname=o)}return e}function oq(o,e,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,c=s.history,u="POP",p=null,h=v();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function v(){return(c.state||{idx:null}).idx}function y(){u="POP";let _=v(),O=_==null?null:_-h;h=_,p&&p({action:u,location:S.location,delta:O})}function b(_,O){u="PUSH";let I=Pw(_)?_:Th(S.location,_,O);h=v()+1;let N=Ew(I,h),M=S.createHref(I.unstable_mask||I);try{c.pushState(N,"",M)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;s.location.assign(M)}l&&p&&p({action:u,location:S.location,delta:1})}function P(_,O){u="REPLACE";let I=Pw(_)?_:Th(S.location,_,O);h=v();let N=Ew(I,h),M=S.createHref(I.unstable_mask||I);c.replaceState(N,"",M),l&&p&&p({action:u,location:S.location,delta:0})}function E(_){return sq(_)}let S={get action(){return u},get location(){return o(s,c)},listen(_){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(_w,y),p=_,()=>{s.removeEventListener(_w,y),p=null}},createHref(_){return e(s,_)},createURL:E,encodeLocation(_){let O=E(_);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:P,go(_){return c.go(_)}};return S}function sq(o,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 o=="string"?o:ps(o);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function OC(o,e,n="/"){return aq(o,e,n,!1)}function aq(o,e,n,r){let s=typeof e=="string"?no(e):e,l=sr(s.pathname||"/",n);if(l==null)return null;let c=xC(o);lq(c);let u=null;for(let p=0;u==null&&p<c.length;++p){let h=bq(l);u=vq(c[p],h,r)}return u}function xC(o,e=[],n=[],r="",s=!1){let l=(c,u,p=s,h)=>{let v={relativePath:h===void 0?c.path||"":h,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=zn([r,v.relativePath]),b=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}".`),xC(c.children,e,b,y,p)),!(c.path==null&&!c.index)&&e.push({path:y,score:gq(y,c.index),routesMeta:b})};return o.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))l(c,u);else for(let p of DC(c.path))l(c,u,!0,p)}),e}function DC(o){let e=o.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=DC(r.join("/")),u=[];return u.push(...c.map(p=>p===""?l:[l,p].join("/"))),s&&u.push(...c),u.map(p=>o.startsWith("/")&&p===""?"/":p)}function lq(o){o.sort((e,n)=>e.score!==n.score?n.score-e.score:mq(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var cq=/^:[\w-]+$/,uq=3,dq=2,pq=1,fq=10,hq=-2,kw=o=>o==="*";function gq(o,e){let n=o.split("/"),r=n.length;return n.some(kw)&&(r+=hq),e&&(r+=dq),n.filter(s=>!kw(s)).reduce((s,l)=>s+(cq.test(l)?uq:l===""?pq:fq),r)}function mq(o,e){return o.length===e.length&&o.slice(0,-1).every((r,s)=>r===e[s])?o[o.length-1]-e[e.length-1]:0}function vq(o,e,n=!1){let{routesMeta:r}=o,s={},l="/",c=[];for(let u=0;u<r.length;++u){let p=r[u],h=u===r.length-1,v=l==="/"?e:e.slice(l.length)||"/",y=el({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},v),b=p.route;if(!y&&h&&n&&!r[r.length-1].route.index&&(y=el({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!y)return null;Object.assign(s,y.params),c.push({params:s,pathname:zn([l,y.pathname]),pathnameBase:_q(zn([l,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(l=zn([l,y.pathnameBase]))}return c}function el(o,e){typeof o=="string"&&(o={path:o,caseSensitive:!1,end:!0});let[n,r]=yq(o.path,o.caseSensitive,o.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((h,{paramName:v,isOptional:y},b)=>{if(v==="*"){let E=u[b]||"";c=l.slice(0,l.length-E.length).replace(/(.)\/+$/,"$1")}const P=u[b];return y&&!P?h[v]=void 0:h[v]=(P||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:c,pattern:o}}function yq(o,e=!1,n=!0){En(o==="*"||!o.endsWith("*")||o.endsWith("/*"),`Route path "${o}" will be treated as if it were "${o.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${o.replace(/\*$/,"/*")}".`);let r=[],s="^"+o.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,p,h,v)=>{if(r.push({paramName:u,isOptional:p!=null}),p){let y=v.charAt(h+c.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return o.endsWith("*")?(r.push({paramName:"*"}),s+=o==="*"||o==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":o!==""&&o!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function bq(o){try{return o.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return En(!1,`The URL path "${o}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),o}}function sr(o,e){if(e==="/")return o;if(!o.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=o.charAt(n);return r&&r!=="/"?null:o.slice(n)||"/"}var Sq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function wq(o,e="/"){let{pathname:n,search:r="",hash:s=""}=typeof o=="string"?no(o):o,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=Tw(n.substring(1),"/"):l=Tw(n,e)):l=e,{pathname:l,search:Pq(r),hash:Eq(s)}}function Tw(o,e){let n=e.replace(/\/+$/,"").split("/");return o.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function lh(o,e,n,r){return`Cannot include a '${o}' 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 Cq(o){return o.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Eg(o){let e=Cq(o);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function Tl(o,e,n,r=!1){let s;typeof o=="string"?s=no(o):(s={...o},He(!s.pathname||!s.pathname.includes("?"),lh("?","pathname","search",s)),He(!s.pathname||!s.pathname.includes("#"),lh("#","pathname","hash",s)),He(!s.search||!s.search.includes("#"),lh("#","search","hash",s)));let l=o===""||s.pathname==="",c=l?"/":s.pathname,u;if(c==null)u=n;else{let y=e.length-1;if(!r&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;s.pathname=b.join("/")}u=y>=0?e[y]:"/"}let p=wq(s,u),h=c&&c!=="/"&&c.endsWith("/"),v=(l||c===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(h||v)&&(p.pathname+="/"),p}var zn=o=>o.join("/").replace(/\/\/+/g,"/"),_q=o=>o.replace(/\/+$/,"").replace(/^\/*/,"/"),Pq=o=>!o||o==="?"?"":o.startsWith("?")?o:"?"+o,Eq=o=>!o||o==="#"?"":o.startsWith("#")?o:"#"+o,kq=class{constructor(o,e,n,r=!1){this.status=o,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Tq(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.internal=="boolean"&&"data"in o}function Oq(o){return o.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var IC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function RC(o,e){let n=o;if(typeof n!="string"||!Sq.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(IC)try{let l=new URL(window.location.href),c=n.startsWith("//")?new URL(l.protocol+n):new URL(n),u=sr(c.pathname,e);c.origin===l.origin&&u!=null?n=u+c.search+c.hash:s=!0}catch{En(!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 NC=["POST","PUT","PATCH","DELETE"];new Set(NC);var xq=["GET",...NC];new Set(xq);var ro=k.createContext(null);ro.displayName="DataRouter";var Ol=k.createContext(null);Ol.displayName="DataRouterState";var Dq=k.createContext(!1),AC=k.createContext({isTransitioning:!1});AC.displayName="ViewTransition";var Iq=k.createContext(new Map);Iq.displayName="Fetchers";var Rq=k.createContext(null);Rq.displayName="Await";var Jt=k.createContext(null);Jt.displayName="Navigation";var _s=k.createContext(null);_s.displayName="Location";var On=k.createContext({outlet:null,matches:[],isDataRoute:!1});On.displayName="Route";var kg=k.createContext(null);kg.displayName="RouteError";var LC="REACT_ROUTER_ERROR",Nq="REDIRECT",Aq="ROUTE_ERROR_RESPONSE";function Lq(o){if(o.startsWith(`${LC}:${Nq}:{`))try{let e=JSON.parse(o.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 jq(o){if(o.startsWith(`${LC}:${Aq}:{`))try{let e=JSON.parse(o.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new kq(e.status,e.statusText,e.data)}catch{}}function Mq(o,{relative:e}={}){He(io(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(Jt),{hash:s,pathname:l,search:c}=Es(o,{relative:e}),u=l;return n!=="/"&&(u=l==="/"?n:zn([n,l])),r.createHref({pathname:u,search:c,hash:s})}function io(){return k.useContext(_s)!=null}function lr(){return He(io(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(_s).location}var jC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function MC(o){k.useContext(Jt).static||k.useLayoutEffect(o)}function Ps(){let{isDataRoute:o}=k.useContext(On);return o?Xq():$q()}function $q(){He(io(),"useNavigate() may be used only in the context of a <Router> component.");let o=k.useContext(ro),{basename:e,navigator:n}=k.useContext(Jt),{matches:r}=k.useContext(On),{pathname:s}=lr(),l=JSON.stringify(Eg(r)),c=k.useRef(!1);return MC(()=>{c.current=!0}),k.useCallback((p,h={})=>{if(En(c.current,jC),!c.current)return;if(typeof p=="number"){n.go(p);return}let v=Tl(p,JSON.parse(l),s,h.relative==="path");o==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:zn([e,v.pathname])),(h.replace?n.replace:n.push)(v,h.state,h)},[e,n,l,s,o])}k.createContext(null);function mU(){let{matches:o}=k.useContext(On),e=o[o.length-1];return e?e.params:{}}function Es(o,{relative:e}={}){let{matches:n}=k.useContext(On),{pathname:r}=lr(),s=JSON.stringify(Eg(n));return k.useMemo(()=>Tl(o,JSON.parse(s),r,e==="path"),[o,s,r,e])}function Fq(o,e){return $C(o,e)}function $C(o,e,n){He(io(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=k.useContext(Jt),{matches:s}=k.useContext(On),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;{let _=h&&h.path||"";zC(u,!h||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${_}">) 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.
13
+
14
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let v=lr(),y;if(e){let _=typeof e=="string"?no(e):e;He(p==="/"||_.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 "${_.pathname}" was given in the \`location\` prop.`),y=_}else y=v;let b=y.pathname||"/",P=b;if(p!=="/"){let _=p.replace(/^\//,"").split("/");P="/"+b.replace(/^\//,"").split("/").slice(_.length).join("/")}let E=OC(o,{pathname:P});En(h||E!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),En(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.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 S=Wq(E&&E.map(_=>Object.assign({},_,{params:Object.assign({},c,_.params),pathname:zn([p,r.encodeLocation?r.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?p:zn([p,r.encodeLocation?r.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),s,n);return e&&S?k.createElement(_s.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},S):S}function zq(){let o=Qq(),e=Tq(o)?`${o.status} ${o.statusText}`:o instanceof Error?o.message:JSON.stringify(o),n=o instanceof Error?o.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:",o),c=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:l},"ErrorBoundary")," or"," ",k.createElement("code",{style:l},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:s},n):null,c)}var Bq=k.createElement(zq,null),FC=class extends k.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,e){return e.location!==o.location||e.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:e.error,location:e.location,revalidation:o.revalidation||e.revalidation}}componentDidCatch(o,e){this.props.onError?this.props.onError(o,e):console.error("React Router caught the following error during render",o)}render(){let o=this.state.error;if(this.context&&typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){const n=jq(o.digest);n&&(o=n)}let e=o!==void 0?k.createElement(On.Provider,{value:this.props.routeContext},k.createElement(kg.Provider,{value:o,children:this.props.component})):this.props.children;return this.context?k.createElement(qq,{error:o},e):e}};FC.contextType=Dq;var ch=new WeakMap;function qq({children:o,error:e}){let{basename:n}=k.useContext(Jt);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Lq(e.digest);if(r){let s=ch.get(e);if(s)throw s;let l=RC(r.location,n);if(IC&&!ch.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 ch.set(e,c),c}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return o}function Gq({routeContext:o,match:e,children:n}){let r=k.useContext(ro);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),k.createElement(On.Provider,{value:o},n)}function Wq(o,e=[],n){let r=n?.state;if(o==null){if(!r)return null;if(r.errors)o=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)o=r.matches;else return null}let s=o,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:b,errors:P}=r,E=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!P||P[y.route.id]===void 0);if(y.route.lazy||E){n.isStatic&&(c=!0),u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}}let p=n?.onError,h=r&&p?(v,y)=>{p(v,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Oq(r.matches),errorInfo:y})}:void 0;return s.reduceRight((v,y,b)=>{let P,E=!1,S=null,_=null;r&&(P=l&&y.route.id?l[y.route.id]:void 0,S=y.route.errorElement||Bq,c&&(u<0&&b===0?(zC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,_=null):u===b&&(E=!0,_=y.route.hydrateFallbackElement||null)));let O=e.concat(s.slice(0,b+1)),I=()=>{let N;return P?N=S:E?N=_:y.route.Component?N=k.createElement(y.route.Component,null):y.route.element?N=y.route.element:N=v,k.createElement(Gq,{match:y,routeContext:{outlet:v,matches:O,isDataRoute:r!=null},children:N})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?k.createElement(FC,{location:r.location,revalidation:r.revalidation,component:S,error:P,children:I(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:h}):I()},null)}function Tg(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uq(o){let e=k.useContext(ro);return He(e,Tg(o)),e}function Hq(o){let e=k.useContext(Ol);return He(e,Tg(o)),e}function Vq(o){let e=k.useContext(On);return He(e,Tg(o)),e}function Og(o){let e=Vq(o),n=e.matches[e.matches.length-1];return He(n.route.id,`${o} can only be used on routes that contain a unique "id"`),n.route.id}function Kq(){return Og("useRouteId")}function Qq(){let o=k.useContext(kg),e=Hq("useRouteError"),n=Og("useRouteError");return o!==void 0?o:e.errors?.[n]}function Xq(){let{router:o}=Uq("useNavigate"),e=Og("useNavigate"),n=k.useRef(!1);return MC(()=>{n.current=!0}),k.useCallback(async(s,l={})=>{En(n.current,jC),n.current&&(typeof s=="number"?await o.navigate(s):await o.navigate(s,{fromRouteId:e,...l}))},[o,e])}var Ow={};function zC(o,e,n){!e&&!Ow[o]&&(Ow[o]=!0,En(!1,n))}k.memo(Yq);function Yq({routes:o,future:e,state:n,isStatic:r,onError:s}){return $C(o,void 0,{state:n,isStatic:r,onError:s})}function uh({to:o,replace:e,state:n,relative:r}){He(io(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=k.useContext(Jt);En(!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}=k.useContext(On),{pathname:c}=lr(),u=Ps(),p=Tl(o,Eg(l),c,r==="path"),h=JSON.stringify(p);return k.useEffect(()=>{u(JSON.parse(h),{replace:e,state:n,relative:r})},[u,h,r,e,n]),null}function Pt(o){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 Zq({basename:o="/",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=o.replace(/^\/*/,"/"),p=k.useMemo(()=>({basename:u,navigator:s,static:l,unstable_useTransitions:c,future:{}}),[u,s,l,c]);typeof n=="string"&&(n=no(n));let{pathname:h="/",search:v="",hash:y="",state:b=null,key:P="default",unstable_mask:E}=n,S=k.useMemo(()=>{let _=sr(h,u);return _==null?null:{location:{pathname:_,search:v,hash:y,state:b,key:P,unstable_mask:E},navigationType:r}},[u,h,v,y,b,P,r,E]);return En(S!=null,`<Router basename="${u}"> is not able to match the URL "${h}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:k.createElement(Jt.Provider,{value:p},k.createElement(_s.Provider,{children:e,value:S}))}function Jq({children:o,location:e}){return Fq(Oh(o),e)}function Oh(o,e=[]){let n=[];return k.Children.forEach(o,(r,s)=>{if(!k.isValidElement(r))return;let l=[...e,s];if(r.type===k.Fragment){n.push.apply(n,Oh(r.props.children,l));return}He(r.type===Pt,`[${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=Oh(r.props.children,l)),n.push(c)}),n}var Va="get",Ka="application/x-www-form-urlencoded";function xl(o){return typeof HTMLElement<"u"&&o instanceof HTMLElement}function eG(o){return xl(o)&&o.tagName.toLowerCase()==="button"}function tG(o){return xl(o)&&o.tagName.toLowerCase()==="form"}function nG(o){return xl(o)&&o.tagName.toLowerCase()==="input"}function rG(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}function iG(o,e){return o.button===0&&(!e||e==="_self")&&!rG(o)}var za=null;function oG(){if(za===null)try{new FormData(document.createElement("form"),0),za=!1}catch{za=!0}return za}var sG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dh(o){return o!=null&&!sG.has(o)?(En(!1,`"${o}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ka}"`),null):o}function aG(o,e){let n,r,s,l,c;if(tG(o)){let u=o.getAttribute("action");r=u?sr(u,e):null,n=o.getAttribute("method")||Va,s=dh(o.getAttribute("enctype"))||Ka,l=new FormData(o)}else if(eG(o)||nG(o)&&(o.type==="submit"||o.type==="image")){let u=o.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=o.getAttribute("formaction")||u.getAttribute("action");if(r=p?sr(p,e):null,n=o.getAttribute("formmethod")||u.getAttribute("method")||Va,s=dh(o.getAttribute("formenctype"))||dh(u.getAttribute("enctype"))||Ka,l=new FormData(u,o),!oG()){let{name:h,type:v,value:y}=o;if(v==="image"){let b=h?`${h}.`:"";l.append(`${b}x`,"0"),l.append(`${b}y`,"0")}else h&&l.append(h,y)}}else{if(xl(o))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Va,r=null,s=Ka,c=o}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 xg(o,e){if(o===!1||o===null||typeof o>"u")throw new Error(e)}function lG(o,e,n,r){let s=typeof o=="string"?new URL(o,typeof window>"u"?"server://singlefetch/":window.location.origin):o;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:e&&sr(s.pathname,e)==="/"?s.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${r}`,s}async function cG(o,e){if(o.id in e)return e[o.id];try{let n=await import(o.module);return e[o.id]=n,n}catch(n){return console.error(`Error loading route module \`${o.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function uG(o){return o==null?!1:o.href==null?o.rel==="preload"&&typeof o.imageSrcSet=="string"&&typeof o.imageSizes=="string":typeof o.rel=="string"&&typeof o.href=="string"}async function dG(o,e,n){let r=await Promise.all(o.map(async s=>{let l=e.routes[s.route.id];if(l){let c=await cG(l,n);return c.links?c.links():[]}return[]}));return gG(r.flat(1).filter(uG).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function xw(o,e,n,r,s,l){let c=(p,h)=>n[h]?p.route.id!==n[h].route.id:!0,u=(p,h)=>n[h].pathname!==p.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==p.params["*"];return l==="assets"?e.filter((p,h)=>c(p,h)||u(p,h)):l==="data"?e.filter((p,h)=>{let v=r.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(c(p,h)||u(p,h))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(o,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function pG(o,e,{includeHydrateFallback:n}={}){return fG(o.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 fG(o){return[...new Set(o)]}function hG(o){let e={},n=Object.keys(o).sort();for(let r of n)e[r]=o[r];return e}function gG(o,e){let n=new Set;return new Set(e),o.reduce((r,s)=>{let l=JSON.stringify(hG(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function BC(){let o=k.useContext(ro);return xg(o,"You must render this element inside a <DataRouterContext.Provider> element"),o}function mG(){let o=k.useContext(Ol);return xg(o,"You must render this element inside a <DataRouterStateContext.Provider> element"),o}var Dg=k.createContext(void 0);Dg.displayName="FrameworkContext";function qC(){let o=k.useContext(Dg);return xg(o,"You must render this element inside a <HydratedRouter> element"),o}function vG(o,e){let n=k.useContext(Dg),[r,s]=k.useState(!1),[l,c]=k.useState(!1),{onFocus:u,onBlur:p,onMouseEnter:h,onMouseLeave:v,onTouchStart:y}=e,b=k.useRef(null);k.useEffect(()=>{if(o==="render"&&c(!0),o==="viewport"){let S=O=>{O.forEach(I=>{c(I.isIntersecting)})},_=new IntersectionObserver(S,{threshold:.5});return b.current&&_.observe(b.current),()=>{_.disconnect()}}},[o]),k.useEffect(()=>{if(r){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[r]);let P=()=>{s(!0)},E=()=>{s(!1),c(!1)};return n?o!=="intent"?[l,b,{}]:[l,b,{onFocus:ts(u,P),onBlur:ts(p,E),onMouseEnter:ts(h,P),onMouseLeave:ts(v,E),onTouchStart:ts(y,P)}]:[!1,b,{}]}function ts(o,e){return n=>{o&&o(n),n.defaultPrevented||e(n)}}function yG({page:o,...e}){let{router:n}=BC(),r=k.useMemo(()=>OC(n.routes,o,n.basename),[n.routes,o,n.basename]);return r?k.createElement(SG,{page:o,matches:r,...e}):null}function bG(o){let{manifest:e,routeModules:n}=qC(),[r,s]=k.useState([]);return k.useEffect(()=>{let l=!1;return dG(o,e,n).then(c=>{l||s(c)}),()=>{l=!0}},[o,e,n]),r}function SG({page:o,matches:e,...n}){let r=lr(),{future:s,manifest:l,routeModules:c}=qC(),{basename:u}=BC(),{loaderData:p,matches:h}=mG(),v=k.useMemo(()=>xw(o,e,h,l,r,"data"),[o,e,h,l,r]),y=k.useMemo(()=>xw(o,e,h,l,r,"assets"),[o,e,h,l,r]),b=k.useMemo(()=>{if(o===r.pathname+r.search+r.hash)return[];let S=new Set,_=!1;if(e.forEach(I=>{let N=l.routes[I.route.id];!N||!N.hasLoader||(!v.some(M=>M.route.id===I.route.id)&&I.route.id in p&&c[I.route.id]?.shouldRevalidate||N.hasClientLoader?_=!0:S.add(I.route.id))}),S.size===0)return[];let O=lG(o,u,s.unstable_trailingSlashAwareDataRequests,"data");return _&&S.size>0&&O.searchParams.set("_routes",e.filter(I=>S.has(I.route.id)).map(I=>I.route.id).join(",")),[O.pathname+O.search]},[u,s.unstable_trailingSlashAwareDataRequests,p,r,l,v,e,o,c]),P=k.useMemo(()=>pG(y,l),[y,l]),E=bG(y);return k.createElement(k.Fragment,null,b.map(S=>k.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),P.map(S=>k.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),E.map(({key:S,link:_})=>k.createElement("link",{key:S,nonce:n.nonce,..._,crossOrigin:_.crossOrigin??n.crossOrigin})))}function wG(...o){return e=>{o.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var CG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{CG&&(window.__reactRouterVersion="7.13.1")}catch{}function _G({basename:o,children:e,unstable_useTransitions:n,window:r}){let s=k.useRef();s.current==null&&(s.current=rq({window:r,v5Compat:!0}));let l=s.current,[c,u]=k.useState({action:l.action,location:l.location}),p=k.useCallback(h=>{n===!1?u(h):k.startTransition(()=>u(h))},[n]);return k.useLayoutEffect(()=>l.listen(p),[l,p]),k.createElement(Zq,{basename:o,children:e,location:c.location,navigationType:c.action,navigator:l,unstable_useTransitions:n})}var GC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,WC=k.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:c,unstable_mask:u,state:p,target:h,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:P,...E},S){let{basename:_,navigator:O,unstable_useTransitions:I}=k.useContext(Jt),N=typeof v=="string"&&GC.test(v),M=RC(v,_);v=M.to;let F=Mq(v,{relative:s}),L=lr(),A=null;if(u){let le=Tl(u,[],L.unstable_mask?L.unstable_mask.pathname:"/",!0);_!=="/"&&(le.pathname=le.pathname==="/"?_:zn([_,le.pathname])),A=O.createHref(le)}let[z,U,K]=vG(r,E),V=TG(v,{replace:c,unstable_mask:u,state:p,target:h,preventScrollReset:y,relative:s,viewTransition:b,unstable_defaultShouldRevalidate:P,unstable_useTransitions:I});function ie(le){e&&e(le),le.defaultPrevented||V(le)}let ee=!(M.isExternal||l),ve=k.createElement("a",{...E,...K,href:(ee?A:void 0)||M.absoluteURL||F,onClick:ee?ie:e,ref:wG(S,U),target:h,"data-discover":!N&&n==="render"?"true":void 0});return z&&!N?k.createElement(k.Fragment,null,ve,k.createElement(yG,{page:F})):ve});WC.displayName="Link";var PG=k.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:c,viewTransition:u,children:p,...h},v){let y=Es(c,{relative:h.relative}),b=lr(),P=k.useContext(Ol),{navigator:E,basename:S}=k.useContext(Jt),_=P!=null&&RG(y)&&u===!0,O=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,I=b.pathname,N=P&&P.navigation&&P.navigation.location?P.navigation.location.pathname:null;n||(I=I.toLowerCase(),N=N?N.toLowerCase():null,O=O.toLowerCase()),N&&S&&(N=sr(N,S)||N);const M=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let F=I===O||!s&&I.startsWith(O)&&I.charAt(M)==="/",L=N!=null&&(N===O||!s&&N.startsWith(O)&&N.charAt(O.length)==="/"),A={isActive:F,isPending:L,isTransitioning:_},z=F?e:void 0,U;typeof r=="function"?U=r(A):U=[r,F?"active":null,L?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let K=typeof l=="function"?l(A):l;return k.createElement(WC,{...h,"aria-current":z,className:U,ref:v,style:K,to:c,viewTransition:u},typeof p=="function"?p(A):p)});PG.displayName="NavLink";var EG=k.forwardRef(({discover:o="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:s,state:l,method:c=Va,action:u,onSubmit:p,relative:h,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,...P},E)=>{let{unstable_useTransitions:S}=k.useContext(Jt),_=DG(),O=IG(u,{relative:h}),I=c.toLowerCase()==="get"?"get":"post",N=typeof u=="string"&&GC.test(u),M=F=>{if(p&&p(F),F.defaultPrevented)return;F.preventDefault();let L=F.nativeEvent.submitter,A=L?.getAttribute("formmethod")||c,z=()=>_(L||F.currentTarget,{fetcherKey:e,method:A,navigate:n,replace:s,state:l,relative:h,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});S&&n!==!1?k.startTransition(()=>z()):z()};return k.createElement("form",{ref:E,method:I,action:O,onSubmit:r?p:M,...P,"data-discover":!N&&o==="render"?"true":void 0})});EG.displayName="Form";function kG(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UC(o){let e=k.useContext(ro);return He(e,kG(o)),e}function TG(o,{target:e,replace:n,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p,unstable_useTransitions:h}={}){let v=Ps(),y=lr(),b=Es(o,{relative:c});return k.useCallback(P=>{if(iG(P,e)){P.preventDefault();let E=n!==void 0?n:ps(y)===ps(b),S=()=>v(o,{replace:E,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p});h?k.startTransition(()=>S()):S()}},[y,v,b,n,r,s,e,o,l,c,u,p,h])}var OG=0,xG=()=>`__${String(++OG)}__`;function DG(){let{router:o}=UC("useSubmit"),{basename:e}=k.useContext(Jt),n=Kq(),r=o.fetch,s=o.navigate;return k.useCallback(async(l,c={})=>{let{action:u,method:p,encType:h,formData:v,body:y}=aG(l,e);if(c.navigate===!1){let b=c.fetcherKey||xG();await r(b,n,c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||h,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||h,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,s,e,n])}function IG(o,{relative:e}={}){let{basename:n}=k.useContext(Jt),r=k.useContext(On);He(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...Es(o||".",{relative:e})},c=lr();if(o==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(!o||o===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:zn([n,l.pathname])),ps(l)}function RG(o,{relative:e}={}){let n=k.useContext(AC);He(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=UC("useViewTransitionState"),s=Es(o,{relative:e});if(!n.isTransitioning)return!1;let l=sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return el(s.pathname,c)!=null||el(s.pathname,l)!=null}var NG=Object.defineProperty,Dw=Object.getOwnPropertySymbols,AG=Object.prototype.hasOwnProperty,LG=Object.prototype.propertyIsEnumerable,Iw=(o,e,n)=>e in o?NG(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,jG=(o,e)=>{for(var n in e||(e={}))AG.call(e,n)&&Iw(o,n,e[n]);if(Dw)for(var n of Dw(e))LG.call(e,n)&&Iw(o,n,e[n]);return o};function MG(o){return k.createElement("svg",jG({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},o),k.createElement("rect",{width:200,height:200,fill:"transparent"}),k.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)"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.createElement("ellipse",{cx:127.42,cy:86.0081,rx:2.47934,ry:2.47934,fill:"white",stroke:"#515151"}),k.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}),k.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"}),k.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 $G=MG;function FG(){return document.getElementById(Cg)?.contentWindow}class zG{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(`⌛️ ${D("startConnectClientWS",{wsURL:n})}`);const r=new WebSocket(n);this.connectTimeoutTimer=setTimeout(()=>{r.readyState!==WebSocket.OPEN&&(this.isTimeout=!0,r.close(),console.error(`${D("clientConnectTimeout")||"客户端连接超时"}`),Oe.emit("connectionChange",{node:Ee.get("isNodeWSConnected"),client:!1,from:"client",reason:"timeout"}),Cw())},5e3),r.onclose=()=>{this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.isTimeout||(console.error(`${D("clientServerDisconnected")}`),Oe.emit("connectionChange",{node:Ee.get("isNodeWSConnected"),client:!1,from:"client",reason:"close"}),Cw())},r.onerror=()=>{if(this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),!this.isTimeout){const s=D("clientServerStartError");Oe.emit("connectionChange",{node:Ee.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(`✅ ${D("clientConnectedSuccess")}`),Oe.emit("connectionChange",{node:Ee.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=FG();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;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 ks=new zG,BG={start:{msgKey:"uploadGameStart"},success:{msgKey:"uploadGameSuccess",handle:o=>{const{packages:e,clientKey:n}=o||{};Ee.setMultiple({packages:e,clientKey:n,isResourcesReady:!0}),Oe.emit("setupStatusChange",{isScriptsReady:Ee.get("isScriptsReady"),isResourcesReady:!0})}},process:{msgKey:"uploadProcess"},error:{msgKey:"uploadError",handle:o=>{const{msg:e}=o||{};Ee.set("isResourcesReady",!1),Oe.emit("setupStatusChange",{isScriptsReady:Ee.get("isScriptsReady"),isResourcesReady:!1,isResourcesFailed:!0})}},restart:{msgKey:"uploadGameRestart"}};function qG(o){const{status:e,payload:n}=o,r=BG[e];if(!r){console.warn(`Unknown upload status: ${e}`);return}const s=D(r.msgKey);Oe.emit("uploadGame",{status:e,msg:s,progress:n?.progress}),r.handle&&r.handle(n)}class GG{ws;init(){const e=Ee.get("nodeWsPort");console.info(`⌛️ ${D("nodeServerStartConnect")}`);let n=!1;return this.ws=new WebSocket(`ws://localhost:${e}`),this.ws.onclose=()=>{console.error(`❌ ${D("nodeServerDisconnect")}`),Oe.emit("connectionChange",{node:!1,client:Ee.get("isClientWSConnected"),from:"node",reason:n?"error":"close"})},this.ws.onerror=()=>{n=!0;const r=D("nodeServerStartError");console.error(r),Oe.emit("connectionChange",{node:!1,client:Ee.get("isClientWSConnected"),from:"node",reason:"error"})},this.ws.onopen=()=>{console.log(`✅ ${D("nodeServerConnectedSuccess")}`),Oe.emit("connectionChange",{node:!0,client:Ee.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":{qG(s);break}case"compilationStatus":{Oe.emit("compilationStatus",s.payload);break}case"unitySplitStatus":{Oe.emit("unitySplitStatus",s.payload);break}case"resourceChange":{Fn.info("Node WS resourceChange",s?.payload),Oe.emit("resourceChange",{});break}case"scanQRCodeSuccess":{const{clientWsPort:c,clientHost:u,clientHttpPort:p}=s.payload;Ee.setMultiple({clientHost:u,clientWsPort:c,clientHttpPort:p}),ks.init({clientWsPort:c,clientHost:u,clientHttpPort:p}),Oe.emit("scanQRCode",{status:"success"});break}case"scanQRCodeFailed":{const{msg:c}=s.payload;Oe.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 GG,WG=["krypton.js","ttmg-core.js"];async function Rw(o){try{const e=bC();console.log(`⌛️ ${D("startDebug")}`),console.log(`⌛️ ${D("initClientEnv")}`);const n=await Qi({url:`${e}/game/cwd`,method:"POST",data:{command:"start"}});if(console.log(`✅ ${D("initClientEnvSuccess")}`),ks.send({method:"setDebugSettings",payload:o.debugSetting}),o.debugMode==="clientPreview"||o.debugMode==="clientDebug")Ee.set("isScriptsReady",!0),Vi.send({method:"startUpload"});else{console.log(`⌛️ ${D("startInitJSDevEnv")}`);const s=document.getElementById(Cg).contentWindow;s.__DEV__={isEnable:!0,server:e,nodeStaticBaseUrl:Ee.get("nodeStaticBaseUrl")},console.log(`✅ ${D("initJSDevEnvSuccess")}`);const l=await UG(s,WG,e),c=Object.values(l).some(u=>!u);Ee.set("isScriptsReady",Object.values(l).every(u=>u)),Oe.emit("setupStatusChange",{isScriptsReady:Ee.get("isScriptsReady"),isResourcesReady:Ee.get("isResourcesReady"),isScriptsFailed:c}),c||(console.log(`✅ ${D("setDevScriptsSuccess")}`),Vi.send({method:"startUpload"}))}}catch(e){console.log(`❌ ${D("setDevEnvFailed")}`,e?.message??e)}}async function UG(o,e,n){const r={};for(const s of e)try{console.log(`⏳ ${D("startLoadDevScripts")}: ${s}`);const l=await fetch(`${n}/game/scripts/${s}`);if(!l.ok){console.error(`${D("loadDevScriptsFailed")}: ${s}`),r[s]=!1;continue}const c=await l.text();if(!c){console.error(`${D("loadDevScriptsEmpty")}: ${s}`),r[s]=!1;continue}console.log(`✅ ${D("loadDevScriptsSuccess")}: ${s}`);const u=o.document.createElement("script");u.id=s,u.type="text/javascript",u.text=c,o.document.body.appendChild(u),r[s]=!0,console.log(`✅ ${D("loadDevScriptsInitSuccess")}: ${s}`)}catch(l){console.error(`${D("loadDevScriptsFailed")}: ${s}`,l),r[s]=!1}return r}function HG(){const o=()=>typeof document<"u"?document.hidden:!1,[e,n]=k.useState(o);return k.useEffect(()=>{const r=()=>{n(document.hidden),ks.send({method:"sendPageVisibility",payload:{isHidden:document.hidden}})};return document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)}},[]),e}function VG(){const[o,e]=k.useState([]),n=k.useRef([]),r=k.useRef([]),s=k.useRef([]),l=k.useRef([]),c=k.useCallback(()=>{const b=[...n.current,...r.current,...s.current,...l.current],P=new Map;b.forEach(E=>{const S=E?.text?.trim();if(!S)return;const _=P.get(S);if(!_){P.set(S,{text:S,required:E.required,detail:E.detail});return}!_.required&&E.required&&P.set(S,{text:S,required:!0,detail:_.detail??E.detail})}),e(Array.from(P.values()))},[]),u=k.useCallback(b=>{const P=[],E=!b?.terms_of_service_link?.trim(),S=!b?.privacy_policy_link?.trim();return E&&S?(P.push({text:D("policyDependencyTermsPrivacyRequired"),required:!0}),P):(E&&P.push({text:D("policyDependencyTermsRequired"),required:!0}),S&&P.push({text:D("policyDependencyPrivacyRequired"),required:!0}),P)},[]),p=k.useCallback(b=>{const P=[],E=!b?.name?.trim(),S=!b?.display_icon_url?.trim()&&!b?.icon_url?.trim(),_=!b?.description?.trim();return E&&P.push(D("topBasicInfoNameField")),S&&P.push(D("topBasicInfoIconField")),_&&P.push(D("topBasicInfoDescriptionField")),P.length===0?[]:[{text:D("topBasicInfoMissing",{fields:P.join(D("topBasicInfoFieldJoiner"))}),required:!1}]},[]),h=k.useCallback(b=>Pg(b)?[]:[{text:D("topLoginStatusWarning"),required:!1}],[]),v=k.useCallback(b=>{r.current=u(b),s.current=p(b),c()},[p,u,c]),y=k.useCallback(({currentUser:b,checkResult:P=[]})=>{l.current=h(b),n.current=P.filter(E=>E?.passed===!1).map(E=>({text:E.msg,required:E.required===!0,detail:E.detail})),c()},[h,c]);return{topErrorItems:o,updateGameDetailTopErrors:v,updateConfigTopErrors:y}}function KG({onSuccess:o}){const{state:{user:e},hideLoading:n,setError:r,setGameDetail:s}=dn(),l=k.useRef(!1),c=k.useRef(!1),u=k.useCallback(p=>{if(l.current){c.current=!0;return}l.current=!0,Qi({url:"/game/detail",method:"GET"}).then(h=>{if(h.error){n();const{errorCode:v,errorMsg:y}=h.error,b=TC({errorCode:v,user:p??e}),P=JB({errorCode:v,errorMsg:y,clientKey:h.error.clientKey,user:p??e});s({client_key:h.error.clientKey,has_error:!0,error_msg:y,error_code:v}),r({text:b==="unknown"?P:""});return}r({text:""}),s(h.data),o(h.data),n()}).finally(()=>{l.current=!1,c.current&&(c.current=!1,u(p))})},[n,o,r,s,e]);return{fetchGameDetail:u}}function QG({fetchGameDetail:o,updateConfigTopErrors:e}){const{showLoading:n,hideLoading:r,setError:s,setSchema:l,setUser:c,setPackages:u,setDevToolVersion:p,setEngine:h,setDebugMode:v}=dn(),[y,b]=k.useState(""),P=k.useRef(!1);return k.useEffect(()=>{P.current||(P.current=!0,n(),Qi({url:"/game/config",method:"GET"}).then(E=>{if(E.error){r(),s({visible:!0,text:D("getDevGameConfigFailed")+`: ${E.error.errorMsg}`}),b(D("getDevGameConfigFailed")),console.log(`❌ ${D("getDevGameConfigFailed")}: ${E.error.errorMsg}`);return}const{schema:S,nodeWsPort:_,user:O,packages:I,devToolVersion:N,clientKey:M,engine:F,nodeStaticBaseUrl:L,checkResult:A,lang:z}=E.data;if(jB(z),ZB(),console.log(`✅ ${D("getDevGameConfigSuccess")}`),z||Qi({url:"/game/config-fillback",method:"POST",data:{lang:navigator.language}}),l(S),Ee.setMultiple({nodeWsPort:_,email:O?.email,clientKey:M,nodeStaticBaseUrl:L}),c(O),p(N),u(I),h(F),!EC()){const U=F==="unity"?or.clientPreview:or.browserDebug;v(U),kC(U)}o(O),e({currentUser:O,checkResult:A}),r()}))},[o,r,p,h,v,s,u,l,c,n,e]),{isServerError:!!y,serverErrorMsg:y}}function XG({onResourceChange:o}){k.useEffect(()=>{const e=()=>{o()};return Oe.on("resourceChange",e),()=>{Oe.off("resourceChange",e)}},[o])}const YG="modulepreload",ZG=function(o){return"/"+o},Nw={},zt=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let p=function(h){return Promise.all(h.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(h=>{if(h=ZG(h),h in Nw)return;Nw[h]=!0;const v=h.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":YG,v||(b.as="script"),b.crossOrigin="",b.href=h,u&&b.setAttribute("nonce",u),document.head.appendChild(b),v)return new Promise((P,E)=>{b.addEventListener("load",P),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}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)})},HC=()=>{const{state:{loading:o}}=dn();return o.visible?T.jsx("div",{className:"loading-container",children:T.jsxs("div",{className:"loading-content",children:[T.jsx(Mr,{size:"large"}),T.jsx("div",{className:"loading-text",children:o.text})]})}):null},JG=w.memo(()=>{const{setMessage:o,hideLoading:e,state:{gameDetail:n,debugSetting:r,isConnected:s,selectedLaunchOption:l,debugMode:c}}=dn();HG();const[u,p]=k.useState(""),h=E=>{if(!E.client||!E.node){Ee.set("hasSetup",!1);return}if(Ee.get("hasSetup"))return;Ee.set("hasSetup",!0),(async()=>(e(),o({type:"success",desc:D("setupDevEnv")}),await Rw({debugSetting:r,debugMode:c})))()},v=k.useCallback(({status:E,msg:S,progress:_})=>{switch(E){case"start":const O=`⌛️ ${D("uploadStart")}`;o({type:"info",desc:O}),console.log(O);break;case"success":o({type:"success",desc:D("uploadSuccess")}),console.log(`✅ ${D("uploadSuccess")}`);break;case"error":const I=`${D("uploadError")}: ${S}`;o({type:"danger",desc:I}),console.log(I);break;case"restart":break;case"process":const N=`${D("uploadProcess")} ${(_*100).toFixed(0)}%`;o({type:"info",desc:N});break}},[]),y=k.useCallback(({isScriptsReady:E,isResourcesReady:S,isScriptsFailed:_,isResourcesFailed:O})=>{E&&S?(Fn.info("scripts and resources are ready, send meta"),WB(n),o({type:"success",desc:D(c==="clientPreview"?"clientPreviewEnvSetupSuccess":"debugEnvSetupSuccess")})):_?o({type:"danger",desc:D("scriptsSetupFailed")}):O&&o({type:"danger",desc:D("resourcesSetupFailed")})},[n,l,c]),b=()=>{if(!s)return;const E=tr.warning({position:"top",duration:1e4,title:D("gameResourceUpdated"),id:u,onClose:()=>{p("")},content:T.jsxs(T.Fragment,{children:[T.jsx("p",{children:D("gameResourceChange")}),T.jsxs("div",{className:"banner-footer",children:[T.jsx(et,{type:"tertiary",onClick:()=>{tr.close(E)},children:D("notUpload")}),T.jsx(et,{style:{marginLeft:12},type:"warning",onClick:()=>{Fn.info("upload"),Fn.info("upload iframe onload, 开始重新初始化"),Rw({debugSetting:r,debugMode:c}),tr.close(E)},children:D("uploadToClient")})]})]})});p(E)},P=k.useCallback(({status:E,errorMsg:S})=>{E==="start"?(o({type:"info",title:D("gameResourceCompilingTitle"),desc:D("gameResourceCompiling")}),console.warn(`⚠️ ${D("gameResourceCompiling")}`)):E==="end"&&(S?(o({type:"danger",desc:S}),console.error(`❌ ${S}`)):(o({type:"success",title:D("gameResourceCompileSuccessTitle"),desc:D("gameResourceCompileSuccess")}),console.log(`✅ ${D("gameResourceCompileSuccess")}`)))},[]);return k.useEffect(()=>(Oe.on("connectionChange",h),Oe.on("compilationStatus",P),Oe.on("resourceChange",b),Oe.on("uploadGame",v),Oe.on("setupStatusChange",y),()=>{Oe.off("compilationStatus",P),Oe.off("resourceChange",b),Oe.off("setupStatusChange",y),Oe.off("uploadGame",v),Oe.off("connectionChange",h)}),[h,P,b,y,v]),null});var Wi={},ph,Aw;function VC(){return Aw||(Aw=1,ph={L:1,M:0,Q:3,H:2}),ph}var fh,Lw;function KC(){return Lw||(Lw=1,fh={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),fh}var hh,jw;function eW(){if(jw)return hh;jw=1;var o=KC();function e(n){this.mode=o.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)}},hh=e,hh}var gh,Mw;function tW(){if(Mw)return gh;Mw=1;var o=VC();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],h=s[u*3+1],v=s[u*3+2],y=0;y<p;y++)c.push(new e(h,v));return c},e.getRsBlockTable=function(n,r){switch(r){case o.L:return e.RS_BLOCK_TABLE[(n-1)*4+0];case o.M:return e.RS_BLOCK_TABLE[(n-1)*4+1];case o.Q:return e.RS_BLOCK_TABLE[(n-1)*4+2];case o.H:return e.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},gh=e,gh}var mh,$w;function nW(){if($w)return mh;$w=1;function o(){this.buffer=new Array,this.length=0}return o.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++}},mh=o,mh}var vh,Fw;function QC(){if(Fw)return vh;Fw=1;for(var o={glog:function(n){if(n<1)throw new Error("glog("+n+")");return o.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return o.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},e=0;e<8;e++)o.EXP_TABLE[e]=1<<e;for(var e=8;e<256;e++)o.EXP_TABLE[e]=o.EXP_TABLE[e-4]^o.EXP_TABLE[e-5]^o.EXP_TABLE[e-6]^o.EXP_TABLE[e-8];for(var e=0;e<255;e++)o.LOG_TABLE[o.EXP_TABLE[e]]=e;return vh=o,vh}var yh,zw;function XC(){if(zw)return yh;zw=1;var o=QC();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]^=o.gexp(o.glog(this.get(s))+o.glog(n.get(l)));return new e(r,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var r=o.glog(this.get(0))-o.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]^=o.gexp(o.glog(n.get(l))+r);return new e(s,0).mod(n)}},yh=e,yh}var bh,Bw;function rW(){if(Bw)return bh;Bw=1;var o=KC(),e=XC(),n=QC(),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 o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:throw new Error("mode:"+l)}else if(c<27)switch(l){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw new Error("mode:"+l)}else if(c<41)switch(l){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.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 h=0;h<c;h++){for(var v=0,y=l.isDark(p,h),b=-1;b<=1;b++)if(!(p+b<0||c<=p+b))for(var P=-1;P<=1;P++)h+P<0||c<=h+P||b==0&&P==0||y==l.isDark(p+b,h+P)&&v++;v>5&&(u+=3+v-5)}for(var p=0;p<c-1;p++)for(var h=0;h<c-1;h++){var E=0;l.isDark(p,h)&&E++,l.isDark(p+1,h)&&E++,l.isDark(p,h+1)&&E++,l.isDark(p+1,h+1)&&E++,(E==0||E==4)&&(u+=3)}for(var p=0;p<c;p++)for(var h=0;h<c-6;h++)l.isDark(p,h)&&!l.isDark(p,h+1)&&l.isDark(p,h+2)&&l.isDark(p,h+3)&&l.isDark(p,h+4)&&!l.isDark(p,h+5)&&l.isDark(p,h+6)&&(u+=40);for(var h=0;h<c;h++)for(var p=0;p<c-6;p++)l.isDark(p,h)&&!l.isDark(p+1,h)&&l.isDark(p+2,h)&&l.isDark(p+3,h)&&l.isDark(p+4,h)&&!l.isDark(p+5,h)&&l.isDark(p+6,h)&&(u+=40);for(var S=0,h=0;h<c;h++)for(var p=0;p<c;p++)l.isDark(p,h)&&S++;var _=Math.abs(100*S/c/c-50)/5;return u+=_*10,u}};return bh=s,bh}var Sh,qw;function iW(){if(qw)return Sh;qw=1;var o=eW(),e=tW(),n=nW(),r=rW(),s=XC();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 o(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),h=new n,v=0,y=0;y<p.length;y++)v+=p[y].dataCount;for(var y=0;y<this.dataList.length;y++){var b=this.dataList[y];h.put(b.mode,4),h.put(b.getLength(),r.getLengthInBits(b.mode,u)),b.write(h)}if(h.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 h=0;h<this.moduleCount;h++){this.modules[h]=new Array(this.moduleCount);for(var v=0;v<this.moduleCount;v++)this.modules[h][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 h=-1;h<=7;h++)if(!(u+h<=-1||this.moduleCount<=u+h))for(var v=-1;v<=7;v++)p+v<=-1||this.moduleCount<=p+v||(0<=h&&h<=6&&(v==0||v==6)||0<=v&&v<=6&&(h==0||h==6)||2<=h&&h<=4&&2<=v&&v<=4?this.modules[u+h][p+v]=!0:this.modules[u+h][p+v]=!1)},c.getBestMaskPattern=function(){for(var u=0,p=0,h=0;h<8;h++){this.makeImpl(!0,h);var v=r.getLostPoint(this);(h==0||u>v)&&(u=v,p=h)}return p},c.createMovieClip=function(u,p,h){var v=u.createEmptyMovieClip(p,h),y=1;this.make();for(var b=0;b<this.modules.length;b++)for(var P=b*y,E=0;E<this.modules[b].length;E++){var S=E*y,_=this.modules[b][E];_&&(v.beginFill(0,100),v.moveTo(S,P),v.lineTo(S+y,P),v.lineTo(S+y,P+y),v.lineTo(S,P+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 h=0;h<u.length;h++){var v=u[p],y=u[h];if(this.modules[v][y]==null)for(var b=-2;b<=2;b++)for(var P=-2;P<=2;P++)b==-2||b==2||P==-2||P==2||b==0&&P==0?this.modules[v+b][y+P]=!0:this.modules[v+b][y+P]=!1}},c.setupTypeNumber=function(u){for(var p=r.getBCHTypeNumber(this.typeNumber),h=0;h<18;h++){var v=!u&&(p>>h&1)==1;this.modules[Math.floor(h/3)][h%3+this.moduleCount-8-3]=v}for(var h=0;h<18;h++){var v=!u&&(p>>h&1)==1;this.modules[h%3+this.moduleCount-8-3][Math.floor(h/3)]=v}},c.setupTypeInfo=function(u,p){for(var h=this.errorCorrectLevel<<3|p,v=r.getBCHTypeInfo(h),y=0;y<15;y++){var b=!u&&(v>>y&1)==1;y<6?this.modules[y][8]=b:y<8?this.modules[y+1][8]=b:this.modules[this.moduleCount-15+y][8]=b}for(var y=0;y<15;y++){var b=!u&&(v>>y&1)==1;y<8?this.modules[8][this.moduleCount-y-1]=b:y<9?this.modules[8][15-y-1+1]=b:this.modules[8][15-y-1]=b}this.modules[this.moduleCount-8][8]=!u},c.mapData=function(u,p){for(var h=-1,v=this.moduleCount-1,y=7,b=0,P=this.moduleCount-1;P>0;P-=2)for(P==6&&P--;;){for(var E=0;E<2;E++)if(this.modules[v][P-E]==null){var S=!1;b<u.length&&(S=(u[b]>>>y&1)==1);var _=r.getMask(p,v,P-E);_&&(S=!S),this.modules[v][P-E]=S,y--,y==-1&&(b++,y=7)}if(v+=h,v<0||this.moduleCount<=v){v-=h,h=-h;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(u,p,h){for(var v=e.getRSBlocks(u,p),y=new n,b=0;b<h.length;b++){var P=h[b];y.put(P.mode,4),y.put(P.getLength(),r.getLengthInBits(P.mode,u)),P.write(y)}for(var E=0,b=0;b<v.length;b++)E+=v[b].dataCount;if(y.getLengthInBits()>E*8)throw new Error("code length overflow. ("+y.getLengthInBits()+">"+E*8+")");for(y.getLengthInBits()+4<=E*8&&y.put(0,4);y.getLengthInBits()%8!=0;)y.putBit(!1);for(;!(y.getLengthInBits()>=E*8||(y.put(l.PAD0,8),y.getLengthInBits()>=E*8));)y.put(l.PAD1,8);return l.createBytes(y,v)},l.createBytes=function(u,p){for(var h=0,v=0,y=0,b=new Array(p.length),P=new Array(p.length),E=0;E<p.length;E++){var S=p[E].dataCount,_=p[E].totalCount-S;v=Math.max(v,S),y=Math.max(y,_),b[E]=new Array(S);for(var O=0;O<b[E].length;O++)b[E][O]=255&u.buffer[O+h];h+=S;var I=r.getErrorCorrectPolynomial(_),N=new s(b[E],I.getLength()-1),M=N.mod(I);P[E]=new Array(I.getLength()-1);for(var O=0;O<P[E].length;O++){var F=O+M.getLength()-P[E].length;P[E][O]=F>=0?M.get(F):0}}for(var L=0,O=0;O<p.length;O++)L+=p[O].totalCount;for(var A=new Array(L),z=0,O=0;O<v;O++)for(var E=0;E<p.length;E++)O<b[E].length&&(A[z++]=b[E][O]);for(var O=0;O<y;O++)for(var E=0;E<p.length;E++)O<P[E].length&&(A[z++]=P[E][O]);return A},Sh=l,Sh}var Ba={},Gw;function oW(){if(Gw)return Ba;Gw=1,Object.defineProperty(Ba,"__esModule",{value:!0});var o=Object.assign||function(h){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(h[b]=y[b])}return h},e=Ah(),n=l(e),r=fs(),s=l(r);function l(h){return h&&h.__esModule?h:{default:h}}function c(h,v){var y={};for(var b in h)v.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(h,b)&&(y[b]=h[b]);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(h,v){var y=h.bgColor,b=h.bgD,P=h.fgD,E=h.fgColor,S=h.size,_=h.title,O=h.viewBoxSize,I=h.xmlns,N=I===void 0?"http://www.w3.org/2000/svg":I,M=c(h,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return s.default.createElement("svg",o({},M,{height:S,ref:v,viewBox:"0 0 "+O+" "+O,width:S,xmlns:N}),_?s.default.createElement("title",null,_):null,s.default.createElement("path",{d:b,fill:y}),s.default.createElement("path",{d:P,fill:E}))});return p.displayName="QRCodeSvg",p.propTypes=u,Ba.default=p,Ba}var Ww;function sW(){if(Ww)return Wi;Ww=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.QRCode=void 0;var o=Object.assign||function(S){for(var _=1;_<arguments.length;_++){var O=arguments[_];for(var I in O)Object.prototype.hasOwnProperty.call(O,I)&&(S[I]=O[I])}return S},e=Ah(),n=y(e),r=VC(),s=y(r),l=iW(),c=y(l),u=fs(),p=y(u),h=oW(),v=y(h);function y(S){return S&&S.__esModule?S:{default:S}}function b(S,_){var O={};for(var I in S)_.indexOf(I)>=0||Object.prototype.hasOwnProperty.call(S,I)&&(O[I]=S[I]);return O}var P={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},E=(0,u.forwardRef)(function(S,_){var O=S.bgColor,I=O===void 0?"#FFFFFF":O,N=S.fgColor,M=N===void 0?"#000000":N,F=S.level,L=F===void 0?"L":F,A=S.size,z=A===void 0?256:A,U=S.value,K=b(S,["bgColor","fgColor","level","size","value"]),V=new c.default(-1,s.default[L]);V.addData(U),V.make();var ie=V.modules;return p.default.createElement(v.default,o({},K,{bgColor:I,bgD:ie.map(function(ee,ve){return ee.map(function(le,_e){return le?"":"M "+_e+" "+ve+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:M,fgD:ie.map(function(ee,ve){return ee.map(function(le,_e){return le?"M "+_e+" "+ve+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:_,size:z,viewBoxSize:ie.length}))});return Wi.QRCode=E,E.displayName="QRCode",E.propTypes=P,Wi.default=E,Wi}var aW=sW();const Uw=Ze(aW),lW=o=>{const e=Ps(),{isConnected:n}=o,{state:{devSchema:r,schema:s,launchOptions:l,selectedLaunchOption:c,debugMode:u,user:p},setShowManualBindIP:h,setSelectedLaunchOption:v,setDebugMode:y}=dn(),[b,P]=k.useState(!1),E=Pg(p),S=k.useMemo(()=>{try{if(!r)return null;const N=new URL(r),M=(N.searchParams.get("host")||"").trim(),F=N.searchParams.get("host_list")||"";let L=[];if(F)try{L=JSON.parse(decodeURIComponent(F))}catch{L=[]}const A=M==="127.0.0.1"||M==="localhost",z=Array.isArray(L)&&L.length>0;return A||!z?{host:M,hostList:L}:null}catch{return{host:"",hostList:[]}}},[r]),_=N=>{N.status==="success"&&P(!1),N.status==="failed"&&P(!1),N.status==="start"&&P(!0)},O=N=>{y(N),kC(N)};k.useEffect(()=>(Oe.on("scanQRCode",_),()=>{Oe.off("scanQRCode",_)}),[]);const I=N=>{if(N==="created")v({...Ha,name:""}),e("/launch_mode");else{const M=l.find(F=>F.id===N);M&&v(M)}};return n?T.jsx("div",{className:"qr-code-container-connected",children:T.jsxs("div",{className:"qr-code-connected-content",children:[T.jsx(Uw,{className:"qr-code-connected",size:150,value:s}),T.jsxs("div",{className:"qr-code-connected-info",children:[T.jsx("div",{className:"qr-code-connected-desc-title",children:D("scanQRCodeChange")}),T.jsx("div",{className:"qr-code-connected-desc",children:D("scanQRCodeDesc")})]})]})}):T.jsxs("div",{className:"qr-code-container-disconnected",children:[T.jsx("div",{className:"qr-code-select-container",children:T.jsx($r,{className:"qr-code-launch-select",value:c?.id,onChange:I,placeholder:D("selectLaunchMode"),style:{width:"156px"},optionList:l.map(N=>({label:N.name,value:N.id}))})}),T.jsxs("div",{className:"qr-code-content",children:[S?T.jsx(Ss,{style:{marginBottom:12},bordered:!1,icon:null,closeIcon:null,fullMode:!1,type:"danger",title:D("networkNoLanIPTitle"),description:T.jsxs("div",{children:[T.jsx("div",{style:{marginBottom:8},children:D("networkNoLanIPDesc")}),T.jsx(et,{size:"small",type:"primary",onClick:()=>h(!0),children:D("networkNoLanIPAction")})]})}):null,T.jsxs("div",{className:"qr-code-schema",children:[T.jsx(Uw,{value:r}),T.jsxs(cg,{className:"qr-code-mode-switches",children:[T.jsx(et,{className:`qr-code-mode-button ${u==="browserDebug"?"is-active":""}`,theme:"borderless",type:"tertiary",size:"small",onClick:()=>O("browserDebug"),children:D("browserDebugMode")}),T.jsx(et,{className:`qr-code-mode-button ${u==="clientPreview"?"is-active":""}`,onClick:()=>O("clientPreview"),theme:"borderless",type:"tertiary",size:"small",children:D("clientPreviewMode")})]}),b&&T.jsxs("div",{className:"qr-code-spin",children:[T.jsx(Mr,{size:"large"}),T.jsx("div",{className:"qr-code-text",children:D("scanning")})]})]}),T.jsxs("div",{className:"qr-code-side-panel",children:[T.jsxs("div",{className:"qr-code-diagnostics-card",children:[T.jsx("div",{className:"qr-code-diagnostics-card-copy",children:T.jsx(Ye.Text,{children:D("netDiagEntryDesc")})}),T.jsx(et,{className:"qr-code-diagnostics-entry",theme:"light",size:"small",onClick:()=>e("/network_diagnostics"),children:D("netDiagEntryAction")})]}),E?null:T.jsxs("div",{className:"qr-code-login-guide",children:[T.jsxs("div",{className:"qr-code-login-guide-copy",children:[T.jsx(Ye.Text,{strong:!0,children:D("basicDebugGuide.entryTitle")}),T.jsx(Ye.Text,{children:D("basicDebugGuide.entryDesc")})]}),T.jsx(et,{theme:"light",onClick:()=>e("/basic_debug_guide"),children:D("basicDebugGuide.entryAction")})]})]})]})]})},cW=[{key:"domain-check",labelKey:"debugSettingDomainCheck",descriptionKey:"devOptionsDomainCheckDesc",getChecked:o=>!o.enableDomainCheck,getNextSetting:(o,e)=>({...o,enableDomainCheck:!e})},{key:"ad-mock",labelKey:"debugSettingAdMock",descriptionKey:"debugSettingAdMockDesc",getChecked:o=>o.enableAdMock,getNextSetting:(o,e)=>({...o,enableAdMock:e})},{key:"iap-mock",labelKey:"debugSettingIAPMock",descriptionKey:"debugSettingIAPMockDesc",getChecked:o=>o.enableIAPMock,getNextSetting:(o,e)=>({...o,enableIAPMock:e})},{key:"dev-info-panel",labelKey:"debugSettingDevInfoPanel",descriptionKey:"debugSettingEnableDevInfoPanelDesc",getChecked:o=>o.enableDevInfoPanel,getNextSetting:(o,e)=>({...o,enableDevInfoPanel:e})},{key:"vconsole",labelKey:"debugSettingVConsole",descriptionKey:"debugSettingEnableVconsoleDesc",isAvailable:o=>o!==or.browserDebug,getChecked:o=>o.enableVConsole,getNextSetting:(o,e)=>({...o,enableVConsole:e})}];function uW({debugMode:o,debugSetting:e,onChange:n}){return cW.filter(r=>!r.isAvailable||r.isAvailable(o)).map(r=>({key:r.key,checked:r.getChecked(e),label:D(r.labelKey),description:D(r.descriptionKey),onChange:s=>n(r.getNextSetting(e,s))}))}const dW=()=>{const{state:{debugSetting:o,debugMode:e},setDebugSetting:n}=dn(),r=c=>{n(c)},s=()=>{ks.send({method:"setDebugSettings",payload:o})};k.useEffect(()=>(Oe.on("connectionChange",s),()=>{Oe.off("connectionChange",s)}),[s]);const l=uW({debugMode:e,debugSetting:o,onChange:r});return T.jsx("div",{className:"debug-setting-card",children:T.jsxs(Cl,{style:{width:"100%"},children:[T.jsx("div",{className:"debug-setting-head",children:T.jsx(Ye.Text,{style:{fontWeight:"bold",fontSize:16},children:D("devOptions")})}),T.jsx("div",{className:"debug-setting-row",children:l.map(c=>T.jsxs("div",{className:"debug-setting-item",children:[T.jsxs("div",{className:"debug-setting-item-head",children:[T.jsx(Sg,{className:"debug-setting-switch",checked:c.checked,onChange:c.onChange}),T.jsx(Ye.Text,{className:"debug-setting-item-title",children:c.label})]}),T.jsx(Ye.Text,{className:"debug-setting-item-desc",type:"tertiary",children:c.description})]},c.key))})]})})};function pW(o){const{ip:e,port:n,wsPort:r}=o;Ee.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),Vi.send({method:"manualConnect",payload:{clientHost:e,clientWsPort:r,clientHttpPort:n}}),ks.init({clientWsPort:r,clientHost:e,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}function Hw(o){const e=String(o.ip||""),n=String(o.port||""),r=String(o.wsPort||"");Ee.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}const YC=o=>{const{onClose:e,onSuccess:n,onValuesChange:r,onConnectResult:s,getFormApi:l,layout:c="default"}=o,[u,p]=k.useState(!1),[h,v]=k.useState({}),y=(A,z=3e3)=>new Promise(U=>{let K=!1;const V=setTimeout(()=>{if(!K){K=!0;try{ie?.close()}catch{}U({ok:!1,message:D("connectivityTimeout")})}},z);let ie=null;try{ie=new WebSocket(A),ie.onopen=()=>{if(!K){K=!0,clearTimeout(V);try{ie?.close()}catch{}U({ok:!0,message:D("connectivityOK")})}},ie.onerror=()=>{K||(K=!0,clearTimeout(V),U({ok:!1,message:D("connectivityFailed")}))}}catch{clearTimeout(V),U({ok:!1,message:D("connectivityFailed")})}}),b=async A=>{if(!L(A)){s?.({ok:!1,message:D("connectivityMissingParams")});return}p(!0),pW(A);const{ip:z,wsPort:U}=A,K=await y(`ws://${z}:${U}`);s?.(K),K.ok&&n?.(),p(!1)},P=k.useMemo(()=>({ip:Ee.get("clientHost")||localStorage.getItem("clientHost")||"",port:Ee.get("clientHttpPort")||localStorage.getItem("clientHttpPort")||"",wsPort:Ee.get("clientWsPort")||localStorage.getItem("clientWsPort")||""}),[]),[E,S]=k.useState(P),_=k.useRef(P),O=k.useRef(null),I=k.useRef(null),N=k.useRef(null),M=A=>{const z={..._.current,...A};_.current=z,S(z),v(U=>({...U,...A.ip!==void 0?{ip:void 0}:{},...A.port!==void 0?{port:void 0}:{},...A.wsPort!==void 0?{wsPort:void 0}:{}})),r?.(z),Hw(z)},F=()=>{const A=O.current?.querySelector("input")?.value,z=I.current?.querySelector("input")?.value,U=N.current?.querySelector("input")?.value,K={ip:String(A||""),port:String(z||""),wsPort:String(U||"")};(K.ip!==_.current.ip||K.port!==_.current.port||K.wsPort!==_.current.wsPort)&&M(K)};k.useEffect(()=>{_.current=P,S(P),r?.(P),Hw(P)},[P]),k.useEffect(()=>{const A=[0,80,300,800].map(z=>window.setTimeout(()=>F(),z));return()=>{A.forEach(z=>window.clearTimeout(z))}},[]),k.useEffect(()=>{l?.({getValues:()=>_.current,submitForm:()=>b(_.current)})},[l]);const L=A=>{const z={};return String(A.ip||"").trim()||(z.ip=D("debug.guide.manualBindIPInvalid")),String(A.port||"").trim()||(z.port=D("invalidPort")),String(A.wsPort||"").trim()||(z.wsPort=D("invalidPort")),v(z),Object.keys(z).length===0};return T.jsxs("div",{className:`manual-connection-form manual-connection-form-${c}`,children:[T.jsxs("div",{className:"manual-connection-grid",children:[T.jsxs("div",{className:"manual-connection-field",children:[T.jsxs("div",{className:"manual-connection-label",children:[T.jsx(Ye.Text,{strong:!0,children:"Client IP "}),T.jsx(Ye.Text,{type:"danger",children:"*"})]}),T.jsx("div",{ref:O,children:T.jsx(as,{value:E.ip,onChange:A=>M({ip:String(A||"")}),onBlur:F,placeholder:"192.168.x.x"})}),h.ip?T.jsx(Ye.Text,{type:"danger",children:h.ip}):null]}),T.jsxs("div",{className:"manual-connection-field",children:[T.jsxs("div",{className:"manual-connection-label",children:[T.jsx(Ye.Text,{strong:!0,children:"Port 1(HTTP 端口) "}),T.jsx(Ye.Text,{type:"danger",children:"*"})]}),T.jsx("div",{ref:I,children:T.jsx(as,{value:E.port,onChange:A=>M({port:String(A||"")}),onBlur:F,placeholder:"3000"})}),h.port?T.jsx(Ye.Text,{type:"danger",children:h.port}):null]}),T.jsxs("div",{className:"manual-connection-field",children:[T.jsxs("div",{className:"manual-connection-label",children:[T.jsx(Ye.Text,{strong:!0,children:"Port 2(WS 端口) "}),T.jsx(Ye.Text,{type:"danger",children:"*"})]}),T.jsx("div",{ref:N,children:T.jsx(as,{value:E.wsPort,onChange:A=>M({wsPort:String(A||"")}),onBlur:F,placeholder:"2999"})}),h.wsPort?T.jsx(Ye.Text,{type:"danger",children:h.wsPort}):null]})]}),e?T.jsx("div",{className:"manual-connection-footer",children:T.jsx(et,{onClick:()=>e(),loading:u,children:D("cancel")})}):null]})},fW=()=>{const{state:{showManualBindIP:o},setShowManualBindIP:e}=dn();return T.jsx(Xt,{title:D("manualBindClientDebugServiceTitle"),visible:o,showCancel:!1,onCancel:()=>e(!1),showOk:!1,footer:null,children:T.jsx(YC,{onClose:()=>e(!1),onSuccess:()=>e(!1)})})},hW=()=>{const{state:{isConnected:o,message:e}}=k.useContext(wg);return T.jsxs("div",{className:"home-container",children:[T.jsx(Ss,{className:"home-status-banner",fullMode:!1,icon:null,closeIcon:null,type:e?.type,title:e?.title,description:e?.desc}),T.jsx(lW,{isConnected:o}),!o&&T.jsx(dW,{}),T.jsx(JG,{}),T.jsx(fW,{})]})},gW="https://bytedance.larkoffice.com/wiki/WvifwWjGri7bTzkPbqKcqVi5ntc";function mW(o){try{return o?(new URL(o).searchParams.get("port")||"").trim():""}catch{return""}}function vW(o,e){return o?o.ok?"success":o.code==="status"?"warning":"error":e?"running":"idle"}function yW(o){return D(o==="success"?"connectivityOK":o==="warning"?"netDiagStatusWarning":o==="error"?"connectivityNotOK":o==="running"?"netDiagStatusRunning":"netDiagStatusIdle")}function bW(o,e){return o?o.ok?D("netDiagCheckReachableDetail"):o.msg||D("connectivityFailed"):D(e?"netDiagCheckRunningDetail":"netDiagCheckIdleDetail")}function SW(o){return o==="missing-client"||o==="client-both-failed"||o==="client-ws-failed"?{label:D("netDiagActionManualConnect"),desc:D("netDiagActionManualConnectDesc"),action:"manual"}:o==="healthy"?{label:D("netDiagActionBackToScan"),desc:D("netDiagActionBackToScanDesc"),action:"back"}:o==="node-service"?{label:D("netDiagActionRerunAfterRestart"),desc:D("netDiagActionRerunAfterRestartDesc"),action:"rerun"}:{label:D("netDiagRunAll"),desc:D("netDiagActionRunAllDesc"),action:"rerun"}}function wW({hasChecked:o,running:e,nodeHttp:n,nodeWs:r,clientHttp:s,clientWs:l,hasClientEndpoint:c}){return e?{kind:"running",title:D("netDiagSummaryRunningTitle"),desc:D("netDiagSummaryRunningDesc"),suggestions:[D("netDiagSummaryRunningHint")]}:o?c?n&&!n.ok?{kind:"node-service",title:D("netDiagSummaryNodeTitle"),desc:D("netDiagSummaryNodeDesc"),suggestions:[D("netDiagSuggestNodeDesc"),D("netDiagSuggestNodeRestart")]}:r&&!r.ok?{kind:"node-service",title:D("netDiagSummaryNodeTitle"),desc:D("netDiagSummaryNodeWsDesc"),suggestions:[D("netDiagSuggestNodeDesc")]}:s?.ok&&l&&!l.ok?{kind:"client-ws-failed",title:D("netDiagSummaryClientWsTitle"),desc:D("netDiagSummaryClientWsDesc"),suggestions:[D("netDiagSuggestClientDebugService"),D("netDiagSuggestHttpOkWsFail1"),D("netDiagSuggestHttpOkWsFail2")]}:s&&!s.ok&&l&&!l.ok?{kind:"client-both-failed",title:D("netDiagSummaryClientBothTitle"),desc:D("netDiagSummaryClientBothDesc"),suggestions:[D("netDiagSuggestClientDebugService"),D("netDiagSuggestBothFail1"),D("netDiagSuggestBothFail2")]}:n?.ok&&r?.ok&&s?.ok&&l?.ok?{kind:"healthy",title:D("netDiagSummaryHealthyTitle"),desc:D("netDiagSummaryHealthyDesc"),suggestions:[D("netDiagSuggestOkDesc")]}:{kind:"partial",title:D("netDiagSummaryPartialTitle"),desc:D("netDiagSummaryPartialDesc"),suggestions:[D("netDiagSummaryPartialHint")]}:{kind:"missing-client",title:D("netDiagSummaryMissingClientTitle"),desc:D("netDiagSummaryMissingClientDesc"),suggestions:[D("netDiagSuggestNoClientDesc")]}:c?{kind:"idle",title:D("netDiagSummaryIdleTitle"),desc:D("netDiagSummaryIdleDesc"),suggestions:[D("netDiagSummaryIdleHint")]}:{kind:"missing-client",title:D("netDiagSummaryMissingClientTitle"),desc:D("netDiagSummaryMissingClientDesc"),suggestions:[D("netDiagSuggestNoClientDesc")]}}const Vw=(o,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:D("connectivityTimeout")})}},e);let l=null;try{l=new WebSocket(o),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:D("connectivityFailed")}))}}catch{clearTimeout(s),n({ok:!1,code:"error",msg:D("connectivityFailed")})}}),Kw=async o=>{try{const e=new AbortController,n=setTimeout(()=>e.abort(),3e3),r=await fetch(o,{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:D("connectivityTimeout")}:{ok:!1,code:"error",msg:D("connectivityFailed")}}},CW=()=>{const o=Ps(),{state:{devSchema:e,schema:n}}=dn(),[r,s]=k.useState(!1),[l,c]=k.useState(!1),[u,p]=k.useState(!0),[h,v]=k.useState(!1),[y,b]=k.useState(!1),[P,E]=k.useState(!1),[S,_]=k.useState(null),[O,I]=k.useState(0),[N,M]=k.useState(),[F,L]=k.useState(),[A,z]=k.useState(),[U,K]=k.useState(),[V,ie]=k.useState(!1),[ee,ve]=k.useState(null),[le,_e]=k.useState(()=>({ip:String(Ee.get("clientHost")||localStorage.getItem("clientHost")||""),port:String(Ee.get("clientHttpPort")||localStorage.getItem("clientHttpPort")||""),wsPort:String(Ee.get("clientWsPort")||localStorage.getItem("clientWsPort")||"")})),Ce=k.useMemo(()=>{const ne=S?.getValues?.();return{ip:String(ne?.ip||le.ip||""),port:String(ne?.port||le.port||""),wsPort:String(ne?.wsPort||le.wsPort||"")}},[S,le,O]),H=k.useCallback(ne=>{_e(ne),I(oe=>oe+1)},[]),Z=k.useMemo(()=>{const{nodeWsPort:ne,clientHost:oe,clientHttpPort:mt,clientWsPort:vt}=Ee.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let pn="";try{n&&(pn=(new URL(n).searchParams.get("host")||"").trim())}catch{}return{schemaHost:pn,httpPort:mW(n),nodeWsPort:ne,clientHost:oe,clientHttpPort:mt,clientWsPort:vt}},[e,n]);k.useEffect(()=>{if(!S?.getValues)return;const ne=S.getValues();ne&&(ne.ip||ne.port||ne.wsPort)&&_e({ip:String(ne.ip||""),port:String(ne.port||""),wsPort:String(ne.wsPort||"")})},[S]);const x=String(Ce.ip||Z.clientHost||"").trim(),W=String(Ce.port||Z.clientHttpPort||"").trim(),re=String(Ce.wsPort||Z.clientWsPort||"").trim(),ae=k.useCallback(async()=>{ie(!0),s(!0),M(void 0),L(void 0),z(void 0),K(void 0);const ne=await Kw("/game/config");M(ne);const oe=Z.nodeWsPort;L(oe?await Vw(`ws://localhost:${oe}`):{ok:!1,code:"error",msg:D("connectivityMissingParams")}),z(x&&W?await Kw(`http://${x}:${W}/game/scripts/krypton.js`):{ok:!1,code:"error",msg:D("netDiagMissingClientHttp")}),K(x&&re?await Vw(`ws://${x}:${re}`):{ok:!1,code:"error",msg:D("netDiagMissingClientWs")}),b(!0),s(!1)},[Z.nodeWsPort,x,W,re]);k.useEffect(()=>{ae()},[ae]);const de=k.useMemo(()=>[{key:"node-http",title:D("netDiagCheckNodeHttp"),target:"/game/config",item:N},{key:"node-ws",title:D("netDiagCheckNodeWs"),target:Z.nodeWsPort?`ws://localhost:${Z.nodeWsPort}`:"-",item:F},{key:"client-http",title:D("netDiagCheckClientHttp"),target:x&&W?`http://${x}:${W}`:"-",item:A},{key:"client-ws",title:D("netDiagCheckClientWs"),target:x&&re?`ws://${x}:${re}`:"-",item:U}],[A,U,Z.nodeWsPort,N,F,x,W,re]),he=k.useMemo(()=>wW({hasChecked:V,running:r,nodeHttp:N,nodeWs:F,clientHttp:A,clientWs:U,hasClientEndpoint:!!(x&&W&&re)}),[A,U,V,N,F,x,W,re,r]),ye=he.suggestions,be=k.useMemo(()=>SW(he.kind),[he.kind]);return k.useEffect(()=>{(he.kind==="missing-client"||he.kind==="client-both-failed"||he.kind==="client-ws-failed")&&v(!0)},[he.kind]),T.jsxs("div",{className:"check-network-container",children:[T.jsxs("div",{className:"check-network-hero",children:[T.jsx("div",{className:"check-network-back",children:T.jsx(et,{className:"devtool-page-back",theme:"borderless",onClick:()=>o("/"),children:D("back")})}),T.jsx("div",{className:"check-network-hero-head",children:T.jsxs("div",{className:"check-network-hero-copy",children:[T.jsx("div",{className:"check-network-hero-title",children:D("netDiagTitle")}),T.jsx("div",{className:"check-network-hero-subtitle",children:D("netDiagSubtitle")})]})})]}),T.jsxs("section",{className:"check-network-section",children:[T.jsxs("div",{className:"check-network-section-headline",children:[T.jsxs("div",{children:[T.jsx("div",{className:"check-network-section-title",children:D("netDiagEnvTitle")}),T.jsx("div",{className:"check-network-suggest-desc",children:D("netDiagEnvSectionDesc")})]}),T.jsx(et,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>c(ne=>!ne),children:D(l?"netDiagCollapse":"netDiagExpand")})]}),l?T.jsxs("div",{className:"check-network-summary-grid",children:[T.jsxs("div",{className:"check-network-summary-card",children:[T.jsx("div",{className:"check-network-summary-title",children:D("netDiagComputerGroup")}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:D("netDiagEnvIP")}),T.jsx("span",{children:Z.schemaHost||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:D("netDiagEnvWsPort")}),T.jsx("span",{children:Z.nodeWsPort||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:D("netDiagEnvHttpPort")}),T.jsx("span",{children:Z.httpPort||"-"})]})]}),T.jsxs("div",{className:"check-network-summary-card",children:[T.jsx("div",{className:"check-network-summary-title",children:D("netDiagClientGroup")}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:"IP"}),T.jsx("span",{children:x||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:D("netDiagEnvWsPort")}),T.jsx("span",{children:re||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:D("netDiagEnvHttpPort")}),T.jsx("span",{children:W||"-"})]})]})]}):null]}),T.jsxs("section",{className:`check-network-section check-network-summary-result check-network-summary-result-${he.kind}`,children:[T.jsxs("div",{className:"check-network-section-headline",children:[T.jsx("div",{children:T.jsxs("div",{className:"check-network-title-row",children:[T.jsx("div",{className:"check-network-section-title",children:D("netDiagSummaryTitle")}),T.jsx(et,{className:"check-network-title-link",theme:"borderless",onClick:()=>window.open(gW),children:D("netDiagOpenTroubleshoot")})]})}),T.jsx(et,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>p(ne=>!ne),children:D(u?"netDiagCollapse":"netDiagExpand")})]}),u?T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"check-network-summary-result-title",children:he.title}),T.jsx("div",{className:"check-network-summary-result-desc",children:he.desc}),T.jsx("div",{className:"check-network-suggestion-list",children:ye.map((ne,oe)=>T.jsxs("div",{className:"check-network-suggestion-item",children:[T.jsx("span",{className:"check-network-suggestion-index",children:oe+1}),T.jsx("span",{className:"check-network-suggestion-text",children:ne})]},`${ne}_${oe}`))}),T.jsxs("div",{className:"check-network-next-step",children:[T.jsx("div",{className:"check-network-next-step-label",children:D("netDiagNextStepTitle")}),T.jsx("div",{className:"check-network-next-step-desc",children:be.desc})]}),T.jsxs("div",{className:"check-network-mini-tip",children:[T.jsx("div",{className:"check-network-mini-tip-title",children:D("netDiagQuickHintTitle")}),T.jsx("div",{className:"check-network-mini-tip-desc",children:D("netDiagQuickHintDesc")})]})]}):null]}),T.jsxs("section",{className:"check-network-section",id:"manual-connect-section",children:[T.jsxs("div",{className:"check-network-section-headline",children:[T.jsxs("div",{children:[T.jsx("div",{className:"check-network-section-title",children:D("netDiagManualBindEntry")}),T.jsx("div",{className:"check-network-suggest-desc",children:D("netDiagManualSectionDesc")})]}),T.jsx(et,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>v(ne=>!ne),children:D(h?"netDiagCollapse":"netDiagExpand")})]}),h?T.jsxs("div",{className:"check-network-manual-body",children:[T.jsx(YC,{layout:"compact",onValuesChange:H,onConnectResult:ne=>{ve(ne),ae()},getFormApi:_}),T.jsx("div",{className:"check-network-actions check-network-manual-actions",children:T.jsx(et,{className:"check-network-primary-action",type:"primary",loading:P,onClick:async()=>{if(S){E(!0);try{await S.submitForm()}finally{E(!1)}}},children:D("netDiagManualConnectAndCheck")})}),ee?T.jsx("div",{className:`check-network-inline-result ${ee.ok?"success":"error"}`,children:ee.ok?D("netDiagManualConnectResultSuccess"):`${D("netDiagManualConnectResultError")} ${ee.message}`}):null]}):null]}),T.jsxs("section",{className:"check-network-section",children:[T.jsxs("div",{className:"check-network-section-headline",children:[T.jsxs("div",{children:[T.jsx("div",{className:"check-network-section-title",children:D("netDiagChecksTitle")}),T.jsx("div",{className:"check-network-suggest-desc",children:D("netDiagCheckSectionDesc")})]}),T.jsx(et,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>b(ne=>!ne),children:D(y?"netDiagCollapse":"netDiagExpand")})]}),y?T.jsx("div",{className:"check-network-checks",children:de.map(ne=>{const oe=vW(ne.item,r&&V);return T.jsxs("div",{className:`check-network-check-card check-network-check-${oe}`,children:[T.jsxs("div",{className:"check-network-check-head",children:[T.jsx("span",{className:"check-network-check-title",children:ne.title}),T.jsx("span",{className:`check-network-check-badge check-network-check-badge-${oe}`,children:yW(oe)})]}),T.jsx("div",{className:"check-network-check-target",children:ne.target}),T.jsx("div",{className:"check-network-check-detail",children:bW(ne.item,r&&V)})]},ne.key)})}):null]})]})},_W=k.lazy(()=>zt(()=>import("./index-BBHUSsVA.js"),__vite__mapDeps([0,1])).then(o=>({default:o.ProjectDetail}))),PW=k.lazy(()=>zt(()=>import("./index-Cr55HKuS.js"),__vite__mapDeps([2,3,4])).then(o=>({default:o.DebugSetting}))),EW=k.lazy(()=>zt(()=>import("./index-CYD_pNmH.js"),__vite__mapDeps([5,6,7,8,3,4,9,10])).then(o=>({default:o.LaunchMode}))),kW=k.lazy(()=>zt(()=>import("./index-utYbqRWL.js"),__vite__mapDeps([11,6,7,8,3,4,9,12])).then(o=>({default:o.CheckCode}))),TW=k.lazy(()=>zt(()=>import("./index-Bz8ZWlHc.js"),__vite__mapDeps([13,14])).then(o=>({default:o.BasicDebugGuide}))),OW=k.lazy(()=>zt(()=>import("./index-C0Izps-u.js"),__vite__mapDeps([15,16])).then(o=>({default:o.ChangeLog}))),xW=k.lazy(()=>zt(()=>import("./index-B7M-KACw.js"),__vite__mapDeps([17,18,19,20])).then(o=>({default:o.IntegrationAssistant}))),DW=k.lazy(()=>zt(()=>import("./Detail-BzyVtzyL.js"),__vite__mapDeps([21,22,23,6,7,8,3,4,9,19,20])).then(o=>({default:o.IntegrationAssistantDetail}))),IW=k.lazy(()=>zt(()=>import("./MonetizationMode-gxP1CQqy.js"),__vite__mapDeps([24,22,23,18,19,20])).then(o=>({default:o.IntegrationAssistantMonetizationMode}))),RW=k.lazy(()=>zt(()=>import("./index-C4Lcagww.js"),__vite__mapDeps([25,26])).then(o=>({default:o.ManualConnect}))),NW=()=>T.jsx("div",{className:"routes-container",children:T.jsx(k.Suspense,{fallback:T.jsx(HC,{}),children:T.jsxs(Jq,{children:[T.jsx(Pt,{path:"/",element:T.jsx(hW,{})}),T.jsx(Pt,{path:"/integration_assistant",element:T.jsx(xW,{})}),T.jsx(Pt,{path:"/integration_assistant/mode/:modeKey",element:T.jsx(IW,{})}),T.jsx(Pt,{path:"/integration_assistant/:capabilityKey",element:T.jsx(DW,{})}),T.jsx(Pt,{path:"/project_overview",element:T.jsx(_W,{})}),T.jsx(Pt,{path:"/project_detail",element:T.jsx(uh,{to:"/project_overview",replace:!0})}),T.jsx(Pt,{path:"/basic_debug_guide",element:T.jsx(TW,{})}),T.jsx(Pt,{path:"/debug_setting",element:T.jsx(PW,{})}),T.jsx(Pt,{path:"/launch_mode",element:T.jsx(EW,{})}),T.jsx(Pt,{path:"/upload_publish",element:T.jsx(kW,{})}),T.jsx(Pt,{path:"/version_upload",element:T.jsx(uh,{to:"/upload_publish",replace:!0})}),T.jsx(Pt,{path:"/precheck_code",element:T.jsx(uh,{to:"/upload_publish",replace:!0})}),T.jsx(Pt,{path:"/network_diagnostics",element:T.jsx(CW,{})}),T.jsx(Pt,{path:"/manual_connect",element:T.jsx(RW,{})}),T.jsx(Pt,{path:"/changelog",element:T.jsx(OW,{})})]})})}),AW=k.lazy(()=>zt(()=>import("./index-766JxwXs.js"),__vite__mapDeps([27,7,8,28,29,30])).then(o=>({default:o.Sidebar}))),LW=()=>T.jsx("div",{className:"sidebar-container",children:T.jsx(k.Suspense,{fallback:T.jsx("div",{className:"sidebar-loading-placeholder"}),children:T.jsx(AW,{})})}),jW=({items:o,fallbackErrorText:e})=>{const[n,r]=k.useState(!1),s=k.useMemo(()=>{const p=e?.trim();return p?[{text:p,required:!0},...o.filter(h=>h.text.trim()!==p)]:o},[e,o]);k.useEffect(()=>{r(!1)},[s]);const l=p=>T.jsxs("span",{className:"top-error-item-content",children:[T.jsx("span",{className:`top-error-item-tag ${p.required?"top-error-item-tag-required":"top-error-item-tag-suggested"}`,children:p.required?D("topErrorTagRequired"):D("topErrorTagSuggested")}),T.jsx("span",{children:p.text}),p.detail?.link?T.jsx("a",{className:"top-error-item-link",href:p.detail.link,target:"_blank",rel:"noreferrer",children:p.detail.text||D("viewDoc")}):null]}),c=p=>T.jsxs("div",{className:"top-error-single",children:[T.jsx("div",{className:"top-error-single-head",children:T.jsx("span",{className:`top-error-item-tag ${p.required?"top-error-item-tag-required":"top-error-item-tag-suggested"}`,children:p.required?D("topErrorTagRequired"):D("topErrorTagSuggested")})}),T.jsxs("div",{className:"top-error-single-body",children:[T.jsx("span",{className:"top-error-single-text",children:p.text}),p.detail?.link?T.jsx("a",{className:"top-error-item-link",href:p.detail.link,target:"_blank",rel:"noreferrer",children:p.detail.text||D("viewDoc")}):null]})]}),u=s.length<=1?s[0]?c(s[0]):"":T.jsxs("div",{className:"top-error-summary",children:[T.jsxs("div",{className:"top-error-summary-line",children:[T.jsx("span",{children:D("topErrorSummary",{count:String(s.length)})}),T.jsx("button",{type:"button",className:"top-error-summary-toggle",onClick:()=>{r(p=>!p)},children:D(n?"topErrorHideDetails":"topErrorViewDetails")})]}),n&&T.jsx("ol",{className:"top-error-summary-list",children:s.map(p=>T.jsx("li",{className:"top-error-summary-item",children:l(p)},`${p.text}-${p.required?"required":"suggested"}`))})]});return s.length>0?T.jsx(Ss,{className:"top-error-banner",description:u,icon:null,type:"warning"}):null},MW=({size:o=24,color:e="#000",style:n,className:r})=>T.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:T.jsxs("svg",{fill:"currentColor",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,children:[T.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"}),T.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"})]})}),$W=()=>T.jsxs("div",{className:"logo-container",children:[T.jsx(MW,{size:32}),T.jsx("div",{className:"logo-title",children:D("title")})]});function Qw(o){return D(o==="ok"?"connectStatusConnected":o==="fail"?"connectStatusFailed":"connectStatusDisconnected")}function ns(o){return o==="ok"?"#22c55e":o==="fail"?"#ff4d4f":"#bfbfbf"}const FW=()=>{const{state:{schema:o,isConnected:e},setIsConnected:n,setMessage:r}=dn(),[s,l]=k.useState("off"),[c,u]=k.useState("off"),[p,h]=k.useState("off"),v={node:{bg:"rgba(59,130,246,0.10)",stroke:"#93c5fd",text:"#1d4ed8"},browser:{bg:"rgba(34,197,94,0.10)",stroke:"#86efac",text:"#15803d"},client:{bg:"rgba(168,85,247,0.10)",stroke:"#d8b4fe",text:"#7e22ce"}},y=k.useMemo(()=>{const{nodeWsPort:I,clientHost:N,clientHttpPort:M,clientWsPort:F}=Ee.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let L="",A="";try{if(o){const z=new URL(o);L=(z.searchParams.get("host")||"").trim(),A=(z.searchParams.get("port")||"").trim()}}catch{}return{nodeWsPort:I,clientHost:N,clientHttpPort:M,clientWsPort:F,schemaHost:L,schemaPort:A}},[s,c,p,o]),b=I=>{const{client:N,node:M,reason:F}=I||{};Fn.info("connectionChange",N,M),Ee.get("isNodeWSConnected")===M&&(N||r({type:"danger",desc:D("clientServerStartError")})),Ee.get("isClientWSConnected")===N&&(M||r({type:"danger",desc:D("nodeServerStartError")})),Ee.get("isClientWSConnected")&&!N&&(Ee.setMultiple({isClientWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",desc:D("clientDisconnected")})),Ee.get("isNodeWSConnected")&&!M&&(Ee.setMultiple({isNodeWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",title:D("serverDisconnected"),desc:D("nodeDisconnected")})),!Ee.get("isClientWSConnected")&&N&&(Ee.set("isClientWSConnected",!0),r({type:"success",desc:D("clientConnectedSuccess")})),!Ee.get("isNodeWSConnected")&&M&&(Ee.set("isNodeWSConnected",!0),r({type:"success",desc:D("nodeServerConnectedSuccess")})),typeof M=="boolean"&&(l(M?"ok":F==="error"||F==="timeout"?"fail":"off"),M||h("off")),typeof N=="boolean"&&u(N?"ok":F==="error"||F==="timeout"?"fail":"off"),n(!!N&&!!M)},P=I=>{if(I?.status==="success"){h("ok");return}if(I?.status==="failed"){h("fail");return}I?.status==="start"&&h("off")};k.useEffect(()=>(Oe.on("connectionChange",b),Oe.on("scanQRCode",P),()=>{Oe.off("connectionChange",b),Oe.off("scanQRCode",P)}),[n]);const E=T.jsxs("div",{children:[T.jsxs("div",{children:[D("connectStatusNode"),": ",Qw(s)]}),T.jsxs("div",{children:["IDE: ",window.location.origin]}),y.nodeWsPort?T.jsxs("div",{children:["WS: ws://localhost:",y.nodeWsPort]}):null,T.jsxs("div",{children:["HTTP: ",window.location.origin]}),y.schemaHost&&y.schemaPort?T.jsxs("div",{children:[D("scanQRCode"),":ws://",y.schemaHost,":",y.schemaPort]}):null]}),S=T.jsx("div",{children:T.jsxs("div",{children:[D("connectStatusBrowser"),": ",D("connectStatusConnected")]})}),_=T.jsxs("div",{children:[T.jsxs("div",{children:[D("connectStatusClient"),": ",Qw(c)]}),y.clientHost?T.jsxs("div",{children:[y.clientHost,y.clientHttpPort?` http:${y.clientHttpPort}`:"",y.clientWsPort?` ws:${y.clientWsPort}`:""]}):null]}),O=T.jsxs("div",{className:"conn-graph-wrap",children:[T.jsx("div",{className:"conn-graph",children:T.jsx("svg",{className:"conn-graph-svg",width:"340",height:"220",viewBox:"0 0 360 240",children:(()=>{const I={x:180,y:44},N={x:70,y:206},M={x:290,y:206},F=14,L=26,A=4,z=5,U=8,K={x:(I.x+N.x+M.x)/3,y:(I.y+N.y+M.y)/3},V=(H,Z)=>({x:Z.x-H.x,y:Z.y-H.y}),ie=H=>Math.hypot(H.x,H.y)||1,ee=H=>{const Z=ie(H);return{x:H.x/Z,y:H.y/Z}},ve=H=>({x:-H.y,y:H.x}),le=(H,Z,x=1)=>({x:H.x+Z.x*x,y:H.y+Z.y*x}),_e=(H,Z,x)=>{const W=V(H,Z),re=ee(W),ae=ee(ve(W)),de=x.offset||0,he=le(le(H,re,L),ae,de),ye=le(le(Z,re,-L),ae,de),be=typeof x.t=="number"?Math.min(.9,Math.max(.1,x.t)):.5,ne={x:he.x+(ye.x-he.x)*be,y:he.y+(ye.y-he.y)*be},oe=le(H,re,L),mt=le(Z,re,-L),vt={x:oe.x+(mt.x-oe.x)*be,y:oe.y+(mt.y-oe.y)*be},pn=x.markMode||"byLineOffset",en=V(vt,K),Ie=en.x*ae.x+en.y*ae.y>0?{x:-ae.x,y:-ae.y}:ae,fn=x.labelSide==="inner"?-1:1,xe=de>=0?1:-1,Dt=pn==="byTriangleSide"?fn:xe,Fe={w:360,h:240,pad:10};let Me=le(ne,Ie,U*Dt);(Me.y>Fe.h-Fe.pad||Me.y<Fe.pad||Me.x>Fe.w-Fe.pad||Me.x<Fe.pad)&&(Me=le(ne,Ie,-U*Dt));const Ve=Me.x<Fe.w-60,Ke={x:Ve?Me.x+z+A:Me.x-z-A,y:Me.y},Be=Ve?"start":"end",It=x.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+z+A):xn>Fe.w-Fe.pad&&(Nt="end",tt=Me.x-z-A),T.jsxs("g",{children:[T.jsx("line",{x1:he.x,y1:he.y,x2:ye.x,y2:ye.y,stroke:"#d9d9d9",strokeWidth:"2",strokeDasharray:x.dashed?"4 3":void 0}),T.jsx("circle",{cx:Me.x,cy:Me.y,r:z,fill:x.statusColor}),T.jsx("text",{x:tt,y:Ke.y,fontSize:"10",fill:"#666",dominantBaseline:"middle",textAnchor:Nt,paintOrder:"stroke",stroke:"rgba(255,255,255,0.95)",strokeWidth:"3",children:x.label})]})},Ce=(H,Z,x,W)=>T.jsx(ir,{content:x,children:T.jsxs("g",{className:"conn-vertex",children:[T.jsx("rect",{x:H.x-28,y:H.y-14,width:56,height:22,rx:8,fill:W.bg,stroke:W.stroke}),T.jsx("text",{x:H.x,y:H.y-1,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:W.text,children:Z})]})});return T.jsxs(T.Fragment,{children:[_e(N,I,{label:"ws",statusColor:ns(s),offset:-F/2,labelSide:"outer",markMode:"byLineOffset",t:.42}),_e(N,I,{label:"http",statusColor:ns(s),offset:F/2,labelSide:"inner",markMode:"byLineOffset",t:.58}),_e(I,M,{label:"ws",statusColor:ns(p),dashed:!0,offset:0,labelSide:"outer",markMode:"byTriangleSide",t:.55}),_e(N,M,{label:"ws",statusColor:ns(c),offset:-F/2,labelSide:"outer",markMode:"byLineOffset",t:.55}),_e(N,M,{label:"http",statusColor:ns(c),offset:F/2,labelSide:"inner",markMode:"byLineOffset",t:.45}),Ce(I,D("connectStatusNode"),E,v.node),Ce(N,D("connectStatusBrowser"),S,v.browser),Ce(M,D("connectStatusClient"),_,v.client)]})})()})}),T.jsxs("div",{className:"conn-legend",children:[T.jsx("div",{className:"conn-legend-title",children:D("connectStatusLegendTitle")}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsx("div",{className:"conn-legend-name",children:T.jsx(ht,{color:"blue",type:"ghost",size:"small",style:{marginRight:6},children:D("connectStatusNode")})}),T.jsx("div",{className:"conn-legend-desc",children:D("connectStatusLegendNode")})]}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsx("div",{className:"conn-legend-name",children:T.jsx(ht,{color:"green",type:"ghost",size:"small",style:{marginRight:6},children:D("connectStatusBrowser")})}),T.jsx("div",{className:"conn-legend-desc",children:D("connectStatusLegendBrowser")})]}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsx("div",{className:"conn-legend-name",children:T.jsx(ht,{color:"purple",type:"ghost",size:"small",style:{marginRight:6},children:D("connectStatusClient")})}),T.jsx("div",{className:"conn-legend-desc",children:D("connectStatusLegendClient")})]}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsxs("div",{className:"conn-legend-name",children:[T.jsx(ht,{color:"grey",type:"ghost",size:"small",style:{marginRight:6},children:"WS"}),T.jsx(ht,{color:"grey",type:"ghost",size:"small",children:"HTTP"})]}),T.jsx("div",{className:"conn-legend-desc",children:D("connectStatusLegendProto")})]})]})]});return T.jsx(Bn,{content:O,trigger:"hover",showArrow:!1,children:T.jsx(ht,{style:{margin:"0 4px"},color:e?"light-green":"grey",size:"large",shape:"circle",type:"ghost",children:D(e?"deviceConnected":"deviceDisconnected")})})},zW=({version:o})=>{const e=Ps(),{state:{devToolVersion:n}}=dn(),[r,s]=k.useState(!1);if(k.useEffect(()=>{s(YB(n))},[n]),!o)return null;const l=()=>{n&&(XB(n),s(!1)),e("/changelog")};return T.jsxs("span",{onClick:l,style:{display:"inline-flex",alignItems:"center",cursor:"pointer",flexShrink:0},children:[T.jsx(ht,{style:{margin:8},color:"light-blue",size:"large",shape:"circle",type:"ghost",children:o}),r&&T.jsx(ht,{color:"red",shape:"circle",size:"small",type:"solid",style:{marginLeft:-4},children:"NEW"})]})},BW=k.lazy(()=>zt(()=>import("./index-BNtIdKnQ.js"),__vite__mapDeps([31,28,29,32])).then(o=>({default:o.AccessDocs}))),qW=k.lazy(()=>zt(()=>import("./index-CLDvvBgM.js"),__vite__mapDeps([33,34])).then(o=>({default:o.LoginStatus}))),GW=k.lazy(()=>zt(()=>import("./index-E142v_RY.js"),__vite__mapDeps([35,6,7,8,3,4,9,36])).then(o=>({default:o.WasmCodeSplit}))),WW=()=>{const{state:{devToolVersion:o,engine:e,packages:n,gameDetail:r}}=dn(),s=n?.find(u=>u.name==="wasmcode"),l=s?.root,c=s?.md5;return T.jsxs("div",{className:"header-wrapper",children:[T.jsxs("div",{className:"header-content",children:[T.jsxs("div",{className:"header-content-left",children:[T.jsx($W,{}),T.jsx(zW,{version:o}),T.jsx(FW,{})]}),T.jsx("div",{className:"header-content-right",children:T.jsxs(ws,{spacing:12,children:[T.jsx(k.Suspense,{fallback:null,children:T.jsx(BW,{})}),e==="unity"&&T.jsx(k.Suspense,{fallback:null,children:T.jsx(GW,{codePath:l,codeMd5:c,clientKey:r?.client_key})}),T.jsx(k.Suspense,{fallback:null,children:T.jsx(qW,{})})]})})]}),T.jsx(f2,{})]})},UW=({enabled:o=!0})=>(k.useEffect(()=>{if(!o){Vi.close();return}return Vi.init(),()=>{Vi.close()}},[o]),null);function HW(){const{state:{loading:o,error:e,user:n}}=dn(),{topErrorItems:r,updateGameDetailTopErrors:s,updateConfigTopErrors:l}=VG(),{fetchGameDetail:c}=KG({onSuccess:s}),{isServerError:u,serverErrorMsg:p}=QG({fetchGameDetail:c,updateConfigTopErrors:l});return XG({onResourceChange:c}),k.useEffect(()=>{const h=async v=>{if(v.status!=="update_wasm_split_config_done")return;const y=await Qi({url:"/game/config",method:"GET"});y.error||l({currentUser:n,checkResult:y.data?.checkResult})};return Oe.on("unitySplitStatus",h),()=>{Oe.off("unitySplitStatus",h)}},[l,n]),u&&!o.visible?T.jsxs("div",{className:"server-error-container",children:[T.jsx($G,{}),T.jsx("div",{className:"server-error-text",children:p})]}):T.jsxs(_G,{children:[T.jsx(jW,{items:r,fallbackErrorText:e.text}),T.jsx(UW,{enabled:!o.visible&&!u}),T.jsxs("div",{className:"main-layout",children:[T.jsx(WW,{}),T.jsxs("div",{className:"content-wrapper",children:[T.jsx(LW,{}),T.jsx(NW,{})]})]}),T.jsx(HC,{})]})}JP.createRoot(document.getElementById("root")).render(T.jsx(pg,{children:T.jsx(nq,{children:T.jsx(HW,{})})}));export{N0 as $,qO as A,Ss as B,qn as C,Qh as D,$r as E,XB as F,kh as G,Cl as H,yl as I,mU as J,Zt as K,jr as L,YC as M,Ua as N,ml as O,Bn as P,Uw as Q,w as R,ws as S,Ye as T,Zh as U,ir as V,sU as W,Mn as X,us as Y,Pn as Z,ke as _,ht as a,jk as a$,lr as a0,Ui as a1,YW as a2,ZW as a3,Nr as a4,rU as a5,tU as a6,vl as a7,nU as a8,XW as a9,Lr as aA,at as aB,ss as aC,rr as aD,Rr as aE,sg as aF,fi as aG,cs as aH,B0 as aI,as as aJ,Jn as aK,Hk as aL,Ih as aM,hl as aN,gD as aO,Yi as aP,tk as aQ,zh as aR,Zi as aS,Pk as aT,ul as aU,yD as aV,Jk as aW,v0 as aX,d0 as aY,tl as aZ,qh as a_,eU as aa,JW as ab,L0 as ac,ai as ad,Ki as ae,Vh as af,Nh as ag,Oe as ah,cg as ai,Xt as aj,Ze as ak,$E as al,un as am,Hh as an,rO as ao,nO as ap,wh as aq,VS as ar,oO as as,zf as at,Uo as au,Ho as av,tO as aw,Ch as ax,KS as ay,HE as az,et as b,u0 as b$,eE as b0,uT as b1,k0 as b2,mD as b3,vD as b4,T0 as b5,Zn as b6,ek as b7,lU as b8,OD as b9,wT as bA,Kk as bB,_k as bC,ci as bD,QW as bE,TT as bF,P1 as bG,p0 as bH,aU as bI,_x as bJ,Px as bK,Hi as bL,mx as bM,ME as bN,dU as bO,xE as bP,jO as bQ,jT as bR,Za as bS,H2 as bT,tx as bU,oU as bV,Sg as bW,IT as bX,al as bY,dl as bZ,Bh as b_,KE as ba,gl as bb,tg as bc,Xk as bd,a0 as be,Yt as bf,OE as bg,Rh as bh,DE as bi,D0 as bj,M0 as bk,Fr as bl,Tn as bm,pl as bn,Fh as bo,dk as bp,Sl as bq,Ya as br,er as bs,zr as bt,Lh as bu,hT as bv,IE as bw,iE as bx,Jw as by,pD as bz,dn as c,tT as c0,fk as c1,CT as c2,Qi as d,Mr as e,JB as f,TC as g,Te as h,D as i,T as j,xt as k,pw as l,gt as m,X as n,Qt as o,mi as p,g as q,k as r,ar as s,me as t,Ps as u,Kh as v,gU as w,Xh as x,A0 as y,Pg as z};